/* 糖心Vlog - 侘寂禅意美学主样式 */
:root {
  --color-bg: #f5f2ed;
  --color-bg2: #ede9e2;
  --color-text: #2c2825;
  --color-text-light: #7a7068;
  --color-accent: #8a7a6a;
  --color-teal: #7a9a96;
  --color-border: #d8d0c4;
  --color-white: #faf8f5;
  --color-ink: #1a1714;
  --font-main: 'Noto Serif SC', 'Source Han Serif CN', Georgia, serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --transition: 0.4s ease;
  --shadow: 0 2px 20px rgba(44,40,37,0.08);
}

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

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

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.85;
  overflow-x: hidden;
}

/* ===== TEXTURE OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 { font-weight: 400; letter-spacing: 0.05em; line-height: 1.4; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
p { margin-bottom: 1em; }
a { color: inherit; text-decoration: none; transition: var(--transition); }

/* ===== HEADER & NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,242,237,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  padding: 0 2rem;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-ink);
}
.site-logo span { color: var(--color-teal); }

.site-nav { display: flex; gap: 0; list-style: none; }
.site-nav a {
  display: block;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  border-radius: 2px;
  transition: var(--transition);
}
.site-nav a:hover { color: var(--color-ink); background: rgba(122,154,150,0.1); }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--color-text); margin: 5px 0; transition: var(--transition); }

/* ===== SEARCH BAR ===== */
.search-bar-wrap {
  background: var(--color-bg2);
  border-bottom: 1px solid var(--color-border);
  padding: 0.7rem 2rem;
}
.search-bar-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}
.search-bar-inner input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.55rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-text);
  outline: none;
}
.search-bar-inner input::placeholder { color: var(--color-text-light); }
.search-bar-inner button {
  background: var(--color-accent);
  border: none;
  color: var(--color-white);
  padding: 0.55rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: var(--transition);
}
.search-bar-inner button:hover { background: var(--color-teal); }

/* ===== BANNER ===== */
.banner {
  position: relative;
  height: 90vh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.82) saturate(0.9);
  transform: scale(1.04);
  transition: transform 8s ease;
}
.banner:hover .banner-bg { transform: scale(1.0); }
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(245,242,237,0.15) 0%, rgba(26,23,20,0.45) 100%);
}
.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 2rem;
  max-width: 700px;
}
.banner-content h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: 0.15em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}
.banner-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.08em;
  opacity: 0.9;
  margin-bottom: 2rem;
}
.banner-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  border: 1px solid currentColor;
  border-radius: 1px;
  transition: var(--transition);
  cursor: pointer;
}
.btn-light { color: var(--color-white); }
.btn-light:hover { background: rgba(255,255,255,0.15); }
.btn-solid { background: var(--color-accent); color: var(--color-white); border-color: var(--color-accent); }
.btn-solid:hover { background: var(--color-teal); border-color: var(--color-teal); }

/* ===== SECTIONS ===== */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--color-bg2); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--color-text-light); font-size: 0.95rem; letter-spacing: 0.05em; }
.section-divider {
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  margin: 1rem auto;
}

/* ===== VIDEO CARDS ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.video-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.video-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-bg2);
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  loading: lazy;
}
.video-card:hover .video-thumb img {
  transform: scale(1.05);
  filter: brightness(0.75) saturate(0.85);
}
/* Texture breathing effect on hover */
.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(245,242,237,0.25) 0%, transparent 60%),
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.video-card:hover .video-thumb::after { opacity: 1; }
/* Play button */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 52px;
  height: 52px;
  background: rgba(245,242,237,0.88);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.play-btn::after {
  content: '';
  border-left: 18px solid var(--color-accent);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}
.video-card:hover .play-btn { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-info { padding: 1rem; }
.video-info h3 { font-size: 0.92rem; margin-bottom: 0.5rem; line-height: 1.5; }
.video-meta { display: flex; gap: 1rem; font-family: var(--font-sans); font-size: 0.78rem; color: var(--color-text-light); }

/* ===== STORY SECTION ===== */
.story-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.story-img { border-radius: 1px; overflow: hidden; }
.story-img img { width: 100%; height: auto; display: block; }
.story-text h2 { margin-bottom: 1.5rem; }
.story-text p { color: var(--color-text-light); line-height: 2; }
.story-text .btn { margin-top: 1.5rem; color: var(--color-accent); border-color: var(--color-accent); }
.story-text .btn:hover { background: var(--color-accent); color: var(--color-white); }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 1px;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); filter: brightness(0.88) saturate(0.9); }

