/* ============================================
   百芳集 · 茶叶品牌官网 · 全站样式
   baifangji.com
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
  --primary:    #1a3a2a;   /* 深墨绿 */
  --secondary:  #2e6b4a;   /* 中绿 */
  --accent:     #c8a84b;   /* 金色 */
  --accent-lt:  #e8d08a;   /* 浅金 */
  --bg-cream:   #faf7f0;   /* 米白 */
  --bg-dark:    #0f2419;   /* 极深绿 */
  --text-dark:  #1c1c1c;
  --text-mid:   #4a4a4a;
  --text-light: #f5f0e8;
  --border:     #d4c89a;
  --font-serif: 'Noto Serif SC', 'SimSun', serif;
  --font-sans:  'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.14);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.20);
}

/* ---------- 全局重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--bg-cream);
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ---------- 字体引入 ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* ============================================
   导航栏
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 80px;
  background: rgba(15, 36, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,168,75,0.25);
  transition: background var(--transition);
}
.navbar.scrolled {
  background: rgba(15, 36, 25, 0.98);
  box-shadow: var(--shadow-md);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.navbar-logo {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform var(--transition);
}
.navbar-logo:hover { transform: scale(1.05); }
.navbar-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.navbar-nav {
  display: flex;
  gap: 40px;
}
.navbar-nav a {
  font-size: 0.92rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}
.navbar-nav a:hover,
.navbar-nav a.active { color: var(--accent); }
.navbar-nav a:hover::after,
.navbar-nav a.active::after { width: 100%; }
.navbar-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  transition: all var(--transition);
  border-radius: 2px;
}
.navbar-contact:hover {
  background: var(--accent);
  color: var(--bg-dark);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-light);
  transition: all var(--transition);
}

/* ============================================
   页脚
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 70px 60px 30px;
  border-top: 1px solid rgba(200,168,75,0.2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand-logo {
  height: 50px;
  filter: brightness(0) invert(1);
  margin-bottom: 18px;
}
.footer-brand-desc {
  font-size: 0.88rem;
  color: rgba(245,240,232,0.65);
  line-height: 1.9;
  max-width: 280px;
}
.footer-brand-slogan {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200,168,75,0.25);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.88rem;
  color: rgba(245,240,232,0.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: rgba(245,240,232,0.65);
}
.footer-contact-item .icon { color: var(--accent); flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(245,240,232,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(245,240,232,0.4);
}
.footer-trademark {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trademark-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.7rem;
  border-radius: 50%;
  font-weight: 700;
}

/* ============================================
   通用组件
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  position: relative;
  padding: 0 20px;
}
.section-tag::before,
.section-tag::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px; height: 1px;
  background: var(--accent);
}
.section-tag::before { right: 100%; margin-right: -18px; }
.section-tag::after  { left: 100%; margin-left: -18px; }
.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin-bottom: 16px;
}
.section-title.light { color: var(--text-light); }
.section-subtitle {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}
.section-subtitle.light { color: rgba(245,240,232,0.7); }
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}
.divider-ornament span {
  width: 40px; height: 1px;
  background: var(--accent);
}
.divider-ornament i {
  width: 6px; height: 6px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  display: inline-block;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--bg-dark);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: 2px;
}
.btn-primary:hover {
  background: var(--accent-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,168,75,0.35);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 34px;
  background: transparent;
  color: var(--text-light);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  border: 1px solid rgba(245,240,232,0.5);
  cursor: pointer;
  transition: all var(--transition);
  border-radius: 2px;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 34px;
  background: transparent;
  color: var(--primary);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: all var(--transition);
  border-radius: 2px;
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================
   动画
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.fade-in.visible { opacity: 1; }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
  .navbar { padding: 0 30px; }
  .footer { padding: 50px 30px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .navbar-nav, .navbar-contact { display: none; }
  .hamburger { display: flex; }
  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: var(--bg-dark);
    padding: 30px 40px;
    gap: 24px;
    border-top: 1px solid rgba(200,168,75,0.2);
  }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .section-title { font-size: 1.7rem; }
  .container { padding: 0 20px; }
}
