/* ===== 知己 - 五行文化分析产品 - 完整样式表 ===== */

/* ===== CSS Variables ===== */
:root {
  --bg-primary: #f5f7fa;
  --bg-card: #ffffff;
  --bg-input: #f0f3f7;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c9b;
  --text-muted: #a0aab4;
  --accent: #8B6914;
  --accent-light: #B8860B;
  --accent-dark: #6B4F12;
  --success: #00d68f;
  --info: #4da6ff;
  --warning: #ffaa00;
  --border: #e8ecf1;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-sm: 8px;
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== App Container ===== */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* ===== Views ===== */
.view {
  display: none;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.view.active {
  display: flex;
}

/* ===== Welcome View ===== */
#welcomeView {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
  justify-content: flex-start;
  align-items: center;
  padding: 20px 0 0 0;
  position: relative;
}

/* Logo 独立层 - 居中保持不动 */
.welcome-logo {
  width: 160px;
  height: 160px;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
  border: none;
  flex-shrink: 0;
}

/* 文字 + 按钮共享层 */
.welcome-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 20px));
}

/* Typewriter Text */
.typewriter-line {
  text-align: center;
  margin: 8px 0;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.typewriter-line-1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 8px;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 文字消失动画 - 在welcome-body上触发，整行塌缩 */
.welcome-body.slide-up .typewriter-line {
  min-height: 0;
  margin: 0;
  height: 0;
  overflow: hidden;
}

.welcome-body.slide-up .typewriter-line-1 {
  font-size: 24px;
  letter-spacing: 4px;
  opacity: 0;
  height: 0;
  margin: 0;
  min-height: 0;
  overflow: hidden;
}

.typewriter-line-2 {
  font-size: 18px;
  color: var(--text-secondary);
  letter-spacing: 2px;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-body.slide-up .typewriter-line-2 {
  font-size: 13px;
  letter-spacing: 1px;
  opacity: 0;
  height: 0;
  margin: 0;
  min-height: 0;
  overflow: hidden;
}

.typewriter-cursor {
  display: none; /* 去掉闪动光标 */
}

.welcome-body.slide-up .typewriter-cursor {
  /* 已隐藏 */
}

/* blink动画不再需要 */

/* Welcome Buttons Container - 在intro内部，文字消失后占据原位 */
.welcome-buttons {
  display: none;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  padding: 0 16px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.welcome-buttons.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.welcome-btn {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
  transform: translateY(20px);
  min-height: 60px;
}

.welcome-btn.show {
  opacity: 1;
  transform: translateY(0);
}

.welcome-btn:active {
  transform: scale(0.98);
}

.welcome-btn-icon {
  font-size: 28px;
  margin-right: 16px;
  flex-shrink: 0;
}

.welcome-btn-content {
  flex: 1;
  text-align: left;
}

.welcome-btn-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.welcome-btn-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  display: block;
  margin-top: 2px;
}

.welcome-btn-arrow {
  color: var(--text-muted);
  font-size: 20px;
  flex-shrink: 0;
}

/* Welcome Disclaimer - 紧跟按钮底部 */
.welcome-disclaimer {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 20px));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.welcome-buttons.visible .welcome-disclaimer {
  opacity: 1;
}

/* ===== Header ===== */
.view-header {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  min-height: 48px;
}

.back-btn {
  min-width: 52px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  border-radius: 16px;
  padding: 0 14px;
  transition: opacity 0.2s;
}

.back-btn:hover {
  opacity: 0.85;
}

.view-title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 40px;
}

.header-placeholder {
  width: 40px;
}

/* ===== Content ===== */
.view-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 20px));
  -webkit-overflow-scrolling: touch;
}

.view-content::-webkit-scrollbar {
  width: 4px;
}

.view-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* ===== Cards ===== */
.info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.info-card:last-child {
  margin-bottom: 0;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title-icon {
  font-size: 24px;
}

.card-content {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.card-content p {
  margin-bottom: 12px;
}

.card-content p:last-child {
  margin-bottom: 0;
}

.card-list {
  list-style: none;
  padding: 0;
}

.card-list li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== Form Elements ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--accent);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
}

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

/* Time Grid */
.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.time-btn {
  padding: 12px 8px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-input);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.time-btn:hover {
  background: var(--bg-card);
  border-color: var(--border);
}

.time-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.time-btn .time-range {
  display: block;
  font-size: 12px;
  color: inherit;
  opacity: 0.8;
  margin-top: 4px;
}

