/* 小康酱酒 - static refactor */
:root {
  --color-primary: #a52a2a;
  --color-primary-dark: #8b1e1e;
  --color-gold: #d4a86a;
  --color-gold-light: #f2d9a8;
  --color-dark: #1a0f0a;
  --color-dark2: #2b1b12;
  --color-text: #333;
  --color-muted: #666;
  --color-bg: #f7f5f2;
  --color-white: #fff;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --max-width: 1200px;
  --header-height: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-dark);
  color: var(--color-white);
  height: var(--header-height);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo {
  height: 46px;
  width: auto;
}
.header-title {
  font-size: 15px;
  color: var(--color-gold-light);
  letter-spacing: 1px;
  font-family: var(--font-serif);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav a {
  padding: 8px 14px;
  font-size: 15px;
  color: #eee;
  transition: color .2s, background .2s;
  border-radius: 4px;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--color-gold);
  background: rgba(212,168,106,.12);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-gold);
  font-size: 26px;
  cursor: pointer;
}

/* Mobile nav */
@media (max-width: 900px) {
  .header-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-dark2);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px;
    gap: 0;
    display: none;
    border-top: 1px solid rgba(212,168,106,.2);
  }
  .header-nav.open { display: flex; }
  .header-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .menu-toggle { display: block; }
  .header-title { font-size: 13px; }
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0f0a 0%, #3d2016 50%, #1a0f0a 100%);
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.45) 100%);
}
.hero.has-video {
  background: #000;
  min-height: auto;
  display: block;
}
.hero.has-video .hero-media {
  opacity: 1;
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  display: block;
}
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(0,0,0,.35);
  color: #fff;
  z-index: 3;
  cursor: pointer;
  transition: opacity .2s;
}
.video-play-overlay.visible { display: flex; }
.video-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.video-play-btn svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }
.video-play-overlay p { margin: 0; font-size: 14px; letter-spacing: 2px; }
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 40px 20px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 8px;
  margin: 0 0 12px;
  color: var(--color-gold-light);
  text-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.hero-subtitle {
  font-size: 26px;
  letter-spacing: 6px;
  color: var(--color-gold);
  margin-bottom: 28px;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.hero-jd {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #e1251b;
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(225,37,27,.4);
  transition: transform .2s, box-shadow .2s;
}
.hero-jd:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(225,37,27,.5); }
.hero-jd svg { width: 22px; height: 22px; fill: #fff; }
@media (max-width: 768px) {
  .hero { min-height: auto; }
  .hero-title { font-size: 38px; letter-spacing: 4px; }
  .hero-subtitle { font-size: 18px; letter-spacing: 3px; }
}

/* Top video (used on sub-pages, same as original site) */
.top-video {
  width: 100%;
  background: #000;
  line-height: 0;
}
.top-video video {
  width: 100%;
  height: auto;
  display: block;
}

/* Brand top banner */
.brand-top-banner {
  width: 100%;
  line-height: 0;
  background: #000;
}
.brand-top-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Section common */
.section {
  padding: 70px 20px;
}
.section-alt { background: var(--color-bg); }
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
/* SEO 正文引导段：提升图片承载页面的可索引文本 */
.page-intro {
  max-width: 880px;
  margin: 0 auto 36px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-dark);
  text-align: justify;
}
@media (max-width: 600px) {
  .page-intro { font-size: 15px; padding: 0 16px; }
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 34px;
  color: var(--color-dark);
  margin: 0 0 8px;
  letter-spacing: 2px;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-sub {
  font-size: 13px;
  color: var(--color-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Brand culture cards (home) */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: transform .2s;
  border-top: 3px solid var(--color-primary);
}
.value-card:hover { transform: translateY(-4px); }
.value-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--color-primary);
  margin: 0 0 14px;
}
.value-card p {
  font-size: 16px;
  color: var(--color-muted);
  margin: 0;
}
@media (max-width: 768px) {
  .value-grid { grid-template-columns: 1fr; }
}

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  transition: transform .2s;
}
.product-card:hover { transform: translateY(-6px); }
.product-card img { width: 100%; height: auto; }
.product-info { padding: 18px; text-align: center; }
.product-info h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--color-dark);
}
.product-price {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 14px;
}

/* Products page - full-width visual rows */
.products-showcase,
.products-design { padding-bottom: 0; }
.products-design { padding-top: 60px; }
.product-visual-row {
  width: 100%;
  line-height: 0;
  margin-bottom: 16px;
}
.product-visual-row:last-child { margin-bottom: 0; }
.product-visual-row img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card img { height: auto; }
}

