/* ========== 少女心配色系统 ========== */
:root {
  --peach: #F7C5CC;
  --peach-deep: #E89BA7;
  --peach-soft: #FCE4EC;
  --lavender: #D4C5E8;
  --lavender-deep: #B39DDB;
  --lavender-soft: #EDE7F6;
  --cream: #FFF8F4;
  --cream-pink: #FDF2F0;
  --rose-ink: #5C3A46;
  --rose-ink-soft: #8C6A76;
  --rose-ink-faint: #B89BA6;
  --gold-soft: #E8C4A0;
  --gold-line: #F0D9C0;
  --line: #F5E0E4;
  --accent: #D98BA0;
  /* 圆润饱满圆角体系 */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
}

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

/* ========== 少女心背景：多层渐变 + 装饰图案 ========== */
html, body {
  min-height: 100vh;
}

body {
  font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', 'Source Han Serif CN', Georgia, 'Times New Roman', serif;
  color: var(--rose-ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.03em;
  background-color: var(--cream);
  background-image:
    /* 星光点点 */
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.9) 1px, transparent 1.5px),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.8) 1px, transparent 1.5px),
    radial-gradient(circle at 45% 70%, rgba(255, 255, 255, 0.7) 1px, transparent 1.5px),
    radial-gradient(circle at 70% 45%, rgba(255, 255, 255, 0.85) 1px, transparent 1.5px),
    radial-gradient(circle at 25% 85%, rgba(255, 255, 255, 0.75) 1px, transparent 1.5px),
    radial-gradient(circle at 92% 78%, rgba(255, 255, 255, 0.9) 0.8px, transparent 1.2px),
    /* 淡爱心图案（用CSS渐变模拟花瓣/心形感） */
    radial-gradient(ellipse 18px 14px at 8% 35%, rgba(247, 197, 204, 0.28), transparent 70%),
    radial-gradient(ellipse 22px 16px at 92% 55%, rgba(212, 197, 232, 0.26), transparent 70%),
    radial-gradient(ellipse 16px 12px at 35% 8%, rgba(247, 197, 204, 0.22), transparent 70%),
    radial-gradient(ellipse 20px 15px at 60% 92%, rgba(232, 155, 167, 0.18), transparent 70%),
    /* 主渐变（左上樱花 → 右上奶油 → 右下薰衣草） */
    linear-gradient(135deg,
      #FCE4EC 0%,
      #FFF8F4 32%,
      #FBF5F0 58%,
      #EDE7F6 100%);
  background-size:
    260px 260px,
    320px 320px,
    220px 220px,
    280px 280px,
    300px 300px,
    240px 240px,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%;
  background-attachment: fixed;
}

/* 全局装饰容器（header/footer/content 底部装饰） */
#app {
  min-height: 100vh;
  position: relative;
}

#app::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    /* 右上樱花花瓣角饰 */
    radial-gradient(ellipse 80px 50px at calc(100% - 30px) 20px, rgba(247, 197, 204, 0.35), transparent 70%),
    radial-gradient(ellipse 60px 40px at calc(100% - 70px) 60px, rgba(247, 197, 204, 0.28), transparent 70%),
    /* 左下薰衣草角饰 */
    radial-gradient(ellipse 90px 55px at 24px calc(100% - 20px), rgba(212, 197, 232, 0.32), transparent 70%),
    radial-gradient(ellipse 65px 42px at 70px calc(100% - 60px), rgba(179, 157, 219, 0.22), transparent 70%);
  background-attachment: fixed;
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 64px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* ========== 顶部导航（两行式：row1 = logo+主导航，row2 = 搜索栏） ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg,
    rgba(252, 228, 236, 0.85) 0%,
    rgba(255, 248, 244, 0.94) 55%,
    rgba(255, 248, 244, 0.85) 100%);
  border-bottom: 1px solid rgba(245, 224, 228, 0.7);
  position: relative;
  z-index: 2;
  padding: 22px 0 18px;
  margin: 0 auto;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.site-header-row-1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 18px;
}

.site-header-row-2 {
  display: flex;
  justify-content: center;
  padding-top: 6px;
  padding-bottom: 8px;
}

.site-header-row-2 .search-box {
  width: 100%;
  max-width: 560px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  padding: 0 22px;
  border: 1px solid rgba(245, 224, 228, 0.6);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(4px);
}

.site-header-row-2 .search-box input {
  width: 100%;
  flex: 1;
}

.site-top-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
}

.site-nav-link {
  font-size: 16px;
  color: var(--rose-ink);
  text-decoration: none;
  letter-spacing: 0.18em;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
  font-family: 'Noto Serif SC', 'Songti SC', Georgia, serif;
  cursor: pointer;
}

.site-nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, var(--peach-deep), var(--lavender-deep));
  transition: transform 0.35s ease;
}

.site-nav-link:hover {
  color: var(--peach-deep);
}

.site-nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.site-nav-link--active {
  color: var(--peach-deep);
}

.site-nav-link--active::after {
  transform: translateX(-50%) scaleX(1);
}

.header-content,
.site-top-nav-inner {
  display: none;
}

.logo {
  font-size: 20px;
  font-weight: 500;
  color: var(--rose-ink);
  text-decoration: none;
  letter-spacing: 0.35em;
  font-family: 'Noto Serif SC', 'Songti SC', Georgia, serif;
  flex-shrink: 0;
}

.logo em {
  font-style: italic;
  color: var(--peach-deep);
  font-weight: 500;
}

.search-box {
  display: flex;
  align-items: center;
  background: transparent;
  padding: 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.4s ease;
}

