﻿/* ============================================
   TikTok鍙烽摵 鈥?鍏ㄥ眬鏍峰紡 v1.1
   妯″潡锛歁odule A锛堝鑸鏋讹級
   璁捐瑙勮寖锛歞ocs/06-design-system.md
   ============================================ */

/* ===== CSS 鍙橀噺锛堣璁′护鐗岋級 ===== */
:root {
  /* 涓昏壊 鈥?娣辨捣钃?*/
  --primary: #1a56db;
  --primary-hover: #1e40af;
  --primary-light: #eff6ff;
  --primary-ghost: #dbeafe;

  /* 涓€ц壊 */
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-hover: #94a3b8;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  /* 璇箟鑹?*/
  --success: #16a34a;
  --error: #dc2626;
  --warning: #f59e0b;
  --sold-bg: #f1f5f9;
  --sold-tag-bg: #fef2f2;
  --sold-tag-text: #991b1b;

  /* 绫诲瀷鏍囩鑹?*/
  --tag-moon-white-bg: #fef3c7;
  --tag-moon-white-text: #92400e;
  --tag-year-white-bg: #fce7f3;
  --tag-year-white-text: #9d174d;
  --tag-offline-bg: #e0e7ff;
  --tag-offline-text: #3730a3;
  --tag-mid-video-bg: #d1fae5;
  --tag-mid-video-text: #065f46;
  --tag-showcase-bg: #dbeafe;
  --tag-showcase-text: #1e40af;
  --tag-live-bg: #f3e8ff;
  --tag-live-text: #6b21a8;
  --tag-fresh-bg: #e6f7ed;
  --tag-fresh-text: #0d6b36;
  --tag-apple-id-bg: #eef2ff;
  --tag-apple-id-text: #334155;
  --tag-capcut-bg: #fef3c7;
  --tag-capcut-text: #92400e;

  /* 闂磋窛 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  /* 鍦嗚 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* 闃村奖 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);

  /* 瀛椾綋 */
  --font-stack: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Consolas", monospace;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;

  /* 甯冨眬 */
  --max-width: 1024px;
  --navbar-height: 52px;

  /* 杩囨浮 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-stack);
  color: var(--text-primary);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
input, select { font-family: inherit; font-size: inherit; }

/* ===== 瀵艰埅鏍忥紙Module A锛?===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--navbar-height);
}
.navbar-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.navbar-brand:hover { text-decoration: none; }
.navbar-logo {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.navbar-links { display: flex; gap: 2px; }
.navbar-link {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s var(--ease-out);
  text-decoration: none;
}
.navbar-link:hover { color: var(--primary); background: var(--primary-light); text-decoration: none; }
.navbar-link.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }

/* ===== 妗岄潰绔乏鍙充俊鎭爮 ===== */
.desktop-side-rail {
  position: fixed;
  top: 50%;
  width: 272px;
  display: grid;
  gap: 18px;
  transform: translateY(-50%);
  z-index: 10;
}
.desktop-side-rail--left {
  right: calc(50% + (var(--max-width) / 2) + 36px);
}
.desktop-side-rail--right {
  left: calc(50% + (var(--max-width) / 2) + 36px);
}
.side-rail-panel {
  min-height: 200px;
  padding: 26px 24px;
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  color: var(--text-secondary);
}
.side-rail-ad-stack {
  display: grid;
  gap: 18px;
}
.side-rail-panel--ad {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed #bfdbfe;
  background: rgba(239, 246, 255, 0.48);
  color: var(--text-muted);
  text-align: center;
}
.side-rail-panel--aftercare {
  min-height: 0;
  padding: 22px 22px;
  border-color: rgba(253, 230, 138, 0.95);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.94));
}
.side-rail-title {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text-primary);
}
.side-rail-panel--ad .side-rail-title {
  color: var(--text-secondary);
  font-size: 22px;
}
.side-rail-note,
.side-rail-eyebrow {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--text-muted);
}
.side-rail-eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
}
.side-rail-eyebrow--warning {
  background: #fef3c7;
  color: #92400e;
}
.side-rail-list {
  margin-top: 18px;
  padding-left: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.85;
}
.side-rail-list--compact {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.65;
}
.side-rail-list--compact li {
  margin-bottom: 9px;
}
.side-rail-list--compact li::before {
  background: var(--warning);
  box-shadow: 0 0 0 3px #fef3c7;
}
.side-rail-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
}
.side-rail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.side-rail-list strong {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: var(--text-base);
}

