/* ============================================================
   永思纪念馆 (withlove) - 全局样式
   设计：手机优先（≤767px）+ 桌面全宽（≥768px）
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #F5EFE3;
  --bg-soft: #FAF6EC;
  --card: #FCFAF3;
  --ink: #2D2419;
  --ink-soft: #5B4E3D;
  --ink-fade: #8A7C68;
  --gold: #B8924E;
  --gold-deep: #8B6F3E;
  --gold-light: #D4B57A;
  --gold-soft: rgba(184, 146, 78, 0.12);
  --border: #E8DCC4;
  --border-soft: #EFE5D0;
  --shadow: 0 2px 12px rgba(139, 111, 62, 0.08);
  --shadow-lg: 0 8px 32px rgba(139, 111, 62, 0.12);
  --danger: #B45A4B;
  --success: #6B8E5A;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Serif SC', serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--gold-deep); text-decoration: none; }
a:active { opacity: 0.7; }

/* ============================================================
   📱 手机版 (≤767px) - 默认，保持原样
   ============================================================ */
.app {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  min-height: 100vh;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
}

.app::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  max-width: 480px;
  margin: 0 auto;
  background-image:
    radial-gradient(rgba(139, 111, 62, 0.03) 1px, transparent 1px),
    radial-gradient(rgba(139, 111, 62, 0.02) 1px, transparent 1px);
  background-size: 24px 24px, 16px 16px;
  background-position: 0 0, 12px 12px;
  pointer-events: none;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 227, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: 'Noto Serif SC', serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 2px;
}

.logo-mark {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-family: 'Noto Serif SC', serif;
  color: var(--ink-soft);
  padding: 8px 12px;
  font-size: 14px;
  letter-spacing: 1px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-link:hover { color: var(--gold-deep); }
.nav-link:active { color: var(--gold-deep); }

.nav-link-btn { font: inherit; }

.nav-btn {
  font-family: 'Noto Serif SC', serif;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--card);
  padding: 8px 16px;
  font-size: 14px;
  letter-spacing: 2px;
  border-radius: 2px;
  border: none;
  transition: all 0.2s;
}
.nav-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.nav-btn:active { opacity: 0.85; }

.inline-form { display: inline; }

.flash {
  margin: 12px 16px;
  padding: 12px 16px;
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  letter-spacing: 1px;
  border-radius: 2px;
  position: relative;
  z-index: 10;
}
.flash-success {
  background: rgba(107, 142, 90, 0.1);
  color: var(--success);
  border-left: 3px solid var(--success);
}
.flash-error {
  background: rgba(180, 90, 75, 0.1);
  color: var(--danger);
  border-left: 3px solid var(--danger);
}

.site-main {
  position: relative;
  z-index: 10;
  flex: 1;
}

.site-footer {
  text-align: center;
  padding: 40px 24px 30px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-fade);
  line-height: 1.8;
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-soft);
  margin-top: 40px;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 20px;
  opacity: 0.5;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-soft);
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.footer-logo-mark {
  display: inline-block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-tagline {
  font-family: 'ZCOOL XiaoWei', serif;
  color: var(--gold-deep);
  font-size: 13px;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-bottom: 20px;
}
.footer-nav a {
  color: var(--ink-fade);
  font-size: 12px;
  letter-spacing: 1px;
}
.footer-nav a:hover { color: var(--gold-deep); }

.footer-copyright {
  color: var(--ink-fade);
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.7;
}

.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 4px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--gold);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px 22px;
  position: relative;
  box-shadow: var(--shadow);
  margin: 0 16px 16px;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  letter-spacing: 4px;
  transition: all 0.2s;
  min-height: 48px;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--card);
}
.btn-primary:hover { opacity: 0.95; }

.btn-secondary {
  background: var(--card);
  color: var(--gold-deep);
  border: 1px solid var(--gold);
}
.btn-secondary:hover { background: var(--gold-soft); }

.btn-block {
  width: 100%;
}

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

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

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 12px 14px;
  outline: none;
  transition: all 0.2s;
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 2px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.7;
}

.form-error {
  color: var(--danger);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  margin-top: 6px;
  letter-spacing: 1px;
}

.form-hint {
  color: var(--ink-fade);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  margin-top: 6px;
  letter-spacing: 1px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.form-check label {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.form-check label a {
  color: var(--gold-deep);
  text-decoration: underline;
}

/* ===== AUTH 页面（手机版） ===== */
.auth-wrap {
  padding: 32px 20px;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 32px 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

.auth-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 8px;
  color: var(--ink);
  margin-bottom: 8px;
  padding-left: 8px;
}

.auth-subtitle {
  font-family: 'ZCOOL XiaoWei', serif;
  text-align: center;
  color: var(--gold-deep);
  letter-spacing: 4px;
  font-size: 14px;
  margin-bottom: 30px;
}

.auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 30px;
}
.auth-divider-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.auth-divider-line:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.auth-links {
  text-align: center;
  margin-top: 24px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
  color: var(--ink-fade);
  letter-spacing: 1px;
}

.auth-links a {
  color: var(--gold-deep);
  margin: 0 4px;
}

.auth-meta {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-fade);
}

/* ===== HOME 首页（手机版） ===== */
.home-hero {
  position: relative;
  text-align: center;
  padding: 60px 24px 40px;
  overflow: hidden;
}

.home-hero::before {
  content: '念';
  position: absolute;
  font-family: 'ZCOOL XiaoWei', serif;
  color: rgba(184, 146, 78, 0.06);
  font-size: 280px;
  top: 20px;
  right: -40px;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 6px;
  margin-bottom: 14px;
  line-height: 1.5;
  position: relative;
}

.hero-subtitle {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-soft);
  letter-spacing: 2px;
  line-height: 2;
  margin-bottom: 28px;
  position: relative;
}

.hero-tagline-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
  position: relative;
}
.hero-tagline-line {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-tagline {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 14px;
  color: var(--gold-deep);
  letter-spacing: 4px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  max-width: 280px;
  margin: 0 auto;
}

.home-search {
  margin: 0 16px 36px;
}

.search-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 22px 20px;
  position: relative;
  box-shadow: var(--shadow);
}
.search-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

.search-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  letter-spacing: 4px;
  text-align: center;
  color: var(--ink);
  margin-bottom: 14px;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-input {
  flex: 1;
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 12px 14px;
  outline: none;
  min-height: 46px;
  border-radius: 2px;
}
.search-input:focus {
  border-color: var(--gold);
  background: var(--card);
}

.search-btn {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--card);
  border: none;
  padding: 0 18px;
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  letter-spacing: 2px;
  cursor: pointer;
  min-height: 46px;
  border-radius: 2px;
  transition: all 0.2s;
}
.search-btn:hover { opacity: 0.95; }

.search-hint {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--ink-fade);
  text-align: center;
  margin-top: 10px;
  letter-spacing: 1px;
}

.how-section {
  padding: 0 16px;
  margin-bottom: 40px;
}

.how-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how-item {
  background: var(--card);
  border: 1px solid var(--border-soft);
  padding: 20px 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.2s;
}
.how-item:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow);
}

.how-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
}

.how-content { flex: 1; }

.how-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 2px;
  margin-bottom: 6px;
  font-weight: 500;
}

.how-desc {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.page-content {
  padding: 30px 20px;
}
.page-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  letter-spacing: 6px;
  color: var(--ink);
  text-align: center;
  margin-bottom: 30px;
  padding-left: 6px;
}

.page-body {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  line-height: 2;
  color: var(--ink-soft);
}

.page-body p { margin-bottom: 16px; }
.page-body h2 { font-size: 18px; color: var(--ink); margin: 24px 0 12px; }
.page-body h3 { font-size: 16px; color: var(--ink); margin: 20px 0 10px; }
.page-body ul, .page-body ol { padding-left: 24px; margin-bottom: 16px; }

/* ===== DASHBOARD（手机版） ===== */
.dashboard-header {
  padding: 24px 20px 16px;
}
.dashboard-greeting {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 2px;
}
.dashboard-greeting-name {
  color: var(--gold-deep);
  font-weight: 600;
}
.dashboard-meta {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-fade);
  margin-top: 4px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 18px 16px;
  text-align: center;
}

.stat-card-num {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 1px;
}

.stat-card-label {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-fade);
  letter-spacing: 2px;
  margin-top: 4px;
}

.dashboard-empty {
  text-align: center;
  padding: 50px 24px;
  color: var(--ink-fade);
}

.empty-icon {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 80px;
  color: var(--gold-soft);
  line-height: 1;
  margin-bottom: 16px;
}

.empty-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  color: var(--ink-soft);
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.empty-desc {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
  color: var(--ink-fade);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.notice-card {
  margin: 16px;
  background: linear-gradient(135deg, #FCF8EE 0%, #F8F1DD 100%);
  border: 1px solid var(--gold-light);
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.notice-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 16px;
}

.notice-body { flex: 1; }

.notice-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 1px;
  margin-bottom: 4px;
  font-weight: 500;
}

.notice-desc {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 8px;
}

.notice-action {
  display: inline-block;
  background: transparent;
  border: none;
  color: var(--gold-deep);
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  letter-spacing: 2px;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: underline;
}

/* ============================================================
   💻 桌面版 (≥768px) - 全宽布局
   ============================================================ */
@media (min-width: 768px) {

  /* 容器：撑开整个屏幕 */
  .app {
    max-width: 100%;
    padding-bottom: 0;
  }

  .app::before {
    max-width: 100%;
  }

  /* ===== 顶部导航：全宽 ===== */
  .site-header {
    padding: 18px 60px;
  }

  .site-logo {
    font-size: 20px;
    letter-spacing: 3px;
    gap: 12px;
  }

  .logo-mark {
    width: 56px;
    height: 56px;
  }

  .site-nav {
    gap: 8px;
  }

  .nav-link {
    font-size: 15px;
    padding: 10px 18px;
    letter-spacing: 2px;
  }

  .nav-btn {
    font-size: 15px;
    padding: 10px 24px;
    letter-spacing: 3px;
  }

  /* ===== 主内容：1100px 居中 ===== */
  .site-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
  }

  /* Flash 居中 */
  .flash {
    max-width: 1100px;
    margin: 16px auto;
    padding: 14px 24px;
    font-size: 15px;
  }

  /* ===== HOME 首页：超大 Hero ===== */
  .home-hero {
    padding: 120px 60px 80px;
    text-align: center;
  }

  .home-hero::before {
    font-size: 600px;
    top: -100px;
    right: -100px;
  }

  .hero-title {
    font-size: 52px;
    letter-spacing: 12px;
    line-height: 1.6;
    margin-bottom: 28px;
  }

  .hero-subtitle {
    font-size: 18px;
    letter-spacing: 4px;
    line-height: 2.2;
    margin-bottom: 50px;
  }

  .hero-tagline-wrap {
    margin-bottom: 60px;
    gap: 24px;
  }
  .hero-tagline-line {
    width: 80px;
  }
  .hero-tagline {
    font-size: 20px;
    letter-spacing: 8px;
  }

  /* 按钮横排 */
  .hero-actions {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    max-width: none;
  }

  .hero-actions .btn {
    min-width: 200px;
    font-size: 16px;
    padding: 16px 36px;
    letter-spacing: 5px;
  }

  /* ===== 搜索区段：居中加大 ===== */
  .home-search {
    max-width: 720px;
    margin: 0 auto 80px;
    padding: 0 40px;
  }

  .search-card {
    padding: 32px 36px;
  }

  .search-title {
    font-size: 18px;
    letter-spacing: 6px;
    margin-bottom: 20px;
  }

  .search-form {
    gap: 12px;
  }

  .search-input {
    font-size: 16px;
    padding: 14px 20px;
    min-height: 54px;
  }

  .search-btn {
    padding: 0 32px;
    font-size: 15px;
    letter-spacing: 4px;
    min-height: 54px;
  }

  .search-hint {
    font-size: 12px;
    margin-top: 14px;
  }

  /* ===== "如何使用" - 横向四栏 ===== */
  .how-section {
    padding: 60px 0 80px;
    margin-bottom: 0;
  }

  .how-section .section-title {
    text-align: center;
    justify-content: center;
    font-size: 22px;
    letter-spacing: 8px;
    margin-bottom: 40px;
  }
  .how-section .section-title::before {
    display: none;
  }
  .how-section .section-title::after {
    content: '';
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin-left: 16px;
  }
  .how-section .section-title {
    position: relative;
  }
  .how-section .section-title::before {
    display: inline-block;
    content: '';
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin-right: 16px;
  }

  .how-grid {
    flex-direction: row;
    gap: 24px;
  }

  .how-item {
    flex: 1;
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
    gap: 16px;
  }

  .how-num {
    width: 56px;
    height: 56px;
    font-size: 28px;
    margin: 0 auto;
  }

  .how-title {
    font-size: 17px;
    letter-spacing: 3px;
    margin-bottom: 8px;
  }

  .how-desc {
    font-size: 14px;
    line-height: 2;
  }

  /* ===== 静态页面 ===== */
  .page-content {
    padding: 60px 80px;
    max-width: 800px;
    margin: 0 auto;
  }

  .page-title {
    font-size: 32px;
    letter-spacing: 10px;
    margin-bottom: 50px;
  }

  .page-body {
    font-size: 16px;
    line-height: 2.2;
  }

  .page-body h2 { font-size: 22px; margin: 32px 0 16px; }
  .page-body h3 { font-size: 18px; margin: 24px 0 12px; }
  .page-body p { margin-bottom: 20px; }

  /* ===== AUTH 页面：卡片居中 ===== */
  .auth-wrap {
    padding: 80px 24px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .auth-card {
    width: 100%;
    max-width: 460px;
    padding: 50px 44px;
  }

  .auth-title {
    font-size: 30px;
    letter-spacing: 12px;
    margin-bottom: 12px;
  }

  .auth-subtitle {
    font-size: 16px;
    letter-spacing: 6px;
    margin-bottom: 40px;
  }

  .auth-divider {
    margin-bottom: 40px;
  }

  /* ===== Dashboard ===== */
  .dashboard-header {
    padding: 50px 0 24px;
  }

  .dashboard-greeting {
    font-size: 26px;
    letter-spacing: 4px;
  }

  .dashboard-meta {
    font-size: 14px;
    margin-top: 8px;
  }

  .notice-card {
    margin: 16px 0;
    padding: 20px 24px;
  }

  .notice-title { font-size: 16px; }
  .notice-desc { font-size: 13px; }

  .dashboard-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
    margin-bottom: 40px;
  }

  .stat-card {
    padding: 28px 24px;
  }

  .stat-card-num {
    font-size: 32px;
  }

  .stat-card-label {
    font-size: 13px;
    margin-top: 8px;
  }

  .dashboard-empty {
    padding: 80px 40px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .empty-icon { font-size: 120px; }
  .empty-title { font-size: 20px; letter-spacing: 4px; }
  .empty-desc { font-size: 15px; }

  /* Dashboard 纪念馆列表 - 桌面用网格 */
  .dashboard-stats + section .card,
  .dashboard-empty + section .card {
    margin: 0 0 16px;
  }

  /* ===== 页脚：横向布局 ===== */
  .site-footer {
    padding: 60px 80px 40px;
    margin-top: 80px;
  }

  .footer-brand {
    font-size: 18px;
    letter-spacing: 5px;
    margin-bottom: 12px;
  }

  .footer-logo-mark {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .footer-tagline {
    font-size: 15px;
    letter-spacing: 6px;
    margin-bottom: 30px;
  }

  .footer-nav {
    gap: 8px 32px;
    margin-bottom: 30px;
  }

  .footer-nav a {
    font-size: 13px;
    letter-spacing: 2px;
  }

  .footer-copyright {
    font-size: 12px;
    letter-spacing: 2px;
  }

  /* ===== 通用：section-title 桌面版 ===== */
  .section-title {
    font-size: 20px;
    letter-spacing: 6px;
    margin-bottom: 24px;
  }
}

/* ============================================================
   💎 大屏 (≥1200px) - 微调
   ============================================================ */
@media (min-width: 1200px) {
  .site-header { padding: 22px 80px; }

  .hero-title { font-size: 60px; }
  .hero-subtitle { font-size: 19px; }

  .home-hero { padding: 140px 80px 100px; }
}
/* ============================================================
   永思纪念馆 - 第二包样式
   纪念馆创建流程、查看页面、搜索页
   ============================================================ */

/* ============================================================
   📍 创建流程（手机版）
   ============================================================ */
.memorial-create {
  padding: 20px 16px 40px;
}

/* 步骤指示器 */
.steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px 24px;
  gap: 8px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink-fade);
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.step.active .step-num {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--card);
  border-color: var(--gold-deep);
}

.step.done .step-num {
  background: var(--gold-soft);
  color: var(--gold-deep);
  border-color: var(--gold);
}

.step-label {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--ink-fade);
  letter-spacing: 1px;
}

.step.active .step-label {
  color: var(--gold-deep);
  font-weight: 500;
}

.step-line {
  flex: 0 0 40px;
  height: 1px;
  background: var(--border);
  margin-top: -16px;
}

.step-line.done {
  background: var(--gold);
}

/* 创建卡片 */
.create-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px 22px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.create-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

.create-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 6px;
  color: var(--ink);
  margin-bottom: 6px;
  padding-left: 6px;
}

.create-subtitle {
  font-family: 'ZCOOL XiaoWei', serif;
  text-align: center;
  color: var(--gold-deep);
  letter-spacing: 3px;
  font-size: 13px;
  margin-bottom: 24px;
}

.create-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 28px;
}
.divider-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider-line:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* 单选组（性别） */
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.radio-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  background: var(--card);
  border: 1px solid var(--border);
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.radio-item input {
  position: absolute;
  opacity: 0;
}

.radio-item:has(input:checked),
.radio-item input:checked + span {
  font-weight: 500;
}

.radio-item:has(input:checked) {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-deep);
}

/* 日期组 */
.date-group {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
}
.date-year, .date-mon, .date-day {
  text-align: center;
}

/* 宗教选择网格 */
.religion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.religion-item {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 14px 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.religion-item input {
  position: absolute;
  opacity: 0;
}

.religion-item.active,
.religion-item:has(input:checked) {
  background: var(--gold-soft);
  border-color: var(--gold);
}

.religion-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.religion-desc {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--ink-fade);
  line-height: 1.5;
  letter-spacing: 0.5px;
}

/* 照片上传 */
.photo-upload {
  text-align: center;
}

.photo-preview {
  margin: 0 auto 12px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  position: relative;
}

.photo-preview.wide {
  width: 100%;
  height: 140px;
  border-radius: 4px;
  border-width: 1px;
  max-width: 360px;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-current {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 11px;
  padding: 4px;
}

.photo-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--card);
  border: 1px dashed var(--gold);
  color: var(--gold-deep);
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}

.photo-upload-btn:hover {
  background: var(--gold-soft);
}

.upload-icon {
  font-size: 18px;
  line-height: 1;
}

/* 隐私选项 */
.privacy-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
}

.privacy-item input {
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--gold);
  width: 18px;
  height: 18px;
}

.privacy-item:has(input:checked) {
  background: var(--gold-soft);
  border-color: var(--gold);
}

.privacy-content {
  flex: 1;
}

.privacy-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.privacy-desc {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Slug 输入 */
.slug-input-wrap {
  display: flex;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}

.slug-prefix {
  background: var(--bg-soft);
  padding: 12px 14px;
  font-family: 'Noto Sans SC', monospace;
  font-size: 13px;
  color: var(--ink-fade);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50%;
}

.slug-input {
  flex: 1;
  border: none;
  min-width: 0;
}

/* 复选框 */
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
}

.check-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

/* 草稿预览卡 */
.draft-preview {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  margin-bottom: 22px;
}

.draft-preview img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.draft-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 24px;
  color: var(--gold-deep);
}

.draft-info { flex: 1; }
.draft-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 2px;
}
.draft-years {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-fade);
  margin-top: 2px;
}

/* 表单操作按钮 */
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.form-actions .btn {
  flex: 1;
}

/* ============================================================
   📍 创建完成页
   ============================================================ */
.create-done-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 36px 24px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.create-done-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-deep), var(--gold), var(--gold-light));
}

.done-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: var(--card);
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.done-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  letter-spacing: 6px;
  color: var(--ink);
  margin-bottom: 6px;
  padding-left: 6px;
}

