/* 主页视觉 = 客户专区(/client/)同源绿色系统 */
:root {
  --ink: #0e2a2c;
  --teal: #0d6a6c;
  --teal-deep: #074548;
  --sea: #1a8a8c;
  --sand: #f3f7f4;
  --mist: #d9ebea;
  --line: rgba(14, 42, 44, 0.12);
  --muted: #5a7274;
  --white: #fff;
  --accent: #c45c26;
  --ok: #0f7a4a;
  --shadow: 0 18px 50px rgba(7, 50, 52, 0.14);
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(26, 138, 140, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(196, 92, 38, 0.08), transparent 50%),
    linear-gradient(165deg, #f7fbfa 0%, #e8f2f1 45%, #f4f6f5 100%);
  background-attachment: fixed;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── 顶栏 ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(247, 251, 250, 0.85);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--teal-deep);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.top-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.top-links a, .top-links button {
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  text-decoration: none;
}
.top-links a:hover { text-decoration: none; border-color: var(--sea); }

/* ── 按钮：与客户专区同款渐变 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(7, 69, 72, 0.22);
}
.btn:hover { text-decoration: none; opacity: 0.94; }
.btn.ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--teal-deep);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.teal { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); }
.btn.light {
  background: #fff;
  color: var(--teal-deep);
  box-shadow: 0 8px 20px rgba(7, 50, 52, 0.25);
}
.btn.outline {
  background: transparent;
  color: #eaf6f5;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

/* ── Hero：客户专区同款深青渐变面板 ── */
.hero {
  position: relative;
  margin: 24px 0 clamp(1.2rem, 3vw, 2.25rem);
  padding: clamp(2.4rem, 7vw, 4.5rem) clamp(1.4rem, 6vw, 3rem);
  color: #f4fbfb;
  overflow: hidden;
  border-radius: 1.5rem;
  background:
    linear-gradient(120deg, rgba(7, 45, 48, 0.92) 0%, rgba(13, 90, 92, 0.78) 55%, rgba(14, 70, 72, 0.55) 100%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
    linear-gradient(160deg, #0a3d40, #15696c);
  animation: rise 0.6s ease both;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(196, 92, 38, 0.25), transparent 65%);
  pointer-events: none;
}
.hero .eyebrow {
  position: relative; z-index: 1;
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #bfe3e1;
}
.hero h1 {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 16px;
  color: #f4fbfb;
  max-width: 22ch;
}
.hero .bio {
  position: relative; z-index: 1;
  margin: 0;
  color: rgba(244, 251, 251, 0.88);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 46ch;
}
.hero-cta {
  position: relative; z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* ── 区块 ── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 80px;
}
section {
  padding: 40px 0 8px;
  animation: rise 0.55s ease both;
}
section h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 10px;
  line-height: 1.35;
  color: var(--teal-deep);
}
.section-desc {
  margin: 0 0 22px;
  color: var(--muted);
}

/* ── 服务三档：半透明白卡 ── */
.offer {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.offer:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--sea);
  background: rgba(26, 138, 140, 0.1);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.offer h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 8px;
  color: var(--teal-deep);
}
.offer p { margin: 0 0 12px; color: var(--muted); }
.offer .more {
  font-weight: 700;
  color: var(--teal-deep);
}

/* ── 文章列表 ── */
.article {
  display: block;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.article:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.article:hover h3 { color: var(--teal); }
.article-meta {
  font-size: 0.85rem;
  color: var(--sea);
  font-weight: 600;
  margin-bottom: 6px;
}
.article h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  margin: 0 0 8px;
  line-height: 1.4;
  color: var(--teal-deep);
  transition: color 0.15s ease;
}
.article p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ── FAQ ── */
.faq details {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 10px;
  backdrop-filter: blur(8px);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  font-family: var(--font-display);
  color: var(--teal-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--sea);
  font-family: var(--font-body);
  font-weight: 600;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* ── 联系区 ── */
.contact-box {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  margin-top: 8px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.contact-box h3 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  color: var(--teal-deep);
}
.qr-placeholder {
  margin-top: 16px;
  border: 1px dashed var(--sea);
  border-radius: 14px;
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  background: rgba(217, 235, 234, 0.35);
  font-size: 0.92rem;
}

/* ── 登录面板 ── */
.login-panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.login-panel .modes {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}
.login-panel .modes button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.92rem;
  font-family: inherit;
}
.login-panel .modes button.on {
  background: var(--teal-deep);
  color: #fff;
  border-color: var(--teal-deep);
}
.field { margin: 0 0 12px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--teal-deep);
}
.field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}
.field input:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(26, 138, 140, 0.15);
}
.err {
  background: #fff5f3;
  color: #9a3412;
  border: 1px solid #f0d0c4;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 0.92rem;
}
.ok {
  background: rgba(217, 235, 234, 0.6);
  color: var(--teal-deep);
  border: 1px solid var(--mist);
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

/* ── 文章内页 ── */
.article-page .back {
  display: inline-block;
  margin: 28px 0 18px;
  font-weight: 700;
  color: var(--teal-deep);
}
.article-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--teal-deep);
}
.article-page .body {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(8px);
}
.article-page .body p {
  margin: 0 0 1em;
}

/* ── 页脚 ── */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 48px;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .offer, .article { padding: 18px; }
}

/* ── 探索世界：主题分类卡 + 文章筛选 ── */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.topic-card {
  position: relative;
  display: block;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px 44px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(13, 106, 108, 0.45);
}
.topic-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--teal-deep);
}
.topic-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.topic-count {
  position: absolute;
  left: 20px;
  bottom: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sea);
  letter-spacing: 0.02em;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 6px;
}
.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 15px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip:hover { border-color: rgba(13, 106, 108, 0.5); color: var(--teal-deep); }
.chip.on {
  background: linear-gradient(135deg, var(--teal-deep), var(--sea));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(7, 69, 72, 0.25);
}