@media (min-width: 1400px) {
  .desktop-side-rail {
    display: block;
  }
}

@media (max-width: 1399px) {
  .desktop-side-rail {
    display: none;
  }
}

/* ===== 杩涘叆椤垫彁绀哄脊绐?===== */
.entry-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fadeIn 0.2s var(--ease-out);
}
.entry-notice-dialog {
  position: relative;
  width: min(92vw, 440px);
  padding: 30px 28px 24px;
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  text-align: center;
  animation: scaleIn 0.24s var(--ease-out);
}
.entry-notice-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.entry-notice-close:hover {
  color: var(--text-primary);
  background: var(--bg);
}
.entry-notice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: var(--text-sm);
  font-weight: 700;
}
.entry-notice-title {
  margin-bottom: var(--space-3);
  color: var(--text-primary);
  font-size: var(--text-xl);
  font-weight: 800;
}
.entry-notice-copy {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.8;
}
.entry-notice-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.entry-notice-btn {
  flex: 1;
  min-height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: var(--text-base);
  font-weight: 700;
  transition: all 0.15s var(--ease-out);
}
.entry-notice-btn--ghost {
  background: var(--surface);
  color: var(--text-secondary);
}
.entry-notice-btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.entry-notice-btn--primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.entry-notice-btn--primary:hover {
  background: var(--primary-hover);
}

/* ===== 涓诲唴瀹瑰尯 ===== */
.main-content {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-8);
}

/* ============================================
   Module B: 绛涢€夌郴缁?   ============================================ */

.filter-block {
  margin-bottom: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s var(--ease-out);
}
.filter-block--primary {
  border-color: var(--primary-ghost);
  background: linear-gradient(to bottom, #f8faff, var(--surface));
}
.filter-block--secondary {
  background: #fafbfc;
  border-color: #edf2f7;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.filter-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  font-weight: 600;
}

/* 娓呴櫎鎸夐挳 */
.filter-clear {
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.5;
}
.filter-clear:hover { border-color: var(--error); color: var(--error); }
.filter-clear-all {
  font-size: var(--text-xs);
  padding: 3px 10px;
  border: 1px solid var(--error);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--error);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-clear-all:hover { background: var(--error); color: #fff; }

/* 鏍囩琛?*/
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.tag-row--sub {
  /* sub-filter uses its own tag style */
}
.tag-btn {
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s var(--ease-out);
  user-select: none;
  line-height: 1.5;
  font-weight: 500;
}
.tag-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.tag-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 4px rgba(26,86,219,0.2); }
.tag-btn.active:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

/* 瀛愮被鐩爣绛?*/
.sub-filter-tag {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s var(--ease-out);
  user-select: none;
  font-weight: 500;
}
.sub-filter-tag:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.sub-filter-tag.active { background: #f3e8ff; color: #6b21a8; border-color: #d8b4e8; font-weight: 600; }

/* 鑷畾涔夌矇涓濇暟杈撳叆 */
.custom-range-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.custom-range-label { flex-shrink: 0; }
.custom-range-sep { color: var(--text-muted); }
.custom-range-row input {
  width: 100px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--surface);
}
.custom-range-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.custom-range-row .hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* 娲诲姩绛涢€夋爣绛?*/
.active-filters {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding: var(--space-3) 0;
  font-size: var(--text-xs);
}
.active-filters-label { color: var(--text-muted); white-space: nowrap; }
.active-filters-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  border: 1px solid var(--primary-ghost);
}
.active-filter-tag .remove-filter {
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  opacity: 0.6;
  margin-left: 2px;
}
.active-filter-tag .remove-filter:hover { opacity: 1; }