.done-subtitle {
  font-family: 'ZCOOL XiaoWei', serif;
  color: var(--gold-deep);
  letter-spacing: 4px;
  font-size: 14px;
  margin-bottom: 24px;
}

.done-memorial-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 20px;
  margin: 0 auto 24px;
  max-width: 300px;
}

.done-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  border: 3px solid var(--gold);
}

.done-photo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 44px;
  color: var(--gold-deep);
}

.done-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 3px;
  margin-bottom: 4px;
}

.done-years {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
  color: var(--ink-fade);
  margin-bottom: 8px;
}

.done-code {
  font-family: 'Noto Sans SC', monospace;
  font-size: 11px;
  color: var(--ink-fade);
  letter-spacing: 1px;
}

.share-section {
  margin-bottom: 24px;
}

.share-label {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.share-link-box {
  display: flex;
  gap: 6px;
}

.share-link {
  flex: 1;
  font-family: 'Noto Sans SC', monospace;
  font-size: 12px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  outline: none;
  min-width: 0;
}

.share-copy-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--card);
  border: none;
  padding: 0 16px;
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  white-space: nowrap;
}

.share-hint {
  color: var(--success);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  margin-top: 6px;
}

.done-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.link-small {
  display: inline-block;
  margin-top: 4px;
  color: var(--ink-fade);
  font-size: 13px;
  text-decoration: none;
}

.done-tips {
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  padding: 14px 16px;
  text-align: left;
}

.tips-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--gold-deep);
  letter-spacing: 2px;
  margin-bottom: 8px;
  font-weight: 500;
}

.tips-list {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.8;
  padding-left: 18px;
}

/* ============================================================
   📍 纪念馆查看页（核心）
   ============================================================ */
.memorial-page {
  position: relative;
  z-index: 10;
}

.memorial-cover {
  position: relative;
  background: linear-gradient(135deg, #2D2419 0%, #5B4E3D 100%);
  background-size: cover;
  background-position: center;
  padding: 50px 24px 40px;
  text-align: center;
  color: var(--card);
  overflow: hidden;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 36, 25, 0.75);
}

.memorial-cover > * {
  position: relative;
  z-index: 2;
}

.cover-edit-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(252, 250, 243, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card);
  text-decoration: none;
  font-size: 16px;
  backdrop-filter: blur(8px);
  z-index: 10;
}

.memorial-main-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.memorial-main-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  box-shadow: 0 0 40px rgba(184, 146, 78, 0.5);
}

.memorial-main-photo.placeholder {
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 72px;
  color: var(--card);
}

.memorial-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 8px;
  margin-bottom: 14px;
  padding-left: 8px;
}

.memorial-years {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  letter-spacing: 4px;
  margin-bottom: 18px;
  opacity: 0.9;
}

.years-dot { margin: 0 8px; color: var(--gold-light); }

.memorial-bio {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 1px;
  margin: 0 auto 24px;
  max-width: 400px;
  opacity: 0.85;
}

.memorial-tagline-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.tagline-line {
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.memorial-tagline {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 14px;
  color: var(--gold-light);
  letter-spacing: 4px;
}

/* 主体 sections */
.memorial-section {
  padding: 36px 16px 0;
}

.memorial-section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 4px;
  margin-bottom: 18px;
  text-align: center;
  position: relative;
  padding-bottom: 12px;
}

.memorial-section-title::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--gold);
}

/* 家属寄语 */
.memorial-message-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px 22px;
  position: relative;
  box-shadow: var(--shadow);
}

.memorial-message-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

.quote-mark {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 30px;
  color: var(--gold-light);
  line-height: 1;
}

.quote-mark.right {
  text-align: right;
  display: block;
}

.memorial-message-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  line-height: 2;
  color: var(--ink-soft);
  letter-spacing: 1px;
  margin: 8px 0;
}

/* 悼念按钮网格 */
.tribute-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.tribute-btn {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 18px 8px;
  cursor: pointer;
  font-family: 'Noto Serif SC', serif;
  transition: all 0.2s;
}

.tribute-btn:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.tribute-icon-wrap {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 22px;
  color: var(--gold-deep);
}

.tribute-label {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--ink-soft);
}

.tribute-hint {
  text-align: center;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-fade);
  letter-spacing: 1px;
  padding: 8px 0;
}

.tribute-hint a {
  color: var(--gold-deep);
}

/* 留言区 */
.empty-messages {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-fade);
}

.empty-quote {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 18px;
  color: var(--gold-deep);
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.empty-sub {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.msg-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
}

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

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 16px;
  flex-shrink: 0;
}

.msg-author { flex: 1; min-width: 0; }

.msg-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 1px;
}

.msg-rel {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--ink-fade);
  margin-top: 2px;
}

.msg-time {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--ink-fade);
}

.msg-body {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  padding-left: 42px;
}

.msg-action {
  margin-top: 14px;
}

/* 分享 */
.share-card {
  display: flex;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 14px;
}

.share-card .share-link {
  flex: 1;
  min-width: 0;
}

.share-hint-text {
  text-align: center;
  color: var(--success);
  font-size: 12px;
  margin-top: 8px;
}

.memorial-code-info {
  text-align: center;
  padding: 30px 20px;
  font-family: 'Noto Sans SC', monospace;
  font-size: 11px;
  color: var(--ink-fade);
  letter-spacing: 2px;
}

/* ============================================================
   📍 编辑页 - 危险区
   ============================================================ */
.danger-zone {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px dashed var(--danger);
}

.danger-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: var(--danger);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.danger-desc {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-fade);
  margin-bottom: 14px;
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}

.btn-danger:hover {
  background: var(--danger);
  color: var(--card);
}

/* ============================================================
   📍 Dashboard 纪念馆列表
   ============================================================ */
.memorial-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.memorial-list-card {
  display: flex;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  padding: 14px;
  align-items: center;
  transition: all 0.2s;
}

.memorial-list-card:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow);
}

.memorial-list-photo {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.memorial-list-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memorial-list-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 30px;
  color: var(--gold-deep);
}

.memorial-list-info {
  flex: 1;
  min-width: 0;
}

.memorial-list-name {
  display: block;
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 2px;
  margin-bottom: 2px;
  text-decoration: none;
}

.memorial-list-years {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-fade);
  margin-bottom: 6px;
}

.memorial-list-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.privacy-badge {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 10px;
  padding: 2px 8px;
  border: 1px solid;
  border-radius: 2px;
  letter-spacing: 1px;
}

.memorial-list-code {
  font-family: 'Noto Sans SC', monospace;
  font-size: 10px;
  color: var(--ink-fade);
}

.memorial-list-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.memorial-action-link {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--gold-deep);
  text-decoration: none;
  padding: 4px 8px;
  letter-spacing: 1px;
}

/* ============================================================
   📍 搜索页
   ============================================================ */
.search-page {
  padding-bottom: 40px;
}

.search-page-header {
  text-align: center;
  padding: 30px 20px 10px;
}

.search-page-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  letter-spacing: 6px;
  color: var(--ink);
  margin-bottom: 6px;
  padding-left: 6px;
}

.search-page-subtitle {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-fade);
  letter-spacing: 1px;
}

.search-meta {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-fade);
  padding: 16px 0;
  letter-spacing: 1px;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-result-item {
  display: flex;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  padding: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.search-result-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.search-result-photo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-light);
}

.search-result-photo.placeholder {
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 26px;
  color: var(--gold-deep);
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 2px;
  margin-bottom: 2px;
}

.search-result-years {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-fade);
  margin-bottom: 4px;
}

.search-result-bio {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-arrow {
  flex-shrink: 0;
  color: var(--gold-deep);
  font-size: 18px;
}

.search-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--ink-fade);
}

.search-empty .empty-icon {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 80px;
  color: var(--gold-soft);
  line-height: 1;
  margin-bottom: 16px;
}

/* ============================================================
   💻 桌面版适配
   ============================================================ */
@media (min-width: 768px) {

  .memorial-create {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 40px 80px;
  }

  .steps-bar {
    padding: 0 0 36px;
    gap: 12px;
  }

  .step-num { width: 44px; height: 44px; font-size: 18px; }
  .step-label { font-size: 12px; }
  .step-line { flex: 0 0 60px; }

  .create-card { padding: 50px 44px; }
  .create-title { font-size: 28px; letter-spacing: 10px; }
  .create-subtitle { font-size: 15px; letter-spacing: 5px; margin-bottom: 32px; }

  .religion-grid { grid-template-columns: repeat(4, 1fr); }
  .religion-item { padding: 18px 14px; }
  .religion-title { font-size: 14px; }

  .photo-preview { width: 180px; height: 180px; }
  .photo-preview.wide { height: 200px; }

  /* 创建完成 */
  .create-done-card { padding: 50px 50px; }
  .done-icon { width: 100px; height: 100px; font-size: 50px; }
  .done-title { font-size: 28px; }

  /* 纪念馆查看 - 桌面版 */
  .memorial-page { max-width: 100%; }

  .memorial-cover {
    padding: 80px 60px 60px;
  }

  .memorial-main-photo,
  .memorial-main-photo.placeholder {
    width: 200px;
    height: 200px;
  }

  .memorial-main-photo.placeholder { font-size: 90px; }

  .memorial-name {
    font-size: 42px;
    letter-spacing: 12px;
  }

  .memorial-years {
    font-size: 18px;
    letter-spacing: 6px;
  }

  .memorial-bio {
    font-size: 14px;
    max-width: 600px;
  }

  .memorial-tagline { font-size: 16px; letter-spacing: 6px; }
  .tagline-line { width: 60px; }

  .memorial-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 40px 0;
  }

  .memorial-section-title {
    font-size: 20px;
    letter-spacing: 6px;
  }

  .tribute-grid { grid-template-columns: repeat(6, 1fr); }
  .tribute-icon-wrap { width: 56px; height: 56px; font-size: 26px; }
  .tribute-label { font-size: 14px; }

  /* Dashboard 列表桌面 */
  .memorial-list-card { padding: 18px; gap: 18px; }
  .memorial-list-photo { width: 90px; height: 90px; }
  .memorial-list-name { font-size: 17px; }

  /* 搜索结果桌面 */
  .search-page { max-width: 800px; margin: 0 auto; }
  .search-result-photo { width: 80px; height: 80px; }
  .search-result-name { font-size: 17px; }
}

/* ============================================================
   🛠 修复包 v2 - 灵堂页桌面全屏优化
   ============================================================ */

/* 让灵堂 cover 在桌面突破 .site-main 的 1100px 限制 */
.memorial-page {
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  /* 灵堂页面让 cover 全屏震撼 */
  .site-main:has(.memorial-page),
  .site-main > .memorial-page {
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* 兜底：如果 :has 不被浏览器支持，用直接的桌面规则 */
  .memorial-page {
    max-width: 100vw;
    margin: 0;
    padding: 0;
  }

  /* 灵堂顶部 cover：超大震撼 */
  .memorial-cover {
    padding: 100px 40px 80px !important;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .memorial-main-photo,
  .memorial-main-photo.placeholder {
    width: 220px !important;
    height: 220px !important;
    border-width: 5px !important;
    box-shadow: 0 0 60px rgba(184, 146, 78, 0.6) !important;
  }

  .memorial-main-photo.placeholder {
    font-size: 110px !important;
  }

  .memorial-name {
    font-size: 56px !important;
    letter-spacing: 16px !important;
    line-height: 1.4 !important;
  }

  .memorial-years {
    font-size: 22px !important;
    letter-spacing: 8px !important;
    margin-bottom: 24px !important;
  }

  .memorial-bio {
    font-size: 16px !important;
    line-height: 2 !important;
    max-width: 700px !important;
    margin-bottom: 32px !important;
  }

  .memorial-tagline {
    font-size: 18px !important;
    letter-spacing: 8px !important;
  }

  .tagline-line { width: 80px !important; }

  /* 内容区在桌面居中、有最大宽度 */
  .memorial-section {
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 60px 40px 0 !important;
  }

  .memorial-section-title {
    font-size: 24px !important;
    letter-spacing: 8px !important;
    margin-bottom: 30px !important;
    padding-bottom: 16px !important;
  }

  .memorial-section-title::after {
    width: 60px !important;
  }

  /* 家属寄语桌面 */
  .memorial-message-card {
    padding: 36px 40px !important;
  }

  .memorial-message-text {
    font-size: 16px !important;
    line-height: 2.2 !important;
  }

  .quote-mark { font-size: 40px !important; }

  /* 悼念按钮桌面：6 列横排 */
  .tribute-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 16px !important;
  }

  .tribute-btn {
    padding: 24px 12px !important;
  }

  .tribute-icon-wrap {
    width: 64px !important;
    height: 64px !important;
    font-size: 30px !important;
    margin-bottom: 12px !important;
  }

  .tribute-label {
    font-size: 15px !important;
    letter-spacing: 3px !important;
  }

  /* 留言桌面 */
  .msg-card {
    padding: 22px 26px !important;
  }

  .msg-name { font-size: 15px !important; }
  .msg-body {
    font-size: 15px !important;
    line-height: 2 !important;
    padding-left: 50px !important;
  }

  .msg-avatar {
    width: 38px !important;
    height: 38px !important;
    font-size: 18px !important;
  }

  /* 分享 */
  .share-card {
    padding: 18px 20px !important;
  }

  .share-link {
    font-size: 14px !important;
    padding: 14px 18px !important;
  }

  /* 编号信息 */
  .memorial-code-info {
    font-size: 12px !important;
    letter-spacing: 4px !important;
    padding: 50px 20px !important;
  }
}

/* 大屏专属 (≥1400px) */
@media (min-width: 1400px) {
  .memorial-cover {
    padding: 140px 40px 100px !important;
    min-height: 80vh;
  }

  .memorial-name {
    font-size: 72px !important;
    letter-spacing: 20px !important;
  }

  .memorial-main-photo,
  .memorial-main-photo.placeholder {
    width: 260px !important;
    height: 260px !important;
  }
}

/* ============================================================
   修复：步骤指示器 - 强化样式
   ============================================================ */
.steps-bar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
}

.steps-bar .step {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.steps-bar .step-num {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ============================================================
   🛠 修复包 v3 · 灵堂页面布局重构
   - 封面图独立显示
   - 头像 + 姓名 + 生卒 在下方单独区域
   ============================================================ */

/* === 封面图区域（独立）=== */
.memorial-cover-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--ink);
  position: relative;
  overflow: hidden;
}

.memorial-cover-image::after {
  /* 底部渐变让和下方衔接更柔和 */
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* 没封面图时的装饰条 */
.memorial-cover-fallback {
  width: 100%;
  height: 80px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-deep) 100%);
  position: relative;
}

/* 编辑按钮 */
.memorial-cover-image .cover-edit-btn,
.memorial-cover-fallback .cover-edit-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
  transition: all 0.2s;
}

.memorial-cover-image .cover-edit-btn:hover,
.memorial-cover-fallback .cover-edit-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
}

/* === 主信息区（头像/姓名/生卒）=== */
.memorial-hero {
  background: var(--bg);
  padding: 0 24px 36px;
  text-align: center;
  position: relative;
  margin-top: -50px; /* 让头像浮出封面图一部分 */
  z-index: 5;
}

/* 头像 */
.memorial-hero .memorial-main-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
}

.memorial-hero .memorial-main-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--bg);
  outline: 2px solid var(--gold);
  background: var(--bg);
  box-shadow: 0 4px 20px rgba(139, 111, 62, 0.2);
}

.memorial-hero .memorial-main-photo.placeholder {
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 60px;
  color: var(--gold-deep);
  border: 5px solid var(--bg);
  outline: 2px solid var(--gold);
}

/* 姓名 */
.memorial-hero .memorial-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 8px;
  color: var(--ink);
  margin-bottom: 12px;
  padding-left: 8px;
}

