/* ===== 设计令牌：商务极简 + 浅蓝渐变（抱抱海品牌） ===== */
:root {
  --blue-50: #f3f8ff;
  --blue-100: #e6f0fe;
  --blue-200: #cfe1fc;
  --blue-300: #a9c8f8;
  --blue-400: #7aa9f5;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(37, 99, 235, .06);
  --shadow-md: 0 10px 34px rgba(37, 99, 235, .14);
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-alt { background: var(--blue-50); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 12px; font-weight: 800; letter-spacing: -.01em; }
.section-head p { color: var(--ink-500); font-size: 16px; margin: 0; }

/* ===== 导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--blue-100);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand-logo { height: 38px; width: auto; border-radius: 8px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; gap: 26px; font-size: 15px; color: var(--ink-700); }
.nav-links a { position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a:hover { color: var(--blue-600); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--blue-600); transition: width .2s;
}
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: .2s; }

/* ===== 首屏 Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(165deg, var(--blue-100) 0%, var(--blue-50) 48%, var(--white) 100%);
  padding: 92px 0 96px;
  overflow: hidden;
}
.hero-inner { max-width: 760px; text-align: center; margin: 0 auto; }
.hero-eyebrow { color: var(--blue-600); font-weight: 600; letter-spacing: .08em; margin: 0 0 14px; font-size: 14px; }
.hero-title {
  font-size: clamp(34px, 6vw, 56px); line-height: 1.12; margin: 0 0 14px;
  font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(120deg, var(--blue-700), var(--blue-500));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: clamp(18px, 2.6vw, 22px); color: var(--ink-700); margin: 0 0 18px; font-weight: 600; }
.hero-desc { font-size: 17px; color: var(--ink-500); margin: 0 auto 30px; max-width: 600px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px;
  transition: transform .15s, box-shadow .2s, background .2s; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: #fff; color: var(--blue-700); border-color: var(--blue-200); }
.btn-ghost:hover { background: var(--blue-50); }
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background: radial-gradient(120% 100% at 50% 100%, var(--blue-200) 0%, transparent 70%);
  opacity: .5;
}

/* ===== 信任数据条 ===== */
.stats { background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); color: #fff; padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1; }
.stat-unit { font-size: .5em; font-weight: 700; margin-left: 2px; }
.stat-label { font-size: 14px; opacity: .9; margin-top: 8px; }

/* ===== 核心服务 ===== */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--blue-100); border-radius: var(--radius);
  padding: 30px 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .2s; text-align: left;
  display: flex; flex-direction: column; gap: 12px;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; background: linear-gradient(135deg, var(--blue-100), var(--blue-200));
}
.service-card h3 { font-size: 19px; margin: 0; font-weight: 700; }
.service-card p { font-size: 14px; color: var(--ink-500); margin: 0; flex: 1; }
.service-more { color: var(--blue-600); font-weight: 600; font-size: 14px; }

/* ===== 咨询师团队 ===== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card {
  background: #fff; border: 1px solid var(--blue-100); border-radius: var(--radius);
  padding: 28px 22px; box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .18s, box-shadow .2s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-700));
  color: #fff; display: grid; place-items: center; font-size: 30px; font-weight: 700;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 18px; margin: 0 0 4px; font-weight: 700; }
.team-title { color: var(--blue-600); font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.team-spec { color: var(--ink-500); font-size: 13px; margin: 0; }

/* ===== 心理测评 ===== */
.assess-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.assess-card {
  background: #fff; border: 1px solid var(--blue-100); border-radius: var(--radius-sm);
  padding: 20px 22px; box-shadow: var(--shadow-sm); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: transform .15s, box-shadow .2s, border-color .2s;
}
.assess-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.assess-info strong { display: block; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.assess-info span { font-size: 13px; color: var(--ink-500); }
.assess-tag {
  flex-shrink: 0; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--blue-100); color: var(--blue-700);
}
.assess-tag.免费 { background: #e7f7ee; color: #0f9d58; }
.assess-tag.专业 { background: #fff3e0; color: #e8830c; }
.assess-tag.趣味 { background: #f3e8ff; color: #8b3df5; }

/* ===== 资讯（卡片流，复用）===== */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 30px;
}
.chip {
  border: 1px solid var(--blue-200); background: var(--blue-50); color: var(--ink-700);
  padding: 8px 16px; border-radius: 999px; font-size: 14px; cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--blue-500); color: var(--blue-700); }
.chip.active { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff; border-color: transparent; }

.card-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: #fff; border: 1px solid var(--blue-100); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer;
  display: flex; flex-direction: column; transition: transform .18s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--blue-100), var(--blue-300)); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-cat { font-size: 12px; color: var(--blue-600); font-weight: 600; letter-spacing: .03em; }
