/* 霸王餐神卷 - 主样式 */
:root {
  --primary: #c2410c;
  --primary-light: #ea580c;
  --accent: #f59e0b;
  --bg-warm: #fff7ed;
  --bg-card: #ffffff;
  --text: #1c1917;
  --text-muted: #78716c;
  --radius: 12px;
  --shadow: 0 4px 14px rgba(194, 65, 12, 0.08);
  --font-display: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-warm);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部 */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
  color: #fafaf9;
  padding: 14px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.logo-icon {
  font-size: 1.8rem;
}

.logo-text {
  color: #fbbf24;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: #d6d3d1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #fbbf24;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(194, 65, 12, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(194, 65, 12, 0.45);
}

.btn-ghost {
  background: transparent;
  color: #fafaf9;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* 主视觉 */
.hero {
  position: relative;
  padding: 64px 0 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fef9c3 0%, #fef3c7 40%, #fde68a 100%);
}

/* 背景：浅灰色小加号网格，若隐若现 */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2h6z' fill='%239ca3af' fill-opacity='0.2'/%3E%3C/svg%3E");
  background-size: 24px 24px;
  opacity: 0.85;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(254,243,199,0.6) 0%, transparent 50%);
  pointer-events: none;
}

/* 角落装饰 */
.hero-deco {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  opacity: 0.12;
  z-index: 1;
  pointer-events: none;
}

.hero-deco-l {
  left: 8%;
}

.hero-deco-r {
  right: 8%;
}

@media (max-width: 900px) {
  .hero-deco {
    font-size: 2.5rem;
    opacity: 0.08;
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(194, 65, 12, 0.2);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.08);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search {
  display: flex;
  max-width: 480px;
  margin: 0 auto 20px;
  gap: 12px;
  background: var(--bg-card);
  padding: 10px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
}

.search-input::placeholder {
  color: #a8a29e;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15);
}

.btn-search {
  white-space: nowrap;
}

/* 热门快捷入口 */
.hero-quick {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-quick-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-right: 4px;
}

.hero-quick-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.9rem;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(194, 65, 12, 0.2);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.hero-quick-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 数据点缀 */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-stat em {
  font-style: normal;
  font-weight: 700;
  color: var(--primary);
  margin-right: 4px;
}

.hero-stat-divider {
  width: 1px;
  height: 14px;
  background: #d6d3d1;
}

/* 通用区块 */
.section {
  padding: 48px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text);
  margin-bottom: 8px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 神卷标签 */
.coupon-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 20px;
  border: 1px solid #e7e5e4;
  background: var(--bg-card);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover,
.tab-btn.active {
  border-color: var(--primary);
  background: rgba(194, 65, 12, 0.08);
  color: var(--primary);
}

/* 神卷卡片网格 */
.coupon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.coupon-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #fef3c7;
}

.coupon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(194, 65, 12, 0.12);
}

.coupon-card-header {
  padding: 20px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-bottom: 2px dashed rgba(194, 65, 12, 0.2);
}

.coupon-card-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 4px;
}

.coupon-card-shop {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.coupon-card-body {
  padding: 16px 20px;
}

.coupon-card-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.coupon-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.coupon-card-footer {
  padding: 0 20px 20px;
}

.coupon-card .btn {
  width: 100%;
  padding: 12px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  color: var(--text-muted);
  border: 1px dashed #e7e5e4;
}

/* 规则区块 */
.rules-section {
  background: var(--bg-card);
}

.rules-content ul {
  list-style: none;
  max-width: 560px;
  margin: 0 auto;
}

.rules-content li {
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-muted);
}

.rules-content li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
}

/* 页脚 */
.footer {
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid #e7e5e4;
}

/* 简单响应式 */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-search {
    flex-direction: column;
  }

  .coupon-grid {
    grid-template-columns: 1fr;
  }
}
