/* ===== 玄机阁 — 古卷鎏金主题 ===== */
:root {
  --bg-deep: #d4c7ae;
  --bg-panel: #ece2d0;
  --bg-card: #f5efe3;
  --gold: #b08838;
  --gold-light: #c49d4c;
  --gold-dark: #8a6828;
  --text: #3a2e20;
  --text-dim: #8a7a64;
  --text-bright: #1a1008;
  --accent-red: #b04236;
  --accent-red-light: #c85848;
  --accent-green: #5a8864;
  --accent-blue: #6886a6;
  --accent-yellow: #b89448;
  --accent-white: #e6dcc8;
  --accent-black: #3a2e20;
  --border: #cfc2a8;
  --border-gold: rgba(176, 136, 56, 0.35);
  --shadow-gold: 0 0 20px rgba(176, 136, 56, 0.12);
  --shadow-card: 0 2px 14px rgba(0, 0, 0, 0.06);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 0.3s ease;
  --font-main: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-title: "Noto Serif SC", "SimSun", "STSong", "KaiTi", serif;
}

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

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(176,136,56,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(176,66,54,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 70%, rgba(176,136,56,0.03) 0%, transparent 45%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(160,130,90,0.5) 2px, rgba(160,130,90,0.5) 3px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(160,130,90,0.5) 2px, rgba(160,130,90,0.5) 3px);
}

/* ===== Header ===== */
.header {
  text-align: center;
  padding: 2.8rem 1rem 1.5rem;
  border-bottom: 1px solid var(--border-gold);
  position: relative;
  background: linear-gradient(180deg, rgba(176,136,56,0.05) 0%, transparent 100%);
}

.header::after {
  content: "";
  position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 75%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent-red-light), var(--gold), transparent);
}

.header h1 {
  font-family: var(--font-title);
  font-size: 2.8rem;
  color: var(--gold-dark);
  letter-spacing: 0.4em;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.header .subtitle {
  margin-top: 0.6rem;
  color: var(--text-dim);
  font-size: 1rem;
  letter-spacing: 0.25em;
}

/* ===== Navigation Tabs ===== */
.nav {
  display: flex; justify-content: center; gap: 0;
  padding: 0 1rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  background: rgba(236,226,208,0.93);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 100;
}

.nav-tab {
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  color: var(--text-dim);
  font-family: var(--font-title);
  font-size: 0.9rem; letter-spacing: 0.1em;
  border: none; background: none;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  position: relative;
}

.nav-tab:hover {
  color: var(--gold-dark);
  background: rgba(176,136,56,0.05);
}

.nav-tab.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
  font-weight: 700;
}

.nav-tab .tab-icon {
  display: block; font-size: 1.1rem; margin-bottom: 0.1rem;
}

.nav-tab .tab-icon:not(:empty) {
  font-family: var(--font-title);
}

.nav-tab.active .tab-icon {
  color: var(--gold);
}

/* Nav More Dropdown */
.nav-more { position: relative; }

.nav-dropdown {
  display: none;
  position: absolute; top: 100%; right: 0;
  background: #ece2d0;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  min-width: 170px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  z-index: 200; overflow: hidden;
}

.nav-dropdown::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.nav-dropdown.show {
  display: block;
  animation: fadeSlideIn 0.2s ease;
}

.nav-dropdown-item {
  display: block; width: 100%;
  padding: 0.9rem 1.3rem;
  background: none; border: none;
  color: var(--text);
  font-family: var(--font-title);
  font-size: 0.95rem; cursor: pointer; text-align: left;
  transition: all var(--transition);
  letter-spacing: 0.06em;
}

.nav-dropdown-item:hover {
  background: rgba(176,136,56,0.08);
  color: var(--gold-dark);
}

.drop-icon {
  display: inline-block;
  width: 1.5em;
  font-family: var(--font-title);
  color: var(--gold);
  font-size: 0.95rem;
}

/* ===== Main Content ===== */
.main {
  max-width: 900px; margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

/* ===== Panel / Section ===== */
.panel { display: none; animation: fadeSlideIn 0.4s ease; }
.panel.active { display: block; }

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

/* ===== Card ===== */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: rgba(176,136,56,0.25);
  box-shadow: 0 4px 22px rgba(0,0,0,0.08);
}

.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent-red-light), var(--gold), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0.7;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--gold-dark);
  margin-bottom: 1.2rem;
  letter-spacing: 0.12em;
  display: flex; align-items: center; gap: 0.6rem;
}

.card-title::after {
  content: "";
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border-gold), transparent);
}

/* ===== Form Elements ===== */
.form-group { margin-bottom: 1.1rem; }

.form-label {
  display: block;
  color: var(--text-dim);
  font-size: 0.9rem; margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.8rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all var(--transition);
  outline: none;
}