.search-box:focus-within {
  border-color: var(--peach-deep);
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  padding: 8px 4px;
  font-family: inherit;
  color: var(--rose-ink);
  font-size: 14px;
  width: 200px;
  letter-spacing: 0.05em;
}

.search-box input::placeholder {
  color: var(--rose-ink-faint);
  letter-spacing: 0.1em;
}

.search-box button {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--rose-ink-faint);
  padding: 4px;
  transition: color 0.3s ease;
}

.search-box button:hover {
  color: var(--peach-deep);
}

/* ========== Hero 区域 ========== */
.hero {
  padding: 88px 0 60px;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg,
    rgba(252, 228, 236, 0.4) 0%,
    rgba(255, 248, 244, 0.3) 50%,
    rgba(237, 231, 246, 0.35) 100%);
  border-radius: var(--radius-xl);
  margin-top: 32px;
  padding-left: 36px;
  padding-right: 36px;
  backdrop-filter: blur(4px);
}

.hero::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  max-width: 80vw;
  height: 320px;
  background:
    radial-gradient(ellipse at center, rgba(247, 197, 204, 0.22) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.5em;
  color: var(--lavender-deep);
  margin-bottom: 28px;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hero-title {
  font-size: 44px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--rose-ink);
  margin-bottom: 24px;
  line-height: 1.5;
}

.hero-title em {
  font-style: italic;
  color: var(--peach-deep);
  font-weight: 500;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--rose-ink-soft);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  line-height: 2.2;
}

.hero-poem {
  font-size: 13px;
  color: var(--rose-ink-faint);
  letter-spacing: 0.35em;
  margin-top: 36px;
  padding-top: 32px;
  position: relative;
  font-style: italic;
}

.hero-poem::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--peach), transparent);
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0 44px;
  }
  .hero-title {
    font-size: 28px;
    letter-spacing: 0.12em;
  }
  .hero-subtitle {
    font-size: 14px;
    line-height: 2;
  }
}

/* ========== 筛选栏 ========== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px 56px;
  padding: 28px 32px;
  margin: 16px 0 0;
  border-top: none;
  border-bottom: none;
  background: linear-gradient(90deg,
    rgba(252, 228, 236, 0.35) 0%,
    rgba(255, 248, 244, 0.6) 50%,
    rgba(237, 231, 246, 0.35) 100%);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 16px rgba(247, 197, 204, 0.1);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.filter-group-label {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--rose-ink-faint);
  white-space: nowrap;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}

.filter-chip {
  font-size: 14px;
  color: var(--rose-ink-soft);
  cursor: pointer;
  padding: 4px 0;
  letter-spacing: 0.12em;
  transition: color 0.3s ease;
  position: relative;
}

.filter-chip::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--peach-deep), var(--lavender-deep));
  transition: width 0.35s ease;
}

.filter-chip:hover {
  color: var(--rose-ink);
}

.filter-chip.active {
  color: var(--peach-deep);
}

.filter-chip.active::after {
  width: 100%;
}

@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding: 28px 0;
  }
  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }
}

/* ========== 商品网格 ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 22px;
  padding: 40px 0;
}

@media (max-width: 1440px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px 22px;
  }
}

@media (max-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 20px;
  }
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 18px;
    padding: 32px 0;
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
    padding: 24px 0;
  }
}

@media (max-width: 400px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px 0;
  }
}

.product-card {
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease, box-shadow 0.4s ease;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 10px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 18px rgba(247, 197, 204, 0.12);
  min-width: 0;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  opacity: 0.97;
  box-shadow: 0 10px 26px rgba(232, 155, 167, 0.18);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--peach-soft), var(--lavender-soft));
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
}

.product-card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 60%, rgba(255, 248, 244, 0.15) 100%);
  pointer-events: none;
}

.product-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.04);
}

.product-save-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  background: rgba(255, 248, 244, 0.95);
  color: var(--peach-deep);
  font-size: 10px;
  letter-spacing: 0.12em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  backdrop-filter: blur(4px);
  border-radius: 999px;
}

.product-card-category {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--lavender-deep);
  margin-bottom: 6px;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding: 0 2px;
}

.product-card-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--rose-ink);
  margin-bottom: 4px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2px;
}

.product-card-desc {
  font-size: 11.5px;
  color: var(--rose-ink-faint);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.7;
  letter-spacing: 0.02em;
  padding: 0 2px;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  padding: 0 2px;
}

.price-now {
  font-size: 18px;
  font-weight: 400;
  color: var(--peach-deep);
  letter-spacing: 0.02em;
  font-family: Georgia, 'Times New Roman', serif;
}

.price-was {
  font-size: 11.5px;
  color: var(--rose-ink-faint);
  text-decoration: line-through;
}

.product-card-platform {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--rose-ink-faint);
  margin-bottom: 12px;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding: 0 2px;
}

.btn-copy-all {
  width: calc(100% - 4px);
  margin: 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 0.25em;
  cursor: pointer;
  transition: all 0.35s ease;
  border: none;
  background: linear-gradient(135deg, var(--rose-ink) 0%, #7A4A5A 100%);
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
}

.btn-copy-all::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(247, 197, 204, 0.3),
    transparent);
  transition: left 0.5s ease;
}

.btn-copy-all:hover {
  background: linear-gradient(135deg, var(--peach-deep) 0%, var(--lavender-deep) 100%);
  transform: translateY(-1px);
}

.btn-copy-all:hover::before {
  left: 100%;
}

.btn-copy-all.copied {
  background: linear-gradient(135deg, var(--peach) 0%, var(--lavender) 100%);
  color: var(--rose-ink);
}

.btn-copy-all svg {
  width: 14px;
  height: 14px;
}

/* ========== 空状态 & 分页 ========== */
.empty-state {
  text-align: center;
  padding: 100px 0;
  color: var(--rose-ink-faint);
  font-size: 14px;
  letter-spacing: 0.3em;
  font-style: italic;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-xl);
  margin: 16px 0;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 24px 0 88px;
}