/* Gender Selection */
.gender-group {
  display: flex;
  gap: 12px;
}

.gender-btn {
  flex: 1;
  padding: 14px;
  font-size: 16px;
  font-family: inherit;
  background: var(--bg-input);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.gender-btn:hover {
  background: var(--bg-card);
  border-color: var(--border);
}

.gender-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ===== Buttons ===== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 48px;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #00b87d;
}

.btn-gray {
  background: var(--bg-input);
  color: var(--text-secondary);
}

.btn-gray:hover {
  background: var(--border);
}

.btn-block {
  width: 100%;
}

/* ===== Progress ===== */
.progress-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}

.progress-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.progress-text {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-align: center;
}

.progress-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.progress-step {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
}

.progress-step.active {
  background: var(--accent);
  transform: scale(1.2);
}

.progress-step.complete {
  background: var(--success);
}

/* ===== Four Pillars Card ===== */
.pillars-card {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: white;
  margin-bottom: 20px;
}

.pillars-title {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.pillars-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 8px;
  margin-bottom: 8px;
}

.pillars-label {
  font-size: 12px;
  opacity: 0.8;
}

.lunar-info {
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== Time Confirmation ===== */
.time-confirm-title {
  font-size: 16px;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 16px;
}

.time-confirm-title strong {
  color: var(--accent);
}

.time-grid-modified {
  margin-bottom: 20px;
}

.time-grid-modified .time-btn {
  padding: 10px;
}

.confirm-actions {
  display: flex;
  gap: 12px;
}

/* ===== Result ===== */
.result-badge {
  display: inline-flex;
  align-items: center;
  background: var(--success);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Image Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.grid-image {
  aspect-ratio: 1;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}

.grid-image:hover {
  transform: scale(1.02);
}

.grid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Chat View ===== */
#chatView,
#baziView {
  background: var(--bg-primary);
}

.chat-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.chat-message {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
  animation: messageIn 0.3s ease;
}

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

.chat-message.user {
  align-self: flex-end;
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-message.assistant {
  align-self: flex-start;
  background: var(--bg-card);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow);
}

/* AI Avatar for assistant messages - 知己Logo */
.chat-message.assistant.has-avatar {
  padding-left: 48px;
  position: relative;
}

.chat-message.assistant.has-avatar::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  background: url('icons/logo.jpg') center/contain no-repeat;
  border-radius: 4px;
  border: none;
}

/* Typing indicator */
.chat-message.typing {
  padding: 16px 20px;
}

.chat-message.typing::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  margin-left: 8px;
  animation: typingBounce 1s infinite;
}

.chat-message.typing::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1s infinite 0.2s;
}

@keyframes typingBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

.chat-time {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin: 8px 0;
}

/* Inline choice buttons in chat */
.chat-choice-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.chat-choice-btn {
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: 20px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.chat-choice-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.chat-choice-btn:active {
  transform: scale(0.96);
}

/* Time grid in chat */
.chat-time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.chat-time-btn {
  padding: 12px 8px;
  font-size: 13px;
  font-family: inherit;
  background: var(--bg-input);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.chat-time-btn:hover {
  background: var(--accent);
  color: white;
}

.chat-time-btn .time-range {
  display: block;
  font-size: 10px;
  opacity: 0.7;
  margin-top: 2px;
}

/* Analysis result in chat */
.chat-result-card {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: var(--radius);
  padding: 20px;
  color: white;
  margin: 8px 0;
}

.chat-result-pillars {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 6px;
  text-align: center;
  margin-bottom: 8px;
}

.chat-result-label {
  font-size: 12px;
  text-align: center;
  opacity: 0.8;
  margin-bottom: 16px;
}

.chat-result-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.chat-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.chat-result-grid-item {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.chat-result-grid-item span {
  display: block;
  font-size: 11px;
  opacity: 0.7;
}

.chat-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* Progress in chat */
.chat-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.chat-progress-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.chat-progress-bar {
  width: 200px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.chat-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s;
}

.chat-input-container {
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 20px));
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: 24px;
  background: var(--bg-input);
  color: var(--text-primary);
  resize: none;
  max-height: 120px;
  line-height: 1.4;
}

.chat-input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-send-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: var(--accent-dark);
}

.chat-send-btn:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
}

/* Voice Button */
.voice-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-input);
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.voice-btn:hover {
  background: var(--border);
}