/* 生卒年 */
.memorial-hero .memorial-years {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  letter-spacing: 4px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.memorial-hero .years-dot {
  margin: 0 10px;
  color: var(--gold);
}

/* 短简介 */
.memorial-hero .memorial-bio {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin: 0 auto 20px;
  max-width: 400px;
}

/* 装饰条 */
.memorial-hero .memorial-tagline-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.memorial-hero .tagline-line {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.memorial-hero .memorial-tagline {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 14px;
  color: var(--gold-deep);
  letter-spacing: 4px;
}

/* === 隐藏旧版 memorial-cover === */
/* 用 :not 排除新结构，让旧的 .memorial-cover 不冲突 */
.memorial-page .memorial-cover:not(.memorial-cover-image):not(.memorial-cover-fallback) {
  display: none !important;
}

/* ============================================================
   💻 桌面版（≥768px）
   ============================================================ */
@media (min-width: 768px) {

  .memorial-cover-image {
    height: 360px;
  }

  .memorial-cover-image::after {
    height: 100px;
  }

  .memorial-cover-fallback {
    height: 120px;
  }

  .memorial-hero {
    padding: 0 40px 50px;
    margin-top: -80px;
  }

  .memorial-hero .memorial-main-photo,
  .memorial-hero .memorial-main-photo.placeholder {
    width: 200px !important;
    height: 200px !important;
    border-width: 6px !important;
  }

  .memorial-hero .memorial-main-photo.placeholder {
    font-size: 88px;
  }

  .memorial-hero .memorial-name {
    font-size: 44px !important;
    letter-spacing: 14px !important;
    margin-bottom: 18px !important;
  }

  .memorial-hero .memorial-years {
    font-size: 19px !important;
    letter-spacing: 6px !important;
    margin-bottom: 20px !important;
  }

  .memorial-hero .memorial-bio {
    font-size: 15px;
    max-width: 600px;
    margin-bottom: 28px;
  }

  .memorial-hero .memorial-tagline {
    font-size: 17px !important;
    letter-spacing: 7px !important;
  }

  .memorial-hero .tagline-line {
    width: 60px !important;
  }

  .memorial-cover-image .cover-edit-btn,
  .memorial-cover-fallback .cover-edit-btn {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

/* 大屏 */
@media (min-width: 1400px) {
  .memorial-cover-image {
    height: 440px;
  }

  .memorial-hero .memorial-main-photo,
  .memorial-hero .memorial-main-photo.placeholder {
    width: 220px !important;
    height: 220px !important;
  }

  .memorial-hero .memorial-name {
    font-size: 52px !important;
    letter-spacing: 16px !important;
  }
}

/* ============================================================
   🛠 修复包 v4 · 头像改为护照肖像比例（保持原图比例）
   ============================================================ */

/* 主信息区头像 - 改为直立长方形（护照尺寸约 3:4） */
.memorial-hero .memorial-main-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.memorial-hero .memorial-main-photo {
  /* 不再是圆形，改为护照尺寸长方形 */
  width: 140px !important;
  height: 180px !important;        /* 3:4 比例 */
  border-radius: 4px !important;   /* 微圆角而不是圆 */
  object-fit: contain !important;  /* 保持原图比例，不 crop */
  background: var(--card);          /* 上下留白处用米白底 */
  border: 4px solid var(--card) !important;
  outline: 2px solid var(--gold) !important;
  outline-offset: -2px;
  box-shadow: 0 6px 24px rgba(139, 111, 62, 0.18) !important;
  padding: 4px;
}

.memorial-hero .memorial-main-photo.placeholder {
  width: 140px !important;
  height: 180px !important;
  border-radius: 4px !important;
  background: var(--gold-soft) !important;
  border: 4px solid var(--card) !important;
  outline: 2px solid var(--gold) !important;
  outline-offset: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 70px !important;
  color: var(--gold-deep) !important;
}

/* 桌面版头像放大 */
@media (min-width: 768px) {
  .memorial-hero .memorial-main-photo,
  .memorial-hero .memorial-main-photo.placeholder {
    width: 220px !important;
    height: 280px !important;        /* 护照比例 */
    border-radius: 4px !important;
    border-width: 5px !important;
    padding: 5px;
  }

  .memorial-hero .memorial-main-photo.placeholder {
    font-size: 110px !important;
  }
}

@media (min-width: 1400px) {
  .memorial-hero .memorial-main-photo,
  .memorial-hero .memorial-main-photo.placeholder {
    width: 260px !important;
    height: 340px !important;
  }
}

/* Dashboard 纪念馆列表 - 也用护照比例 */
.memorial-list-photo {
  width: 60px !important;
  height: 78px !important;
  border-radius: 3px !important;
}

.memorial-list-photo img {
  object-fit: contain !important;
  background: var(--card);
}

@media (min-width: 768px) {
  .memorial-list-photo {
    width: 80px !important;
    height: 104px !important;
  }
}

/* 搜索结果 - 也用护照比例 */
.search-result-photo {
  width: 56px !important;
  height: 74px !important;
  border-radius: 3px !important;
  object-fit: contain !important;
  background: var(--card);
  border: 1px solid var(--gold-light) !important;
}

@media (min-width: 768px) {
  .search-result-photo {
    width: 72px !important;
    height: 96px !important;
  }
}

/* 创建完成页头像 - 护照比例 */
.done-photo,
.done-photo-placeholder {
  width: 110px !important;
  height: 145px !important;
  border-radius: 4px !important;
  border: 3px solid var(--gold) !important;
  margin: 0 auto 12px !important;
}

.done-photo {
  object-fit: contain !important;
  background: var(--card);
  padding: 3px;
}

.done-photo-placeholder {
  background: var(--gold-soft) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 48px !important;
  color: var(--gold-deep) !important;
}

/* 创建步骤 2 预览 - 矩形 */
.photo-preview:not(.wide) {
  width: 140px !important;
  height: 180px !important;
  border-radius: 4px !important;
  border-width: 2px !important;
}

.photo-preview:not(.wide) img {
  object-fit: contain !important;
  background: var(--card);
}

/* 创建步骤 3 草稿预览头像 */
.draft-preview img {
  width: 48px !important;
  height: 62px !important;
  border-radius: 3px !important;
  object-fit: contain !important;
  background: var(--card);
}

.draft-avatar {
  width: 48px !important;
  height: 62px !important;
  border-radius: 3px !important;
}

/* ============================================================
   🛠 修复包 v5 · 居中问题 + 移动版图片
   ============================================================ */

/* 全局：所有标题强制居中 */
.memorial-hero {
  text-align: center !important;
  width: 100% !important;
  box-sizing: border-box;
  padding: 0 16px 30px !important;
}

@media (min-width: 768px) {
  .memorial-hero {
    padding: 0 40px 50px !important;
  }
}

/* 名字居中 + 不要让 letter-spacing 溢出 */
.memorial-hero .memorial-name {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 8px !important; /* 补偿 letter-spacing 视觉位移 */
  padding-right: 0 !important;
  /* 防止超长字符串溢出 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 移动版名字适度缩小 letter-spacing 避免溢出 */
@media (max-width: 480px) {
  .memorial-hero .memorial-name {
    font-size: 26px !important;
    letter-spacing: 6px !important;
    padding-left: 6px !important;
  }
}

/* 头像 wrap 强制居中 */
.memorial-hero .memorial-main-photo-wrap {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 auto 20px !important;
}

/* 头像本身（保险起见） */
.memorial-hero .memorial-main-photo {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}

/* 生卒、简介、标语全部居中 */
.memorial-hero .memorial-years,
.memorial-hero .memorial-bio,
.memorial-hero .memorial-tagline-wrap {
  text-align: center !important;
  width: 100% !important;
}

.memorial-hero .memorial-tagline-wrap {
  display: flex !important;
  justify-content: center !important;
}

/* ============================================================
   📱 手机版头像位置修正（避免被裁切看不到）
   ============================================================ */

/* 手机版：让头像不要 negative margin 太多，避免上半部分被封面切掉 */
@media (max-width: 767px) {
  .memorial-hero {
    margin-top: -30px !important; /* 之前 -50px，减少 */
  }

  /* 封面图手机版降低高度 */
  .memorial-cover-image {
    height: 180px !important;
  }

  .memorial-cover-image::after {
    height: 50px !important;
  }
}

/* ============================================================
   📋 dashboard / 列表的名字也居中（如果之前对齐异常）
   ============================================================ */
.memorial-list-name,
.memorial-list-years,
.memorial-list-meta {
  text-align: left;
}

/* ============================================================
   修复：占位头像 - 不要超出方框
   ============================================================ */
.memorial-hero .memorial-main-photo.placeholder {
  /* 文字过大会撑爆容器，加 overflow 控制 */
  overflow: hidden;
  line-height: 1 !important;
}

/* ============================================================
   🛠 全页背景模式（v7）
   背景图固定覆盖整页，内容卡片半透明叠加
   ============================================================ */

/* 隐藏旧的顶部 banner 背景（在全页背景模式下） */
.memorial-page-fullbg .memorial-cover-image,
.memorial-page-fullbg .memorial-cover-fallback {
  display: none !important;
}

/* 全页背景层 - fixed 不随滚动 */
.memorial-fullpage-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 0;
  pointer-events: none;
}

/* 半透明白色覆盖层，让内容更清晰 */
.memorial-fullpage-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(245, 239, 227, 0.55); /* 米白色半透明 */
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

/* 内容层在背景之上 */
.memorial-page-fullbg {
  position: relative;
  z-index: 10;
}

/* === 有背景时：清掉 hero 的 negative margin === */
.memorial-page-fullbg.has-bg .memorial-hero {
  margin-top: 0 !important;
  padding-top: 50px !important;
}

@media (min-width: 768px) {
  .memorial-page-fullbg.has-bg .memorial-hero {
    padding-top: 80px !important;
  }
}

/* === 有背景时：调整卡片为半透明米白 === */
.memorial-page-fullbg.has-bg .memorial-message-card,
.memorial-page-fullbg.has-bg .tribute-btn,
.memorial-page-fullbg.has-bg .msg-card,
.memorial-page-fullbg.has-bg .share-card {
  background: rgba(252, 250, 243, 0.92) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 留言/空状态等半透明 */
.memorial-page-fullbg.has-bg .empty-messages {
  background: rgba(252, 250, 243, 0.7);
  border-radius: 4px;
}

/* hero 区强化文字可读性（不加底） */
.memorial-page-fullbg.has-bg .memorial-name {
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.8);
}

.memorial-page-fullbg.has-bg .memorial-years,
.memorial-page-fullbg.has-bg .memorial-bio {
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.6);
}

/* 头像加强阴影让它从背景跳出 */
.memorial-page-fullbg.has-bg .memorial-main-photo,
.memorial-page-fullbg.has-bg .memorial-main-photo.placeholder {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
}

/* 编辑按钮位置 - 全页背景模式下移到 hero 区右上 */
.memorial-page-fullbg.has-bg .memorial-hero .cover-edit-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
  transition: all 0.2s;
}

.memorial-page-fullbg.has-bg .memorial-hero .cover-edit-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
  .memorial-page-fullbg.has-bg .memorial-hero .cover-edit-btn {
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

/* 移动设备性能：fixed 背景在 iOS 上有问题，改用 scroll */
@supports (-webkit-touch-callout: none) {
  .memorial-fullpage-bg {
    background-attachment: scroll;
    position: absolute;
    min-height: 100%;
  }
}

/* 编号信息文字加强 */
.memorial-page-fullbg.has-bg .memorial-code-info {
  background: rgba(252, 250, 243, 0.5);
  margin-top: 20px;
  padding: 16px 20px !important;
  border-radius: 4px;
}

/* 留言为空状态文字也要清晰 */
.memorial-page-fullbg.has-bg .empty-quote {
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.6);
}

/* tribute hint 文字加底色让可读 */
.memorial-page-fullbg.has-bg .tribute-hint {
  background: rgba(252, 250, 243, 0.6);
  border-radius: 4px;
  padding: 10px 14px;
  margin-top: 8px;
}
/* ============================================================
   永思纪念馆 - 第三包样式
   悼念弹窗、留言表单、管理页、toast 提示
   ============================================================ */

/* ============================================================
   📍 馆主工具栏
   ============================================================ */
.owner-toolbar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.owner-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(252, 250, 243, 0.85);
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  padding: 8px 16px;
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.owner-btn:hover {
  background: var(--gold);
  color: var(--card);
}

.pending-badge {
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 500;
  margin-left: 4px;
}

/* ============================================================
   📍 悼念合计
   ============================================================ */
.tribute-total {
  margin-top: 20px;
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 2px;
  background: rgba(252, 250, 243, 0.6);
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-block;
}

.tribute-total strong {
  color: var(--gold-deep);
  font-size: 15px;
  margin: 0 4px;
}

.total-icon {
  color: var(--gold);
  margin-right: 4px;
}

/* ============================================================
   📍 悼念按钮计数
   ============================================================ */
.tribute-btn {
  position: relative;
}

.tribute-count {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--gold);
  color: var(--card);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

/* ============================================================
   📍 悼念弹窗
   ============================================================ */
.tribute-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tribute-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 36, 25, 0.6);
  backdrop-filter: blur(4px);
}

.tribute-modal-box {
  position: relative;
  background: var(--card);
  border: 1px solid var(--gold);
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.tribute-modal-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

.tribute-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--ink-fade);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tribute-modal-close:hover {
  color: var(--ink);
}

.tribute-modal-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  letter-spacing: 5px;
  text-align: center;
  color: var(--ink);
  margin-bottom: 8px;
  padding-left: 5px;
}

.tribute-modal-balance {
  text-align: center;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  padding: 8px;
  background: var(--bg-soft);
  border-radius: 4px;
}

.tribute-modal-balance strong {
  color: var(--gold-deep);
  font-size: 16px;
  margin: 0 4px;
}

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

.tribute-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  font-family: 'Noto Serif SC', serif;
  transition: all 0.2s;
}

.tribute-option:hover:not(.disabled) {
  border-color: var(--gold);
  background: rgba(184, 146, 78, 0.05);
  transform: translateX(-2px);
}

.tribute-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.opt-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 24px;
  color: var(--gold-deep);
}

.opt-info {
  flex: 1;
  min-width: 0;
}

.opt-name {
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 1px;
  font-weight: 500;
}

.opt-desc {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-fade);
  margin-top: 2px;
  line-height: 1.5;
}

.opt-price {
  flex-shrink: 0;
  text-align: right;
}

.free-tag {
  background: var(--success);
  color: #fff;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 1px;
}

.price-tag {
  background: var(--gold);
  color: var(--card);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.price-tag.insufficient {
  background: var(--ink-fade);
  text-decoration: line-through;
}

.loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-fade);
  font-family: 'Noto Serif SC', serif;
}

.error-msg {
  text-align: center;
  padding: 30px 20px;
  color: var(--danger);
  font-family: 'Noto Serif SC', serif;
}

/* ============================================================
   📍 留言表单
   ============================================================ */
.msg-form {
  margin-bottom: 24px;
}

.msg-form .form-textarea {
  margin-bottom: 12px;
  min-height: 90px;
  background: rgba(252, 250, 243, 0.92);
}

.msg-form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.msg-relation {
  flex: 1;
  min-width: 200px;
  background: rgba(252, 250, 243, 0.92);
}

.msg-submit {
  flex-shrink: 0;
  min-width: 120px;
}

.msg-hint {
  margin-top: 8px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  padding: 6px 0;
}

.msg-hint.success {
  color: var(--success);
}

.msg-hint.error {
  color: var(--danger);
}

/* 留言项的馆主操作 */
.msg-owner-actions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: flex;
  gap: 8px;
}

.msg-mini-btn {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  padding: 4px 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}

.msg-mini-btn:hover {
  border-color: var(--ink-soft);
  background: var(--bg-soft);
}

.msg-mini-btn.approve {
  color: var(--success);
  border-color: var(--success);
}

.msg-mini-btn.approve:hover {
  background: var(--success);
  color: #fff;
}

.msg-mini-btn.reject,
.msg-mini-btn.delete {
  color: var(--danger);
  border-color: var(--danger);
}

.msg-mini-btn.reject:hover,
.msg-mini-btn.delete:hover {
  background: var(--danger);
  color: #fff;
}

/* ============================================================
   📍 留言管理页
   ============================================================ */
.msg-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.msg-tabs::-webkit-scrollbar { display: none; }

.msg-tab {
  flex-shrink: 0;
  padding: 10px 16px;
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.msg-tab.active {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
  font-weight: 500;
}

.tab-badge {
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  font-family: 'Noto Sans SC', sans-serif;
}

.tab-num {
  font-size: 11px;
  color: var(--ink-fade);
  font-family: 'Noto Sans SC', sans-serif;
}

.msg-manage-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg-manage-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left-width: 3px;
  padding: 14px 16px;
}

.msg-manage-card[data-status="pending"] {
  border-left-color: var(--gold);
  background: rgba(184, 146, 78, 0.04);
}

.msg-manage-card[data-status="approved"] {
  border-left-color: var(--success);
}

.msg-manage-card[data-status="rejected"],
.msg-manage-card[data-status="deleted"] {
  border-left-color: var(--danger);
  opacity: 0.65;
}

.msg-status-badge {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.msg-status-pending {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.msg-status-approved {
  background: rgba(107, 142, 90, 0.15);
  color: var(--success);
}

.msg-status-rejected,
.msg-status-deleted {
  background: rgba(180, 90, 75, 0.12);
  color: var(--danger);
}

.msg-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  flex-wrap: wrap;
  gap: 8px;
}

.msg-manage-actions {
  display: flex;
  gap: 6px;
}

/* ============================================================
   📍 Toast 提示
   ============================================================ */
.toast-msg {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  background: var(--ink);
  color: var(--card);
  padding: 12px 24px;
  border-radius: 30px;
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  letter-spacing: 1px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  max-width: 80%;
  text-align: center;
}

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

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

/* ============================================================
   📍 桌面版调整
   ============================================================ */
@media (min-width: 768px) {
  .tribute-modal-box {
    max-width: 540px;
    padding: 36px 32px;
  }

  .tribute-modal-title {
    font-size: 24px;
    letter-spacing: 8px;
  }

  .opt-icon { width: 60px; height: 60px; font-size: 30px; }
  .opt-name { font-size: 16px; }

  .tribute-count {
    font-size: 11px;
    padding: 3px 8px;
  }

  .owner-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .tribute-total {
    font-size: 14px;
    padding: 10px 20px;
  }
}

/* ============================================================
   🔥 燃烧时长系统样式
   ============================================================ */

/* "正在燃烧"标识在按钮上 */
.tribute-btn.is-burning {
  border-color: var(--gold) !important;
  background: linear-gradient(180deg, rgba(255, 248, 230, 0.95), rgba(252, 250, 243, 0.95)) !important;
  box-shadow: 0 0 16px rgba(184, 146, 78, 0.3) !important;
}

.tribute-btn.is-burning .tribute-icon-wrap {
  background: linear-gradient(135deg, #FFE5B0, #B8924E);
  color: #fff;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 146, 78, 0); }
  50% { box-shadow: 0 0 0 6px rgba(184, 146, 78, 0.18); }
}

.tribute-burning-count {
  position: absolute;
  top: 6px;
  right: 6px;
  background: linear-gradient(135deg, #E8A030, #C97818);
  color: #fff;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(200, 120, 24, 0.3);
}

/* ============================================================
   🔥 正在祭拜中 section
   ============================================================ */
.burning-section {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(255, 248, 230, 0.85), rgba(252, 250, 243, 0.85));
  border: 1px solid rgba(184, 146, 78, 0.3);
  border-radius: 4px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}

.burning-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.burning-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(184, 146, 78, 0.3);
}

.burning-flame {
  font-size: 18px;
  animation: flame-flicker 1.5s infinite ease-in-out;
  filter: drop-shadow(0 0 4px rgba(255, 150, 30, 0.5));
}

@keyframes flame-flicker {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.1) rotate(2deg); }
}

.burning-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--gold-deep);
  letter-spacing: 3px;
  font-weight: 500;
  flex: 1;
}

.burning-count-total {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--gold-deep);
  background: rgba(184, 146, 78, 0.12);
  padding: 2px 10px;
  border-radius: 12px;
}

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

.burning-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(252, 250, 243, 0.6);
  border-left: 2px solid var(--gold);
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.burning-item.burning-new {
  animation: slide-in 0.6s ease-out;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
    background: rgba(255, 220, 120, 0.4);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    background: rgba(252, 250, 243, 0.6);
  }
}

.burning-item-icon {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 16px;
  color: var(--gold-deep);
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.burning-item-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
}

.burning-item-icon-fallback {
  font-size: 16px;
  color: var(--gold-deep);
}

.burning-item-user {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 1px;
}

.burning-item-action {
  color: var(--ink-fade);
  font-size: 12px;
}

.burning-item-name {
  color: var(--gold-deep);
  font-weight: 500;
  letter-spacing: 1px;
}

.burning-item-timer {
  margin-left: auto;
  font-family: 'Noto Sans SC', monospace;
  font-size: 12px;
  color: var(--gold-deep);
  background: rgba(184, 146, 78, 0.12);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  letter-spacing: 0;
  min-width: 65px;
  text-align: center;
}

.burning-item-timer.expiring {
  color: var(--danger);
  background: rgba(180, 90, 75, 0.12);
  animation: blink 1s infinite;
}

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

/* ============================================================
   📜 累计合计 section
   ============================================================ */
.tribute-total-card {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(252, 250, 243, 0.75);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  text-align: center;
}

.total-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.total-icon {
  font-size: 16px;
}

.total-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 2px;
}

.total-title strong {
  color: var(--gold-deep);
  font-size: 16px;
  margin: 0 2px;
}

.total-breakdown {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--ink-fade);
  margin-top: 6px;
  letter-spacing: 1px;
}

/* ============================================================
   悼念物品弹窗 - 燃烧相关样式
   ============================================================ */
.cooldown-tag {
  background: linear-gradient(135deg, #E8A030, #C97818);
  color: #fff;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.opt-duration {
  color: var(--gold-deep);
}

/* ============================================================
   💻 桌面版调整
   ============================================================ */
@media (min-width: 768px) {
  .burning-section {
    padding: 20px 24px;
  }

  .burning-title {
    font-size: 16px;
    letter-spacing: 5px;
  }

  .burning-item {
    padding: 10px 14px;
    font-size: 14px;
  }

  .burning-item-icon {
    width: 32px;
    height: 32px;
  }

  .burning-item-img {
    width: 32px;
    height: 32px;
  }

  .burning-item-timer {
    font-size: 13px;
    padding: 3px 12px;
    min-width: 80px;
  }

  .tribute-total-card {
    padding: 18px 24px;
  }

  .total-title {
    font-size: 14px;
  }
}

/* ============================================================
   🛡 Admin 后台样式
   ============================================================ */

.admin-body {
  background: var(--bg);
  color: var(--ink);
  padding-bottom: 80px;
}

/* === 顶部 navbar === */
.admin-navbar {
  background: linear-gradient(180deg, #1F1A14 0%, #2D2419 100%);
  color: #F5EFE3;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.admin-navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
  min-height: 56px;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #F5EFE3;
  text-decoration: none;
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  letter-spacing: 2px;
  flex-shrink: 0;
}

.admin-logo-mark {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
}

.admin-logo-text {
  letter-spacing: 4px;
}

.admin-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #F5EFE3;
  font-size: 24px;
  margin-left: auto;
  cursor: pointer;
}

.admin-menu {
  display: flex;
  gap: 4px;
  flex: 1;
  margin-left: 24px;
  flex-wrap: wrap;
}

.admin-link {
  color: rgba(245, 239, 227, 0.7);
  text-decoration: none;
  padding: 8px 14px;
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  letter-spacing: 1px;
  border-radius: 3px;
  transition: all 0.2s;
}

.admin-link:hover {
  background: rgba(245, 239, 227, 0.1);
  color: #F5EFE3;
}

.admin-link.active {
  background: rgba(184, 146, 78, 0.25);
  color: #E8C078;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: rgba(245, 239, 227, 0.7);
  flex-shrink: 0;
}

.admin-user-name {
  letter-spacing: 1px;
}

.admin-quit {
  color: #E8C078;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(232, 192, 120, 0.3);
  border-radius: 3px;
  font-size: 12px;
  transition: all 0.2s;
}

.admin-quit:hover {
  background: rgba(232, 192, 120, 0.15);
}

/* Mobile */
@media (max-width: 768px) {
  .admin-mobile-toggle { display: block; }
  .admin-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    background: #2D2419;
    padding: 10px 0;
  }
  .admin-menu.open { display: flex; }
  .admin-user-info {
    width: 100%;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid rgba(245, 239, 227, 0.1);
  }
}

