/* 念想 · Web —— 统一视觉风格 v3 - 全面响应式 */
:root {
  --bg: #faf9f6;
  --bg-card: #ffffff;
  --text: #1c1917;
  --text-muted: #6b6560;
  --text-light: #a8a29e;
  --brand: #c4a265;
  --brand-light: #d4b87a;
  --brand-dark: #1a1a2e;
  --hero-text: #faf9f6;
  --border: #e8e4de;
  --radius: 16px;
  --shadow: 0 2px 8px rgba(26, 26, 46, 0.04);
  --shadow-hover: 0 4px 16px rgba(26, 26, 46, 0.08);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-top: env(safe-area-inset-top, 0px);
}

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

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

html, body {
  min-height: 100%;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== App Shell - 移动端优先 ===== */
.app-shell {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(72px + var(--safe-area-bottom));
  padding-top: var(--safe-area-top);
}

@media (min-width: 768px) {
  .app-shell {
    max-width: 720px;
    padding-bottom: 32px;
  }
  .bottom-nav { display: none; }
}

@media (min-width: 1024px) {
  .app-shell {
    max-width: 840px;
  }
  .page { padding: 28px 32px; }
}

@media (min-width: 1440px) {
  .app-shell {
    max-width: 960px;
  }
}

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  top: var(--safe-area-top, 0);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 375px) {
  .topbar { padding: 14px 16px; }
}

@media (min-width: 768px) {
  .topbar { padding: 14px 24px; }
}

.brand-link {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-dark);
  text-decoration: none;
}

@media (min-width: 375px) {
  .brand-link { font-size: 19px; }
}

@media (min-width: 768px) {
  .brand-link { font-size: 20px; }
}

.topbar-nav {
  display: flex;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
}

@media (min-width: 375px) {
  .topbar-nav { gap: 16px; font-size: 14px; }
}

@media (min-width: 768px) {
  .topbar-nav { gap: 24px; font-size: 15px; }
}

@media (min-width: 1024px) {
  .topbar-nav { gap: 32px; }
}

.topbar-nav a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.topbar-nav a:hover { color: var(--text); }

.topbar-nav a.active {
  color: var(--brand-dark);
  font-weight: 600;
}

.topbar-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
}

/* ===== Page & Sections ===== */
.page { 
  padding: 14px; 
}

@media (min-width: 375px) {
  .page { padding: 20px; }
}

@media (min-width: 768px) {
  .page { padding: 24px; }
}

.section { margin-top: 24px; }

@media (min-width: 768px) {
  .section { margin-top: 32px; }
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

@media (min-width: 375px) {
  .section-title { font-size: 20px; }
}

.section-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ===== Hero ===== */
.hero {
  padding: 28px 18px 24px;
  border-radius: var(--radius);
  background: var(--brand-dark);
  color: var(--hero-text);
  text-align: center;
  box-shadow: var(--shadow);
}

@media (min-width: 375px) {
  .hero { padding: 32px 22px 28px; }
}

@media (min-width: 768px) {
  .hero { padding: 36px 28px 32px; }
}

@media (min-width: 1024px) {
  .hero { padding: 40px 32px 36px; }
}

.hero-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--brand);
  margin-bottom: 10px;
  text-transform: uppercase;
}

@media (min-width: 375px) {
  .hero-eyebrow { font-size: 11px; letter-spacing: 0.2em; margin-bottom: 12px; }
}

.hero-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

@media (min-width: 360px) {
  .hero-title { font-size: 28px; }
}

@media (min-width: 375px) {
  .hero-title { font-size: 32px; }
}

@media (min-width: 768px) {
  .hero-title { font-size: 40px; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 44px; }
}

.hero-slogan {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 400;
  color: rgba(250, 249, 246, 0.8);
}

@media (min-width: 375px) {
  .hero-slogan { margin-top: 12px; font-size: 17px; }
}

.hero-stats {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(250, 249, 246, 0.5);
}

@media (min-width: 375px) {
  .hero-stats { margin-top: 10px; font-size: 13px; }
}

.hero-logo {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  object-fit: cover;
}

@media (min-width: 375px) {
  .hero-logo { width: 64px; height: 64px; margin-bottom: 16px; }
}