.pagination button {
  padding: 10px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--rose-ink-soft);
  transition: color 0.3s ease;
  border-bottom: 1px solid transparent;
  text-transform: uppercase;
}

.pagination button:hover:not(:disabled) {
  color: var(--peach-deep);
  border-bottom-color: var(--peach-deep);
}

.pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination span {
  font-size: 13px;
  color: var(--rose-ink-faint);
  letter-spacing: 0.2em;
  font-family: Georgia, 'Times New Roman', serif;
}

.content-area {
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ========== 商品详情 ========== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  padding: 88px 0;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 48px 24px;
  }
}

.product-detail-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: linear-gradient(135deg, var(--peach-soft), var(--lavender-soft));
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(232, 155, 167, 0.2);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-label {
  font-size: 11px;
  letter-spacing: 0.5em;
  color: var(--lavender-deep);
  margin-bottom: 22px;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.product-detail-info h1 {
  font-size: 30px;
  font-weight: 500;
  color: var(--rose-ink);
  margin-bottom: 22px;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.product-detail-info .product-desc {
  font-size: 15px;
  color: var(--rose-ink-soft);
  margin-bottom: 36px;
  line-height: 2.1;
  letter-spacing: 0.05em;
}

.price-section {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 44px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.price-section .price-now {
  font-size: 38px;
}

.price-section .price-was {
  font-size: 16px;
}

.detail-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 44px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  text-decoration: none;
  font-weight: 400;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border-radius: 999px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose-ink) 0%, #7A4A5A 100%);
  color: var(--cream);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--peach-deep) 0%, var(--lavender-deep) 100%);
}

.btn-secondary {
  background: transparent;
  color: var(--rose-ink);
  padding: 14px 28px;
  border: 1px solid var(--rose-ink);
}

.btn-secondary:hover {
  color: var(--peach-deep);
  border-color: var(--peach-deep);
}

.btn-detail-copy {
  margin-top: 0;
  flex: 1;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  font-size: 13px;
  color: var(--rose-ink-faint);
  letter-spacing: 0.1em;
  margin-bottom: 52px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========== 使用指引 / 推荐心语 ========== */
.usage-guide {
  padding: 40px 38px;
  background:
    linear-gradient(135deg,
      rgba(252, 228, 236, 0.52) 0%,
      rgba(255, 248, 244, 0.72) 50%,
      rgba(237, 231, 246, 0.48) 100%);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(247, 197, 204, 0.1);
}

.usage-guide::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(247, 197, 204, 0.3), transparent 70%);
  pointer-events: none;
}

.usage-guide::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(212, 197, 232, 0.3), transparent 70%);
  pointer-events: none;
}

.usage-guide h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--rose-ink);
  margin-bottom: 28px;
  letter-spacing: 0.25em;
  position: relative;
  z-index: 1;
}

.usage-guide h3 svg {
  width: 18px;
  height: 18px;
  color: var(--peach-deep);
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.guide-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--peach) 0%, var(--lavender) 100%);
  color: var(--cream);
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  letter-spacing: 0.05em;
  border-radius: 10px;
}

.step-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--rose-ink);
  margin-bottom: 5px;
  letter-spacing: 0.08em;
}

.step-desc {
  font-size: 13px;
  color: var(--rose-ink-soft);
  line-height: 1.9;
}

.coupon-explanation {
  padding-top: 26px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.coupon-explanation h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--rose-ink);
  margin-bottom: 22px;
  letter-spacing: 0.15em;
}

.explanation-item {
  display: flex;
  gap: 16px;
  padding: 10px 0;
}

.explanation-item svg {
  width: 18px;
  height: 18px;
  color: var(--lavender-deep);
  flex-shrink: 0;
  margin-top: 2px;
}

.explanation-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--rose-ink);
  margin-bottom: 3px;
  letter-spacing: 0.06em;
}

.explanation-desc {
  font-size: 12px;
  color: var(--rose-ink-soft);
  line-height: 1.9;
}

.operation-note {
  margin-top: 26px;
  padding: 18px 22px;
  background: rgba(255, 248, 244, 0.9);
  border-left: 2px solid var(--peach);
  position: relative;
  z-index: 1;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.operation-note p {
  font-size: 12px;
  color: var(--rose-ink-soft);
  line-height: 2;
  margin: 0;
  letter-spacing: 0.05em;
  font-style: italic;
}

/* ========== 搜索页 ========== */
.search-header {
  padding: 44px 40px;
  border-bottom: none;
  margin: 16px 0 0;
  background: linear-gradient(90deg,
    rgba(252, 228, 236, 0.3) 0%,
    rgba(255, 248, 244, 0.6) 50%,
    rgba(237, 231, 246, 0.3) 100%);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(4px);
}

.search-header-label {
  font-size: 11px;
  letter-spacing: 0.5em;
  color: var(--lavender-deep);
  margin-bottom: 18px;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.search-header h2 {
  font-size: 24px;
  font-weight: 400;
  color: var(--rose-ink);
  letter-spacing: 0.1em;
}

.search-header h2 em {
  font-style: italic;
  color: var(--peach-deep);
  font-weight: 500;
}

/* ========== 页脚 ========== */
.footer {
  padding: 64px 0 44px;
  text-align: center;
  border-top: none;
  margin-top: 64px;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(252, 228, 236, 0.28) 45%,
      rgba(237, 231, 246, 0.26) 100%);
  position: relative;
  z-index: 1;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  margin-left: -12px;
  margin-right: -12px;
}

.footer-poem {
  font-size: 13px;
  color: var(--rose-ink-faint);
  letter-spacing: 0.35em;
  margin-bottom: 22px;
  line-height: 2.4;
  font-style: italic;
}

.footer-copy {
  font-size: 11px;
  color: var(--rose-ink-faint);
  letter-spacing: 0.35em;
  opacity: 0.75;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========== 登录页 ========== */
.login-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.9) 1px, transparent 1.5px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.8) 1px, transparent 1.5px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.7) 1px, transparent 1.5px),
    linear-gradient(135deg,
      #FCE4EC 0%,
      #FFF8F4 35%,
      #FBF5F0 60%,
      #EDE7F6 100%);
  background-size: 260px 260px, 300px 300px, 220px 220px, 100% 100%;
}

