/* ===== 菜刀.cn 全站样式 ===== */
:root {
  --red: #c2252f;
  --red-dark: #9c1a23;
  --red-light: #fdf0f0;
  --steel: #23282d;
  --steel-light: #3a4147;
  --ink: #1f2328;
  --muted: #6b7280;
  --bg: #faf8f5;
  --card: #ffffff;
  --line: #e9e2d8;
  --gold: #b8862b;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(31, 35, 40, 0.06);
  --shadow-lg: 0 8px 30px rgba(31, 35, 40, 0.1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 20px; color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800;
}
.brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; line-height: 1.2; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); padding: 8px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 500;
}
.nav a:hover { background: var(--red-light); color: var(--red); text-decoration: none; }
.nav a.active { color: var(--red); font-weight: 700; }
.nav a.nav-cta {
  background: var(--red); color: #fff; margin-left: 8px;
  padding: 8px 16px; font-weight: 600;
}
.nav a.nav-cta:hover { background: var(--red-dark); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px; font-size: 18px; cursor: pointer;
  color: var(--ink);
}

/* ===== 首屏 Hero ===== */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 75% 30%, rgba(194, 37, 47, 0.25), transparent 60%),
    linear-gradient(160deg, #23282d 0%, #2f363c 60%, #23282d 100%);
  color: #fff; padding: 72px 0 80px;
}
.hero .container {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(194, 37, 47, 0.2); border: 1px solid rgba(194, 37, 47, 0.55);
  color: #ffb3b8; border-radius: 999px; padding: 5px 14px;
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.hero h1 {
  font-size: 40px; line-height: 1.25; font-weight: 800; margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.hero h1 em { color: #ff6b72; font-style: normal; }
.hero p.lead { font-size: 17px; color: #c9ced4; margin-bottom: 28px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-price {
  margin-top: 26px; font-size: 15px; color: #9aa3ab;
}
.hero-price strong { color: #ff8a90; font-size: 26px; font-weight: 800; margin-right: 6px; }

.hero-visual {
  position: relative; border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-visual img { width: 100%; }
.hero-visual .visual-tag {
  position: absolute; left: 14px; top: 14px;
  background: var(--red); color: #fff; font-size: 13px; font-weight: 700;
  padding: 5px 12px; border-radius: 6px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; padding: 13px 26px; font-size: 16px; font-weight: 700;
  cursor: pointer; border: 2px solid transparent; transition: all 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { border-color: rgba(255, 255, 255, 0.5); color: #fff; background: transparent; }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-outline-dark { border-color: var(--steel); color: var(--steel); background: transparent; }
.btn-outline-dark:hover { background: var(--steel); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ===== 区块 ===== */
.section { padding: 64px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .kicker {
  color: var(--red); font-weight: 700; font-size: 14px;
  letter-spacing: 2px; margin-bottom: 8px;
}
.section-head h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 15.5px; }

/* ===== 卖点网格 ===== */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; text-align: center;
}
.feature-card .icon {
  width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 12px;
  background: var(--red-light); display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ===== 产品卡片 ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-card .thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f0ede8; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb .tag {
  position: absolute; left: 12px; top: 12px; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 5px;
}
.product-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card h3 { font-size: 18px; line-height: 1.4; }
.product-card h3 a { color: var(--ink); }
.product-card h3 a:hover { color: var(--red); }
.product-card .desc { font-size: 14px; color: var(--muted); flex: 1; }
.product-card .price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  border-top: 1px dashed var(--line); padding-top: 12px;
}
.product-card .price { color: var(--red); font-weight: 800; font-size: 22px; }
.product-card .price small { font-size: 13px; font-weight: 500; color: var(--muted); }

/* ===== 群接龙流程 ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; position: relative;
}
.step-card::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--steel); color: #fff; font-weight: 800; font-size: 18px;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--muted); }

/* ===== 群接龙 CTA 条 ===== */
.cta-band {
  background: linear-gradient(135deg, #1d2226, #2b3238);
  border-radius: 18px; color: #fff;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px;
  align-items: center; padding: 44px; overflow: hidden; position: relative;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(194, 37, 47, 0.25);
}
.cta-band h2 { font-size: 28px; margin-bottom: 12px; }
.cta-band p { color: #b9c0c7; font-size: 15.5px; margin-bottom: 22px; }
.cta-band .qr-box {
  background: #fff; border-radius: 14px; padding: 18px; text-align: center;
  position: relative; z-index: 1;
}
.cta-band .qr-box img { width: 100%; max-width: 210px; margin: 0 auto 10px; }
.cta-band .qr-box .qr-label { color: var(--ink); font-weight: 700; font-size: 15px; }
.cta-band .qr-box .qr-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ===== 文章卡片 ===== */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.article-card .cat {
  align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--red);
  background: var(--red-light); padding: 3px 10px; border-radius: 999px;
}
.article-card h3 { font-size: 17.5px; line-height: 1.45; }
.article-card h3 a { color: var(--ink); }
.article-card h3 a:hover { color: var(--red); }
.article-card p { font-size: 14px; color: var(--muted); flex: 1; }
.article-card .date { font-size: 13px; color: #9aa0a6; }

/* 文章列表（文章中心） */
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  transition: box-shadow 0.2s ease;
}
.article-item:hover { box-shadow: var(--shadow); }
.article-item h3 { font-size: 18px; margin-bottom: 6px; }
.article-item h3 a { color: var(--ink); }
.article-item h3 a:hover { color: var(--red); }
.article-item p { font-size: 14px; color: var(--muted); }
.article-item .meta { font-size: 13px; color: #9aa0a6; white-space: nowrap; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-bar button {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 9px 18px; min-height: 40px; font-size: 14px; cursor: pointer;
  font-family: inherit;
}
.filter-bar button.active, .filter-bar button:hover {
  background: var(--red); border-color: var(--red); color: #fff;
}

/* ===== 产品视频 ===== */
.video-section { text-align: center; }
.video-frame {
  max-width: 460px; margin: 0 auto; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #000;
}
.video-frame video { width: 100%; display: block; }
.video-note { font-size: 13.5px; color: var(--muted); margin-top: 12px; }

/* ===== 产品图集（瀑布流） ===== */
.masonry { column-count: 3; column-gap: 16px; }
.masonry .gallery-item {
  break-inside: avoid; margin-bottom: 16px; cursor: zoom-in;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.masonry .gallery-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.masonry .gallery-item img { width: 100%; height: auto; display: block; }
.masonry .gallery-item figcaption {
  padding: 9px 12px; font-size: 13px; color: var(--muted); text-align: center;
  border-top: 1px solid var(--line);
}

/* ===== 灯箱 ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center;
  background: rgba(15, 18, 21, 0.92); padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 900px); max-height: 88vh; border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; background: rgba(255, 255, 255, 0.12); color: #fff;
  border: none; border-radius: 50%; cursor: pointer; font-size: 22px;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75); font-size: 14px;
}

/* ===== 响应式补充 ===== */
@media (max-width: 960px) {
  .masonry { column-count: 2; }
}
@media (max-width: 640px) {
  .masonry { column-count: 2; column-gap: 10px; }
  .masonry .gallery-item { margin-bottom: 10px; border-radius: 10px; }
  .masonry .gallery-item figcaption { padding: 7px 8px; font-size: 12px; }
}

/* ===== 文章正文 ===== */
.prose { max-width: 820px; margin: 0 auto; }
.prose h1 { font-size: 32px; line-height: 1.35; font-weight: 800; margin: 18px 0 14px; }
.prose .article-meta { color: #9aa0a6; font-size: 14px; margin-bottom: 30px; }
.prose h2 {
  font-size: 23px; font-weight: 800; margin: 42px 0 14px;
  padding-left: 14px; border-left: 5px solid var(--red);
}
.prose h3 { font-size: 18.5px; font-weight: 700; margin: 28px 0 10px; }
.prose p { margin-bottom: 16px; color: #333a41; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; color: #333a41; }
.prose strong { color: var(--ink); }
.prose blockquote {
  border-left: 4px solid var(--gold); background: #fbf7ec;
  padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 20px 0;
  color: #5c4d26; font-size: 15px;
}
.prose .callout {
  background: var(--red-light); border: 1px solid #f2d2d4; border-radius: 10px;
  padding: 16px 20px; margin: 22px 0; font-size: 15px;
}
.prose .callout a { font-weight: 700; }
.prose table {
  width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px;
  background: var(--card); border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow);
}
.prose th { background: var(--steel); color: #fff; padding: 11px 14px; text-align: left; font-weight: 600; }
.prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: none; }
.prose tr:nth-child(even) td { background: #faf8f5; }
/* 表格移动端横向滚动容器（桌面端无副作用） */
.prose .table-wrap, .table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 20px 0; border-radius: 10px;
}
.prose .table-wrap table { margin: 0; }
.prose figure { margin: 24px 0; }
.prose figure img { border-radius: 10px; box-shadow: var(--shadow); width: 100%; }
.prose figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; }

/* FAQ */
.faq { margin: 26px 0; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 15px 20px; font-weight: 700; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after { content: "+"; color: var(--red); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details .faq-body { padding: 0 20px 16px; color: #333a41; font-size: 15px; }

/* 面包屑 */
.breadcrumb { font-size: 13.5px; color: var(--muted); margin: 22px 0 6px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span.sep { margin: 0 8px; color: #c3c8cd; }

/* ===== 产品详情页 ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 20px; }
.product-gallery .main-img {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow);
}
.product-gallery .main-img img { width: 100%; }
.product-info h1 { font-size: 28px; line-height: 1.4; font-weight: 800; margin-bottom: 10px; }
.product-info .sub { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.product-info .price-box {
  background: var(--red-light); border: 1px solid #f2d2d4; border-radius: 12px;
  padding: 16px 20px; margin-bottom: 22px; display: flex; align-items: baseline; gap: 10px;
}
.product-info .price-box .cur { color: var(--red); font-weight: 800; font-size: 30px; }
.product-info .price-box .unit { color: var(--muted); font-size: 14px; }
.selling-points { list-style: none; margin: 0 0 24px; }
.selling-points li {
  padding: 9px 0 9px 30px; position: relative; font-size: 15.5px; color: #333a41;
  border-bottom: 1px dashed var(--line);
}
.selling-points li::before {
  content: "✓"; position: absolute; left: 2px; top: 9px;
  color: var(--red); font-weight: 800;
}
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 18px 0 26px; }
.spec-table th, .spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 130px; color: var(--muted); font-weight: 500; background: #faf8f5; }
.spec-table td { color: var(--ink); }

/* 内链盒子 */
.related-links {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin-top: 40px;
}
.related-links h2 { font-size: 19px; margin-bottom: 14px; border: none; padding: 0; }
.related-links ul { list-style: none; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.related-links a { font-size: 15px; }
.related-links a::before { content: "› "; color: var(--red); font-weight: 800; }

/* ===== 页脚 ===== */
.site-footer { background: var(--steel); color: #aeb6bd; padding: 52px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; }
.site-footer li { margin-bottom: 9px; font-size: 14px; }
.site-footer a { color: #aeb6bd; }
.site-footer a:hover { color: #fff; }
.footer-brand p { font-size: 14px; margin-top: 14px; line-height: 1.7; }
.footer-qr { text-align: center; }
.footer-qr img { width: 130px; border-radius: 10px; margin: 0 auto 8px; background: #fff; padding: 6px; }
.footer-qr .qr-label { color: #fff; font-size: 14px; font-weight: 600; }
.copyright {
  border-top: 1px solid #3a4147; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: 13px; color: #7d858c;
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 30px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; padding: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
}
/* 文章列表在小平板/横屏手机提前堆叠，避免 nowrap  meta 挤压标题 */
@media (max-width: 768px) {
  .article-item { grid-template-columns: 1fr; gap: 10px; }
  .article-item .meta { white-space: normal; }
}
@media (max-width: 640px) {
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 16px;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav a.nav-cta { margin-left: 0; text-align: center; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; font-size: 20px;
  }
  .section { padding: 44px 0; }
  .section-head h2 { font-size: 24px; }
  .product-grid, .article-grid, .feature-grid, .steps { grid-template-columns: 1fr; }
  .prose h1 { font-size: 26px; }
  .prose h2 { font-size: 20px; }
  .related-links ul { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-qr img { width: 120px; }
  .cta-band { padding: 24px; border-radius: 14px; }
  .cta-band h2 { font-size: 22px; }
  .spec-table th, .spec-table td { padding: 9px 10px; font-size: 13.5px; }
  .spec-table th { width: 88px; }
  .faq summary { padding: 14px 16px; font-size: 15.5px; }
  .lightbox .lb-prev, .lightbox .lb-next { width: 56px; height: 56px; font-size: 26px; }
  .lightbox .lb-close { width: 48px; height: 48px; top: 14px; right: 14px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 36px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 22px; }
  .hero h1 { font-size: 26px; }
  .hero p.lead { font-size: 15.5px; }
  .hero { padding: 40px 0 48px; }
  .prose h1 { font-size: 24px; }
  .prose h2 { font-size: 19px; }
  .cta-band { padding: 20px; }
  .article-item { padding: 18px 16px; }
  .product-card .body { padding: 16px; }
  .related-links { padding: 20px 16px; }
}
