/* =============================================
   51吃瓜官网 · 主样式文件
   自然治愈风格 · 雾绿 + 奶油白 + 深棕
   ============================================= */

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

/* CSS变量 */
:root {
  --sage: #7a9e7e;
  --sage-dark: #5a7a57;
  --sage-light: #a8c5a0;
  --sage-pale: #d4e8d0;
  --cream: #f5f0e8;
  --warm-white: #faf8f4;
  --dark-brown: #2c2416;
  --mid-brown: #5c4a2a;
  --text-muted: #7a6a54;
  --border: #e8e0d0;
  --shadow: rgba(44, 36, 22, 0.08);
  --shadow-md: rgba(44, 36, 22, 0.14);
  --transition: 0.28s ease;
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
}

/* 重置 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--warm-white);
  color: var(--dark-brown);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--sage-dark); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* 顶部公告栏 */
.top-bar {
  background: var(--sage-dark);
  color: rgba(255,255,255,0.9);
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  letter-spacing: 0.03em;
}
.top-bar a {
  color: var(--sage-pale);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.top-bar a:hover { color: #fff; }

/* 导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px var(--shadow-md); }
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-logo {
  font-family: 'Noto Serif SC', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-brown);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.site-logo span { color: var(--sage-dark); }
.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--mid-brown);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all var(--transition);
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active {
  background: var(--sage-pale);
  color: var(--sage-dark);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark-brown);
  border-radius: 2px;
  transition: all var(--transition);
}

/* 搜索栏 */
.search-bar-wrap {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
}
.search-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
  background: #fff;
  color: var(--dark-brown);
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}
.search-form input[type="search"]:focus { border-color: var(--sage); }
.search-btn {
  padding: 10px 22px;
  background: var(--sage-dark);
  color: #fff;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition);
  font-family: inherit;
}
.search-btn:hover { background: var(--sage); }

/* 面包屑 */
.breadcrumb {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--sage-dark); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--dark-brown); font-weight: 500; }

/* 页面Hero（内页） */
.page-hero {
  background: linear-gradient(135deg, var(--sage-dark) 0%, var(--sage) 100%);
  color: #fff;
  text-align: center;
  padding: 72px 24px 64px;
}
.page-hero h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.page-hero p {
  font-size: 16px;
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* 首屏Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1.0); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,36,22,0.62) 0%, rgba(90,122,87,0.38) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
  color: #fff;
}
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.hero-content h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  opacity: 0.88;
  max-width: 520px;
  line-height: 1.85;
  margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  padding: 14px 32px;
  background: var(--sage-dark);
  color: #fff;
  border-radius: 32px;
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  display: inline-block;
}
.btn-primary:hover { background: var(--sage); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(90,122,87,0.4); }
.btn-outline {
  padding: 14px 32px;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  border-radius: 32px;
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  display: inline-block;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* 通用Section */
.section {
  padding: 80px 0;
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--sage-dark);
  text-transform: uppercase;
  margin-bottom: 12px;
  background: var(--sage-pale);
  padding: 4px 14px;
  border-radius: 12px;
}
.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  color: var(--dark-brown);
  line-height: 1.35;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.85;
}

/* 淡入动画 */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* 视频区块 */
.video-section { background: var(--cream); }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.video-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
}
.video-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px var(--shadow-md); }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.06); }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.28);
  transition: background var(--transition);
}
.video-card:hover .play-btn { background: rgba(0,0,0,0.42); }
.play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}
.play-icon::after {
  content: '';
  border-left: 18px solid var(--sage-dark);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}
.video-card:hover .play-icon { transform: scale(1.12); }
.video-meta { padding: 18px 20px 20px; }
.video-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--sage-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.video-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-brown);
  line-height: 1.5;
  margin-bottom: 10px;
}
.video-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* 日常双栏 */
.daily-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.daily-grid.reverse { direction: rtl; }
.daily-grid.reverse > * { direction: ltr; }
.daily-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 8px 40px var(--shadow-md);
}
.daily-img img { width: 100%; height: 100%; object-fit: cover; }
.daily-text .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--sage-dark);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.daily-text h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--dark-brown);
  line-height: 1.4;
  margin-bottom: 20px;
}
.daily-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 12px;
}
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  padding: 5px 14px;
  background: var(--sage-pale);
  color: var(--sage-dark);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}

/* 品牌理念区块 */
.concept-section {
  background: linear-gradient(135deg, var(--dark-brown) 0%, var(--mid-brown) 100%);
  color: #fff;
  padding: 80px 0;
}
.concept-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.concept-text .section-tag { background: rgba(255,255,255,0.15); color: var(--sage-pale); }
.concept-text .section-title { color: #fff; }
.concept-text p { color: rgba(255,255,255,0.78); font-size: 15px; line-height: 1.9; margin-bottom: 12px; }
.concept-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.value-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px;
  transition: background var(--transition);
}
.value-card:hover { background: rgba(255,255,255,0.14); }
.value-icon { font-size: 28px; margin-bottom: 12px; }
.value-card h4 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.value-card p { font-size: 13px; color: rgba(255,255,255,0.68); line-height: 1.75; }