.form-input:hover, .form-select:hover {
  border-color: rgba(176,136,56,0.3);
}

.form-input:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176,136,56,0.08);
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b08838' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2rem;
}

.form-select option {
  background: #f5efe3; color: var(--text);
}

/* ===== Button ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  font-family: var(--font-title);
  font-size: 1.05rem; letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 12px rgba(176,136,56,0.25);
}

.btn:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 4px 18px rgba(176,136,56,0.35);
  transform: translateY(-2px);
}

.btn:active { transform: translateY(0); }

.btn-block { display: block; width: 100%; }

.btn-outline {
  background: transparent;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(176,136,56,0.06);
  color: var(--gold-dark);
}

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; }

/* ===== Table ===== */
.table-wrap { overflow-x: auto; }

table {
  width: 100%; border-collapse: collapse; font-size: 0.95rem;
}

th, td {
  padding: 0.8rem 0.9rem; text-align: center;
  border: 1px solid var(--border);
}

th {
  background: rgba(176,136,56,0.08);
  color: var(--gold-dark);
  font-family: var(--font-title);
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.06em;
}

td { color: var(--text); }

tr:hover td {
  background: rgba(176,136,56,0.04);
}

/* ===== Result Display ===== */
.result-section {
  margin-top: 1.8rem; padding-top: 1.8rem;
  border-top: 1px solid var(--border-gold);
  position: relative;
}

.result-section::before {
  content: "◆";
  position: absolute;
  top: -0.6em; left: 50%; transform: translateX(-50%);
  color: var(--gold);
  font-size: 0.7rem;
  background: var(--bg-panel);
  padding: 0 0.7rem;
}

.result-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--gold-dark);
  margin-bottom: 1.2rem;
  letter-spacing: 0.1em;
  text-align: center;
  position: relative;
}

.result-title::after {
  content: "";
  display: block; width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0.6rem auto 0;
}

/* ===== Story Result ===== */
.story-section {
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.story-personality {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(176,136,56,0.06), rgba(176,136,56,0.01));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.story-personality-type {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.15em;
}

.story-personality-desc { color: var(--text); font-size: 1.05rem; line-height: 1.8; }
.story-personality-tagline { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.5rem; }

/* Star Ratings */
.star-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; margin-bottom: 1.5rem;
}

.star-item {
  text-align: center;
  padding: 0.8rem 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.star-item-icon { font-size: 1.5rem; display: block; margin-bottom: 0.3rem; }
.star-item-label { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.3rem; }
.star-item-stars { color: var(--gold); font-size: 0.95rem; letter-spacing: 2px; }
.star-item-detail { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.2rem; }

/* Story advice */
.story-advice {
  padding: 1rem 1.2rem;
  background: rgba(176,136,56,0.04);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0; line-height: 1.8;
}

.story-advice h4 {
  color: var(--gold-dark);
  font-family: var(--font-title);
  margin-bottom: 0.5rem;
}

.story-advice ol { padding-left: 1.2rem; color: var(--text); }
.story-advice li { margin-bottom: 0.3rem; }

/* Collapsible detail */
.story-detail-toggle {
  display: block; width: 100%;
  padding: 0.6rem;
  background: none;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim); cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.85rem;
  transition: all var(--transition);
  margin-top: 1rem;
}

.story-detail-toggle:hover { border-color: var(--gold); color: var(--gold-dark); }
.story-detail-content { display: none; margin-top: 1rem; }
.story-detail-content.show { display: block; animation: fadeSlideIn 0.3s ease; }

