/* 灵如意开运 · 吉祥物产品展示站样式 */
/* 风格：红金中式、喜庆祥和、响应式（电脑/手机） */

:root {
  --red: #c12a2a;
  --red-dark: #9e1e1e;
  --red-light: #d64d4d;
  --gold: #d4a84b;
  --gold-light: #f0d99e;
  --gold-deep: #b08a35;
  --paper: #fffaf5;
  --paper-2: #fff3e6;
  --ink: #2e1b16;
  --muted: #7a6258;
  --line: rgba(158, 30, 30, 0.12);

  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  --maxw: 1180px;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(46, 27, 22, 0.1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 92%; max-width: var(--maxw); margin: 0 auto; }
section { padding: 64px 0; }

/* 导航 */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .seal {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  display: grid; place-items: center;
}
.brand .name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.brand .name small {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 400;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 15px;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--red); }
.nav-cta {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(193, 42, 42, 0.3);
}

/* 首屏 */
.hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(212, 168, 75, 0.25), transparent 50%),
    linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.18em;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.hero h1 span { color: var(--gold-light); }
.hero p {
  font-size: 18px;
  margin-top: 16px;
  opacity: 0.95;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btns { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 30px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  transition: 0.25s var(--ease);
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--red-dark); box-shadow: 0 6px 18px rgba(0,0,0,0.2); }
.btn-ghost { border: 1px solid var(--gold-light); color: #fff; }

/* 区块标题 */
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head .tag {
  display: inline-block;
  color: var(--red);
  font-size: 13px;
  letter-spacing: 0.2em;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  margin-bottom: 12px;
}
.sec-head h2 { font-family: var(--serif); font-size: 32px; font-weight: 700; }
.sec-head h2 span { color: var(--red); }
.sec-head p { color: var(--muted); font-size: 15px; margin-top: 10px; }

/* 分类入口 */
.cats { background: var(--paper-2); }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.cat-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 12px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: 0.3s var(--ease);
}
.cat-item:hover { transform: translateY(-6px); border-color: var(--gold); }
.cat-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--red-dark);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  display: grid; place-items: center;
}
.cat-item h4 { font-family: var(--serif); font-size: 17px; margin-bottom: 4px; }
.cat-item p { font-size: 12px; color: var(--muted); }

/* 产品网格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(46,27,22,0.14); }
.product-thumb {
  height: 200px;
  background: linear-gradient(135deg, #f4e9cf, #e8d7b2);
  display: grid;
  place-items: center;
  position: relative;
  color: var(--red-dark);
  font-family: var(--serif);
  font-size: 60px;
}
.product-thumb .cat-label {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.85);
  color: var(--red);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--sans);
}
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-family: var(--serif); font-size: 18px; line-height: 1.4; margin-bottom: 8px; }
.product-body .desc { font-size: 13px; color: var(--muted); line-height: 1.7; flex: 1; }
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.price { font-family: var(--serif); color: var(--red); font-size: 20px; font-weight: 700; }
.price small { font-size: 12px; font-weight: 400; }
.buy-btn {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}

/* 关于 */
.about { background: var(--paper-2); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-visual {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--gold-light);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 900;
  box-shadow: var(--shadow);
}
.about-text h2 { font-family: var(--serif); font-size: 30px; margin-bottom: 18px; }
.about-text h2 span { color: var(--red); }
.about-text p { color: var(--muted); font-size: 15px; line-height: 1.9; margin-bottom: 14px; }
.about-text ul li {
  color: var(--ink);
  font-size: 15px;
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
}
.about-text ul li::before {
  content: "❖";
  position: absolute; left: 0;
  color: var(--gold-deep);
}

/* 底部 CTA */
.cta {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: #fff;
  text-align: center;
}
.cta h2 { font-family: var(--serif); font-size: 30px; margin-bottom: 12px; }
.cta p { opacity: 0.95; font-size: 16px; margin-bottom: 24px; }
.cta .btn-gold { background: var(--red); color: #fff; }

/* 页脚 */
.footer { background: var(--ink); color: rgba(255,255,255,0.85); padding: 48px 0 28px; font-size: 14px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h4 { font-family: var(--serif); color: var(--gold-light); font-size: 16px; margin-bottom: 14px; }
.footer a { display: block; color: rgba(255,255,255,0.8); margin-bottom: 8px; transition: 0.2s; }
.footer a:hover { color: var(--gold-light); }
.qr-box {
  background: #fff;
  border-radius: 8px;
  width: 110px; height: 110px;
  display: grid; place-items: center;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.footer-bottom { text-align: center; padding-top: 20px; font-size: 12px; color: rgba(255,255,255,0.5); }

/* 响应式 */
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 15px; }
  .sec-head h2 { font-size: 26px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .qr-box { margin: 0 auto; }
}