/* ===== 浣跨敤鏁欑▼椤?===== */
.tutorial-page {
  max-width: 920px;
}
.tutorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: var(--space-4);
}
.tutorial-hero-copy,
.tutorial-hero-panel {
  padding: var(--space-5);
  border: 1px solid #dbeafe;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98) 42%), var(--surface);
  box-shadow: var(--shadow-sm);
}
.tutorial-hero-copy {
  display: grid;
  gap: var(--space-3);
}
.tutorial-hero-title {
  color: var(--text-primary);
  font-size: 34px;
  line-height: 1.12;
  font-weight: 800;
}
.tutorial-hero-desc {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.8;
}
.tutorial-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.tutorial-anchor {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
}
.tutorial-anchor:hover {
  text-decoration: none;
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}
.tutorial-hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
}
.tutorial-hero-stat {
  display: grid;
  gap: 6px;
  padding: var(--space-3);
  border: 1px solid rgba(219, 234, 254, 0.85);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
}
.tutorial-hero-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.tutorial-hero-stat strong {
  font-size: var(--text-lg);
  color: var(--text-primary);
  line-height: 1.35;
}
.tutorial-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.tutorial-section {
  margin-top: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.tutorial-section-badge {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.tutorial-section--notice {
  border-color: rgba(253, 230, 138, 0.95);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.96));
}
.tutorial-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-4);
}
.tutorial-section-header--intro {
  align-items: flex-start;
}
.tutorial-section-title,
.tutorial-section-header h2 {
  color: var(--text-primary);
  font-size: var(--text-lg);
  line-height: 1.35;
  font-weight: 800;
}
.tutorial-section-header p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 560px;
}
.tutorial-contact-btn {
  width: auto;
  min-width: 132px;
  align-self: flex-start;
  padding-left: 16px;
  padding-right: 16px;
}
.twofa-generator {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-lg);
  background: rgba(248, 250, 252, 0.85);
  padding: var(--space-4);
}
.twofa-generator {
  display: grid;
  gap: var(--space-3);
}
.twofa-display {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3);
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(239,246,255,0.92));
}
.twofa-ring {
  --progress: 100;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 52px, transparent 53px),
    conic-gradient(var(--primary) calc(var(--progress) * 1%), #dbeafe 0);
  display: grid;
  place-items: center;
}
.twofa-ring-inner {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid rgba(219, 234, 254, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.twofa-countdown {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.twofa-countdown-label {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.twofa-code-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.twofa-code {
  border: 1px solid var(--primary-ghost);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--primary);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 4px;
  line-height: 1;
  text-align: center;
  padding: 18px 12px;
  min-height: 92px;
}
.twofa-code-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.twofa-copy,
.twofa-clear-btn {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
}
.twofa-copy,
.twofa-clear-btn {
  min-height: 40px;
  padding: 0 14px;
  align-self: flex-start;
}
.twofa-copy:hover,
.twofa-clear-btn:hover,
.saved-key-btn:hover,
.saved-key-code:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.twofa-status {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.twofa-status[data-state="ok"] { color: var(--success); }
.twofa-status[data-state="warning"] { color: var(--warning); }
.twofa-status[data-state="error"] { color: var(--error); }
.twofa-info {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.6;
}
.twofa-form {
  display: grid;
  gap: var(--space-2);
  margin-top: -2px;
}
.field-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.5;
}
.field-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-primary);
  outline: none;
  font-size: var(--text-base);
}
.field-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.field-input--textarea {
  resize: vertical;
  min-height: 96px;
}
.twofa-clear-btn {
  background: #fff;
}
.twofa-security {
  padding: 10px 12px;
  margin-top: -2px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  line-height: 1.7;
  border: 1px solid rgba(226, 232, 240, 0.95);
}
.guide-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}
.guide-step-card {
  min-height: 168px;
  padding: var(--space-4);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
}
.guide-step-num {
  display: inline-flex;
  margin-bottom: var(--space-3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}
.guide-step-card h3,
.tutorial-mini-card h3,
.cookie-card h3 {
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: 1.35;
  font-weight: 800;
}
.guide-step-card p,
.tutorial-mini-card p,
.cookie-card p,
.cookie-card li {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.8;
}
.guide-step-card strong {
  color: var(--primary);
  font-family: var(--font-mono);
}
.tutorial-mini-grid,
.cookie-grid {
  display: grid;
  gap: var(--space-3);
}
.tutorial-mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--space-3);
}
.tutorial-mini-card,
.cookie-card {
  padding: var(--space-4);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-md);
  background: rgba(248, 250, 252, 0.82);
}
.tutorial-mini-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: 112px;
}
.tutorial-mini-icon {
  flex: 0 0 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--text-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.cookie-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cookie-card {
  background: rgba(255, 255, 255, 0.88);
}
.step-list {
  display: grid;
  gap: var(--space-2);
  padding-left: 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.step-list li::marker {
  color: var(--primary);
  font-weight: 700;
}

/* ===== 宸ュ叿鏍忥紙鎼滅储+鎺掑簭锛?===== */
.toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-4);
}
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}
.search-wrap input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  outline: none;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-clear:hover { color: var(--text-secondary); background: var(--bg); }
.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  background: var(--surface);
  color: var(--text-secondary);
  outline: none;
  cursor: pointer;
  min-width: 120px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.sort-select:focus { border-color: var(--primary); }