/* === Flash 消息 === */
.admin-flash {
  max-width: 1400px;
  margin: 16px auto 0;
  padding: 0 20px;
}

.flash-msg {
  padding: 12px 18px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  letter-spacing: 1px;
}

.flash-success {
  background: rgba(107, 142, 90, 0.15);
  color: #4A6938;
  border-left: 3px solid #6B8E5A;
}

.flash-error {
  background: rgba(180, 90, 75, 0.15);
  color: #823D2F;
  border-left: 3px solid #B45A4B;
}

/* === 内容区 === */
.admin-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px;
}

.admin-container {
  width: 100%;
}

.admin-page-header {
  margin-bottom: 24px;
}

.admin-page-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 26px;
  letter-spacing: 6px;
  color: var(--ink);
  margin-bottom: 4px;
  padding-left: 6px;
}

.admin-page-subtitle {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
  color: var(--ink-fade);
  letter-spacing: 1px;
}

.admin-back-link {
  display: inline-block;
  color: var(--ink-fade);
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 12px;
}

.admin-back-link:hover {
  color: var(--gold-deep);
}

/* === 统计卡片 === */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.stat-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.stat-info { flex: 1; }

.stat-num {
  font-family: 'Noto Serif SC', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--gold-deep);
  line-height: 1;
}

.stat-label {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.stat-delta {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--success);
  margin-top: 4px;
  background: rgba(107, 142, 90, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
}

.stat-delta-warn {
  color: var(--gold-deep);
  background: rgba(184, 146, 78, 0.1);
}

/* === 待办区 === */
.admin-todos {
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 32px;
}

.admin-todo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.admin-todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--ink-soft);
}

/* === Section === */
.admin-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
}

.admin-section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  padding-left: 4px;
}

.admin-section-more {
  margin-top: 12px;
  text-align: right;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
}

.admin-section-more a {
  color: var(--gold-deep);
  text-decoration: none;
}

.admin-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-fade);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
}

/* === Grid 布局 === */
.admin-grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (min-width: 900px) {
  .admin-grid-2col { grid-template-columns: 1fr 1fr; }
}

.admin-grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

/* === Info Card === */
.admin-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 18px;
}

.info-label {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--ink-fade);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.info-value {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 1px;
}

.info-value-num {
  font-size: 24px;
  font-weight: 500;
  color: var(--gold-deep);
}

.info-value-meta {
  font-size: 12px;
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--ink-soft);
  line-height: 1.6;
}

.info-sub {
  font-size: 11px;
  color: var(--ink-fade);
  margin-top: 2px;
}

.info-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--gold-deep);
  text-decoration: none;
}

/* === Table === */
.admin-table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
}

.admin-table thead {
  background: var(--bg-soft);
}

.admin-table th {
  text-align: left;
  padding: 10px 12px;
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover {
  background: var(--bg-soft);
}

.admin-table tr.row-disabled {
  opacity: 0.5;
}

.td-meta {
  color: var(--ink-fade);
  font-size: 12px;
}

.td-sub {
  font-size: 11px;
  color: var(--ink-fade);
  margin-top: 2px;
}

.td-num {
  text-align: right;
  font-family: 'Noto Sans SC', monospace;
}

.td-num.positive { color: var(--success); }
.td-num.negative { color: var(--danger); }

.td-link {
  color: var(--gold-deep);
  text-decoration: none;
  font-size: 12px;
  margin-right: 8px;
}

.td-link:hover {
  text-decoration: underline;
}

.td-link-btn {
  background: transparent;
  border: none;
  color: var(--gold-deep);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.td-detail {
  max-width: 320px;
  font-size: 11px;
  line-height: 1.5;
}

.admin-info-table {
  width: 100%;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
}

.admin-info-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-soft);
}

.admin-info-table td:first-child {
  color: var(--ink-fade);
  width: 30%;
  font-size: 12px;
}

/* === Pills / Badges === */
.role-badge,
.privacy-pill,
.action-pill,
.cat-pill,
.tag-mini,
.tx-type {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.role-user { background: rgba(120, 120, 120, 0.15); color: var(--ink-soft); }
.role-admin { background: rgba(184, 146, 78, 0.18); color: var(--gold-deep); }
.role-super_admin { background: rgba(180, 90, 75, 0.18); color: var(--danger); }

.privacy-public { background: rgba(107, 142, 90, 0.15); color: var(--success); }
.privacy-unlisted { background: rgba(184, 146, 78, 0.15); color: var(--gold-deep); }
.privacy-private { background: rgba(180, 90, 75, 0.15); color: var(--danger); }

.cat-flower { background: rgba(232, 168, 192, 0.2); color: #B0508A; }
.cat-incense { background: rgba(190, 160, 100, 0.2); color: #88693E; }
.cat-candle { background: rgba(240, 200, 90, 0.2); color: #B08000; }
.cat-offering { background: rgba(160, 130, 100, 0.2); color: #6A4B30; }
.cat-lotus_light { background: rgba(255, 180, 130, 0.2); color: #C26A2A; }
.cat-wreath { background: rgba(140, 175, 140, 0.2); color: #4A7048; }

.tag-mini {
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 10px;
  padding: 1px 7px;
}

.tag-free { background: rgba(107, 142, 90, 0.18); color: var(--success); }
.tag-paid { background: rgba(184, 146, 78, 0.18); color: var(--gold-deep); }

.tx-type-topup { background: rgba(107, 142, 90, 0.15); color: var(--success); }
.tx-type-spend { background: rgba(180, 90, 75, 0.12); color: var(--danger); }
.tx-type-manual_adjustment { background: rgba(184, 146, 78, 0.15); color: var(--gold-deep); }
.tx-type-refund { background: rgba(100, 130, 180, 0.15); color: #3E5C8C; }

.action-pill {
  background: rgba(184, 146, 78, 0.12);
  color: var(--gold-deep);
}

/* === 状态 === */
.status-ok { color: var(--success); font-size: 11px; }
.status-banned { color: var(--danger); font-size: 11px; }
.status-unverified { color: var(--gold-deep); font-size: 11px; }
.status-free { color: var(--success); font-weight: 500; }
.status-paid { color: var(--gold-deep); font-weight: 500; }

.admin-status-text {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

/* === 筛选栏 === */
.admin-filter-bar,
.admin-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-toolbar {
  justify-content: space-between;
}

.admin-filter-input,
.admin-filter-select {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px 12px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
  color: var(--ink);
  border-radius: 4px;
  min-width: 140px;
}

.admin-filter-input { flex: 1; max-width: 320px; }

/* === Form === */
.admin-form { width: 100%; }
.admin-form-wide { max-width: 800px; }

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-form-grid .full-width {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid .full-width { grid-column: span 1; }
}

.admin-form-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 9px 12px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
  color: var(--ink);
  border-radius: 4px;
  box-sizing: border-box;
}

.admin-form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 146, 78, 0.1);
}

textarea.admin-form-input { font-family: inherit; }

.admin-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  align-items: center;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 0;
}

.check-line input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 4px;
}

/* === Button === */
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  letter-spacing: 1px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.admin-btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
}

.admin-btn-primary:hover {
  filter: brightness(1.1);
}

.admin-btn-secondary {
  background: var(--card);
  border-color: var(--gold);
  color: var(--gold-deep);
}

.admin-btn-secondary:hover {
  background: var(--gold-soft);
}

.admin-btn-success {
  background: var(--success);
  color: #fff;
}

.admin-btn-danger {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}

.admin-btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

.admin-btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-soft);
}

/* === Action Row === */
.admin-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* === Danger Zone === */
.admin-danger-zone {
  background: rgba(180, 90, 75, 0.04);
  border-color: rgba(180, 90, 75, 0.3);
}

.admin-danger-zone .admin-section-title {
  color: var(--danger);
}

/* === Pagination === */
.admin-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 24px 0;
}

.page-link {
  padding: 6px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 3px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
}

.page-link.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold-deep);
}

.page-gap {
  padding: 6px 4px;
  color: var(--ink-fade);
}

/* === Growth bars === */
.growth-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.growth-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.growth-day {
  font-family: 'Noto Sans SC', monospace;
  font-size: 11px;
  color: var(--ink-fade);
  width: 50px;
}

.growth-bar-wrap {
  flex: 1;
  background: var(--bg-soft);
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
}

.growth-bar {
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s;
}

.growth-count {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--gold-deep);
  width: 30px;
  text-align: right;
  font-weight: 500;
}

/* === 背景管理网格 === */
.bg-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.bg-admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s;
}

.bg-admin-card.disabled { opacity: 0.5; }

.bg-admin-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.bg-admin-thumb {
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
  position: relative;
}

.bg-admin-disabled-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 36, 25, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 3px;
}

.bg-admin-info {
  padding: 12px 14px;
}

.bg-admin-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.bg-admin-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.bg-admin-actions {
  padding: 8px 14px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  gap: 10px;
}

/* === 当前图片 === */
.current-image {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.current-image img {
  max-width: 80px;
  max-height: 80px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.current-image-wide img {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
}

/* ============================================================
   📋 用户中心 v2 - Tab 多页布局
   ============================================================ */

.dashboard-wrap {
  background: var(--bg);
  min-height: calc(100vh - 60px);
}

/* === 顶部用户卡 === */
.dash-userbar {
  background: linear-gradient(135deg, var(--card) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--border);
  padding: 18px 16px;
}

.dash-userbar-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.dash-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(184, 146, 78, 0.25);
}

.dash-user-info {
  flex: 1;
  min-width: 0;
}

.dash-user-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 1px;
  margin-bottom: 4px;
  font-weight: 500;
}

.dash-user-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.verified-mark, .unverified-mark, .role-mark, .role-mark-super {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.verified-mark {
  background: rgba(107, 142, 90, 0.12);
  color: var(--success);
}

.unverified-mark {
  background: rgba(184, 146, 78, 0.12);
  color: var(--gold-deep);
}

.role-mark {
  background: rgba(100, 130, 180, 0.12);
  color: #3E5C8C;
}

.role-mark-super {
  background: linear-gradient(135deg, rgba(232, 192, 120, 0.2), rgba(184, 146, 78, 0.2));
  color: var(--gold-deep);
  font-weight: 500;
}

.dash-logout-form {
  margin: 0;
  flex-shrink: 0;
}

.dash-logout-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  padding: 6px 14px;
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.dash-logout-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* === Tab 导航 === */
.dash-tabs {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  max-width: 800px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 4px;
}

.dash-tabs::-webkit-scrollbar { display: none; }

.dash-tab {
  flex: 1;
  min-width: 70px;
  text-align: center;
  padding: 14px 8px 12px;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}

.dash-tab:hover {
  color: var(--gold-deep);
  background: rgba(184, 146, 78, 0.04);
}

.dash-tab.active {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
  background: rgba(184, 146, 78, 0.05);
}

.tab-icon {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
  line-height: 1;
}

.tab-text {
  display: block;
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  letter-spacing: 1px;
}

.dash-tab-admin {
  color: #C97818 !important;
}

.dash-tab-admin .tab-icon { filter: hue-rotate(-20deg); }

/* === Flash 消息 === */
.dash-flash {
  max-width: 800px;
  margin: 14px auto 0;
  padding: 11px 16px;
  border-radius: 4px;
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  letter-spacing: 1px;
  margin-left: 16px;
  margin-right: 16px;
}

.dash-flash.success {
  background: rgba(107, 142, 90, 0.12);
  color: #4A6938;
  border-left: 3px solid var(--success);
}

.dash-flash.error {
  background: rgba(180, 90, 75, 0.12);
  color: #823D2F;
  border-left: 3px solid var(--danger);
}

.dash-flash.info {
  background: rgba(184, 146, 78, 0.12);
  color: var(--gold-deep);
  border-left: 3px solid var(--gold);
}

/* === 内容区 === */
.dash-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

/* === 统计卡 === */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.dash-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 14px;
  text-align: center;
}

.dash-stat-credit {
  background: linear-gradient(135deg, rgba(232, 192, 120, 0.15), rgba(184, 146, 78, 0.1));
  border-color: var(--gold);
}

.dash-stat-num {
  font-family: 'Noto Serif SC', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--gold-deep);
  line-height: 1;
}

.dash-stat-label {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 6px;
  letter-spacing: 1px;
}

@media (min-width: 600px) {
  .dash-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* === 通用 Section === */
.dash-section {
  margin-bottom: 28px;
}

.dash-section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--ink);
  margin-bottom: 14px;
  padding-left: 4px;
}

.dash-section-desc {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-fade);
  margin-top: -10px;
  margin-bottom: 14px;
  padding-left: 4px;
}

.dash-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-left: 4px;
}

.dash-section-header .dash-section-title {
  margin-bottom: 0;
  padding-left: 0;
}

.dash-section-more {
  color: var(--gold-deep);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
  text-decoration: none;
}

/* === 提醒卡 === */
.dash-notice {
  background: linear-gradient(135deg, rgba(232, 192, 120, 0.15), rgba(184, 146, 78, 0.08));
  border-left: 4px solid var(--gold);
  padding: 14px 16px;
  border-radius: 4px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.notice-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif SC', serif;
  font-weight: 600;
}

.notice-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.notice-desc {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.notice-action {
  display: inline-block;
  margin-top: 6px;
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--gold-deep);
  text-decoration: none;
  letter-spacing: 1px;
}

/* === 快捷操作 === */
.dash-quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 600px) {
  .dash-quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quick-action {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  transition: all 0.2s;
}

.quick-action:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 146, 78, 0.15);
}

.qa-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.qa-label {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--ink);
  margin-bottom: 4px;
}

.qa-desc {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-fade);
}

/* === 纪念馆列表 === */
.dash-memorial-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-mem-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.dash-mem-photo {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-soft);
  text-decoration: none;
}

.dash-mem-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-mem-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-light));
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 24px;
  color: var(--gold-deep);
}

.dash-mem-info {
  flex: 1;
  min-width: 150px;
}

.dash-mem-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 2px;
  text-decoration: none;
  margin-bottom: 3px;
}

.dash-mem-name:hover {
  color: var(--gold-deep);
}

.dash-mem-years {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-fade);
  margin-bottom: 6px;
}

.dash-mem-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.privacy-badge {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  border: 1px solid currentColor;
}

.dash-mem-code {
  font-family: 'Noto Sans SC', monospace;
  font-size: 11px;
  color: var(--ink-fade);
}

.dash-mem-stats {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-fade);
}

.dash-mem-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  padding-top: 8px;
  border-top: 1px dashed var(--border-soft);
  margin-top: 4px;
}

@media (min-width: 600px) {
  .dash-mem-actions {
    width: auto;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    flex-direction: column;
    gap: 6px;
  }
}

.dash-mem-link {
  color: var(--gold-deep);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
  text-decoration: none;
  padding: 4px 0;
}

.dash-mem-link:hover {
  text-decoration: underline;
}

.mem-pending-badge {
  background: var(--danger);
  color: #fff;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 10px;
  letter-spacing: 0;
  font-weight: 500;
}

/* === 空状态 === */
.dash-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--card);
  border-radius: 6px;
  border: 1px dashed var(--border);
}

.dash-empty .empty-icon {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 60px;
  color: var(--gold);
  margin-bottom: 16px;
}

.dash-empty .empty-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 3px;
  margin-bottom: 6px;
}

.dash-empty .empty-desc {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
  color: var(--ink-fade);
  margin-bottom: 20px;
}

.dash-empty-small {
  padding: 30px 20px;
  text-align: center;
  color: var(--ink-fade);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
}

/* ============================================================
   💰 积分钱包页
   ============================================================ */

.credit-balance-card {
  background: linear-gradient(135deg, #1F1A14 0%, #2D2419 100%);
  color: #F5EFE3;
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.credit-balance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

.balance-label {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: rgba(245, 239, 227, 0.7);
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.balance-num {
  font-family: 'Noto Serif SC', serif;
  font-size: 56px;
  font-weight: 500;
  background: linear-gradient(135deg, #F5C66A, #B8924E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: 2px;
}

.balance-meta {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: rgba(245, 239, 227, 0.5);
  margin-top: 10px;
  letter-spacing: 1px;
}

/* 套餐 */
.topup-packages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px) {
  .topup-packages {
    grid-template-columns: repeat(4, 1fr);
  }
}

.topup-pkg {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 12px;
  text-align: center;
  position: relative;
  transition: all 0.2s;
  margin: 0;
}

.topup-pkg:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.topup-pkg.popular {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(232, 192, 120, 0.08), rgba(184, 146, 78, 0.04));
  box-shadow: 0 4px 12px rgba(184, 146, 78, 0.15);
}

.pkg-popular-tag {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 10px;
  padding: 2px 10px;
  border-radius: 10px;
  letter-spacing: 1px;
  font-weight: 500;
}

.pkg-label {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.pkg-amount {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.pkg-divider {
  width: 28px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 8px;
}

.pkg-credits {
  margin-bottom: 4px;
}

.pkg-credits-num {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--gold-deep);
}

.pkg-credits-unit {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--ink-fade);
  margin-left: 2px;
}

.pkg-bonus {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--success);
  background: rgba(107, 142, 90, 0.1);
  padding: 1px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 12px;
}

.pkg-btn {
  width: 100%;
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 8px 0;
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  letter-spacing: 2px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.pkg-btn:hover {
  background: var(--gold-deep);
}

.popular .pkg-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
}

.topup-notice {
  background: rgba(184, 146, 78, 0.08);
  border: 1px dashed var(--gold);
  padding: 14px 16px;
  border-radius: 4px;
  margin-top: 16px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
  text-align: center;
}

.topup-notice strong {
  color: var(--gold-deep);
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  letter-spacing: 1px;
}

.topup-notice a {
  color: var(--gold-deep);
}

/* 交易列表 */
.tx-list {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

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

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

.tx-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.tx-icon.tx-positive {
  background: rgba(107, 142, 90, 0.15);
  color: var(--success);
}

.tx-icon.tx-negative {
  background: rgba(180, 90, 75, 0.12);
  color: var(--danger);
}

.tx-icon.tx-neutral {
  background: var(--bg-soft);
  color: var(--ink-soft);
}

.tx-info {
  flex: 1;
  min-width: 0;
}

.tx-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 1px;
}

.tx-sub {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--ink-fade);
  margin-top: 2px;
}

.tx-time {
  font-family: 'Noto Sans SC', monospace;
  font-size: 10px;
  color: var(--ink-fade);
  margin-top: 2px;
}

.tx-amount {
  flex-shrink: 0;
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
}

.tx-amount.tx-positive { color: var(--success); }
.tx-amount.tx-negative { color: var(--danger); }
.tx-amount.tx-neutral { color: var(--ink-soft); }

/* ============================================================
   👤 个人资料页
   ============================================================ */

.profile-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
}

.profile-form .form-group {
  margin-bottom: 16px;
}

.profile-form .form-label {
  display: block;
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.profile-form .form-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 14px;
  color: var(--ink);
  border-radius: 4px;
  box-sizing: border-box;
}

.profile-form .form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 146, 78, 0.1);
}

.form-readonly {
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  padding: 10px 12px;
  border-radius: 4px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.form-hint {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--ink-fade);
  margin-top: 4px;
}

.form-link {
  color: var(--gold-deep);
  font-size: 12px;
  text-decoration: none;
  margin-left: auto;
}

.profile-info-table {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
}

.profile-info-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-soft);
}

.profile-info-table tr:last-child td {
  border-bottom: none;
}

.profile-info-table td:first-child {
  width: 30%;
  color: var(--ink-fade);
  font-size: 12px;
  background: var(--bg-soft);
}

/* === 通用按钮辅助 === */
.btn-sm {
  padding: 6px 14px !important;
  font-size: 12px !important;
}

/* ============================================================
   ❀ 心意系统样式
   ============================================================ */

