/**
 * OPC读书会小程序 V2.0 - 姑苏底蕴 × 未来感 × 书卷温度
 * 设计系统：墨青（文化深度）+ 暖金（个体价值）+ 宣纸白（纯净阅读）
 */

/* ========== 基础重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* 墨青色系 - 文化深度 */
  --ink: #1a4d4d;
  --ink-light: #2a6b6b;
  --ink-dark: #0f3333;
  --ink-soft: rgba(26, 77, 77, 0.08);
  --ink-border: rgba(26, 77, 77, 0.15);

  /* 暖金色系 - 个体价值 */
  --gold: #c9a96e;
  --gold-light: #dbbf8a;
  --gold-dark: #b08e4f;
  --gold-soft: rgba(201, 169, 110, 0.12);

  /* 宣纸白色系 - 纯净阅读 */
  --paper: #f7f3ed;
  --paper-warm: #f0ebe0;
  --paper-dark: #e8e2d4;
  --white: #ffffff;

  /* 文字 */
  --text: #2d3436;
  --text-secondary: #6c7a7a;
  --text-light: #a0aaa8;
  --text-inverse: #f7f3ed;

  /* 功能色 */
  --primary: var(--ink);
  --primary-light: var(--ink-light);
  --accent: var(--gold);
  --success: #2d8659;
  --danger: #c0392b;
  --danger-soft: rgba(192, 57, 43, 0.08);

  /* 卡片与阴影 */
  --card: #ffffff;
  --card-hover: #faf8f3;
  --bg: var(--paper);
  --bg-1: var(--paper-warm);
  --bg-2: var(--paper-dark);
  --border: var(--ink-border);
  --shadow: 0 2px 12px rgba(26, 77, 77, 0.06);
  --shadow-lg: 0 8px 28px rgba(26, 77, 77, 0.12);
  --shadow-gold: 0 4px 16px rgba(201, 169, 110, 0.15);

  /* 圆角 */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  /* 字体 */
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "SF Mono", "Menlo", "Consolas", monospace;
}

body {
  font-family: var(--sans);
  background: #e8e2d4;
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* ========== 手机容器 ========== */
.phone-container {
  width: 390px;
  min-height: 844px;
  max-height: 90vh;
  background: var(--paper);
  border-radius: 36px;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(26, 77, 77, 0.15),
    0 0 0 10px #1a1a1a,
    0 0 0 12px rgba(26, 77, 77, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 状态栏 */
.status-bar {
  height: 40px;
  background: var(--paper-warm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.status-bar .time {
  font-size: 15px;
  font-weight: 600;
}

.status-bar .icons {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--ink);
}

/* 顶部导航栏 */
.nav-bar {
  height: 48px;
  background: var(--paper-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.nav-bar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 25%;
  right: 25%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.nav-bar .nav-title {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
}

.nav-bar .nav-back {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
  user-select: none;
}

.nav-bar .nav-action {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
}

/* 内容区域 */
.content-area {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 70px;
  -webkit-overflow-scrolling: touch;
  background: var(--paper);
}

.content-area::-webkit-scrollbar {
  width: 3px;
}

.content-area::-webkit-scrollbar-track {
  background: transparent;
}

.content-area::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

/* ========== 底部Tab栏 ========== */
.tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: var(--white);
  display: flex;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(26, 77, 77, 0.04);
  z-index: 100;
  flex-shrink: 0;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.2s;
  position: relative;
}

.tab-item .tab-icon {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s;
}

.tab-item .tab-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.tab-item.active {
  color: var(--ink);
}

.tab-item.active .tab-icon {
  transform: scale(1.1);
}

.tab-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 3px 3px;
}

/* ========== 通用组件 ========== */
.section {
  padding: 14px 16px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--gold);
  border-radius: 2px;
}

.section-more {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
  cursor: pointer;
}

.section-more:active {
  color: var(--gold);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 12px;
  transition: all 0.2s;
  position: relative;
}

.card:active {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  gap: 6px;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.btn-primary:active {
  background: var(--ink-dark);
}

.btn-accent {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-gold);
  border: 1px solid var(--gold);
}

.btn-accent:active {
  background: var(--gold-dark);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--ink-border);
  color: var(--ink);
}

.btn-outline:active {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-danger {
  background: transparent;
  border: 1.5px solid var(--danger);
  color: var(--danger);
}

.btn-danger:active {
  background: var(--danger-soft);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ========== 表单 ========== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--white);
  color: var(--text);
  transition: all 0.2s;
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.form-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 16px) center, calc(100% - 11px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* ========== 徽章 ========== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  gap: 3px;
  letter-spacing: 0.5px;
}

.badge-primary { background: var(--ink-soft); color: var(--ink); border: 1px solid var(--ink-border); }
.badge-accent { background: var(--gold-soft); color: var(--gold-dark); border: 1px solid rgba(201, 169, 110, 0.3); }
.badge-success { background: rgba(45, 134, 89, 0.1); color: var(--success); border: 1px solid rgba(45, 134, 89, 0.2); }
.badge-danger { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(192, 57, 43, 0.2); }
.badge-gray { background: var(--paper-dark); color: var(--text-secondary); border: 1px solid var(--border); }

/* ========================================
   V2.0 首页 6屏价值传达布局
   ======================================== */

/* 第一屏：品牌冲击 */
.hero-screen {
  position: relative;
  padding: 40px 24px 32px;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-dark) 100%);
  color: var(--paper);
  overflow: hidden;
}

.hero-screen::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-screen::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -10px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-logo {
  /* 容器化处理：让现有 JPG 白底 logo 看起来是设计徽章的一部分（深色画框+金色描边+内边距）。
     根本解决需替换为品牌色透明 PNG（见 README 备忘）。 */
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin-bottom: 16px;
  padding: 14px;
  box-sizing: border-box;
  object-fit: contain;
  background: linear-gradient(135deg, #1a4d4d 0%, #2d6e6e 100%);
  border: 2px solid #c9a96e;
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.35),
              inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  filter: drop-shadow(0 4px 12px rgba(201, 169, 110, 0.3));
  position: relative;
  z-index: 1;
}

.hero-greeting {
  font-size: 13px;
  color: rgba(247, 243, 237, 0.6);
  margin-bottom: 8px;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--gold-light);
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 13px;
  color: rgba(247, 243, 237, 0.5);
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.hero-actions .btn-accent {
  flex: 1;
}

.hero-actions .btn-outline {
  flex: 1;
  color: var(--paper);
  border-color: rgba(247, 243, 237, 0.3);
}

.hero-actions .btn-outline:active {
  border-color: var(--gold);
  color: var(--gold);
}

/* 第二屏：社会认同数据墙 */
.data-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  margin: 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-cell {
  background: var(--white);
  padding: 18px 12px;
  text-align: center;
}

.data-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1;
  margin-bottom: 4px;
}

.data-num .plus {
  color: var(--gold);
  font-size: 20px;
}

.data-label {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 16px 6px;
  flex-wrap: wrap;
}

.partner-tag {
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--paper-warm);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* 第三屏：四大品牌活动 */
.brand-activities {
  padding: 20px 16px;
}

.activity-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.activity-carousel::-webkit-scrollbar {
  height: 3px;
}

.activity-carousel::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 2px;
}

.activity-slide {
  flex-shrink: 0;
  width: 240px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  border: 1px solid var(--border);
}

.activity-slide-cover {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  position: relative;
}

.activity-slide-cover.bg-1 { background: linear-gradient(135deg, #e8f4f4, #d0e8e8); }
.activity-slide-cover.bg-2 { background: linear-gradient(135deg, #f5ede0, #ebe0cc); }
.activity-slide-cover.bg-3 { background: linear-gradient(135deg, #e8eee8, #d0e0d0); }
.activity-slide-cover.bg-4 { background: linear-gradient(135deg, #f0e8f0, #e0d0e0); }

.activity-slide-body {
  padding: 14px;
}

.activity-slide-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.activity-slide-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.activity-slide-quote {
  font-size: 11px;
  color: var(--gold-dark);
  font-style: italic;
  border-left: 2px solid var(--gold);
  padding-left: 8px;
}

/* 第四屏：会员成长阶梯 */
.growth-ladder {
  padding: 20px 16px;
}

.ladder-track {
  position: relative;
  padding-left: 24px;
}

.ladder-track::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--ink));
  border-radius: 1px;
}

.ladder-step {
  position: relative;
  padding: 10px 0 10px 20px;
}

.ladder-step::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gold);
  z-index: 1;
}

.ladder-step.current::before {
  background: var(--gold);
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.ladder-step.locked::before {
  border-color: var(--text-light);
  background: var(--paper-warm);
}

.ladder-role {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ladder-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ladder-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}

/* 第五屏：区域地图 */
.branch-map-section {
  padding: 20px 16px;
}

.branch-map {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.map-svg {
  width: 100%;
  height: auto;
}

.city-pin {
  cursor: pointer;
  transition: all 0.2s;
}

.city-pin:hover {
  transform: scale(1.2);
}

.city-pin-dot {
  fill: var(--gold);
  transition: fill 0.2s;
}

.city-pin-dot.active {
  fill: var(--ink);
}

.city-pin-dot.preparing {
  fill: var(--text-light);
}

.city-label {
  font-size: 9px;
  fill: var(--text-secondary);
  text-anchor: middle;
}

.branch-list-compact {
  margin-top: 12px;
}

.branch-compact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.branch-compact-item:last-child {
  border-bottom: none;
}

.branch-compact-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.branch-compact-dot.active { background: var(--ink); }
.branch-compact-dot.preparing { background: var(--text-light); }

.branch-compact-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.branch-compact-status {
  font-size: 11px;
  color: var(--text-secondary);
}

/* 第六屏：加入路径 */
.join-path-section {
  padding: 20px 16px 28px;
}

.join-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.join-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.join-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

.join-step-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.join-step-desc {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.join-step::after {
  content: '';
  position: absolute;
  top: 16px;
  right: -8px;
  width: 16px;
  height: 1.5px;
  background: var(--gold);
  z-index: 0;
}

.join-step:last-child::after {
  display: none;
}

.invite-card {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.invite-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.invite-card .invite-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.invite-card .invite-text {
  font-size: 12px;
  color: rgba(247, 243, 237, 0.6);
  line-height: 1.7;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.invite-card .invite-btn {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 10px 28px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-gold);
}

.invite-card .invite-btn:active {
  background: var(--gold-dark);
}

/* ========== 快捷入口 ========== */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 14px;
  background: var(--white);
  margin: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px 2px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.quick-item:active {
  background: var(--gold-soft);
}

.quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid var(--border);
  background: var(--paper-warm) !important;
}

.quick-label {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========== 资讯列表 ========== */
.news-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.news-item:last-child {
  border-bottom: none;
}

.news-thumb {
  width: 72px;
  height: 54px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--paper-warm);
}

.news-info {
  flex: 1;
  min-width: 0;
}

.news-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-desc {
  font-size: 12px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 3px;
}

/* 政策卡片 */
.policy-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.policy-card:last-child {
  border-bottom: none;
}

.policy-card:active {
  background: var(--gold-soft);
}

.policy-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ink-soft) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.policy-info {
  flex: 1;
}

.policy-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text);
}

.policy-meta {
  font-size: 12px;
  color: var(--text-light);
}

/* ========== 书库 ========== */
.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 14px 16px;
}

.book-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.book-card:active {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.book-cover {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--border);
}

.book-info {
  padding: 10px 12px;
}

.book-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-author {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.book-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.book-stock {
  font-size: 11px;
  color: var(--text-light);
}

.book-stock .available {
  color: var(--success);
  font-weight: 600;
}

.book-stock .empty {
  color: var(--danger);
}

/* 搜索栏 */
.search-bar {
  padding: 10px 16px;
  background: var(--paper-warm);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}

.search-input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  font-size: 13px;
  color: var(--text);
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-wrapper {
  position: relative;
}

.search-wrapper::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  z-index: 1;
}

/* 分类标签 */
.category-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  white-space: nowrap;
}

.category-tab {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: var(--white);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.category-tab.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ========== 活动列表 ========== */
.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.event-banner {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.event-banner.event-upcoming {
  background: linear-gradient(135deg, #e8f4f4 0%, #d8e8e8 100%);
}

.event-banner.event-past {
  background: linear-gradient(135deg, #f0ebe0 0%, #e8e2d4 100%);
  filter: brightness(0.92) saturate(0.6);
}

.event-status-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  z-index: 3;
}

.event-status-tag.tag-upcoming { background: var(--ink); color: var(--paper); }
.event-status-tag.tag-past { background: rgba(0,0,0,0.3); color: var(--paper); }

.event-body {
  padding: 14px;
}

.event-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.event-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.event-meta-row .meta-icon {
  font-size: 13px;
}

.event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-capacity {
  font-size: 11px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.capacity-bar {
  width: 70px;
  height: 4px;
  background: var(--paper-dark);
  border-radius: 2px;
  overflow: hidden;
}

.capacity-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.3s;
}

/* ========== 登录页 ========== */
.login-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  background: linear-gradient(160deg, var(--paper) 0%, var(--paper-warm) 100%);
}

.login-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 16px rgba(201, 169, 110, 0.25));
  animation: logoFloat 3s ease-in-out infinite;
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.login-title {
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 4px;
  font-family: var(--serif);
}

.login-subtitle {
  color: var(--gold-dark);
  font-size: 16px;
  margin-bottom: 8px;
  letter-spacing: 2px;
  font-family: var(--serif);
}

.login-mission {
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 4px;
  margin-bottom: 34px;
  border: 1px solid var(--gold);
  padding: 3px 14px;
  border-radius: 2px;
  background: var(--gold-soft);
}

.login-form {
  width: 100%;
  max-width: 300px;
}

.login-form .form-group {
  margin-bottom: 16px;
}

.login-form .form-label {
  color: var(--ink);
}

.login-form .form-input {
  background: var(--white);
  border-color: var(--border);
  color: var(--text);
}

.login-form .form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.login-form .btn {
  margin-top: 6px;
}

.login-hint {
  color: var(--text-light);
  font-size: 11px;
  margin-top: 24px;
  text-align: center;
  line-height: 1.8;
}

.login-hint code {
  background: var(--gold-soft);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--gold-dark);
  border: 1px solid rgba(201, 169, 110, 0.2);
  font-size: 11px;
}

/* ========== 我的页面 ========== */
.profile-header {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-dark) 100%);
  padding: 28px 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 2px solid var(--gold);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.profile-info {
  position: relative;
  z-index: 1;
}