.result-count {
  font-size: var(--text-sm);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ============================================
   Module C: 璐﹀彿鍗＄墖
   ============================================ */
.account-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.account-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.account-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
@media (hover: hover) {
  .account-card:hover { transform: translateY(-2px); }
}
.account-card.is-sold {
  opacity: 0.72;
  background: var(--sold-bg);
}
.account-card.is-sold::after {
  content: "宸插敭";
  position: absolute;
  top: 12px;
  right: -28px;
  background: var(--sold-tag-bg);
  color: var(--sold-tag-text);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 32px;
  transform: rotate(45deg);
  pointer-events: none;
  letter-spacing: 0.5px;
  border: 1px solid #fecaca;
}
.account-card.is-sold:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  transform: none;
}

/* 鍗＄墖椤堕儴琛?*/
.card-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* 绫诲瀷鏍囩 */
.type-tag {
  font-size: var(--text-xs);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.type-tag--moon_white  { background: var(--tag-moon-white-bg); color: var(--tag-moon-white-text); }
.type-tag--year_white  { background: var(--tag-year-white-bg); color: var(--tag-year-white-text); }
.type-tag--offline     { background: var(--tag-offline-bg);     color: var(--tag-offline-text); }
.type-tag--mid_video   { background: var(--tag-mid-video-bg);  color: var(--tag-mid-video-text); }
.type-tag--showcase    { background: var(--tag-showcase-bg);    color: var(--tag-showcase-text); }
.type-tag--live        { background: var(--tag-live-bg);        color: var(--tag-live-text); }
.type-tag--fresh       { background: var(--tag-fresh-bg);       color: var(--tag-fresh-text); }
.type-tag--apple_id    { background: var(--tag-apple-id-bg);    color: var(--tag-apple-id-text); }
.type-tag--capcut      { background: var(--tag-capcut-bg);      color: var(--tag-capcut-text); }

/* 鍥藉鏂囧瓧 */
.card-country {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* 宸插敭寰界珷锛堝崱鐗囧唴琛屽唴鏍囩锛?*/
.sold-badge {
  font-size: var(--text-xs);
  padding: 2px 8px;
  background: var(--sold-tag-bg);
  color: var(--sold-tag-text);
  border-radius: var(--radius-sm);
  border: 1px solid #fecaca;
  margin-left: auto;
  font-weight: 500;
}

/* 鍗＄墖鏍囬 */
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
}
.card-title-main {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.card-detail-line {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 22px;
  margin-top: 5px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* 鐗规€ф爣绛?*/
.card-features {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  vertical-align: middle;
}
.feature-tag {
  font-size: 11px;
  font-weight: 500;
  color: #6b21a8;
  background: #f3e8ff;
  padding: 1px 6px;
  border-radius: 10px;
  white-space: nowrap;
  border: 1px solid #e9d5ff;
}

/* 鍗＄墖搴曢儴琛?*/
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-3);
  margin-top: 16px;
}
.card-stats {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.card-followers {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-consultations {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  margin-left: auto;
  width: fit-content;
  white-space: nowrap;
}
.card-price {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-md);
  display: inline-block;
}
.card-price .currency {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  margin-right: 1px;
}

/* 鑱旂郴瀹㈡湇鎸夐挳 */
.btn-contact {
  width: 100%;
  padding: 13px var(--space-4);
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s var(--ease-out), transform 0.1s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.2px;
  min-height: 44px;
}
.btn-contact:hover { background: var(--primary-hover); }
.btn-contact:active { transform: scale(0.97); }
.btn-contact--sold {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}
.btn-contact--sold:hover { background: var(--border); }

.tutorial-page-header .tutorial-contact-btn {
  width: auto;
  flex: 0 0 auto;
  min-width: 132px;
  align-self: center;
}

/* ===== 鐘舵€佽鍥?===== */

/* 绌虹姸鎬?*/
.empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--text-muted);
}
.empty-state .empty-icon {
  font-size: 56px;
  margin-bottom: var(--space-4);
  opacity: 0.5;
  filter: grayscale(0.5);
}
.empty-state .empty-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}
.empty-state .empty-hint {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* 楠ㄦ灦灞?*/
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.skeleton-line {
  height: 14px;
  background: linear-gradient(90deg, var(--border) 25%, #f1f5f9 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
.skeleton-line--tag  { width: 30%; height: 20px; border-radius: var(--radius-full); }
.skeleton-line--title { width: 70%; height: 16px; }
.skeleton-line--meta  { width: 45%; }
.skeleton-line--price { width: 40%; height: 22px; }
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 閿欒鐘舵€?*/
.error-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}
.error-state .error-icon { font-size: 48px; margin-bottom: var(--space-4); }
.error-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.error-hint {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.btn-retry {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
}
.btn-retry:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ===== 鍔犺浇鏇村 ===== */
.load-more-wrap {
  text-align: center;
  margin-top: var(--space-5);
}
.btn-load-more {
  padding: 10px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
}
.btn-load-more:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-load-more:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-load-more:disabled:hover { background: var(--surface); border-color: var(--border); color: var(--text-secondary); }

/* 杩斿洖椤堕儴 */
.btn-back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-back-top:hover { border-color: var(--primary); color: var(--primary); }
.btn-back-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 返回上一级 */
.btn-back-page {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-secondary);
  box-shadow: var(--shadow-md);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.btn-back-page:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-back-page:active {
  transform: translateY(0);
}
.btn-back-page-icon {
  font-size: 18px;
  line-height: 1;
}
.btn-back-page-text {
  line-height: 1;
}

/* ============================================
   Module D: 寰俊寮圭獥
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.2s var(--ease-out);
  padding: var(--space-4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-dialog {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6) var(--space-5);
  max-width: 360px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: scaleIn 0.25s var(--ease-out);
}
@keyframes scaleIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.modal-close:hover { color: var(--text-primary); background: var(--bg); }
.modal-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-5);
  color: var(--text-primary);
}
.modal-qr-wrapper {
  width: 200px;
  height: 200px;
  margin: 0 auto var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}
.modal-qr-placeholder {
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-align: center;
  padding: var(--space-3);
  line-height: 1.6;
}
.modal-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.modal-wechat-id {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  font-weight: 500;
}
.wechat-id-text {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  user-select: all;
}
.btn-copy-id {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}
.btn-copy-id:hover { border-color: var(--primary); background: var(--primary-light); }
.modal-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-5);
  line-height: 1.6;
}
.btn-modal-close {
  padding: 10px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
}
.btn-modal-close:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

@media (min-width: 769px) {
  .modal-dialog {
    max-width: 720px;
    padding: calc(var(--space-8) * 2) calc(var(--space-6) * 2) calc(var(--space-5) * 2);
  }

  .modal-title {
    font-size: calc(var(--text-xl) * 1.2);
    margin-bottom: calc(var(--space-5) * 1.4);
  }

  .modal-qr-wrapper {
    width: 400px;
    height: 400px;
    margin-bottom: calc(var(--space-4) * 1.5);
  }

  .modal-wechat-id {
    font-size: calc(var(--text-sm) * 1.15);
    margin-bottom: calc(var(--space-2) * 1.5);
  }

  .wechat-id-text {
    font-size: calc(var(--text-base) * 1.15);
    padding: 4px 12px;
  }

  .btn-copy-id {
    padding: 6px 10px;
    font-size: 16px;
  }

  .modal-hint {
    font-size: var(--text-sm);
    margin-bottom: calc(var(--space-5) * 1.2);
  }

  .btn-modal-close {
    padding: 14px 64px;
    font-size: var(--text-base);
  }
}

/* 澶嶅埗鎻愮ず */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.2s var(--ease-out);
  pointer-events: none;
}
.copy-toast.show { opacity: 1; }

/* ============================================
   Module E: 杞欢宸ュ叿椤?   ============================================ */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
}
.software-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.software-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.software-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}
.software-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}
.software-features {
  list-style: none;
  padding: 0;
}
.software-features li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.software-features li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}
.software-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: var(--space-3);
}
.software-price {
  font-size: var(--text-xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-md);
  display: inline-block;
}
.software-price .currency {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  margin-right: 1px;
}