/* ===== Share button ===== */
.share-btn-area {
  text-align: center; margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ===== Bazi pillars display ===== */
.pillars-row {
  display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem; text-align: center;
  min-width: 80px; flex: 1;
}

.pillar-label { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.5rem; }
.pillar-ganzhi { font-family: var(--font-title); font-size: 2.2rem; color: var(--gold-dark); line-height: 1.2; }
.pillar-element { font-size: 0.85rem; margin-top: 0.3rem; }

/* Five elements bar */
.elements-bar { display: flex; gap: 0.4rem; margin: 1rem 0; }

.element-item {
  flex: 1; text-align: center; padding: 0.4rem;
  border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 600;
}

.element-wood { background: var(--accent-green); color: #fff; }
.element-fire { background: var(--accent-red); color: #fff; }
.element-earth { background: var(--accent-yellow); color: #3a2e20; }
.element-metal { background: var(--accent-white); color: #3a2e20; }
.element-water { background: var(--accent-blue); color: #fff; }

/* ===== Quick Birth Buttons ===== */
.quick-birth-btns {
  display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center;
  margin-bottom: 1.2rem; padding: 0.6rem 0.8rem;
  background: var(--bg-card); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.quick-label { color: var(--text-dim); font-size: 0.8rem; margin-right: 0.2rem; }

/* Quick Question Buttons */
.quick-question-btns {
  display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem;
}

/* ===== Foldable Section ===== */
.foldable-section { margin-bottom: 1rem; }

.foldable-summary {
  padding: 0.6rem 1rem; cursor: pointer;
  color: var(--text-dim); font-size: 0.9rem; user-select: none;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-card); transition: all var(--transition);
}

.foldable-summary:hover { color: var(--gold-dark); border-color: var(--border-gold); }
.foldable-body { padding-top: 1rem; }

/* ===== Bagua Symbol ===== */
.bagua-display {
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; padding: 1.5rem;
}

.hexagram-lines { display: flex; flex-direction: column; gap: 0.3rem; align-items: center; }
.hex-line { display: flex; gap: 0.3rem; }

.hex-line-segment {
  width: 50px; height: 8px;
  background: var(--gold-dark); border-radius: 2px;
}

.hex-line-broken { width: 22px; }

.hexagram-name {
  font-family: var(--font-title); font-size: 1.6rem;
  color: var(--gold-dark); letter-spacing: 0.15em;
}

.hexagram-info { text-align: center; color: var(--text-dim); font-size: 0.9rem; }

/* Changing line indicator */
.changing { position: relative; }
.changing::after {
  content: "○"; position: absolute; right: -24px;
  color: var(--accent-red); font-size: 0.9rem;
}

/* ===== Analysis / Toast text ===== */
.analysis-text {
  background: rgba(176,136,56,0.04);
  border-left: 3px solid var(--gold);
  padding: 1.2rem 1.4rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0; line-height: 1.9; font-size: 1rem;
}

.analysis-text p { margin-bottom: 0.5rem; }
.analysis-text p:last-child { margin-bottom: 0; }

/* ===== Coin toss animation ===== */
.coin-area { display: flex; justify-content: center; gap: 1rem; padding: 1.5rem 0; }

.coin {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #a08030);
  border: 3px solid #8a6a28;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #4a3010;
  transition: transform 0.6s ease; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.coin.tossing { animation: coinFlip 0.6s ease; }
.coin.heads { background: linear-gradient(135deg, #ffeaa7, #d4af37); }
.coin.tails { background: linear-gradient(135deg, #a08030, #8a6a28); color: #2a1808; }

@keyframes coinFlip {
  0% { transform: rotateY(0); }
  50% { transform: rotateY(720deg) translateY(-20px); }
  100% { transform: rotateY(1440deg) translateY(0); }
}

/* ===== Xiang Xue Face Map ===== */
.face-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem; text-align: center;
}

.face-zone {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem 0.5rem;
  cursor: pointer; transition: all var(--transition);
}

.face-zone:hover, .face-zone.selected {
  border-color: var(--gold);
  background: rgba(176,136,56,0.06);
}

.face-zone-name {
  font-family: var(--font-title); font-size: 0.95rem;
  color: var(--gold-dark); margin-bottom: 0.3rem;
}

.face-zone-desc { font-size: 0.8rem; color: var(--text-dim); }

.face-detail {
  margin-top: 1rem; padding: 1rem;
  background: rgba(176,136,56,0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
}

/* ===== Footer ===== */
.footer {
  text-align: center; padding: 2.5rem 1rem;
  color: var(--text-dim); font-size: 0.85rem;
  border-top: 1px solid var(--border); letter-spacing: 0.08em;
}

.footer span { color: var(--gold-dark); }

/* ===== Loading ===== */
.loading {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid var(--gold); border-top-color: transparent;
  border-radius: 50%; animation: spin 0.8s linear infinite;
}

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

/* ===== Divination Steps (Liu Yao) ===== */
.steps-indicator {
  display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem;
}

.step-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); transition: all var(--transition);
}

.step-dot.done { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.step-dot.current { background: var(--gold-light); animation: pulse 1s ease infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 4px var(--gold); }
  50% { box-shadow: 0 0 12px var(--gold-light); }
}

/* ===== Camera Area ===== */
.camera-area {
  position: relative; width: 100%; max-width: 400px; min-height: 250px;
  margin: 0 auto; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.camera-area video, .camera-area img {
  width: 100%; height: auto; display: block; border-radius: var(--radius);
}

.camera-placeholder { text-align: center; color: var(--text-dim); padding: 2rem; }
.camera-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }

/* ===== Streaming text ===== */
.streaming-text {
  padding: 1.2rem 1.5rem;
  background: rgba(176,136,56,0.04);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.9; min-height: 60px; font-size: 1rem;
}

.streaming-text .cursor {
  display: inline-block; width: 2px; height: 1.2em;
  background: var(--gold); animation: blink 0.8s infinite;
  vertical-align: text-bottom; margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ===== AI Result ===== */
.ai-result {
  margin-top: 1.2rem; padding: 1.5rem;
  background: rgba(176,136,56,0.03);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  line-height: 2; font-size: 1rem;
  white-space: pre-wrap; word-wrap: break-word;
}

.ai-result h2 { color: var(--gold-dark); font-size: 1.2rem; margin: 1.2rem 0 0.6rem; font-family: var(--font-title); letter-spacing: 0.08em; border-bottom: 1px solid var(--border-gold); padding-bottom: 0.3rem; }
.ai-result h3 { color: var(--gold-dark); font-size: 1.05rem; margin: 1rem 0 0.5rem; }
.ai-result strong { color: var(--gold-dark); }
.ai-result ul, .ai-result ol { padding-left: 1.5rem; margin: 0.6rem 0; }
.ai-result li { margin-bottom: 0.4rem; }
.ai-result hr { border: none; border-top: 1px solid var(--border-gold); margin: 1.2rem 0; }
.ai-result em { color: var(--text-dim); }

/* ===== AI Loading ===== */
.ai-loading {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1.5rem; justify-content: center;
  color: var(--gold-dark); font-family: var(--font-title);
}

.ai-loading .loading-dots { display: flex; gap: 0.3rem; }

.ai-loading .loading-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); animation: dotPulse 1.2s infinite;
}

.ai-loading .loading-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-loading .loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ===== Hexagram Build (Live) ===== */
.hexagram-build {
  display: flex; flex-direction: column; gap: 0.35rem;
  max-width: 360px; margin: 0 auto 1.5rem;
  padding: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
}

.build-line {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.8rem; border-radius: var(--radius-sm);
  transition: all var(--transition); font-size: 0.9rem;
}

.build-placeholder { color: var(--text-dim); opacity: 0.5; }

.build-next {
  color: var(--gold-dark);
  background: rgba(176,136,56,0.06);
  border: 1px dashed rgba(176,136,56,0.3);
  animation: pulse 1.5s ease infinite;
}

.build-filled {
  background: rgba(176,136,56,0.04);
  border: 1px solid var(--border);
  color: var(--text);
}

.build-changing {
  border-color: var(--accent-red);
  background: rgba(176,66,54,0.04);
}

.build-pos {
  width: 2.5rem; font-family: var(--font-title);
  color: var(--text-dim); font-size: 0.8rem; flex-shrink: 0;
}

.build-changing .build-pos { color: var(--accent-red); }

.build-symbol {
  font-size: 1.6rem; font-family: var(--font-title);
  width: 2rem; text-align: center; flex-shrink: 0;
}

.build-changing .build-symbol { color: var(--accent-red); }
.build-type { flex: 1; color: var(--text); }

.build-tag {
  font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 10px;
  background: rgba(176,136,56,0.12); color: var(--gold-dark); flex-shrink: 0;
}

.build-changing .build-tag {
  background: rgba(176,66,54,0.1); color: var(--accent-red);
}

/* ===== Vernacular Reading Boxes ===== */
.vernacular-box {
  background: rgba(176,136,56,0.03);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 1rem 1.2rem; margin-bottom: 0.8rem; line-height: 1.8;
}

.vernacular-header {
  font-family: var(--font-title); font-size: 1.15rem;
  color: var(--gold-dark); margin-bottom: 0.5rem;
}

.vernacular-question { border-left: 3px solid var(--accent-blue); }
.vernacular-changing { border-left: 3px solid var(--accent-red); }
.vernacular-bian { border-left: 3px solid var(--accent-green); }
.vernacular-summary { border-left: 3px solid var(--gold); background: rgba(176,136,56,0.04); }

.changing-item {
  margin: 0.6rem 0; padding: 0.5rem 0.8rem;
  background: rgba(176,66,54,0.04); border-radius: var(--radius-sm);
}

.changing-line-num { font-size: 0.85rem; color: var(--accent-red); font-weight: 600; margin-bottom: 0.2rem; }
.changing-text { color: var(--text); font-size: 0.95rem; }

/* ===== Hexagram Symbol Large ===== */
.hexagram-symbol-lg { margin: 0.5rem 0; }
.hexagram-symbol-lg .hex-line-segment { width: 55px; height: 9px; }

/* ===== Classical Detail (Collapsible) ===== */
.classical-detail {
  padding: 0.8rem 1rem;
  background: rgba(176,136,56,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.classical-detail summary { user-select: none; }
.classical-detail summary:hover { color: var(--gold-dark) !important; }

/* ===== Error message ===== */
.error-message {
  padding: 1.2rem;
  background: rgba(176,66,54,0.06);
  border-left: 3px solid var(--accent-red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #a04030; font-size: 0.95rem;
}

/* ===== Demo Notice ===== */
.demo-notice {
  padding: 0.9rem 1.1rem;
  background: rgba(104,134,166,0.06);
  border: 1px solid rgba(104,134,166,0.2);
  border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--text-dim); line-height: 1.7;
}

.demo-notice a { color: var(--gold-dark); cursor: pointer; text-decoration: underline; }

/* ===== Fortune Prediction ===== */
.fortune-header {
  text-align: center; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-gold); margin-bottom: 1rem;
}

.fortune-date { color: var(--text-dim); font-size: 1rem; margin-bottom: 0.8rem; }
.fortune-score { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.fortune-score-label { font-family: var(--font-title); font-size: 1.2rem; color: var(--gold-dark); }
.fortune-score-stars { font-size: 1.8rem; letter-spacing: 4px; }
.fortune-score-text { font-size: 1rem; color: var(--text-dim); }

.fortune-yiji {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.8rem; margin-bottom: 1rem;
}

.fortune-yi, .fortune-ji {
  padding: 0.8rem 1rem; border-radius: var(--radius-sm); line-height: 1.8;
}

.fortune-yi {
  background: rgba(90,136,100,0.06);
  border: 1px solid rgba(90,136,100,0.2);
}

.fortune-ji {
  background: rgba(176,66,54,0.05);
  border: 1px solid rgba(176,66,54,0.15);
}

.fortune-yi h4 { color: var(--accent-green); font-family: var(--font-title); margin-bottom: 0.3rem; font-size: 0.95rem; }
.fortune-ji h4 { color: var(--accent-red); font-family: var(--font-title); margin-bottom: 0.3rem; font-size: 0.95rem; }
.fortune-yi p, .fortune-ji p { margin: 0; font-size: 0.9rem; color: var(--text); }

.fortune-aspects {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem; margin-bottom: 1rem;
}

.fortune-aspect {
  text-align: center; padding: 0.7rem 0.4rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.fortune-aspect-icon { font-size: 1.3rem; display: block; margin-bottom: 0.2rem; }
.fortune-aspect-label { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.2rem; }
.fortune-aspect-stars { color: var(--gold); font-size: 0.85rem; }
.fortune-aspect-text { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.15rem; line-height: 1.5; }

.fortune-lucky {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  padding: 0.8rem;
  background: rgba(176,136,56,0.04);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm); margin-bottom: 1rem;
}

.fortune-lucky-item { text-align: center; font-size: 0.9rem; }
.fortune-lucky-item span { color: var(--text-dim); }
.fortune-lucky-item strong { color: var(--gold-dark); font-family: var(--font-title); }

.fortune-quote {
  text-align: center; padding: 1rem; color: var(--text-dim);
  font-style: italic; font-size: 1rem;
  border-top: 1px solid var(--border);
}

/* ===== Home Cards ===== */
.home-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 1.5rem;
}

.home-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1rem; text-align: center;
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative; overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

.home-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent-red-light), var(--gold), transparent);
  opacity: 0; transition: opacity 0.35s;
}

.home-card::after {
  content: "";
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176,136,56,0.5), transparent);
  transition: width 0.35s;
}

.home-card:hover {
  border-color: rgba(176,136,56,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1), 0 0 20px rgba(176,136,56,0.12);
}

.home-card:hover::before { opacity: 1; }
.home-card:hover::after { width: 60%; }

.home-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 70px; height: 70px;
  font-size: 2.2rem; margin-bottom: 0.8rem;
  transition: all 0.35s ease;
  font-family: var(--font-title);
  color: var(--gold);
  background: rgba(176,136,56,0.06);
  border: 1px solid rgba(176,136,56,0.2);
  border-radius: 50%;
}

.home-card:hover .home-card-icon {
  transform: scale(1.1);
  border-color: var(--gold);
  background: rgba(176,136,56,0.1);
  color: var(--gold-dark);
  box-shadow: 0 0 20px rgba(176,136,56,0.15);
}

.home-card-title {
  font-family: var(--font-title); font-size: 1.2rem;
  color: var(--gold-dark); margin-bottom: 0.5rem; letter-spacing: 0.1em;
}

.home-card-desc { font-size: 0.9rem; color: var(--text-dim); line-height: 1.7; }

/* Home Tools */
.home-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 0.8rem; margin-bottom: 1.5rem;
}

.home-tool {
  text-align: center; padding: 0.9rem 0.4rem;
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition);
  font-size: 0.9rem; color: var(--text-dim);
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.home-tool:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}

.home-tool span {
  display: block; font-size: 1.3rem;
  font-family: var(--font-title);
  color: var(--gold); margin-bottom: 0.3rem;
  transition: color var(--transition);
}

.home-tool:hover span { color: var(--gold-dark); }

/* ===== Stats Bar ===== */
.stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 0.8rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(176,136,56,0.05), rgba(176,136,56,0.02));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.stats-item {
  text-align: center;
  flex: 1;
  min-width: 70px;
}

