/* 颜食优选 宽屏目录册式 gx-* —— 本工作区独立前缀，覆盖框架 480px 窄栏 */
:root {
  --gx-bg: #f7f5f0;
  --gx-card: #ffffff;
  --gx-ink: #2d2a24;
  --gx-mute: #7a756c;
  --gx-line: #e5e0d6;
  --gx-brand: #2f6b57;
  --gx-price: #b4472e;
}

body.gx-home { max-width: none; background: var(--gx-bg); color: var(--gx-ink); padding-bottom: 80px; }
.gx-wrap { width: min(1360px, 92%); margin: 0 auto; }

/* 刊头 */
.gx-head { background: var(--gx-card); border-bottom: 1px solid var(--gx-line); }
.gx-head-in { display: flex; align-items: center; gap: 30px; padding: 18px 0; }
.gx-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.gx-logo-mark { width: 48px; height: 48px; border-radius: 10px; background: var(--gx-brand); color: #fff; font-size: 24px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.gx-logo-txt { display: flex; flex-direction: column; }
.gx-logo-txt b { font-size: 22px; color: var(--gx-ink); }
.gx-logo-txt i { font-style: normal; font-size: 12px; color: var(--gx-mute); margin-top: 2px; }
.gx-search { flex: 1; display: flex; max-width: 560px; }
.gx-search input { flex: 1; border: 1px solid var(--gx-line); border-radius: 22px 0 0 22px; padding: 10px 18px; font-size: 14px; outline: none; background: var(--gx-bg); }
.gx-search button { border: none; background: var(--gx-brand); color: #fff; padding: 0 26px; border-radius: 0 22px 22px 0; font-size: 14px; cursor: pointer; }
.gx-util { display: flex; gap: 18px; margin-left: auto; font-size: 14px; color: var(--gx-mute); }
.gx-util a:hover { color: var(--gx-brand); }

/* 分类导航 */
.gx-nav { background: var(--gx-card); border-bottom: 1px solid var(--gx-line); }
.gx-nav-in { display: flex; gap: 28px; overflow-x: auto; }
.gx-nav a { display: block; padding: 14px 0; font-size: 15px; color: var(--gx-mute); white-space: nowrap; border-bottom: 2px solid transparent; }
.gx-nav a.on, .gx-nav a:hover { color: var(--gx-brand); border-bottom-color: var(--gx-brand); }

/* 主视觉 */
.gx-hero { display: flex; align-items: stretch; gap: 30px; margin: 16px 0; background: var(--gx-card); border: 1px solid var(--gx-line); border-radius: 14px; overflow: hidden; }
.gx-hero-txt { flex: 1; padding: 24px 40px; }
.gx-hero-txt h1 { font-size: 28px; font-weight: 600; color: var(--gx-ink); margin-bottom: 14px; }
.gx-hero-txt p { font-size: 16px; color: var(--gx-mute); line-height: 1.8; }
.gx-hero-badges { display: flex; gap: 20px; margin-top: 14px; font-size: 14px; color: var(--gx-brand); }
.gx-hero-side { width: 300px; background: var(--gx-brand); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; }
.gx-hero-side b { font-size: 32px; letter-spacing: 4px; }
.gx-hero-side span { font-size: 14px; opacity: .85; }

/* 区块 */
.gx-sec { background: var(--gx-card); border: 1px solid var(--gx-line); border-radius: 14px; margin-bottom: 20px; padding: 18px; }
.gx-sec-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--gx-line); }
.gx-sec-hd h2 { font-size: 24px; font-weight: 600; color: var(--gx-ink); }
.gx-sec-hd span, .gx-sec-hd a { font-size: 13px; color: var(--gx-mute); text-decoration: none; }
.gx-sec-hd a:hover { color: var(--gx-brand); }

/* 商品墙：桌面 4 列 */
.gx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gx-card { display: block; border: 1px solid var(--gx-line); border-radius: 12px; overflow: hidden; text-decoration: none; background: var(--gx-card); transition: transform .2s; }
.gx-card:hover { transform: translateY(-2px); }
.gx-card-img { aspect-ratio: 1.35; background: #f0ece3; overflow: hidden; }
.gx-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gx-card-bd { padding: 14px 16px 16px; }
.gx-card-bd b { display: block; font-size: 15px; font-weight: 400; color: var(--gx-ink); line-height: 1.5; height: 45px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gx-card-ft { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; }
.gx-card-ft em { font-style: normal; font-size: 20px; font-weight: 600; color: var(--gx-price); }
.gx-card-ft span { font-size: 12px; color: var(--gx-mute); }

/* 购买须知 */
.gx-guide { background: var(--gx-card); border: 1px solid var(--gx-line); border-radius: 14px; padding: 28px 32px; margin-bottom: 24px; }
.gx-guide h3 { font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.gx-guide p { font-size: 14px; color: var(--gx-mute); line-height: 1.9; margin-bottom: 8px; }

/* 页脚公示（沿用 footer.php 的 .site-foot，覆盖框架样式） */
.site-foot { max-width: none; margin: 0 auto 20px; width: min(1360px, 92%); background: var(--gx-card); border: 1px solid var(--gx-line); border-radius: 14px; padding: 24px 30px; }
.foot-sub { font-size: 15px; font-weight: 600; color: var(--gx-ink); }
.foot-line { font-size: 13px; color: var(--gx-mute); line-height: 1.9; }
.foot-line a { color: var(--gx-brand); }
.tabbar { max-width: none; }

/* 手机端：两列，保留 tabbar */
@media (max-width: 720px) {
  .gx-wrap { width: 94%; }
  .gx-head-in { flex-wrap: wrap; gap: 12px; padding: 14px 0; }
  .gx-search { order: 3; max-width: none; width: 100%; }
  .gx-util { gap: 12px; }
  .gx-hero { flex-direction: column; }
  .gx-hero-txt { padding: 28px 22px; }
  .gx-hero-txt h1 { font-size: 24px; }
  .gx-hero-side { width: 100%; height: 90px; }
  .gx-hero-badges { flex-wrap: wrap; gap: 10px; }
  .gx-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gx-sec { padding: 16px; }
  .gx-sec-hd h2 { font-size: 20px; }
  .gx-guide { padding: 20px; }
}

.gx-empty { text-align: center; color: var(--gx-mute); font-size: 15px; padding: 80px 0; }