/* === Dashboard 心意 tab 上的余额大卡 === */
.heart-balance-card {
  background: linear-gradient(135deg, #FCFAF3 0%, #F5EFE3 100%);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(184, 146, 78, 0.1);
}

.heart-balance-card::before {
  content: '❀';
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 28px;
  color: var(--gold);
  opacity: 0.3;
}

.heart-balance-card::after {
  content: '❀';
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 28px;
  color: var(--gold);
  opacity: 0.2;
}

.heart-balance-card .balance-label {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.heart-balance-card .balance-num {
  font-family: 'Noto Serif SC', serif;
  font-size: 60px;
  font-weight: 500;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: 2px;
}

.heart-balance-card .balance-meta {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--ink-fade);
  margin-top: 8px;
  letter-spacing: 1px;
}

.heart-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 26px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  text-decoration: none;
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  letter-spacing: 3px;
  border-radius: 30px;
  box-shadow: 0 3px 12px rgba(184, 146, 78, 0.25);
  transition: all 0.3s;
}

.heart-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(184, 146, 78, 0.35);
}

.cta-arrow { transition: transform 0.3s; }
.heart-cta-btn:hover .cta-arrow { transform: translateX(4px); }

.heart-quote-small {
  text-align: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 2;
  letter-spacing: 2px;
  margin-bottom: 26px;
  padding: 0 20px;
}

/* ============================================================
   ❀ 敬献心意故事页（全页）
   ============================================================ */

.credits-story-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 20px 80px;
  position: relative;
  min-height: 100vh;
}

/* 右上角余额 */
.story-balance {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(252, 250, 243, 0.85);
  border: 1px solid var(--gold-soft);
  padding: 4px 10px;
  border-radius: 15px;
  backdrop-filter: blur(4px);
}

.balance-label-tiny {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 10px;
  color: var(--ink-fade);
  letter-spacing: 0.5px;
}

.balance-num-tiny {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-deep);
}

/* 顶部铺垫 */
.story-intro {
  text-align: center;
  padding: 60px 20px 40px;
}

.story-symbol {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 48px;
  color: var(--gold);
  margin-bottom: 24px;
  line-height: 1;
}

.story-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: 6px;
  line-height: 1.8;
  font-weight: 400;
  margin: 0;
}

@media (min-width: 600px) {
  .story-title {
    font-size: 32px;
    letter-spacing: 8px;
  }
}

/* 古意引言 */
.story-quote {
  text-align: center;
  padding: 30px 20px;
  margin: 20px 0;
}

.quote-line-top, .quote-line-bottom {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin: 14px 0;
}

.quote-dot {
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
}

.story-blockquote {
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: 22px;
  color: var(--gold-deep);
  letter-spacing: 8px;
  line-height: 2;
  margin: 14px 0;
  font-weight: 400;
}

@media (min-width: 600px) {
  .story-blockquote {
    font-size: 28px;
    letter-spacing: 12px;
  }
}

.quote-source {
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  color: var(--ink-fade);
  letter-spacing: 4px;
  margin-top: 4px;
}

/* 软性叙述 */
.story-narrative {
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 600px) {
  .story-narrative {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.narrative-block {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.narrative-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), rgba(232, 192, 120, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 22px;
  color: var(--gold-deep);
}

.narrative-text h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 4px;
  margin: 0 0 6px;
  font-weight: 500;
}

.narrative-text p {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.9;
  letter-spacing: 1px;
  margin: 0;
}

/* 套餐区 */
.story-packages {
  padding: 40px 0 20px;
}

.packages-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.pkg-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.packages-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  color: var(--gold-deep);
  letter-spacing: 8px;
  font-weight: 500;
}

.story-pkg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 700px) {
  .story-pkg-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.story-pkg {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 14px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
  margin: 0;
}

.story-pkg:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(184, 146, 78, 0.15);
}

.story-pkg.is-popular {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(232, 192, 120, 0.06), rgba(184, 146, 78, 0.04));
  box-shadow: 0 4px 16px rgba(184, 146, 78, 0.12);
}

.pkg-popular-mark {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  font-family: 'Noto Serif SC', serif;
  font-size: 10px;
  padding: 3px 14px;
  border-radius: 12px;
  letter-spacing: 2px;
  font-weight: 500;
  white-space: nowrap;
}

.story-pkg-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 6px;
  font-weight: 500;
  margin-bottom: 8px;
}

.story-pkg-subtitle {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--ink-fade);
  letter-spacing: 1px;
  line-height: 1.7;
  margin-bottom: 12px;
  min-height: 36px;
}

.story-pkg-divider {
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 14px;
  opacity: 0.6;
}

.story-pkg-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 6px;
}

.amount-currency {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--ink-fade);
  letter-spacing: 1px;
}

.amount-num {
  font-family: 'Noto Serif SC', serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 1px;
}

.story-pkg-credits {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--gold-deep);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.pkg-bonus-mark {
  display: block;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 10px;
  color: var(--success);
  background: rgba(107, 142, 90, 0.1);
  padding: 1px 7px;
  border-radius: 8px;
  margin-top: 6px;
  letter-spacing: 0;
  font-weight: 500;
}

.story-pkg-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  padding: 9px 0;
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  letter-spacing: 3px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.story-pkg-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
}

.story-pkg.is-popular .story-pkg-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  border-color: transparent;
}

.story-pkg.is-popular .story-pkg-btn:hover {
  filter: brightness(1.1);
}

/* 柔性结语 */
.story-coda {
  text-align: center;
  padding: 50px 20px 30px;
}

.coda-symbol {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0.7;
}

.coda-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 2.2;
  letter-spacing: 3px;
  margin: 0;
}

@media (min-width: 600px) {
  .coda-text {
    font-size: 15px;
    letter-spacing: 4px;
  }
}

/* 返回 */
.story-back {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px dashed var(--border);
}

.story-back-link {
  color: var(--ink-fade);
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 2px;
}

.story-back-link:hover {
  color: var(--gold-deep);
}

.empty-pkg {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-fade);
}
/* ============================================================
   ❀ 心意未足弹窗
   ============================================================ */

/* "可点击但缺心意"的按钮 - 不再灰色 disabled，而是温和提示 */
.tribute-option.needs-more {
  opacity: 1;
  cursor: pointer;
}

.tribute-option.needs-more:hover {
  border-color: var(--gold);
  background: rgba(184, 146, 78, 0.04);
}

.tribute-option.needs-more .opt-name {
  color: var(--ink);
}

.tribute-option.needs-more .opt-icon {
  opacity: 0.7;
}

.tribute-option.needs-more .price-tag.insufficient {
  background: rgba(180, 90, 75, 0.08);
  color: #B45A4B;
  text-decoration: none;
  border: 1px dashed rgba(180, 90, 75, 0.3);
}

/* 弹窗 */
.insufficient-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.insufficient-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 36, 25, 0.7);
  backdrop-filter: blur(6px);
}

.insufficient-box {
  position: relative;
  background: var(--card);
  border: 1px solid var(--gold);
  max-width: 400px;
  width: 100%;
  padding: 36px 28px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  text-align: center;
  border-radius: 8px;
}

.insufficient-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

.insufficient-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  color: var(--ink-fade);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.insufficient-close:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.insuf-symbol {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 8px;
  line-height: 1;
}

.insuf-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 6px;
  font-weight: 500;
  margin: 0 0 24px;
  padding-left: 6px;
}

.insuf-content {
  background: linear-gradient(135deg, rgba(252, 250, 243, 0.6), rgba(245, 239, 227, 0.6));
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 18px 16px;
  margin-bottom: 24px;
}

.insuf-line {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 2px;
  line-height: 1.8;
}

.insuf-line strong {
  font-size: 18px;
  color: var(--gold-deep);
  font-weight: 500;
  margin: 0 3px;
}

.insuf-divider {
  width: 30px;
  height: 1px;
  background: var(--gold);
  margin: 10px auto;
  opacity: 0.5;
}

.insuf-current {
  font-size: 13px;
  color: var(--ink-fade);
}

.insuf-current strong {
  color: var(--ink);
  font-size: 16px;
}

.insuf-shortage {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(184, 146, 78, 0.3);
  font-size: 13px;
}

.insuf-shortage strong {
  color: #B45A4B;
  font-size: 16px;
}

.insuf-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.insuf-btn {
  display: block;
  width: 100%;
  padding: 11px 0;
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  letter-spacing: 3px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  box-sizing: border-box;
}

.insuf-btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  box-shadow: 0 3px 12px rgba(184, 146, 78, 0.25);
}

.insuf-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.insuf-btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-fade);
}

.insuf-btn-ghost:hover {
  color: var(--ink);
  border-color: var(--ink-fade);
}

/* ============================================================
   ❀ 心意未足弹窗 - 加强版（确保按钮可见）
   ============================================================ */

/* 弹窗框：自适应内容 + 滚动 */
.insufficient-box {
  max-height: 90vh;
  overflow-y: auto;
}

/* 按钮一定要可见、大、显眼 */
.insuf-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-top: 24px;
}

.insuf-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 46px;
  padding: 12px 0 !important;
  font-family: 'Noto Serif SC', serif !important;
  font-size: 15px !important;
  letter-spacing: 4px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  border: 1px solid transparent !important;
  transition: all 0.2s !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

.insuf-btn-primary {
  background: linear-gradient(135deg, #B8924E, #8B6F3E) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(184, 146, 78, 0.35) !important;
  font-weight: 500;
}

.insuf-btn-primary:hover,
.insuf-btn-primary:active {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.insuf-btn-ghost {
  background: transparent !important;
  border-color: #d8cdb8 !important;
  color: #847569 !important;
}

.insuf-btn-ghost:hover,
.insuf-btn-ghost:active {
  color: #2d2419 !important;
  background: rgba(0,0,0,0.02);
}

/* 移动端 */
@media (max-width: 480px) {
  .insufficient-box {
    padding: 28px 20px 24px;
    max-width: 95vw;
  }
  .insuf-title {
    font-size: 18px;
    letter-spacing: 4px;
  }
  .insuf-actions {
    gap: 10px !important;
  }
}

/* ============================================================
   🔧 Navbar 遮挡修复 v5 - 真正的根源修复
   元凶：.memorial-hero 有 margin-top: -50px (历史遗留)
   现在没有封面图了，这个负 margin 把照片拉到 navbar 后面
   ============================================================ */

/* 1. 杀掉负 margin（关键修复）*/
.memorial-hero {
  margin-top: 0 !important;
}

/* 2. navbar 完全不透明 + 高层级 */
.site-header {
  background: #F5EFE3 !important;
  z-index: 9999 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.03);
}

/* 3. 内容层级降低 */
.memorial-fullpage-bg { z-index: 0 !important; }
.memorial-fullpage-overlay { z-index: 1 !important; }

.memorial-page,
.memorial-page-fullbg {
  position: relative;
  z-index: 1;
  padding-top: 40px !important;
}

@media (min-width: 768px) {
  .memorial-page,
  .memorial-page-fullbg {
    padding-top: 60px !important;
  }
}

@media (max-width: 767px) {
  .memorial-page,
  .memorial-page-fullbg {
    padding-top: 30px !important;
  }
}

/* 4. 照片不要溢出 */
.memorial-main-photo-wrap {
  position: relative;
  z-index: 2;
  margin-top: 0 !important;
}

/* 5. 编辑按钮位置 */
.cover-edit-btn {
  z-index: 10;
  top: 16px !important;
  right: 16px !important;
}

/* 6. 弹窗高于 navbar */
.tribute-modal,
.insufficient-modal {
  z-index: 10000 !important;
}

.toast-msg {
  z-index: 10001 !important;
}

/* ============================================================
   🎯 移动端底部 sticky 操作栏
   ============================================================ */

.sticky-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;  /* 低于 navbar 9999，低于弹窗 10000 */
  background: rgba(252, 250, 243, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);  /* iPhone 底部安全区 */
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

/* iOS Safari 不支持 backdrop-filter 时的回退 */
@supports not (backdrop-filter: blur(12px)) {
  .sticky-action-bar {
    background: #FCFAF3;
  }
}

.sticky-action {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.sticky-action:active {
  background: rgba(184, 146, 78, 0.08);
}

.sticky-action:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: rgba(184, 146, 78, 0.15);
}

.sticky-icon {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 22px;
  line-height: 1;
  color: var(--gold-deep);
}

.sticky-label {
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--ink-soft);
}

/* 桌面端隐藏 */
@media (min-width: 768px) {
  .sticky-action-bar {
    display: none !important;
  }
}

/* 移动端给页面底部加 padding 避免内容被 sticky 栏遮挡 */
@media (max-width: 767px) {
  .memorial-page,
  .memorial-page-fullbg {
    padding-bottom: calc(68px + env(safe-area-inset-bottom)) !important;
  }
}

/* === Section 高亮效果（点击 sticky 按钮后短暂闪烁）=== */
.section-highlight {
  animation: sectionHighlight 1.5s ease-out;
}

@keyframes sectionHighlight {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(184, 146, 78, 0);
  }
  30% {
    box-shadow: 0 0 0 4px rgba(184, 146, 78, 0.3);
  }
}

/* ============================================================
   📤 分享纪念馆弹窗
   ============================================================ */

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 36, 25, 0.7);
  backdrop-filter: blur(6px);
}

.share-modal-box {
  position: relative;
  background: var(--card);
  border: 1px solid var(--gold);
  max-width: 420px;
  width: 100%;
  padding: 36px 28px 28px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.share-modal-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

.share-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  color: var(--ink-fade);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.share-modal-close:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.share-symbol {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 8px;
  line-height: 1;
}

.share-modal-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 4px;
  font-weight: 500;
  margin: 0 0 6px;
  padding-left: 4px;
}

.share-modal-desc {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-fade);
  letter-spacing: 1px;
  margin: 0 0 20px;
}

.share-modal-link {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.share-modal-link input {
  flex: 1;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  padding: 9px 12px;
  font-family: 'Noto Sans SC', monospace;
  font-size: 12px;
  color: var(--ink);
  border-radius: 4px;
  text-overflow: ellipsis;
  min-width: 0;
}

.share-modal-copy {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  border: none;
  padding: 0 16px;
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  letter-spacing: 2px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.2s;
}

.share-modal-copy:hover {
  filter: brightness(1.08);
}

.share-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
}

.share-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.share-divider-text {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--ink-fade);
  letter-spacing: 1px;
}

.share-channels {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.share-channel {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.share-channel:hover {
  border-color: var(--gold);
  background: rgba(184, 146, 78, 0.04);
  transform: translateY(-2px);
}

.channel-icon {
  font-size: 22px;
  line-height: 1;
}

.channel-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 1px;
}

.share-modal-code {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--ink-fade);
  letter-spacing: 1px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.share-modal-code strong {
  color: var(--gold-deep);
  font-family: 'Noto Sans SC', monospace;
  margin-left: 4px;
}

/* ============================================================
   💳 支付结果页（成功 / 失败）
   ============================================================ */

.payment-result-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg);
}

.payment-result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 480px;
  width: 100%;
  padding: 40px 28px 32px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.result-top-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

.payment-failed .result-top-line {
  background: linear-gradient(90deg, transparent, var(--danger) 50%, transparent);
}

.result-symbol {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 48px;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1;
}

.result-symbol-warn {
  font-size: 40px;
  color: var(--danger);
  margin-bottom: 12px;
  line-height: 1;
}

.result-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  letter-spacing: 8px;
  color: var(--ink);
  margin: 0 0 16px;
  padding-left: 8px;
  font-weight: 500;
}

.result-message {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  line-height: 2;
  color: var(--ink-soft);
  letter-spacing: 2px;
  margin: 0 0 28px;
}

.result-message strong {
  color: var(--gold-deep);
  font-size: 17px;
}

.result-detail {
  background: linear-gradient(135deg, rgba(252, 250, 243, 0.6), rgba(245, 239, 227, 0.6));
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(184, 146, 78, 0.1);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
}

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

.result-row-label {
  color: var(--ink-fade);
  letter-spacing: 1px;
}

.result-row-value {
  color: var(--ink);
  font-weight: 500;
}

.result-credits {
  color: var(--gold-deep);
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
}

.result-balance {
  color: var(--success);
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
}

.sandbox-mark {
  background: rgba(184, 146, 78, 0.12);
  color: var(--gold-deep);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}

.result-sandbox-row {
  background: rgba(184, 146, 78, 0.05);
  margin: 4px -18px -16px;
  padding: 7px 18px;
  border-bottom: none;
  border-top: 1px dashed var(--gold);
  border-radius: 0 0 6px 6px;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.result-btn {
  display: block;
  width: 100%;
  padding: 13px 0;
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  letter-spacing: 4px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-align: center;
  box-sizing: border-box;
}

.result-btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  box-shadow: 0 4px 14px rgba(184, 146, 78, 0.25);
  font-weight: 500;
}

.result-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.result-btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-fade);
}

.result-btn-ghost:hover {
  color: var(--ink);
  border-color: var(--ink-fade);
}

.result-coda {
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  color: var(--ink-fade);
  letter-spacing: 2px;
  line-height: 2;
  margin: 0;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.result-coda-warn {
  color: var(--ink-soft);
}

/* Admin 简单统计卡 */
.admin-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  text-align: center;
}

.admin-stat-card .stat-label {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--ink-fade);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.admin-stat-card .stat-num {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 600px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================================================
   💳 Admin Dashboard 营收卡 + 心意流转
   ============================================================ */

.revenue-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 700px) {
  .revenue-cards {
    grid-template-columns: 1fr;
  }
}

.revenue-card {
  background: linear-gradient(135deg, #1F1A14 0%, #2D2419 100%);
  color: #F5EFE3;
  padding: 20px 22px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.revenue-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

.revenue-card-today::before {
  background: linear-gradient(90deg, transparent, #E8C078 50%, transparent);
}

.revenue-label {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: rgba(245, 239, 227, 0.6);
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.revenue-amount {
  font-family: 'Noto Serif SC', serif;
  font-size: 30px;
  font-weight: 500;
  background: linear-gradient(135deg, #F5C66A, #B8924E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: 1px;
}

.revenue-sub {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: rgba(245, 239, 227, 0.5);
  margin-top: 8px;
  letter-spacing: 1px;
}

/* ❀ 心意流转 */
.credit-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(252, 250, 243, 0.6), rgba(245, 239, 227, 0.4));
  border: 1px dashed var(--border);
  border-radius: 6px;
}

@media (max-width: 700px) {
  .credit-flow {
    flex-direction: column;
    gap: 16px;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
}

.flow-block {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  background: var(--card);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.flow-topup {
  border-color: rgba(184, 146, 78, 0.4);
}

.flow-balance {
  border-color: rgba(232, 192, 120, 0.6);
  background: linear-gradient(135deg, rgba(232, 192, 120, 0.06), rgba(184, 146, 78, 0.04));
}

.flow-spent {
  border-color: rgba(107, 142, 90, 0.3);
}

.flow-label {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--ink-fade);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.flow-num {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--gold-deep);
}

.flow-topup .flow-num { color: var(--gold); }
.flow-balance .flow-num { color: var(--gold-deep); }
.flow-spent .flow-num { color: var(--success); }

.flow-sub {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 10px;
  color: var(--ink-fade);
  margin-top: 4px;
  letter-spacing: 0;
}

.flow-arrow {
  font-family: serif;
  font-size: 24px;
  color: var(--gold);
  flex-shrink: 0;
}

/* todo item 是链接时的样式 */
a.admin-todo-item {
  text-decoration: none;
  transition: background 0.2s;
}

a.admin-todo-item:hover {
  background: rgba(184, 146, 78, 0.05);
}

/* ============================================================
   📄 静态页面（关于/隐私/条款等）
   ============================================================ */

.static-page {
  min-height: 70vh;
  padding: 40px 20px 60px;
  background: var(--bg);
}

.static-page-container {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  padding: 50px 50px 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

@media (max-width: 700px) {
  .static-page-container {
    padding: 30px 24px 28px;
    border-radius: 4px;
  }
}

.static-page-header {
  text-align: center;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px dashed var(--border);
}

.static-page-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: 8px;
  font-weight: 500;
  margin: 0;
  padding-left: 8px;
}

@media (max-width: 600px) {
  .static-page-title {
    font-size: 22px;
    letter-spacing: 4px;
  }
}

/* 内容样式 */
.static-page-body {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.static-page-body h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 4px;
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold);
  font-weight: 500;
}

.static-page-body h2:first-child {
  margin-top: 0;
}

.static-page-body h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 17px;
  color: var(--gold-deep);
  letter-spacing: 3px;
  margin: 28px 0 12px;
  font-weight: 500;
}

.static-page-body h4 {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 20px 0 8px;
}

.static-page-body p {
  margin: 12px 0;
  color: var(--ink-soft);
}

.static-page-body strong {
  color: var(--ink);
  font-weight: 600;
}

.static-page-body em {
  color: var(--gold-deep);
  font-style: normal;
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
}

.static-page-body ul, .static-page-body ol {
  margin: 14px 0;
  padding-left: 24px;
}

.static-page-body li {
  margin: 6px 0;
  color: var(--ink-soft);
}

.static-page-body a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.static-page-body a:hover {
  color: var(--gold);
}

.static-page-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 6px 16px;
  margin: 16px 0;
  background: rgba(184, 146, 78, 0.05);
  color: var(--ink-soft);
  font-family: 'ZCOOL XiaoWei', serif;
}

.static-page-body code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
  color: var(--gold-deep);
  font-family: 'Noto Sans SC', monospace;
}

