/* ===================================================================
   魔戒机场官网 (mojievpn.click) - 核心视觉与交互样式表
   视觉标准：图1现代极简SaaS微质感卡片、科技微网格、柔和阴影、图2精确定制套餐
   核心卖点：稳定、安全、高速、便宜、高性价比、IPLC专线、全平台支持
=================================================================== */

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.25);
  --accent: #2563eb;
  --accent-cyan: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #3b82f6 50%, #06b6d4 100%);
  --btn-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  --btn-dark: #0f172a;
  --btn-dark-hover: #1e293b;
  --card-bg: #ffffff;
  --card-dark: #0f172a;
  --card-dark-border: #1e293b;
  --text-main: #0f172a;
  --text-sub: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --bg-main: #f8fafc;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 30px -10px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
  --shadow-lg: 0 25px 50px -12px rgba(79, 70, 229, 0.16), 0 0 0 1px rgba(226, 232, 240, 0.9);
  --shadow-fig1: 0 20px 40px -15px rgba(37, 99, 235, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.85);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --container-max: 1200px;
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  /* 图1科技微网格与柔和极光底色 */
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(219, 234, 254, 0.6) 0%, rgba(248, 250, 252, 0) 70%),
    linear-gradient(to right, rgba(226, 232, 240, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.5) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
  color: var(--text-main);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 容器布局 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: all 0.3s ease;
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

.logo-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary);
  border: 1px solid #bfdbfe;
  margin-left: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-sub);
  position: relative;
  padding: 6px 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-main);
}

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: rotate(30deg);
  animation: shine 4s infinite linear;
}

@keyframes shine {
  0% { transform: translate(-100%, -100%) rotate(30deg); }
  20%, 100% { transform: translate(100%, 100%) rotate(30deg); }
}

/* Hero 区域 */
.hero-section {
  padding: 68px 0 56px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e0e7ff;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.08);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.ping-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  position: relative;
}

.ping-indicator::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.4);
  animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(2); opacity: 0; }
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-main);
}

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

.hero-subtitle {
  font-size: 1.15rem;
  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;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

/* 专线 Ping 延迟栏 */
.latency-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.node-status-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--text-sub);
  box-shadow: var(--shadow-xs);
}

.node-status-item strong {
  color: #10b981;
  font-family: monospace;
}

/* ===================================================================
   图1 精致卡片演示组件 (Exact Match to Reference Fig 1)
   白色卡片、圆角、顶部小图标、渐变图标、标题、副标题、高转化按钮
=================================================================== */
.style-demo-wrap {
  display: flex;
  justify-content: center;
  position: relative;
  margin: 20px auto 0;
  max-width: 480px;
}

.style-demo-card {
  width: 100%;
  background: #ffffff;
  border-radius: 28px;
  padding: 36px 32px 32px;
  box-shadow: var(--shadow-fig1);
  border: 1px solid rgba(226, 232, 240, 0.95);
  position: relative;
  text-align: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.style-demo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -15px rgba(79, 70, 229, 0.18), 0 0 0 1px rgba(199, 210, 254, 0.9);
}

.card-top-icons {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  gap: 12px;
  color: #94a3b8;
}

.card-top-icons svg {
  width: 20px;
  height: 20px;
  stroke: #94a3b8;
  stroke-width: 1.8;
  fill: none;
  cursor: pointer;
  transition: stroke 0.2s;
}

.card-top-icons svg:hover {
  stroke: var(--primary);
}

.style-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 50%, #4f46e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.35);
}

.style-card-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.style-card-sub {
  font-size: 0.96rem;
  color: #64748b;
  margin-bottom: 26px;
}

.style-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #5046e6 0%, #4338ca 100%);
  color: #ffffff;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.38);
  transition: all 0.25s ease;
}

.style-card-btn:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.5);
  color: #ffffff;
}

