/* 无锡尤卉防水 · 站点样式
   配色：紫色系（深靛紫 #382E73 + 亮紫 #5B4BC4 + 淡薰衣草 #F4F1FB）
   结构：基础变量 → 布局 → 组件 → 响应式
*/

:root {
  /* 紫色阶（由深到浅） */
  --brand-950: #0d0a1c;
  --brand-900: #151029;
  --brand-800: #1d1638;
  --brand-700: #2a1f55;
  --brand-600: #382e73;
  --brand-500: #4b3d8f;
  --brand-400: #6353b4;
  --brand-300: #8e7fd6;
  --brand-200: #c0b6e8;
  --brand-100: #e4dff5;
  --brand-50: #f4f1fb;

  --bg: var(--brand-900);
  --panel: var(--brand-800);
  --ink: #1a1530;
  --muted: #5c5670;
  --line: #e4dfee;
  --line-dark: rgba(255, 255, 255, 0.16);
  --accent: #5b4bc4;
  --accent-dark: #453796;
  --accent-soft: #f1edfb;
  --sand: var(--brand-50);
  --white: #fcfbfe;
  --max: 1180px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--accent); color: #fff; padding: 10px 16px;
}
.skip:focus { left: 8px; top: 8px; }

/* 头部导航 */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(21, 16, 41, 0.97);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: saturate(140%) blur(6px);
}

.nav {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 22px;
}

.brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; letter-spacing: 0.02em; }
.brand img { width: 34px; height: auto; }
.brand small { display: block; color: var(--brand-200); font-size: 10px; letter-spacing: 0.14em; font-weight: 400; }

.navlinks { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.navlinks a { color: #d5cfe8; padding: 4px 0; border-bottom: 2px solid transparent; }
.navlinks a:hover { color: #fff; border-bottom-color: var(--brand-300); }
.navlinks a[aria-current="page"] { color: #fff; border-bottom-color: var(--brand-200); }

.nav-phone {
  color: #fff; font-weight: 700; font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
  padding: 7px 14px; white-space: nowrap;
}
.nav-phone:hover { background: var(--accent); border-color: var(--accent); }

/* 首屏 */
.hero { position: relative; background: var(--bg); color: #fff; overflow: hidden; min-height: 620px; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.1s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slides::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13, 10, 28, 0.97) 0%, rgba(21, 16, 41, 0.88) 38%, rgba(21, 16, 41, 0.26) 74%, rgba(21, 16, 41, 0.44) 100%);
}
.hero-inner {
  position: relative; z-index: 2; max-width: var(--max); margin: 0 auto;
  padding: 96px 24px 84px; min-height: 620px; display: flex; align-items: center;
}
.hero-copy { max-width: 620px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.16; margin: 16px 0 18px; letter-spacing: -0.01em; }
.hero p { color: #d3cde6; font-size: 17px; max-width: 560px; }

.eyebrow {
  color: var(--brand-200); font-weight: 700; letter-spacing: 0.14em;
  font-size: 12px; text-transform: uppercase;
}
.kicker {
  color: var(--brand-400); font-weight: 700; letter-spacing: 0.14em;
  font-size: 12px; text-transform: uppercase;
}
.section-dark .kicker { color: var(--brand-200); }

.hero-dots { position: absolute; right: 34px; bottom: 30px; display: flex; gap: 8px; z-index: 3; }
.hero-dots button { width: 26px; height: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, 0.45); cursor: pointer; }
.hero-dots button.is-active { width: 48px; background: var(--brand-200); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 26px; }
.hotline { color: #d3cde6; font-size: 14px; }
.hotline a { color: #fff; font-weight: 700; }

/* 按钮 */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; border: 1px solid transparent; line-height: 1.4;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }

/* 面包屑 */
.breadcrumb {
  max-width: var(--max); margin: 0 auto; padding: 16px 24px 0;
  font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px;
}
.breadcrumb a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb span[aria-current] { color: var(--ink); }

/* 版面 */
.section { max-width: var(--max); margin: 0 auto; padding: 64px 24px; }
.section-tight { padding-top: 40px; }
.section-alt { background: var(--sand); }
.section-alt > .inner { max-width: var(--max); margin: 0 auto; padding: 64px 24px; }
.section-dark {
  background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-900) 55%, var(--brand-950) 100%);
  color: #fff;
}
.section-dark > .inner { max-width: var(--max); margin: 0 auto; padding: 64px 24px; }

h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.22; margin: 8px 0 16px; letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.3; margin: 0 0 14px; }
h3 { font-size: 19px; line-height: 1.4; margin: 0 0 8px; }
.section > h2, .section-alt > .inner > h2, .section-dark > .inner > h2 { margin-top: 36px; }
.section > h2:first-child, .section-alt > .inner > h2:first-child, .section-dark > .inner > h2:first-child { margin-top: 0; }
.lead { font-size: 17px; color: var(--muted); max-width: 780px; }
.section-dark .lead, .section-dark p { color: #c9c2e2; }
.section-dark h2 { color: #fff; }

/* 卡片 */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px; margin-top: 28px;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 10px 28px rgba(30, 22, 64, 0.06);
  display: flex; flex-direction: column;
}
.card h3 { color: var(--ink); }
.card p { color: var(--muted); font-size: 15px; }
.card .links { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.card .links a { color: var(--accent-dark); font-weight: 700; }
.card .links a:hover { text-decoration: underline; }

/* 数字 */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 26px 0 8px; }
.stat { background: #fff; border-left: 3px solid var(--brand-400); padding: 16px 18px; color: var(--muted); font-size: 14px; }
.stat strong { display: block; color: var(--ink); font-size: 26px; line-height: 1.2; margin-bottom: 2px; }

/* 表格 */
.table-wrap {
  overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: var(--radius);
  background:
    linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center,
    linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right center,
    radial-gradient(farthest-side at 0 50%, rgba(26, 21, 48, 0.16), rgba(26, 21, 48, 0)) left center,
    radial-gradient(farthest-side at 100% 50%, rgba(26, 21, 48, 0.16), rgba(26, 21, 48, 0)) right center;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; min-width: 560px; }
.table-wrap--wide table { min-width: 1000px; }
caption { text-align: left; padding: 12px 14px; color: var(--muted); font-size: 13px; caption-side: top; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #ede9f8; font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* 提示 / 说明块 */
.notice {
  background: var(--accent-soft); border-left: 3px solid var(--brand-400);
  padding: 14px 18px; margin: 22px 0; font-size: 14px; color: #3a3060; border-radius: 0 4px 4px 0;
}
.note { color: var(--muted); font-size: 13px; }

/* 报价公式 */
.formula {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand-400);
  border-radius: 4px; padding: 16px 18px; margin: 20px 0; font-size: 16px;
}
.formula strong { color: var(--ink); }

/* 图文两栏 */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; margin-top: 26px; }
.split .figure { margin: 0; }
.trust-list { list-style: none; padding: 0; margin: 0 0 18px; }
.trust-list li { position: relative; padding-left: 24px; margin-bottom: 12px; color: var(--muted); }
.trust-list li strong { color: var(--ink); }
.trust-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand-400); font-weight: 700; }
.nowrap { white-space: nowrap; }
.tm-logo {
  width: 72px; height: 72px; object-fit: contain;
  background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 6px;
}

/* 案例 */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 26px; }
.case-grid--2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.case-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.case-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case-card .body { padding: 18px 20px 22px; }
.case-card dl { margin: 10px 0 0; display: grid; grid-template-columns: 76px 1fr; gap: 4px 10px; font-size: 14px; }
.case-card dt { color: var(--muted); }
.case-card dd { margin: 0; }
.case-card .links { margin-top: 14px; font-weight: 700; color: var(--accent-dark); font-size: 14px; }

/* 图文 */
.figure { margin: 24px 0; }.figure img { width: auto; max-width: 100%; max-height: 620px; margin: 0 auto; border-radius: var(--radius); border: 1px solid var(--line); }
.figure figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }
figure { margin: 0; }
figcaption { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* 案例图集 */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin-top: 24px;
}
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.gallery figcaption { margin-top: 6px; }

/* 胶囊链接 */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.pills a {
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  font-size: 14px; background: #fff;
}
.pills a:hover { border-color: var(--brand-400); color: var(--accent-dark); }

/* 证书与品牌标识 */
.cert-grid .card, .logo-card { padding: 14px; text-align: center; align-items: center; }
.cert-grid img {
  width: 100%; max-height: 260px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 4px; margin-bottom: 10px;
}
.logo-grid .card { justify-content: center; }
.logo-grid img { height: 76px; width: 100%; object-fit: contain; margin-bottom: 12px; }
.case-card h2 { font-size: 20px; margin: 0 0 6px; }
.case-card .body h3 { font-size: 19px; }