.static-page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.static-page-body th {
  background: var(--bg-soft);
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--border);
  font-family: 'Noto Serif SC', serif;
  color: var(--ink);
  font-weight: 500;
}

.static-page-body td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--ink-soft);
}

.static-page-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 16px 0;
}

.static-page-footer {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
  text-align: center;
}

.static-page-footer p {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-fade);
  margin: 6px 0;
}

.static-back {
  color: var(--gold-deep);
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 2px;
}

.static-back:hover {
  text-decoration: underline;
}
/* ============================================================
   ⭐ 名人纪念馆 Hero Hall
   ============================================================ */

.hero-hall-section {
  padding: 50px 20px 40px;
  background: linear-gradient(180deg, transparent, rgba(184, 146, 78, 0.04));
  margin-bottom: 40px;
}

.hero-hall-header {
  text-align: center;
  margin-bottom: 36px;
}

.hero-hall-symbol {
  display: block;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 8px;
  line-height: 1;
}

.hero-hall-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: 10px;
  font-weight: 500;
  margin: 0 0 8px;
  padding-left: 10px;
}

.hero-hall-subtitle {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--ink-fade);
  letter-spacing: 3px;
  margin: 0;
}

.hero-hall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .hero-hall-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-hall-section {
    padding: 36px 14px 28px;
  }
  .hero-hall-title {
    font-size: 22px;
    letter-spacing: 6px;
  }
  .hero-hall-grid {
    gap: 12px;
  }
}

.hero-hall-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.hero-hall-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-hall-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(184, 146, 78, 0.15);
}

.hero-hall-card:hover::before {
  opacity: 1;
}

.hero-hall-photo {
  width: 100px;
  height: 100px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 0 16px rgba(184, 146, 78, 0.2);
  background: var(--bg-soft);
}

@media (max-width: 480px) {
  .hero-hall-photo {
    width: 80px;
    height: 80px;
  }
}

.hero-hall-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-hall-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 36px;
  font-family: 'ZCOOL XiaoWei', serif;
}

.hero-hall-info {
  text-align: center;
}

.hero-hall-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: 3px;
  margin: 0 0 6px;
  padding-left: 3px;
  font-weight: 500;
}

@media (max-width: 480px) {
  .hero-hall-name {
    font-size: 15px;
    letter-spacing: 2px;
  }
}

.hero-hall-years {
  font-family: 'Noto Sans SC', serif;
  font-size: 12px;
  color: var(--gold-deep);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.hero-hall-bio {
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  color: var(--ink-fade);
  line-height: 1.7;
  margin: 0;
  letter-spacing: 0.5px;
  /* 限制 2 行 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 480px) {
  .hero-hall-bio {
    font-size: 11px;
    -webkit-line-clamp: 3;
  }
}
/* ============================================================
   🔧 思念纪念馆 · 工具集样式
   ============================================================ */

/* ===== 页面基础 ===== */
.tools-page {
  min-height: 80vh;
  padding: 30px 16px 60px;
  background: linear-gradient(180deg, var(--bg), rgba(184,146,78,0.04));
  position: relative;
  overflow: hidden;
}

.tools-container {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== 浮动粒子 ===== */
.tools-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(184, 146, 78, 0.12);
  animation: particleFloat 8s ease-in-out infinite;
}

.particle-gold {
  background: rgba(232, 192, 120, 0.2);
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.2; }
  50% { transform: translateY(-24px) rotate(180deg); opacity: 0.5; }
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideDown {
  from { opacity: 0; max-height: 0; transform: translateY(-10px); }
  to { opacity: 1; max-height: 600px; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 1; max-height: 600px; }
  to { opacity: 0; max-height: 0; }
}

@keyframes flicker {
  0% { transform: scaleX(1) scaleY(1); opacity: 0.9; }
  25% { transform: scaleX(0.88) scaleY(1.06); opacity: 1; }
  50% { transform: scaleX(1.06) scaleY(0.92); opacity: 0.85; }
  75% { transform: scaleX(0.94) scaleY(1.03); opacity: 1; }
  100% { transform: scaleX(1) scaleY(1); opacity: 0.9; }
}

@keyframes flickerMini {
  0%, 100% { transform: scaleX(1) scaleY(1); }
  50% { transform: scaleX(0.85) scaleY(1.1); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(184,146,78,0.15); }
  50% { box-shadow: 0 0 30px rgba(184,146,78,0.3); }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out both;
}

.animate-card {
  animation: cardEnter 0.5s ease-out both;
}

.animate-card-js {
  animation: cardEnter 0.5s ease-out both;
}

/* ===== 返回按钮 ===== */
.tools-back {
  display: inline-block;
  margin-bottom: 20px;
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--gold-deep);
  text-decoration: none;
  letter-spacing: 2px;
  transition: color 0.2s;
}

.tools-back:hover {
  color: var(--gold);
}

/* ===== 标题区 ===== */
.tools-header {
  text-align: center;
  margin-bottom: 30px;
}

.tools-logo-mark {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 14px;
}

.tools-header-icon {
  font-size: 48px;
  margin-bottom: 10px;
  line-height: 1;
}

.tools-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: 8px;
  margin: 0 0 8px;
  font-weight: 500;
  padding-left: 8px;
}

.tools-subtitle {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--ink-fade);
  letter-spacing: 3px;
  margin: 0;
}

/* ===== 工具卡片网格 ===== */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 30px;
}

.tool-card {
  display: block;
  background: rgba(252,250,243,0.9);
  border: 1px solid rgba(184,146,78,0.2);
  border-radius: 12px;
  padding: 28px 16px 24px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.tool-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.tool-card:hover,
.tool-card:active {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(184,146,78,0.5);
  box-shadow: 0 8px 30px rgba(184,146,78,0.15);
}

.tool-card:hover .tool-card-glow {
  opacity: 1;
}

.tool-icon {
  font-size: 36px;
  margin-bottom: 12px;
  line-height: 1;
}

.tool-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 3px;
  margin: 0 0 8px;
  font-weight: 500;
}

.tool-desc {
  font-family: 'Noto Serif SC', serif;
  font-size: 11px;
  color: var(--ink-fade);
  letter-spacing: 1px;
  line-height: 1.6;
  margin: 0;
}

.tool-arrow {
  display: block;
  margin-top: 12px;
  color: var(--gold);
  font-size: 18px;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.tool-card:hover .tool-arrow {
  opacity: 1;
}

/* ===== 输入区 ===== */
.tool-input-box {
  background: rgba(252,250,243,0.9);
  border: 1px solid rgba(184,146,78,0.2);
  border-radius: 12px;
  padding: 24px 20px;
  margin-bottom: 24px;
}

.tool-label {
  display: block;
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.tool-date-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(184,146,78,0.3);
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Noto Serif SC', serif;
  color: var(--ink);
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.tool-date-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,146,78,0.1);
}

.tool-calc-btn {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold), #9C7836);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.tool-calc-btn:disabled {
  background: #ddd;
  color: #999;
  cursor: not-allowed;
}

.tool-calc-btn:not(:disabled):hover {
  box-shadow: 0 4px 16px rgba(184,146,78,0.3);
  transform: translateY(-1px);
}

.tool-calc-btn:not(:disabled):active {
  transform: translateY(0);
}

/* ===== 总结卡（黑金风格）===== */
.tool-summary-card {
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(135deg, #1F1A14, #2D2419);
  border-radius: 12px;
  margin-bottom: 20px;
  animation: fadeInUp 0.5s ease-out, pulseGlow 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.tool-lunar-card {
  padding: 36px 20px;
}

.summary-label {
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  color: rgba(245,239,227,0.5);
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.summary-number {
  font-family: 'Noto Serif SC', serif;
  font-size: 32px;
  background: linear-gradient(135deg, #F5C66A, #B8924E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
}

.summary-date {
  font-family: 'Noto Serif SC', serif;
  font-size: 26px;
  background: linear-gradient(135deg, #F5C66A, #B8924E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
  margin-top: 8px;
}

.summary-weekday {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: rgba(245,239,227,0.6);
  margin-top: 6px;
  letter-spacing: 2px;
}

.summary-diff {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 20px;
  background: rgba(184,146,78,0.15);
  border-radius: 20px;
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: #E8C078;
}

/* 烛光火焰 */
.candle-flame {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.flame {
  width: 14px;
  height: 24px;
  background: linear-gradient(to top, #E8C078, #FFD700, #FFF4B8);
  border-radius: 50% 50% 20% 20%;
  animation: flicker 1.5s ease-in-out infinite alternate;
  filter: blur(1px);
  box-shadow: 0 0 12px rgba(255,200,50,0.5), 0 0 30px rgba(255,160,20,0.3);
}

.candle-body {
  width: 6px;
  height: 20px;
  background: linear-gradient(to bottom, #B8924E, #8B6914);
  border-radius: 0 0 3px 3px;
  margin-top: -2px;
}

/* ===== 结果卡片 ===== */
.qi-card {
  background: rgba(252,250,243,0.8);
  border: 1px solid rgba(184,146,78,0.15);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.qi-card-highlight {
  background: linear-gradient(135deg, rgba(184,146,78,0.1), rgba(232,192,120,0.06));
  border-color: rgba(184,146,78,0.35);
}

.qi-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.qi-card-header:hover {
  background: rgba(184,146,78,0.04);
}

.qi-icon {
  font-size: 28px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(184,146,78,0.08);
  border-radius: 50%;
  flex-shrink: 0;
}

.qi-card-highlight .qi-icon {
  background: rgba(184,146,78,0.15);
}

.qi-info {
  flex: 1;
  min-width: 0;
}

.qi-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 2px;
  font-weight: 500;
  margin-bottom: 4px;
}

.qi-important {
  display: inline-block;
  padding: 1px 8px;
  background: linear-gradient(135deg, var(--gold), #D4A852);
  color: #fff;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-left: 6px;
  vertical-align: middle;
}

.qi-date {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 1px;
}

.qi-diff {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--ink-fade);
  margin-top: 3px;
}

.qi-expand-icon {
  font-size: 11px;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.3s;
}

/* 迷你蜡烛（头七和七七旁边）*/
.qi-candle {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  margin-right: 4px;
}

.flame-mini {
  width: 6px;
  height: 10px;
  background: linear-gradient(to top, #E8C078, #FFD700);
  border-radius: 50% 50% 20% 20%;
  animation: flickerMini 1.2s ease-in-out infinite alternate;
  box-shadow: 0 0 6px rgba(255,200,50,0.4);
}

.candle-mini {
  width: 3px;
  height: 10px;
  background: linear-gradient(to bottom, #B8924E, #8B6914);
  border-radius: 0 0 2px 2px;
  margin-top: -1px;
}

/* ===== 展开详情区 ===== */
.qi-detail {
  padding: 0 18px 18px;
  overflow: hidden;
}

.qi-detail-section {
  margin-bottom: 16px;
}

.qi-detail-label {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--gold-deep);
  letter-spacing: 2px;
  margin-bottom: 8px;
  font-weight: 500;
}

.qi-detail-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin: 0;
}

/* 祭品标签 */
.qi-offerings {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qi-offering-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(184,146,78,0.08);
  border: 1px solid rgba(184,146,78,0.2);
  border-radius: 16px;
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 1px;
}

.qi-tip {
  padding: 10px 14px;
  background: rgba(184,146,78,0.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  color: #7A6A52;
  line-height: 1.7;
}

/* ===== 农历转换特殊 ===== */
.lunar-main-date {
  font-family: 'Noto Serif SC', serif;
  font-size: 36px;
  background: linear-gradient(135deg, #F5C66A, #B8924E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
  letter-spacing: 4px;
}

.lunar-ganzhi {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  color: rgba(245,239,227,0.7);
  margin-top: 10px;
  letter-spacing: 6px;
}

.lunar-shengxiao {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  background: rgba(184,146,78,0.15);
  border-radius: 20px;
}

.shengxiao-emoji {
  font-size: 22px;
}

.lunar-shengxiao span:last-child {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: #E8C078;
}

/* ===== 免责声明 ===== */
.tool-disclaimer {
  margin-top: 24px;
  padding: 18px 18px;
  background: rgba(184,146,78,0.04);
  border: 1px dashed rgba(184,146,78,0.25);
  border-radius: 8px;
  animation: fadeIn 0.8s ease-out 0.6s both;
}

.tool-disclaimer h4 {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 2px;
  margin: 0 0 10px;
  font-weight: 500;
}

.tool-disclaimer p {
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  color: var(--ink-fade);
  line-height: 1.85;
  margin: 6px 0;
}

/* ===== 底部提示 ===== */
.tools-note {
  text-align: center;
  margin-top: 24px;
  padding: 16px;
}

.tools-note p {
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  color: var(--ink-fade);
  line-height: 1.8;
  margin: 0;
}

/* ===== 手机适配 ===== */
@media (max-width: 480px) {
  .tools-title {
    font-size: 20px;
    letter-spacing: 6px;
  }

  .tool-name {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .tool-card {
    padding: 22px 12px 20px;
  }

  .qi-name {
    font-size: 14px;
  }

  .lunar-main-date {
    font-size: 28px;
  }

  .summary-number {
    font-size: 26px;
  }

  .summary-date {
    font-size: 22px;
  }
}
/* ============================================================
   🏠 首页 · 思念纪念馆
   ============================================================ */

/* ===== 动画定义 ===== */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes watermarkFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  50% { transform: translate(-50%, -52%) scale(1.02) rotate(1deg); }
}

@keyframes particleDrift {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.15; }
  25% { transform: translateY(-15px) translateX(5px) rotate(90deg); opacity: 0.35; }
  50% { transform: translateY(-25px) translateX(-3px) rotate(180deg); opacity: 0.2; }
  75% { transform: translateY(-10px) translateX(8px) rotate(270deg); opacity: 0.3; }
}

@keyframes searchGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,146,78,0); }
  50% { box-shadow: 0 0 20px rgba(184,146,78,0.15); }
}

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

@keyframes cardHover {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}

/* ===== 通用 Scroll Reveal ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Hero 入场动画 ===== */
.animate-hero {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ===== SECTION 1: HERO ===== */
.home-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 40px;
  background: linear-gradient(180deg, var(--bg) 0%, #EDE4D3 100%);
  overflow: hidden;
}

/* "念" 水印 */
.home-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'ZCOOL XiaoWei', 'KaiTi', serif;
  font-size: 280px;
  color: rgba(184, 146, 78, 0.05);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  animation: watermarkFloat 12s ease-in-out infinite;
}

@media (max-width: 600px) {
  .home-watermark { font-size: 200px; }
  .home-hero { min-height: 65vh; padding: 50px 16px 30px; }
}

/* 浮动粒子 */
.home-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.h-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(184, 146, 78, 0.25);
  animation: particleDrift var(--dur, 10s) ease-in-out infinite;
}

/* Hero 内容 */
.home-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
}

.home-logo {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.home-logo-mark {
  display: block;
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin: 0 auto;
  animation: logoPulse 3s ease-in-out infinite;
}

.home-headline {
  font-family: 'Noto Serif SC', serif;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: 6px;
  font-weight: 500;
  margin: 0 0 14px;
  padding-left: 6px;
}

@media (max-width: 600px) {
  .home-headline { font-size: 22px; letter-spacing: 4px; }
}

.home-tagline {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--ink-fade);
  letter-spacing: 1.5px;
  line-height: 2;
  margin: 0 0 28px;
}

@media (max-width: 600px) {
  .home-tagline { font-size: 13px; }
}

.home-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.home-btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--gold), #9C7836);
  color: #fff;
  border-radius: 6px;
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  letter-spacing: 3px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(184,146,78,0.3);
}

.home-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184,146,78,0.4);
}

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

.home-btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid rgba(184,146,78,0.5);
  color: var(--gold-deep);
  border-radius: 6px;
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  letter-spacing: 3px;
  text-decoration: none;
  transition: all 0.3s;
  background: transparent;
}

.home-btn-outline:hover {
  border-color: var(--gold);
  background: rgba(184,146,78,0.08);
  transform: translateY(-2px);
}

.home-btn-sm {
  padding: 8px 22px;
  font-size: 13px;
  letter-spacing: 2px;
}

/* ===== SECTION 2: SEARCH ===== */
.home-search {
  padding: 20px 20px 28px;
  background: rgba(252,250,243,0.9);
  border-top: 1px dashed rgba(184,146,78,0.2);
  border-bottom: 1px dashed rgba(184,146,78,0.2);
}

.home-section-inner {
  max-width: 560px;
  margin: 0 auto;
}

.home-search-form {
  margin: 0;
}

.home-search-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(184,146,78,0.25);
  border-radius: 10px;
  padding: 4px;
  transition: all 0.3s;
}

.home-search-wrap:focus-within {
  border-color: var(--gold);
  animation: searchGlow 2s ease-in-out infinite;
}

.home-search-icon {
  padding: 0 8px 0 12px;
  font-size: 16px;
  flex-shrink: 0;
}

.home-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--ink);
  padding: 10px 4px;
  min-width: 0;
}

.home-search-input::placeholder {
  color: var(--ink-fade);
  font-size: 13px;
}

.home-search-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--gold), #9C7836);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  letter-spacing: 3px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.home-search-btn:hover {
  background: linear-gradient(135deg, #C9A35E, var(--gold));
}

/* ===== 通用 Section 样式 ===== */
.home-section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 8px;
  font-weight: 500;
  text-align: center;
  margin: 0 0 8px;
  padding-left: 8px;
}

.home-section-subtitle {
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  color: var(--ink-fade);
  letter-spacing: 3px;
  text-align: center;
  margin: 0 0 24px;
}

.home-section-symbol {
  font-size: 22px;
  text-align: center;
  margin-bottom: 6px;
  color: var(--gold);
}

/* ===== SECTION 3: HOW ===== */
.home-how {
  padding: 44px 20px;
  background: var(--bg);
}

.home-how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

.how-card {
  padding: 24px 16px 20px;
  background: rgba(252,250,243,0.9);
  border: 1px solid rgba(184,146,78,0.12);
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.how-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.how-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184,146,78,0.3);
  box-shadow: 0 6px 20px rgba(184,146,78,0.1);
}

.how-card:hover::after {
  opacity: 1;
}

.how-num {
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 8px;
  line-height: 1;
}

.how-title-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 2px;
  margin: 0 0 6px;
  font-weight: 500;
}

.how-desc-text {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--ink-fade);
  line-height: 1.7;
  margin: 0;
}

/* ===== SECTION 4: HERO HALL ===== */
.home-herohall {
  padding: 44px 20px;
  background: rgba(252,250,243,0.95);
  border-top: 1px dashed rgba(184,146,78,0.2);
}

.herohall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .herohall-grid { grid-template-columns: 1fr 1fr; }
}

.herohall-card {
  display: block;
  padding: 20px 12px 16px;
  background: #fff;
  border: 1px solid rgba(184,146,78,0.15);
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.herohall-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.herohall-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(184,146,78,0.15);
}

.herohall-card:hover::before {
  opacity: 1;
}

.herohall-photo {
  width: 70px;
  height: 70px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 0 12px rgba(184,146,78,0.15);
  background: var(--bg-soft);
}

.herohall-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.herohall-photo-empty {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 28px;
  font-family: 'ZCOOL XiaoWei', serif;
}

.herohall-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 2px;
  margin: 0 0 4px;
  font-weight: 500;
}

