/* 糖心vlog 甜蜜生活视频分享平台 - 通用样式 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Hiragino Sans GB", sans-serif;
  color: #2c2416;
  background: #fdf9f4;
  line-height: 1.65;
}

a {
  color: #c17f3a;
  text-decoration: none;
}

a:hover {
  color: #a66b2d;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: #fffbf7;
  border-bottom: 1px solid rgba(193, 127, 58, 0.15);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #d4a054, #b8863a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.logo-text-main {
  font-weight: 700;
  font-size: 18px;
  color: #8b5a2b;
}

.logo-text-sub {
  font-size: 12px;
  color: #8a7355;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: #5c4a32;
}

.nav-links a.active,
.nav-links a:hover {
  background: #f5ebe0;
  color: #8b5a2b;
}

.nav-toggle {
  display: none;
  padding: 8px 12px;
  background: #f5ebe0;
  border: 1px solid #e8d5c4;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #5c4a32;
}

.nav-cta {
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(145deg, #d4a054, #b8863a);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
}

.nav-cta:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* Hero */
.hero {
  background: linear-gradient(165deg, #fef8f0 0%, #fdf9f4 50%, #fffbf7 100%);
  padding: 48px 0 40px;
  border-bottom: 1px solid rgba(193, 127, 58, 0.08);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e8d5c4;
  font-size: 12px;
  color: #8b5a2b;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #5c3d1e;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  line-height: 1.3;
}

.hero-title span {
  color: #b8863a;
}

.hero-subtitle {
  font-size: 15px;
  color: #5c4a32;
  margin-bottom: 20px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-primary {
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(145deg, #d4a054, #b8863a);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-ghost {
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid #e8d5c4;
  background: #fff;
  color: #8b5a2b;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.hero-visual {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(139, 90, 43, 0.12);
  border: 1px solid rgba(232, 213, 196, 0.6);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.stat-card {
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f0e6dc;
}

.stat-number {
  font-size: 20px;
  font-weight: 700;
  color: #b8863a;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: #7a6b5a;
}

/* Sections */
.section {
  padding: 36px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #3d3225;
}

.section-subtitle {
  font-size: 14px;
  color: #7a6b5a;
  margin-top: 4px;
}

.link-more {
  font-size: 14px;
  color: #c17f3a;
  white-space: nowrap;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.video-card,
.feature-card,
.case-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #f0e6dc;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(139, 90, 43, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover,
.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(139, 90, 43, 0.1);
}

.video-cover {
  position: relative;
  background: #f8f4ef;
}

.video-cover img {
  height: 150px;
  width: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.2s;
}

.video-play-btn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-left: 14px solid #b8863a;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.video-card:hover .video-play-btn {
  opacity: 1;
}

.video-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
}

.video-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(139, 90, 43, 0.85);
  color: #fff;
  font-size: 11px;
}

.card-body {
  padding: 14px 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: #3d3225;
  margin-bottom: 6px;
  line-height: 1.4;
}

.card-meta {
  font-size: 12px;
  color: #8a7355;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 13px;
  color: #6b5d4d;
  line-height: 1.5;
}

.video-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.video-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8a7355;
}

.video-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d4a054, #b8863a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
}

.video-stats {
  font-size: 11px;
  color: #9a8b7a;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  padding: 4px 10px;
  border-radius: 6px;
  background: #fdf9f4;
  border: 1px solid #e8d5c4;
  font-size: 12px;
  color: #8b5a2b;
}

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f0e6dc;
}

.list-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #3d3225;
  margin-bottom: 6px;
}

.list-item-meta {
  font-size: 13px;
  color: #7a6b5a;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.faq-item {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f0e6dc;
}

.faq-q {
  font-size: 14px;
  font-weight: 600;
  color: #3d3225;
  margin-bottom: 8px;
}

.faq-a {
  font-size: 13px;
  color: #6b5d4d;
  line-height: 1.5;
}

/* Footer */
footer {
  margin-top: auto;
  background: #2c2416;
  color: #e8e0d5;
  padding: 32px 0 20px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

.footer-title {
  font-weight: 600;
  color: #f5ebe0;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #c4b8a8;
  font-size: 13px;
}

.footer-links a:hover {
  color: #e8d5c4;
}

.footer-bottom {
  border-top: 1px solid #4a3f32;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: #9a8b7a;
  font-size: 12px;
}

/* Article / List layout */
.breadcrumb {
  font-size: 13px;
  color: #8a7355;
  margin-bottom: 14px;
}

.article-layout {
  padding: 28px 0 40px;
}

.article-header h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #3d3225;
  line-height: 1.35;
}

.article-meta {
  font-size: 13px;
  color: #7a6b5a;
  margin-bottom: 20px;
}

.article-cover {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid #f0e6dc;
}

.article-cover img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.article-content {
  max-width: 720px;
}

.article-content p {
  margin-bottom: 14px;
  font-size: 15px;
  color: #4a4035;
  line-height: 1.7;
}

.article-content h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: #3d3225;
}

.article-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 18px 0 8px;
  color: #5c4a32;
}

.article-tags {
  margin-top: 20px;
}

.article-tags span {
  display: inline-block;
  padding: 4px 12px;
  margin-right: 8px;
  margin-bottom: 6px;
  border-radius: 6px;
  background: #fdf9f4;
  border: 1px solid #e8d5c4;
  font-size: 12px;
  color: #8b5a2b;
}

.back-home {
  margin-top: 24px;
  font-size: 14px;
}

/* List page cards in content */
.list-card {
  display: block;
  padding: 18px 20px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #f0e6dc;
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.list-card:hover {
  border-color: #e8d5c4;
  box-shadow: 0 8px 24px rgba(139, 90, 43, 0.08);
}

.list-card h2 {
  font-size: 17px;
  margin-bottom: 8px;
  color: #3d3225;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .nav-links.is-open {
    display: flex;
    width: 100%;
    flex-direction: column;
  }

  .nav-toggle {
    display: block;
  }

  header {
    position: static;
  }

  .nav {
    flex-direction: row;
    align-items: center;
  }

  .hero {
    padding: 28px 0 32px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