.profile-info .profile-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--gold-light);
}

.profile-info .profile-role {
  font-size: 11px;
  background: rgba(201, 169, 110, 0.2);
  padding: 2px 10px;
  border-radius: 3px;
  display: inline-block;
  color: var(--gold-light);
  border: 1px solid rgba(201, 169, 110, 0.3);
}

.profile-stats {
  display: flex;
  padding: 14px;
  background: var(--white);
  margin: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.profile-stat {
  flex: 1;
  text-align: center;
}

.profile-stat .stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  font-family: var(--serif);
}

.profile-stat .stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.menu-list {
  padding: 14px 16px;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 13px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.menu-item:active {
  background: var(--card-hover);
  transform: scale(0.99);
}

.menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-right: 12px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--paper-warm) !important;
}

.menu-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.menu-arrow {
  color: var(--text-light);
  font-size: 18px;
}

/* ========== 详情页 ========== */
.detail-header {
  padding: 18px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.detail-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.detail-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.detail-content {
  padding: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  white-space: pre-wrap;
}

/* 图书详情 */
.book-detail {
  padding: 20px 16px;
}

.book-detail-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.book-detail-cover {
  width: 96px;
  height: 134px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  background: var(--paper-warm);
  flex-shrink: 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.book-detail-info {
  flex: 1;
}

.book-detail-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.book-detail-author {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

/* ========== 管理页面 ========== */
.admin-section {
  padding: 14px 16px;
}

.admin-tabs {
  display: flex;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}

.admin-tab {
  flex: 1;
  padding: 11px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.admin-tab.active {
  color: var(--ink);
  border-bottom-color: var(--gold);
  background: var(--gold-soft);
}

.member-row {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}

.member-row .member-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--paper-warm);
  margin-right: 12px;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
}

.member-row .member-info {
  flex: 1;
  min-width: 0;
}

.member-row .member-name {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.member-row .member-phone {
  font-size: 12px;
  color: var(--text-secondary);
}

.member-row .member-branch {
  font-size: 11px;
  color: var(--text-light);
}

.member-row .member-actions {
  display: flex;
  gap: 6px;
}

.member-row.removed {
  opacity: 0.4;
}

.member-row.removed .member-avatar {
  filter: grayscale(1);
}

/* 区域卡片 */
.branch-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.branch-card .branch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.branch-card .branch-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.branch-card .branch-info {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.branch-card .branch-stats {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.branch-stat {
  font-size: 12px;
  color: var(--text-secondary);
}

.branch-stat .num {
  font-weight: 700;
  color: var(--ink);
}

/* ========== 模态框 ========== */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 77, 77, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-height: 80%;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper-warm);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.modal-close {
  font-size: 22px;
  color: var(--text-secondary);
  cursor: pointer;
}

.modal-body {
  padding: 18px;
}

.modal-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

/* Toast 提示 */
.toast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  z-index: 300;
  text-align: center;
  max-width: 80%;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.2s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -40%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-light);
}

.empty-state .empty-icon {
  font-size: 50px;
  margin-bottom: 10px;
  opacity: 0.5;
}

.empty-state .empty-text {
  font-size: 14px;
}

/* 活动展示（历史活动） */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 14px 16px;
}

.gallery-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.gallery-card:active {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.gallery-cover {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--border);
}

.gallery-body {
  padding: 9px 11px;
}

.gallery-title {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 3px;
  color: var(--text);
}

.gallery-date {
  font-size: 10px;
  color: var(--text-light);
}

/* 借阅记录 */
.borrow-record {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}

.borrow-record .record-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--paper-warm) !important;
}

.borrow-record .record-info {
  flex: 1;
  min-width: 0;
}

.borrow-record .record-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text);
}

.borrow-record .record-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 隐藏类 */
.hidden {
  display: none !important;
}

/* 页面切换动画 */
.page-enter {
  animation: pageEnter 0.25s ease;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 全局文字选中色 */
::selection {
  background: var(--gold-soft);
  color: var(--ink);
}

/* ========== 招募专区 ========== */
.recruit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.recruit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.recruit-card:active {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.recruit-card.recruit-member {
  border-top: 3px solid var(--ink);
}

.recruit-card.recruit-leader {
  border-top: 3px solid var(--gold);
}

.recruit-card .recruit-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.recruit-card .recruit-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.recruit-card .recruit-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.recruit-card .recruit-badge {
  font-size: 10px;
}

/* 招募详情 */
.recruit-detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.recruit-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--border);
}

.recruit-detail-header .recruit-detail-icon {
  font-size: 36px;
}

.recruit-detail-header .recruit-detail-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.recruit-detail-body {
  padding: 16px;
}

.recruit-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.recruit-feature {
  font-size: 13px;
  color: var(--text);
  padding: 4px 0;
}

.recruit-feature::before {
  content: '✦';
  color: var(--gold);
  margin-right: 6px;
}

.recruit-stats-row {
  display: flex;
  justify-content: space-around;
  padding: 14px 0;
  margin: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.recruit-mini-stat {
  text-align: center;
}

.recruit-mini-stat .recruit-mini-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  font-family: var(--serif);
}

.recruit-mini-stat .recruit-mini-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.recruit-contact {
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 10px;
}

.recruit-contact .recruit-contact-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.recruit-contact .recruit-contact-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.recruit-branch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

/* ========== 通讯稿详情页 ========== */
.news-detail-header {
  padding: 24px 16px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--paper-warm) 0%, transparent 100%);
}

.news-detail-cover {
  font-size: 48px;
  margin-bottom: 12px;
}

.news-detail-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 10px;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-secondary);
}

.news-detail-summary {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.8;
  padding: 14px 16px;
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  position: relative;
}

.news-detail-summary::before {
  content: '摘要';
  position: absolute;
  top: -10px;
  left: 12px;
  font-size: 11px;
  color: var(--gold-dark);
  background: var(--paper);
  padding: 0 6px;
  letter-spacing: 1px;
}

/* ========== OPC会歌页面 ========== */
.song-page {
  padding: 0;
}

.song-header {
  text-align: center;
  padding: 32px 20px 20px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--border);
}

.song-logo {
  font-size: 48px;
  margin-bottom: 10px;
}

.song-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 4px;
  margin-bottom: 6px;
  font-family: var(--serif);
}

.song-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.song-meta {
  font-size: 11px;
  color: var(--text-light);
}

.song-player-section {
  padding: 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.song-player-label {
  text-align: center;
  font-size: 12px;
  color: var(--gold-dark);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.song-iframe {
  width: 100%;
  height: 200px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--paper-warm);
  display: block;
}

.song-link-btn {
  display: block;
  text-align: center;
  margin-top: 10px;
  padding: 8px;
  font-size: 12px;
  color: var(--gold-dark);
  text-decoration: none;
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 8px;
  background: var(--gold-soft);
  transition: all 0.2s;
}

.song-link-btn:active {
  background: rgba(201, 169, 110, 0.2);
}

.song-lyrics {
  padding: 20px 18px;
}

.lyrics-section-title {
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 2px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.lyrics-block {
  margin-bottom: 18px;
  padding: 10px 14px;
  background: var(--paper-warm);
  border-radius: 8px;
  border-left: 3px solid var(--border);
}

.lyrics-block.lyrics-chorus {
  border-left-color: var(--gold);
  background: var(--gold-soft);
}

.lyrics-block.lyrics-outro {
  border-left-color: var(--ink);
  text-align: center;
}

.lyrics-label {
  font-size: 11px;
  color: var(--gold-dark);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.lyrics-block p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  margin: 0;
}

.lyrics-block.lyrics-chorus p {
  color: var(--ink);
  font-weight: 500;
}

.lyrics-block.lyrics-outro p {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.song-footer {
  padding: 12px 18px 24px;
  text-align: center;
}

.song-weiangao {
  font-size: 11px;
  color: var(--text-light);
}

/* ========== 读书笔记广场 ========== */
.notes-plaza {
  padding: 14px 16px;
}

.note-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.note-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.note-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--paper-warm);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.note-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.note-role {
  font-size: 10px;
  color: var(--gold-dark);
}

.note-book {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.note-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 10px;
}

.note-quote {
  font-size: 13px;
  color: var(--ink);
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding: 8px 12px;
  background: var(--gold-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 10px;
}

.note-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.note-action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}

.note-action:active {
  color: var(--gold);
}

.note-date {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-light);
}

/* ========== 活动日历 ========== */
.calendar-view {
  padding: 16px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar-month {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.calendar-nav {
  display: flex;
  gap: 8px;
}

.calendar-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
}

.calendar-nav-btn:active {
  background: var(--gold-soft);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 16px;
}

.calendar-weekday {
  text-align: center;
  font-size: 11px;
  color: var(--text-light);
  padding: 6px 0;
  font-weight: 600;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
}

.calendar-day:active {
  background: var(--gold-soft);
}

.calendar-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.calendar-day.today {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.calendar-day.today::after {
  background: var(--gold-light);
}

.calendar-day.other-month {
  color: var(--text-light);
  opacity: 0.4;
}

.calendar-events {
  margin-top: 8px;
}

.calendar-event-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}

.cal-event-date {
  width: 48px;
  text-align: center;
  flex-shrink: 0;
}

.cal-event-day {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1;
}

.cal-event-month {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.cal-event-info {
  flex: 1;
}

.cal-event-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.cal-event-meta {
  font-size: 11px;
  color: var(--text-secondary);
}

/* ========== AI 助手 ========== */
.ai-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: calc(100vh - 140px);
  background: var(--bg-1);
}

.ai-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.ai-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.ai-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-light);
}
.ai-status-dot.online {
  background: #52c41a;
  box-shadow: 0 0 6px rgba(82,196,26,0.4);
}
.ai-status-dot.demo {
  background: var(--accent);
}