.herohall-years {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--gold-deep);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.herohall-bio {
  font-family: 'Noto Serif SC', serif;
  font-size: 11px;
  color: var(--ink-fade);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== SECTION 5: TOOLS ===== */
.home-tools {
  padding: 44px 20px;
  background: var(--bg);
  border-top: 1px dashed rgba(184,146,78,0.2);
}

.home-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

.home-tool-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  background: rgba(252,250,243,0.9);
  border: 1px solid rgba(184,146,78,0.12);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184,146,78,0.3);
  box-shadow: 0 6px 16px rgba(184,146,78,0.1);
}

.home-tool-emoji {
  font-size: 26px;
  flex-shrink: 0;
}

.home-tool-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 1px;
}

.home-tools-more {
  text-align: center;
  margin-top: 18px;
}

.home-link-more {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--gold-deep);
  text-decoration: none;
  letter-spacing: 2px;
  transition: color 0.2s;
}

.home-link-more:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* ===== SECTION 6: ABOUT ===== */
.home-about {
  padding: 50px 20px;
  background: rgba(252,250,243,0.95);
  border-top: 1px dashed rgba(184,146,78,0.2);
  position: relative;
  overflow: hidden;
}

.home-about-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 160px;
  color: rgba(184,146,78,0.04);
  font-weight: 900;
  pointer-events: none;
  animation: watermarkFloat 15s ease-in-out infinite;
}

.home-about-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
}

.home-about-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 4px;
  font-weight: 500;
  margin: 0 0 12px;
}

.home-about-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--ink-fade);
  line-height: 2;
  margin: 0 0 20px;
  letter-spacing: 1px;
}

/* ===== SEARCH RESULTS PAGE ===== */
.search-page {
  min-height: 70vh;
  padding: 40px 20px 60px;
  background: var(--bg);
}

.search-container {
  max-width: 600px;
  margin: 0 auto;
}

.search-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: 6px;
  text-align: center;
  margin: 0 0 24px;
  font-weight: 500;
}

.search-form {
  margin-bottom: 24px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid rgba(184,146,78,0.25);
  border-radius: 10px;
  padding: 4px;
}

.search-icon {
  padding: 0 8px 0 12px;
  font-size: 16px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--ink);
  padding: 10px 4px;
  min-width: 0;
}

.search-submit {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--gold), #9C7836);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  letter-spacing: 3px;
  cursor: pointer;
}

.search-meta {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
  color: var(--ink-fade);
  margin-bottom: 20px;
  text-align: center;
}

.search-empty {
  text-align: center;
  padding: 60px 20px;
}

.search-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.search-empty p {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.search-empty-hint {
  font-size: 13px !important;
  color: var(--ink-fade) !important;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-result-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid rgba(184,146,78,0.15);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s;
  animation: revealUp 0.5s ease-out both;
}

.search-result-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(184,146,78,0.1);
}

.result-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--gold);
  flex-shrink: 0;
  background: var(--bg-soft);
}

.result-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-photo-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 22px;
}

.result-info { flex: 1; min-width: 0; }

.result-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 2px;
  margin: 0 0 3px;
  font-weight: 500;
}

.result-years {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--gold-deep);
  margin-bottom: 3px;
}

.result-bio {
  font-family: 'Noto Serif SC', serif;
  font-size: 11px;
  color: var(--ink-fade);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-arrow {
  color: var(--gold);
  font-size: 18px;
  flex-shrink: 0;
  opacity: 0.3;
  transition: opacity 0.2s;
}

.search-result-card:hover .result-arrow {
  opacity: 1;
}
/* ============================================================
   🖥 Desktop 适配 — 打开宽度
   手机保持不变，桌面展开
   ============================================================ */

/* 全局 section inner 桌面加宽 */
@media (min-width: 768px) {
  .home-section-inner {
    max-width: 960px;
  }

  /* Hero 区桌面更大气 */
  .home-hero {
    min-height: 75vh;
    padding: 80px 40px 60px;
  }

  .home-hero-content {
    max-width: 700px;
  }

  .home-watermark {
    font-size: 400px;
  }

  .home-logo-mark {
    width: 100px;
    height: 100px;
  }

  .home-headline {
    font-size: 36px;
    letter-spacing: 10px;
  }

  .home-tagline {
    font-size: 16px;
    letter-spacing: 2px;
    line-height: 2.2;
  }

  .home-btn-primary,
  .home-btn-outline {
    padding: 14px 36px;
    font-size: 15px;
    letter-spacing: 4px;
  }

  /* 搜索框桌面 */
  .home-search {
    padding: 24px 40px 32px;
  }

  .home-search-wrap {
    max-width: 640px;
    margin: 0 auto;
  }

  .home-search-input {
    font-size: 16px;
    padding: 12px 8px;
  }

  .home-search-btn {
    padding: 12px 28px;
    font-size: 14px;
  }

  /* 如何使用 桌面 4 列 */
  .home-how {
    padding: 56px 40px;
  }

  .home-how-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 960px;
  }

  .how-card {
    padding: 30px 20px 24px;
  }

  .how-num {
    font-size: 32px;
  }

  .how-title-text {
    font-size: 16px;
  }

  .how-desc-text {
    font-size: 12px;
  }

  /* 名人纪念馆 桌面 3 列 */
  .home-herohall {
    padding: 56px 40px;
  }

  .herohall-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 960px;
  }

  .herohall-card {
    padding: 28px 16px 22px;
  }

  .herohall-photo {
    width: 90px;
    height: 90px;
  }

  .herohall-name {
    font-size: 17px;
    letter-spacing: 3px;
  }

  .herohall-years {
    font-size: 12px;
  }

  .herohall-bio {
    font-size: 12px;
  }

  /* 工具区 桌面 4 列 */
  .home-tools {
    padding: 56px 40px;
  }

  .home-tools-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 960px;
  }

  .home-tool-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px;
    gap: 8px;
  }

  .home-tool-emoji {
    font-size: 32px;
  }

  .home-tool-name {
    font-size: 14px;
    letter-spacing: 2px;
  }

  /* 关于区 桌面 */
  .home-about {
    padding: 64px 40px;
  }

  .home-about-watermark {
    font-size: 240px;
  }

  .home-about-content {
    max-width: 600px;
  }

  .home-about-title {
    font-size: 24px;
    letter-spacing: 6px;
  }

  .home-about-text {
    font-size: 15px;
    line-height: 2.2;
  }

  /* Section 标题桌面 */
  .home-section-title {
    font-size: 26px;
    letter-spacing: 12px;
    margin-bottom: 10px;
  }

  .home-section-subtitle {
    font-size: 13px;
    letter-spacing: 4px;
    margin-bottom: 30px;
  }

  /* 搜索结果页 桌面 */
  .search-container {
    max-width: 800px;
  }

  .search-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .search-result-card {
    padding: 18px 20px;
  }

  /* 工具页桌面 */
  .tools-container {
    max-width: 720px;
  }

  .tools-grid {
    gap: 18px;
  }

  .tool-card {
    padding: 32px 20px 28px;
  }
}

/* 大屏（1200px+） */
@media (min-width: 1200px) {
  .home-section-inner {
    max-width: 1080px;
  }

  .home-hero {
    min-height: 80vh;
  }

  .home-hero-content {
    max-width: 800px;
  }

  .home-watermark {
    font-size: 500px;
  }

  .home-headline {
    font-size: 40px;
    letter-spacing: 14px;
  }

  .home-tagline {
    font-size: 17px;
  }

  .home-how-grid,
  .herohall-grid,
  .home-tools-grid {
    max-width: 1080px;
  }

  .herohall-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .herohall-card {
    padding: 32px 20px 26px;
  }

  .herohall-photo {
    width: 100px;
    height: 100px;
  }
}
/* ============================================================
   📖 关于我们 · About Page
   ============================================================ */

.about-page {
  background: linear-gradient(180deg, var(--bg), #EDE4D3);
}

/* ===== Hero ===== */
.about-hero {
  position: relative;
  padding: 60px 20px 44px;
  text-align: center;
  overflow: hidden;
}

.about-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ab-particle {
  position: absolute; border-radius: 50%;
  background: rgba(184,146,78,0.2);
  animation: particleDrift var(--dur, 10s) ease-in-out infinite;
}

.about-watermark {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'ZCOOL XiaoWei', serif; font-size: 260px;
  color: rgba(184,146,78,0.04); font-weight: 900;
  pointer-events: none; user-select: none;
  animation: watermarkFloat 14s ease-in-out infinite;
}

.about-hero-content { position: relative; z-index: 1; }

.about-logo { margin-bottom: 16px; }
.about-logo-mark {
  display: block;
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto;
  animation: logoPulse 3s ease-in-out infinite;
}

.about-hero-title {
  font-family: 'Noto Serif SC', serif; font-size: 28px; color: var(--ink);
  letter-spacing: 8px; margin: 0 0 10px; font-weight: 500;
}

.about-hero-sub {
  font-family: 'Noto Serif SC', serif; font-size: 13px; color: var(--ink-fade);
  letter-spacing: 3px; margin: 0;
}

.animate-about {
  opacity: 0; transform: translateY(28px);
  animation: heroFadeUp 0.8s cubic-bezier(0.22,1,0.36,1) forwards;
}

/* ===== Body ===== */
.about-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

@media (min-width: 768px) {
  .about-body { max-width: 780px; }
  .about-hero-title { font-size: 34px; letter-spacing: 12px; }
  .about-watermark { font-size: 380px; }
}

.about-section { margin-bottom: 8px; }

/* ===== Section Heading ===== */
.about-section-heading {
  font-family: 'Noto Serif SC', serif; font-size: 20px; color: var(--ink);
  letter-spacing: 8px; text-align: center; margin: 0 0 20px;
  font-weight: 500; padding-left: 8px;
}

.about-section-subtext {
  font-family: 'Noto Serif SC', serif; font-size: 13px; color: var(--ink-fade);
  text-align: center; letter-spacing: 2px; margin: -12px 0 24px;
}

@media (min-width: 768px) {
  .about-section-heading { font-size: 24px; letter-spacing: 10px; }
}

/* ===== Divider ===== */
.about-divider {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 40px 0; padding: 0 20px;
}
.about-divider::before, .about-divider::after {
  content: ''; flex: 1; max-width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,146,78,0.3));
}
.about-divider::after {
  background: linear-gradient(90deg, rgba(184,146,78,0.3), transparent);
}
.about-divider span {
  color: var(--gold); font-family: 'Noto Serif SC', serif;
  font-size: 16px; letter-spacing: 4px;
}

/* ===== Mission Card ===== */
.about-mission-card {
  background: rgba(252,250,243,0.9);
  border: 1px solid rgba(184,146,78,0.15);
  border-radius: 14px; padding: 36px 28px;
  text-align: center; position: relative; overflow: hidden;
}

.about-card-topline {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.about-mission-text {
  font-family: 'Noto Serif SC', serif; font-size: 15px; color: #5A4A38;
  line-height: 2.2; margin: 0 0 12px; letter-spacing: 1px;
}
.about-mission-text:last-of-type { margin-bottom: 0; }

.about-highlight {
  color: var(--gold-deep); font-weight: 500;
}

/* ===== Values Grid ===== */
.about-values-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

@media (min-width: 768px) {
  .about-values-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

.about-value-card {
  background: rgba(252,250,243,0.9);
  border: 1px solid rgba(184,146,78,0.12);
  border-radius: 12px; padding: 24px 16px;
  text-align: center; position: relative; overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-value-card::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.3s;
}

.about-value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184,146,78,0.35);
  box-shadow: 0 8px 24px rgba(184,146,78,0.12);
}

.about-value-card:hover::after { opacity: 1; }

.about-value-icon { font-size: 32px; margin-bottom: 10px; }

.about-value-title {
  font-family: 'Noto Serif SC', serif; font-size: 15px; color: var(--ink);
  letter-spacing: 2px; margin: 0 0 6px; font-weight: 500;
}

.about-value-desc {
  font-family: 'Noto Serif SC', serif; font-size: 12px; color: var(--ink-fade);
  line-height: 1.8; margin: 0;
}

/* ===== Founder Card ===== */
.about-founder-card {
  background: rgba(252,250,243,0.9);
  border: 1px solid rgba(184,146,78,0.15);
  border-radius: 14px; padding: 36px 28px;
  text-align: center; position: relative;
}

.about-founder-quote-mark {
  font-family: 'Noto Serif SC', serif; font-size: 48px;
  color: rgba(184,146,78,0.2); line-height: 1; margin-bottom: 8px;
}

.about-founder-text {
  font-family: 'Noto Serif SC', serif; font-size: 14px; color: #5A4A38;
  line-height: 2.2; margin: 0 0 16px; letter-spacing: 0.5px;
  font-style: normal; text-align: left;
  border: none; padding: 0;
}
.about-founder-text:last-of-type { margin-bottom: 0; }

.about-founder-sign {
  margin-top: 24px; display: flex; align-items: center;
  justify-content: flex-end; gap: 12px;
}

.about-founder-line {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,146,78,0.4));
}

.about-founder-name {
  font-family: 'Noto Serif SC', serif; font-size: 14px;
  color: var(--gold-deep); letter-spacing: 3px; font-weight: 500;
}

/* ===== Privacy Grid ===== */
.about-privacy-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}

@media (min-width: 600px) {
  .about-privacy-grid { grid-template-columns: repeat(3, 1fr); }
}

.about-privacy-card {
  background: rgba(252,250,243,0.9);
  border: 1px solid rgba(184,146,78,0.12);
  border-radius: 12px; padding: 28px 20px;
  text-align: center; position: relative;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-privacy-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(184,146,78,0.1);
}

.about-privacy-card-mid {
  border-color: rgba(184,146,78,0.35);
  background: linear-gradient(135deg, rgba(184,146,78,0.06), rgba(252,250,243,0.95));
}

.about-privacy-icon { font-size: 36px; margin-bottom: 10px; }

.about-privacy-level {
  font-family: 'Noto Serif SC', serif; font-size: 18px; color: var(--ink);
  letter-spacing: 4px; margin: 0 0 8px; font-weight: 500;
}

.about-privacy-desc {
  font-family: 'Noto Serif SC', serif; font-size: 12px; color: var(--ink-fade);
  line-height: 1.85; margin: 0;
}

.about-privacy-badge {
  display: inline-block; margin-top: 12px;
  padding: 3px 14px;
  background: linear-gradient(135deg, var(--gold), #D4A852);
  color: #fff; border-radius: 12px;
  font-family: 'Noto Serif SC', serif; font-size: 11px;
  letter-spacing: 2px;
}

/* ===== Timeline ===== */
.about-timeline {
  max-width: 500px; margin: 0 auto;
}

.about-tl-item {
  display: flex; gap: 14px; margin-bottom: 20px;
}

.about-tl-year {
  width: 50px; flex-shrink: 0; text-align: right;
  font-family: 'Noto Serif SC', serif; font-size: 14px;
  color: var(--gold-deep); font-weight: 500;
  padding-top: 2px; letter-spacing: 1px;
}

.about-tl-dot-wrap {
  width: 14px; display: flex; flex-direction: column;
  align-items: center; flex-shrink: 0;
}

.about-tl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(184,146,78,0.3); margin-top: 5px;
  transition: all 0.5s;
}

.revealed .about-tl-dot {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(184,146,78,0.4);
}

.about-tl-line {
  width: 1px; flex: 1; background: rgba(184,146,78,0.2); margin-top: 4px;
}

.about-tl-content { flex: 1; padding-bottom: 6px; }

.about-tl-title {
  font-family: 'Noto Serif SC', serif; font-size: 15px; color: var(--ink);
  margin: 0 0 4px; font-weight: 500; letter-spacing: 1px;
}

.about-tl-desc {
  font-family: 'Noto Serif SC', serif; font-size: 12px; color: var(--ink-fade);
  line-height: 1.85; margin: 0;
}

/* ===== Promise Card ===== */
.about-promise-card {
  background: linear-gradient(135deg, #1F1A14, #2D2419);
  border-radius: 14px; padding: 36px 28px; text-align: center;
}

.about-promise-title {
  font-family: 'Noto Serif SC', serif; font-size: 20px;
  background: linear-gradient(135deg, #F5C66A, #B8924E);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 6px; margin: 0 0 24px; font-weight: 500;
}

.about-promise-list {
  text-align: left; max-width: 360px; margin: 0 auto;
}

.about-promise-item {
  font-family: 'Noto Serif SC', serif; font-size: 14px;
  color: rgba(245,239,227,0.7); line-height: 2.4; letter-spacing: 1.5px;
}

/* ===== CTA ===== */
.about-cta-section {
  text-align: center; padding: 8px 0 0;
}

.about-cta-title {
  font-family: 'Noto Serif SC', serif; font-size: 22px; color: var(--ink);
  letter-spacing: 6px; margin: 0 0 10px; font-weight: 500;
}

.about-cta-text {
  font-family: 'Noto Serif SC', serif; font-size: 13px; color: var(--ink-fade);
  letter-spacing: 2px; line-height: 2; margin: 0 0 22px;
}

.about-cta-btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
/* ============================================================
   📞 联系我们 · Contact Page
   ============================================================ */

/* ===== 联系方式卡片 ===== */
.contact-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 480px) {
  .contact-methods-grid { grid-template-columns: 1fr; }
}

.contact-method-card {
  background: rgba(252,250,243,0.9);
  border: 1px solid rgba(184,146,78,0.15);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  position: relative;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-method-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(184,146,78,0.1);
}

.contact-method-wa {
  border-color: rgba(37,211,102,0.25);
  background: linear-gradient(135deg, rgba(37,211,102,0.03), rgba(252,250,243,0.95));
}

.contact-method-wa:hover {
  border-color: rgba(37,211,102,0.4);
  box-shadow: 0 6px 20px rgba(37,211,102,0.1);
}

.contact-method-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.contact-method-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 3px;
  margin: 0 0 8px;
  font-weight: 500;
}

.contact-method-value {
  display: inline-block;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 15px;
  color: var(--gold-deep);
  text-decoration: none;
  letter-spacing: 1px;
  padding: 6px 16px;
  border: 1px solid rgba(184,146,78,0.25);
  border-radius: 6px;
  transition: all 0.2s;
  margin-bottom: 8px;
}

.contact-method-value:hover {
  background: rgba(184,146,78,0.08);
  border-color: var(--gold);
}

.contact-method-wa .contact-method-value {
  color: #25D366;
  border-color: rgba(37,211,102,0.3);
}

.contact-method-wa .contact-method-value:hover {
  background: rgba(37,211,102,0.06);
  border-color: #25D366;
}

.contact-method-note {
  font-family: 'Noto Serif SC', serif;
  font-size: 11px;
  color: var(--ink-fade);
  margin: 0;
}

.contact-wa-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  background: #25D366;
  color: #fff;
  border-radius: 10px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 10px;
  letter-spacing: 1px;
}

/* ===== 表单卡片 ===== */
.contact-form-card {
  background: rgba(252,250,243,0.9);
  border: 1px solid rgba(184,146,78,0.15);
  border-radius: 14px;
  padding: 28px 22px;
}

@media (min-width: 768px) {
  .contact-form-card { padding: 36px 32px; }
}

/* 步骤 */
.contact-step {
  margin-bottom: 24px;
}

.contact-step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-weight: 500;
}

.contact-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--gold), #9C7836);
  color: #fff;
  border-radius: 50%;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

/* 类别选择网格 */
.contact-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 480px) {
  .contact-category-grid { grid-template-columns: 1fr 1fr; }
}

.contact-cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  background: #fff;
  border: 1px solid rgba(184,146,78,0.15);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}

.contact-cat-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(184,146,78,0.35);
  box-shadow: 0 4px 12px rgba(184,146,78,0.08);
}

.contact-cat-btn.active {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(184,146,78,0.08), rgba(232,192,120,0.06));
  box-shadow: 0 0 0 2px rgba(184,146,78,0.15);
  transform: translateY(-2px);
}

.cat-emoji {
  font-size: 24px;
}

.cat-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 1px;
}

.contact-cat-btn.active .cat-text {
  color: var(--gold-deep);
  font-weight: 500;
}

/* 输入框 */
.contact-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(184,146,78,0.25);
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Noto Serif SC', serif;
  color: var(--ink);
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: all 0.25s;
}

.contact-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,146,78,0.1);
}

.contact-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(184,146,78,0.25);
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Noto Serif SC', serif;
  color: var(--ink);
  background: #fff;
  outline: none;
  box-sizing: border-box;
  resize: vertical;
  min-height: 100px;
  transition: all 0.25s;
}

