/* ==========================================================================
   迪森（DISON）地坪官网 · 主样式表
   设计令牌 / Reset / Base / 组件 / 布局 / 响应式
   ========================================================================== */

/* ===== 设计令牌 ===== */
:root {
  --c-primary: #1E3A5F;
  --c-primary-dark: #16294A;
  --c-accent: #E8890C;
  --c-accent-dark: #C97408;
  --c-text: #2B3440;
  --c-text-muted: #6B7280;
  --c-bg: #FFFFFF;
  --c-bg-light: #F4F6F8;
  --c-border: #E5E9EE;

  --font-cn: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-en: "Inter", "Segoe UI", Arial, sans-serif;

  --container: 1200px;
  --radius: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 3px rgba(27, 42, 65, .08);
  --shadow-md: 0 6px 20px rgba(27, 42, 65, .10);
  --shadow-lg: 0 16px 40px rgba(27, 42, 65, .16);

  --header-h: 72px;
  --transition: .2s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; color: var(--c-primary-dark); }

/* ===== 布局工具 ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; }
.section--light { background: var(--c-bg-light); }
.section--primary { background: var(--c-primary); color: #fff; }
.section--primary .section__title { color: #fff; }

.section__head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section__title { font-size: 32px; margin-bottom: 12px; }
.section__sub { font-size: 16px; color: var(--c-text-muted); }
.section__title::after {
  content: "";
  display: block;
  width: 48px; height: 4px;
  background: var(--c-accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--c-primary); border: 2px solid var(--c-primary); }
.btn--ghost:hover { background: var(--c-primary); color: #fff; }
.btn--lg { padding: 15px 34px; font-size: 18px; }
.btn .ico { width: 20px; height: 20px; flex: none; }

/* ===== 顶部导航 ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--transition);
}
.header.is-scrolled { box-shadow: var(--shadow-md); }

.nav { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__icon { width: 40px; height: 40px; }
.brand__name { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name-cn { font-size: 20px; font-weight: 700; color: var(--c-primary-dark); letter-spacing: 2px; }
.brand__name-en { font-family: var(--font-en); font-size: 11px; letter-spacing: 4px; color: var(--c-text-muted); text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav__link {
  padding: 8px 12px;
  font-size: 15px;
  color: var(--c-text);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: var(--c-accent); background: var(--c-bg-light); }
.nav__link.is-active { color: var(--c-accent); font-weight: 600; }

.nav__cta { flex: none; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--c-primary-dark); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 96px 0;
  background:
    linear-gradient(120deg, rgba(22, 41, 74, .95), rgba(30, 58, 95, .88)),
    url("../images/hero-bg.webp") center/cover no-repeat;
  color: #fff;
}
.hero__inner { max-width: 720px; }
.hero__kicker { font-family: var(--font-en); font-size: 14px; letter-spacing: 3px; color: var(--c-accent); text-transform: uppercase; margin-bottom: 16px; }
.hero__title { font-size: 44px; line-height: 1.25; color: #fff; margin-bottom: 20px; }
.hero__title em { font-style: normal; color: var(--c-accent); }
.hero__sub { font-size: 18px; color: rgba(255,255,255,.85); margin-bottom: 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* 内页 Hero（较矮标题） */
.hero--page { padding: 56px 0; }
.hero--page .hero__title { font-size: 36px; }

