/* ==========================================================================
   魔戒机场官网 (Mojie Wangluo) - 史诗黑金原生样式系统
   纯原生 CSS 构建 · 零外部依赖 · 秒开级加载 · 响应式无障碍
   ========================================================================== */

:root {
  /* 品牌核心色彩 - 魔戒史诗黑金与秘银 */
  --bg-base: #0a0b0e;
  --bg-surface: #12141a;
  --bg-card: #161922;
  --bg-card-hover: #1c202c;
  --bg-glass: rgba(18, 20, 26, 0.85);

  --gold-primary: #d4af37;
  --gold-bright: #ffd700;
  --gold-glow: #f39c12;
  --gold-dark: #997922;
  --gold-gradient: linear-gradient(135deg, #ffe277 0%, #f39c12 50%, #d4af37 100%);
  --gold-gradient-hover: linear-gradient(135deg, #fff2a8 0%, #ffaa26 50%, #e6bd42 100%);

  --text-main: #f0f4f8;
  --text-sub: #94a3b8;
  --text-muted: #64748b;
  --text-gold: #f8c858;

  --border-gold: rgba(212, 175, 55, 0.22);
  --border-gold-bright: rgba(255, 215, 0, 0.55);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --glow-shadow: 0 0 25px rgba(212, 175, 55, 0.18);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 1px rgba(212, 175, 55, 0.3);

  /* 尺寸与间距 */
  --max-width: 1200px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CSS Reset & 基础布局 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(243, 156, 18, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.68;
  overflow-x: hidden;
  min-height: 100vh;
}

/* 无障碍 Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--gold-gradient);
  color: #0a0b0e;
  font-weight: 700;
  padding: 12px 24px;
  z-index: 99999;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* 锚点偏移处理 */
[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

/* 页面容器 */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 顶部导航 Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo 品牌区 */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo img {
  width: 44px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
  transition: transform 0.3s ease;
}

.brand-logo:hover img {
  transform: rotate(-8deg) scale(1.08);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 主导航菜单 */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 8px 4px;
  position: relative;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--gold-bright);
}

.nav-link.active {
  color: var(--gold-bright);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

/* 按钮与 CTA 规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  min-width: 46px;
  padding: 11px 24px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #0e0f14;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.5);
  color: #050608;
}

.btn-outline {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-bright);
  border: 1px solid var(--border-gold-bright);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.2);
}

/* Hero 主视觉区 */
.hero-section {
  padding: 85px 0 65px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  color: var(--gold-bright);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.hero-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-sub);
  max-width: 780px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 40px auto 0;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}

.stat-item h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

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

/* 核心特性与优势区 */
.section-padding {
  padding: 75px 0;
}

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

.section-tag {
  display: inline-block;
  color: var(--gold-bright);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 14px;
  color: #fff;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-sub);
}

/* 优势卡片网格 (3图文卡片) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold-bright);
  box-shadow: var(--glow-shadow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 58px;
  height: 58px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--gold-bright);
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 流媒体与 AI 支持图卡 */
.support-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

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

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}

.support-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.support-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.support-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.05);
}

.support-card h4 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
}

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

.support-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* 套餐价格对比表 */
.pricing-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 680px;
}

.pricing-table caption {
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-align: left;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-gold);
}

.pricing-table th,
.pricing-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.pricing-table th {
  background: var(--bg-surface);
  color: var(--text-sub);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
}

.pricing-table td {
  font-size: 0.95rem;
  color: var(--text-main);
}

.pricing-table tr:hover td {
  background: rgba(212, 175, 55, 0.04);
}

.pricing-plan-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  display: block;
}

.pricing-plan-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-bright);
}

.pricing-price {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gold-bright);
}

.pricing-price small {
  font-size: 0.85rem;
  color: var(--text-sub);
  font-weight: 400;
}

.pricing-highlight {
  background: rgba(212, 175, 55, 0.06);
}

/* 用户评价 Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
}

.testimonial-stars {
  color: var(--gold-bright);
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

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

/* FAQ 常见问题解答 - 原生 details/summary */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.faq-item[open] {
  border-color: var(--border-gold-bright);
  background: var(--bg-surface-elevated, #1a1c24);
}

.faq-question {
  padding: 20px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "▼";
  font-size: 0.75rem;
  color: var(--gold-bright);
  transition: transform 0.25s ease;
  margin-left: 12px;
}

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

.faq-question:hover,
.faq-question:focus-visible {
  color: var(--gold-bright);
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-sub);
  font-size: 0.96rem;
  line-height: 1.75;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: -4px;
  padding-top: 16px;
}

.faq-answer a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-answer a:hover {
  color: #fff;
}

/* 页脚 Footer (仅保留4个标题链接，打开新页面) */
.site-footer {
  background: #06070a;
  border-top: 1px solid var(--border-gold);
  padding: 48px 0 32px;
  margin-top: 60px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 600;
  transition: var(--transition);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.1);
}

.footer-copy {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* 知识科普与文章页专属样式 */
.article-header {
  padding: 50px 0 30px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 40px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-sub);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--gold-bright);
}

.article-container {
  max-width: 860px;
  margin: 0 auto;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #d1d5db;
}

.article-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  margin: 38px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-gold);
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin: 28px 0 12px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content strong {
  color: #fff;
}

.article-content a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.article-content a:hover {
  color: #fff;
}

.article-callout {
  background: var(--bg-surface);
  border-left: 4px solid var(--gold-primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 30px 0;
}

/* 文章网格 (知识科普聚合) */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  margin-top: 30px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold-bright);
  box-shadow: var(--glow-shadow);
}

.article-card-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-bright);
  margin-bottom: 12px;
}

.article-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 10px;
}

.article-card p {
  color: var(--text-sub);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}

/* 独立页面 (About, Terms, Privacy, Sitemap) */
.page-header {
  padding: 55px 0 35px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.page-desc {
  font-size: 1.05rem;
  color: var(--text-sub);
  max-width: 680px;
  margin: 0 auto;
}

.page-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--card-shadow);
  margin-bottom: 40px;
}

/* 响应式媒体查询 @media */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  
  .site-header .container {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .nav-menu {
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    order: 3;
    padding-top: 10px;
    padding-bottom: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  
  .site-header {
    height: auto;
    padding: 10px 0;
  }
  
  .hero-section {
    padding: 48px 0 40px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 18px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }

  .footer-nav {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .page-box {
    padding: 24px 18px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .btn {
    font-size: 0.92rem;
    padding: 10px 18px;
  }
}

/* 遵循 prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