.voice-btn.recording {
  background: var(--accent);
  color: white;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.voice-btn:disabled {
  display: none;
}

/* ===== Quiz View ===== */
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.quiz-progress-text {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.quiz-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s;
}

.quiz-question {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.quiz-question-text {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  padding: 14px 16px;
  background: var(--bg-input);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.quiz-option:hover {
  background: var(--bg-card);
  border-color: var(--border);
}

.quiz-option.selected {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.quiz-option .option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  font-weight: 600;
  margin-right: 12px;
  font-size: 14px;
}

.quiz-option.selected .option-letter {
  background: rgba(255,255,255,0.3);
}

.quiz-nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* ===== FAQ Accordion ===== */
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg-input);
}

.faq-icon {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Contact View ===== */
.contact-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.contact-logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.contact-logo-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.contact-logo-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.contact-method-icon {
  font-size: 24px;
}

.contact-method-info {
  flex: 1;
}

.contact-method-label {
  font-size: 12px;
  color: var(--text-muted);
}

.contact-method-value {
  font-size: 15px;
  color: var(--text-primary);
}

.feedback-textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text-primary);
  resize: vertical;
  margin-bottom: 12px;
}

.feedback-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.recruit-card {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: var(--radius);
  padding: 24px;
  color: white;
}

.recruit-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.recruit-content {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.95;
}

/* ===== Toast Messages ===== */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-primary);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s;
  z-index: 1000;
  max-width: 90%;
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--accent);
}

.toast.info {
  background: var(--info);
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  max-width: 100%;
  max-height: 90vh;
}

.modal-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--bg-input);
}

/* ===== Disclaimer ===== */
.disclaimer {
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 20px;
}

.disclaimer-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.disclaimer-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Loading Skeleton ===== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-input) 25%, var(--border) 50%, var(--bg-input) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Analysis Summary ===== */
.analysis-summary {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.summary-title {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.summary-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.summary-detail {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ===== Info Banner ===== */
.info-banner {
  background: var(--info);
  color: white;
  padding: 16px;
  border-radius: var(--radius);
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== CTA Button at Bottom ===== */
.bottom-cta {
  padding: 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ===== 新核验生辰流程样式 ===== */

/* 3个选项按钮（时辰了解情况） */
.chat-know-time-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.chat-know-time-btn {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  font-family: inherit;
}

.chat-know-time-btn:hover {
  background: var(--bg-card);
  border-color: var(--accent);
}

.chat-know-time-btn:active {
  transform: scale(0.98);
}

.chat-know-time-btn .option-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  margin-right: 12px;
  flex-shrink: 0;
}

.chat-know-time-btn .option-text {
  font-size: 15px;
  color: var(--text-primary);
}

/* 13个时辰复选框网格 */
.chat-shichen-checkbox-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.chat-shichen-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.chat-shichen-checkbox:hover {
  background: var(--bg-card);
  border-color: var(--border);
}

.chat-shichen-checkbox.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.chat-shichen-checkbox .shichen-name {
  font-size: 15px;
  font-weight: 600;
  color: inherit;
}

.chat-shichen-checkbox .shichen-range {
  font-size: 12px;
  opacity: 0.7;
  color: inherit;
}

.chat-shichen-submit-container {
  margin-top: 8px;
}

.chat-shichen-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-shichen-submit-btn:hover:not(:disabled) {
  background: var(--accent-dark);
}

.chat-shichen-submit-btn:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
}

/* 时辰十神解读卡片 */
.chat-shichen-analysis-list {
  margin-top: 12px;
}

.chat-shichen-analysis-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.chat-shichen-analysis-card:last-child {
  margin-bottom: 0;
}

.chat-shichen-analysis-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.chat-shichen-analysis-card .card-shichen {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.chat-shichen-analysis-card .card-shishen {
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--bg-input);
  padding: 4px 10px;
  border-radius: 12px;
}

.chat-shichen-analysis-card .card-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.chat-shichen-analysis-card .card-body p {
  margin-bottom: 8px;
}

.chat-shichen-analysis-card .card-body p:last-child {
  margin-bottom: 0;
}

.chat-shichen-analysis-card .shishen-desc {
  font-style: italic;
  color: var(--text-muted);
}

.chat-shichen-confirm-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-shichen-confirm-btn:hover {
  background: var(--accent-dark);
}

/* 城市选择网格 */
.chat-city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.chat-city-btn {
  padding: 12px 8px;
  background: var(--bg-input);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.chat-city-btn:hover {
  background: var(--accent);
  color: white;
}