.login-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.deco-circle {
  position: absolute;
  opacity: 0.5;
}

.deco-circle-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--peach) 0%, transparent 62%);
  top: -220px;
  right: -140px;
}

.deco-circle-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--lavender) 0%, transparent 62%);
  bottom: -180px;
  left: -100px;
}

.login-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 248, 244, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 60px 46px;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(232, 155, 167, 0.18);
}

.login-header {
  text-align: center;
  margin-bottom: 52px;
}

.login-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 6px rgba(232, 155, 167, 0.25));
}

.login-header h1 {
  font-size: 24px;
  font-weight: 500;
  color: var(--rose-ink);
  margin-bottom: 12px;
  letter-spacing: 0.35em;
  font-family: 'Noto Serif SC', 'Songti SC', Georgia, serif;
}

.login-subtitle {
  font-size: 13px;
  color: var(--rose-ink-faint);
  font-weight: 400;
  letter-spacing: 0.2em;
  font-style: italic;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.input-group {
  position: relative;
}

.login-input {
  width: 100%;
  padding: 16px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  font-family: inherit;
  font-size: 15px;
  background: transparent;
  transition: border-color 0.35s ease;
  color: var(--rose-ink);
  letter-spacing: 0.05em;
}

.login-input::placeholder {
  color: var(--rose-ink-faint);
  letter-spacing: 0.15em;
}

.login-input:focus {
  outline: none;
  border-bottom-color: var(--peach-deep);
}

.login-button {
  width: 100%;
  padding: 18px;
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--cream);
  background: linear-gradient(135deg, var(--rose-ink) 0%, #7A4A5A 100%);
  cursor: pointer;
  transition: all 0.35s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.4em;
  margin-top: 12px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
}

.login-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(247, 197, 204, 0.3),
    transparent);
  transition: left 0.5s ease;
}

.login-button:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--peach-deep) 0%, var(--lavender-deep) 100%);
  transform: translateY(-1px);
}

.login-button:hover:not(:disabled)::before {
  left: 100%;
}

.login-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.login-error {
  text-align: center;
  color: var(--peach-deep);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.login-footer {
  text-align: center;
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.login-footer p {
  font-size: 11px;
  color: var(--rose-ink-faint);
  letter-spacing: 0.35em;
  opacity: 0.8;
  font-style: italic;
}

/* ========== 管理后台 ========== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 256px;
  background:
    linear-gradient(180deg,
      rgba(252, 228, 236, 0.5) 0%,
      rgba(237, 231, 246, 0.45) 100%);
  backdrop-filter: blur(10px);
  padding: 52px 0;
  flex-shrink: 0;
  margin: 20px 0 20px 20px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(247, 197, 204, 0.08);
}

.admin-sidebar h2 {
  padding: 0 36px 32px;
  color: var(--rose-ink);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.35em;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  font-family: 'Noto Serif SC', 'Songti SC', Georgia, serif;
}

.admin-sidebar nav {
  padding: 0 24px;
}

.admin-sidebar a {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: var(--rose-ink-soft);
  text-decoration: none;
  transition: all 0.35s ease;
  font-size: 14px;
  margin-bottom: 4px;
  margin-left: 12px;
  margin-right: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.admin-sidebar a::before {
  content: '';
  width: 3px;
  height: 3px;
  background: currentColor;
  margin-right: 16px;
  opacity: 0.5;
}

.admin-sidebar a:hover {
  color: var(--rose-ink);
  background: rgba(247, 197, 204, 0.22);
}

.admin-sidebar a.active {
  color: var(--peach-deep);
  background: rgba(247, 197, 204, 0.28);
}

.admin-sidebar a.active::before {
  opacity: 1;
}

.admin-content {
  flex: 1;
  padding: 56px 64px;
  min-height: 100vh;
  min-width: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(252, 228, 236, 0.25), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(237, 231, 246, 0.25), transparent 40%),
    transparent;
  position: relative;
  overflow: hidden;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 52px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  gap: 24px;
}

.admin-header h2 {
  color: var(--rose-ink);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.25em;
  font-family: 'Noto Serif SC', 'Songti SC', Georgia, serif;
  min-width: 0;
  flex-shrink: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-header .btn-primary {
  background: linear-gradient(135deg, var(--rose-ink) 0%, #7A4A5A 100%);
  color: var(--cream);
  padding: 12px 28px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.admin-header .btn-primary:hover {
  background: linear-gradient(135deg, var(--peach-deep) 0%, var(--lavender-deep) 100%);
}

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

.admin-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
  flex-wrap: wrap;
}

.admin-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: #9a7a8e;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.admin-tab:hover {
  color: var(--rose-ink);
  border-color: rgba(247, 197, 204, 0.6);
  background: rgba(252, 232, 238, 0.7);
}

.admin-tab.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--rose-ink) 0%, var(--peach-deep) 100%);
  box-shadow: 0 8px 20px -12px rgba(163, 92, 118, 0.55);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(154, 122, 142, 0.14);
  font-size: 12px;
  line-height: 1;
}

.admin-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.22);
}

/* ========== Modal & 弹窗 ========== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(92, 58, 70, 0.32);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

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

/* 弹窗右上角关闭按钮 */
.modal-close-x {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  color: #9a7a8e;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 6px 18px -10px rgba(150, 92, 118, 0.35);
  transition: all 0.22s ease;
}

.modal-close-x svg {
  width: 16px;
  height: 16px;
  display: block;
}

.modal-close-x:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-ink) 0%, var(--peach-deep) 100%);
  transform: scale(1.05);
}

