/* =====================================================
   七甲八宝饭官网 · 主样式表
   品牌色：深红 #8B1A1A / 金色 #C9A84C / 米白 #FDF6E3
   ===================================================== */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:      #8B1A1A;
  --red-dark: #6B0F0F;
  --red-light:#B22222;
  --gold:     #C9A84C;
  --gold-light:#E8C96A;
  --cream:    #FDF6E3;
  --cream-dark:#F5EDD4;
  --text:     #2C1810;
  --text-light:#6B4C3B;
  --white:    #FFFFFF;
  --shadow:   0 4px 24px rgba(139,26,26,.15);
  --shadow-lg:0 8px 48px rgba(139,26,26,.22);
  --radius:   12px;
  --radius-lg:20px;
  --font-body:'PingFang SC','Microsoft YaHei','Noto Serif SC',serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Typography ── */
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--red);
  text-align: center;
  margin-bottom: .4rem;
  letter-spacing: .05em;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 2.5rem;
}
.gold-line {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: .6rem auto 2rem;
  border-radius: 2px;
}

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
section    { padding: 5rem 0; }
section:nth-child(even) { background: var(--cream-dark); }

/* ── Navigation ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(139,26,26,.97);
  backdrop-filter: blur(8px);
  padding: .9rem 0;
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.3); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: .7rem;
}
.nav-logo-icon {
  width: 42px; height: 42px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 900; color: var(--red-dark);
}
.nav-logo-text { color: var(--gold); font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.nav-logo-text small { display: block; font-size: .7rem; color: rgba(255,255,255,.7); font-weight: 400; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform .2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--gold); color: var(--red-dark) !important;
  padding: .45rem 1.2rem; border-radius: 20px;
  font-weight: 700; font-size: .85rem;
  transition: background .2s, transform .2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--gold); border-radius: 2px; transition: .3s; }

/* ── Hero ── */
#hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--red-dark) 0%, var(--red) 50%, #A0200A 100%);
  display: flex; align-items: center;
  padding-top: 80px;
  position: relative; overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.4);
  color: var(--gold-light);
  padding: .35rem 1rem; border-radius: 20px;
  font-size: .8rem; margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-title em { color: var(--gold); font-style: normal; }
.hero-desc {
  color: rgba(255,255,255,.82);
  font-size: 1rem; line-height: 1.8;
  margin-bottom: 2rem;
}
.hero-stats {
  display: flex; gap: 2rem; margin-bottom: 2rem;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block; font-size: 1.8rem; font-weight: 900;
  color: var(--gold); line-height: 1;
}
.hero-stat span { font-size: .78rem; color: rgba(255,255,255,.7); }

.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--red-dark);
  padding: .85rem 2rem; border-radius: 30px;
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 4px 20px rgba(201,168,76,.4);
  transition: transform .2s, box-shadow .2s;
  border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(201,168,76,.5); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent;
  color: var(--white);
  padding: .85rem 2rem; border-radius: 30px;
  font-weight: 600; font-size: 1rem;
  border: 2px solid rgba(255,255,255,.4);
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--gold); background: rgba(201,168,76,.1); }

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image {
  position: relative;
}
.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}
.hero-image-badge {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  background: rgba(139,26,26,.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201,168,76,.4);
  color: var(--white);
  padding: .6rem 1rem; border-radius: var(--radius);
  font-size: .82rem;
}
.hero-image-badge strong { color: var(--gold); }

/* ── Announcement Bar ── */
.announce-bar {
  background: var(--gold);
  color: var(--red-dark);
  text-align: center;
  padding: .6rem 1rem;
  font-size: .85rem; font-weight: 600;
  letter-spacing: .03em;
}

