/* ===== 糖心vlog 全局样式表 ===== */
:root {
  --color-primary: #ff6b9d;
  --color-primary-dark: #e85a8b;
  --color-secondary: #ffb088;
  --color-accent: #ffd93d;
  --color-purple: #a78bfa;
  --color-bg: #fff8f3;
  --color-bg-soft: #fff0e8;
  --color-card: #ffffff;
  --color-text: #4a3b3b;
  --color-text-light: #7a6a6a;
  --color-border: #ffe0d0;
  --color-gradient: linear-gradient(135deg, #ff6b9d 0%, #ffb088 100%);
  --color-gradient-soft: linear-gradient(135deg, #fff0e8 0%, #ffe8f0 100%);
  --shadow-sm: 0 2px 8px rgba(255, 107, 157, 0.08);
  --shadow-md: 0 8px 24px rgba(255, 107, 157, 0.12);
  --shadow-lg: 0 16px 48px rgba(255, 107, 157, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 导航栏 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 248, 243, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
}

.nav-logo .logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--color-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-md);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--color-bg-soft);
  color: var(--color-primary);
}

.nav-cta {
  background: var(--color-gradient);
  color: #fff !important;
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--color-gradient) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--color-primary);
}

/* ===== Hero 主视觉 ===== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background: var(--color-gradient-soft);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
}

.hero::before {
  width: 320px;
  height: 320px;
  background: var(--color-primary);
  top: -80px;
  right: -60px;
}

.hero::after {
  width: 260px;
  height: 260px;
  background: var(--color-secondary);
  bottom: -60px;
  left: -40px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--color-text);
}

.hero-content h1 .highlight {
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content .subtitle {
  font-size: 18px;
  color: var(--color-text-light);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--color-gradient);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat-item .num {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
}

.stat-item .label {
  font-size: 14px;
  color: var(--color-text-light);
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.hero-badge {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
}

.hero-badge.top {
  top: 30px;
  left: -30px;
}

.hero-badge.bottom {
  bottom: 30px;
  right: -20px;
  animation-delay: 2s;
}

.hero-badge .badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--color-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.hero-badge .badge-text strong {
  display: block;
  font-size: 16px;
}

.hero-badge .badge-text span {
  font-size: 13px;
  color: var(--color-text-light);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Section 通用 ===== */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: var(--color-bg-soft);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--color-text);
}

.section-header p {
  font-size: 17px;
  color: var(--color-text-light);
}

/* ===== 核心特性 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--color-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== 内容展示 ===== */
.content-showcase {
  background: var(--color-bg-soft);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: center;
}

.showcase-media {
  position: relative;
}

.showcase-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

.showcase-item {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.showcase-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.showcase-item .num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.showcase-item h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.showcase-item p {
  font-size: 14px;
  color: var(--color-text-light);
}

/* ===== 作品/产品网格 ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card .thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .thumb img {
  transform: scale(1.08);
}

.product-card .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
}

.product-card .body {
  padding: 22px 24px 26px;
}

.product-card .body h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.product-card .body p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 14px;
}

.product-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--color-text-light);
}

.product-card .meta .price {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 16px;
}

/* ===== CTA 行动号召 ===== */
.cta {
  background: var(--color-gradient);
  color: #fff;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cta::before {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -60px;
}

.cta::after {
  width: 220px;
  height: 220px;
  bottom: -80px;
  left: -40px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta p {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 32px;
}

.cta .btn-white {
  background: #fff;
  color: var(--color-primary);
}

.cta .btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ===== 页脚 ===== */
.site-footer {
  background: #2d2228;
  color: #c9b8b8;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
  color: #8a7575;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-question::after {
  content: "+";
  font-size: 24px;
  color: var(--color-primary);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 28px 22px;
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 18px 0;
  background: var(--color-bg-soft);
  font-size: 14px;
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-primary);
}

.breadcrumb span {
  margin: 0 8px;
}

/* ===== 页面头部 ===== */
.page-hero {
  background: var(--color-gradient-soft);
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 17px;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== 关于页面 ===== */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.about-text h2 {
  font-size: 32px;
  margin-bottom: 18px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--color-text-light);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.value-card {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-6px);
}

.value-card .icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.value-card h4 {
  font-size: 17px;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 13px;
  color: var(--color-text-light);
}

/* ===== 联系页面 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.contact-card .icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--color-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.contact-card h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 14px;
  color: var(--color-text-light);
}

.contact-form {
  background: #fff;
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ===== 新闻列表 ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.news-card .thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .thumb img {
  transform: scale(1.06);
}

.news-card .body {
  padding: 22px;
}

.news-card .meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.news-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.news-card .excerpt {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== 新闻详情 ===== */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}

.article-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.article-cover {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-meta {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.article-content h1 {
  font-size: 30px;
  margin-bottom: 16px;
  line-height: 1.35;
}

.article-content p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-text-light);
}

.article-content h2 {
  font-size: 22px;
  margin: 30px 0 14px;
  color: var(--color-text);
}

.article-sidebar .widget {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.article-sidebar .widget h3 {
  font-size: 17px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-bg-soft);
}

.article-sidebar .widget ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.article-sidebar .widget ul li a {
  color: var(--color-text-light);
  transition: var(--transition);
}

.article-sidebar .widget ul li a:hover {
  color: var(--color-primary);
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .hero-inner,
  .showcase-grid,
  .about-story,
  .contact-grid,
  .article-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

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

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

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 50px 0 70px;
  }

  .hero-stats {
    gap: 24px;
  }

  .features-grid,
  .products-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero-badge.top {
    left: 10px;
    top: 10px;
  }

  .hero-badge.bottom {
    right: 10px;
    bottom: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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