/* 椤甸潰鏍囬 */
.page-header {
  margin-bottom: var(--space-5);
}
.page-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.page-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* ============================================
   Module F: 404 椤甸潰
   ============================================ */
.page-404 {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.page-404-code {
  font-size: 120px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: var(--space-4);
  letter-spacing: -4px;
  user-select: none;
}
.page-404-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.page-404-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}
.btn-home {
  display: inline-block;
  padding: 10px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s var(--ease-out);
}
.btn-home:hover { background: var(--primary-hover); text-decoration: none; }

/* ===== 椤佃剼锛圡odule A锛?===== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-4);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.footer-divider { color: var(--border); }
.footer a { color: var(--text-muted); text-decoration: underline; }

/* ============================================
   鍝嶅簲寮?   ============================================ */
@media (max-width: 1024px) {
  .account-grid { grid-template-columns: repeat(2, 1fr); }
  .skeleton-grid { grid-template-columns: repeat(2, 1fr); }
  .tutorial-section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-2);
  }
  .twofa-display { grid-template-columns: 1fr; }
  .twofa-ring { margin: 0 auto; }
  .twofa-code { font-size: 36px; }
}
@media (max-width: 640px) {
  .account-grid { grid-template-columns: 1fr; }
  .skeleton-grid { grid-template-columns: 1fr; }
  .software-grid { grid-template-columns: 1fr; }

  .filter-block { padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); }

  .tag-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    padding-bottom: var(--space-1);
  }
  .tag-row::-webkit-scrollbar { display: none; }
  .tag-btn { scroll-snap-align: start; }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
  }
  .tutorial-section {
    padding: var(--space-4);
  }
  .tutorial-page { padding-left: var(--space-3); padding-right: var(--space-3); }
  .tutorial-section-header p { max-width: none; }
  .twofa-display { gap: var(--space-3); }
  .twofa-ring { width: 136px; height: 136px; }
  .twofa-ring-inner { width: 90px; height: 90px; }
  .twofa-countdown { font-size: 26px; }
  .twofa-code { font-size: 28px; letter-spacing: 3px; min-height: 82px; }
  .search-wrap { min-width: 0; }
  .sort-select { width: 100%; }
  .result-count { text-align: center; }

  .custom-range-row {
    flex-wrap: wrap;
    justify-content: center;
  }
  .custom-range-row input { width: 80px; }
  .custom-range-row .hint { width: 100%; text-align: center; margin-top: 2px; }

  .navbar-link { padding: 6px 10px; font-size: var(--text-xs); }
  .page-title { font-size: var(--text-xl); }
  .page-404-code { font-size: 80px; }

  .modal-dialog { max-width: 320px; padding: var(--space-6) var(--space-4) var(--space-4); }
  .modal-qr-wrapper { width: 160px; height: 160px; }

  .btn-back-top { bottom: 16px; right: 16px; width: 36px; height: 36px; }

  /* 绉诲姩绔幓鎺?hover 涓婃诞鏁堟灉 */
  @media (hover: none) {
    .account-card:hover { transform: none; }
  }
}