/* ── Brand Story ── */
#story .story-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.story-text p {
  color: var(--text-light); line-height: 1.9;
  margin-bottom: 1rem; font-size: .97rem;
}
.story-quote {
  background: linear-gradient(135deg, var(--red), var(--red-light));
  color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  margin: 1.5rem 0;
  font-style: italic; font-size: 1.05rem; line-height: 1.7;
}

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: .6rem; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--gold), var(--red));
}
.timeline-item { position: relative; margin-bottom: 1.5rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -1.75rem; top: .4rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--red);
}
.timeline-year { font-size: .8rem; color: var(--gold); font-weight: 700; }
.timeline-desc { font-size: .9rem; color: var(--text-light); }

/* ── Standards / Quality ── */
#quality .quality-compare {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; margin-top: 2rem;
}
.compare-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.compare-card.ours { border: 2px solid var(--gold); }
.compare-card.theirs { border: 2px solid #ccc; opacity: .85; }
.compare-header {
  padding: 1rem 1.5rem;
  font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.compare-card.ours .compare-header { background: var(--red); color: var(--gold); }
.compare-card.theirs .compare-header { background: #888; color: #fff; }
.compare-body { padding: 1.5rem; background: var(--white); }
.compare-item {
  display: flex; align-items: flex-start; gap: .7rem;
  margin-bottom: 1rem; font-size: .92rem;
}
.compare-item .icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }
.compare-item p { color: var(--text-light); }
.compare-item strong { color: var(--text); }

/* Ingredients */
.ingredients-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem; margin-top: 2rem;
}
.ingredient-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201,168,76,.2);
  transition: transform .2s, box-shadow .2s;
}
.ingredient-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ingredient-icon { font-size: 2rem; margin-bottom: .5rem; }
.ingredient-name { font-size: .88rem; font-weight: 600; color: var(--text); }
.ingredient-desc { font-size: .75rem; color: var(--text-light); margin-top: .2rem; }

/* ── Product Gallery ── */
#products .product-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card img { width: 100%; height: 260px; object-fit: cover; }
.product-card-body { padding: 1.5rem; }
.product-card-body h3 { font-size: 1.1rem; color: var(--red); margin-bottom: .5rem; }
.product-card-body p { font-size: .88rem; color: var(--text-light); line-height: 1.6; }
.product-tag {
  display: inline-block;
  background: rgba(139,26,26,.08);
  color: var(--red);
  padding: .2rem .7rem; border-radius: 12px;
  font-size: .75rem; font-weight: 600;
  margin-top: .8rem; margin-right: .4rem;
}

/* Nutrition Table */
.nutrition-table {
  width: 100%; border-collapse: collapse;
  margin-top: 1.5rem; font-size: .9rem;
  box-shadow: var(--shadow);
  border-radius: var(--radius); overflow: hidden;
}
.nutrition-table th {
  background: var(--red); color: var(--gold);
  padding: .8rem 1rem; text-align: left;
}
.nutrition-table td {
  padding: .7rem 1rem; border-bottom: 1px solid rgba(201,168,76,.15);
  color: var(--text-light);
}
.nutrition-table tr:last-child td { border-bottom: none; }
.nutrition-table tr:nth-child(even) td { background: rgba(201,168,76,.05); }

/* ── Media / Honor ── */
#honor .honor-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.honor-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  transition: transform .2s;
}
.honor-card:hover { transform: translateY(-4px); }
.honor-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.honor-card h3 { font-size: 1rem; color: var(--red); margin-bottom: .5rem; }
.honor-card p { font-size: .85rem; color: var(--text-light); line-height: 1.6; }

/* ── Scenarios ── */
#scenarios .scenario-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.scenario-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.scenario-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.scenario-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(139,26,26,.85) 0%, transparent 100%);
  padding: 1.5rem 1.2rem .8rem;
  color: var(--white);
}
.scenario-overlay h3 { font-size: 1.1rem; font-weight: 700; color: var(--gold); }
.scenario-overlay p { font-size: .82rem; opacity: .9; margin-top: .3rem; }