.modal-close-x:active {
  transform: scale(0.95);
}

/* 确认弹窗里的 X 位置微调（避免挡住顶部图标） */
.confirm-close-x {
  top: 14px;
  right: 16px;
}

.modal-content {
  background-color: rgba(255, 248, 244, 0.96);
  backdrop-filter: blur(12px);
  padding: 0;
  width: 90%;
  max-width: 640px;
  max-height: 90vh;
  animation: slideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(92, 58, 70, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* 外层只负责裁剪圆角，把滚动条包在里面 */
  position: relative;
  isolation: isolate;
}

/* 内层专门负责滚动，避免滚动条顶破圆角 */
.modal-content-scroll {
  flex: 1;
  min-height: 0;
  padding: 52px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 细滚动条 + 圆角轨迹，和页面风格一致 */
.modal-content-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.modal-content-scroll::-webkit-scrollbar-track {
  background: transparent;
  margin: 14px 0;
}
.modal-content-scroll::-webkit-scrollbar-thumb {
  background: rgba(213, 169, 189, 0.55);
  border-radius: 999px;
  border: 2px solid rgba(255, 248, 244, 0.96);
  background-clip: padding-box;
}
.modal-content-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(183, 122, 152, 0.75);
  border: 2px solid rgba(255, 248, 244, 0.96);
  background-clip: padding-box;
}
.modal-content-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(213, 169, 189, 0.55) transparent;
}

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

.modal-content h3 {
  margin-bottom: 38px;
  font-size: 18px;
  font-weight: 500;
  color: var(--rose-ink);
  letter-spacing: 0.25em;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-family: 'Noto Serif SC', 'Songti SC', Georgia, serif;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--rose-ink-soft);
  margin-bottom: 12px;
  letter-spacing: 0.2em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  transition: border-color 0.35s ease;
  background-color: transparent;
  color: var(--rose-ink);
  font-family: inherit;
  letter-spacing: 0.04em;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--peach-deep);
}

.form-group textarea {
  resize: vertical;
  min-height: 88px;
  padding: 12px 0;
}

.form-group.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.form-group.checkbox-group label {
  margin-bottom: 0;
  cursor: pointer;
  color: var(--rose-ink);
  text-transform: none;
  letter-spacing: 0.08em;
}

.form-group.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--peach-deep);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.form-actions .btn {
  padding: 14px 36px;
  letter-spacing: 0.25em;
}

.form-actions .btn-secondary {
  background: transparent;
  color: var(--rose-ink-soft);
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 14px 8px;
}

.form-actions .btn-secondary:hover {
  color: var(--rose-ink);
  border-bottom-color: var(--rose-ink);
}

.form-actions .btn-primary {
  background: linear-gradient(135deg, var(--rose-ink) 0%, #7A4A5A 100%);
  color: var(--cream);
}

.form-actions .btn-primary:hover {
  background: linear-gradient(135deg, var(--peach-deep) 0%, var(--lavender-deep) 100%);
}

/* ========== 宽模态框 ========== */
.modal-content-wide {
  max-width: 760px;
}

/* ========== 图片粘贴区 ========== */
.image-paste-area {
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
  min-height: 120px;
  cursor: pointer;
  transition: border-color 0.35s ease, background 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 248, 244, 0.5);
}

.image-paste-area:focus,
.image-paste-area:hover {
  border-color: var(--peach-deep);
  background: rgba(252, 228, 236, 0.2);
  outline: none;
}

.image-paste-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--rose-ink-faint);
  padding: 24px;
}

.image-paste-placeholder svg {
  width: 36px;
  height: 36px;
  opacity: 0.5;
}

.image-paste-placeholder span {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--rose-ink-soft);
}

.image-paste-preview {
  position: relative;
  width: 100%;
  max-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-paste-preview img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.image-paste-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(92, 58, 70, 0.65);
  color: var(--cream);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
  line-height: 1;
}

.image-paste-remove:hover {
  background: var(--peach-deep);
}

/* ========== 亮点编辑器 ========== */
.highlights-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.highlight-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.highlight-row input {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  background: transparent;
  color: var(--rose-ink);
  font-family: inherit;
  letter-spacing: 0.04em;
  transition: border-color 0.35s ease;
}

.highlight-row input:focus {
  outline: none;
  border-bottom-color: var(--peach-deep);
}

.highlight-remove {
  width: 26px;
  height: 26px;
  border: none;
  background: none;
  color: var(--rose-ink-faint);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.3s ease;
  border-radius: 50%;
}

