/* 蜗牛影视官方官网 - 全局样式 */
:root {
  --primary: #ff4d4f;
  --primary-dark: #d9363e;
  --secondary: #ff7a45;
  --accent: #ffd666;
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #1a1a24;
  --text: #f5f5f7;
  --text-muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 77, 79, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(255, 77, 79, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 顶部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
}

.nav {
  display: flex;
  gap: 36px;
}

.nav a {
  font-size: 15px;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* 通用 Hero */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 77, 79, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 122, 69, 0.12) 0%, transparent 40%);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(17px, 2.4vw, 22px);
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.hero-meta .item {
  text-align: center;
}

.hero-meta .item strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
}

.hero-meta .item span {
  color: var(--text-muted);
  font-size: 14px;
}

/* 首页 Hero 双栏 */
.home-hero .hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  text-align: left;
}

.home-hero .hero-content {
  max-width: none;
  margin: 0;
  text-align: left;
}

.home-hero .hero-meta {
  justify-content: flex-start;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 300px;
  height: 600px;
  border-radius: 44px;
  background: linear-gradient(180deg, #1e1e2d 0%, #12121a 100%);
  border: 8px solid #2a2a3a;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  transform: perspective(1200px) rotateY(-12deg) rotateX(5deg);
  transition: var(--transition);
}

.phone-mockup:hover {
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-card);
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 12px;
}

.phone-logo {
  font-weight: 800;
  color: var(--text);
}

.phone-search {
  height: 34px;
  border-radius: 10px;
  background: var(--bg-elevated);
}

.phone-banner {
  height: 140px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.phone-row {
  display: flex;
  gap: 10px;
}

.phone-card {
  flex: 1;
  height: 90px;
  border-radius: 12px;
  background: var(--bg-elevated);
}

.phone-card.accent {
  background: linear-gradient(135deg, rgba(255, 77, 79, 0.25), rgba(255, 122, 69, 0.15));
}

/* 区域标题 */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 70px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(255, 77, 79, 0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 77, 79, 0.2);
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-desc {
  color: var(--text-muted);
  font-size: 17px;
}

/* 特性卡片 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 77, 79, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 77, 79, 0.1);
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 22px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* 内容展示区 */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}

.showcase-row:last-child {
  margin-bottom: 0;
}

.showcase-row.reverse {
  direction: rtl;
}

.showcase-row.reverse > * {
  direction: ltr;
}

.showcase-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
}

.showcase-media .placeholder {
  font-size: 80px;
  opacity: 0.25;
}

.showcase-content h3 {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.25;
}

.showcase-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 16px;
}

.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.showcase-list li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 77, 79, 0.15);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* 下载区 */
.download-section {
  background: var(--bg-elevated);
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
}

.download-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 77, 79, 0.3);
}

.download-card .icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: rgba(255, 77, 79, 0.1);
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  font-size: 34px;
  color: var(--primary);
}

.download-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.download-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.qr-placeholder {
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #111;
  font-size: 12px;
  font-weight: 700;
}

/* 用户评价 */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.review-stars {
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 18px;
  letter-spacing: 2px;
}

.review-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
}

.review-author strong {
  display: block;
  font-size: 15px;
}

.review-author span {
  font-size: 13px;
  color: var(--text-muted);
}

/* 内容页通用 */
.page-content {
  padding: 140px 0 100px;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.content-card h2 {
  font-size: 28px;
  margin: 40px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card h3 {
  font-size: 20px;
  margin: 28px 0 12px;
}

.content-card p,
.content-card li {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 16px;
}

.content-card ul {
  padding-left: 22px;
  margin-bottom: 20px;
}

.content-card a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 联系表单 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 77, 79, 0.1);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  margin-bottom: 4px;
}

.contact-item span {
  color: var(--text-muted);
  font-size: 15px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.faq-question .icon {
  transition: var(--transition);
  color: var(--text-muted);
}

.faq-item.open .faq-question .icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-answer-inner {
  padding: 0 26px 22px;
  color: var(--text-muted);
}

/* CTA */
.cta-section {
  padding: 100px 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 77, 79, 0.12) 0%, transparent 55%),
    var(--bg-elevated);
}

.cta-card {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.cta-card h2 {
  font-size: clamp(28px, 4.5vw, 46px);
  margin-bottom: 20px;
  font-weight: 800;
}

.cta-card p {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 36px;
}

/* 页脚 */
.footer {
  background: #050508;
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 18px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 15px;
  margin-bottom: 22px;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}

/* 滚动动画 */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* 响应式 */
@media (max-width: 992px) {
  .home-hero .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-hero .hero-content {
    text-align: center;
  }

  .home-hero .hero-meta {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .features-grid,
  .download-cards,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .showcase-row.reverse > * {
    direction: ltr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 100px 32px;
    gap: 24px;
    border-left: 1px solid var(--border);
    transition: var(--transition);
  }

  .nav.open {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .features-grid,
  .download-cards,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .phone-mockup {
    width: 220px;
    height: 440px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .content-card {
    padding: 28px;
  }
}