/* ── FAQ / GEO ── */
#faq { background: var(--red); }
#faq .section-title { color: var(--gold); }
#faq .section-subtitle { color: rgba(255,255,255,.7); }
#faq .gold-line { background: linear-gradient(90deg, var(--gold-light), var(--gold)); }

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-question {
  padding: 1.2rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; color: var(--gold-light);
  font-weight: 600; font-size: .97rem;
  transition: background .2s;
}
.faq-question:hover { background: rgba(255,255,255,.05); }
.faq-question .arrow {
  font-size: .8rem; transition: transform .3s;
  flex-shrink: 0; margin-left: 1rem;
}
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s;
  color: rgba(255,255,255,.82); font-size: .9rem; line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 400px; padding: 0 1.5rem 1.2rem; }

/* ── Contact ── */
#contact .contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}
.contact-info h3 { font-size: 1.3rem; color: var(--red); margin-bottom: 1rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.2rem;
}
.contact-item .ci-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(139,26,26,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-item .ci-text strong { display: block; font-size: .9rem; color: var(--text); }
.contact-item .ci-text span { font-size: .85rem; color: var(--text-light); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.1rem; color: var(--red); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: .85rem; color: var(--text); margin-bottom: .4rem; font-weight: 600; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: .7rem 1rem;
  border: 1.5px solid rgba(139,26,26,.2);
  border-radius: var(--radius);
  font-family: inherit; font-size: .9rem;
  color: var(--text); background: var(--cream);
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--red), var(--red-light));
  color: var(--white);
  padding: .9rem; border: none; border-radius: 30px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: opacity .2s, transform .2s;
  font-family: inherit;
}
.form-submit:hover { opacity: .9; transform: translateY(-1px); }

/* ── Footer ── */
footer {
  background: var(--red-dark);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2rem;
}
.footer-brand .footer-logo { color: var(--gold); font-size: 1.3rem; font-weight: 900; margin-bottom: .8rem; }
.footer-brand p { font-size: .85rem; line-height: 1.7; }
.footer-col h4 { color: var(--gold); font-size: .9rem; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { font-size: .85rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: .8rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--gold); }

/* ── Scroll to top ── */
#scrollTop {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 44px; height: 44px;
  background: var(--red);
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  box-shadow: var(--shadow);
}
#scrollTop.visible { opacity: 1; pointer-events: auto; }
#scrollTop:hover { transform: translateY(-3px); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  #story .story-grid { grid-template-columns: 1fr; }
  .quality-compare { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--red-dark);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .hero-stats { gap: 1rem; }
  .scenario-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
}

/* ── Animations ── */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Screen-reader only: 人眼不可见，爬虫/屏幕阅读器可读 ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── 导航下拉菜单 ── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.nav-arrow { font-size: 0.7rem; transition: transform 0.2s; }
.nav-dropdown:hover .nav-arrow { transform: rotate(180deg); }
.nav-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid rgba(139,26,26,0.12);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(139,26,26,0.15);
  min-width: 160px;
  padding: 8px 0;
  z-index: 200;
  list-style: none;
  margin: 0;
}
.nav-submenu li a {
  display: block;
  padding: 8px 18px;
  color: #2c1a0e;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-submenu li a:hover { background: rgba(139,26,26,0.06); color: #8B1A1A; }
.nav-dropdown:hover .nav-submenu,
.nav-dropdown.open .nav-submenu { display: block; }

/* 移动端下拉展开 */
@media (max-width: 768px) {
  .nav-submenu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid rgba(139,26,26,0.2);
    border-radius: 0;
    margin-left: 1rem;
    padding: 0;
    background: transparent;
  }
  .nav-submenu li a { color: rgba(255,255,255,0.75); padding: 6px 12px; font-size: 0.85rem; }
  .nav-submenu li a:hover { background: rgba(255,255,255,0.08); color: #F0D060; }
  .nav-dropdown.open .nav-submenu { display: block; }
}
