/* ==========================================================================
   AI魔改短剧景甜资源平台 - 全局样式
   ========================================================================== */

:root {
  --primary: #ff3c6b;
  --primary-dark: #d62651;
  --secondary: #6c5ce7;
  --accent: #fdcb6e;
  --dark: #1a1030;
  --dark-2: #241640;
  --light: #f8f5ff;
  --text: #2d2a3a;
  --text-light: #6b6880;
  --white: #ffffff;
  --shadow: 0 8px 30px rgba(26, 16, 48, 0.12);
  --shadow-lg: 0 16px 48px rgba(26, 16, 48, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --gradient: linear-gradient(135deg, #ff3c6b 0%, #6c5ce7 100%);
  --font: "PingFang SC", "Microsoft YaHei", "微软雅黑", "Segoe UI", sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

/* ==========================================================================
   顶部导航栏
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 16, 48, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.brand .brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient);
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s, background 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 60, 107, 0.25);
}

.nav-cta {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--gradient);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(255, 60, 107, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 60, 107, 0.55);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ==========================================================================
   Hero 主视觉区
   ========================================================================== */

.hero {
  position: relative;
  padding: 90px 0 110px;
  background: var(--dark);
  overflow: hidden;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 60, 107, 0.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(108, 92, 231, 0.4), transparent 45%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

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

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 22px;
  animation: fadeInUp 0.8s ease both;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.2;
  font-weight: 900;
  margin-bottom: 22px;
  animation: fadeInUp 0.8s 0.15s ease both;
}

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

.hero p {
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: fadeInUp 0.8s 0.45s ease both;
}

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

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(255, 60, 107, 0.45);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 60, 107, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.hero-visual {
  position: relative;
  animation: fadeInUp 0.9s 0.5s ease both;
}

.hero-visual img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255, 255, 255, 0.15);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
  animation: fadeInUp 0.8s 0.6s ease both;
}

.hero-stat strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   区块通用
   ========================================================================== */

.section {
  padding: 80px 0;
}

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

.section-head .section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
}

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

.bg-white {
  background: var(--white);
}

/* ==========================================================================
   核心特性
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid rgba(26, 16, 48, 0.06);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.35s, box-shadow 0.35s;
}

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

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gradient);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

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

/* ==========================================================================
   服务介绍
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.35s, box-shadow 0.35s;
}

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

.service-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.6s;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-body {
  padding: 24px;
}

.service-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.service-body p {
  color: var(--text-light);
  font-size: 0.94rem;
}

.service-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ==========================================================================
   详细内容 / 内容布局
   ========================================================================== */

.content-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.content-article {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.content-article h2 {
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 16px;
}

.content-article h3 {
  font-size: 1.2rem;
  color: var(--dark);
  margin: 24px 0 12px;
}

.content-article p {
  color: var(--text-light);
  margin-bottom: 14px;
}

.content-article ul {
  margin: 12px 0 16px 20px;
  list-style: disc;
}

.content-article li {
  color: var(--text-light);
  margin-bottom: 8px;
}

.aside {
  position: sticky;
  top: 90px;
}

.aside-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.aside-card h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light);
}

.aside-card ul li {
  padding: 9px 0;
  border-bottom: 1px dashed rgba(26, 16, 48, 0.08);
}

.aside-card ul li:last-child {
  border-bottom: 0;
}

.aside-card a {
  color: var(--text);
  font-size: 0.94rem;
  transition: color 0.3s;
}

.aside-card a:hover {
  color: var(--primary);
}

/* ==========================================================================
   FAQ 常见问题
   ========================================================================== */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--dark);
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.3s;
  flex-shrink: 0;
}

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

.faq-answer {
  display: none;
  padding: 0 24px 22px;
  color: var(--text-light);
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  display: block;
  animation: fadeInDown 0.4s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   CTA 行动号召
   ========================================================================== */

.cta {
  padding: 90px 0;
  background: var(--gradient);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.15), transparent 50%);
}

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

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

.cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}

.cta .btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

/* ==========================================================================
   新闻卡片
   ========================================================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s, box-shadow 0.35s;
}

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

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

.news-body {
  padding: 22px;
}

.news-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.news-body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.news-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
}

.news-link:hover {
  color: var(--primary-dark);
}

/* ==========================================================================
   产品/资源卡片
   ========================================================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s, box-shadow 0.35s;
}

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

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

.product-body {
  padding: 22px;
}

.product-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

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

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.product-tags span {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--light);
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 600;
}

.price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

/* ==========================================================================
   联系页面
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed rgba(26, 16, 48, 0.1);
}

.contact-info-item:last-child {
  border-bottom: 0;
}

.contact-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--light);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-info-item h3 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.contact-info-item p {
  color: var(--text-light);
  font-size: 0.92rem;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e3e0f0;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-family: var(--font);
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 60, 107, 0.15);
}

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

/* ==========================================================================
   页脚
   ========================================================================== */

.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
}

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

.footer h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}

.footer p {
  font-size: 0.92rem;
}

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

.footer ul a {
  font-size: 0.92rem;
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   面包屑
   ========================================================================== */

.breadcrumb {
  background: var(--dark-2);
  color: rgba(255, 255, 255, 0.7);
  padding: 26px 0;
}

.breadcrumb h1 {
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

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

/* ==========================================================================
   动画
   ========================================================================== */

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

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

.fade-in.delay-1 { animation-delay: 0.1s; }
.fade-in.delay-2 { animation-delay: 0.2s; }
.fade-in.delay-3 { animation-delay: 0.3s; }

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

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

/* 标签页 */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.tab-btn {
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid #e3e0f0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .content-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .aside {
    position: static;
  }

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

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--dark);
    padding: 12px 20px 20px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.35s, opacity 0.35s;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }

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

  .nav-links a {
    padding: 12px 10px;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .hero {
    padding: 60px 0 80px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .brand {
    font-size: 0.9rem;
    max-width: 260px;
  }
}

/* 无障碍 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 0 0 8px 0;
  z-index: 2000;
}

.skip-link:focus {
  left: 0;
}