/* ===== AI MODULE ===== */
.ai-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.ai-img { order: 2; border-radius: 1px; overflow: hidden; }
.ai-img img { width: 100%; height: auto; display: block; }
.ai-text { order: 1; }
.ai-text h2 { margin-bottom: 1.5rem; }
.ai-text p { color: var(--color-text-light); line-height: 2; }
.ai-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.ai-tag {
  padding: 0.3rem 0.8rem;
  background: var(--color-bg2);
  border: 1px solid var(--color-border);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  border-radius: 1px;
}

/* ===== MASTERS ===== */
.masters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.master-card { text-align: center; }
.master-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 2px solid var(--color-border);
}
.master-avatar img { width: 100%; height: 100%; object-fit: cover; }
.master-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.master-card p { font-size: 0.85rem; color: var(--color-text-light); }

/* ===== REVIEWS ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.review-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  border-radius: 1px;
  position: relative;
}
.review-card::before {
  content: '\201C';
  position: absolute;
  top: 0.8rem;
  left: 1.2rem;
  font-size: 3rem;
  color: var(--color-border);
  font-family: Georgia, serif;
  line-height: 1;
}
.review-text { padding-top: 1.5rem; font-size: 0.9rem; color: var(--color-text-light); line-height: 1.9; margin-bottom: 1rem; }
.review-user { font-family: var(--font-sans); font-size: 0.82rem; color: var(--color-accent); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.2rem 0;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.03em;
  transition: var(--transition);
}
.faq-q:hover { color: var(--color-teal); }
.faq-q .faq-icon { font-size: 1.2rem; color: var(--color-accent); transition: transform 0.3s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.9;
}
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 1.2rem; }

/* ===== PARTNERS ===== */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}
.partner-logo {
  width: 120px;
  height: 50px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  border-radius: 1px;
}

/* ===== CONTACT ===== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { font-size: 0.9rem; color: var(--color-text-light); line-height: 2; }
.qr-placeholder {
  width: 100px;
  height: 100px;
  background: var(--color-bg2);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 1rem;
  border-radius: 2px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-ink);
  color: rgba(245,242,237,0.7);
  padding: 3rem 2rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand h3 { color: var(--color-white); font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-brand p { line-height: 1.8; }
.footer-links h4 { color: var(--color-white); margin-bottom: 0.8rem; font-weight: 400; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: rgba(245,242,237,0.6); transition: var(--transition); }
.footer-links a:hover { color: var(--color-white); }
.footer-bottom {
  border-top: 1px solid rgba(245,242,237,0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(245,242,237,0.4);
}

/* ===== INNER PAGE HERO ===== */
.page-hero {
  height: 45vh;
  min-height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.7) saturate(0.85);
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,23,20,0.35);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
}
.page-hero-content h1 { letter-spacing: 0.2em; margin-bottom: 0.5rem; }
.breadcrumb {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  opacity: 0.7;
  letter-spacing: 0.05em;
}
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { opacity: 1; }

/* ===== ARTICLE GRID ===== */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.article-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 1px;
  overflow: hidden;
  transition: var(--transition);
}
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.article-img { aspect-ratio: 3/2; overflow: hidden; }
.article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.article-card:hover .article-img img { transform: scale(1.04); }
.article-body { padding: 1.2rem; }
.article-body h3 { font-size: 1rem; margin-bottom: 0.5rem; line-height: 1.5; }
.article-body p { font-size: 0.85rem; color: var(--color-text-light); line-height: 1.8; }
.article-meta { font-family: var(--font-sans); font-size: 0.78rem; color: var(--color-text-light); margin-top: 0.8rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .story-wrap, .ai-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .ai-img { order: 1; }
  .ai-text { order: 2; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .masters-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--color-white); border-bottom: 1px solid var(--color-border); padding: 1rem; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .video-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .masters-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .banner { height: 70vh; }
  .section { padding: 3rem 1rem; }
}

/* ===== LAZY LOAD ===== */
img[data-src] { opacity: 0; transition: opacity 0.5s ease; }
img.loaded { opacity: 1; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg2); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }
