/* ============ 台州浩然机械 · 站点样式 ============ */
:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #182335;
  --muted: #5b6a7d;
  --line: #dde4ec;

  --navy-950: #0a1524;
  --navy-900: #0d1c30;
  --navy-800: #122843;
  --amber: #f59e0b;
  --amber-deep: #b26a00;

  --c-blue: #3b82f6;
  --c-amber: #d97b06;
  --c-cyan: #14b8a6;
  --c-green: #16a34a;
  --c-violet: #8b5cf6;

  --radius-lg: 16px;
  --shadow: 0 8px 24px rgba(16, 35, 61, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding-inline: 20px; }

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-wrap { position: relative; display: flex; align-items: center; gap: 16px; padding-block: 14px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-logo {
  height: 42px; width: auto;
  display: block; margin-bottom: 6px;
}
.brand-text {
  color: #fff; font-weight: 700; letter-spacing: 0.4px; line-height: 1.15; display: block;
}
.brand-text small { display: block; font-size: 0.62rem; letter-spacing: 3px; color: #9fb0c4; font-weight: 500; }

.nav-toggle {
  background: none; border: none; color: #fff; font-size: 1.35rem; cursor: pointer; line-height: 1;
}
.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav-link {
  color: #d7e2f0; text-decoration: none; padding: 8px 13px; border-radius: 8px; font-size: 0.95rem;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-link.active { color: #ffd9a8; background: rgba(245, 158, 11, 0.16); font-weight: 600; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; text-decoration: none; font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--amber); color: #241303; }
.btn-primary:hover { background: #ffb02e; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(245, 158, 11, 0.35); }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-block { width: 100%; margin-top: 8px; }

/* ---------- 消息提示 ---------- */
.msg-wrap { margin-top: 16px; }
.alert { padding: 13px 18px; border-radius: 10px; margin-bottom: 10px; font-weight: 500; }
.alert-success { background: #e7f6ec; color: #2c6a45; border: 1px solid #bfe3cd; }
.alert-error, .alert-danger { background: #fdecec; color: #8a3b3b; border: 1px solid #f3c1c4; }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 0; /* 形成堆叠上下文，让 hero 内负 z 粒子层显示在底色之上、内容之下 */
  padding: calc(64px / 3) 0 calc(56px / 3); /* 上下间距缩短为原来的三分之一 */
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 52px),
    linear-gradient(135deg, var(--navy-950) 0%, #142c4d 60%, #1b3a63 100%);
}
.hero-grid { display: flex; justify-content: center; } /* 文字栏已移除，轮播图居中显示 */
.hero-art { width: 100%; max-width: 560px; } /* 轮播盒宽度封顶，高度由 aspect-ratio 4/3 决定并居中 */
.eyebrow { color: var(--amber); font-weight: 700; letter-spacing: 2px; margin-bottom: 10px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.18; margin: 0 0 16px; }
.hero .accent { color: var(--amber); }
.lead { color: #c7d3e6; max-width: 500px; font-size: 1.02rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-art img { width: 100%; height: auto; max-width: 560px; margin-inline: auto; }

.stats-bar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 52px; padding: 30px 0; text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.stat { padding-inline: 12px; }
.stat strong { display: block; color: #fff; font-size: 1.9rem; letter-spacing: -1px; line-height: 1.1; }
.stat small { font-size: 0.62em; color: #f5c877; margin-left: 3px; }
.stat span { display: block; color: #a8b8cf; font-size: 0.92rem; margin-top: 4px; }

.stats-bar--light {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); margin: 34px auto 0; max-width: 980px;
  padding: 26px 0; border-top: none;
}
.stats-bar--light .stat strong { color: var(--ink); }
.stats-bar--light .stat small { color: var(--amber-deep); }
.stats-bar--light .stat span { color: var(--muted); }

/* ---------- Section 通用 ---------- */
.section { padding: 78px 0; }
.section.dark { background: var(--navy-900); }

.section-head { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.kicker { color: var(--amber-deep); font-weight: 700; letter-spacing: 3px; font-size: 0.85rem; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin: 0 0 12px; color: var(--ink); }
.section.dark .kicker { color: #ffd9a8; }
.section-dark-light-text {}
.light-text { color: #fff !important; }
.sub { color: var(--muted); font-size: 1.0rem; margin-top: 4px; }
.light-sub { color: #b9c7dd !important; }

/* ---------- 卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit;
}
a.card:hover { transform: translateY(-3px); border-color: #c8d5e3; }
.card h3 { font-size: 1.02rem; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.6; }

.c-blue .card-icon, .c-blue-text { color: var(--c-blue); }
.c-amber .card-icon, .c-amber-text { color: var(--c-amber); }
.c-cyan .card-icon, .c-cyan-text { color: var(--c-cyan); }
.c-green .card-icon, .c-green-text { color: var(--c-green); }
.c-violet .card-icon, .c-violet-text { color: var(--c-violet); }

.card-icon {
  width: 52px; height: 52px; border-radius: 13px; background: #eef3fa;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.card-icon svg { width: 40px; height: 40px; }

/* ---------- Chips / 标签 ---------- */
.chip {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 0.8rem;
  background: #eef3f8; color: #35507a; border: 1px solid #d6e0ea; margin-right: 8px;
}

/* ---------- 迷你步骤（首页） ---------- */
.mini-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mini-step { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; padding: 20px; }
.mini-step h4 { margin: 10px 0 6px; color: #fff; font-size: 1rem; }
.mini-step p { margin: 0; color: #a8b8cf; font-size: 0.9rem; line-height: 1.55; }

.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--navy-800); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none;
}
.mini-step .step-num { width: 34px; height: 34px; background: transparent; border: 2px solid var(--amber); color: #ffd9a8; }

.center-actions { text-align: center; margin-top: 36px; }

/* ---------- 特性网格（首页） ---------- */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.feature h3 { margin: 0 0 10px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  background: linear-gradient(120deg, var(--navy-950), #17335c); border-radius: 18px;
  padding: 32px 36px; margin-top: 40px; box-shadow: var(--shadow);
}
.cta-banner h2 { color: #fff; font-size: 1.3rem; margin: 0 0 8px; }
.cta-banner p { color: #b9c7dd; margin: 0; max-width: 560px; }

/* ---------- 关于页：正文面板（居中背景板） ---------- */
.prose {
  max-width: 840px; margin: 0 auto; padding: 26px 34px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.prose p { margin: 0; line-height: 1.85; text-align: center; color: #4a5b70; }
.prose p + p { margin-top: 14px; }

/* ---------- 产品页 ---------- */
.product-block {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.product-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.product-head h3 { font-size: 1.25rem; margin: 0; }
.chip { margin-right: 8px; }
.product-block p:first-of-type { max-width: 760px; color: #3d4f66; line-height: 1.7; }
.spec-list { margin: 14px 0 0; padding-left: 20px; }
.spec-list li { line-height: 1.8; font-size: 0.95rem; color: #4a5b70; }
.product-highlight { border-color: #d9c9f2; background: linear-gradient(180deg, #fbfaff, #ffffff); }

/* ---------- 流程页：时间线 ---------- */
.timeline { list-style: none; margin: 0 auto; padding-left: 42px; max-width: 860px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; background: #d9e1ea; }
.timeline-step { position: relative; margin-bottom: 30px; }
.timeline-step .step-num { position: absolute; left: -50px; top: 2px; box-shadow: var(--shadow); }
.step-body h3 { margin: 0 0 8px; font-size: 1.1rem; }
.step-body p { margin: 0; color: #4a5b70; line-height: 1.7; max-width: 640px; }

/* ---------- 关于页：年份时间线（四位数字年份用胶囊徽章） ---------- */
.timeline--years { padding-left: 58px; }
.timeline--years::before { left: 26px; }
.timeline--years .step-num {
  left: -58px; top: 3px;
  width: auto; height: auto; min-width: 54px; padding: 4px 10px; border-radius: 999px;
  font-size: 0.8rem; letter-spacing: 0.5px;
}

/* ---------- 质量页：表格与流程 ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 20px; }
.spec-table th, .spec-table td { padding: 14px 18px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.spec-table thead th { background: #eef3f8; color: var(--ink); font-weight: 700; }
.spec-table tbody tr:nth-child(even) { background: #fafcfe; }

.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.flow-step .step-num { display: inline-block; width: auto; height: auto; border-radius: 999px; padding: 6px 13px; font-size: 0.85rem; letter-spacing: 1px; margin-bottom: 12px; }
.flow-step h4 { margin: 0 0 6px; }
.flow-step p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

/* ---------- 案例页 ---------- */
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.case-card .chip { margin-bottom: 14px; display: inline-block; }
.case-result { border-top: 1px dashed var(--line); padding-top: 12px; color: var(--amber-deep) !important; font-weight: 700; font-size: 0.92rem; margin-top: 14px; }

/* ---------- 联系页：表单 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; max-width: 1080px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 0.97rem; background: #fff; color: var(--ink); font-family: inherit; line-height: 1.5;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}
.field-wide { grid-column: span 2; }
.field-err { display: block; color: #b3403f; font-size: 0.85rem; margin-top: 5px; }
.form-note { color: var(--muted); font-size: 0.82rem; margin: 16px 0; max-width: 720px; }

.contact-aside { display: grid; gap: 18px; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow); }
.info-card h3 { margin: 0 0 10px; font-size: 1rem; }
.info-card ul { list-style: none; margin: 0; padding: 0; }
.info-card li, .info-card p { color: #4a5b70; font-size: 0.93rem; line-height: 1.75; margin: 0; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-950); padding-top: 52px; margin-top: 40px; color: #b9c7dd; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-bottom: 30px; }
.footer-brand p { margin: 6px 0 0; line-height: 1.65; color: #b9c7dd; max-width: 280px; }
.footer-links a, .footer-contact a { display: block; padding: 5px 0; color: #cfdae9; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.site-footer .muted { color: #8fa1ba; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: 18px; color: #8fa1ba; font-size: 0.85rem; }
.footer-bottom a { color: var(--amber); text-decoration: none; }

/* ---------- 加工样品页：分类标签 / 图片网格 / 分页 ---------- */
.sample-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
/* 手机端：隐藏胶囊式分类标签，改用下拉选择按钮（电脑端保持胶囊标签） */
.sample-select-wrap { display: none; }
@media (max-width: 720px) {
  .sample-tabs { display: none; }
  .sample-select-wrap { display: block; margin-bottom: 36px; text-align: center; }
}
.sample-select {
  width: 100%; max-width: 420px; padding: 12px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: #35507a;
  font-size: 1rem; font-weight: 600; font-family: inherit; line-height: 1.4;
}
.sample-select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22); }
.sample-tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px;
  background: var(--card); color: #35507a; text-decoration: none; font-size: 0.92rem; font-weight: 600;
  border: 1px solid var(--line); white-space: nowrap; transition: all 0.15s ease;
}
.sample-tab:hover { border-color: #c8d5e3; transform: translateY(-1px); }
.sample-tab.active { background: var(--amber); color: #241303; border-color: var(--amber); }
.sample-count { font-size: 0.78rem; opacity: 0.75; }

.sample-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .sample-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sample-gallery { grid-template-columns: 1fr; } }
.sample-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: block;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
a.sample-card:hover { transform: translateY(-3px); border-color: #c8d5e3; box-shadow: 0 12px 28px rgba(16, 35, 61, 0.14); }
.sample-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef3f8; }
.sample-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
a.sample-card:hover .sample-media img { transform: scale(1.06); }
.sample-name {
  padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-weight: 600; font-size: 0.95rem; border-top: 1px solid var(--line);
}
.sample-cat { color: var(--muted); font-size: 0.8rem; font-weight: 500; white-space: nowrap; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 38px; flex-wrap: wrap; }
.page-link, .page-num {
  min-width: 42px; text-align: center; padding: 9px 10px; border-radius: 9px;
  font-size: 0.95rem; color: #35507a; border: 1px solid var(--line); background: var(--card); text-decoration: none;
}
.page-link:hover { border-color: #c8d5e3; }
.page-num.current { background: var(--amber); color: #241303; border-color: var(--amber); font-weight: 700; }

.empty-note {
  max-width: 640px; margin: 0 auto; text-align: center; padding: 36px 28px;
  background: var(--card); border: 1px dashed #c8d5e3; border-radius: var(--radius-lg);
  color: var(--muted); line-height: 1.8;
}

/* ---------- 新闻资讯列表页（横向 3 列，每页只显示 3 条新闻） ---------- */
.news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin: 0 auto; }
@media (max-width: 900px) { .news-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-list { grid-template-columns: 1fr; } }

.news-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; color: inherit; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
a.news-item:hover { transform: translateY(-3px); border-color: #c8d5e3; box-shadow: 0 12px 28px rgba(16, 35, 61, 0.14); }
.news-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef3f8; border-bottom: 1px solid var(--line); }
.news-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
a.news-item:hover .news-media img { transform: scale(1.06); }
.news-media-ph { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.9rem; padding: 14px; text-align: center; }
.news-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.news-date { margin: 0 0 6px; align-self: flex-start; }
.news-title { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 0; line-height: 1.4; }
a.news-item:hover .news-title { color: var(--amber-deep); }
.news-excerpt {
  margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 新闻资讯详情页 ---------- */
.news-article {
  max-width: 880px; margin: 0 auto 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 34px; box-shadow: var(--shadow);
}
.news-cover { width: 100%; max-height: 520px; object-fit: cover; border-radius: 12px; margin-bottom: 20px; }
.news-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.news-article h1 { font-size: 1.5rem; margin: 0 0 18px; line-height: 1.35; color: var(--ink); text-align: left; }
.news-body p, .news-body div { margin: 0 0 14px; color: #3d4f66; line-height: 1.85; text-align: left; }
.news-body > *:last-child { margin-bottom: 0; }

/* ---------- 产品详情页 ---------- */
.breadcrumbs { margin-bottom: 20px; font-size: 0.9rem; color: var(--muted); }
.breadcrumbs a { color: #35507a; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.crumb-sep { opacity: 0.6; margin-inline: 6px; }

.detail-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start;
}
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }

.detail-media {
  margin: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow);
}
.detail-media img { width: 100%; height: auto; object-fit: contain; }

.detail-title {
  margin: 4px 0 16px; font-size: 1.5rem;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.detail-summary p { max-width: 760px; color: #3d4f66; line-height: 1.8; margin: 0 0 22px; text-align: left; }

.detail-params-title { font-size: 1.05rem; margin: 0 0 12px; color: var(--ink); }
.param-table {
  width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.param-table th, .param-table td {
  padding: 11px 16px; text-align: left; font-size: 0.95rem;
  border-bottom: 1px solid var(--line); word-break: break-word;
}
.param-table tr:last-child th, .param-table tr:last-child td { border-bottom: none; }
.param-table th { width: 38%; background: #f7fafc; color: #2c3e54; font-weight: 600; }
.detail-empty { margin: 0; color: var(--muted); text-align: left; }

.detail-nav {
  display: flex; justify-content: space-between; gap: 14px;
  margin-top: 28px; font-size: 0.95rem; flex-wrap: wrap; text-align: center;
}
.detail-nav a {
  color: #35507a; text-decoration: none; font-weight: 600;
  border: 1px solid var(--line); background: var(--card);
  padding: 10px 18px; border-radius: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.detail-nav a:hover { border-color: #c8d5e3; transform: translateY(-1px); }

/* ---------- 进场动画 ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav {
    position: absolute; top: 100%; left: -20px; right: -20px; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 6px; padding: 16px 20px;
    background: var(--navy-950); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-link { width: 100%; padding: 11px 14px; }
  .nav-cta { margin-top: 8px; }

  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-bar, .mini-steps, .flow-steps, .features-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
}

@media (max-width: 600px) {
  .stats-bar, .mini-steps, .flow-steps, .features-grid { grid-template-columns: 1fr; }
  .stat:first-child { padding-left: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .brand-text small { display: none; }
}

/* ---------- 背景粒子特效（particles.js） ---------- */
#particles-js {
  position: fixed;
  inset: 0;
  z-index: -1; /* 位于全部页面内容之下，只在浅色背景空隙处可见 */
  pointer-events: none; /* 不拦截页面点击与滚动 */
}

/* Hero 深色背景内的粒子层（仅首页）：显示在深蓝底色之上、文字与图片之下 */
#particles-hero {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ---------- Hero 多图片轮播（首页） ---------- */
.hero-carousel { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.hero-slide {
  position: absolute; inset: 0; margin: 0; padding: 0;
  opacity: 0; transition: opacity 0.8s ease; pointer-events: none;
}
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.carousel-dots { display: flex; justify-content: center; gap: 9px; margin-top: 14px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%; padding: 0; cursor: pointer; border: none;
  background: rgba(255, 255, 255, 0.35); transition: background 0.2s ease, transform 0.2s ease;
}
.dot:hover { background: rgba(255, 255, 255, 0.6); }
.dot.is-active { background: var(--amber); transform: scale(1.3); }

/* ---------- Hero 上方整幅轮播图（首页，独立模块）：宽度与下方 hero 相同；
   高度在刚进入页面起即撑满整个显示区域（100dvh），不读取、不修改 hero 本身 ---------- */
.hero-photo-strip {
  width: 100%; overflow: hidden;
  height: 100vh; /* 不支持 dvh 的旧浏览器兜底，同样撑满可视高度 */
}
@supports (height: 100dvh) { .hero-photo-strip { height: 100dvh; } }
.hero-photo-carousel { position: relative; width: 100%; height: 100%; }
.photo-slide {
  position: absolute; inset: 0; margin: 0; padding: 0;
  opacity: 0; transition: opacity 1.2s ease; pointer-events: none;
}
.photo-slide.is-active { opacity: 1; }
.photo-slide img { width: 100%; height: 100%; object-fit: cover; display: block; } /* 铺满整块，不变形 */

/* ---------- 手机端适配：横幅式高度 + fill 拉伸铺满。
   移动端用 fill 让图片上下左右拉伸到恰好占满整个板块：不留黑边、也不裁掉任何部分；
   底色仅作加载兜底 ---------- */
@media (max-width: 768px) {
  .hero-photo-strip {
    height: min(100vh, calc(100vw * 0.72)); /* ≈ 图片宽高比，首屏即可看到整幅画面 */
    background: var(--navy-950);
  }
  .photo-slide img { object-fit: fill; } /* 拉伸铺满整个板块，不留黑边、不裁切 */
}

/* ---------- 右下角悬浮联系按钮（黑色圆圈 + 红色电话图标，悬停显示电话与地址） ---------- */
.fab-phone {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #14161a; color: #ef4444; text-decoration: none;
  box-shadow: 0 10px 28px rgba(10, 21, 36, 0.4);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.fab-phone:hover { background: #000; transform: scale(1.07); }
.fab-phone:focus-visible { outline: 3px solid rgba(245, 158, 11, 0.75); outline-offset: 3px; }

.fab-phone svg { width: 30px; height: 30px; display: block; }

/* 悬停提示卡片：电话与地址分两行显示 */
.fab-phone-tip {
  position: absolute; right: calc(100% + 14px); top: 50%;
  transform: translateY(-50%) translateX(10px) scale(0.97);
  opacity: 0; visibility: hidden; pointer-events: none;
  background: #fff; color: var(--ink); border-radius: 12px; padding: 11px 16px;
  box-shadow: var(--shadow); white-space: nowrap; text-align: left;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.fab-phone-tip-line { display: block; font-size: 0.95rem; line-height: 1.75; }

.fab-phone:hover .fab-phone-tip,
.fab-phone:focus-visible .fab-phone-tip {
  opacity: 1; visibility: visible; transform: translateY(-50%) scale(1);
}

/* 窄屏：提示改到按钮上方，允许换行，避免超出屏幕 */
@media (max-width: 768px) {
  .fab-phone { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .fab-phone-tip {
    top: auto; bottom: calc(100% + 14px); right: 0; left: auto;
    white-space: normal; max-width: min(320px, calc(100vw - 48px));
    transform: translateY(8px) scale(0.97);
  }
  .fab-phone:hover .fab-phone-tip,
  .fab-phone:focus-visible .fab-phone-tip { transform: translateY(0) scale(1); }
}
