:root {
  color-scheme: light;
  --green-dark: #0d4a26;
  --green: #1a6b3a;
  --green-soft: #2ecc71;
  --bg: #e0e0e0;
  --page-bg: #f0f4f0;
  --text: #1a1a1a;
  --subtext: #666;
  --border: #1a1a1a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--bg);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 20px;
}

.preview-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.phone-frame {
  width: 375px;
  max-width: 100%;
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 8px solid var(--border);
  position: relative;
}

.status-bar {
  height: 44px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.status-time,
.status-icons {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.nav-bar {
  height: 44px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.nav-title {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}

.phone-screen {
  height: 720px;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
}

.screen-pages {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  background: var(--page-bg);
}

.screen-pages::-webkit-scrollbar {
  display: none;
}

.mini-page {
  display: none;
}

.mini-page.page--active {
  display: block;
}

.page-content {
  background: var(--page-bg);
  min-height: 600px;
}

.hero-banner {
  height: 250px;
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 40%, var(--green-soft) 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 200, 0, 0.9);
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 15px;
  margin-bottom: 8px;
  width: fit-content;
}

.hero-title {
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 5px;
}

.hero-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
}

.hero-info {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.section {
  padding: 16px;
}

.section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  padding-left: 9px;
  border-left: 4px solid var(--green);
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.highlight-item {
  background: #fff;
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.h-icon {
  font-size: 26px;
  display: block;
  margin-bottom: 5px;
}

.h-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: block;
}

.h-desc {
  font-size: 11px;
  color: #888;
  display: block;
  margin-top: 2px;
}

.groups-container {
  display: flex;
  gap: 10px;
}

.group-card {
  flex: 1;
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
  color: #fff;
}

.gc-young {
  background: linear-gradient(135deg, var(--green), var(--green-soft));
}

.gc-veteran {
  background: linear-gradient(135deg, #b8860b, #ffd700);
}

.gc-icon {
  font-size: 30px;
  display: block;
  margin-bottom: 6px;
}

.gc-name {
  font-size: 17px;
  font-weight: 800;
  display: block;
}

.gc-age {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  display: block;
  margin-bottom: 8px;
}

.gc-num {
  font-size: 32px;
  font-weight: 900;
  display: block;
}

.gc-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

.gc-status {
  background: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 15px;
  margin-top: 8px;
  display: inline-block;
}

.slogan {
  margin: 0 16px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  font-size: 14px;
  color: #fff;
  font-style: italic;
  letter-spacing: 1px;
}

.cta-section {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn-signup,
.btn-next,
.btn-share,
.btn-home,
.go,
.school-tag,
.num-btn,
.tab-item {
  cursor: pointer;
}

.btn-signup {
  width: 100%;
  background: linear-gradient(135deg, var(--green), var(--green-soft));
  color: #fff;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 700;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(26, 107, 58, 0.45);
}

.contact-hint {
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-phone {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}

.copy-tag {
  background: #e8f5e9;
  color: var(--green);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

.tab-bar {
  display: flex;
  background: #fff;
  border-top: 1px solid #eee;
  height: 56px;
  flex-shrink: 0;
  overflow-x: auto;
}

.tab-bar::-webkit-scrollbar {
  display: none;
}

.tab-item {
  min-width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 4px;
}

.tab-icon {
  font-size: 18px;
}

.tab-label {
  font-size: 9px;
  color: #666;
  white-space: nowrap;
}

.tab-item.active .tab-label {
  color: var(--green);
  font-weight: 600;
}

/* 球员管理页面 */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.filter-select {
  flex: 1;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: #f8f8f8;
  font-size: 13px;
  color: var(--text);
}

.player-list {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
}

.player-card-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.player-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-soft));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.player-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.player-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #666;
}

.player-position {
  background: #e8f5e9;
  color: var(--green);
  padding: 1px 6px;
  border-radius: 4px;
}

.player-dan {
  font-size: 11px;
  color: #b8860b;
  margin-top: 2px;
}

.player-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.player-score {
  font-size: 24px;
  font-weight: 900;
  color: var(--green);
}

.player-type {
  font-size: 11px;
  color: #888;
}

.player-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.btn-edit-player,
.btn-delete-player,
.btn-view-player {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-view-player {
  background: #e3f2fd;
  color: #1976d2;
}

.btn-edit-player {
  background: #e8f5e9;
  color: var(--green);
}

.btn-delete-player {
  background: #ffebee;
  color: #e74c3c;
}

.bottom-add-bar {
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #eee;
}

.btn-add-player {
  width: 100%;
  height: 44px;
  background: linear-gradient(135deg, var(--green), var(--green-soft));
  color: #fff;
  border: none;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(26, 107, 58, 0.35);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 14px;
}

/* 球员表单弹窗 */
.form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  z-index: 1000;
}

.form-sheet {
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.form-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.form-sheet-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.form-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f5f5f5;
  border: none;
  font-size: 20px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.form-sheet-footer {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid #eee;
}

.btn-form-cancel {
  flex: 1;
  height: 44px;
  border: 2px solid #e0e0e0;
  border-radius: 22px;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  color: #666;
  cursor: pointer;
}

.btn-form-submit {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--green), var(--green-soft));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.ability-section {
  margin-top: 8px;
}

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

.ability-label {
  width: 50px;
  font-size: 13px;
  color: #666;
}

.ability-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  background: #e0e0e0;
  border-radius: 2px;
}

.ability-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  cursor: pointer;
}

.ability-value {
  width: 30px;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

.fg-check {
  margin-top: 8px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

/* 球队管理 */
.team-list {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
}

.team-card-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.team-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-soft));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.team-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.team-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #666;
}