/* ===== 优势数字 ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 32px 16px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.stat__num { font-family: var(--font-en); font-size: 40px; font-weight: 700; color: var(--c-accent); }
.stat__label { margin-top: 6px; font-size: 15px; color: var(--c-text-muted); }

/* ===== 卡片 ===== */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-bg-light); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 20px 22px; }
.card__tag { display: inline-block; font-size: 12px; color: var(--c-accent); background: rgba(232,137,12,.10); padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.card__title { font-size: 19px; margin-bottom: 8px; }
.card__text { font-size: 14px; color: var(--c-text-muted); }

/* ===== 工艺流程 ===== */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; text-align: center; padding: 28px 16px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.step__num { width: 44px; height: 44px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-family: var(--font-en); font-size: 20px; font-weight: 700; color: #fff; background: var(--c-primary); border-radius: 50%; }
.step__title { font-size: 17px; margin-bottom: 6px; }
.step__text { font-size: 13px; color: var(--c-text-muted); }

/* ===== CTA 条 ===== */
.cta-bar {
  background: linear-gradient(120deg, var(--c-primary-dark), var(--c-primary));
  color: #fff;
  padding: 48px 0;
}
.cta-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-bar__title { font-size: 26px; color: #fff; margin-bottom: 6px; }
.cta-bar__sub { color: rgba(255,255,255,.8); }
.cta-bar__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== 悬浮按钮（移动端） ===== */
.fab { position: fixed; right: 18px; bottom: 24px; z-index: 90; display: none; flex-direction: column; gap: 12px; }
.fab__btn {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.fab__btn--wechat { background: #07C160; }
.fab__btn .ico { width: 24px; height: 24px; }

/* ===== 页脚 ===== */
.footer { background: var(--c-primary-dark); color: rgba(255,255,255,.75); padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand .brand__name-cn { color: #fff; }
.footer__desc { margin-top: 14px; font-size: 14px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer__link { display: block; font-size: 14px; padding: 5px 0; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer__link:hover { color: var(--c-accent); }
.footer__contact li { font-size: 14px; padding: 5px 0; }
.footer__contact a:hover { color: var(--c-accent); }
.footer__bottom { padding-top: 22px; text-align: center; font-size: 13px; color: rgba(255,255,255,.5); }

/* ===== 色卡选色 ===== */
.color-families { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.family-btn { padding: 8px 20px; border-radius: 20px; border: 1px solid var(--c-border); font-size: 14px; color: var(--c-text); transition: all var(--transition); }
.family-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.family-btn.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.color-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.color-swatch {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}
.color-swatch:hover { transform: translateY(-3px); }
.color-swatch.is-selected { border-color: var(--c-accent); }
.color-swatch__block { display: block; height: 72px; }
.color-swatch__code { display: block; padding: 8px 10px; font-family: var(--font-en); font-size: 13px; font-weight: 600; color: var(--c-primary-dark); }
.color-swatch__name { display: block; padding: 0 10px 10px; font-size: 12px; color: var(--c-text-muted); }

.color-preview { display: flex; gap: 28px; align-items: stretch; margin-top: 40px; padding: 28px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.color-preview__floor { flex: 1; min-height: 160px; border-radius: var(--radius); background: var(--c-bg-light); border: 1px solid var(--c-border); }
.color-preview__info { flex: none; width: 240px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.color-preview__label { font-size: 14px; color: var(--c-text-muted); }
.color-preview__code { font-family: var(--font-en); font-size: 30px; font-weight: 700; color: var(--c-primary-dark); }

/* ===== FAQ 折叠 ===== */
.faq-groups { max-width: 860px; margin: 0 auto; }
.faq-group { margin-bottom: 40px; }
.faq-group__title { font-size: 22px; margin-bottom: 16px; padding-left: 14px; border-left: 4px solid var(--c-accent); }
.faq-item { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-item__q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item__q .arrow { flex: none; width: 14px; height: 14px; border-right: 2px solid var(--c-accent); border-bottom: 2px solid var(--c-accent); transform: rotate(45deg); transition: transform var(--transition); }
.faq-item.is-open .arrow { transform: rotate(-135deg); }
.faq-item__a { display: none; padding: 0 22px 20px; font-size: 15px; color: var(--c-text-muted); border-top: 1px dashed var(--c-border); padding-top: 14px; }
.faq-item.is-open .faq-item__a { display: block; }

/* ===== 联系我们 ===== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { text-align: center; padding: 40px 24px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.contact-card__icon { width: 56px; height: 56px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--c-bg-light); }
.contact-card__icon .ico { width: 26px; height: 26px; color: var(--c-accent); }
.contact-card__label { font-size: 14px; color: var(--c-text-muted); margin-bottom: 8px; }
.contact-card__value { font-family: var(--font-en); font-size: 24px; font-weight: 700; color: var(--c-primary-dark); }
.contact-card__value--cn { font-family: var(--font-cn); font-size: 20px; }

/* ===== 关于我们 ===== */
.about-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-layout__text p { margin-bottom: 16px; color: var(--c-text-muted); }
.about-layout__gallery { display: flex; flex-direction: column; gap: 16px; }
.about-layout__gallery img { display: block; width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert { aspect-ratio: 4 / 3; background: var(--c-bg-light); border: 1px dashed var(--c-border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--c-text-muted); font-size: 14px; }
.cert--photo { aspect-ratio: auto; background: #fff; border: 1px solid var(--c-border); flex-direction: column; padding: 16px; gap: 12px; }
.cert--photo img { display: block; width: 100%; height: 210px; object-fit: contain; }
.cert--photo .cert__name { font-size: 14px; color: var(--c-text-muted); }

/* ===== 产品详情页 ===== */
.breadcrumb { font-size: 14px; color: var(--c-text-muted); margin: 20px 0 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--c-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-accent); }

.product-intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.product-intro__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.product-intro__img img { display: block; width: 100%; }
.product-intro__tag { display: inline-block; font-size: 13px; color: var(--c-accent-dark); background: rgba(232,137,12,.12); padding: 5px 14px; border-radius: 999px; margin-bottom: 14px; }
.product-intro__title { font-size: 30px; margin-bottom: 16px; color: var(--c-primary-dark); line-height: 1.3; }
.product-intro__desc { color: var(--c-text-muted); margin-bottom: 24px; line-height: 1.8; font-size: 16px; }
.product-intro__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.feature-list { list-style: none; display: grid; gap: 12px; margin: 24px 0 0; }
.feature-list li { position: relative; padding-left: 28px; color: var(--c-text); line-height: 1.7; font-size: 15px; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--c-accent); font-weight: 700; }

.spec-wrap { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 24px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); min-width: 480px; }
.spec-table th, .spec-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--c-border); font-size: 15px; }
.spec-table th { background: var(--c-bg-light); color: var(--c-primary-dark); font-weight: 600; width: 180px; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-note { font-size: 13px; color: var(--c-text-muted); margin-top: 12px; line-height: 1.7; }

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip { display: inline-block; padding: 8px 16px; background: var(--c-bg-light); border: 1px solid var(--c-border); border-radius: 999px; font-size: 14px; color: var(--c-text); }

/* ===== 动画与交互增强 ===== */

/* 通用入场动画 */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 滚动进入动画：由 JS 添加 .reveal，进入视口加 .is-visible */
.reveal { opacity: 0; }
.reveal.is-visible { animation: fadeUp .7s cubic-bezier(.22, .61, .36, 1) forwards; }

/* Hero 首屏入场（逐元素递进） */
.hero__inner > * { animation: fadeUp .7s cubic-bezier(.22, .61, .36, 1) both; }
.hero__kicker  { animation-delay: .05s; }
.hero__title   { animation-delay: .15s; }
.hero__sub     { animation-delay: .30s; }
.hero__actions { animation-delay: .45s; }

/* 导航链接：悬浮下划线滑动 */
.nav__link { position: relative; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  border-radius: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s cubic-bezier(.22, .61, .36, 1);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

/* 品牌 Logo 悬浮 */
.brand__icon { transition: transform .4s cubic-bezier(.22, .61, .36, 1); }
.brand:hover .brand__icon { transform: rotate(-8deg) scale(1.08); }

/* 导航 CTA 电话图标轻摆 */
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-11deg); }
  45% { transform: rotate(8deg); }
  60% { transform: rotate(-6deg); }
  75% { transform: rotate(3deg); }
}
.nav__cta .ico { transform-origin: 50% 50%; }
.nav__cta:hover .ico { animation: ring .7s ease; }

/* 卡片悬浮增强 */
.card { transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s ease; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card__tag { transition: background .3s ease, color .3s ease; }
.card:hover .card__tag { background: var(--c-accent); color: #fff; }

/* 优势数字卡悬浮 */
.stat { transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s ease; }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat__num { transition: transform .3s cubic-bezier(.22, .61, .36, 1); }
.stat:hover .stat__num { transform: scale(1.1); }

/* 工艺步骤悬浮 */
.step { transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s ease; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step__num { transition: background .3s ease, transform .3s cubic-bezier(.22, .61, .36, 1); }
.step:hover .step__num { background: var(--c-accent); transform: scale(1.12); }

/* 联系卡悬浮 */
.contact-card { transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s ease; }
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.contact-card__icon { transition: transform .3s cubic-bezier(.22, .61, .36, 1), background .3s ease; }
.contact-card:hover .contact-card__icon { transform: scale(1.12); background: rgba(232, 137, 12, .14); }

/* FAQ 项悬浮 */
.faq-item { transition: border-color .25s ease, box-shadow .25s ease; }
.faq-item:hover { border-color: var(--c-accent); box-shadow: var(--shadow-sm); }

/* 主按钮悬浮光晕 */
.btn--primary:hover { box-shadow: 0 10px 26px rgba(232, 137, 12, .38); }

/* 底部 CTA 主按钮呼吸光晕 */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 137, 12, .32); }
  50%      { box-shadow: 0 0 0 12px rgba(232, 137, 12, 0); }
}
.cta-bar .btn--primary { animation: pulseGlow 2.6s ease-in-out infinite; }

/* 移动端：隐藏导航下划线（纵向菜单用文字高亮即可） */
@media (max-width: 768px) {
  .nav__link::after { display: none; }
}

/* 无障碍：尊重系统「减少动态」偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .section { padding: 56px 0; }
  .hero { padding: 72px 0; }
  .hero__title { font-size: 36px; }
  .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .nav__links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
    padding: 12px 16px 20px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__link { padding: 12px; font-size: 16px; border-bottom: 1px solid var(--c-bg-light); }
  .nav__cta { margin-left: auto; }
  .nav__cta .btn { padding: 9px 16px; font-size: 14px; }
  .nav__toggle { display: flex; }

  .hero { padding: 56px 0; }
  .hero__title { font-size: 30px; }
  .hero__sub { font-size: 16px; }
  .hero--page .hero__title { font-size: 28px; }
  .section__title { font-size: 26px; }

  .grid--4, .grid--3, .stats, .steps, .contact-grid, .cert-grid { grid-template-columns: 1fr; }
  .cert--photo img { height: auto; max-height: 320px; }
  .product-intro { grid-template-columns: 1fr; gap: 28px; }
  .product-intro__title { font-size: 24px; }
  .cta-bar .container { flex-direction: column; text-align: center; }
  .color-preview { flex-direction: column; }
  .color-preview__info { width: 100%; }
  .cta-bar__actions { justify-content: center; }
  .fab { display: flex; }
}

@media (max-width: 400px) {
  .hero__actions .btn { width: 100%; }
  .btn--lg { padding: 14px 20px; font-size: 16px; }
}