@media (min-width: 768px) {
  .hero-logo { width: 72px; height: 72px; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 375px) {
  .btn {
    min-height: 48px;
    padding: 0 20px;
    font-size: 15px;
  }
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-primary {
  margin-top: 16px;
  background: var(--brand-dark);
  color: var(--hero-text);
}

@media (min-width: 375px) {
  .btn-primary { margin-top: 20px; }
}

.btn-primary:hover {
  background: #2d2d44;
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--bg);
  border-color: var(--text-muted);
}

.btn-dark {
  background: var(--brand-dark);
  color: var(--hero-text);
}

.btn-dark:hover {
  background: #2d2d44;
  box-shadow: var(--shadow-hover);
}

/* ===== Trust Row ===== */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 16px 0 8px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 375px) {
  .trust-row { gap: 8px 20px; margin: 20px 0 8px; padding: 14px 0; }
}

.trust-row span {
  font-size: 12px;
  color: var(--text-muted);
}

@media (min-width: 375px) {
  .trust-row span { font-size: 13px; }
}

.trust-row span::before {
  content: '· ';
  color: var(--brand);
}

/* ===== Cards ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

/* ===== Case Video ===== */
.case-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 6px;
}

@media (min-width: 360px) {
  .case-wrap { gap: 8px; padding: 12px 8px; }
}

@media (min-width: 375px) {
  .case-wrap { gap: 10px; padding: 16px 12px; }
}

.case-nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  touch-action: manipulation;
}

@media (min-width: 375px) {
  .case-nav { width: 36px; height: 36px; font-size: 18px; }
}

.case-nav:hover {
  background: var(--bg);
  color: var(--text);
  border-color: var(--text-muted);
}

.case-screen {
  width: 180px;
  height: 240px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: #1a1a2e;
  flex-shrink: 0;
}

@media (min-width: 360px) {
  .case-screen { width: 200px; height: 266px; border-radius: 14px; }
}

@media (min-width: 375px) {
  .case-screen { width: 220px; height: 293px; }
}

@media (min-width: 414px) {
  .case-screen { width: 240px; height: 320px; }
}

@media (min-width: 480px) {
  .case-screen { width: 260px; height: 346px; }
}

@media (min-width: 768px) {
  .case-screen { width: 320px; height: 426px; }
}

.case-video {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  background: #1a1a2e;
}

.case-video, .play-video { cursor: pointer; }

.play-video {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  background: #111;
}

.case-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(26, 26, 46, 0.72);
  color: var(--hero-text);
  font-size: 10px;
  font-weight: 500;
}

@media (min-width: 375px) {
  .case-badge { top: 10px; right: 10px; padding: 3px 10px; font-size: 11px; }
}

.case-play-overlay {
  position: absolute;
  inset: 0;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
}

.case-play-overlay[hidden] { display: none; }

.case-play-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(26, 26, 46, 0.78);
  border: 2px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s;
}

@media (min-width: 375px) {
  .case-play-icon { width: 56px; height: 56px; font-size: 20px; }
}

.case-play-overlay:hover .case-play-icon {
  transform: scale(1.05);
}

.case-play-text {
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.92;
}

@media (min-width: 375px) {
  .case-play-text { font-size: 12px; }
}

.autoplay-tip {
  position: fixed;
  left: 50%;
  bottom: calc(72px + var(--safe-area-bottom));
  transform: translateX(-50%);
  z-index: 999;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(26, 26, 46, 0.88);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.case-hint {
  text-align: center;
  padding: 6px 16px 0;
  font-size: 11px;
  color: var(--text-muted);
}

@media (min-width: 375px) {
  .case-hint { padding: 8px 16px 0; font-size: 12px; }
}

.case-quote {
  text-align: center;
  padding: 0 16px 8px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

@media (min-width: 375px) {
  .case-quote { font-size: 16px; }
}

.case-caption {
  display: block;
  text-align: center;
  padding-bottom: 16px;
  font-size: 11px;
  color: var(--text-muted);
}

@media (min-width: 375px) {
  .case-caption { font-size: 12px; }
}

.dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-bottom: 16px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.dot.active {
  width: 22px;
  border-radius: 4px;
  background: var(--brand);
}

/* ===== Menu & Steps ===== */
.menu-main {
  padding: 16px;
  background: var(--brand-dark);
  color: var(--hero-text);
  cursor: pointer;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: box-shadow 0.2s;
}

@media (min-width: 375px) {
  .menu-main { padding: 20px; }
}

.menu-main:hover {
  box-shadow: var(--shadow-hover);
}

.menu-main strong { display: block; font-size: 15px; font-weight: 600; }
.menu-main small { display: block; margin-top: 4px; color: rgba(250, 249, 246, 0.55); font-size: 12px; }

@media (min-width: 375px) {
  .menu-main strong { font-size: 17px; }
  .menu-main small { font-size: 13px; }
}

.menu-item {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

@media (min-width: 375px) {
  .menu-item { padding: 16px 20px; }
}

.menu-item:hover { background: rgba(26, 26, 46, 0.02); }

.menu-item strong { display: block; font-size: 14px; font-weight: 500; }
.menu-item small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 12px; }

@media (min-width: 375px) {
  .menu-item strong { font-size: 15px; }
  .menu-item small { font-size: 13px; }
}

.step-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 375px) {
  .step-row { gap: 14px; padding: 16px 20px; }
}

.step-row:last-child { border-bottom: none; }

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

@media (min-width: 375px) {
  .step-num { width: 36px; height: 36px; font-size: 15px; }
}

.cta-block {
  margin-top: 24px;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--brand-dark);
  color: var(--hero-text);
  text-align: center;
}