.team-school {
  color: var(--green);
}

.team-leader {
  font-size: 11px;
  color: #888;
}

.team-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.team-group {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.group-young {
  background: #e8f5e9;
  color: var(--green);
}

.group-veteran {
  background: #fff8e1;
  color: #b8860b;
}

.team-members {
  font-size: 13px;
  color: #666;
}

.team-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.btn-edit-team,
.btn-delete-team {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-edit-team {
  background: #e8f5e9;
  color: var(--green);
}

.btn-delete-team {
  background: #ffebee;
  color: #e74c3c;
}

/* 球员详情页 */
.player-detail-header {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 100%);
  padding: 20px;
  text-align: center;
  color: #fff;
}

.back-btn {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  margin-bottom: 12px;
  text-align: left;
}

.player-detail-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  border: 3px solid rgba(255,255,255,0.5);
}

.player-detail-name {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
}

.player-detail-meta {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.player-position-tag,
.player-type-tag,
.player-dan-tag {
  background: rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 12px;
}

.player-detail-score {
  display: flex;
  justify-content: center;
  padding: 20px;
  background: #fff;
}

.score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-soft));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.score-num {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.score-label {
  font-size: 11px;
  opacity: 0.9;
}

.radar-container {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: center;
}

.radar-svg {
  width: 200px;
  height: 200px;
}

.ability-bars {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
}

.ability-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ability-bar-row:last-child {
  margin-bottom: 0;
}

.ability-bar-label {
  width: 50px;
  font-size: 13px;
  color: #666;
}

.ability-bar-track {
  flex: 1;
  height: 8px;
  background: #e8f5e9;
  border-radius: 4px;
  overflow: hidden;
}

.ability-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}