.card-title { font-size: 17px; font-weight: 700; margin: 0; line-height: 1.4; }
.card-excerpt { font-size: 14px; color: var(--ink-500); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; font-size: 13px; color: var(--ink-500); display: flex; gap: 12px; }

.list-state { text-align: center; padding: 60px 20px; color: var(--ink-500); }
.list-state .spinner {
  width: 32px; height: 32px; margin: 0 auto 16px; border-radius: 50%;
  border: 3px solid var(--blue-100); border-top-color: var(--blue-500); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.list-state.error { color: #b91c1c; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.pagination button {
  min-width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--blue-200);
  background: #fff; color: var(--ink-700); cursor: pointer; transition: .15s;
}
.pagination button:hover:not(:disabled) { border-color: var(--blue-500); color: var(--blue-700); }
.pagination button.active { background: var(--blue-600); color: #fff; border-color: transparent; }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }

/* ===== 关于我们 ===== */
.about-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.about-head { margin-bottom: 28px; }
.about-head p { color: var(--ink-500); font-size: 17px; }
.about-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; text-align: left; max-width: 640px; margin: 0 auto; }
.about-points li {
  position: relative; padding: 14px 18px 14px 48px; background: var(--blue-50);
  border: 1px solid var(--blue-100); border-radius: var(--radius-sm); color: var(--ink-700); font-size: 15px;
}
.about-points li::before {
  content: "✓"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; background: var(--blue-600); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}

/* ===== 联系我们 ===== */
.contact-inner { max-width: 860px; margin: 0 auto; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card {
  background: #fff; border: 1px solid var(--blue-100); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm); text-align: center;
}
.contact-card .c-label { font-size: 13px; color: var(--ink-500); margin: 0 0 8px; }
.contact-card .c-value { font-size: 18px; font-weight: 700; color: var(--blue-700); margin: 0; word-break: break-all; }
.contact-qr {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--blue-100); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
.contact-qr img { width: 160px; height: 160px; border-radius: var(--radius-sm); border: 1px solid var(--blue-100); }
.contact-qr .c-label { font-size: 14px; color: var(--ink-500); margin: 0; }

/* ===== 页脚 ===== */
.site-footer { background: var(--ink-900); color: #cbd5e1; padding: 48px 0 26px; margin-top: 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand { font-weight: 800; color: #fff; font-size: 18px; }
.footer-slogan { color: #93a4bd; font-size: 14px; margin: 8px 0 12px; }
.footer-wechat { color: #93a4bd; font-size: 13px; margin: 0; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.footer-nav a { color: #cbd5e1; transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-links a { color: #93a4bd; font-size: 13px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-copy {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1);
  color: #7c8aa3; font-size: 13px;
}

/* ===== 详情弹层 ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); backdrop-filter: blur(2px); }
.modal-panel {
  position: relative; z-index: 1; background: #fff; border-radius: var(--radius);
  max-width: 760px; width: 100%; max-height: 86vh; overflow: auto; box-shadow: var(--shadow-md);
}
.modal-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9);
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-700); box-shadow: var(--shadow-sm);
}
.modal-body { padding: 8px 36px 40px; }
.modal-body .m-cat { color: var(--blue-600); font-weight: 600; font-size: 13px; }
.modal-body .m-title { font-size: 28px; margin: 8px 0 14px; line-height: 1.3; }
.modal-body .m-meta { color: var(--ink-500); font-size: 14px; margin-bottom: 22px; display: flex; gap: 16px; flex-wrap: wrap; }
.modal-body .m-cover { width: 100%; border-radius: var(--radius-sm); margin-bottom: 22px; }
.modal-body .m-content { color: var(--ink-700); font-size: 16px; }
.modal-body .m-content img { border-radius: var(--radius-sm); margin: 16px 0; }

/* ===== 响应式 ===== */
@media (max-width: 920px) {
  .service-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--blue-100); padding: 8px 20px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--blue-50); }
  .nav-toggle { display: flex; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 72px; }
  .assess-grid, .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .service-grid, .team-grid { grid-template-columns: 1fr; }
}