/* FAQ */
.faq { margin-top: 22px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 17px; padding: 14px 28px 14px 0;
  position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--brand-400); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-right: 24px; margin: 0 0 16px; }
.faq + h2 { margin-top: 40px; }

/* 页脚 */
footer { background: var(--brand-950); color: #c9c2e2; padding: 48px 24px 26px; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-grid strong { color: #fff; display: block; margin-bottom: 10px; font-size: 15px; }
.footer-grid p { margin: 0 0 8px; font-size: 14px; }
.footer-grid a { color: #d5cfe8; }
.footer-grid a:hover { color: var(--brand-200); }
.footer-links { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.hours { color: var(--brand-200); font-weight: 700; }
.legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line-dark); font-size: 13px; color: #9c93b8; }
.legal a { color: #9c93b8; text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: #d5cfe8; }

/* 交互反馈 */
.card, .case-card, .stat, .pills a, .btn, .nav-phone, .logo-card, .gallery figure {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease,
    background-color 0.18s ease, color 0.18s ease;
}
.card:hover {
  border-color: var(--brand-300);
  box-shadow: 0 16px 36px rgba(30, 22, 64, 0.13);
  transform: translateY(-2px);
}
.case-card:hover {
  border-color: var(--brand-300);
  box-shadow: 0 18px 40px rgba(30, 22, 64, 0.15);
  transform: translateY(-3px);
}
.case-card img { transition: transform 0.45s ease; }
.case-card:hover img { transform: scale(1.04); }
.case-card .links a { transition: color 0.15s ease; }
.case-card:hover .links a { color: var(--accent); }
.stat:hover {
  border-left-color: var(--brand-500);
  box-shadow: 0 8px 20px rgba(30, 22, 64, 0.08);
  transform: translateY(-1px);
}
.pills a:hover {
  border-color: var(--brand-300);
  box-shadow: 0 6px 14px rgba(30, 22, 64, 0.08);
  transform: translateY(-1px);
}
tr { transition: background-color 0.15s ease; }
tbody tr:hover td { background: #faf8ff; }
.faq details:hover { background: #fbfaff; }
.faq summary { transition: color 0.15s ease; }
.faq summary:hover { color: var(--accent-dark); }
.gallery img { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gallery figure:hover img {
  transform: scale(1.02);
  box-shadow: 0 12px 26px rgba(30, 22, 64, 0.16);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(91, 75, 196, 0.3); }
.btn:active { transform: translateY(0); box-shadow: none; }
.nav-phone:hover { box-shadow: 0 8px 18px rgba(91, 75, 196, 0.35); }
.hero-dots button { transition: background-color 0.18s ease, width 0.18s ease; }
.hero-dots button:hover { background: rgba(255, 255, 255, 0.85); }
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 3px;
}
.tm-logo:hover { border-color: var(--brand-300); box-shadow: 0 6px 14px rgba(30, 22, 64, 0.1); }

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .card:hover, .case-card:hover, .stat:hover, .btn-primary:hover, .pills a:hover,
  .case-card:hover img, .gallery figure:hover img { transform: none; }
}

/* 响应式 */
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; gap: 10px 12px; padding: 12px 18px; }
  .navlinks { margin-left: 0; width: 100%; gap: 8px 14px; font-size: 13px; }
  .nav-phone { margin-left: auto; }
  .hero { min-height: 520px; }
  .hero-inner { min-height: 520px; padding: 64px 20px 72px; }
  .hero-slides::after { background: linear-gradient(180deg, rgba(21, 16, 41, 0.6) 0%, rgba(21, 16, 41, 0.88) 58%, rgba(21, 16, 41, 0.96) 100%); }
  .hero-dots { right: 20px; bottom: 20px; }
  .section, .section-alt > .inner, .section-dark > .inner { padding: 44px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  table { min-width: 0; }
  th, td { padding: 10px; font-size: 14px; }
  .table-wrap--wide table { min-width: 560px; }
  .split { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .navlinks { font-size: 12.5px; gap: 6px 12px; }
  .brand small { display: none; }
  .hero h1 { font-size: 30px; }
  .actions .btn { width: 100%; text-align: center; }
  .card dl, .case-card dl { grid-template-columns: 68px 1fr; }
}

/* 演示模式横幅 */
.demo-banner{position:relative;z-index:60;background:#b45309;color:#fff;text-align:center;padding:8px 16px;font-size:14px;line-height:1.5}

/* 单栏图文区：无配图时避免空列 */
.split > :only-child { grid-column: 1 / -1; }
