/* =========================================================
   糖心网址 - 全局样式
   主题：热门影视剧集短剧在线观看平台
   配色：深空黑 + 琥珀金 + 暖白
   ========================================================= */

:root {
  --bg-dark: #0d1117;
  --bg-deep: #0a0e14;
  --bg-card: #161c27;
  --bg-card-hover: #1d2533;
  --gold: #f5b942;
  --gold-light: #ffd77a;
  --gold-dark: #c98a1b;
  --text-main: #e9edf3;
  --text-sub: #9aa7b8;
  --text-mute: #6b7a8f;
  --border: rgba(245, 185, 66, 0.16);
  --gradient-hero: linear-gradient(135deg, #0a0e14 0%, #141a26 45%, #1c1420 100%);
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 8px 24px rgba(245, 185, 66, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--gold-light);
}

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

ul {
  list-style: none;
}

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 185, 66, 0.12);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-main);
}

.brand .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #10131a;
  box-shadow: var(--shadow-gold);
}

.brand:hover {
  color: var(--gold);
}

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

.nav-links a {
  color: var(--text-sub);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: #10131a;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 88px 0;
}

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

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-sub);
  font-size: 1.02rem;
}

/* ---------- Hero 主视觉 ---------- */
.hero {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: 110px 0 120px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(245, 185, 66, 0.16), transparent 68%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 215, 122, 0.1), transparent 66%);
  pointer-events: none;
}

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

.hero-copy {
  animation: fadeUp 0.9s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(245, 185, 66, 0.12);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.22;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-sub);
  font-size: 1.08rem;
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #10131a;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(245, 185, 66, 0.32);
  color: #10131a;
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(245, 185, 66, 0.5);
}

.btn-ghost:hover {
  background: rgba(245, 185, 66, 0.1);
  transform: translateY(-3px);
  color: var(--gold-light);
}

.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 185, 66, 0.22);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
  animation: fadeUp 0.9s ease 0.15s both;
}

.hero-poster {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.hero-poster img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-poster::after {
  content: "每日更新";
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #10131a;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}

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

.hero-stat {
  text-align: center;
  background: rgba(13, 17, 23, 0.6);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
}

.hero-stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--gold-light);
}

.hero-stat span {
  font-size: 0.78rem;
  color: var(--text-sub);
}

/* ---------- 特性 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--border);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.2), rgba(245, 185, 66, 0.05));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-sub);
  font-size: 0.94rem;
}

/* ---------- 影视推荐网格 ---------- */
.show-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.show-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.show-thumb {
  position: relative;
  overflow: hidden;
}

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

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

.show-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(13, 17, 23, 0.82);
  color: var(--gold-light);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.show-body {
  padding: 18px;
}

.show-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.show-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-mute);
}

.show-meta .score {
  color: var(--gold);
  font-weight: 700;
}

/* ---------- 服务介绍 ---------- */
.services-wrap {
  background: var(--bg-deep);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 34px 28px;
  border-left: 4px solid var(--gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-item .num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 2px;
}

.service-item h3 {
  font-size: 1.25rem;
  margin: 10px 0 12px;
}

.service-item p {
  color: var(--text-sub);
  font-size: 0.95rem;
}

/* ---------- 资讯列表 ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-body {
  padding: 20px;
}

.news-date {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.news-body h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.news-body p {
  color: var(--text-sub);
  font-size: 0.92rem;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: var(--border);
}

.faq-item h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
  color: var(--gold-light);
}

.faq-item p {
  color: var(--text-sub);
  font-size: 0.94rem;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, #1a1f2c 0%, #241a14 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(245, 185, 66, 0.18), transparent 60%);
}

.cta .container {
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta p {
  color: var(--text-sub);
  max-width: 620px;
  margin: 0 auto 28px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(245, 185, 66, 0.1);
  padding: 60px 0 0;
}

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

.footer-brand p {
  color: var(--text-sub);
  font-size: 0.92rem;
  margin-top: 14px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--gold-light);
}

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

.footer-col ul a {
  color: var(--text-sub);
  font-size: 0.92rem;
}

.footer-col ul a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 0;
  text-align: center;
  color: var(--text-mute);
  font-size: 0.85rem;
}

/* ---------- 页面横幅（内页） ---------- */
.page-banner {
  background: var(--gradient-hero);
  padding: 84px 0 70px;
  text-align: center;
}

.page-banner h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.page-banner p {
  color: var(--text-sub);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.02rem;
}

.breadcrumb {
  display: inline-flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-mute);
  margin-top: 16px;
}

/* ---------- 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.15);
}

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

.contact-info {
  display: grid;
  gap: 18px;
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.info-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--gold-light);
}

.info-card p {
  color: var(--text-sub);
  font-size: 0.94rem;
}

/* ---------- 影视资源页 ---------- */
.products-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-sub);
  padding: 9px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.25s;
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #10131a;
  border-color: transparent;
}

/* ---------- 关于页 ---------- */
.about-lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-lead img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.about-lead h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.about-lead p {
  color: var(--text-sub);
  margin-bottom: 14px;
}

.value-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.value-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-sub);
  font-size: 0.96rem;
}

.value-list li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- 资讯详情 ---------- */
.article-detail {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.article-detail img {
  border-radius: var(--radius-sm);
  margin: 22px 0;
}

.article-detail h2 {
  font-size: 1.45rem;
  margin: 28px 0 14px;
}

.article-detail h3 {
  font-size: 1.15rem;
  margin: 22px 0 12px;
  color: var(--gold-light);
}

.article-detail p {
  color: var(--text-sub);
  margin-bottom: 16px;
}

.article-detail ul {
  margin: 14px 0 18px 22px;
  color: var(--text-sub);
}

.article-detail ul li {
  list-style: disc;
  margin-bottom: 8px;
}

/* ---------- 动画 ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .show-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .services-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(13, 17, 23, 0.97);
    padding: 18px 6%;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-140%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    width: 100%;
    text-align: center;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 76px 0 84px;
  }
  .hero-poster img {
    height: 240px;
  }
  .features-grid,
  .show-grid,
  .services-grid,
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-lead,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .section {
    padding: 60px 0;
  }
  .article-detail {
    padding: 26px 20px;
  }
}

@media (max-width: 480px) {
  .features-grid,
  .show-grid,
  .services-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    width: 100%;
  }
}
