@charset "UTF-8";
/* ==========================================================================
   元固五金模具 · 站点样式表  assets/style.css
   设计基准：工业精密 / B2B 制造，克制配色（石墨蓝 + 钢蓝 + 黄铜点缀）
   兼容原站类名（.section / .product-card / .contact-card 等），可直接被全部页面复用
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
    --ink:        #0b1725;
    --navy:       #12263f;
    --navy-2:     #1b3557;
    --primary:    #1b5fa8;
    --primary-d:  #14497f;
    --primary-l:  #e9f2fb;
    --accent:     #d98218;
    --accent-l:   #fdf4e6;
    --text:       #1f2a37;
    --text-2:     #5b6b7f;
    --text-3:     #8695a8;
    --line:       #e3e8ef;
    --line-2:     #eef2f7;
    --bg:         #ffffff;
    --bg-soft:    #f6f8fb;
    --bg-mid:     #eef2f7;
    --ok:         #0f9d67;

    --r-sm: 6px;
    --r:    10px;
    --r-lg: 16px;

    --sh-1: 0 1px 2px rgba(16, 32, 56, .06);
    --sh-2: 0 4px 14px rgba(16, 32, 56, .08);
    --sh-3: 0 16px 40px rgba(16, 32, 56, .13);

    --max:  1200px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 132px;   /* 锚点补偿：header + nav 高度 */
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.12rem; }
h4 { font-size: 1rem; }
p  { color: var(--text-2); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

::selection { background: var(--primary); color: #fff; }

/* 跳过导航（无障碍） */
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 2000;
    background: var(--ink); color: #fff; padding: 10px 18px;
    border-radius: 0 0 var(--r) var(--r); transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------- 3. 版心与通用 ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 62px 0; }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }

.section-tag {
    display: inline-block;
    font-size: .78rem; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-l);
    padding: 5px 14px; border-radius: 100px;
    margin-bottom: 16px;
}

.section-title { margin-bottom: 12px; }
.section-desc  { font-size: 1rem; color: var(--text-2); }

.section-underline {
    width: 52px; height: 3px; border-radius: 3px;
    background: var(--accent); margin: 20px auto 0;
}

.highlight { color: var(--primary); }

/* 通用网格 */
.products-grid  { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.materials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.services-grid  { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }

/* 内联 SVG 图标 */
.icon { width: 22px; height: 22px; flex-shrink: 0; stroke: currentColor; fill: none;
        stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 26px; height: 26px; }

/* ---------- 4. 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border: 1px solid transparent; border-radius: var(--r);
    font-size: .95rem; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: background .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--sh-2); }
.btn-primary:hover { background: var(--primary-d); box-shadow: var(--sh-3); }

.btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.14); border-color: #fff; }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #c07213; }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #16273d; }

.btn-ghost { background: var(--bg); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-l); }

.btn-lg { padding: 15px 32px; font-size: 1rem; }

/* ---------- 5. 站点头部 ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }

.header-content {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 14px 24px; flex-wrap: wrap;
}

.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }

.logo-icon {
    width: 48px; height: 48px; flex-shrink: 0; border-radius: 10px;
    overflow: hidden; background: var(--bg-mid);
    display: flex; align-items: center; justify-content: center;
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; }

.logo-text { display: flex; flex-direction: column; min-width: 0; }
.logo-text .logo-name { font-size: 1.06rem; font-weight: 700; color: var(--ink); line-height: 1.3; letter-spacing: .02em; }
.logo-text span { font-size: .78rem; color: var(--text-3); line-height: 1.4; }

.header-contact { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.header-contact a {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .88rem; font-weight: 600; color: var(--text-2);
    transition: color .18s;
}
.header-contact a:hover { color: var(--primary); }
.header-contact .icon { color: var(--primary); }

/* ---------- 6. 导航 ---------- */
.nav-wrapper {
    background: var(--navy);
    position: sticky; top: 0; z-index: 900;
    box-shadow: var(--sh-1);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; }

.nav { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }

.nav a {
    display: block; padding: 15px 16px;
    font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.78);
    border-bottom: 2px solid transparent; white-space: nowrap;
    transition: color .18s, border-color .18s, background .18s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav a.active, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }

.nav-cta { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: var(--r);
           background: var(--accent); color: #fff; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.nav-cta:hover { background: #c07213; }

/* 汉堡按钮 */
.hamburger {
    display: none; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--r-sm); background: transparent; cursor: pointer;
    align-items: center; justify-content: center;
}
.hamburger .icon { stroke: #fff; }

/* ---------- 7. Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 420px at 88% -8%, rgba(27,95,168,.55), transparent 62%),
        linear-gradient(160deg, #0b1725 0%, #12263f 55%, #16304f 100%);
    color: #fff;
    padding: 78px 0 84px;
}
.hero::after {   /* 蓝图网格质感 */
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18);
    color: #e8eff8; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
    padding: 7px 15px; border-radius: 100px; margin-bottom: 22px;
}
.hero-badge .icon { stroke: var(--accent); }

.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.76);
    max-width: 46ch; margin-bottom: 30px;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .87rem; color: rgba(255,255,255,.72); }
.hero-points span { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .icon { stroke: var(--accent); }

.hero-media {
    border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 24px 60px rgba(0,0,0,.42);
    background: rgba(255,255,255,.05);
}
.hero-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-media figcaption {
    padding: 12px 16px; font-size: .8rem; color: rgba(255,255,255,.7);
    background: rgba(0,0,0,.28); border-top: 1px solid rgba(255,255,255,.1);
}

/* ---------- 8. 数据条 ---------- */
.stats { background: var(--navy); padding: 0; }
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px; background: rgba(255,255,255,.1);
}
.stat-card { background: var(--navy); padding: 30px 22px; text-align: center; }
.stat-icon { display: flex; justify-content: center; margin-bottom: 10px; }
.stat-icon .icon { stroke: var(--accent); }
.stat-number { font-size: 1.85rem; font-weight: 800; color: #fff; line-height: 1.2; letter-spacing: -.02em; }
.stat-number small { font-size: 1rem; font-weight: 600; color: var(--accent); }
.stat-label { font-size: .85rem; color: rgba(255,255,255,.62); margin-top: 4px; }

/* ---------- 9. 产品卡片 ---------- */
.product-card {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden; display: flex; flex-direction: column;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.product-card:hover { border-color: #c8d6e6; box-shadow: var(--sh-3); transform: translateY(-2px); }
.product-card.active { border-color: var(--primary); box-shadow: var(--sh-3); }

.product-icon { position: relative; background: var(--bg-mid); }
.product-icon img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.product-content { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.product-content h3 { margin-bottom: 8px; }
.product-content > p { font-size: .9rem; margin-bottom: 14px; }

.product-toggle {
    margin-top: auto; align-self: flex-start;
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 0; cursor: pointer; padding: 0;
    font-size: .88rem; font-weight: 600; color: var(--primary);
}
.product-toggle:hover { color: var(--primary-d); }
.product-toggle .icon { width: 16px; height: 16px; transition: transform .22s; }
.product-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.product-detail { display: none; }
.product-card.active .product-detail { display: block; }
.product-detail-inner { padding: 0 22px 22px; }

.product-table { font-size: .86rem; }
.product-table th, .product-table td {
    padding: 9px 0; border-bottom: 1px solid var(--line-2);
    text-align: left; vertical-align: top;
}
.product-table th {
    width: 30%; min-width: 76px; color: var(--text-3);
    font-weight: 500; white-space: nowrap; padding-right: 14px;
}
.product-table td { color: var(--text); font-weight: 500; }
.product-table tr:last-child th, .product-table tr:last-child td { border-bottom: 0; }

.product-contact { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.product-contact p { font-size: .85rem; color: var(--text-3); margin-bottom: 8px; }
.product-contact a {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .9rem; font-weight: 600; color: var(--primary); cursor: pointer;
}
.product-contact a:hover { text-decoration: underline; }
.product-contact small { display: block; margin-top: 6px; }
.product-contact small a { color: var(--text-2); font-weight: 500; }

/* ---------- 10. 材质卡片 ---------- */
.material-card {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
    padding: 24px 20px; text-align: center; cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.material-card:hover { border-color: var(--primary); box-shadow: var(--sh-2); transform: translateY(-2px); }
.material-icon {
    width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 12px;
    background: var(--primary-l); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.material-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.material-card > p { font-size: .85rem; margin-bottom: 14px; }
.material-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.material-tag {
    font-size: .74rem; font-weight: 600; color: var(--text-2);
    background: var(--bg-mid); padding: 3px 10px; border-radius: 100px;
}

/* ---------- 11. 服务优势 ---------- */
.service-card {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 28px 24px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service-card:hover { border-color: #c8d6e6; box-shadow: var(--sh-2); transform: translateY(-2px); }
.service-icon {
    width: 50px; height: 50px; border-radius: 12px; margin-bottom: 16px;
    background: var(--primary-l); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: .9rem; }

/* ---------- 12. 关于我们 ---------- */
.about { background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 52px; align-items: center; }

.about-image {
    border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3);
    background: var(--navy); position: relative;
}
.about-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.about-content .section-tag { margin-bottom: 14px; }
.about-content h2 { margin-bottom: 18px; }
.about-content > p { margin-bottom: 14px; font-size: .96rem; }

.about-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 26px; }
.about-feature {
    display: flex; align-items: center; gap: 9px;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
    padding: 12px 14px; font-size: .89rem; font-weight: 600; color: var(--text);
}
.about-feature .icon { stroke: var(--ok); }

.about-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.about-meta span {
    font-size: .8rem; color: var(--text-2); background: var(--bg-mid);
    padding: 4px 12px; border-radius: 100px;
}

/* ---------- 13. 视频 ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.video-card {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.video-card:hover { border-color: #c8d6e6; box-shadow: var(--sh-3); transform: translateY(-2px); }

.video-placeholder {
    aspect-ratio: 16 / 9; background: linear-gradient(150deg, #16304f, #0b1725);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.video-placeholder-icon {
    width: 58px; height: 58px; border-radius: 50%;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
    display: flex; align-items: center; justify-content: center; color: #fff;
}
.video-placeholder .icon { width: 22px; height: 22px; stroke: #fff; fill: #fff; margin-left: 3px; }
.video-placeholder p { color: rgba(255,255,255,.8); font-size: .88rem; margin: 0; }
.video-info { padding: 20px 22px 22px; }
.video-info h3 { margin-bottom: 6px; }
.video-info p { font-size: .88rem; }

/* ---------- 14. 更多服务 / 关注我们（原「引流」区块，收敛为克制样式） ---------- */
.extras-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 860px; margin: 0 auto; }

.extra-card {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.extra-card:hover { border-color: #c8d6e6; box-shadow: var(--sh-3); transform: translateY(-2px); }
.extra-card__media { background: var(--bg-mid); }
.extra-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.extra-card__media--dark { background: #010101; }
.extra-card__media--dark img { object-fit: contain; padding: 34px; }
.extra-card__body { padding: 22px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.extra-card__body h3 { margin-bottom: 6px; }
.extra-card__body p { font-size: .88rem; margin-bottom: 18px; }
.extra-card__cta {
    margin-top: auto; align-self: center;
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--accent); color: #fff;
    padding: 11px 22px; border-radius: var(--r); font-size: .89rem; font-weight: 600;
}
.extra-card__cta--dark { background: var(--ink); }
.extra-card:hover .extra-card__cta { filter: brightness(.94); }

/* 音乐关注条（原深色抖音区块） */
.music-band {
    background: linear-gradient(140deg, #0b1725 0%, #16304f 100%);
    color: #fff; border-radius: var(--r-lg); padding: 34px; max-width: 880px; margin: 0 auto;
    display: flex; align-items: center; gap: 30px; cursor: pointer;
    transition: transform .2s, box-shadow .2s; box-shadow: var(--sh-2);
}
.music-band:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.music-band__art {
    width: 108px; height: 108px; flex-shrink: 0; border-radius: var(--r);
    background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
    display: flex; align-items: center; justify-content: center;
}
.music-band__art .icon { width: 40px; height: 40px; stroke: var(--accent); }
.music-band h3 { color: #fff; font-size: 1.32rem; margin-bottom: 7px; }
.music-band p { color: rgba(255,255,255,.74); font-size: .89rem; margin-bottom: 5px; }
.music-band small { color: rgba(255,255,255,.5); font-size: .8rem; }
.music-band__cta {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
    background: var(--accent); color: #fff; padding: 10px 22px;
    border-radius: 100px; font-size: .88rem; font-weight: 600;
}
.music-note { text-align: center; margin-top: 22px; }
.music-note p { color: var(--text-3); font-size: .86rem; }
.music-note strong { color: var(--primary); }

/* ---------- 15. 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 44px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }

.contact-card {
    display: flex; align-items: flex-start; gap: 14px;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
    padding: 16px 18px; transition: border-color .2s, box-shadow .2s;
}
.contact-card:hover { border-color: #c8d6e6; box-shadow: var(--sh-1); }
.contact-icon {
    width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
    background: var(--primary-l); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.contact-card h4 { font-size: .82rem; color: var(--text-3); font-weight: 600; margin-bottom: 2px; }
.contact-card p { font-size: .96rem; color: var(--text); font-weight: 600; word-break: break-all; }
.contact-card p a:hover { color: var(--primary); }

.contact-form {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 30px; box-shadow: var(--sh-1);
}
.contact-form h3 { margin-bottom: 6px; }
.contact-form > p.form-lead { font-size: .88rem; margin-bottom: 22px; }

/* ---------- 16. 表单 ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .87rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.required { color: #d92d20; }

.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    font-family: inherit; font-size: .94rem; color: var(--text);
    background: var(--bg); transition: border-color .18s, box-shadow .18s;
}
.form-group textarea { min-height: 110px; resize: vertical; line-height: 1.65; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-3); }
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,95,168,.14);
}
.form-group input.error, .form-group textarea.error { border-color: #d92d20; box-shadow: 0 0 0 3px rgba(217,45,32,.1); }

.form-hint  { font-size: .78rem; color: var(--text-3); margin-top: 5px; }
.form-error { display: none; font-size: .78rem; color: #d92d20; margin-top: 5px; }

.form-btn, .submit-btn, .inquiry-submit {
    width: 100%; padding: 13px 24px; border: 0; border-radius: var(--r);
    background: var(--primary); color: #fff; font-size: .95rem; font-weight: 600;
    cursor: pointer; transition: background .18s;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.form-btn:hover, .submit-btn:hover, .inquiry-submit:hover { background: var(--primary-d); }
.form-btn:disabled, .inquiry-submit:disabled { background: var(--text-3); cursor: not-allowed; }

.form-status { display: none; margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); font-size: .87rem; }
.form-status--ok  { display: block; background: #e7f7f0; color: #0a6b47; border: 1px solid #b7e6d4; }
.form-status--err { display: block; background: #fdeceb; color: #a71d13; border: 1px solid #f7c9c5; }

.loading {
    width: 14px; height: 14px; display: inline-block; vertical-align: -2px;
    border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
    border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 17. 询价弹窗 ---------- */
.inquiry-overlay {
    position: fixed; inset: 0; z-index: 1500;
    background: rgba(9, 18, 30, .62); backdrop-filter: blur(3px);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.inquiry-overlay.show { display: flex; }

.inquiry-modal {
    background: var(--bg); border-radius: var(--r-lg); width: 100%; max-width: 460px;
    max-height: 90vh; overflow-y: auto; box-shadow: var(--sh-3);
    animation: modal-in .22s ease-out;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.inquiry-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.inquiry-header h3 { font-size: 1.05rem; }
.inquiry-close {
    width: 34px; height: 34px; flex-shrink: 0; border: 1px solid var(--line);
    background: var(--bg); border-radius: var(--r-sm); cursor: pointer;
    font-size: 1.3rem; line-height: 1; color: var(--text-3);
    display: flex; align-items: center; justify-content: center;
}
.inquiry-close:hover { color: var(--text); border-color: #c8d6e6; }
.inquiry-body { padding: 22px; }
.inquiry-footer { margin-top: 6px; }
.inquiry-note { font-size: .78rem; color: var(--text-3); text-align: center; margin-top: 12px; }

.inquiry-success { text-align: center; padding: 12px 4px; }
.inquiry-success .icon { width: 52px; height: 52px; stroke: var(--ok); margin: 0 auto 14px; }
.inquiry-success h4 { font-size: 1.1rem; margin-bottom: 8px; }
.inquiry-success > p { font-size: .9rem; margin-bottom: 16px; }
.inquiry-success .contact {
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r);
    padding: 14px; margin-bottom: 16px;
}
.inquiry-success .contact p { font-size: .88rem; color: var(--text); margin: 0; }
.inquiry-success .btn-group { margin-top: 4px; }
.btn-close-btn {
    padding: 11px 26px; border: 1px solid var(--line); border-radius: var(--r);
    background: var(--bg); font-size: .92rem; font-weight: 600; cursor: pointer;
}
.btn-close-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 18. AI 客服浮窗 ---------- */
.float-btn {
    width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: #fff;
    box-shadow: var(--sh-3); transition: transform .18s;
}
.float-btn:hover { transform: translateY(-2px); }
.float-btn-chat  { background: var(--primary); }
.float-btn-phone { background: var(--ok); }

.xiaogu { z-index: 1600; }
.xiaogu__head {
    background: var(--navy); color: #fff; padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0;
}
.xiaogu__title { display: flex; align-items: center; gap: 10px; }
.xiaogu__avatar {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center;
}
.xiaogu__avatar .icon { stroke: #fff; width: 19px; height: 19px; }
.xiaogu__name { font-size: .95rem; font-weight: 600; }
.xiaogu__status { font-size: .72rem; color: rgba(255,255,255,.62); }
.xiaogu__close { background: none; border: 0; color: rgba(255,255,255,.8); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.xiaogu__close:hover { color: #fff; }
.xiaogu__msgs {
    flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-soft);
    display: flex; flex-direction: column; gap: 10px;
}
.xiaogu__msg {
    max-width: 84%; padding: 10px 12px; font-size: .87rem; line-height: 1.62;
    border-radius: 12px; white-space: pre-wrap; word-break: break-word;
}
.xiaogu__msg--user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.xiaogu__msg--bot  { align-self: flex-start; background: #fff; color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.xiaogu__foot { padding: 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; background: var(--bg); flex-shrink: 0; }
.xiaogu__foot input {
    flex: 1; padding: 10px 12px; border: 1px solid var(--line);
    border-radius: var(--r-sm); font-family: inherit; font-size: .89rem;
}
.xiaogu__foot input:focus { outline: none; border-color: var(--primary); }
.xiaogu__send {
    padding: 10px 18px; border: 0; border-radius: var(--r-sm);
    background: var(--primary); color: #fff; font-size: .89rem; font-weight: 600; cursor: pointer; flex-shrink: 0;
}
.xiaogu__send:hover { background: var(--primary-d); }

/* ---------- 19. 页脚 ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 62px 0 0; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px;
    padding-bottom: 44px;
}
.footer-brand h3 { color: #fff; font-size: 1.06rem; margin-bottom: 14px; line-height: 1.5; }
.footer-brand p { font-size: .87rem; color: rgba(255,255,255,.58); line-height: 1.75; }

.footer-section h4 {
    color: #fff; font-size: .82rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links li { font-size: .87rem; color: rgba(255,255,255,.6); }
.footer-links a { transition: color .18s; }
.footer-links a:hover { color: var(--accent); }
.footer-links li span { display: inline-flex; align-items: center; gap: 8px; }
.footer-links .icon { stroke: rgba(255,255,255,.42); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0; font-size: .8rem; color: rgba(255,255,255,.45);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 6px 14px; text-align: center;
}
.footer-bottom a { color: rgba(255,255,255,.58); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .beian-icon { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; }

/* ---------- 20. 浮动操作条 ---------- */
.floating-buttons {
    position: fixed; right: 20px; bottom: 22px; z-index: 1400;
    display: flex; flex-direction: column; gap: 12px;
}

/* ---------- 21. 响应式 ---------- */
@media (max-width: 1024px) {
    .hero-grid   { grid-template-columns: 1fr; gap: 40px; }
    .hero-media  { max-width: 620px; }
    .about-grid  { grid-template-columns: 1fr; gap: 36px; }
    .contact-grid{ grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .nav a       { padding: 14px 13px; font-size: .88rem; }
}

@media (max-width: 768px) {
    html { scroll-padding-top: 76px; }
    .container { padding: 0 18px; }
    .section { padding: 56px 0; }
    .section-header { margin-bottom: 34px; }
    body { font-size: 15px; line-height: 1.72; }

    /* 头部：精简为品牌 + 汉堡 */
    .header-content { padding: 12px 18px; }
    .header-contact { display: none; }
    .logo-icon { width: 42px; height: 42px; }
    .logo-text .logo-name { font-size: .98rem; }

    /* 导航折叠 */
    .nav-bar { padding: 10px 18px; }
    .hamburger { display: flex; }
    .nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--navy); border-top: 1px solid rgba(255,255,255,.1);
        padding: 6px 0 12px; display: none; max-height: 70vh; overflow-y: auto;
        box-shadow: var(--sh-3);
    }
    .nav.open { display: flex; }
    .nav a { padding: 14px 20px; border-bottom: 0; border-left: 3px solid transparent; font-size: .95rem; }
    .nav a.active, .nav a[aria-current="page"] { border-bottom-color: transparent; border-left-color: var(--accent); background: rgba(255,255,255,.07); }
    .nav-cta { align-self: flex-start; margin: 10px 20px 0; }

    /* 内容 */
    .hero { padding: 52px 0 60px; }
    .hero-buttons { gap: 10px; }
    .hero-buttons .btn { flex: 1 1 100%; }
    .hero-points { gap: 8px 18px; font-size: .84rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card { padding: 24px 16px; }
    .stat-number { font-size: 1.55rem; }
    .products-grid, .materials-grid, .services-grid, .video-grid, .extras-grid { gap: 18px; }
    .products-grid, .video-grid, .extras-grid { grid-template-columns: 1fr; }
    .materials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer { padding-top: 48px; }
    .music-band { flex-direction: column; text-align: center; padding: 26px 20px; gap: 20px; }
    .contact-form { padding: 22px; }
    .floating-buttons { right: 14px; bottom: 16px; }
    .float-btn { width: 48px; height: 48px; }
}

@media (max-width: 420px) {
    .materials-grid { grid-template-columns: 1fr; }
    .stat-number { font-size: 1.4rem; }
}

/* ---------- 22. 打印 ---------- */
@media print {
    .site-header, .nav-wrapper, .floating-buttons, .inquiry-overlay, .hero-media { display: none !important; }
    .hero, .footer { background: #fff !important; color: #000 !important; }
    body { font-size: 12pt; }
}

/* ---------- 23. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* ---------- 24. 视频筛选与元信息 ---------- */
.section-header--tight { margin-bottom: 34px; }

.video-filter { padding: 11px 20px; }
.video-filter[aria-pressed="true"] {
    background: var(--primary); color: #fff;
    border-color: var(--primary); box-shadow: var(--sh-2);
}

.video-placeholder video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.video-placeholder:has(video) { display: block; padding: 0; align-items: stretch; justify-content: flex-start; }

.video-category {
    display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .08em;
    color: var(--primary); background: var(--primary-l);
    padding: 3px 10px; border-radius: 100px; margin-bottom: 8px;
}

.video-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.video-stats span { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-3); }
.video-stats .icon { stroke: var(--text-3); }

/* ---------- 25. 会员中心入口 CTA ---------- */
.section-cta {
    margin-top: 28px;
    display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}

/* ---------- 26. 通栏按钮（补缺失类） ---------- */
.btn-block { width: 100%; }