/* 好物区块 */
.goods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.goods-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px var(--shadow);
  transition: all var(--transition);
}
.goods-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px var(--shadow-md); }
.goods-img { aspect-ratio: 4/3; overflow: hidden; }
.goods-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.goods-card:hover .goods-img img { transform: scale(1.06); }
.goods-info { padding: 20px 22px 24px; }
.goods-category { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--sage-dark); text-transform: uppercase; margin-bottom: 8px; }
.goods-name { font-size: 18px; font-weight: 700; color: var(--dark-brown); margin-bottom: 10px; font-family: 'Noto Serif SC', serif; }
.goods-desc { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.goods-keywords { display: flex; flex-wrap: wrap; gap: 6px; }
.goods-kw { padding: 4px 12px; background: var(--cream); color: var(--mid-brown); border-radius: 12px; font-size: 12px; }

/* 陪伴步骤 */
.accompany-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.step-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 2px 16px var(--shadow);
  transition: all var(--transition);
  border-top: 3px solid var(--sage-pale);
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px var(--shadow-md); border-top-color: var(--sage-dark); }
.step-num { font-size: 36px; font-weight: 700; color: var(--sage-pale); font-family: 'Noto Serif SC', serif; margin-bottom: 12px; line-height: 1; }
.step-card:hover .step-num { color: var(--sage-dark); }
.step-card h4 { font-size: 17px; font-weight: 600; color: var(--dark-brown); margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.8; }

/* 札记区块 */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.note-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px var(--shadow);
  transition: all var(--transition);
}
.note-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px var(--shadow-md); }
.note-img { aspect-ratio: 16/9; overflow: hidden; }
.note-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.note-card:hover .note-img img { transform: scale(1.06); }
.note-body { padding: 20px 22px 24px; }
.note-cat { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--sage-dark); text-transform: uppercase; margin-bottom: 8px; }
.note-title { font-size: 16px; font-weight: 700; color: var(--dark-brown); line-height: 1.5; margin-bottom: 10px; font-family: 'Noto Serif SC', serif; }
.note-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }
.note-date { font-size: 12px; color: var(--sage-dark); font-weight: 500; }

/* 用户评价 */
.reviews-section { background: var(--cream); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 2px 16px var(--shadow);
  transition: all var(--transition);
}
.review-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px var(--shadow-md); }
.review-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--sage-pale); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.review-name { font-size: 15px; font-weight: 600; color: var(--dark-brown); }
.review-role { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.review-text { font-size: 14px; color: var(--mid-brown); line-height: 1.85; margin-bottom: 14px; font-style: italic; }
.review-moment { font-size: 12px; color: var(--sage-dark); font-weight: 500; }

/* FAQ */
.faq-section { background: var(--warm-white); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-brown);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition);
  font-family: inherit;
}
.faq-question:hover { color: var(--sage-dark); }
.faq-icon { font-size: 20px; font-weight: 300; flex-shrink: 0; transition: transform var(--transition); color: var(--sage-dark); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 20px; }
.faq-answer p { font-size: 15px; color: var(--text-muted); line-height: 1.85; }

/* 相遇区块 */
.meet-section { background: var(--cream); }
.meet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.meet-info h3 { font-family: 'Noto Serif SC', serif; font-size: 26px; font-weight: 700; color: var(--dark-brown); margin-bottom: 16px; line-height: 1.4; }
.meet-info > p { font-size: 15px; color: var(--text-muted); line-height: 1.9; margin-bottom: 28px; }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--sage-pale); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-label { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.contact-value { font-size: 15px; font-weight: 500; color: var(--dark-brown); }
.meet-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 8px 40px var(--shadow-md); }
.meet-map img { width: 100%; height: 400px; object-fit: cover; }

/* 页脚 */
.site-footer {
  background: var(--dark-brown);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { font-family: 'Noto Serif SC', serif; font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.8; }
.footer-col h5 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col a:hover { color: var(--sage-pale); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--sage-pale); }

/* 响应式 */
@media (max-width: 1024px) {
  .daily-grid, .concept-grid, .meet-grid { grid-template-columns: 1fr; gap: 40px; }
  .daily-grid.reverse { direction: ltr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(250,248,244,0.98); backdrop-filter: blur(12px); padding: 16px 24px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px var(--shadow-md); gap: 4px; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }
  .hero { min-height: 80vh; }
  .hero-content { padding: 0 24px; }
  .hero-content h1 { font-size: 32px; }
  .hero-btns { flex-direction: column; }
  .video-grid { grid-template-columns: 1fr; }
  .goods-grid, .notes-grid, .reviews-grid { grid-template-columns: 1fr; }
  .accompany-steps { grid-template-columns: 1fr; }
  .concept-values { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 56px 0; }
  .page-hero { padding: 48px 24px 40px; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 16px; }
  .search-bar-wrap { padding: 10px 16px; }
  .section-inner { padding: 0 16px; }
  .hero-content { padding: 0 16px; }
  .meet-map img { height: 260px; }
}

/* 打印优化 */
@media print {
  .top-bar, .search-bar-wrap, .nav-toggle, .site-header { display: none; }
  .hero { min-height: auto; }
}