.contact-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,146,78,0.1);
}

/* 预览 */
.contact-preview {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: rgba(184,146,78,0.04);
  border: 1px dashed rgba(184,146,78,0.25);
  border-radius: 8px;
}

.contact-preview-label {
  font-family: 'Noto Serif SC', serif;
  font-size: 12px;
  color: var(--gold-deep);
  letter-spacing: 2px;
  margin-bottom: 8px;
  font-weight: 500;
}

.contact-preview-text {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 发送按钮 */
.contact-send-btn {
  width: 100%;
  padding: 15px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  letter-spacing: 4px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-send-btn:disabled {
  background: #ccc;
  color: #999;
  cursor: not-allowed;
}

.contact-send-btn:not(:disabled):hover {
  background: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}

.contact-send-btn:not(:disabled):active {
  transform: translateY(0);
}

.contact-send-icon {
  font-size: 20px;
}

.contact-form-hint {
  text-align: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 11px;
  color: var(--ink-fade);
  margin: 12px 0 0;
  letter-spacing: 1px;
}

/* ===== FAQ 底部说明 ===== */
.contact-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .contact-faq-grid { grid-template-columns: 1fr; }
}

.contact-faq-card {
  background: rgba(252,250,243,0.9);
  border: 1px solid rgba(184,146,78,0.12);
  border-radius: 10px;
  padding: 22px 16px;
  text-align: center;
  transition: all 0.3s;
}

.contact-faq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184,146,78,0.08);
}

.contact-faq-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.contact-faq-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 2px;
  margin: 0 0 6px;
  font-weight: 500;
}

.contact-faq-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 11px;
  color: var(--ink-fade);
  line-height: 1.8;
  margin: 0;
}
/* ============================================================
   🔗 纪念馆至亲关联
   ============================================================ */

/* ===== 管理页 Section ===== */
.link-section {
  margin-bottom: 28px;
}

.link-section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 3px;
  margin: 0 0 14px;
  font-weight: 500;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(184,146,78,0.2);
}

.link-empty {
  text-align: center;
  padding: 30px 16px;
  color: var(--ink-fade);
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
}

/* ===== 关联卡片 ===== */
.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(252,250,243,0.9);
  border: 1px solid rgba(184,146,78,0.15);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.link-card:hover {
  border-color: rgba(184,146,78,0.3);
}

.link-card-pending {
  border-color: rgba(184,146,78,0.4);
  background: linear-gradient(135deg, rgba(184,146,78,0.06), rgba(252,250,243,0.95));
}

.link-card-waiting {
  opacity: 0.7;
}

.link-card-photo {
  width: 46px; height: 46px;
  border-radius: 50%; overflow: hidden;
  border: 1.5px solid var(--gold);
  flex-shrink: 0; background: var(--bg-soft);
}

.link-card-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.link-photo-empty {
  display: flex; width: 100%; height: 100%;
  align-items: center; justify-content: center;
  color: var(--gold); font-size: 20px;
}

.link-card-info { flex: 1; min-width: 0; }

.link-card-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px; color: var(--ink);
  letter-spacing: 2px; font-weight: 500;
}

.link-card-rel {
  font-family: 'Noto Serif SC', serif;
  font-size: 12px; color: var(--gold-deep);
  margin-top: 2px; letter-spacing: 1px;
}

.link-card-years {
  font-size: 11px; color: var(--ink-fade); margin-top: 2px;
}

.link-card-status {
  font-size: 11px; color: var(--ink-fade); margin-top: 2px;
  font-style: italic;
}

.link-card-actions {
  display: flex; gap: 6px; flex-shrink: 0;
}

.link-btn-approve {
  padding: 6px 14px; background: var(--gold); color: #fff;
  border: none; border-radius: 6px; font-size: 12px;
  cursor: pointer; font-family: 'Noto Serif SC', serif; letter-spacing: 1px;
}

.link-btn-reject {
  padding: 6px 14px; background: transparent; color: var(--ink-fade);
  border: 1px solid rgba(184,146,78,0.25); border-radius: 6px;
  font-size: 12px; cursor: pointer; font-family: 'Noto Serif SC', serif;
}

.link-btn-view {
  padding: 6px 12px; background: transparent; color: var(--gold-deep);
  border: 1px solid rgba(184,146,78,0.25); border-radius: 6px;
  font-size: 11px; text-decoration: none; font-family: 'Noto Serif SC', serif;
}

.link-btn-remove {
  padding: 6px 12px; background: transparent; color: #B45A4B;
  border: 1px solid rgba(180,90,75,0.25); border-radius: 6px;
  font-size: 11px; cursor: pointer; font-family: 'Noto Serif SC', serif;
}

/* ===== 添加表单 ===== */
.link-add-form { margin-top: 12px; }

.link-form-group { margin-bottom: 18px; }

.link-form-label {
  display: block; font-family: 'Noto Serif SC', serif;
  font-size: 13px; color: var(--ink-soft);
  margin-bottom: 8px; letter-spacing: 1px;
}

.link-my-list { display: flex; flex-direction: column; gap: 6px; }

.link-my-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #fff;
  border: 1px solid rgba(184,146,78,0.15); border-radius: 8px;
  cursor: pointer; transition: all 0.2s;
}

.link-my-option:hover { border-color: rgba(184,146,78,0.35); }

.link-my-option input[type="radio"] { accent-color: var(--gold); }

.link-my-option:has(input:checked) {
  border-color: var(--gold); background: rgba(184,146,78,0.06);
}

.link-my-name {
  font-family: 'Noto Serif SC', serif; font-size: 14px;
  color: var(--ink); letter-spacing: 1px; flex: 1;
}

.link-my-years {
  font-size: 11px; color: var(--ink-fade);
}

.link-or-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 20px 0; padding: 0 20px;
}

.link-or-line { flex: 1; height: 1px; background: rgba(184,146,78,0.2); }

.link-or-text {
  font-family: 'Noto Serif SC', serif; font-size: 13px;
  color: var(--ink-fade); letter-spacing: 2px;
}

.link-tip {
  padding: 14px 16px; background: rgba(184,146,78,0.04);
  border: 1px dashed rgba(184,146,78,0.2); border-radius: 8px;
  font-family: 'Noto Serif SC', serif; font-size: 12px;
  color: var(--ink-fade); line-height: 1.8;
}

.link-tip p { margin: 4px 0; }

/* ===== 前台显示（纪念馆页底部）===== */
.memorial-links-section {
  margin-top: 36px;
  padding: 28px 16px 20px;
  border-top: 1px dashed rgba(184,146,78,0.2);
}

.memorial-links-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px; color: var(--ink);
  letter-spacing: 6px; text-align: center;
  margin: 0 0 6px; font-weight: 500;
}

.memorial-links-subtitle {
  font-family: 'Noto Serif SC', serif;
  font-size: 11px; color: var(--ink-fade);
  text-align: center; letter-spacing: 2px;
  margin: 0 0 18px;
}

.memorial-links-list {
  display: flex; flex-direction: column; gap: 8px;
  max-width: 400px; margin: 0 auto;
}

.memorial-link-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(252,250,243,0.8);
  border: 1px solid rgba(184,146,78,0.12);
  border-radius: 10px; text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.memorial-link-item:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(184,146,78,0.1);
}

.memorial-link-photo {
  width: 42px; height: 42px; border-radius: 50%;
  overflow: hidden; border: 1.5px solid var(--gold);
  flex-shrink: 0; background: var(--bg-soft);
}

.memorial-link-photo img {
  width: 100%; height: 100%; object-fit: cover;
}

.memorial-link-info { flex: 1; }

.memorial-link-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px; color: var(--ink);
  letter-spacing: 2px;
}

.memorial-link-rel {
  font-family: 'Noto Serif SC', serif;
  font-size: 11px; color: var(--gold-deep);
  letter-spacing: 1px;
}

.memorial-link-years {
  font-size: 10px; color: var(--ink-fade);
}

.memorial-link-arrow {
  color: var(--gold); font-size: 16px; opacity: 0.3;
  transition: opacity 0.2s;
}

.memorial-link-item:hover .memorial-link-arrow { opacity: 1; }

.memorial-links-more {
  text-align: center; margin-top: 10px;
}

.memorial-links-more a {
  font-family: 'Noto Serif SC', serif;
  font-size: 12px; color: var(--gold-deep);
  text-decoration: none; letter-spacing: 1px;
}

/* Fix: 至亲关联区在任何背景下都可见 */
.memorial-links-section {
  background: var(--bg, #F5EFE3) !important;
  position: relative;
  z-index: 5;
  border-radius: 12px 12px 0 0;
  margin-left: -4px;
  margin-right: -4px;
  padding-left: 20px;
  padding-right: 20px;
}

.memorial-page-fullbg .memorial-links-section,
.memorial-page-fullbg.has-bg .memorial-links-section {
  background: rgba(245, 239, 227, 0.95) !important;
  backdrop-filter: blur(8px);
  margin-top: 20px;
}

/* 快捷操作 4 个按钮适配 */
.dash-quick-actions {
  grid-template-columns: 1fr 1fr !important;
}

@media (min-width: 768px) {
  .dash-quick-actions {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* ============================================================
   🖥 Dashboard 桌面加宽
   ============================================================ */
@media (min-width: 768px) {
  .dash-userbar-inner {
    max-width: 960px;
  }
  .dash-content {
    max-width: 960px;
  }
  .dash-tabs {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
  }
  .dash-memorial-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .dash-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  .dash-userbar-inner,
  .dash-content,
  .dash-tabs {
    max-width: 1080px;
  }
}

/* ============================================================
   📝 文章系统
   ============================================================ */
.article-list { display: flex; flex-direction: column; gap: 14px; }

.article-card {
  display: flex; gap: 14px; text-decoration: none;
  background: rgba(252,250,243,0.9); border: 1px solid rgba(184,146,78,0.12);
  border-radius: 10px; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.article-card:hover {
  transform: translateY(-3px); border-color: rgba(184,146,78,0.3);
  box-shadow: 0 6px 20px rgba(184,146,78,0.1);
}

.article-card-img {
  width: 120px; min-height: 100px; flex-shrink: 0; overflow: hidden; background: var(--bg-soft);
}
.article-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card-placeholder {
  display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 32px;
}

.article-card-body { flex: 1; padding: 14px 14px 14px 0; }

.article-card-cat {
  display: inline-block; padding: 2px 10px; background: rgba(184,146,78,0.08);
  border-radius: 10px; font-size: 10px; color: var(--gold-deep); letter-spacing: 1px; margin-bottom: 6px;
}

.article-card-title {
  font-family: 'Noto Serif SC', serif; font-size: 16px; color: var(--ink);
  letter-spacing: 1px; margin: 0 0 6px; font-weight: 500; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.article-card-excerpt {
  font-family: 'Noto Serif SC', serif; font-size: 12px; color: var(--ink-fade);
  line-height: 1.6; margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.article-card-meta { font-size: 11px; color: var(--ink-fade); }

/* 文章正文内容 */
.article-content {
  font-family: 'Noto Serif SC', serif; font-size: 16px; color: var(--ink-soft);
  line-height: 2.2; letter-spacing: 0.5px;
}
.article-content h2 {
  font-size: 22px; color: var(--ink); letter-spacing: 3px;
  margin: 32px 0 14px; font-weight: 500; border-left: 3px solid var(--gold); padding-left: 12px;
}
.article-content h3 {
  font-size: 18px; color: var(--ink); letter-spacing: 2px; margin: 24px 0 10px; font-weight: 500;
}
.article-content p { margin: 0 0 16px; }
.article-content img {
  max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0;
}
.article-content blockquote {
  border-left: 3px solid var(--gold); padding: 12px 16px; margin: 16px 0;
  background: rgba(184,146,78,0.04); border-radius: 0 6px 6px 0;
  font-style: italic; color: var(--ink-fade);
}
.article-content ul, .article-content ol { padding-left: 20px; margin: 12px 0; }
.article-content li { margin: 6px 0; }
.article-content a { color: var(--gold-deep); text-decoration: underline; }
.article-content table {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px;
}
.article-content th, .article-content td {
  border: 1px solid rgba(184,146,78,0.2); padding: 8px 12px; text-align: left;
}
.article-content th { background: rgba(184,146,78,0.06); font-weight: 500; }

@media (min-width: 768px) {
  .article-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .article-card { flex-direction: column; }
  .article-card-img { width: 100%; height: 160px; }
  .article-card-body { padding: 14px; }
}

/* ===== 首页文章卡片（横版：左图右标题）===== */
.home-articles {
  padding: 44px 20px;
  background: rgba(252,250,243,0.95);
  border-top: 1px dashed rgba(184,146,78,0.2);
}

.home-article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}

.home-article-card {
  display: flex;
  gap: 12px;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(184,146,78,0.12);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184,146,78,0.3);
  box-shadow: 0 6px 16px rgba(184,146,78,0.1);
}

.home-article-img {
  width: 110px;
  min-height: 80px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-soft);
}

.home-article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-article-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.home-article-info {
  flex: 1;
  padding: 10px 12px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.home-article-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 1px;
  margin: 0 0 4px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-article-excerpt {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  color: var(--ink-fade);
  margin: 0 0 4px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-article-date {
  font-size: 10px;
  color: var(--ink-fade);
}

/* Mobile: 显示 4 个，隐藏第 5-6 个 */
.home-article-desktop-only {
  display: none;
}

/* Desktop: 显示全部 6 个，2 列 */
@media (min-width: 768px) {
  .home-article-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 960px;
  }

  .home-article-desktop-only {
    display: flex;
  }

  .home-article-img {
    width: 130px;
    min-height: 90px;
  }

  .home-article-title {
    font-size: 15px;
  }
}

@media (min-width: 1200px) {
  .home-article-grid {
    max-width: 1080px;
  }

  .home-article-img {
    width: 150px;
  }
}

/* 修复：献祭物品图片溢出 */
.opt-icon {
  overflow: hidden !important;
  position: relative;
}

.opt-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
}

/* =============================================================
   HOMEPAGE V2 — 重新设计
   ============================================================= */

/* ----- 宽容器（替换旧的 560px 限制） ----- */
.home-wide-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- Section 装饰符号 ----- */
.home-section-ornament {
  font-size: 18px;
  text-align: center;
  color: var(--gold);
  margin-bottom: 8px;
  opacity: 0.7;
}

/* ----- Hero 背景图 ----- */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
  overflow: hidden;
  background: #1C1610;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  animation: heroBgDrift 20s ease-in-out infinite alternate;
}

@keyframes heroBgDrift {
  from { transform: scale(1.04) translateY(0); }
  to   { transform: scale(1.08) translateY(-12px); }
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20,14,8,0.45) 0%,
    rgba(20,14,8,0.62) 55%,
    rgba(20,14,8,0.80) 100%
  );
}


.home-hero .home-headline {
  color: #F5EFE3;
  font-size: 32px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.home-hero .home-tagline {
  color: rgba(245,239,227,0.75);
}

.home-btn-ghost {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid rgba(245,239,227,0.45);
  color: rgba(245,239,227,0.9);
  border-radius: 6px;
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  letter-spacing: 3px;
  text-decoration: none;
  transition: all 0.3s;
  background: transparent;
}

.home-btn-ghost:hover {
  border-color: rgba(212,168,90,0.7);
  background: rgba(212,168,90,0.12);
  color: #D4A85A;
}

.home-hero-scroll {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.hero-scroll-dot {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(212,168,90,0.7), transparent);
  animation: scrollDotPulse 2s ease-in-out infinite;
}

@keyframes scrollDotPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

.home-search .home-section-inner {
  max-width: 640px;
}

/* ----- How it works ----- */
.home-how {
  padding: 64px 20px;
  background: var(--bg);
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.home-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 10px);
  right: calc(12.5% + 10px);
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(184,146,78,0.3) 20%, rgba(184,146,78,0.3) 80%, transparent);
}

.home-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  line-height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #9C7836);
  color: #fff;
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: 22px;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(184,146,78,0.25);
}

.step-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 2px;
  margin: 0 0 8px;
  font-weight: 500;
}

.step-desc {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: var(--ink-fade);
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 700px) {
  .home-steps {
    grid-template-columns: 1fr 1fr;
    gap: 24px 12px;
  }
  .home-steps::before { display: none; }
}

@media (max-width: 400px) {
  .home-steps { grid-template-columns: 1fr; gap: 20px; }
}

/* ----- Hero Hall — wider grid ----- */
.home-herohall {
  padding: 64px 20px;
  background: rgba(252,250,243,0.95);
  border-top: 1px solid rgba(184,146,78,0.1);
}

.home-herohall .herohall-grid {
  max-width: 900px;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

@media (max-width: 800px) {
  .home-herohall .herohall-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 500px) {
  .home-herohall .herohall-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ----- Quote Banner ----- */
.home-quote-banner {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-quote-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 0.8s ease;
}

.home-quote-banner:hover .home-quote-bg {
  transform: scale(1.09);
}

.home-quote-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,20,10,0.72) 0%, rgba(30,20,10,0.55) 100%);
}

.home-quote-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
}

.home-quote-ornament {
  font-size: 20px;
  color: rgba(212,168,90,0.8);
  margin-bottom: 16px;
}

.home-quote-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  color: #F5EFE3;
  letter-spacing: 5px;
  font-weight: 400;
  margin: 0 0 16px;
  line-height: 1.8;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.home-quote-text cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: rgba(212,168,90,0.85);
  letter-spacing: 4px;
  margin-top: 10px;
}

.home-btn-quote {
  display: inline-block;
  margin-top: 24px;
  padding: 11px 28px;
  border: 1px solid rgba(212,168,90,0.6);
  color: rgba(245,239,227,0.9);
  border-radius: 4px;
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  letter-spacing: 3px;
  text-decoration: none;
  transition: all 0.3s;
  background: rgba(212,168,90,0.1);
}

.home-btn-quote:hover {
  background: rgba(212,168,90,0.22);
  border-color: rgba(212,168,90,0.9);
  color: #F5EFE3;
}

@media (max-width: 600px) {
  .home-quote-text { font-size: 17px; letter-spacing: 3px; }
  .home-quote-banner { min-height: 300px; }
}

/* ----- Tools — wider ----- */
.home-tools {
  padding: 64px 20px;
  background: var(--bg);
  border-top: 1px solid rgba(184,146,78,0.1);
}

.home-tools .home-tools-grid {
  max-width: 900px;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 700px) {
  .home-tools .home-tools-grid { grid-template-columns: 1fr 1fr; }
}

/* ----- Articles — wider grid ----- */
.home-articles {
  padding: 64px 20px;
  background: rgba(252,250,243,0.95);
  border-top: 1px solid rgba(184,146,78,0.1);
}

.home-articles .home-article-grid {
  max-width: 900px;
  margin: 0 auto;
}

/* ----- About — split layout ----- */
.home-about {
  padding: 0;
  background: var(--bg);
  border-top: 1px solid rgba(184,146,78,0.1);
  overflow: hidden;
}

.home-about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  max-width: 1200px;
  margin: 0 auto;
}

.home-about-image-wrap {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.home-about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.home-about-inner:hover .home-about-img {
  transform: scale(1.04);
}

.home-about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(245,239,227,0) 60%, var(--bg) 100%);
}

.home-about-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
  background: var(--bg);
}

.home-about-text-wrap .home-about-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 4px;
  font-weight: 500;
  margin: 12px 0 16px;
  line-height: 1.6;
}

.home-about-text-wrap .home-about-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--ink-fade);
  line-height: 2;
  margin: 0 0 24px;
  letter-spacing: 1px;
}

@media (max-width: 750px) {
  .home-about-inner { grid-template-columns: 1fr; }
  .home-about-image-wrap { min-height: 220px; }
  .home-about-img-overlay {
    background: linear-gradient(to bottom, rgba(245,239,227,0) 60%, var(--bg) 100%);
  }
  .home-about-text-wrap { padding: 36px 24px; }
  .home-about-text-wrap .home-about-title { font-size: 18px; }
}

.home-wide-inner .home-section-title,
.home-wide-inner .home-section-subtitle,
.home-wide-inner .home-section-ornament,
.home-wide-inner .home-tools-more {
  text-align: center;
}