.highlight-remove:hover {
  color: var(--peach-deep);
  background: rgba(232, 155, 167, 0.1);
}

.highlight-add {
  padding: 8px 0;
  border: none;
  background: none;
  color: var(--peach-deep);
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.12em;
  transition: color 0.3s ease;
  text-align: left;
  font-family: inherit;
}

.highlight-add:hover {
  color: var(--rose-ink);
}

.raw-content-textarea {
  width: 100%;
  min-height: 160px;
  padding: 14px 16px !important;
  border: 1px dashed var(--line) !important;
  border-radius: 10px;
  background: rgba(255, 250, 247, 0.7);
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
  box-sizing: border-box;
  color: var(--rose-ink);
  font-family: inherit;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.raw-content-textarea:focus {
  outline: none;
  border-color: var(--peach-deep) !important;
  background: rgba(255, 255, 255, 0.95);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--rose-ink);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-sm:hover {
  border-color: var(--peach-deep);
  color: var(--peach-deep);
}

.confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(92, 58, 70, 0.32);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.confirm-modal-content {
  background-color: rgba(255, 248, 244, 0.97);
  backdrop-filter: blur(12px);
  padding: 52px 48px;
  width: 90%;
  max-width: 420px;
  animation: slideUp 0.4s ease;
  text-align: center;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(92, 58, 70, 0.14);
}

.confirm-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 30px;
  background: linear-gradient(135deg, rgba(232, 155, 167, 0.12) 0%, rgba(212, 197, 232, 0.18) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-md);
}

.confirm-modal-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--peach-deep);
}

.confirm-modal-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--rose-ink);
  margin-bottom: 13px;
  letter-spacing: 0.12em;
  font-family: 'Noto Serif SC', 'Songti SC', Georgia, serif;
}

.confirm-modal-message {
  font-size: 14px;
  color: var(--rose-ink-soft);
  margin-bottom: 38px;
  line-height: 2;
  letter-spacing: 0.05em;
}