/* 通用区块排版 */
section {
  padding: 80px 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

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

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

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

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f0fdf4;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card:nth-child(2) .feature-icon-box { background: #eff6ff; color: #2563eb; }
.feature-card:nth-child(3) .feature-icon-box { background: #fdf4ff; color: #c026d3; }
.feature-card:nth-child(4) .feature-icon-box { background: #fff7ed; color: #ea580c; }
.feature-card:nth-child(5) .feature-icon-box { background: #fefce8; color: #ca8a04; }
.feature-card:nth-child(6) .feature-icon-box { background: #eef2ff; color: #4f46e5; }

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

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

/* 官网入口与镜像导航板块 */
.portals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portal-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.portal-box:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.portal-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.portal-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.portal-status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.portal-url {
  font-family: monospace;
  font-size: 0.92rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.portal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===================================================================
   图2 套餐价格体系 (Exact Match to Reference Fig 2)
   方案1(轻量白底) - 方案2(冲浪黑底推荐) - 方案3(豪华白底)
=================================================================== */
.pricing-section {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.4) 0%, rgba(248, 250, 252, 0.8) 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* 白底方案卡片 (方案1与方案3) */
.pricing-card-light {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--text-main);
}

.pricing-card-light:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px #cbd5e1;
}

/* 黑底中间推荐卡片 (方案2 - 尊享高亮) */
.pricing-card-dark {
  background: #0d121f;
  border: 1px solid #1e293b;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: scale(1.03);
  z-index: 2;
}

.pricing-card-dark:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 35px 65px -15px rgba(79, 70, 229, 0.35), 0 0 0 1px #6366f1;
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.pricing-plan-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.pricing-card-dark .pricing-plan-title {
  color: #ffffff;
}

.pricing-spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.pricing-spec-item {
  font-size: 0.92rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
}

.pricing-card-dark .pricing-spec-item {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.pricing-spec-label {
  color: var(--text-muted);
}

.pricing-card-dark .pricing-spec-label {
  color: #94a3b8;
}

.pricing-spec-value {
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
}

.pricing-card-dark .pricing-spec-value {
  color: #f8fafc;
}

.pricing-cost {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 14px;
}

.pricing-currency {
  font-size: 1.4rem;
  font-weight: 700;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.pricing-unit {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-card-dark .pricing-unit {
  color: #94a3b8;
}

.pricing-bottom-features {
  list-style: none;
  font-size: 0.88rem;
  margin-bottom: 20px;
  color: var(--text-muted);
  display: flex;
  gap: 14px;
}

.pricing-card-dark .pricing-bottom-features {
  color: #94a3b8;
}

.pricing-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.pricing-card-light .pricing-btn {
  background: #f1f5f9;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.pricing-card-light .pricing-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.pricing-card-dark .pricing-btn {
  background: var(--btn-gradient);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
}

.pricing-card-dark .pricing-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.6);
  color: #ffffff;
}

/* 全平台教程网格 */
.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tutorial-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.tutorial-card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.tutorial-platform-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutorial-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.tutorial-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.tutorial-steps {
  font-size: 0.8rem;
  text-align: left;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  color: var(--text-sub);
  list-style: decimal inside;
  line-height: 1.6;
}

/* 文章知识库板块 */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #a5b4fc;
}

.article-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.article-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 12px;
}

.article-card:hover .article-title {
  color: var(--primary);
}

.article-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

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

.article-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 600;
}

/* FAQ 常见问题手风琴 */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.active {
  border-color: #a5b4fc;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.08);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  display: none;
  padding: 0 24px 22px;
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.7;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.faq-item.active .faq-answer {
  display: block;
}

/* 全局与单页用户评价卡片样式 (User Reviews) */
.reviews-section {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.review-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.review-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.review-user-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-badge {
  font-size: 0.72rem;
  color: #059669;
  background: #ecfdf5;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #a7f3d0;
}

.review-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-top: 2px;
}

.review-text {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.65;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}

/* 浮动底栏 (向下滚动后显示) */
.floating-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 24px;
  z-index: 99;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.floating-cta-bar.visible {
  transform: translateY(0);
}

.floating-cta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
}

.floating-cta-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.floating-cta-text p {
  font-size: 0.82rem;
  color: #94a3b8;
}

/* 页脚 */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 64px 0 32px;
  margin-top: auto;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===================================================================
   文章内页专用版式与阅读体验
=================================================================== */
.article-header {
  padding: 48px 0 28px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

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

.article-header-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.article-page-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.article-page-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-content-body {
  max-width: 860px;
  margin: 44px auto 60px;
  padding: 0 24px;
  font-size: 1.08rem;
  line-height: 1.85;
  color: #1e293b;
}

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

.article-content-body h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 44px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
  letter-spacing: -0.02em;
}

.article-content-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 32px 0 14px;
}

.article-content-body ul,
.article-content-body ol {
  margin: 0 0 24px 24px;
}

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

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

.article-content-body a:hover {
  color: var(--primary-hover);
}

.article-content-body blockquote {
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
  color: var(--text-sub);
  font-size: 1rem;
}

.table-wrapper {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.article-content-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
}

.article-content-body th,
.article-content-body td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.article-content-body th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-main);
}

.article-related-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 40px 0;
}

.article-related-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: #166534;
  margin-bottom: 14px;
}

.article-related-links {
  list-style: none !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-related-links a {
  color: #15803d !important;
  text-decoration: none !important;
}

.article-related-links a:hover {
  text-decoration: underline !important;
}

.article-reviews-wrapper {
  margin: 48px 0;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}

.article-reviews-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-main);
}

.article-faq-wrapper {
  margin: 48px 0;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}

.article-faq-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-main);
}

/* 响应式断点适配 */
@media (max-width: 1024px) {
  .features-grid,
  .portals-grid,
  .pricing-grid,
  .articles-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .pricing-card-dark {
    transform: none;
  }
  
  .pricing-card-dark:hover {
    transform: translateY(-6px);
  }

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

@media (max-width: 768px) {
  .site-header {
    height: 64px;
  }

  .nav-wrap {
    height: 64px;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .article-page-title {
    font-size: 1.7rem;
  }

  .features-grid,
  .portals-grid,
  .pricing-grid,
  .tutorials-grid,
  .articles-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

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

  .floating-cta-wrap {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