.ai-settings-btn {
  cursor: pointer;
  font-size: 18px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.ai-settings-btn:hover { opacity: 1; }

.ai-settings-panel {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-settings-content {
  padding: 16px;
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.ai-msg {
  display: flex;
  gap: 8px;
  max-width: 100%;
  animation: msgFadeIn 0.3s ease;
}

@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-msg-user {
  justify-content: flex-end;
}

.ai-msg-bot {
  justify-content: flex-start;
}

.ai-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.ai-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
}

.ai-bubble-user {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.ai-bubble-bot {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ai-bubble-bot b {
  color: var(--primary);
  font-weight: 600;
}

/* 打字动画 */
.ai-thinking {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 16px;
}

.ai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-light);
  animation: aiBounce 1.2s infinite;
}
.ai-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes aiBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* 快捷提问 */
.ai-quick-questions {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--card);
  border-top: 1px solid var(--border);
}

.ai-quick-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-quick-btn:active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 输入区 */
.ai-input-area {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: var(--card);
  border-top: 1px solid var(--border);
  align-items: flex-end;
}

.ai-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 14px;
  background: var(--bg-1);
  color: var(--text);
  resize: none;
  max-height: 100px;
  min-height: 38px;
  line-height: 1.5;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.ai-input:focus {
  border-color: var(--accent);
}

.ai-send-btn {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ai-send-btn:active {
  opacity: 0.8;
}

/* ========== 移动端全屏适配 ========== */
@media screen and (max-width: 480px) {
  body {
    background: var(--paper);
    display: block;
    align-items: stretch;
    min-height: 100vh;
  }

  .phone-container {
    width: 100%;
    min-height: 100vh;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }

  .modal-overlay {
    position: fixed;
  }

  .toast {
    position: fixed;
  }
}

/* ========== 桌面端居中显示 ========== */
@media screen and (min-width: 481px) {
  body {
    background: #e8e2d4;
  }
}

/* ========== 安全区域适配 ========== */
@supports (padding: env(safe-area-inset-bottom)) {
  .tab-bar {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(62px + env(safe-area-inset-bottom));
  }

  .content-area {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

/* ========== 防止字体缩放 ========== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ========== 长按菜单禁用 ========== */
body {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* 输入框允许选中 */
input, textarea, select {
  -webkit-user-select: auto;
  user-select: auto;
}

/* ========== 积分系统样式 ========== */

/* 积分标签 */
.tag-member {
  background: var(--primary);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.tag-contrib {
  background: var(--accent);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.tag-rank {
  background: #f59e0b;
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* 积分中心 - 英雄卡片 */
.points-hero-card {
  background: linear-gradient(135deg, var(--primary) 0%, #0d3d3d 100%);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  color: #fff;
}
.points-hero-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.points-hero-avatar {
  font-size: 40px;
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.points-hero-info {
  flex: 1;
}
.points-hero-name {
  font-size: 18px;
  font-weight: 700;
}
.points-hero-level {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
}
.points-hero-total {
  text-align: center;
}
.points-hero-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.points-hero-label {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}
.points-hero-split {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.points-hero-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.points-hero-val {
  font-size: 16px;
  font-weight: 700;
}

/* 积分快捷操作 */
.points-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.points-action-btn {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s;
}
.points-action-btn:active {
  transform: scale(0.95);
}
.points-action-icon {
  font-size: 24px;
  margin-bottom: 4px;
}
.points-action-btn span {
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 600;
}

/* 积分分类条 */
.points-cat-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}
.points-cat-icon {
  font-size: 20px;
}
.points-cat-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.points-cat-info {
  text-align: right;
}
.points-cat-points {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-right: 6px;
}
.points-cat-count {
  font-size: 12px;
  color: var(--text-light);
}

/* 待审核横幅 */
.points-pending-banner {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 14px;
  color: #92400e;
  font-weight: 600;
}

/* 积分记录条目 */
.points-record-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}
.points-record-icon {
  font-size: 24px;
  width: 40px;
  text-align: center;
}
.points-record-info {
  flex: 1;
  min-width: 0;
}
.points-record-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.points-record-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.points-record-date {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}
.points-record-right {
  text-align: right;
}
.points-record-points {
  font-size: 16px;
  font-weight: 700;
}
.pts-member { color: var(--primary); }
.pts-contrib { color: var(--accent); }
.points-record-status {
  font-size: 11px;
  margin-top: 2px;
}
.status-approved { color: #10b981; }
.status-pending { color: #f59e0b; }
.status-rejected { color: #ef4444; }

/* 排行榜条目 */
.points-rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}
.points-rank-item.is-me {
  border: 2px solid var(--accent);
}
.points-rank-item.top-3 {
  background: linear-gradient(135deg, #fffdf5 0%, #fff 100%);
}
.points-rank-no {
  font-size: 20px;
  font-weight: 700;
  width: 32px;
  text-align: center;
}
.points-rank-avatar {
  font-size: 24px;
}
.points-rank-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}
.points-rank-info {
  flex: 1;
}
.points-rank-branch {
  font-size: 11px;
  color: var(--text-light);
}
.points-rank-pts {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}
.points-rank-pts span {
  font-size: 11px;
  font-weight: 400;
}
.points-rank-breakdown {
  font-size: 11px;
  color: var(--text-light);
}
.points-rank-detail {
  text-align: right;
}

/* 积分规则页 */
.points-rules-intro {
  background: linear-gradient(135deg, var(--primary) 0%, #0d3d3d 100%);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 16px;
  color: #fff;
}
.points-rules-intro-icon {
  font-size: 48px;
  margin-bottom: 8px;
}
.points-rules-intro-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.points-rules-intro-desc {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.6;
}
.points-rules-intro-desc .tag-member,
.points-rules-intro-desc .tag-contrib {
  font-size: 11px;
  margin: 0 2px;
}

/* 等级指南 */
.points-level-guide {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.points-level-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.points-level-row:last-child { border-bottom: none; }
.points-level-row span:first-child { font-weight: 600; }
.points-level-row span:last-child { color: var(--accent); font-weight: 600; }

/* 积分规则条目 */
.points-rule-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}
.points-rule-icon {
  font-size: 22px;
  width: 36px;
  text-align: center;
}
.points-rule-info {
  flex: 1;
}
.points-rule-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.points-rule-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.points-rule-right {
  text-align: right;
}
.points-rule-pts {
  font-size: 16px;
  font-weight: 700;
}
.points-rule-type {
  font-size: 11px;
  color: var(--text-light);
}
.points-rules-footer {
  padding: 16px 0;
}

/* 排行榜我的排名 */
.points-my-rank {
  background: linear-gradient(135deg, var(--accent) 0%, #b8941e 100%);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.points-my-rank-label {
  font-size: 13px;
  opacity: 0.85;
}
.points-my-rank-no {
  font-size: 20px;
  font-weight: 700;
  margin-top: 2px;
}
.points-my-rank-total {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.points-my-rank-sub {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
  text-align: right;
}

/* 申报积分页 */
.points-submit-intro {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.points-submit-cat {
  margin-bottom: 12px;
}
.points-submit-cat-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.points-submit-rules {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.points-submit-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.points-submit-rule:active {
  background: var(--bg-light);
}
.points-submit-rule.disabled {
  opacity: 0.5;
}
.points-submit-rule input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.points-submit-rule-icon {
  font-size: 22px;
}
.points-submit-rule-info {
  flex: 1;
}
.points-submit-rule-label {
  font-size: 14px;
  font-weight: 600;
}
.points-submit-rule-pts {
  font-size: 12px;
  color: var(--text-secondary);
}
.points-submit-preview {
  background: #fff8e1;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
}
.points-preview-text {
  font-size: 14px;
  color: var(--text-primary);
}

/* 积分明细汇总 */
.points-detail-summary {
  display: flex;
  background: #fff;
  border-radius: 12px;
  padding: 16px 8px;
  margin-bottom: 16px;
}
.points-detail-item {
  flex: 1;
  text-align: center;
}
.points-detail-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.points-detail-label {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

/* 积分审核管理 */
.points-mgmt-summary {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.points-mgmt-stat {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
}
.points-mgmt-num {
  font-size: 24px;
  font-weight: 700;
}
.points-mgmt-label {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}
.points-mgmt-item {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}
.points-mgmt-top {
  display: flex;
  gap: 10px;
}
.points-mgmt-icon {
  font-size: 28px;
  width: 44px;
  text-align: center;
}
.points-mgmt-info {
  flex: 1;
}
.points-mgmt-label {
  font-size: 15px;
  font-weight: 600;
}
.points-mgmt-user {
  font-size: 13px;
  color: var(--text-primary);
  margin-top: 4px;
}
.points-mgmt-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.points-mgmt-date {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}
.points-mgmt-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 8px;
}

/* ========== V2.0 新增组件样式 ========== */

/* 核心价值卡片 */
.v2-value-section { margin-bottom: 20px; }
.v2-value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.v2-value-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}
.v2-value-card:active { transform: scale(0.96); }
.v2-value-icon { font-size: 32px; margin-bottom: 8px; }
.v2-value-name { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.v2-value-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.5; }

/* 四大服务展示 */
.v2-service-section { margin-bottom: 20px; }
.v2-service-list { display: flex; flex-direction: column; gap: 10px; }
.v2-service-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--gold);
}
.v2-service-badge {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: var(--ink);
  background: var(--ink-soft);
}
.v2-service-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.v2-service-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

/* 会员评价 */
.v2-testimonial-section { margin-bottom: 20px; }
.v2-testimonial-list { display: flex; flex-direction: column; gap: 12px; }
.v2-testimonial-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.v2-testimonial-text {
  font-size: 13px; color: var(--text); line-height: 1.7;
  margin-bottom: 12px;
  font-style: italic;
}
.v2-testimonial-author { display: flex; align-items: center; gap: 10px; }
.v2-testimonial-avatar { font-size: 28px; }
.v2-testimonial-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.v2-testimonial-role { font-size: 11px; color: var(--text-light); }

/* 会员权益对比 */
.v2-pricing-section { margin-bottom: 20px; }
.v2-pricing-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.v2-pricing-card {
  flex-shrink: 0;
  width: 180px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 14px;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  scroll-snap-align: start;
  position: relative;
}
.v2-pricing-popular {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.v2-pricing-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 10px;
  white-space: nowrap;
}
.v2-pricing-name { font-size: 14px; font-weight: 700; color: var(--ink); text-align: center; margin-bottom: 8px; }
.v2-pricing-price { font-size: 22px; font-weight: 800; color: var(--ink-dark); text-align: center; margin-bottom: 14px; }
.v2-pricing-features { margin-bottom: 14px; }
.v2-pricing-feature { font-size: 11px; color: var(--text-secondary); margin-bottom: 6px; line-height: 1.5; }

/* FAQ */
.v2-faq-section { margin-bottom: 20px; }
.v2-faq-list { display: flex; flex-direction: column; gap: 8px; }
.v2-faq-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.v2-faq-q {
  font-size: 14px; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
}
.v2-faq-arrow { font-size: 16px; color: var(--text-light); transition: transform 0.3s; }
.v2-faq-a {
  display: none;
  font-size: 12px; color: var(--text-secondary); line-height: 1.7;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* 企业信息底部 */
.v2-corp-footer {
  text-align: center;
  padding: 32px 20px 24px;
  background: var(--ink-dark);
  color: var(--text-inverse);
  margin: 0 -16px;
}
.v2-corp-logo {
  font-size: 28px; font-weight: 800;
  color: var(--gold);
  letter-spacing: 4px;
  margin-bottom: 4px;
}
.v2-corp-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.v2-corp-slogan { font-size: 12px; opacity: 0.7; margin-bottom: 16px; }
.v2-corp-info { font-size: 11px; opacity: 0.6; line-height: 1.8; margin-bottom: 14px; }
.v2-corp-links { font-size: 12px; margin-bottom: 10px; }
.v2-corp-links a, .v2-corp-links span { color: var(--gold-light); text-decoration: none; cursor: pointer; margin: 0 4px; }
.v2-corp-copyright { font-size: 10px; opacity: 0.4; }

/* 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, var(--paper-dark) 25%, var(--paper-warm) 50%, var(--paper-dark) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 6px;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card { height: 80px; margin-bottom: 12px; border-radius: var(--radius); }

/* 游客模式提示条 */
.guest-banner {
  background: linear-gradient(90deg, var(--gold-soft), rgba(201,169,110,0.06));
  padding: 8px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--gold-dark);
  border-bottom: 1px solid var(--ink-border);
}
.guest-banner span { cursor: pointer; text-decoration: underline; font-weight: 600; }

/* AI成长档案 */
.v2-growth-profile { padding: 0; }
.v2-growth-header {
  background: linear-gradient(135deg, var(--ink), var(--ink-light));
  color: var(--text-inverse);
  padding: 24px 16px;
  text-align: center;
  border-radius: 0 0 20px 20px;
}
.v2-growth-avatar { font-size: 48px; margin-bottom: 8px; }
.v2-growth-name { font-size: 18px; font-weight: 700; }
.v2-growth-level { font-size: 12px; opacity: 0.8; margin-top: 4px; }
.v2-growth-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.v2-growth-stat {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 6px;
}
.v2-growth-stat-num { font-size: 18px; font-weight: 700; color: var(--gold-light); }
.v2-growth-stat-label { font-size: 10px; opacity: 0.7; }

/* AI共读助手 */
.v2-ai-tools { padding: 12px; }
.v2-ai-tool-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.v2-ai-tool-card:active { border-color: var(--gold); }
.v2-ai-tool-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: var(--ink-soft);
}
.v2-ai-tool-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.v2-ai-tool-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.v2-ai-tool-tag {
  display: inline-block;
  font-size: 10px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 6px;
}

/* 数据看板 */
.v2-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.v2-dashboard-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.v2-dashboard-label { font-size: 11px; color: var(--text-light); margin-bottom: 4px; }
.v2-dashboard-value { font-size: 22px; font-weight: 800; color: var(--ink); }
.v2-dashboard-trend { font-size: 11px; margin-top: 4px; }
.v2-dashboard-trend.up { color: var(--success); }
.v2-dashboard-trend.down { color: var(--danger); }

/* 分销裂变卡片 */
.v2-referral-card {
  background: linear-gradient(135deg, var(--ink), var(--ink-light));
  border-radius: var(--radius);
  padding: 20px 16px;
  color: var(--text-inverse);
  margin-bottom: 16px;
}
.v2-referral-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.v2-referral-desc { font-size: 12px; opacity: 0.8; line-height: 1.6; margin-bottom: 14px; }
.v2-referral-code {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.v2-referral-code-text { font-size: 16px; font-weight: 700; color: var(--gold-light); letter-spacing: 2px; }
.v2-referral-stats { display: flex; gap: 16px; margin-bottom: 14px; }
.v2-referral-stat { text-align: center; }
.v2-referral-stat-num { font-size: 20px; font-weight: 700; color: var(--gold-light); }
.v2-referral-stat-label { font-size: 10px; opacity: 0.7; }

/* ============================================================
   响应式整站骨架 + 智能体广场样式（V2.1）
   ------------------------------------------------------------
   移动端：保留底部 Tab 栏 + 顶部标题栏（手机壳体验）
   桌面端：顶部导航 + 居中内容列 + 页脚（真·网站体验）
   ============================================================ */

/* 网站外壳：去掉手机边框，移动端全宽、桌面端居中容器 */
.phone-container {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  border-radius: 0;
  box-shadow: none;
}
/* 网站无需模拟手机状态栏 */
.status-bar { display: none; }

/* ---------- 桌面端（>768px） ---------- */
@media (min-width: 769px) {
  body {
    background: var(--paper-dark);
    align-items: stretch;
  }
  .phone-container {
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 0 0 1px var(--border), 0 18px 50px rgba(0, 0, 0, 0.10);
  }
  /* 内容区居中阅读列，移动端布局在桌面不再拉伸变形 */
  .content-area {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 32px;
  }
  /* 桌面用顶部导航，隐藏移动 Tab 栏 */
  .tab-bar { display: none; }
  /* 桌面居中登录卡片 */
  .login-page { max-width: 380px; margin: 56px auto; }
}

/* ---------- 移动端（<=768px） ---------- */
@media (max-width: 768px) {
  /* 移动用底部 Tab 栏，隐藏桌面顶栏与页脚 */
  .top-nav { display: none; }
  .site-footer { display: none; }
  .content-area { padding-bottom: 76px; }
}

/* ---------- 桌面顶部导航 ---------- */
.top-nav {
  background: var(--ink);
  color: var(--text-inverse);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.top-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  height: 60px;
}
.top-brand { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.top-logo { font-weight: 800; letter-spacing: 1px; color: var(--gold-light); font-size: 18px; }
.top-brand-text { font-weight: 700; color: var(--text-inverse); }
.top-menu { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.top-menu-item {
  color: rgba(247, 243, 237, 0.75);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  position: relative;
  transition: background 0.15s, color 0.15s;
}
.top-menu-item:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.top-menu-item.active { color: #fff; }
.top-menu-item.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--gold); border-radius: 2px;
}
.top-badge {
  background: var(--gold);
  color: #1a1a1a;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 6px;
  margin-left: 4px;
  vertical-align: middle;
  font-weight: 700;
}
.top-actions { display: flex; align-items: center; }
.top-user { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-inverse); }
.top-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: #1a1a1a;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }

/* ---------- 桌面页脚 ---------- */
.site-footer { background: var(--ink); color: rgba(247, 243, 237, 0.8); padding: 40px 24px 24px; }
.site-footer-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { min-width: 180px; display: flex; flex-direction: column; gap: 8px; }
.footer-brand { font-size: 18px; font-weight: 800; color: var(--gold-light); margin-bottom: 4px; }
.footer-desc { font-size: 13px; line-height: 1.7; }
.footer-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer-col a { color: rgba(247, 243, 237, 0.8); cursor: pointer; font-size: 13px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-col span { font-size: 13px; }
.footer-bottom {
  max-width: 1200px; margin: 24px auto 0; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px; text-align: center; opacity: 0.7;
}

/* ---------- 智能体广场 ---------- */
.agents-hub { padding-bottom: 20px; }
.agents-hero { background: linear-gradient(135deg, var(--ink), var(--ink-dark)); color: #fff; padding: 48px 24px; border-radius: 0 0 16px 16px; }
.agents-hero-inner { max-width: 1100px; margin: 0 auto; }
.agents-hero-eyebrow { color: var(--gold-light); font-size: 13px; letter-spacing: 3px; font-weight: 600; margin-bottom: 8px; }
.agents-hero h1 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.agents-hero p { font-size: 14px; line-height: 1.8; opacity: 0.85; max-width: 640px; }
.agents-group { max-width: 1100px; margin: 0 auto; padding: 24px 16px 0; }
.agents-group-title {
  font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 14px;
  padding-left: 10px; border-left: 3px solid var(--gold);
}
.agents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.agent-card {
  background: var(--card); border-radius: var(--radius); padding: 18px;
  border: 1px solid var(--border); cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.agent-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--agent-accent, var(--ink)); }
.agent-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.agent-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--agent-accent, var(--ink)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.agent-card-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.agent-card-tag { font-size: 13px; color: var(--text-secondary); margin: 4px 0 12px; }
.agent-card-caps { display: flex; flex-wrap: wrap; gap: 6px; }
.agent-cap { font-size: 11px; padding: 3px 8px; background: var(--ink-soft); color: var(--ink-light); border-radius: 20px; }
.agent-card-status { font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.status-planned { background: #fff7e6; color: #b07400; }
.status-dev { background: #e6f0ff; color: #1a5fb4; }
.status-ready { background: #e6f7ed; color: #1f8a4c; }

.agent-detail { max-width: 720px; margin: 0 auto; padding: 20px 16px 40px; }
.agent-back { background: none; border: none; color: var(--ink-light); font-size: 14px; cursor: pointer; padding: 8px 0; margin-bottom: 8px; }
.agent-detail-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.agent-detail-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--agent-accent, var(--ink)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.agent-detail-name { font-size: 24px; font-weight: 800; color: var(--ink); }
.agent-detail-tag { font-size: 14px; color: var(--text-secondary); margin: 2px 0 8px; }
.agent-detail-desc { font-size: 15px; line-height: 1.9; color: var(--text); margin: 12px 0; }
.agent-detail-caps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.agent-detail-note {
  margin-top: 18px; padding: 14px 16px; background: var(--ink-soft);
  border-radius: var(--radius); font-size: 13px; color: var(--text-secondary); line-height: 1.7;
}
.empty-state { text-align: center; color: var(--text-light); padding: 40px 16px; }

/* ========== 首页 · 测评提示 + OPC 成长六环 ========== */
.hero-test-note { font-size: 12px; color: var(--gold-dark); text-align: center; margin-top: 10px; opacity: 0.9; }

.opc-path { padding: 8px 0 4px; }
.opc-path-intro { font-size: 13px; color: var(--text-secondary); text-align: center; margin: -4px 16px 16px; line-height: 1.6; }
.opc-path-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 4px;
}
.opc-path-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border, #eadfce);
  border-radius: var(--radius, 14px);
  padding: 16px 12px 14px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.opc-path-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,.1)); border-color: var(--agent-accent, var(--ink)); }
.opc-path-num {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--agent-accent, var(--ink)); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 22px;
}
.opc-path-icon { font-size: 28px; margin: 6px 0 6px; }
.opc-path-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.opc-path-desc { font-size: 11px; color: var(--text-secondary); margin: 4px 0 8px; line-height: 1.5; min-height: 30px; }
.opc-path-guest { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 10px; background: var(--ink-soft); color: var(--ink-light); }
.opc-path-guest + .opc-path-guest { }
.opc-path-loop {
  grid-column: 1 / -1;
  text-align: center; font-size: 12px; color: var(--gold-dark);
  padding: 8px 0 2px; letter-spacing: 1px;
}

/* ========== 智能体卡片 · 新元数据 ========== */
.agent-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.agent-meta { font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.agent-meta.guest-yes { background: #e6f7ed; color: #1f8a4c; }
.agent-meta.guest-no { background: #fdeaea; color: #c0392b; }
.agent-phase { font-size: 10px; padding: 2px 8px; border-radius: 10px; background: var(--gold-soft, #fbf3e2); color: var(--gold-dark); font-weight: 600; }
.agent-card-embed { font-size: 11px; color: var(--text-light); line-height: 1.5; border-top: 1px dashed var(--border, #eadfce); padding-top: 8px; }

.agent-detail-meta { background: var(--ink-soft); border-radius: var(--radius, 14px); padding: 14px 16px; margin: 4px 0 18px; }
.agent-meta-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed var(--border, #eadfce); }
.agent-meta-row:last-child { border-bottom: none; }
.agent-meta-key { color: var(--text-light); flex-shrink: 0; }
.agent-meta-val { color: var(--ink); text-align: right; font-weight: 600; }

/* ========== 政策引擎占位页 ========== */
.policy-engine { padding: 8px 0 40px; }
.policy-engine-intro { font-size: 13px; color: var(--text-secondary); margin: -4px 16px 16px; line-height: 1.6; }
.policy-form { padding: 18px 16px; margin: 0 4px; }
.policy-guest-hint { font-size: 12px; color: var(--text-light); text-align: center; margin-top: 10px; }
.policy-guest-hint span { color: var(--gold-dark); cursor: pointer; text-decoration: underline; }
.policy-result { margin: 16px 4px 0; }
.policy-placeholder {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--ink-soft); border-radius: var(--radius, 14px); padding: 16px;
  font-size: 14px; color: var(--text); line-height: 1.7;
}
.policy-placeholder-icon { font-size: 26px; flex-shrink: 0; }
.policy-engine-note {
  margin: 18px 4px 0; padding: 14px 16px;
  background: var(--gold-soft, #fbf3e2); border-radius: var(--radius, 14px);
  font-size: 13px; color: var(--text-secondary); line-height: 1.8;
}

/* ========== OPC007 悬浮球 ========== */
.opc007-fab {
  position: fixed; right: 20px; bottom: 24px; z-index: 999;
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #c9a227, #b08e4f);
  color: #fff; padding: 10px 16px; border-radius: 30px;
  box-shadow: 0 8px 24px rgba(176,142,79,.45);
  cursor: pointer; user-select: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.opc007-fab:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 30px rgba(176,142,79,.55); }
.opc007-fab-icon { font-size: 22px; }
.opc007-fab-label { font-size: 13px; font-weight: 700; letter-spacing: .5px; }

/* ===== OPC007 王牌战友对话页 ===== */
.opc007-chat {
  display: flex; flex-direction: column;
  height: 100%; min-height: calc(100vh - 140px);
  background: var(--bg-1); padding: 12px; gap: 10px;
}
.opc007-head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 0; }
.opc007-head-avatar {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: linear-gradient(135deg, #8B6914, #D4A934); color: #fff;
}
.opc007-head-info { display: flex; flex-direction: column; }
.opc007-head-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.opc007-head-sub {
  font-size: 11px; font-weight: 500; color: #fff;
  background: linear-gradient(135deg, #b08e4f, #8B6914);
  border-radius: 8px; padding: 1px 7px; margin-left: 6px; vertical-align: middle;
}
.opc007-head-status { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.opc007-modes { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; }
.opc007-mode-chip {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px; background: var(--card);
  border: 1px solid var(--border); cursor: pointer;
  border-left: 3px solid var(--chip-accent, #b08e4f);
}
.opc007-mode-chip.active {
  background: color-mix(in srgb, var(--chip-accent, #b08e4f) 12%, #fff);
  border-color: var(--chip-accent, #b08e4f);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.opc007-mode-icon { font-size: 18px; }
.opc007-mode-text { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.opc007-mode-text b { font-size: 13px; color: var(--ink); }
.opc007-mode-text i { font-size: 11px; color: var(--text-secondary); font-style: normal; }
.opc007-mode-hint { font-size: 12px; color: var(--text-light); padding: 0 4px; }
.opc007-skills { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 2px; }
.opc007-skill-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--border); cursor: pointer; font-size: 12px; color: var(--text-secondary);
  border-bottom: 2px solid var(--chip-accent, #b08e4f);
}
.opc007-skill-chip.active {
  background: color-mix(in srgb, var(--chip-accent, #b08e4f) 18%, #fff);
  border-color: var(--chip-accent, #b08e4f);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--chip-accent, #b08e4f) 32%, transparent);
  transform: translateY(-1px);
}
.opc007-skill-desc {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 2px 2px;
  line-height: 1.5;
}
.opc007-skill-desc b { font-weight: 700; }
.opc007-skill-desc-hint { opacity: 0.7; }
.opc007-skill-icon { font-size: 14px; }
/* V2.0 合并重构：技能入口从 6 个平铺 chip 收敛为 3 个分组 Tab。
   数量少了就不需要横向滚动，改为等宽平分整行，点击热区更大、更像 Tab。 */
.opc007-skills.grouped { overflow-x: visible; gap: 8px; }
.opc007-skills.grouped .opc007-skill-chip {
  flex: 1 1 0; min-width: 0; justify-content: center;
  padding: 7px 8px; border-radius: 10px;
}
.opc007-skills.grouped .opc007-skill-chip > span:last-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.opc007-messages { min-height: 200px; }
.opc007-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px; }
.opc007-quick-btn {
  font-size: 12px; padding: 6px 10px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text-secondary); cursor: pointer; text-align: left;
}
.opc007-quick-btn:hover { border-color: var(--gold-dark); color: var(--gold-dark); }

/* ===== OPC007 成长档案官 · 成长报告卡 ===== */
.ai-msg-card { justify-content: flex-start; }
.opc007-growth-card {
  width: 100%; box-sizing: border-box;
  background: linear-gradient(135deg, #fbf7ff, #f1eafb);
  border: 1px solid rgba(107, 79, 138, 0.18);
  border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(107, 79, 138, 0.08);
  font-size: 13px; color: #3a2f4a; line-height: 1.5;
}
.ogc-head { font-weight: 800; font-size: 14px; color: #5a3d82; margin-bottom: 10px; }
.ogc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.ogc-stat {
  background: #fff; border-radius: 10px; padding: 8px 4px; text-align: center;
  box-shadow: 0 1px 4px rgba(107, 79, 138, 0.10);
}
.ogc-stat b { display: block; font-size: 17px; color: #5a3d82; line-height: 1.2; }
.ogc-stat span { font-size: 11px; color: #8a7ea0; }
.ogc-meta { font-size: 12px; color: #6b5a82; margin-bottom: 10px; }
.ogc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ogc-col-title { font-size: 12px; font-weight: 700; color: #5a3d82; margin-bottom: 4px; }
.ogc-list { margin: 0; padding-left: 16px; line-height: 1.7; color: #4a3f5c; }
.ogc-list .ogc-muted { color: #b3a8c4; list-style: none; margin-left: -16px; font-style: italic; }
.ogc-foot { margin-top: 10px; font-size: 10px; color: #a99cba; text-align: right; }

@media (max-width: 768px) {
  .opc007-fab { right: 14px; bottom: 70px; padding: 9px 13px; }
  .opc007-fab-label { display: none; }
  .opc007-fab-icon { font-size: 24px; }
  .opc-path-steps { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   ★ UI 精修层 · 世界级视觉升级 (World-class UI Polish)
   原则：不改结构与逻辑，仅统一提档质感。
   墨青 × 鎏金 × 宣纸白 → 更深邃的层次 / 更克制的光芒 / 更有呼吸感
   注意：凡被媒体查询切换 display 的组件（.top-nav/.site-footer/.tab-bar），
   其覆盖均置于对应断点内，避免回归响应式。
   ========================================================= */

/* ---------- 1. 设计令牌升级 ---------- */
:root {
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  /* 质感变量 */
  --gold-grad: linear-gradient(135deg, #e3caa0 0%, #c9a96e 45%, #b08e4f 100%);
  --ink-grad: linear-gradient(135deg, #1f5a5a 0%, #0f3333 100%);
  --hairline: rgba(26, 77, 77, 0.10);
  --shadow-sm: 0 1px 3px rgba(15, 51, 51, 0.06), 0 1px 2px rgba(15, 51, 51, 0.04);
  --shadow-md: 0 6px 18px rgba(15, 51, 51, 0.08), 0 2px 6px rgba(15, 51, 51, 0.05);
  --shadow-lg-2: 0 18px 42px rgba(15, 51, 51, 0.14), 0 6px 14px rgba(15, 51, 51, 0.08);
  --glow-gold: 0 8px 26px rgba(201, 169, 110, 0.30);
  --radius-xl: 22px;
}

/* ---------- 2. 全局质感 ---------- */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background:
    radial-gradient(1200px 620px at 10% -8%, rgba(26, 77, 77, 0.10), transparent 60%),
    radial-gradient(1000px 520px at 102% 0%, rgba(201, 169, 110, 0.12), transparent 55%),
    linear-gradient(180deg, #efe9dc 0%, #e8e2d4 100%);
  color: var(--text);
}
::selection { background: rgba(201, 169, 110, 0.30); color: #14201f; }
.content-area::-webkit-scrollbar { width: 6px; }
.content-area::-webkit-scrollbar-thumb { background: rgba(201, 169, 110, 0.5); border-radius: 6px; }

/* ---------- 3. 应用外壳 ---------- */
.app-shell {
  border-radius: 26px;
  box-shadow: 0 0 0 1px rgba(26, 77, 77, 0.08), 0 28px 70px rgba(15, 51, 51, 0.16);
}
@media (min-width: 769px) { .app-shell { border-radius: 18px; } }
@media (max-width: 768px) { .app-shell { border-radius: 22px; box-shadow: 0 18px 50px rgba(15, 51, 51, 0.18); } }

/* ---------- 4. 字体气质：品牌与标题用衬线 ---------- */
.nav-title,
.hero-title,
.agents-hero h1,
.agent-detail-name,
.footer-brand,
.top-logo,
.section-title,
.hero-test-note { font-family: var(--serif); }

/* ---------- 5. 按钮：鎏金渐变 + 悬浮升力 ---------- */
.btn { letter-spacing: 0.5px; font-weight: 600; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn-primary {
  background: var(--ink-grad); color: var(--paper);
  border: none; box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg-2); }
.btn-accent {
  background: var(--gold-grad); color: #2a1d05;
  border: none; box-shadow: var(--glow-gold);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201, 169, 110, 0.5); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--gold-soft); }
.btn-outline:active { transform: scale(0.985); }

/* ---------- 6. 卡片：更柔的阴影 + 悬浮微交互 ---------- */
.card { box-shadow: var(--shadow-sm); border-color: var(--hairline); }
.card:hover { box-shadow: var(--shadow-md); }
.agent-card { box-shadow: var(--shadow-sm); }
.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg-2);
  border-color: var(--agent-accent, var(--gold));
}
.opc-path-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg-2);
  border-color: var(--agent-accent, var(--gold));
}

/* ---------- 7. 区块标题：发光金条 ---------- */
.section-title { letter-spacing: 1px; }
.section-title::before {
  width: 4px; height: 16px;
  background: var(--gold-grad);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(201, 169, 110, 0.45);
}

/* ---------- 8. 首屏 Hero：更醇的墨青 + 鎏金光晕 ---------- */
.hero-screen {
  background: radial-gradient(120% 90% at 50% 0%, #1f5a5a 0%, #143c3c 55%, #0f3333 100%);
  box-shadow: inset 0 -60px 80px -40px rgba(201, 169, 110, 0.10);
}
.hero-screen::before {
  top: -30px; right: -30px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.22) 0%, transparent 70%);
}
.hero-screen::after {
  bottom: -40px; left: -20px; width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
}
.hero-title {
  font-size: 24px; font-weight: 700; line-height: 1.55;
  text-shadow: 0 2px 20px rgba(201, 169, 110, 0.25);
}
.hero-subtitle { letter-spacing: 1.5px; }

/* ---------- 9. 移动端状态栏/导航栏：轻磨砂 ---------- */
.status-bar,
.nav-bar {
  background: linear-gradient(180deg, rgba(240, 235, 224, 0.96), rgba(240, 235, 224, 0.78));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ---------- 10. 升级横幅：品牌墨青 + 鎏金 ---------- */
.upgrade-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(90deg, #0f3333, #1a4d4d 50%, #0f3333);
  color: var(--gold-light); text-align: center; padding: 9px 16px;
  font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: 0.4px;
  box-shadow: 0 4px 16px rgba(15, 51, 51, 0.35);
}
.upgrade-banner strong { color: #fff; }
.upgrade-banner-close { cursor: pointer; margin-left: 8px; font-size: 16px; opacity: 0.7; }
.upgrade-banner-close:hover { opacity: 1; }

/* ---------- 11. 智能体广场 Hero：鎏金光晕 ---------- */
.agents-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #1f5a5a, #0f3333);
}
.agents-hero::after {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.20), transparent 70%);
}

/* ---------- 12. OPC007 悬浮球：呼吸光 ---------- */
@keyframes fabGlow {
  0%, 100% { box-shadow: 0 8px 24px rgba(176, 142, 79, 0.45); }
  50% { box-shadow: 0 10px 34px rgba(176, 142, 79, 0.72); }
}
.opc007-fab { animation: fabGlow 3s ease-in-out infinite; }

/* ---------- 13. 桌面顶栏：玻璃拟态（仅 ≥769px） ---------- */
@media (min-width: 769px) {
  .top-nav {
    background: rgba(15, 51, 51, 0.82);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 30px rgba(0, 0, 0, 0.22);
  }
  .top-menu-item.active::after {
    box-shadow: 0 0 10px rgba(201, 169, 110, 0.8);
  }
  .site-footer {
    background: linear-gradient(180deg, #0f3333, #0c2a2a);
    position: relative;
  }
  .site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.5), transparent);
  }
}

/* ---------- 14. 移动端底栏：磨砂玻璃（仅 ≤768px） ---------- */
@media (max-width: 768px) {
  .tab-bar {
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border-top: 1px solid rgba(26, 77, 77, 0.10);
    box-shadow: 0 -4px 20px rgba(15, 51, 51, 0.08);
  }
}

/* ============================================================
   整体融合层 V3.3 —— 消除"框架套小程序"套娃感
   根因：#app 同时挂 .phone-container(实体手机壳) + .app-shell(圆角投影)，
        桌面端被框进 1200px 居中卡片浮于深灰背景，且内容在 90vh 窗口内滚动。
   修复：桌面=一体化真网站(顶栏/页脚横跨视口,内容随页面自然流动)；
        移动=全屏原生 App(去除卡片外壳/圆角/投影)。
   ============================================================ */

/* ---------- 桌面端（≥769px）：一体化真网站 ---------- */
@media (min-width: 769px) {
  /* 取消 flex 居中，回到正常文档流；背景贯通墨青+鎏金光晕氛围 */
  body {
    display: block;
    align-items: initial;
    min-height: 100vh;
    background:
      radial-gradient(1100px 620px at 10% -10%, rgba(201, 169, 110, 0.10), transparent 60%),
      radial-gradient(1000px 720px at 102% -4%, rgba(26, 77, 77, 0.10), transparent 55%),
      var(--paper);
  }

  /* 拆除 1200 居中卡片 + 圆角 + 投影外壳，全宽融入背景 */
  .phone-container,
  .app-shell {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    overflow: visible;
    background: transparent;
    display: block;
  }

  /* 顶栏横跨整个视口（内部 1200 居中由 .top-nav-inner 处理） */
  .top-nav { width: 100%; }

  /* 内容区随页面自然流动，不再限定 90vh 窗口内滚动 */
  .content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 24px 88px;
    overflow: visible;
    background: transparent;
  }

  /* 页脚全宽墨青，内部 1200 对齐 */
  .site-footer { width: 100%; }
}

/* ---------- 移动端（≤768px）：全屏原生 App，去外壳 ---------- */
@media (max-width: 768px) {
  /* 去除"手机套手机"：app-shell 的圆角与投影在真机全屏下无意义 */
  .app-shell {
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
  .status-bar { padding-top: env(safe-area-inset-top); }
  .tab-bar { padding-bottom: env(safe-area-inset-bottom); }
}

/* ============================================================
   测评流量入口样式（V3.4）
   ============================================================ */
/* 顶栏免费测评按钮 */
.top-assess-btn {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1a1a;
  border: none;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(201, 169, 110, 0.35);
  white-space: nowrap;
}
.top-assess-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* 测评着陆页 */
.assessment-landing { max-width: 920px; margin: 0 auto; padding: 28px 20px 72px; }
.assess-back {
  background: transparent; border: none; color: var(--text-secondary);
  font-size: 14px; cursor: pointer; padding: 6px 0; margin-bottom: 8px;
}
.assess-back:hover { color: var(--ink); }
.assess-hero {
  text-align: center;
  background:
    radial-gradient(800px 360px at 50% -20%, rgba(201, 169, 110, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(26, 77, 77, 0.04), rgba(26, 77, 77, 0.01));
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius-lg);
  padding: 48px 28px 40px;
}
.assess-eyebrow { font-size: 13px; letter-spacing: 2px; color: var(--gold-dark); font-weight: 700; margin-bottom: 12px; }
.assess-title { font-family: var(--serif); font-size: 38px; font-weight: 900; color: var(--ink); line-height: 1.25; margin-bottom: 14px; }
.assess-sub { font-size: 15px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 28px; }
.assess-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 12px; }
.assess-note { font-size: 13px; color: var(--text-light); }
.assess-note b { color: var(--gold-dark); }
.assess-values {
  display: flex; align-items: stretch; gap: 16px; margin-top: 28px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 20px;
}
.assess-value { flex: 1; text-align: center; }
.assess-value-icon { font-size: 30px; margin-bottom: 8px; }
.assess-value-title { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.assess-value-desc { font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.assess-value-arrow { align-self: center; color: var(--gold); font-size: 22px; font-weight: 700; }
@media (max-width: 768px) {
  .assess-title { font-size: 28px; }
  .assess-values { flex-direction: column; }
  .assess-value-arrow { transform: rotate(90deg); }
  .btn-lg { width: 100%; }
}

/* 首页中部测评引导横幅 */
.assess-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(100deg, rgba(26, 77, 77, 0.06), rgba(201, 169, 110, 0.12));
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius-lg);
  padding: 18px 22px; margin: 22px 0; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.assess-strip:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.assess-strip-left { display: flex; align-items: center; gap: 14px; }
.assess-strip-icon {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--ink); font-size: 22px; flex-shrink: 0;
}
.assess-strip-title { font-weight: 700; color: var(--ink); font-size: 16px; }
.assess-strip-desc { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
@media (max-width: 768px) {
  .assess-strip { flex-direction: column; align-items: stretch; text-align: center; }
  .assess-strip-left { justify-content: center; }
}

/* ============================================================
   OPC 认知场训练模块 · 视觉层（墨青×鎏金，复用整站设计令牌）
   说明：仅追加，不覆盖 :root，不改动其它模块；全部作用域在 .cognitive-field / .assess-cf-strip
   ============================================================ */
.cognitive-field { max-width: 780px; margin: 0 auto; padding: 8px 0 24px; }
.cf-hide { display: none !important; }
.cognitive-field .agent-back { margin-bottom: 14px; }

.cf-hero { text-align: center; padding: 14px 4px 6px; }
.cf-eyebrow { display: inline-block; font-size: 12px; letter-spacing: .12em; color: var(--gold-dark);
  background: var(--gold-soft); border: 1px solid rgba(176, 142, 79, .3); border-radius: 999px; padding: 3px 12px; margin-bottom: 10px; }
.cf-title { font-family: var(--serif, "Noto Serif SC", serif); font-weight: 800; font-size: 26px; line-height: 1.3;
  background: linear-gradient(120deg, var(--ink-dark), var(--ink) 55%, var(--ink-light));
  -webkit-background-clip: text; background-clip: text; color: transparent; margin: 6px 0 10px; }
.cf-sub { color: var(--text-secondary, #5f6b66); font-size: 14px; line-height: 1.7; max-width: 620px; margin: 0 auto; }

.cf-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0; }
.cf-mini { border: 1px solid var(--ink-border); border-radius: 14px; padding: 12px 14px;
  background: linear-gradient(180deg, var(--card), var(--paper)); transition: transform .2s, box-shadow .2s, border-color .2s; }
.cf-mini:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 10px 26px rgba(176, 142, 79, .18); }
.cf-mini b { display: block; color: var(--ink); font-size: 14.5px; font-weight: 700; margin-bottom: 3px; }
.cf-mini span { display: block; color: var(--text-secondary, #5f6b66); font-size: 12.5px; line-height: 1.6; }

.cf-start-wrap { text-align: center; margin-top: 8px; }
.cf-start-note { color: var(--text-secondary, #5f6b66); font-size: 12.5px; margin: 12px 0 0; }

/* 题卡 */
.cf-quiz { max-width: 680px; margin: 0 auto; }
.cf-progress { font-size: 13px; color: var(--text-secondary, #5f6b66); margin: 6px 2px 10px; text-align: center; letter-spacing: .02em; }
.cf-qcard { padding: 20px; border-radius: 18px; border: 1px solid var(--ink-border); background: var(--card);
  box-shadow: 0 8px 26px rgba(15, 51, 51, .06), 0 1px 2px rgba(15, 51, 51, .04); }
.cf-tags { margin-bottom: 10px; }
.cf-tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; margin-right: 6px; }
.cf-tag.t { background: var(--ink-soft); color: var(--ink-dark); }
.cf-tag.p { background: #f6e9f0; color: #9d3b78; }
.cf-tag.d { background: #e7f3ec; color: #1f7a55; }
.cf-tag.cat { background: linear-gradient(135deg, #f0e4c6, #e7d3a8); color: #8a6a1f; border: 1px solid rgba(176, 142, 79, .4); }
.cf-q { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.7; margin: 6px 0 16px; white-space: pre-wrap; }
.cf-opt { display: block; width: 100%; text-align: left; border: 1px solid var(--ink-border); background: var(--card);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; font-size: 15px; color: var(--ink);
  transition: transform .15s, border-color .15s, background .15s, box-shadow .15s; }
.cf-opt:hover { border-color: var(--ink); background: #f1f7f7; transform: translateY(-1px); }
.cf-opt.sel { border-color: var(--ink); background: #eaf3f3; font-weight: 600; box-shadow: 0 0 0 1px var(--ink) inset; }
.cf-opt.correct { border-color: #2e9b73; background: #f0faf4; box-shadow: 0 0 0 1px #2e9b73 inset; }
.cf-opt.wrong { border-color: #c0492f; background: #fdf0ec; box-shadow: 0 0 0 1px #c0492f inset; }
.cf-opt .cf-key { font-weight: 700; margin-right: 8px; color: var(--ink); }
.cf-opt:disabled { cursor: default; }
.cf-row { display: flex; justify-content: flex-start; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.cf-feedback { margin-top: 14px; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.7;
  border: 1px solid var(--ink-border); background: var(--paper); display: none; }
.cf-feedback.show { display: block; }
.cf-verdict { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.cf-verdict.ok { color: #2e9b73; } .cf-verdict.no { color: #c0492f; }
.cf-scoring { margin-top: 8px; color: var(--text-secondary, #5f6b66); font-size: 13px; white-space: pre-wrap;
  background: var(--card); border: 1px dashed var(--ink-border); border-radius: 8px; padding: 8px 10px; }

/* 报告 */
.cf-report { max-width: 680px; margin: 0 auto; }
.cf-report-title { font-family: var(--serif, "Noto Serif SC", serif); color: var(--ink-dark); margin-top: 0; }
.cf-big-wrap { text-align: center; margin: 6px 0 14px; }
.cf-big { font-family: var(--serif, "Noto Serif SC", serif); font-size: 40px; font-weight: 800; color: var(--ink);
  text-shadow: 0 2px 12px rgba(26, 77, 77, .18); line-height: 1; }
.cf-big-sub { color: var(--text-secondary, #5f6b66); font-size: 13px; margin-top: 4px; }
.cf-stat { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.cf-stat-box { flex: 1; min-width: 120px; border: 1px solid var(--ink-border); border-radius: 12px; padding: 12px; text-align: center; background: var(--card); }
.cf-stat-box b { display: block; font-size: 20px; color: var(--ink); }
.cf-report-line { font-size: 14px; line-height: 1.7; color: var(--ink); }
.cf-tips { margin: 8px 0 0; padding-left: 18px; } .cf-tips li { margin: 4px 0; font-size: 13.5px; line-height: 1.6; color: var(--text-secondary, #5f6b66); }
.cf-report-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

/* 测评页承接条 */
.assess-cf-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, var(--ink), var(--ink-dark)); color: #f3ead2;
  border: 1px solid rgba(176, 142, 79, .5); box-shadow: 0 6px 20px rgba(15, 51, 51, .22); transition: transform .15s, box-shadow .15s; }
.assess-cf-strip:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15, 51, 51, .3); }
.assess-cf-left { display: flex; align-items: center; gap: 12px; }
.assess-cf-icon { font-size: 26px; }
.assess-cf-title { font-weight: 700; font-size: 15px; color: #fff; }
.assess-cf-desc { font-size: 12.5px; color: rgba(243, 234, 210, .85); margin-top: 2px; }

@media (max-width: 560px) {
  .cf-cards { grid-template-columns: 1fr; }
  .cf-title { font-size: 22px; }
  .cf-qcard { padding: 16px; border-radius: 14px; }
  .assess-cf-strip { flex-direction: column; align-items: stretch; text-align: center; }
  .assess-cf-left { justify-content: center; }
}

/* ============================================================
   OPC 判官测评模块 · 视觉层（墨青×鎏金，作用域隔离 .judge-app，零回归）
   蓝本：opc-judge-standalone.html 精修层（墨青×鎏金×宣纸白）
   ============================================================ */
.judge-app {
  --j-teal: #1f4a42; --j-teal-d: #0c201c; --j-teal-l: #2c6258;
  --j-gold: #c9a227; --j-gold-l: #e8c879;
  --j-gold-grad: linear-gradient(135deg,#e8c879 0%,#c9a227 55%,#a8801a 100%);
  --j-teal-grad: linear-gradient(135deg,#2c6258 0%,#16302b 100%);
  --j-card: #fdfbf5; --j-ink: #1c2b27; --j-muted: #6b7a74; --j-line: #e7e1d3;
  --j-green: #16a34a; --j-amber: #d97706; --j-red: #dc2626;
  --j-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --j-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  max-width: 860px; margin: 0 auto; padding: 6px 14px 40px;
  font-family: var(--j-sans); line-height: 1.6; color: var(--j-ink);
}
.judge-app .judge-progress { height: 6px; background: rgba(12,32,28,.08); border-radius: 999px; overflow: hidden; margin: 4px 4px 8px; }
.judge-app .judge-pbar { height: 100%; width: 25%; border-radius: 999px;
  background: linear-gradient(90deg,#2c6258,#c9a227); box-shadow: 0 0 10px rgba(201,162,39,.45); transition: width .35s ease; }
.judge-app .judge-pstep { font-size: 12px; color: var(--j-muted); margin: 0 4px 12px; font-weight: 600; }
.judge-app .judge-foot { text-align: center; font-size: 12px; color: #94a3b8; padding: 22px 10px 0; }

.judge-app .card { background: var(--j-card); border: 1px solid var(--j-line); border-radius: 16px;
  padding: 24px 22px; box-shadow: 0 2px 6px rgba(12,32,28,.04), 0 10px 30px rgba(12,32,28,.06); margin-bottom: 16px; }
.judge-app .card h2 { font-family: var(--j-serif); font-size: 18px; color: var(--j-teal-d); margin-bottom: 6px;
  border-left: 4px solid var(--j-gold); padding-left: 10px; }
.judge-app .muted { font-size: 12px; color: var(--j-muted); font-weight: 400; }
.judge-app .req { color: var(--j-red); }
.judge-app .seedline { font-size: 12px; color: var(--j-muted); margin-bottom: 12px; }
.judge-app .hint { font-size: 12px; color: var(--j-muted); margin-top: 6px; line-height: 1.5; }
.judge-app .banner { background: linear-gradient(135deg, rgba(28,48,43,.10), rgba(201,162,39,.10));
  border: 1px solid rgba(201,162,39,.5); color: var(--j-teal-d); border-radius: 10px;
  padding: 10px 14px; font-size: 13px; margin: -2px 0 14px; }
.judge-app .banner b { color: var(--j-gold); }

.judge-app .field { margin: 16px 0; }
.judge-app .field > label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 15px; }
.judge-app input[type=text] { width: 100%; padding: 11px 13px; border: 1px solid var(--j-line); border-radius: 10px;
  font-size: 15px; outline: none; transition: border .2s; background: #fff; }
.judge-app input[type=text]:focus { border-color: var(--j-teal); }
.judge-app .suggest { display: none; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.judge-app .sug { padding: 6px 12px; border: 1px solid var(--j-line); border-radius: 999px;
  background: #f8fafc; font-size: 13px; cursor: pointer; color: #334155; transition: all .15s; }
.judge-app .sug:hover { border-color: var(--j-teal); background: rgba(44,98,88,.10); color: var(--j-teal-d); }
.judge-app .sugsub { color: var(--j-muted); font-size: 11px; margin-left: 2px; }

.judge-app .opts { display: flex; flex-wrap: wrap; gap: 9px; }
.judge-app .opt { position: relative; }
.judge-app .opt input { position: absolute; opacity: 0; }
.judge-app .opt span { display: inline-block; padding: 9px 15px; border: 1px solid var(--j-line); border-radius: 10px;
  font-size: 14px; cursor: pointer; background: #fbfcfe; transition: all .15s; user-select: none; }
.judge-app .opt input:checked + span { border-color: var(--j-teal); background: rgba(44,98,88,.10); color: var(--j-teal-d); font-weight: 600; }

.judge-app .q { padding: 14px 0; border-bottom: 1px dashed var(--j-line); }
.judge-app .q:last-of-type { border-bottom: none; }
.judge-app .qh { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.judge-app .qh .num { color: var(--j-teal); }
.judge-app .q.miss { border: 2px solid var(--j-red); border-radius: 10px; background: #fff5f5; margin: 0 -8px; padding: 12px 8px; }

.judge-app .jopts { display: flex; flex-direction: column; gap: 8px; }
.judge-app .jopt { text-align: left; padding: 11px 14px; border: 1px solid var(--j-line); border-radius: 10px;
  background: #fff; cursor: pointer; font-size: 14px; transition: all .15s; display: flex; gap: 10px; align-items: flex-start; }
.judge-app .jopt b { color: var(--j-teal); font-weight: 700; min-width: 16px; }
.judge-app .jopt:hover { border-color: rgba(201,162,39,.5); }
.judge-app .jopt.sel { border-color: var(--j-teal); background: rgba(44,98,88,.10); }

.judge-app .snums { display: flex; gap: 8px; }
.judge-app .snum { width: 46px; height: 46px; border: 1px solid var(--j-line); border-radius: 10px; background: #fff;
  cursor: pointer; font-size: 16px; font-weight: 700; color: var(--j-ink); transition: all .15s; }
.judge-app .snum:hover { border-color: rgba(201,162,39,.5); }
.judge-app .snum.sel { border-color: var(--j-teal); background: var(--j-teal); color: #fff; }

.judge-app .ptag { font-size: 11px; padding: 1px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.judge-app .ptag.pos { background: #e7f6ec; color: #15803d; }
.judge-app .ptag.rev { background: #fdeaea; color: #b91c1c; }
.judge-app .ptag.sit { background: rgba(44,98,88,.12); color: var(--j-teal-d); }

.judge-app .dim { border: 1px solid var(--j-line); border-radius: 12px; margin: 12px 0; overflow: hidden; }
.judge-app .dim > summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--j-teal-d);
  background: rgba(44,98,88,.06); list-style: none; outline: none; }
.judge-app .dim > summary::-webkit-details-marker { display: none; }
.judge-app .dim > summary::before { content: '▸ '; color: var(--j-muted); }
.judge-app .dim[open] > summary::before { content: '▾ '; }
.judge-app .dim > .q { padding-left: 16px; padding-right: 16px; }

.judge-app .result-head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 6px 0 18px; }
.judge-app .big { font-size: 52px; font-weight: 800; line-height: 1; min-width: 90px; text-align: center; }
.judge-app .badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 6px; }
.judge-app .badge { background: rgba(44,98,88,.12); color: var(--j-teal-d); border-radius: 999px; padding: 5px 13px; font-size: 14px; font-weight: 600; }
.judge-app .badge.sub { background: rgba(201,162,39,.16); color: #8a6512; }
.judge-app .oneliner { font-size: 15px; color: #334155; }
.judge-app .rep { width: 100%; min-height: 240px; border: none; border-radius: 14px; background: #fff; }
.judge-app .sharebox { margin: 14px 0 4px; padding: 14px; background: #f8fafc; border: 1px solid var(--j-line); border-radius: 12px; }
.judge-app .slabel { font-size: 13px; color: #334155; margin-bottom: 8px; }
.judge-app .slink { width: 100%; padding: 10px 12px; border: 1px solid var(--j-line); border-radius: 9px; font-size: 12px; color: #475569; background: #fff; }
.judge-app .shint { font-size: 11px; color: #94a3b8; margin-top: 6px; }
.judge-app .detail { margin-top: 16px; padding: 14px 16px; background: rgba(44,98,88,.04); border: 1px solid var(--j-line); border-radius: 12px; }
.judge-app .detail summary { cursor: pointer; font-weight: 600; color: var(--j-teal-d); font-size: 14px; }
.judge-app .detail h4 { font-size: 13px; color: #334155; margin: 14px 0 6px; }
.judge-app .dtab { width: 100%; border-collapse: collapse; font-size: 12px; }
.judge-app .dtab th, .judge-app .dtab td { border: 1px solid var(--j-line); padding: 6px 8px; text-align: left; vertical-align: top; }
.judge-app .dtab th { background: rgba(44,98,88,.10); color: var(--j-teal-d); font-weight: 600; }
.judge-app .dtab .ctr { text-align: center; }

.judge-app .actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; position: sticky; bottom: 12px; z-index: 6;
  background: linear-gradient(180deg, rgba(244,241,233,0), var(--j-card) 26%); padding: 14px 10px 4px; border-radius: 14px; }
.judge-app .btn { padding: 11px 22px; border-radius: 10px; border: none; cursor: pointer; font-size: 15px; font-weight: 600; transition: all .15s; font-family: var(--j-sans); }
.judge-app .btn.primary { background: var(--j-teal-grad); color: #fff; box-shadow: 0 6px 18px rgba(12,32,28,.22); }
.judge-app .btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(12,32,28,.30); }
.judge-app .btn.ghost { background: transparent; color: var(--j-teal-d); border: 1px solid var(--j-gold); }
.judge-app .btn.ghost:hover { background: var(--j-gold-grad); color: #0c201c; border-color: transparent; transform: translateY(-2px); }
.judge-app .btn:focus-visible { outline: 2px solid var(--j-gold-l); outline-offset: 3px; box-shadow: 0 0 0 4px rgba(201,162,39,.25); }
.judge-app .err { color: var(--j-red); font-size: 13px; margin-top: 10px; min-height: 18px; }

.judge-app .histbox { margin: 8px 0 4px; }
.judge-app .hist { list-style: none; margin: 10px 0 2px; padding: 0; }
.judge-app .hist li { font-size: 13px; color: var(--j-ink); padding: 8px 12px; border-left: 3px solid var(--j-gold); background: #fdfbf5; border-radius: 0 9px 9px 0; margin-bottom: 7px; line-height: 1.5; }
.judge-app .hist li b { color: var(--j-teal); }
.judge-app .hist .htime { color: #94a3b8; margin-right: 6px; font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
  .judge-app .big { font-size: 42px; }
  .judge-app .snum { width: 40px; height: 40px; }
}

/* ===== V3.7 苏州区域枢纽辐射图（墨青×鎏金） ===== */
.branch-hub { position: relative; width: 250px; height: 250px; margin: 4px auto 8px; }
.hub-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, #1a4d4d, #2c6b63);
  color: #f3ead3; display: flex; align-items: center; justify-content: center;
  text-align: center; font-weight: 700; font-size: 15px; line-height: 1.15;
  box-shadow: 0 8px 22px rgba(26,77,77,.30);
}
.hub-spoke {
  position: absolute; left: 50%; top: 50%;
  width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  background: #fffdf8; border: 1.5px solid #c9a96e; color: #1a4d4d;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  transform: rotate(var(--a)) translateY(-96px) rotate(calc(-1 * var(--a)));
  box-shadow: 0 4px 12px rgba(26,77,77,.12);
}
.branch-club-chip {
  display: block; width: -moz-max-content; width: max-content; margin: 0 auto 6px; padding: 6px 16px;
  background: linear-gradient(135deg, #c9a96e, #e7cf9c); color: #3a2f17;
  border-radius: 999px; font-size: 13px; font-weight: 700;
}
.branch-compact-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.branch-compact-tag {
  padding: 4px 10px; background: #f3ead3; border: 1px solid #e2d3b0;
  border-radius: 999px; font-size: 12px; color: #2c6b63; font-weight: 600;
}
.branch-compact-item.club { margin-top: 4px; }
.branch-compact-dot.club { background: #c9a96e; }
.branch-group-title { margin: 16px 0 8px; font-size: 14px; font-weight: 700; color: #1a4d4d; }
.branch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.branch-card-club { border: 1.5px solid #e2d3b0; background: linear-gradient(180deg,#fffdf8,#fbf4e6); }

/* ========== OPC判官 · AI 答疑面板 ========== */
#aiPanel { margin-top: 18px; padding: 16px; border: 1.5px solid #e2d3b0; border-radius: 16px; background: linear-gradient(180deg,#fffdf8,#f7f1e6); }
.ai-head { font-size: 14px; font-weight: 700; color: #1a4d4d; margin-bottom: 10px; }
.ai-msgs { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px 10px; }
.ai-hint { font-size: 12px; color: #8a7d5e; padding: 8px 0; }
/* 环境自检提示条：当前页面来源够不到后端时（本地预览 / 离线报告 / 静态发布页）提前告知，
   避免用户点完快捷问题只看到一句「服务异常 (405)」却无从下手 */
.ai-env-warn { margin: 0 0 10px; padding: 9px 12px; border: 1px solid #e6c98a; border-left: 3px solid #d4a017; border-radius: 8px; background: #fdf6e3; color: #7a5c1e; font-size: 12.5px; line-height: 1.65; word-break: break-word; }
.ai-msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.ai-msg.me { align-self: flex-end; background: #1a4d4d; color: #fff; border-bottom-right-radius: 3px; }
.ai-msg.bot { align-self: flex-start; background: #fff; border: 1px solid #e7dcc0; color: #2c3a32; border-bottom-left-radius: 3px; }
.ai-msg.bot.tip { background: transparent; border: none; color: #b08e4f; font-size: 12px; font-style: italic; padding: 2px 0; }
.ai-msg.typing { color: #9a8c66; }
.ai-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.ai-q { border: 1px solid #d8c79c; background: #fff; color: #2c6b63; border-radius: 999px; padding: 5px 12px; font-size: 12px; cursor: pointer; transition: .15s; }
.ai-q:hover { background: #f3ead3; }
.ai-input { display: flex; gap: 8px; align-items: flex-end; }
.ai-input textarea { flex: 1; resize: none; border: 1px solid #d8c79c; border-radius: 10px; padding: 8px 10px; font-size: 13.5px; font-family: inherit; line-height: 1.5; }
.ai-input textarea:focus { outline: none; border-color: #2a6b6b; }
.ai-input .btn { flex: none; height: 38px; }

/* P2-F：分会选择卡片 —— 原 onmouseover/onmouseout 内联样式改为 CSS :hover */
.branch-pick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s ease;
}
.branch-pick-item:hover {
  border-color: var(--primary);
}

/* ============================================================
   合并智能体着陆页（V2.0 · 9 个入口合并为 6 个）
   共读成长伴侣 / 商业成长教练 / 运营服务管家 三页共用同一套骨架样式，
   差异只靠 --maf-accent 一个变量驱动，避免三份样式各自漂移。
   ============================================================ */
.merged-agent { padding-bottom: 24px; }

.maf-back {
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary); font-size: 13.5px;
  padding: 12px 16px 4px; font-family: inherit;
}
.maf-back:hover { color: var(--ink); }

/* Hero：左侧一道 accent 竖条 + 大图标，点明当前是哪个智能体 */
.maf-hero {
  display: flex; align-items: center; gap: 14px;
  margin: 4px 16px 8px; padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--maf-accent, var(--gold));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.maf-hero-icon {
  flex: 0 0 52px; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 27px; border-radius: 14px;
  background: color-mix(in srgb, var(--maf-accent, var(--gold)) 12%, #fff);
}
.maf-hero-text { min-width: 0; }
.maf-hero-name { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.maf-hero-tagline { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }
/* 合并来源：让老用户认得出"我原来用的那个智能体去哪了" */
.maf-hero-merged {
  font-size: 11.5px; color: var(--text-light); margin-top: 6px;
  padding-top: 6px; border-top: 1px dashed var(--border);
}

.maf-actions { padding: 4px 16px 0; }

/* 能力清单：一行一条，末行去掉分隔线 */
.maf-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 0; border-bottom: 1px solid var(--border);
}
.maf-item:last-child { border-bottom: none; }
.maf-icon {
  flex: 0 0 30px; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; border-radius: 9px; background: var(--bg-1);
}
.maf-body { min-width: 0; flex: 1; }
.maf-name {
  font-size: 14px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.maf-desc { font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; margin-top: 3px; }

/* 「规划中」徽标：刻意做得克制但清晰，不让未上线能力看起来像已上线 */
.maf-badge {
  font-size: 10.5px; font-weight: 600; color: var(--gold-dark);
  background: var(--gold-soft); border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: 999px; padding: 1px 7px; white-space: nowrap;
}
/* 规划中的条目整体降一档视觉权重，已上线的保持正常 */
.maf-item.is-planned .maf-icon { opacity: .65; }
.maf-item.is-planned .maf-name { color: var(--text); }
.maf-item.is-ready .maf-icon {
  background: rgba(45, 134, 89, 0.1);
}

.maf-note {
  margin: 2px 16px 0; padding: 10px 12px;
  font-size: 12px; color: var(--text-secondary); line-height: 1.6;
  background: var(--bg-1); border-radius: var(--radius-sm);
}

/* ============ 合并智能体·可运行面板（打卡 / BP / 运营管家） ============ */
.maf-live {
  margin: 14px 16px 24px;
  padding: 14px;
  background: var(--bg-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md, 14px);
  box-shadow: var(--shadow-sm);
}
.maf-live .section { margin: 0; }
.maf-live .section + .section { margin-top: 16px; }

.muted { color: var(--text-secondary); font-size: 13px; }
.link { color: var(--gold-dark, #b08e4f); cursor: pointer; text-decoration: underline; }

/* 表单行：两列并排 */
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; min-width: 0; }
.form-label { display: block; font-size: 12px; color: var(--text-secondary); margin: 10px 0 4px; }
.checkin-summary {
  font-size: 14px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: rgba(45, 134, 89, 0.08); border: 1px solid rgba(45, 134, 89, 0.18);
  line-height: 1.6;
}
.checkin-list-title { font-size: 12px; color: var(--text-secondary); margin: 14px 0 6px; }
.checkin-list { display: flex; flex-direction: column; gap: 6px; }
.checkin-row {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 13px; padding: 8px 10px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--hairline);
}
.checkin-date { font-weight: 600; color: var(--text); }
.checkin-meta { color: var(--text-secondary); }
.checkin-note { color: var(--text-secondary); flex-basis: 100%; }

/* BP 生成器 */
.bp-hint { font-size: 12px; color: var(--text-secondary); margin: 10px 0; line-height: 1.6; }
.bp-result { margin-top: 12px; }
.bp-md {
  white-space: pre-wrap; word-break: break-word; margin: 0 0 12px;
  max-height: 360px; overflow: auto; font-size: 13px; line-height: 1.7;
  padding: 12px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--hairline);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* 运营管家 FAQ */
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.faq-item { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--hairline); }
.faq-q { font-weight: 600; font-size: 13px; color: var(--text); margin-bottom: 4px; }
.faq-a { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.faq-empty { font-size: 13px; color: var(--text-secondary); padding: 8px 0; }

/* 运营管家·统计看板 + 工单 */
.ops-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.stat-cell {
  text-align: center; padding: 12px 6px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--hairline);
}
.stat-num { font-size: 22px; font-weight: 700; color: var(--gold-dark, #b08e4f); }
.stat-label { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }
.ops-sub { font-size: 13px; font-weight: 600; color: var(--text); margin: 12px 0 8px; }
.ticket-list { display: flex; flex-direction: column; gap: 6px; }
.ticket-row {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--hairline);
}
.t-id { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--text-secondary); font-size: 12px; }
.t-sub { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.t-status { font-size: 11px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.t-open { background: rgba(200, 60, 60, 0.12); color: #c8463c; }
.t-processing { background: rgba(200, 150, 40, 0.14); color: #b8862a; }
.t-resolved { background: rgba(45, 134, 89, 0.12); color: #2d8659; }

/* ============================================================
   认知训练场 V2.0（错题本 / 自适应 / 进度追踪）
   追加在文件末尾，不改动既有 cf- 规则，避免影响已上线样式
   ============================================================ */
.cf-start-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* --- 进度追踪面板 --- */
.cf-prog-panel { border: 1px solid var(--ink-border); border-radius: 14px; background: var(--card);
  padding: 14px 16px; margin: 18px 0 4px; }
.cf-prog-empty { color: var(--text-secondary, #5f6b66); font-size: 13px; text-align: center; padding: 6px 0; line-height: 1.7; }
.cf-prog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cf-prog-head b { color: var(--ink); font-size: 15px; }
.cf-prog-head span { color: var(--text-secondary, #5f6b66); font-size: 12.5px; }
.cf-prog-head .ok { color: #2e9b73; } .cf-prog-head .mid { color: #b8862a; } .cf-prog-head .no { color: #c0492f; }

.cf-bar-group { margin-top: 12px; }
.cf-bar-title { font-size: 12px; color: var(--text-secondary, #5f6b66); margin-bottom: 6px; letter-spacing: .02em; }
.cf-bar-row { display: flex; align-items: center; gap: 8px; margin: 5px 0; }
.cf-bar-label { flex: 0 0 88px; font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-bar-track { flex: 1; height: 8px; border-radius: 999px; background: var(--ink-soft, #eef2f1); overflow: hidden; min-width: 60px; }
.cf-bar-fill { display: block; height: 100%; border-radius: 999px; transition: width .35s ease; }
.cf-bar-fill.good { background: #2e9b73; } .cf-bar-fill.mid { background: #d3a03c; } .cf-bar-fill.bad { background: #c0492f; }
.cf-bar-num { flex: 0 0 46px; text-align: right; font-size: 12px; color: var(--text-secondary, #5f6b66);
  font-variant-numeric: tabular-nums; }

/* --- 最近 N 次趋势 --- */
.cf-trend { margin-top: 14px; }
.cf-trend-bars { display: flex; align-items: flex-end; gap: 10px; height: 62px; padding-top: 4px; }
.cf-trend-item { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.cf-trend-item i { display: block; width: 100%; max-width: 34px; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--gold, #b08e4f), #d8bd80); }
.cf-trend-item span { font-size: 11px; color: var(--text-secondary, #5f6b66); margin-top: 4px; }

/* --- 错题本 --- */
.cf-wrong { max-width: 760px; margin: 0 auto; }
.cf-wrong-head { display: flex; align-items: center; gap: 12px; }
.cf-wrong-head .agent-back { margin-bottom: 0; }
.cf-wrong-title { font-family: var(--serif, "Noto Serif SC", serif); font-size: 20px; color: var(--ink-dark); margin: 0; }
.cf-wrong-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 16px; }
.cf-wrong-list { display: flex; flex-direction: column; gap: 12px; }
.cf-wrong-item { border: 1px solid var(--ink-border); border-radius: 14px; background: var(--card); padding: 13px 15px; }
.cf-wrong-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.cf-wrong-count { font-size: 12px; color: #c0492f; background: rgba(192, 73, 47, .1); padding: 2px 8px; border-radius: 999px; }
.cf-wrong-del { margin-left: auto; border: none; background: transparent; color: var(--text-secondary, #5f6b66);
  cursor: pointer; font-size: 15px; line-height: 1; padding: 4px 6px; border-radius: 6px; }
.cf-wrong-del:hover { background: var(--ink-soft, #eef2f1); color: #c0492f; }
.cf-wrong-stem { font-size: 14.5px; line-height: 1.7; color: var(--ink); white-space: pre-wrap; }
.cf-wrong-ans { margin-top: 8px; font-size: 13px; color: #2e9b73; }
.cf-wrong-ans b { color: #1f7a55; }
.cf-wrong-explain { margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--text-secondary, #5f6b66); white-space: pre-wrap; }

/* --- 报告页：模式提示 + 分类条 --- */
.cf-mode-note { font-size: 13px; color: var(--gold-dark, #8a6a1f); margin: 0 0 8px; }
.cf-report-cats { margin: 14px 0 4px; }

/* ===== OPC007 语音小助手（v20260915） ===== */
.opc007-mic-btn,
.opc007-autospeak-btn {
  border: 1px solid var(--gold, #D4A934);
  background: #fff;
  color: var(--gold-dark, #8B6914);
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: all .15s ease;
  flex: none;
}
.opc007-mic-btn {
  width: 38px; height: 38px; border-radius: 50%;
  font-size: 16px; line-height: 1; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.opc007-mic-btn:hover,
.opc007-autospeak-btn:hover { background: #fdf6e3; }
.opc007-mic-btn.recording {
  background: #e74c3c; border-color: #e74c3c; color: #fff;
  animation: opc007-pulse 1.1s infinite;
}
@keyframes opc007-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(231,76,60,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(231,76,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(231,76,60,0); }
}
.opc007-mic-btn.disabled { opacity: .4; cursor: not-allowed; }
/* 识别中（上传音频 → 等待 ASR 返回）：呼吸提示，避免用户以为卡死 */
.opc007-mic-btn.busy {
  background: #fdf6e3; border-color: var(--gold, #D4A934);
  animation: opc007-busy 1s ease-in-out infinite; cursor: progress;
}
@keyframes opc007-busy {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
.opc007-autospeak-btn {
  margin-left: auto; height: 30px; padding: 4px 10px;
  display: inline-flex; align-items: center; gap: 4px;
}
.opc007-autospeak-btn.on { background: var(--gold, #D4A934); color: #fff; border-color: var(--gold, #D4A934); }
.opc007-msg-tools {
  margin-top: 8px; display: flex; justify-content: flex-end;
}
.opc007-speak-btn {
  border: none; background: rgba(139,105,20,.08); color: var(--gold-dark, #8B6914);
  border-radius: 14px; padding: 3px 9px; font-size: 12px; cursor: pointer;
  transition: background .15s ease;
}
.opc007-speak-btn:hover { background: rgba(139,105,20,.18); }

/* ============ 共读成长伴侣（任务#21）============ */
.rc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.rc-tab {
  flex: 1 1 auto; min-width: 56px; padding: 8px 6px; font-size: 13px;
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  background: var(--card); color: var(--text-secondary); cursor: pointer;
  transition: all .15s ease;
}
.rc-tab.active { background: var(--ink); color: var(--text-inverse); border-color: var(--ink); }
.rc-pane { margin-top: 4px; }
.rc-sub { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin: 14px 0 8px; }
.rc-empty, .rc-loading { padding: 18px; text-align: center; color: var(--text-secondary); font-size: 13px; }
.rc-loading { color: var(--text-light); }

/* 书架 */
.shelf-card { display: flex; gap: 12px; padding: 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; }
.shelf-cover { font-size: 30px; line-height: 1; width: 44px; text-align: center; flex: none; }
.shelf-info { flex: 1; min-width: 0; }
.shelf-title { font-size: 15px; font-weight: 600; color: var(--text); }
.shelf-author { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.shelf-status { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.rc-select { flex: 1; max-width: 140px; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); color: var(--text); font-size: 13px; }
.rc-mini { padding: 6px 10px; font-size: 12px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--bg-1); color: var(--text-secondary); cursor: pointer; }
.rc-mini:hover { border-color: var(--ink); color: var(--ink); }
.shelf-review { margin-top: 8px; font-size: 13px; color: var(--text-secondary); background: var(--bg-1); border-radius: var(--radius-sm); padding: 8px 10px; }
.shelf-rec .shelf-cover { opacity: .85; }

/* 阅读计划 */
.plan-card { padding: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-title { font-size: 15px; font-weight: 600; color: var(--text); }
.plan-goal { font-size: 13px; color: var(--text-secondary); margin: 6px 0; }
.plan-progress { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 12px; color: var(--text-secondary); }
.plan-bar { flex: 1; height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--ink-light, #2d6a6a), var(--ink)); }
.plan-items { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.plan-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; }
.plan-item .done { color: var(--text-light); text-decoration: line-through; }

/* 笔记 */
.note-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.note-type { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: var(--bg-1); color: var(--text-secondary); border: 1px solid var(--hairline); }
.note-type.type-quote { background: rgba(176,142,79,.12); color: var(--gold-dark, #b08e4f); }
.note-type.type-mindmap { background: rgba(45,134,89,.12); color: #2d8659; }
.note-page { font-size: 12px; color: var(--text-light); }
.note-head .rc-mini { margin-left: auto; }
.note-excerpt { font-size: 13px; color: var(--text-secondary); border-left: 3px solid var(--gold); padding-left: 10px; margin-bottom: 6px; font-style: italic; }
.note-content { font-size: 14px; color: var(--text); white-space: pre-wrap; line-height: 1.6; }

/* 阅读统计 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 4px; }
.stat-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 8px; text-align: center; }
.stat-num { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.stat-label { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }
.heatmap { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.heat-cell { width: 12px; height: 12px; border-radius: 3px; background: var(--bg-1); }
.heat-cell.h1 { background: #cfe8e0; }
.heat-cell.h2 { background: #9fd3c4; }
.heat-cell.h3 { background: #5fb89e; }
.heat-cell.h4 { background: var(--ink); }

/* 运营服务管家·自动催读 */
.remind-need { margin-top: 8px; }
.remind-row { display: flex; justify-content: space-between; padding: 6px 8px; border-bottom: 1px solid var(--bg-2); font-size: 14px; }
.remind-row .muted { color: var(--muted); font-size: 12px; }
.remind-history { margin-top: 4px; }
.remind-hist-row { display: flex; justify-content: space-between; padding: 6px 8px; border-bottom: 1px solid var(--bg-2); font-size: 13px; }
.remind-hist-row .muted { color: var(--muted); font-size: 11px; }
.trend { display: flex; align-items: flex-end; gap: 3px; height: 64px; padding: 6px 0; overflow-x: auto; }
.trend-bar { flex: 0 0 10px; background: var(--accent, #1a4d4d); border-radius: 2px 2px 0 0; min-height: 4px; }

/* 商业成长教练·成长档案 / 阶段测评 */
.ga-view { margin-top: 10px; border-top: 1px dashed var(--bg-2); padding-top: 8px; }
.ga-row { padding: 5px 0; font-size: 14px; line-height: 1.5; }
.ga-row .muted { color: var(--muted); font-size: 12px; }
.ga-tag { display: inline-block; background: var(--bg-1); border: 1px solid var(--bg-2); border-radius: 10px; padding: 1px 8px; margin: 2px 3px 0 0; font-size: 12px; }
.stat-plan { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 6px; font-size: 13px; }
.stat-plan b { color: var(--ink); }
