:root {
  --lc-primary: #0d9488;
  --lc-primary-dark: #0f766e;
  --lc-accent: #f59e0b;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f7faf9;
  color: #334155;
}

/* 前台页面：页脚贴底 */
body.frontend {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 问卷页：内容在剩余空间内垂直居中 */
.survey-wrap {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 2.5rem 0;
}

/* 问卷页：顶部测评说明横幅 */
.survey-intro {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 4px rgba(15, 118, 110, .06);
}

a { text-decoration: none; }

.navbar-brand { letter-spacing: .5px; }

.text-primary { color: var(--lc-primary) !important; }
.bg-primary { background-color: var(--lc-primary) !important; }
.btn-primary {
  background-color: var(--lc-primary);
  border-color: var(--lc-primary);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--lc-primary-dark);
  border-color: var(--lc-primary-dark);
}
.btn-outline-primary {
  color: var(--lc-primary);
  border-color: var(--lc-primary);
}
.btn-outline-primary:hover {
  background-color: var(--lc-primary);
  border-color: var(--lc-primary);
}

.hero {
  background-color: #0d9488;
  background-image:
    linear-gradient(rgba(15, 23, 42, .55), rgba(15, 23, 42, .55)),
    url('../images/bg2.jpeg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  padding: 4rem 0;
}
.hero h1 { font-weight: 700; }

@media (max-width: 767.98px) {
  .hero {
    background-image:
      linear-gradient(rgba(15, 23, 42, .55), rgba(15, 23, 42, .55)),
      url('../images/bg2-mobile.jpeg');
    padding: 3rem 0;
  }
}

.dimension-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(15, 118, 110, .08);
  transition: transform .2s;
}
.dimension-card:hover { transform: translateY(-4px); }

.dim-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

/* 首页：痛点共鸣卡片 */
.pain-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(15, 118, 110, .05);
}
.pain-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .9rem;
}

/* 首页：测评流程步骤卡 */
.step-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(15, 118, 110, .05);
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lc-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .9rem;
}

.score-badge {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--lc-primary);
}

.survey-option {
  border: 2px solid #e2e8f0;
  border-radius: .75rem;
  padding: .9rem 1rem;
  cursor: pointer;
  transition: all .15s;
  background: #fff;
}
.survey-option:hover { border-color: var(--lc-primary); }
.survey-option.selected {
  border-color: var(--lc-primary);
  background: #f0fdfa;
}

.progress { height: 10px; border-radius: 999px; }

.report-section {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .04);
  margin-bottom: 1.25rem;
}

.section-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.section-head h5, .section-head h6 { letter-spacing: .5px; }
.section-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0fdfa;
  color: var(--lc-primary);
  flex-shrink: 0;
}

/* 报告页：评分主视觉 */
.report-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 12px 40px rgba(13, 148, 136, .28);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  filter: blur(40px);
}
.hero-blob-1 { width: 240px; height: 240px; top: -80px; right: -60px; }
.hero-blob-2 { width: 200px; height: 200px; bottom: -90px; left: -50px; }
.hero-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  margin-bottom: .75rem;
}
.life-range {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  color: #fff;
}
.hero-meta { font-size: .85rem; color: rgba(255, 255, 255, .8); }
.hero-desc { color: rgba(255, 255, 255, .92); max-width: 440px; line-height: 1.7; }
.level-badge {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  padding: .35rem 1rem;
  border-radius: 999px;
  letter-spacing: .5px;
}