.stats-num {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--gold-dark);
  font-weight: 700;
}

.stats-num span {
  font-size: 1rem;
  color: var(--gold);
}

.stats-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.stats-divider {
  width: 1px;
  height: 32px;
  background: var(--border-gold);
  opacity: 0.5;
}

/* ===== AI Naming ===== */
.naming-result-name {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--gold-dark);
  text-align: center;
  margin: 1rem 0 0.5rem;
  letter-spacing: 0.25em;
}

.naming-result-pinyin {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}

/* Daily Quote */
.daily-quote { text-align: center; padding: 1.2rem; color: var(--text-dim); font-style: italic; }

.quote-text {
  display: block; font-size: 1.15rem;
  font-family: var(--font-title); color: var(--gold-dark); margin-bottom: 0.4rem;
}

.quote-source { font-size: 0.85rem; }

/* ===== Check-in Card ===== */
.checkin-card { padding: 1.2rem 1.5rem; }

.checkin-content {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}

.checkin-title { font-family: var(--font-title); font-size: 1.1rem; color: var(--gold-dark); }
.checkin-streak { font-size: 0.9rem; color: var(--text-dim); }
.checkin-streak strong { color: var(--gold-dark); font-size: 1.2rem; }
.checkin-btn { font-size: 0.95rem; padding: 0.6rem 1.4rem; }