/* News */
.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.news-header h2 { margin: 0; font-size: 28px; font-family: var(--font-serif); }
.news-more {
  color: var(--color-primary);
  font-size: 14px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transition: transform .2s;
}
.news-card:hover { transform: translateY(-4px); }
.news-card img { width: 100%; height: 190px; object-fit: cover; }
.news-body { padding: 18px; }
.news-body h3 {
  font-size: 16px;
  margin: 0 0 10px;
  color: var(--color-dark);
  line-height: 1.5;
  min-height: 48px;
}
.news-body p {
  font-size: 13px;
  color: var(--color-muted);
  margin: 0 0 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
}
.news-detail { color: var(--color-primary); }
@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* News tabs */
.news-tabs {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 36px;
  border-bottom: 1px solid #e0dcd5;
  padding-bottom: 12px;
}
.news-tab {
  font-size: 18px;
  color: var(--color-muted);
  padding-bottom: 12px;
  position: relative;
  cursor: pointer;
}
.news-tab.active { color: var(--color-primary); font-weight: 600; }
.news-tab.active::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  border: 1px solid #ddd;
  color: var(--color-text);
  border-radius: 4px;
  font-size: 14px;
}
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Image-stack pages (about, brand, products design) */
.image-stack {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 60px;
}
.image-stack img {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

/* Contact page */
.contact-form-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 50px 30px;
  background: rgba(255,249,240,.94);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  text-align: center;
  background-image: url('../assets/bg.b7c672e9.png');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
}
.contact-form-wrap h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--color-dark);
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.contact-form-wrap h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--color-primary);
}
.form-group { margin-bottom: 18px; text-align: left; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d4c4b0;
  border-radius: 8px;
  font-size: 15px;
  background: rgba(255,255,255,.96);
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus { border-color: var(--color-primary); }
.form-hint {
  font-size: 12px;
  color: #5c4b3a;
  margin: -8px 0 18px;
  text-align: left;
  background: rgba(255,255,255,.8);
  padding: 6px 10px;
  border-radius: 4px;
}
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 17px;
  cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: var(--color-primary-dark); }
.btn-submit:disabled { opacity: .8; cursor: not-allowed; }
.form-message {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  background: rgba(255,255,255,.92);
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: #d9d1c7;
  padding-top: 50px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 44px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr 1.6fr;
  gap: 36px;
  align-items: start;
}
.footer-brand img { height: 70px; margin-bottom: 14px; }
.footer-brand p { margin: 0; font-size: 14px; line-height: 1.8; }
.footer-brand .footer-slogan { color: var(--color-gold); margin-top: 4px; }
.footer-nav h4,
.footer-contact h4 {
  color: var(--color-gold);
  font-size: 16px;
  margin: 0 0 16px;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.footer-nav li a {
  color: #d9d1c7;
  font-size: 14px;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-nav li a:hover { color: var(--color-gold); }
.footer-contact p { margin: 6px 0; font-size: 14px; line-height: 1.8; }
.footer-qr {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}
.qr-item { text-align: center; }
.qr-item img { width: 90px; height: 90px; border-radius: 6px; background: #fff; padding: 4px; box-sizing: border-box; }
.qr-item p { margin: 8px 0 0; font-size: 12px; }
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-qr { justify-content: flex-start; margin-top: 8px; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav ul { grid-template-columns: 1fr 1fr; }
  .footer-qr { justify-content: space-between; }
  .qr-item img { width: 76px; height: 76px; }
}
.footer-bar {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 18px 20px;
  font-size: 13px;
}
.footer-bar-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 14px;
}
.footer-bar-top .sep { opacity: .5; }
.footer-bar a { color: #fff; }
.footer-tip {
  margin-top: 10px;
  color: #ffe9c7;
  letter-spacing: .5px;
  font-size: 13px;
}

/* Back to top */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 80px;
  width: 44px;
  height: 44px;
  background: rgba(165,42,42,.85);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .2s;
  z-index: 999;
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); background: var(--color-primary-dark); }

/* News detail */
.article-detail { background: #fff; }
.article-inner { max-width: 900px; }
.article-back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--color-primary);
  font-size: 14px;
}
.article-back:hover { text-decoration: underline; }
.article-title {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--color-dark);
  margin: 0 0 10px;
  line-height: 1.4;
}
.article-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.article-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 24px;
}
.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
}
.article-content p { margin: 0 0 16px; }
.article-content h2, .article-content h3 {
  font-family: var(--font-serif);
  color: var(--color-dark);
  margin: 24px 0 12px;
}
.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px auto;
}
.article-content a { color: var(--color-primary); text-decoration: underline; }
.article-content figure { margin: 16px 0; }

/* Clickable news cards */
.news-card { display: block; color: inherit; }
.news-card:hover { transform: translateY(-4px); }
.news-card .news-detail { color: var(--color-primary); }

/* News tabs as buttons */
.news-tab {
  background: none;
  border: none;
  font-family: inherit;
}