.score-gauge { position: relative; width: 180px; height: 180px; }
.score-gauge canvas { width: 180px; height: 180px; }
.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gauge-num { font-size: 2.8rem; font-weight: 800; color: #fff; line-height: 1; }
.gauge-label { font-size: .75rem; color: rgba(255, 255, 255, .8); margin-top: .4rem; letter-spacing: 1px; }

/* 综合评估 */
.summary-section { border-top: 3px solid var(--lc-primary); }
.summary-text { color: #475569; line-height: 1.9; }

/* 五维度 */
.radar-wrap { max-width: 320px; margin: 0 auto; }
.dim-row { margin-bottom: 1.1rem; }
.dim-name { font-size: .9rem; font-weight: 600; color: #334155; }
.dim-score { font-weight: 700; font-size: .9rem; }
.dim-track { height: 8px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.dim-bar { height: 100%; border-radius: 999px; width: 0; transition: width 1s cubic-bezier(.4, 0, .2, 1); }

/* 长板/短板标签 */
.tag-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem 0;
  border-bottom: 1px dashed #f1f5f9;
}
.tag-item:last-of-type { border-bottom: none; }
.tag-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* 报告页：30天方案卡片 */
.advice-card {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 1rem;
  padding: 1.4rem;
  height: 100%;
}
.advice-step {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--lc-primary);
  background: #e0f2f1;
  padding: .25rem .8rem;
  border-radius: 999px;
  margin-bottom: .9rem;
  letter-spacing: .3px;
}
.advice-card ol { padding-left: 1.2rem; }
.advice-card ol li { margin-bottom: .6rem; color: #475569; line-height: 1.6; }

.disclaimer {
  font-size: .82rem;
  color: #94a3b8;
  line-height: 1.7;
}

.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2rem 0;
  margin-top: auto;
}

/* 右侧悬浮测评入口（竖向） */
.float-entry {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1030;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  padding: 1.1rem .6rem;
  background: linear-gradient(180deg, #0f766e, #14b8a6);
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: 3px;
  border-radius: 1rem 0 0 1rem;
  box-shadow: -6px 8px 24px rgba(13, 148, 136, .35);
  text-decoration: none;
  transition: box-shadow .25s ease;
}
.float-entry:hover {
  color: #fff;
  box-shadow: -8px 10px 32px rgba(13, 148, 136, .5);
}
.float-entry-text { writing-mode: vertical-rl; }
.float-entry-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatIconPulse 1.8s ease-in-out infinite;
}
.float-entry::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: floatRing 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes floatRing {
  0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, .5); }
  70% { box-shadow: 0 0 0 14px rgba(20, 184, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}
@keyframes floatIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
@media (max-width: 767.98px) {
  .float-entry {
    top: auto;
    bottom: 2rem;
    transform: none;
    flex-direction: row;
    gap: .5rem;
    padding: .75rem 1rem;
    font-size: .82rem;
    letter-spacing: .5px;
  }
  .float-entry-text { writing-mode: horizontal-tb; }
}

/* 文章：列表横幅 */
.article-banner {
  background-color: #0d9488;
  background-image: linear-gradient(rgba(15, 23, 42, .55), rgba(15, 23, 42, .55)), url('../images/list-bg.jpeg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  padding: 3.5rem 0;
}
.article-banner h1 { font-weight: 800; letter-spacing: 1px; }
.article-banner p { font-size: 1.05rem; }

/* 文章：卡片 */
.article-card {
  display: block;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .04);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(15, 23, 42, .1);
  color: inherit;
}
.article-card-cover { aspect-ratio: 16 / 9; overflow: hidden; background: #f1f5f9; }
.article-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .article-card-cover img { transform: scale(1.06); }
.article-card-cover-fallback {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  overflow: hidden;
}
.fallback-text {
  position: relative;
  z-index: 2;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .5px;
  padding: 0 1.4rem;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fallback-deco {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  z-index: 1;
}
.fallback-deco-1 { width: 120px; height: 120px; top: -40px; right: -30px; }
.fallback-deco-2 { width: 80px; height: 80px; bottom: -25px; left: -20px; }
.article-card-body { padding: 1.25rem 1.4rem 1.4rem; }
.article-card-title {
  font-size: 1.1rem; font-weight: 700; line-height: 1.4;
  margin-bottom: .6rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-desc {
  font-size: .88rem; color: #64748b; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: .9rem;
}
.article-card-meta { display: flex; font-size: .78rem; color: #94a3b8; }

/* 文章：详情 */
.article-detail {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .04);
}
.article-detail-title { font-size: 2rem; font-weight: 800; line-height: 1.35; margin-bottom: 1rem; }
.article-detail-meta { display: flex; align-items: center; gap: .6rem; color: #94a3b8; font-size: .85rem; margin-bottom: 1.5rem; }
.article-detail-cover { width: 100%; border-radius: .9rem; margin-bottom: 1.75rem; }
.article-detail-content { color: #334155; line-height: 1.9; font-size: 1.02rem; }
.article-detail-content h1, .article-detail-content h2, .article-detail-content h3 { color: #1e293b; font-weight: 700; margin: 1.6em 0 .6em; }
.article-detail-content h1 { font-size: 1.6rem; }
.article-detail-content h2 { font-size: 1.35rem; }
.article-detail-content h3 { font-size: 1.15rem; }
.article-detail-content p { margin-bottom: 1em; }
.article-detail-content img { max-width: 100%; border-radius: .6rem; margin: .5em 0; }
.article-detail-content ul, .article-detail-content ol { padding-left: 1.4em; margin-bottom: 1em; }
.article-detail-content blockquote { border-left: 4px solid var(--lc-primary); padding-left: 1em; color: #64748b; margin: 1em 0; }
.article-detail-content a { color: var(--lc-primary); }

/* 文章详情：顶部横幅 */
.article-hero {
  background-color: #0d9488;
  background-image: linear-gradient(rgba(15, 23, 42, .6), rgba(15, 23, 42, .6)), url('../images/detail-bg.jpeg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  padding: 4.5rem 0;
}
@media (max-width: 767.98px) {
  .article-banner {
    background-image: linear-gradient(rgba(15, 23, 42, .55), rgba(15, 23, 42, .55)), url('../images/list-bg-mobile.jpeg');
  }
  .article-hero {
    background-image: linear-gradient(rgba(15, 23, 42, .6), rgba(15, 23, 42, .6)), url('../images/detail-bg-mobile.jpeg');
  }
}
.article-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.article-hero-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .4);
  padding: .25rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.article-hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1.2rem;
  letter-spacing: .5px;
}
.article-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
}
.article-hero-dot { opacity: .5; }

/* 文章详情：正文与底部 CTA */
.article-body { margin-bottom: 2rem; }
.article-cta {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
  border-radius: 1.25rem;
  padding: 2.2rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(13, 148, 136, .2);
}
.article-cta p { color: rgba(255, 255, 255, .85); }
.article-cta-link { color: rgba(255, 255, 255, .75); text-decoration: none; font-size: .9rem; }
.article-cta-link:hover { color: #fff; }

/* 分页美化 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pagination li { list-style: none; margin: 0; }
.pagination li a,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .6rem;
  border-radius: .65rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .18s ease;
}
.pagination li a:hover {
  border-color: var(--lc-primary);
  color: var(--lc-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, .12);
}
.pagination li.active span {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, .28);
}
.pagination li.disabled span {
  color: #cbd5e1;
  border-color: #f1f5f9;
  background: #f8fafc;
  cursor: not-allowed;
}

/* 后台 */
.admin-sidebar {
  background: #0f172a;
  min-height: 100vh;
}
.admin-sidebar .nav-link {
  color: #cbd5e1;
  padding: .7rem 1rem;
  border-radius: .5rem;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
  background: #1e293b;
  color: #fff;
}
.admin-content { background: #f1f5f9; min-height: 100vh; }