.checkin-result {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
  animation: fadeSlideIn 0.5s ease;
}

.checkin-sign-title {
  font-family: var(--font-title); font-size: 1.3rem;
  color: var(--gold-dark); text-align: center; margin-bottom: 0.5rem;
}

.checkin-sign-content {
  padding: 1rem; background: rgba(176,136,56,0.04);
  border-radius: var(--radius-sm); line-height: 1.9; font-size: 0.95rem;
}

.checkin-sign-advice {
  margin-top: 0.6rem; padding: 0.7rem 0.9rem;
  background: rgba(104,134,166,0.05);
  border-left: 3px solid var(--accent-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem; color: var(--text);
}

/* ===== Compatibility ===== */
.compatibility-sides {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 1rem; align-items: start; margin-bottom: 1rem;
}

.compatibility-side {
  padding: 1rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}

.compatibility-vs {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-size: 1.5rem;
  color: var(--accent-red); padding-top: 2.5rem;
}

.compatibility-score-circle {
  width: 130px; height: 130px; border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  background: rgba(176,136,56,0.03);
  position: relative;
}

.compatibility-score-circle::before {
  content: "";
  position: absolute; inset: 6px; border-radius: 50%;
  border: 1px solid rgba(176,136,56,0.15);
}

.compatibility-score-num {
  font-family: var(--font-title); font-size: 2.6rem;
  color: var(--gold-dark);
}

.compatibility-score-label { font-size: 0.8rem; color: var(--text-dim); }

.compatibility-detail {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem; margin-bottom: 1rem;
}

.compatibility-dim {
  text-align: center; padding: 0.7rem 0.4rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.compatibility-dim-icon { font-size: 1.2rem; display: block; margin-bottom: 0.2rem; }
.compatibility-dim-label { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.2rem; }
.compatibility-dim-score { color: var(--gold-dark); font-size: 0.9rem; font-weight: 600; }

.compatibility-text {
  padding: 1.2rem;
  background: rgba(176,136,56,0.04);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.9; font-size: 0.95rem;
}

/* ===== Divination One-liner ===== */
.verdict-badge {
  display: inline-block; padding: 0.35rem 1rem; border-radius: 20px;
  font-family: var(--font-title); font-size: 0.95rem;
  letter-spacing: 0.08em; font-weight: 700;
}

.verdict-badge.good {
  background: rgba(90,136,100,0.1); color: var(--accent-green);
  border: 1px solid rgba(90,136,100,0.25);
}

.verdict-badge.warning {
  background: rgba(176,66,54,0.08); color: var(--accent-red);
  border: 1px solid rgba(176,66,54,0.2);
}

.verdict-badge.neutral {
  background: rgba(104,134,166,0.08); color: var(--accent-blue);
  border: 1px solid rgba(104,134,166,0.2);
}

/* ===== Secret analysis ===== */
.secret-textarea {
  min-height: 200px; line-height: 1.8; font-size: 1rem; resize: vertical;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.secret-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176,136,56,0.08);
  outline: none;
}

.secret-textarea::placeholder { color: var(--text-dim); opacity: 0.4; line-height: 1.8; }

.secret-analysis-content {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 1.5rem; line-height: 1.9;
  color: var(--text); font-size: 0.95rem;
}

.secret-analysis-content h2, .secret-analysis-content h3 {
  font-family: var(--font-title); color: var(--gold-dark);
  margin-top: 1.2rem; margin-bottom: 0.6rem;
}

.secret-analysis-content h2 {
  font-size: 1.2rem; border-bottom: 1px solid var(--border-gold); padding-bottom: 0.3rem;
}

.secret-analysis-content h3 { font-size: 1.05rem; }
.secret-analysis-content ul, .secret-analysis-content ol { padding-left: 1.5rem; margin: 0.5rem 0; }
.secret-analysis-content li { margin-bottom: 0.3rem; }
.secret-analysis-content hr { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
.secret-analysis-content strong { color: var(--gold-dark); }
.secret-meta { opacity: 0.6; }

/* ===== Toast notification ===== */
.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  padding: 0.8rem 1.5rem;
  background: var(--bg-panel); border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gold-dark);
  font-family: var(--font-main); font-size: 0.9rem;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2s forwards;
  pointer-events: none;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut { from { opacity: 1; } to { opacity: 0; } }

/* ===== Share Card Modal ===== */
.share-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.share-modal {
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 1.5rem; max-width: 420px; width: 90%; text-align: center;
}

.share-modal canvas { width: 100%; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.share-modal-btns { display: flex; gap: 0.8rem; justify-content: center; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .header h1 { font-size: 1.8rem; letter-spacing: 0.25em; }
  .nav-tab { padding: 0.6rem 0.7rem; font-size: 0.8rem; }
  .nav-tab .tab-icon { font-size: 1rem; }
  .pillar-ganzhi { font-size: 1.6rem; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .face-grid { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 1.2rem; }
  .camera-area { max-width: 100%; min-height: 200px; }
  .hexagram-build { max-width: 100%; }
  .build-line { padding: 0.35rem 0.6rem; gap: 0.4rem; font-size: 0.85rem; }
  .build-symbol { font-size: 1.3rem; width: 1.5rem; }
  .home-cards { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .home-card { padding: 1rem 0.6rem; }
  .home-card-icon { font-size: 1.8rem; width: 56px; height: 56px; }
  .home-card-title { font-size: 1rem; }
  .home-card-desc { font-size: 0.8rem; }
  .home-tools { grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); gap: 0.4rem; }
  .home-tool { font-size: 0.8rem; padding: 0.6rem 0.3rem; }
  .stats-bar { gap: 0.6rem; padding: 1rem 0.5rem; }
  .stats-num { font-size: 1.3rem; }
  .stats-label { font-size: 0.72rem; }
  .star-section { grid-template-columns: repeat(2, 1fr); }
  .fortune-aspects { grid-template-columns: repeat(2, 1fr); }
  .compatibility-sides { grid-template-columns: 1fr; }
  .compatibility-vs { padding-top: 0; }
  .compatibility-detail { grid-template-columns: repeat(2, 1fr); }
  .secret-textarea { min-height: 150px; font-size: 0.95rem; }
  .secret-analysis-content { padding: 1rem; font-size: 0.95rem; }
}

/* ===== 付费弹窗 ===== */
.paywall-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.25s ease;
  padding: 1rem;
}

.paywall-modal {
  background: var(--bg-panel);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 2rem 1.5rem 1.5rem;
  max-width: 420px; width: 100%;
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,0.12), 0 20px 50px rgba(0,0,0,0.08);
  animation: slideUp 0.3s ease;
}

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

.paywall-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; color: var(--text-dim);
  font-size: 1.5rem; cursor: pointer;
}