.confirm-modal-actions {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.confirm-modal-btn {
  padding: 14px 36px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.35s ease;
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border-radius: 999px;
}

.confirm-modal-btn.cancel {
  background: transparent;
  color: var(--rose-ink-soft);
  border: 1px solid var(--line);
  padding: 14px 32px;
}

.confirm-modal-btn.cancel:hover {
  color: var(--rose-ink);
  border-color: var(--rose-ink);
}

.confirm-modal-btn.confirm {
  background: linear-gradient(135deg, var(--peach-deep) 0%, var(--lavender-deep) 100%);
  color: var(--cream);
}

.confirm-modal-btn.confirm:hover {
  background: linear-gradient(135deg, var(--rose-ink) 0%, #7A4A5A 100%);
}

/* ========== 统计卡片 ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  margin-bottom: 52px;
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  padding: 34px 30px;
  background:
    linear-gradient(135deg,
      rgba(252, 228, 236, 0.42) 0%,
      rgba(255, 248, 244, 0.62) 50%,
      rgba(237, 231, 246, 0.38) 100%);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(247, 197, 204, 0.1);
}

.stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: linear-gradient(180deg, var(--peach), var(--lavender));
  border-radius: 0 3px 3px 0;
}

.stat-card h4 {
  font-size: 11px;
  color: var(--rose-ink-faint);
  margin-bottom: 16px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.stat-card p {
  font-size: 34px;
  font-weight: 300;
  color: var(--rose-ink);
  letter-spacing: 0.05em;
  font-family: Georgia, 'Times New Roman', serif;
}

.admin-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px 30px;
}

@media (max-width: 1200px) {
  .admin-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-product-grid {
    grid-template-columns: 1fr;
  }
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  backdrop-filter: blur(4px);
  border-radius: 999px;
}

.badge-active {
  background: linear-gradient(135deg, var(--peach) 0%, var(--lavender) 100%);
  color: var(--cream);
}

.badge-inactive {
  background: var(--rose-ink-faint);
  color: var(--cream);
}

.platform-tag,
.category-tag {
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 3px 12px;
  background: rgba(255, 248, 244, 0.75);
  color: var(--rose-ink-soft);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  border-radius: 999px;
}

.product-card-footer {
  display: flex;
  gap: 10px;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.35s ease;
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.18em;
  flex: 1;
}

.btn-sm.btn-secondary {
  background: transparent;
  color: var(--rose-ink-soft);
  border-bottom: 1px solid var(--line);
  padding: 10px 4px;
}

.btn-sm.btn-secondary:hover {
  color: var(--rose-ink);
  border-bottom-color: var(--rose-ink);
}

.btn-sm.btn-danger {
  background: transparent;
  color: var(--peach-deep);
  border-bottom: 1px solid var(--line);
  padding: 10px 4px;
}

.btn-sm.btn-danger:hover {
  border-bottom-color: var(--peach-deep);
}

/* ========== Toast 提示 ========== */
.toast-container {
  position: fixed;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  animation: fadeIn 0.3s ease;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 34px;
  background: linear-gradient(135deg, var(--rose-ink) 0%, #7A4A5A 100%);
  color: var(--cream);
  font-size: 14px;
  letter-spacing: 0.12em;
  animation: slideDown 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-shadow: 0 8px 32px rgba(232, 155, 167, 0.25);
  border-radius: 999px;
}

.toast-content svg {
  width: 18px;
  height: 18px;
  color: var(--peach-soft);
  flex-shrink: 0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== 数据表 ========== */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table thead th {
  text-align: left;
  padding: 18px 14px;
  font-size: 11px;
  font-weight: 500;
  color: var(--rose-ink-faint);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.table tbody td {
  padding: 22px 14px;
  color: var(--rose-ink);
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.04em;
}

.table tbody tr:hover {
  background: rgba(252, 228, 236, 0.25);
}

.table-actions {
  display: flex;
  gap: 20px;
}

.table-actions .btn {
  padding: 8px 4px;
  font-size: 13px;
  letter-spacing: 0.12em;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .site-top-nav-inner {
    gap: 20px 32px;
    padding: 14px 0;
  }
  .site-nav-link {
    font-size: 14px;
    letter-spacing: 0.12em;
  }
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: auto;
    padding: 20px 0 10px;
    margin: 12px 12px 0 12px; /* 移动端侧栏改上栏，四边留同等小间距，不再只 margin-left */
    border-radius: var(--radius-md);
  }
  .admin-sidebar h2 {
    display: none;
  }
  .admin-sidebar nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 14px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .admin-sidebar nav::-webkit-scrollbar { display: none; }
  .admin-sidebar a {
    margin: 4px 6px;
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .admin-content {
    padding: 28px 20px 48px;
    min-height: auto;
  }
  .header-content {
    flex-direction: column;
    gap: 22px;
    padding: 20px 0 22px;
  }
  .detail-buttons {
    flex-direction: column;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .form-group input[type="text"],
  .form-group input[type="number"],
  .form-group input:not([type]),
  .form-group select,
  .form-group textarea {
    min-height: 44px;
    font-size: 15px;
    padding: 10px 14px;
  }
  .form-group textarea {
    min-height: 120px;
    line-height: 1.7;
  }
  .form-group label {
    font-size: 12.5px;
    margin-bottom: 10px;
  }
  .btn {
    min-height: 44px;
    padding: 0 22px;
    font-size: 13.5px;
  }
  /* ===== 管理弹窗：手机端收窄 padding、放更多内容 ===== */
  .modal-content {
    width: 94%;
    max-width: 94%;
    max-height: 92vh;
    border-radius: var(--radius-lg);
  }
  .modal-content-wide {
    max-width: 94%;
  }
  .modal-content-scroll {
    padding: 56px 26px 30px; /* 顶部留足给 X 按钮 */
  }
  .modal-close-x {
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
  }
  .modal-close-x svg {
    width: 15px;
    height: 15px;
  }
  /* ===== 商品管理：admin-header 在窄屏堆叠 ===== */
  .admin-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
  }
  .admin-header h2 {
    font-size: 20px;
    letter-spacing: 0.12em;
    margin: 0;
  }
  .admin-header .btn-primary {
    align-self: flex-end;
  }
  /* ===== 管理页 tabs：更紧凑 ===== */
  .admin-tabs {
    gap: 8px;
    margin: 0 0 22px;
    padding-bottom: 14px;
  }
  .admin-tab {
    padding: 8px 16px;
    font-size: 12.5px;
    letter-spacing: 0.06em;
  }
  .tab-count {
    min-width: 20px;
    height: 20px;
    padding: 0 7px;
    font-size: 11px;
  }
  /* ===== 后台商品卡片 1 列 ===== */
  .admin-product-grid {
    grid-template-columns: 1fr;
    gap: 24px 0;
  }
  /* ===== 确认弹窗 ===== */
  .confirm-modal-content {
    width: 88%;
    max-width: 380px;
    padding: 40px 26px 28px;
  }
  .confirm-modal-title {
    font-size: 18px;
  }
  .confirm-modal-message {
    font-size: 13.5px;
  }
  .confirm-modal-btn {
    min-height: 42px;
    font-size: 13.5px;
  }
}

/* ================================================================
   移动端适配（768px 以下：平板/手机主力）
   风格：极简杂志风，零装饰线条，微信小程序视觉规范
   ================================================================ */
@media (max-width: 768px) {

  /* === 容器：更贴身的边距 === */
  .container {
    padding: 0 20px;
  }

  /* === Header：减高、紧凑两行 === */
  .site-header {
    padding: 14px 0 12px;
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
  }

  .site-header-row-1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 10px;
  }

  /* === Logo：字号缩小，不抢视线 === */
  .logo {
    font-size: 17px;
    letter-spacing: 0.25em;
  }

  /* === 导航栏：横向可滚动，iOS 分段控制器风格 === */
  .site-top-nav {
    width: 100%;
    gap: 10px 24px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .site-top-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav-link {
    font-size: 13.5px;
    letter-spacing: 0.1em;
    padding: 6px 2px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* === 搜索栏：更贴合手机，圆角缩小一档 === */
  .site-header-row-2 {
    padding-top: 2px;
    padding-bottom: 2px;
  }
  .site-header-row-2 .search-box {
    padding: 0 16px;
    border-radius: 999px;
    min-height: 44px;
  }
  .search-box input {
    font-size: 13.5px;
    padding: 6px 2px;
  }

  /* === Hero：间距缩小 === */
  .hero {
    padding: 52px 0 36px;
  }

  /* === 分类栏：更紧凑 === */
  .filter-bar {
    padding: 20px 0;
    gap: 14px;
  }
  .filter-group {
    gap: 10px;
  }

  /* === 商品网格：2 列更紧凑 === */
  .product-grid {
    padding: 32px 0;
    gap: 20px 16px;
  }

  /* === 商品卡片：更饱满、留白减少 === */
  .product-card {
    padding: 10px 10px 14px;
    border-radius: var(--radius-md);
  }
  .product-card-image {
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
  }
  .product-card-name {
    font-size: 13px;
    line-height: 1.5;
    padding: 0 2px;
  }
  .product-card-desc {
    font-size: 11px;
    padding: 0 2px;
    line-height: 1.6;
    margin-bottom: 8px;
  }
  .product-card-price {
    padding: 0 2px;
    gap: 6px;
    margin-bottom: 4px;
  }
  .price-now {
    font-size: 17px;
  }
  .price-was {
    font-size: 11px;
  }
  .product-card-category {
    margin-bottom: 4px;
  }
  .product-card-platform {
    margin-bottom: 10px;
  }
  .product-card-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 6px;
  }
  .btn-copy-all {
    padding: 8px 12px;
    font-size: 10.5px;
    border-radius: var(--radius-sm);
    gap: 6px;
  }

  /* === 分页：更贴合手机 === */
  .pagination {
    padding: 36px 0 80px;
    gap: 10px;
  }
  .pagination button {
    min-width: 36px;
    height: 36px;
    font-size: 12.5px;
    border-radius: var(--radius-sm);
  }

  /* === 详情页：字号整体下调，段落更紧凑 === */
  .product-detail {
    padding: 32px 0 64px;
    gap: 40px;
  }
  .detail-label {
    font-size: 10px;
    letter-spacing: 0.4em;
    margin-bottom: 16px;
  }
  .product-detail-info h1 {
    font-size: 22px;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    line-height: 1.55;
  }
  .product-detail-info .product-desc {
    font-size: 13.5px;
    margin-bottom: 26px;
    line-height: 1.9;
  }
  .price-section {
    gap: 14px;
    margin-bottom: 30px;
    padding-bottom: 22px;
  }
  .price-section .price-now {
    font-size: 28px;
  }
  .price-section .price-was {
    font-size: 13.5px;
  }
  .detail-buttons {
    gap: 12px;
    margin-bottom: 30px;
  }
  .detail-buttons .btn {
    padding: 12px 20px;
    font-size: 13px;
    letter-spacing: 0.08em;
    min-height: 44px;
  }
  .detail-meta {
    font-size: 12px;
    gap: 12px 20px;
  }

  /* === 搜索结果页 === */
  .search-result-header {
    padding: 36px 0 8px;
  }
  .search-result-header h1 {
    font-size: 20px;
  }
  .search-result-header p {
    font-size: 12.5px;
  }

  /* === Footer：更紧凑 === */
  .footer {
    padding: 48px 0 28px;
  }
  .footer-poem {
    font-size: 12.5px;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
  }
  .footer-copy {
    font-size: 11px;
    letter-spacing: 0.08em;
  }
}

/* ================================================================
   小屏手机适配（480px 以下：iPhone SE 等）
   ================================================================ */
@media (max-width: 480px) {

  .container {
    padding: 0 16px;
  }

  /* 导航链接再缩小一档 */
  .site-nav-link {
    font-size: 12.5px;
    letter-spacing: 0.08em;
  }

  /* Logo 再缩小 */
  .logo {
    font-size: 15.5px;
    letter-spacing: 0.22em;
  }

  /* Hero 再压缩一档，避免小屏太占 */
  .hero {
    padding: 42px 0 32px;
    margin-top: 20px;
    padding-left: 22px;
    padding-right: 22px;
    border-radius: var(--radius-md);
  }
  .hero-title {
    font-size: 24px;
    letter-spacing: 0.1em;
  }
  .hero-subtitle {
    font-size: 13px;
    line-height: 1.9;
  }
  .hero-label {
    font-size: 10px;
    letter-spacing: 0.4em;
    margin-bottom: 22px;
  }

  /* 商品卡片 1 列，略缩 */
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px 0;
    padding: 24px 0;
  }

  .product-card {
    padding: 12px 12px 16px;
  }

  /* 详情标题再缩 */
  .product-detail-info h1 {
    font-size: 20px;
  }
  .price-section .price-now {
    font-size: 26px;
  }

  /* 后台小屏进一步收紧 */
  .admin-sidebar {
    margin: 8px 8px 0 8px;
    padding: 14px 0 8px;
  }
  .admin-sidebar nav {
    padding: 0 10px 8px;
  }
  .admin-sidebar a {
    padding: 7px 14px;
    font-size: 12.5px;
    margin: 3px 4px;
  }
  .admin-content {
    padding: 22px 16px 40px;
  }
  .admin-header {
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 16px;
  }
  .admin-header h2 {
    font-size: 18px;
  }
  .admin-tabs {
    gap: 6px;
    margin: 0 0 18px;
    padding-bottom: 12px;
  }
  .admin-tab {
    padding: 7px 14px;
    font-size: 12px;
    letter-spacing: 0.05em;
  }
  .tab-count {
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    font-size: 10.5px;
  }
  .admin-product-grid {
    gap: 20px 0;
  }

  /* 小屏弹窗更贴身 */
  .modal-content {
    width: 100%;
    max-width: 100%;
    max-height: 94vh;
    margin: 0;
    border-radius: 0;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    align-self: flex-end;
  }
  .modal-content-scroll {
    padding: 52px 20px 26px;
  }
  .modal-close-x {
    top: 10px;
    right: 12px;
  }
  .raw-content-textarea {
    min-height: 150px;
  }
  .form-group input[type="text"],
  .form-group input[type="number"],
  .form-group input:not([type]),
  .form-group select {
    font-size: 16px; /* iOS 16px 以下会自动放大，防止页面跳动 */
  }
  .confirm-modal-content {
    width: 92%;
    padding: 36px 22px 24px;
  }
}
