/* ===========================================================
   迪恩（天津）科技发展有限公司 — 官网样式
   响应式 / 现代 B2B 工业风 / 保留品牌红
   =========================================================== */

:root {
    --brand: #e0242b;          /* 工业深红（强调） */
    --brand-d: #b81d22;        /* 深红 hover */
    --brand-soft: #f3e7e8;
    --ink: #1b222b;            /* 石墨近黑文字 */
    --ink-2: #38434f;          /* 钢蓝灰（次级文字） */
    --muted: #61707f;          /* 钢灰 */
    --line: #dde2e8;
    --bg: #ffffff;
    --bg-soft: #eef1f4;        /* 钢灰浅底 */
    --navy: #1f2630;           /* 石墨深灰（页眉/页脚/深色区） */
    --steel: #3a4654;          /* 钢蓝 */
    --radius: 8px;
    --radius-sm: 6px;
    --shadow: 0 10px 30px rgba(31, 38, 48, .10);
    --shadow-lg: 0 18px 50px rgba(31, 38, 48, .16);
    --container: 1560px;
    --header-h: 92px;
    --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: .2px; }

.container { width: min(92%, var(--container)); margin: 0 auto; }
/* 桌面端整体按 90% 呈现（= 浏览器缩放到 90% 的紧凑观感）；移动端不受影响 */
@media (min-width: 992px) { html { zoom: 0.9; } }

/* 锚点滚动避开吸顶头部 */
section[id], body[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.ic { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 6px; font-size: 15px; font-weight: 600;
    cursor: pointer; border: 1.5px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(224, 36, 43, .28); }
.btn-primary:hover { background: var(--brand-d); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(224, 36, 43, .36); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-outline-light:hover { background: #fff; color: var(--brand); }

/* ---------- 页眉 ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .07); transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .35); }

.topbar { background: #14181e; color: #9aa3ae; font-size: 13px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar-tag { letter-spacing: .5px; }
.topbar-links { display: flex; gap: 22px; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; color: #c7cdd9; transition: color .2s; }
.topbar-links a:hover { color: #fff; }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand img { height: 62px; width: auto; background: #fff; padding: 6px 16px; border-radius: 8px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > a { padding: 10px 16px; font-size: 15.5px; font-weight: 600; color: #cdd3db; border-radius: 6px; transition: color .2s, background .2s; }
.main-nav > a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.main-nav > a.active { color: #fff; background: rgba(255, 255, 255, .12); }
.nav-cta { display: inline-flex; align-items: center; gap: 7px; margin-left: 10px; padding: 10px 18px !important;
    background: var(--brand); color: #fff !important; border-radius: 6px; box-shadow: 0 8px 18px rgba(224, 36, 43, .25); }
.nav-cta:hover { background: var(--brand-d) !important; }
.lang-switch { padding: 8px 14px; font-size: 14px; font-weight: 600; color: #cdd3db; border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 6px; margin-left: 6px; }
.lang-switch:hover { color: #fff; border-color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 40px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; height: 2.5px; width: 100%; background: #fff; border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
        radial-gradient(1100px 480px at 88% -8%, rgba(224, 36, 43, .18), transparent 60%),
        linear-gradient(165deg, #1c2531 0%, #28303d 100%);
    background-size: 32px 32px, 32px 32px, auto, auto; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 54px 24px 62px; }
.eyebrow { display: inline-block; font-size: 13.5px; font-weight: 700; letter-spacing: 1.5px; color: var(--brand);
    background: var(--brand-soft); padding: 6px 14px; border-radius: 6px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: 0; color: #fff; }
.hero h1 .accent { color: var(--brand); }
.hero-lead { color: #c3ccd8; font-size: 17px; margin: 22px 0 30px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .34); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .65); }

.hero-trust { display: flex; flex-wrap: wrap; gap: 14px 38px; margin-top: 42px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust strong { font-size: 30px; color: #fff; line-height: 1; }
.hero-trust strong span { color: var(--brand); }
.hero-trust em { font-style: normal; font-size: 13.5px; color: #9aa6b4; margin-top: 6px; }

.hero-media { position: relative; }
.hero-frame { position: relative; height: 420px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(.5deg); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hc-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hc-slide.is-active { opacity: 1; }
.hc-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; gap: 8px; justify-content: center; z-index: 2; }
.hc-dot { width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; transition: all .25s; }
.hc-dot.is-active { background: #fff; width: 22px; border-radius: 5px; }
.hero-carousel { cursor: pointer; }
.hc-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: none; border-radius: 50%;
    background: rgba(20, 24, 30, .4); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; z-index: 3;
    display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s, background .2s; }
.hero-carousel:hover .hc-arrow { opacity: 1; }
.hc-arrow:hover { background: rgba(20, 24, 30, .72); }
.hc-prev { left: 12px; }
.hc-next { right: 12px; }
.hero-badge { position: absolute; left: -18px; bottom: 30px; background: #fff; border-radius: 14px; padding: 16px 22px;
    box-shadow: var(--shadow-lg); border-left: 4px solid var(--brand); }
.hero-badge strong { display: block; font-size: 19px; color: var(--brand); }
.hero-badge span { font-size: 13px; color: var(--muted); }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: left; max-width: 760px; margin: 0 0 42px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { color: var(--muted); margin: 14px 0 0; font-size: 16px; }

/* ---------- 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-img { background: #fff; padding: 18px; display: flex; align-items: center; justify-content: center; height: 220px; border-bottom: 1px solid var(--line); }
.product-img img { max-height: 184px; max-width: 100%; width: auto; object-fit: contain; transition: transform .3s ease; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 18.5px; margin-bottom: 12px; }
.product-body ul { margin-bottom: 18px; }
.product-body li { position: relative; padding-left: 16px; color: var(--ink-2); font-size: 14px; margin-bottom: 7px; }
.product-body li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.product-link { margin-top: auto; color: var(--brand); font-weight: 600; font-size: 14.5px; }
.product-link:hover { color: var(--brand-d); }

.product-card--cta { background: linear-gradient(160deg, var(--navy), #1b2433); color: #fff; justify-content: center; align-items: flex-start; }
.product-card--cta .product-body { justify-content: center; }
.product-card--cta h3 { color: #fff; font-size: 20px; }
.product-card--cta p { color: #aeb6c4; font-size: 14.5px; margin: 12px 0 20px; }

/* ---------- 品牌 ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.brand-grid span img { max-height: 48px; max-width: 82%; object-fit: contain; }

/* 代理品牌区：深灰石墨底（白底 LOGO 卡片更跳） */
#brands { background: #232b36; }
#brands .section-head h2 { color: #fff; }
#brands .section-head p { color: #aab3c0; }

/* 品牌滚动 marquee */
.brand-marquee { overflow: hidden; padding: 16px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.brand-track { display: flex; width: max-content; animation: brand-scroll 45s linear infinite; }
.brand-marquee:hover .brand-track { animation-play-state: paused; }
.blogo { flex: 0 0 auto; width: 200px; height: 104px; margin-right: 18px; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s ease, box-shadow .25s ease, border-color .2s; }
.blogo:hover { transform: scale(1.14); box-shadow: var(--shadow-lg); border-color: var(--brand); position: relative; z-index: 2; }
.blogo img { max-height: 52px; max-width: 74%; object-fit: contain; }
@keyframes brand-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .brand-track { animation: none; flex-wrap: wrap; justify-content: center; } }
@media (max-width: 560px) {
    .brand-marquee { padding: 10px 0; }
    .blogo { width: 150px; height: 80px; margin-right: 12px; }
    .blogo img { max-width: 82%; }
}
.brand-grid span { display: flex; align-items: center; justify-content: center; text-align: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 12px;
    font-weight: 700; font-size: 15px; color: var(--ink-2); min-height: 78px; transition: all .2s; }
.brand-grid span:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---------- 服务优势 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.feature-card { text-align: center; padding: 30px 18px; border-radius: var(--radius); border: 1px solid var(--line);
    background: #fff; transition: all .25s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-ic { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px;
    border-radius: 16px; background: linear-gradient(160deg, var(--brand), var(--brand-d)); margin-bottom: 18px;
    box-shadow: 0 10px 22px rgba(224, 36, 43, .3); }
.feature-ic svg { width: 32px; height: 32px; fill: #fff; }
.feature-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- 关于我们 ---------- */
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.about-copy h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 22px; }
.about-copy p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 16px; }
.about-service { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.about-service h3 { font-size: 20px; margin-bottom: 22px; }
.service-steps li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.service-steps li:last-child { border-bottom: none; }
.step-no { flex: 0 0 auto; font-size: 18px; font-weight: 800; color: var(--brand); width: 36px; }
.service-steps strong { display: block; margin-bottom: 4px; font-size: 15.5px; }
.service-steps div { color: var(--muted); font-size: 14px; }

/* ---------- 常见问题 ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq-layout { display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: start; }
.faq-layout .faq { max-width: none; margin: 0; }
.faq-intro h2 { font-size: clamp(24px, 3vw, 32px); margin: 14px 0 16px; }
.faq-intro p { color: var(--muted); margin: 0 0 22px; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; gap: 24px; } }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: inherit;
    font-size: 16.5px; font-weight: 600; color: var(--ink); padding: 20px 56px 20px 22px; position: relative; }
.faq-mark { position: absolute; right: 22px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; background: var(--brand); border-radius: 2px; transition: transform .25s; }
.faq-mark::before { top: 7px; left: 0; width: 16px; height: 2.5px; }
.faq-mark::after { left: 7px; top: 0; width: 2.5px; height: 16px; }
.faq-item.open .faq-mark::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { margin: 0; padding: 0 22px 22px; color: var(--muted); font-size: 14.5px; }
.faq-item.open .faq-a { max-height: 420px; }

/* ---------- CTA 横幅 ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand), var(--brand-d)); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 56px 24px; flex-wrap: wrap; }
.cta-text h2 { font-size: clamp(24px, 3vw, 34px); }
.cta-text p { margin: 12px 0 0; opacity: .92; font-size: 16px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy); color: #aeb6c4; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding: 64px 24px 44px; }
.footer-logo { height: 40px; background: #fff; padding: 8px 12px; border-radius: 8px; margin-bottom: 18px; }
.footer-about p { font-size: 14px; line-height: 1.8; margin: 0; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-col a { display: block; color: #aeb6c4; font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--brand); }
.footer-contact .fc-line { font-size: 14px; margin: 0 0 12px; line-height: 1.7; }
.footer-contact .fc-line a { display: inline; padding: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px; font-size: 13px; flex-wrap: wrap; }
.footer-bottom .beian { color: #8a93a3; }
.footer-bottom .beian:hover { color: var(--brand); }

/* ---------- 返回顶部 ---------- */
.to-top { position: fixed; right: 26px; bottom: 26px; width: 48px; height: 48px; border-radius: 50%; border: none;
    background: var(--brand); color: #fff; cursor: pointer; box-shadow: 0 10px 24px rgba(224, 36, 43, .4);
    opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s; z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 22px; height: 22px; fill: #fff; margin: 0 auto; }
.to-top:hover { background: var(--brand-d); }

/* ---------- 进场动画 ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ===========================================================
   响应式
   =========================================================== */
@media (max-width: 1040px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
    .brand-grid { grid-template-columns: repeat(4, 1fr); }
    .hero-inner { gap: 36px; }
}

@media (max-width: 860px) {
    .topbar { display: none; }
    .nav-toggle { display: flex; }
    .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
        background: var(--navy); padding: 12px 20px 24px; gap: 2px; box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
        transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .25s ease; max-height: calc(100vh - var(--header-h)); overflow: auto; }
    .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
    .main-nav > a { padding: 14px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
    .nav-cta { margin: 14px 0 0; justify-content: center; }
    body.nav-open { overflow: hidden; }

    .hero-inner { grid-template-columns: 1fr; padding: 48px 24px 60px; }
    .hero-media { order: -1; }
    .hero-frame { transform: none; height: 260px; }
    .hero-badge { display: none; }

    .about-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    .section { padding: 56px 0; }
    .container { width: 92%; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .brand-grid { grid-template-columns: repeat(2, 1fr); }
    .product-img { height: 150px; padding: 18px; }
    .hero-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; margin-top: 34px; }
    .hero-trust strong { font-size: 26px; }
    .hero-inner { padding: 40px 20px 46px; }
    .hero-lead { font-size: 15.5px; margin: 16px 0 24px; line-height: 1.7; }
    .lead-brands { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
    .footer-about, .footer-contact { grid-column: 1 / -1; }
    .cta-actions { width: 100%; }
    .cta-actions .btn { flex: 1; }
    .hero h1 { font-size: 32px; }
}