.ability-bar-value {
  width: 30px;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

.info-cards {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
}

.info-card-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.info-card-label {
  font-size: 14px;
  color: #666;
}

.info-card-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.dan-desc-box {
  background: linear-gradient(135deg, #fff8e1, #fff);
  border-radius: 12px;
  padding: 16px;
  border-left: 4px solid #b8860b;
}

.dan-desc-title {
  font-size: 15px;
  font-weight: 700;
  color: #b8860b;
  margin-bottom: 8px;
}

.dan-desc-text {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* 选材Agent对话 */
.chat-container {
  height: 400px;
  overflow-y: auto;
  padding: 16px;
  background: var(--page-bg);
}

.chat-empty {
  text-align: center;
  color: #999;
  padding: 60px 20px;
  font-size: 14px;
}

.chat-msg {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.chat-msg-user {
  align-items: flex-end;
}

.chat-msg-agent {
  align-items: flex-start;
}

.chat-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

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

.chat-msg-agent .chat-bubble {
  background: #fff;
  color: var(--text);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.chat-time {
  font-size: 10px;
  color: #999;
  margin-top: 4px;
  padding: 0 4px;
}

.chat-loading {
  display: flex;
  gap: 4px;
  padding: 16px;
  justify-content: center;
}

.chat-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: bounce 1.4s infinite ease-in-out both;
}

.chat-loading span:nth-child(1) { animation-delay: -0.32s; }
.chat-loading span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #eee;
}

.chat-input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  font-size: 14px;
  background: #f8f8f8;
}

.chat-send-btn {
  width: 60px;
  height: 40px;
  border: none;
  border-radius: 20px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* 候选人卡片 */
.candidate-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin: 0 16px 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

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

.candidate-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.candidate-score {
  font-size: 18px;
  font-weight: 900;
  color: var(--green);
}

.candidate-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.candidate-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.candidate-type,
.candidate-dan {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}

.candidate-type {
  background: #e8f5e9;
  color: var(--green);
}

.candidate-dan {
  background: #fff8e1;
  color: #b8860b;
}

.candidate-assessment {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

/* 训练计划详细页 */
.week-selector-container {
  padding: 12px 16px;
  background: #fff;
  overflow-x: auto;
}

.week-selector {
  display: flex;
  gap: 8px;
}

.week-btn {
  padding: 8px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
}

.week-btn-active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.session-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.session-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e8f5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.session-content {
  flex: 1;
}

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

.session-day {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.session-focus {
  font-size: 12px;
  background: #e8f5e9;
  color: var(--green);
  padding: 2px 8px;
  border-radius: 4px;
}

.session-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.coach-note {
  background: #fff8e1;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.coach-note-icon {
  font-size: 18px;
}

.coach-note-content {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.training-goals {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
}

.goal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

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

.goal-icon {
  font-size: 18px;
}

.goal-text {
  font-size: 14px;
  color: var(--text);
}

/* 段位体系 */
.dan-chart {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.dan-chart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.dan-chart-row:last-child {
  margin-bottom: 0;
}

.dan-chart-label {
  width: 60px;
  font-size: 12px;
  color: #666;
}

.dan-chart-bar {
  flex: 1;
  height: 12px;
  background: #e8f5e9;
  border-radius: 6px;
  overflow: hidden;
}

.dan-chart-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-soft));
  border-radius: 6px;
  transition: width 0.3s;
}

.dan-chart-count {
  width: 30px;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

.dan-total {
  text-align: center;
  font-size: 13px;
  color: #666;
  padding: 8px;
}

.dan-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dan-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.dan-card-special {
  background: linear-gradient(135deg, #fff8e1, #fff);
  border: 2px solid #ffd700;
}

.dan-card-icon {
  font-size: 28px;
}

.dan-card-info {
  flex: 1;
}

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

.dan-card-range {
  font-size: 11px;
  color: var(--green);
  margin-bottom: 2px;
}

.dan-card-desc {
  font-size: 11px;
  color: #888;
}

.dan-card-count {
  text-align: center;
}

.dan-count-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--green);
  display: block;
}

.dan-count-label {
  font-size: 10px;
  color: #888;
}

.dan-rules-box {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
}

.dan-rule-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid #f5f5f5;
}

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

.dan-rule-icon {
  font-size: 16px;
}

/* 仪表盘增强 */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.metric-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.metric-value {
  font-size: 24px;
  font-weight: 900;
  color: var(--green);
}

.metric-label {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

.stat-chart {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.stat-row:last-child {
  margin-bottom: 0;
}

.stat-label {
  width: 60px;
  font-size: 13px;
  color: #666;
}

.stat-bar {
  flex: 1;
  height: 10px;
  background: #e8f5e9;
  border-radius: 5px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-soft));
  border-radius: 5px;
}

.stat-value {
  width: 30px;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}

.timeline {
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e8f5e9;
}

.timeline-item {
  position: relative;
  padding-bottom: 16px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -17px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--green);
}

.timeline-content {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.timeline-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-detail {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.formula-box {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.formula-text {
  font-size: 13px;
  color: var(--green);
  font-family: monospace;
  background: #e8f5e9;
  padding: 12px;
  border-radius: 8px;
}

.type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.type-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.type-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 6px;
}

.type-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: block;
}

.type-desc {
  font-size: 11px;
  color: #888;
  display: block;
  margin-top: 4px;
}

/* 子tab样式 */
.sub-tab-bar {
  display: flex;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 0 16px;
}

.sub-tab {
  flex: 1;
  padding: 12px 8px;
  border: none;
  background: none;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  position: relative;
}

.sub-tab.active {
  color: var(--green);
  font-weight: 600;
}

.sub-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
}

.sub-content {
  padding-bottom: 20px;
}

/* 段位mini卡片 */
.dan-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dan-mini-card {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.dan-mini-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.dan-mini-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.dan-mini-score {
  font-size: 10px;
  color: var(--green);
}

.dan-mini-count {
  font-size: 10px;
  color: #888;
}

.dan-rules {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}

.dan-rule {
  font-size: 13px;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

.dan-rule:last-child {
  border-bottom: none;
}

.page-label {
  text-align: center;
  padding: 20px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.form-preview {
  padding: 16px;
}

.form-card,
.info-box,
.step-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
}

.form-card {
  margin-bottom: 10px;
}

.fc-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.fg {
  margin-bottom: 16px;
}

.fg-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.fg-label::before {
  content: "* ";
  color: #e74c3c;
}

.fg-hint {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

.group-sel {
  display: flex;
  gap: 8px;
}

.go {
  flex: 1;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
}

.go.sel {
  border-color: var(--green);
  background: #e8f5e9;
}

.go-icon {
  font-size: 20px;
}

.go-name {
  font-size: 13px;
  font-weight: 700;
  display: block;
}

.go-age {
  font-size: 11px;
  color: #888;
  display: block;
}

.school-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.school-tag {
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  color: #555;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
}

.school-tag.sel {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.finput {
  width: 100%;
  height: 40px;
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--text);
}

.finput::placeholder {
  color: #bbb;
}

.num-sel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.num-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.num-disp {
  font-size: 18px;
  font-weight: 700;
  min-width: 50px;
  text-align: center;
}

.btn-next {
  width: 100%;
  background: linear-gradient(135deg, var(--green), var(--green-soft));
  color: #fff;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 700;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  box-shadow: 0 3px 12px rgba(26, 107, 58, 0.35);
}

.success-hero {
  background: linear-gradient(160deg, var(--green-dark), var(--green), var(--green-soft));
  padding: 35px 20px 30px;
  text-align: center;
}

.s-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  font-size: 36px;
  color: #fff;
}

.s-title {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}

.s-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.s-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.info-box {
  margin: 10px 16px 0;
}

.info-box-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.step-card {
  margin: 8px 16px 0;
  display: flex;
  gap: 10px;
}

.step-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e8f5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.step-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-detail {
  font-size: 11px;
  color: #666;
  line-height: 1.6;
}

.contact-line {
  font-size: 13px;
  font-weight: 700;
  color: #e65100;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.call-tag {
  background: #e65100;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

.action-btns {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
}

.btn-share,
.btn-home {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.btn-share {
  border: 2px solid var(--green);
  color: var(--green);
  background: #fff;
}

.btn-home {
  background: linear-gradient(135deg, var(--green), var(--green-soft));
  color: #fff;
}

.footer-slogan {
  text-align: center;
  padding: 10px;
  font-size: 13px;
  color: #999;
  font-style: italic;
}

.page-label {
  text-align: center;
  padding: 20px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.preview-label {
  text-align: center;
  font-size: 13px;
  color: #666;
  font-style: italic;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .phone-frame {
    width: 100%;
    max-width: 375px;
  }
}

/* ===== 文旅推荐页面样式 ===== */
.tourism-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 12px 12px;
}

.tourism-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.tourism-card-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.tourism-card-rating {
  font-size: 13px;
  color: #f5a623;
}

.tourism-card-price {
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
}

.tourism-card-type {
  display: inline-block;
  background: #f0f0f0;
  color: #666;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.tourism-card-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.tourism-card-ticket {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
}

.quick-reply-btn {
  background: #f0f7f2;
  color: var(--green);
  border: 1px solid var(--green-soft);
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-reply-btn:hover {
  background: var(--green-soft);
  color: #fff;
}

.tab-item {
  flex: 1;
}

.tab-bar {
  justify-content: space-around;
}