/* ===== 瀹夊叏鍖哄煙閫傞厤锛堝垬娴峰睆锛?===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .footer-inner { padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom)); }
  .btn-back-top { bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* API account/contact additions; existing catalog layout remains unchanged. */
[hidden] { display: none !important; }
.navbar-links button { border: 0; background: transparent; cursor: pointer; font: inherit; }
.auth-dialog { max-width: 430px; max-height: 88vh; overflow-y: auto; text-align: left; }
.auth-tabs, .contact-channel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.auth-tabs button, .contact-channel-actions button, .stack-form button, #contact-retry, #btn-copy-id {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--primary-light); cursor: pointer; color: var(--primary);
}
.stack-form { display: grid; gap: 12px; margin-top: 16px; }
.stack-form label { display: grid; gap: 5px; font-size: 14px; }
.stack-form input, .stack-form select { width: 100%; padding: 9px; border: 1px solid var(--border); border-radius: 6px; font: inherit; background: white; }
.stack-form .btn-contact { background: var(--primary); color: white; }
#auth-status, #contact-status { font-size: 13px; margin-top: 14px; overflow-wrap: anywhere; }
.contact-text, #contact-product-name, .card-description { overflow-wrap: anywhere; white-space: pre-wrap; }
.card-description { padding: 0 0 12px; font-size: 13px; color: var(--text-secondary); }
.software-cover { max-width: 100%; height: 160px; object-fit: contain; margin-bottom: 12px; }
#filter-category .tag-btn { font: inherit; }
.modal-dialog { max-height: 90vh; overflow-y: auto; }
@media (max-width: 640px) { .navbar-links { flex-wrap: wrap; } .auth-dialog { max-width: 94vw; } }