.paywall-close:hover { color: var(--gold-dark); }

.paywall-header { text-align: center; margin-bottom: 1.2rem; }
.paywall-icon { font-size: 3rem; margin-bottom: 0.5rem; }

.paywall-header h2 {
  font-family: var(--font-title); color: var(--gold-dark);
  font-size: 1.3rem; margin: 0 0 0.3rem;
}

.paywall-header p { color: var(--text-dim); font-size: 0.85rem; margin: 0; }

.paywall-remaining {
  text-align: center; color: var(--gold-dark);
  font-size: 0.85rem; margin-bottom: 1rem;
  padding: 0.5rem; background: rgba(176,136,56,0.06);
  border-radius: 8px;
}

.paywall-plans { display: flex; gap: 0.6rem; margin-bottom: 1rem; }

.paywall-plan {
  flex: 1; background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem 0.6rem;
  text-align: center; cursor: pointer;
  transition: all 0.2s ease; position: relative;
}

.paywall-plan:hover { border-color: rgba(176,136,56,0.3); }

.paywall-plan.selected {
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(176,136,56,0.15);
}

.paywall-plan-tag {
  position: absolute; top: -10px; right: -4px;
  background: var(--accent-red); color: #fff; font-size: 0.7rem;
  padding: 2px 8px; border-radius: 10px;
  white-space: nowrap;
}

