/* ------------------------------------------------------------------
   明美物联 · 新版官网  |  ASP.NET Core MVC  |  自包含样式，无外部 CDN
   ------------------------------------------------------------------ */
:root {
    --brand: #0a5b9c;
    --brand-dark: #073f70;
    --brand-soft: #e9f4fc;
    --cyan: #12a6b5;
    --accent: #e0483d;
    --accent-soft: #fff1ef;
    --ink: #142c3e;
    --muted: #637d90;
    --line: #dfeaf2;
    --bg: #f5f9fc;
    --white: #fff;
    --shadow: 0 12px 32px rgba(10, 62, 104, .09);
    --shadow-sm: 0 4px 16px rgba(10, 62, 104, .07);
    --radius: 14px;
    --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font: 15px/1.75 "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.35; }
p { margin: 0 0 12px; }
.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.text-center { text-align: center; }
.muted { color: var(--muted); }

/* ------------------------------------------------------------- top / header */
.topbar { background: var(--brand-dark); color: #cfe3f3; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.topbar-contact { display: flex; gap: 14px; align-items: center; }
.topbar-contact strong { color: #fff; font-size: 15px; letter-spacing: .5px; }
.topbar .divider { opacity: .4; }

.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(8, 48, 82, .07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; }
.brand img { width: 360px; height: auto; }
.header-right { display: flex; align-items: center; gap: 18px; }
.header-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 30px; overflow: hidden; background: var(--bg); }
.header-search input { border: 0; background: transparent; outline: none; padding: 9px 14px; width: 210px; font-size: 13px; color: var(--ink); }
.header-search button { border: 0; background: transparent; padding: 8px 14px; color: var(--brand); cursor: pointer; }
.header-tel { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: 16px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--brand); border-radius: 2px; }

.main-nav { border-top: 1px solid var(--line); background: linear-gradient(180deg, #fff, #fbfdff); }
.nav-inner { display: flex; align-items: stretch; gap: 4px; }
.nav-inner > a, .nav-item > a {
    display: inline-flex; align-items: center; gap: 6px; padding: 14px 20px;
    font-size: 15px; font-weight: 600; color: #29445a; position: relative;
}
.nav-inner > a:hover, .nav-item > a:hover, .nav-inner > a.active, .nav-item.active > a { color: var(--brand); }
.nav-inner > a.active::after, .nav-item.active > a::after {
    content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px;
    background: var(--brand); border-radius: 3px 3px 0 0;
}
.nav-item { position: relative; }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .65; }
.dropdown {
    position: absolute; top: 100%; left: 0; min-width: 190px; background: #fff;
    border: 1px solid var(--line); border-radius: 0 0 10px 10px; box-shadow: var(--shadow);
    padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 14px; color: #36566e; }
.dropdown a:hover { background: var(--brand-soft); color: var(--brand); }
.nav-cta { margin-left: auto !important; background: var(--accent); color: #fff !important; border-radius: 0 0 8px 8px; padding-inline: 26px !important; }
.nav-cta:hover { background: #c93a31 !important; }

/* ------------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 8px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: .2s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(10,91,156,.25); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #c93a31; color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------------------------------------------------------------------- hero */
.hero { position: relative; height: clamp(380px, 43vw, 540px); background: var(--brand-dark); overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,36,66,.88) 0%, rgba(4,46,80,.62) 42%, rgba(4,46,80,.08) 100%); }
.hero-content { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: min(var(--max), calc(100% - 48px)); margin-inline: auto; left: 0; right: 0; color: #fff; }
.hero-inner { max-width: 620px; }
.hero-badge { display: inline-block; padding: 6px 16px; border: 1px solid rgba(255,255,255,.5); border-radius: 30px; font-size: 13px; letter-spacing: 2px; margin-bottom: 22px; background: rgba(255,255,255,.08); }
.hero h1 { font-size: clamp(30px, 3.6vw, 50px); letter-spacing: 2px; margin-bottom: 16px; text-shadow: 0 2px 16px rgba(0,0,0,.2); }
.hero p { font-size: clamp(15px, 1.35vw, 19px); color: #d8eaf8; margin-bottom: 30px; letter-spacing: .5px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; z-index: 3; bottom: 26px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 30px; height: 4px; border: 0; border-radius: 3px; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: .25s; }
.hero-dots button.active { width: 48px; background: #fff; }
.hero-arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; font-size: 22px; line-height: 1; }
.hero-arrow:hover { background: rgba(255,255,255,.38); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

/* ------------------------------------------------------------------ sections */
.section { padding: 76px 0; }
.section.soft { background: var(--bg); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .eyebrow { display: inline-block; color: var(--cyan); font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(25px, 2.4vw, 34px); letter-spacing: 1px; }
.section-head h2::after { content: ""; display: block; width: 54px; height: 3px; background: var(--brand); margin: 16px auto 0; border-radius: 3px; }
.section-head p { color: var(--muted); margin-top: 14px; }
.section-action { text-align: center; margin-top: 36px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -42px; position: relative; z-index: 5; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 20px; text-align: center; }
.stat strong { display: block; font-size: 30px; color: var(--brand); line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); }

/* capability cards */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cap-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; transition: .25s; }
.cap-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #bcdcf0; }
.cap-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 20px; }
.cap-card h3 { font-size: 18px; margin-bottom: 10px; }
.cap-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
/* 产品/方案素材均为 800x800 白底方图，用等比容器 + contain 完整展示，不裁切上下内容 */
.card-media { aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; transition: transform .45s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 20px; }
.card-tag { display: inline-block; font-size: 12px; color: var(--brand); background: var(--brand-soft); border-radius: 4px; padding: 2px 9px; margin-bottom: 10px; }
.card-body h3 { font-size: 17px; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-body p { color: var(--muted); font-size: 13.5px; height: 46px; overflow: hidden; margin-bottom: 14px; }
.card-more { color: var(--brand); font-size: 13px; font-weight: 600; }
.card-more::after { content: " →"; }

/* home about strip */
.about-strip { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: center; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 320px; object-fit: cover; }
.about-text h2 { font-size: 30px; margin-bottom: 8px; }
.about-text .eyebrow { color: var(--cyan); font-size: 13px; letter-spacing: 3px; font-weight: 700; }
.about-text .lead { font-size: 16px; margin: 18px 0 20px; color: #3a576d; }
.bullet-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 22px 0 28px; padding: 0; list-style: none; }
.bullet-list li { position: relative; padding-left: 24px; color: #3d5a70; font-size: 14px; }
.bullet-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--cyan); font-weight: 700; }

/* news list on home */
.home-news { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; }
.news-list { border-top: 1px solid var(--line); }
.news-row { display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-date { background: var(--brand-soft); border-radius: 8px; text-align: center; padding: 8px 4px; color: var(--brand); }
.news-date strong { display: block; font-size: 22px; line-height: 1.1; }
.news-date span { font-size: 11px; }
.news-row h3 { font-size: 16px; margin-bottom: 4px; }
.news-row p { font-size: 13px; color: var(--muted); margin: 0; height: 42px; overflow: hidden; }
.home-side-card { background: linear-gradient(135deg, var(--brand), #1173b8); color: #fff; border-radius: var(--radius); padding: 34px; }
.home-side-card h3 { font-size: 22px; margin-bottom: 14px; }
.home-side-card p { color: #d7ebfa; }
.home-side-card .btn { margin-top: 14px; }

/* cta band */
.cta-band { background: linear-gradient(120deg, var(--brand-dark), var(--brand) 60%, var(--cyan)); color: #fff; padding: 48px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 26px; }
.cta-inner p { margin: 6px 0 0; color: #d5eafa; }

/* ------------------------------------------------------------- inner pages */
.page-banner { background: linear-gradient(120deg, #073f70, #0a5b9c 55%, #0f8fb6); color: #fff; padding: 44px 0 40px; position: relative; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border: 60px solid rgba(255,255,255,.06); border-radius: 50%; }
.breadcrumb { font-size: 13px; color: #b9d8ef; margin-bottom: 12px; }
.breadcrumb a { color: #d7ebfa; }
.breadcrumb span { margin: 0 8px; opacity: .6; }
.page-banner h1 { font-size: 30px; letter-spacing: 1px; }
.page-banner p { color: #cfe6f6; margin: 8px 0 0; font-size: 14px; }

.page-body { padding: 52px 0 80px; }
.page-with-side { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: start; }
/* 内页视图存在两种 DOM 顺序（侧栏在前 / 正文在前），显式归位，
   避免新闻详情、在线留言的正文被挤进 240px 侧栏窄列 */
.page-with-side > aside { grid-column: 1; grid-row: 1; min-width: 0; }
.page-with-side > :not(aside) { grid-column: 2; grid-row: 1; min-width: 0; }
/* 正文在前的页面：主体在左宽栏、侧栏在右窄栏（不支持 :has 的浏览器回退为上一条规则，同样已修正宽度） */
.page-with-side:has(> :not(aside):first-child) { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
.page-with-side:has(> :not(aside):first-child) > :not(aside) { grid-column: 1; }
.page-with-side:has(> :not(aside):first-child) > aside { grid-column: 2; }
.side-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.side-nav h3 { background: var(--brand); color: #fff; padding: 16px 20px; font-size: 16px; }
.side-nav a { display: block; padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: #3b5b73; }
.side-nav a:last-child { border-bottom: 0; }
.side-nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 700; border-left: 3px solid var(--brand); }
.side-contact { margin-top: 20px; background: var(--brand-soft); border-radius: var(--radius); padding: 20px; font-size: 13.5px; color: #3b5b73; }
.side-contact strong { display: block; color: var(--accent); font-size: 20px; margin: 6px 0; }

.content-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; min-height: 420px; }
.content-panel h2 { font-size: 24px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--brand-soft); }
.rich-content { font-size: 15px; color: #34506a; line-height: 1.95; overflow-wrap: anywhere; }
.rich-content img { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 18px auto; }
/* 旧编辑器把插图单独包在 <p> 里，段内居中兜底（含文字的段落不受影响） */
.rich-content p:has(> img:only-child) { text-align: center; }
/* 解决方案详情页顶部主图为行内元素且带内联宽度，补块级与自动左右外边距 */
.content-panel > img { display: block; margin-left: auto; margin-right: auto; }
.rich-content table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.rich-content td, .rich-content th { border: 1px solid var(--line); padding: 10px 12px; }
.rich-content p { margin-bottom: 14px; }
.rich-content h3, .rich-content h4 { margin: 22px 0 10px; color: var(--brand); }
/* 旧编辑器用一长串短横线做章节分隔，现统一为一条淡渐变细线 */
.content-divider { border: 0; height: 1px; width: 100%; margin: 28px auto; background: linear-gradient(90deg, transparent, var(--line) 10%, #b7d3e8 50%, var(--line) 90%, transparent); }

/* filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 28px; }
.filter-bar .label { color: var(--muted); font-size: 13px; margin-right: 6px; }
.chip { padding: 7px 16px; border-radius: 30px; background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; color: #3c5b72; }
.chip:hover, .chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-form { margin-left: auto; display: flex; gap: 8px; }
.filter-form input { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; outline: none; font-size: 13px; width: 190px; }
.filter-form button { border: 0; background: var(--brand); color: #fff; border-radius: 6px; padding: 8px 18px; cursor: pointer; }

/* pager */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 36px; }
.pager a, .pager span { min-width: 36px; height: 36px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; background: #fff; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager .disabled { color: #b7c6d1; }

/* detail */
.detail-grid { display: grid; grid-template-columns: 420px 1fr; gap: 44px; align-items: start; }
.detail-photo { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.detail-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; padding: 8px; display: block; }
.detail-info h1 { font-size: 28px; margin-bottom: 12px; }
.detail-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.detail-meta span { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 5px 12px; font-size: 13px; color: var(--muted); }
.detail-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.detail-section { margin-top: 52px; }

/* news list rows (inner) */
.article-row { display: grid; grid-template-columns: 92px 1fr; gap: 24px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; transition: .2s; }
.article-row:hover { box-shadow: var(--shadow-sm); transform: translateX(4px); }
.article-date { background: var(--brand-soft); border-radius: 10px; text-align: center; padding: 14px 6px; color: var(--brand); height: fit-content; }
.article-date strong { display: block; font-size: 28px; line-height: 1.1; }
.article-date span { font-size: 12px; }
.article-row h3 { font-size: 18px; margin-bottom: 8px; }
.article-row p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.article-row .tag { font-size: 12px; color: var(--cyan); }

/* forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { font-size: 14px; font-weight: 600; color: #35536c; }
.form-row label .req { color: var(--accent); }
.form-row input, .form-row textarea, .form-row select { border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; outline: none; background: #fbfdff; color: var(--ink); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,91,156,.1); }
.form-row textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.alert-error { background: var(--accent-soft); color: #b5342c; border: 1px solid #f7cfcb; }
.alert-ok { background: #eaf8f1; color: #157a52; border: 1px solid #bfe8d5; }
.validation-summary ul { margin: 0; padding-left: 18px; }

/* message cards */
.message-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; background: #fff; }
.message-card .msg-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.message-card .msg-head strong { color: var(--brand); font-size: 15px; }
.message-card .reply { margin-top: 14px; background: var(--brand-soft); border-left: 3px solid var(--brand); padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 14px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .big { font-size: 44px; color: #bed6e8; }

/* contact cards */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.contact-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.contact-card .cap-icon { margin: 0 auto 14px; }
.contact-card h3 { font-size: 16px; margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* -------------------------------------------------------------------- footer */
.site-footer { background: #0b2f4c; color: #c3d9e9; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; padding: 54px 0 40px; }
.footer-col h3 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.footer-col p { font-size: 13.5px; margin-bottom: 8px; color: #b9d2e5; }
/* 只有快速导航里的独立链接换行；「联系我们」段落内的电话/邮箱保持同一行 */
.footer-col > a:not(.footer-tel) { display: block; font-size: 13.5px; margin-bottom: 8px; color: #b9d2e5; }
.footer-col p a { display: inline; color: #8fd0f5; text-decoration: none; }
.footer-col p a:hover { color: #fff; text-decoration: underline; }
.footer-col a:hover { color: #fff; }
.footer-company { color: #fff !important; font-size: 15px !important; font-weight: 600; }
.footer-slogan { color: #6fb6e0 !important; margin-top: 12px !important; }
.footer-icon-box { display: flex; align-items: center; gap: 12px; color: #b9d2e5; font-size: 13px; }
.footer-icon-box svg { color: #6fb6e0; flex: none; }
.footer-tel { display: inline-block; margin-top: 16px; color: #fff !important; font-size: 22px !important; font-weight: 700; }
.footer-links { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 13px; }
.footer-links span { color: #7fa9c6; margin-right: 10px; }
.footer-links a { color: #b9d2e5; margin-right: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* floating service */
.float-service { position: fixed; right: 18px; bottom: 90px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.float-item { width: 48px; height: 48px; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--brand); cursor: pointer; position: relative; }
.float-item:hover { background: var(--brand); color: #fff; }
.float-item em { position: absolute; right: 56px; top: 50%; transform: translateY(-50%); background: var(--brand-dark); color: #fff; font-style: normal; font-size: 13px; padding: 6px 12px; border-radius: 6px; white-space: nowrap; opacity: 0; visibility: hidden; transition: .2s; }
.float-item:hover em { opacity: 1; visibility: visible; }
.float-top { opacity: 0; visibility: hidden; transition: .2s; }
.float-top.show { opacity: 1; visibility: visible; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
    .brand img { width: 285px; }
    .nav-inner > a, .nav-item > a { padding: 14px 12px; font-size: 14px; }
    .nav-inner > a.active::after, .nav-item.active > a::after { left: 12px; right: 12px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .cap-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .detail-grid { grid-template-columns: 340px 1fr; gap: 28px; }
}
@media (max-width: 820px) {
    .header-inner { height: 72px; }
    .header-search, .header-tel { display: none; }
    .nav-toggle { display: flex; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: var(--shadow); }
    .main-nav.open { display: block; }
    .nav-inner { flex-direction: column; padding: 8px 24px 20px; }
    .nav-inner > a, .nav-item > a { padding: 12px 4px; }
    .nav-item .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; }
    .nav-cta { margin-left: 0 !important; border-radius: 8px; text-align: center; margin-top: 8px; }
    .nav-inner > a.active::after, .nav-item.active > a::after { display: none; }
    .hero { height: 420px; }
    .hero-arrow { display: none; }
    .grid-3, .stats, .about-strip, .home-news, .page-with-side, .page-with-side:has(> :not(aside):first-child), .detail-grid, .contact-cards { grid-template-columns: 1fr; }
    .stats { margin-top: 24px; }
    .about-photo img { height: 240px; }
    .page-with-side { gap: 24px; }
    .page-with-side > aside, .page-with-side > :not(aside),
    .page-with-side:has(> :not(aside):first-child) > aside,
    .page-with-side:has(> :not(aside):first-child) > :not(aside) { grid-column: 1; grid-row: auto; }
    .content-panel { padding: 24px 20px; }
    .detail-photo { max-width: 460px; }
    .form-grid { grid-template-columns: 1fr; }
    .section { padding: 54px 0; }
}
@media (max-width: 560px) {
    .container { width: calc(100% - 32px); }
    .topbar-slogan { display: none; }
    .topbar-inner { justify-content: center; }
    .brand img { width: 240px; }
    .grid-4, .cap-grid, .grid-3, .stats { grid-template-columns: 1fr; }
    .hero { height: 380px; }
    .hero h1 { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .topbar-contact { gap: 8px; font-size: 12px; flex-wrap: wrap; justify-content: center; }
    .form-card { padding: 22px 18px; }
    .form-grid, .form-row { min-width: 0; }
    .form-row input, .form-row textarea, .form-row select { width: 100%; min-width: 0; }
    .article-row { grid-template-columns: 68px 1fr; padding: 16px; gap: 14px; }
    .float-service { right: 10px; bottom: 20px; }
}