@media (min-width: 375px) {
  .cta-block { margin-top: 32px; padding: 28px 24px; }
}

.footer-note {
  margin-top: 20px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
}

@media (min-width: 375px) {
  .footer-note { margin-top: 24px; font-size: 12px; }
}

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

@media (min-width: 375px) {
  .form-group { margin-bottom: 18px; }
}

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

@media (min-width: 375px) {
  .form-label { margin-bottom: 8px; font-size: 14px; }
}

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

@media (min-width: 375px) {
  .form-input, .form-select, .form-textarea {
    padding: 12px 16px;
    font-size: 15px;
  }
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(196, 162, 101, 0.15);
}

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

@media (min-width: 375px) {
  .form-textarea { min-height: 96px; }
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

@media (min-width: 375px) {
  .tag-list { gap: 8px; margin-bottom: 10px; }
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  touch-action: manipulation;
}

@media (min-width: 375px) {
  .tag { padding: 8px 14px; font-size: 14px; }
}

.tag:hover { border-color: var(--text-muted); }

.tag.active {
  background: rgba(196, 162, 101, 0.12);
  border-color: var(--brand);
  color: var(--brand-dark);
  font-weight: 600;
}

.upload-box {
  width: 100%;
  aspect-ratio: 1;
  max-height: 240px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  transition: border-color 0.2s;
}

@media (min-width: 375px) {
  .upload-box { max-height: 280px; }
}

@media (min-width: 768px) {
  .upload-box { max-height: 320px; }
}

.upload-box:hover { border-color: var(--brand); }

.upload-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.upload-box span { position: relative; z-index: 1; color: var(--text-muted); font-size: 13px; }

@media (min-width: 375px) {
  .upload-box span { font-size: 14px; }
}

/* ===== Orders ===== */
.order-list { display: flex; flex-direction: column; gap: 12px; }

.order-card {
  padding: 14px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

@media (min-width: 375px) {
  .order-card { padding: 16px; }
}

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

.order-card h3 { font-size: 15px; margin-bottom: 4px; font-weight: 600; }
.order-card p { font-size: 12px; color: var(--text-muted); }

@media (min-width: 375px) {
  .order-card h3 { font-size: 16px; }
  .order-card p { font-size: 13px; }
}

.status {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(196, 162, 101, 0.12);
  color: var(--brand-dark);
}

@media (min-width: 375px) {
  .status { margin-top: 8px; padding: 4px 10px; font-size: 12px; }
}

.status.done { background: rgba(45, 106, 79, 0.1); color: #2d6a4f; }
.status.wait { background: rgba(180, 83, 9, 0.1); color: #b45309; }
.status.refunded { background: rgba(153, 27, 27, 0.08); color: #991b1b; }

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

@media (min-width: 375px) {
  .empty { padding: 48px 20px; }
}

/* ===== Tabs ===== */
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

@media (min-width: 375px) {
  .tabs { gap: 8px; margin-bottom: 16px; }
}

.tab {
  flex: 1;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  touch-action: manipulation;
}

@media (min-width: 375px) {
  .tab { padding: 10px; font-size: 14px; }
}

.tab:hover { background: var(--bg); }

.tab.active {
  background: var(--brand-dark);
  color: var(--hero-text);
  border-color: transparent;
  font-weight: 600;
}

/* ===== Media ===== */
.media-box {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  margin-bottom: 0;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 360px) {
  .media-box { min-height: 240px; }
}

@media (min-width: 375px) {
  .media-box { min-height: 280px; }
}

@media (min-width: 768px) {
  .media-box { min-height: 320px; }
}

@media (min-width: 1024px) {
  .media-box { min-height: 360px; }
}

.video-wrap {
  position: relative;
  width: 100%;
}

.play-canvas, .play-poster {
  display: block;
  width: 100%;
  max-height: 400px;
  height: auto;
  background: #111;
}

@media (min-width: 375px) {
  .play-canvas, .play-poster { max-height: 480px; }
}

.play-video {
  max-height: 400px;
  object-fit: contain;
}

@media (min-width: 375px) {
  .play-video { max-height: 480px; }
}

.play-hint {
  margin: 8px 0 14px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

@media (min-width: 375px) {
  .play-hint { margin: 10px 0 16px; font-size: 13px; }
}

.media-box img, .media-box video {
  display: block;
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  background: #111;
}

@media (min-width: 375px) {
  .media-box img, .media-box video { max-height: 480px; }
}

.waiting-box {
  text-align: center;
  padding: 50px 20px;
}

@media (min-width: 375px) {
  .waiting-box { padding: 60px 20px; }
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@media (min-width: 375px) {
  .spinner { width: 48px; height: 48px; margin-bottom: 20px; }
}

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

/* ===== FAQ ===== */
.faq-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

@media (min-width: 375px) {
  .faq-item { padding: 16px 18px; }
}

.faq-item:hover { background: rgba(26, 26, 46, 0.02); }

.faq-item strong { font-size: 14px; font-weight: 500; }

@media (min-width: 375px) {
  .faq-item strong { font-size: 15px; }
}

.faq-item p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  display: none;
  line-height: 1.6;
}

@media (min-width: 375px) {
  .faq-item p { margin-top: 10px; font-size: 14px; }
}

.faq-item.open p { display: block; }

/* ===== Modal ===== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}

@media (min-width: 375px) {
  .modal-mask { padding: 20px; }
}

.modal-panel {
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow: auto;
  background: var(--bg-card);
  border-radius: 20px 20px 0 0;
  padding: 20px 18px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
}

@media (min-width: 375px) {
  .modal-panel { padding: 24px 20px; }
}

.modal-panel h2 { font-size: 18px; margin-bottom: 10px; font-weight: 600; }
.modal-panel p { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.6; }

@media (min-width: 375px) {
  .modal-panel h2 { font-size: 20px; margin-bottom: 12px; }
  .modal-panel p { font-size: 14px; margin-bottom: 12px; }
}

.check-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 14px 0;
  font-size: 13px;
  color: var(--text);
}

@media (min-width: 375px) {
  .check-row { gap: 10px; margin: 16px 0; font-size: 14px; }
}

/* ===== Bottom Nav ===== */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 30;
  padding-bottom: var(--safe-area-bottom);
}

.bottom-nav a {
  flex: 1;
  padding: 6px 0 calc(6px + var(--safe-area-bottom) / 2);
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 375px) {
  .bottom-nav a { padding: 10px 0 12px; font-size: 11px; }
}

.bottom-nav a.active {
  color: var(--brand);
  font-weight: 600;
}

.bottom-nav a svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto 2px;
  fill: currentColor;
  stroke: none;
}

@media (min-width: 375px) {
  .bottom-nav a svg { width: 24px; height: 24px; margin-bottom: 4px; }
}

/* ===== Notice ===== */
.notice {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

@media (min-width: 375px) {
  .notice { margin-bottom: 16px; padding: 12px 14px; font-size: 13px; }
}

.notice-warn {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.notice-warn a {
  color: #c2410c;
  font-weight: 600;
}

/* ===== Articles ===== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 375px) {
  .article-list { gap: 16px; }
}

.article-card {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.article-cover {
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -14px -14px 14px;
}

@media (min-width: 375px) {
  .article-cover { height: 160px; margin: -20px -20px 16px; }
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.article-card:hover .article-cover img {
  transform: scale(1.03);
}

.article-body {
  padding: 0;
}

.article-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

@media (min-width: 375px) {
  .article-title { font-size: 17px; margin-bottom: 8px; }
}

.article-summary {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 375px) {
  .article-summary { font-size: 14px; margin-bottom: 12px; }
}

.article-date {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.7;
}

@media (min-width: 375px) {
  .article-date { font-size: 12px; }
}

.article-list-full .article-card {
  padding: 14px;
}

@media (min-width: 375px) {
  .article-list-full .article-card { padding: 20px; }
}

.article-list-full .article-cover {
  height: 160px;
}

@media (min-width: 375px) {
  .article-list-full .article-cover { height: 200px; }
}

.article-detail-page {
  padding-top: 10px;
}

@media (min-width: 375px) {
  .article-detail-page { padding-top: 12px; }
}

.back-btn {
  margin-bottom: 16px;
}

@media (min-width: 375px) {
  .back-btn { margin-bottom: 20px; }
}

.article-detail {
  padding: 20px;
}

@media (min-width: 375px) {
  .article-detail { padding: 24px; }
}

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

@media (min-width: 375px) {
  .article-detail-title { font-size: 24px; }
}

@media (min-width: 768px) {
  .article-detail-title { font-size: 28px; }
}

.article-detail-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 375px) {
  .article-detail-meta { font-size: 13px; margin-bottom: 20px; padding-bottom: 16px; }
}

.article-detail-cover {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
}

@media (min-width: 375px) {
  .article-detail-cover { margin-bottom: 24px; }
}

.article-detail-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.article-detail-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

@media (min-width: 375px) {
  .article-detail-content { font-size: 15px; }
}

@media (min-width: 768px) {
  .article-detail-content { font-size: 16px; }
}

.article-detail-content p {
  margin-bottom: 14px;
}

@media (min-width: 375px) {
  .article-detail-content p { margin-bottom: 16px; }
}

/* ===== Photo Gallery ===== */
.photo-gallery {
  margin-bottom: 14px;
}

@media (min-width: 375px) {
  .photo-gallery { margin-bottom: 16px; }
}

.photo-gallery h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

@media (min-width: 375px) {
  .photo-gallery h3 { font-size: 15px; margin-bottom: 12px; }
}

/* ===== Auth Modal ===== */
.auth-switch {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

@media (min-width: 375px) {
  .auth-switch { margin-top: 16px; font-size: 14px; }
}

.auth-switch button {
  background: none;
  border: none;
  color: var(--brand-dark);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}

@media (min-width: 375px) {
  .auth-switch button { font-size: 14px; }
}

/* ===== Progress Bar ===== */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

@media (min-width: 375px) {
  .progress-bar { height: 8px; }
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 100%);
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* ===== Star Rating ===== */
.star-rating.active {
  color: #f59e0b;
}

/* ===== Quick Entry ===== */
.quick-entry {
  cursor: pointer;
  padding: 6px 4px;
  border-radius: 12px;
  transition: background 0.2s;
}

@media (min-width: 375px) {
  .quick-entry { padding: 8px 4px; }
}

.quick-entry:hover {
  background: rgba(26, 26, 46, 0.04);
}

/* ===== FAQ Arrow & Answer ===== */
.faq-item.open .faq-arrow {
  transform: rotate(90deg);
}

.faq-item.open .faq-answer {
  max-height: 200px !important;
}

/* ===== My Page ===== */
.my-page .section {
  margin-bottom: 14px;
}

@media (min-width: 375px) {
  .my-page .section { margin-bottom: 16px; }
}

/* ===== 超小屏幕 (< 360px) ===== */
@media (max-width: 359px) {
  html { font-size: 14px; }
  .page { padding: 12px; }
  .hero { padding: 24px 16px; }
  .hero-title { font-size: 22px; }
  .hero-slogan { font-size: 13px; }
  .section-title { font-size: 16px; }
  .btn { min-height: 40px; font-size: 13px; }
  .form-input, .form-select, .form-textarea {
    padding: 8px 12px;
    font-size: 13px;
  }
  .upload-box { max-height: 200px; }
  .case-screen { width: 160px; height: 213px; }
  .bottom-nav a { font-size: 10px; padding: 4px 0; }
  .bottom-nav a svg { width: 18px; height: 18px; }
}

/* ===== 横屏手机特殊处理 ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 16px 20px; }
  .hero-title { font-size: 22px; }
  .hero-slogan { margin-top: 6px; font-size: 13px; }
  .case-wrap { padding: 8px; }
  .case-screen { height: 180px; }
  .bottom-nav a { padding: 4px 0 4px; }
}

/* ===== 高对比度和无障碍 ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== 暗色模式支持 ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a2e;
    --bg-card: #2d2d44;
    --text: #faf9f6;
    --text-muted: #a8a29e;
    --text-light: #6b6560;
    --border: #3d3d5c;
  }
}

/* ===== 平板和桌面响应式 ===== */
@media (min-width: 768px) {
  .article-list-full {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1440px) {
  .article-list-full {
    grid-template-columns: repeat(3, 1fr);
  }
}