.paywall-plan-tag.hot { background: var(--gold); color: #fff; }

.paywall-plan-name { font-size: 0.95rem; color: var(--text); font-weight: 600; margin-bottom: 0.3rem; }
.paywall-plan-price { font-size: 1.4rem; color: var(--gold-dark); font-weight: 700; }
.paywall-plan-price span { font-size: 0.75rem; font-weight: 400; }
.paywall-plan-desc { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.3rem; }

.paywall-footer { text-align: center; }
.paywall-hint { font-size: 0.75rem; color: var(--text-dim); margin: 0 0 0.8rem; }
.paywall-activate { width: 100%; font-size: 1.05rem; padding: 0.8rem; }

.paywall-skip {
  background: none; border: none; color: var(--text-dim);
  font-size: 0.8rem; margin-top: 0.6rem; cursor: pointer;
}

.paywall-skip:hover { color: var(--text); }

/* 支付金额显示 */
.paywall-amount-row {
  text-align: center; margin-bottom: 1rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, rgba(176,136,56,0.08), rgba(176,136,56,0.03));
  border-radius: 10px;
}
.paywall-amount-label { font-size: 0.85rem; color: var(--text-dim); margin-right: 0.4rem; }
.paywall-amount { font-size: 1.3rem; color: var(--gold-dark); }
.paywall-amount strong { font-family: var(--font-title); }

