/* ==========================================================================
   龙猫云机场 (Totoro Cloud) - 官方极速轻量原生样式表
   零重型依赖 / 纯原生 CSS / 秒开性能 / 响应式无障碍
   ========================================================================== */

:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: #162032;
  --bg-card-hover: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: #60a5fa;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --success: #10b981;
  --warning: #f59e0b;
  --border-color: #1e293b;
  --border-highlight: #334155;
  --border-radius-sm: 6px;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --container-max: 1200px;
  --nav-height: 72px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.25);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 键盘无障碍跳过导航链接 */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--border-radius-sm);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
  outline: 3px solid #fff;
}

/* 全局排版 */
h1, h2, h3, h4 {
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.85rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
p { color: var(--text-secondary); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

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

/* 导航栏 */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.brand svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--accent-light);
  stroke-width: 2;
}
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 24px;
}
.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 4px;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  text-decoration: none;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 按钮通用规范 (触摸目标至少 44x44px) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-highlight);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: #fff;
  text-decoration: none;
  border-color: var(--accent-primary);
}
.btn-lg {
  min-height: 48px;
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--border-radius);
}
.btn-sm {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 0.88rem;
}

/* 首屏主视觉区 (Hero) */
.hero {
  padding: 70px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--success);
}
.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.15rem;
  max-width: 780px;
  margin: 0 auto 32px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}
.hero-feat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero-feat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-light);
}
.hero-feat-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 区块通用结构 */
.section {
  padding: 64px 0;
  position: relative;
}
.section-alt {
  background: var(--bg-secondary);
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-tag {
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.section-title {
  margin-bottom: 12px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* 核心优势卡片 (3个图文卡片) */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.adv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px 24px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.adv-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}
.adv-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-light);
}
.adv-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.adv-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #fff;
}
.adv-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 流媒体与 AI 支持图卡 */
.media-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px;
}
.support-card-title {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.support-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-highlight);
  border-radius: var(--border-radius-sm);
  padding: 8px 14px;
  font-size: 0.88rem;
  color: #e2e8f0;
  font-weight: 500;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
}

/* 套餐对比表格与卡片 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}
.price-card.featured {
  border-color: var(--accent-primary);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}
.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #fff;
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.plan-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
}
.price-currency {
  font-size: 1.1rem;
  color: var(--accent-light);
  font-weight: 600;
}
.price-number {
  font-size: 2.3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.price-period {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.plan-features {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
}
.plan-features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-features li svg {
  width: 16px;
  height: 16px;
  stroke: var(--success);
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
}

/* 套餐对比详细表格 (带可横向滚动支持) */
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-top: 24px;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  min-width: 640px;
}
.pricing-table caption {
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-align: left;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}
.pricing-table th, .pricing-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}
.pricing-table th {
  background: var(--bg-secondary);
  color: #fff;
  font-weight: 600;
}
.pricing-table td {
  color: var(--text-secondary);
}
.pricing-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* 用户真实评价 */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.review-stars {
  color: #fbbf24;
  margin-bottom: 12px;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.review-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}
.avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.author-info {
  display: flex;
  flex-direction: column;
}
.author-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}
.author-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FAQ 常见问题解答 (原生 details / summary 无JS依赖，默认展开) */
.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-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover {
  border-color: var(--border-highlight);
}
.faq-question {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent-light);
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] .faq-question::after {
  content: "−";
  transform: rotate(0deg);
}
.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: -6px;
  padding-top: 16px;
}

/* 页脚 Footer (严格遵循：只保留网站地图、关于我们、服务条款、隐私政策4个标题) */
.footer {
  background: #070a12;
  border-top: 1px solid var(--border-color);
  padding: 48px 0 32px;
  margin-top: auto;
}
.footer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 600px;
}

/* 文章详情页 / 知识科普专用样式 */
.article-header {
  padding: 50px 0 30px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 14px;
  flex-wrap: wrap;
}
.article-content {
  max-width: 840px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e1;
}
.article-content h2 {
  font-size: 1.6rem;
  color: #fff;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}
.article-content h3 {
  font-size: 1.25rem;
  color: #e2e8f0;
  margin: 24px 0 12px;
}
.article-content p {
  margin-bottom: 18px;
  color: #cbd5e1;
}
.article-content ul, .article-content ol {
  margin: 0 0 20px 24px;
  color: #cbd5e1;
}
.article-content li {
  margin-bottom: 8px;
}
.article-content blockquote {
  border-left: 4px solid var(--accent-primary);
  background: rgba(59, 130, 246, 0.08);
  padding: 16px 20px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  margin: 24px 0;
  color: #93c5fd;
  font-size: 0.98rem;
}
.article-content .highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--border-radius);
  padding: 24px;
  margin: 28px 0;
}
.article-nav-links {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 16px;
}

/* 文章列表网格 (知识科普页) */
.articles-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}
.article-card-tag {
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.article-card-title {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #fff;
}
.article-card-title a {
  color: inherit;
  text-decoration: none;
}
.article-card-title a:hover {
  color: var(--accent-light);
}
.article-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}
.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 网站地图与关于我们专用样式 */
.sitemap-group {
  margin-bottom: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 28px;
}
.sitemap-group-title {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}
.sitemap-links-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}
.sitemap-links-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sitemap-links-list li::before {
  content: "•";
  color: var(--accent-light);
  font-size: 1.2rem;
}

/* ==========================================================================
   响应式媒体查询 (针对手机端 360px, 390px, 平板 768px, 桌面 1440px 完美适配)
   ========================================================================== */

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantages-grid, .articles-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
  
  .header {
    height: auto;
    padding: 12px 0;
  }
  .nav-wrapper {
    flex-direction: column;
    gap: 12px;
  }
  .nav-menu {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-link {
    font-size: 0.9rem;
    padding: 6px;
  }
  .hero {
    padding: 40px 0 30px;
  }
  .hero-title {
    font-size: 1.95rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .advantages-grid,
  .media-ai-grid,
  .pricing-grid,
  .reviews-grid,
  .articles-list-grid,
  .sitemap-links-list {
    grid-template-columns: 1fr;
  }
  .footer-nav {
    gap: 18px;
    flex-direction: column;
  }
  .pricing-table th, .pricing-table td {
    padding: 10px 12px;
  }
}

@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;
  }
}