/* 支付方式选择 */
.paywall-methods {
  display: flex; flex-direction: column; gap: 0.7rem;
  margin-bottom: 1rem;
}
.pay-method-btn {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  transition: all 0.2s ease;
  font-family: var(--font-main);
}
.pay-method-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.pay-method-btn:active { transform: translateY(0); }
.pay-method-btn:disabled { opacity: 0.5; pointer-events: none; }

.pay-method-alipay:hover { border-color: #1677ff; background: #f0f7ff; }
.pay-method-wxpay:hover { border-color: #07c160; background: #f0fff4; }
.pay-method-qqpay:hover { border-color: #12b7f5; background: #f0fafe; }

.pay-method-icon { font-size: 1.5rem; width: 2rem; text-align: center; }
.pay-method-name { font-weight: 600; }

/* ===== 结果预览 + 付费解锁门 ===== */
.result-preview-wrapper { position: relative; }

.preview-fade-overlay {
  position: relative;
  margin-top: -120px; padding-top: 80px;
  background: linear-gradient(to bottom, transparent 0%, rgba(212,199,174,0.6) 50%, var(--bg-deep) 100%);
  text-align: center; z-index: 2;
}

.preview-cta-box { padding: 2rem 1.5rem 1.5rem; text-align: center; }
.preview-cta-icon { font-size: 2.8rem; margin-bottom: 0.8rem; }

.preview-cta-box h3 {
  font-family: var(--font-title); font-size: 1.3rem;
  color: var(--gold-dark); margin-bottom: 0.5rem; letter-spacing: 0.1em;
}

.preview-cta-box p {
  color: var(--text-dim); font-size: 0.95rem;
  line-height: 1.7; margin-bottom: 1.2rem;
}

.preview-cta-btn {
  font-size: 1.1rem !important;
  padding: 0.9rem 3rem !important;
  animation: previewPulse 2s ease-in-out infinite;
}

@keyframes previewPulse {
  0%, 100% { box-shadow: 0 2px 14px rgba(176,136,56,0.25); }
  50% { box-shadow: 0 4px 28px rgba(176,136,56,0.45); }
}

.preview-full-content { animation: fadeSlideIn 0.4s ease; }

/* ===== 免费功能 → 付费引导卡片 ===== */
.paid-guide {
  margin-top: 1.5rem; padding: 1rem 1.2rem;
  background: linear-gradient(135deg, rgba(176,136,56,0.04), rgba(176,136,56,0.01));
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius); text-align: center;
}

.paid-guide-label {
  font-size: 0.8rem; color: var(--text-dim);
  margin-bottom: 0.5rem; letter-spacing: 0.05em;
}

.paid-guide-title {
  font-family: var(--font-title); font-size: 1rem;
  color: var(--gold-dark); margin-bottom: 0.3rem;
}

.paid-guide-desc {
  font-size: 0.85rem; color: var(--text-dim);
  margin-bottom: 0.8rem; line-height: 1.5;
}

.paid-guide-btns {
  display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap;
}

.paid-guide-btn {
  padding: 0.5rem 1.2rem;
  font-family: var(--font-title); font-size: 0.9rem; letter-spacing: 0.06em;
  color: var(--gold-dark);
  background: transparent; border: 1px solid var(--gold);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition);
}

.paid-guide-btn:hover {
  background: rgba(176,136,56,0.08);
  color: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
}
