/* ==========================================================================
   SSRDOG 官方信息与推广落地页 - 原生极简高转化样式表
   方案03：极简直达·高转化 | 明亮白底配品牌专属强调色
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-surface: #f9fafb;
  --color-surface-card: #ffffff;
  --color-border: #e5e7eb;
  --color-border-hover: #d1d5db;
  --color-text-main: #111827;
  --color-text-muted: #4b5563;
  --color-text-light: #6b7280;
  
  /* 品牌专属强调色：高对比度科技活力橙 */
  --color-brand: #d9480f;
  --color-brand-hover: #b83808;
  --color-brand-light: #fff4ed;
  --color-brand-border: #fed7aa;
  
  --color-accent-green: #087f5b;
  --color-accent-blue: #1c7ed6;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --max-width: 1140px;
  --header-height: 68px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
}

/* 基础重置与无障碍辅助 */
*, *::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: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* 键盘可访问性：Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-brand);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  z-index: 9999;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease-in-out;
}
.skip-link:focus {
  top: 1rem;
}

/* 键盘焦点可见指示 */
:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 2px;
}

/* 统一锚点偏移（适配吸顶页眉） */
[id] {
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

/* 容器定义 */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* 页眉与导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-text-main);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-icon-svg {
  width: 32px;
  height: 32px;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.975rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.5rem;
  transition: color 0.15s ease;
}

.nav-link:hover, .nav-link:focus {
  color: var(--color-brand);
}

.nav-link.active {
  color: var(--color-brand);
  font-weight: 700;
}

/* 顶栏快速搜索 */
.header-search {
  display: flex;
  align-items: center;
  position: relative;
}

.header-search input {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  font-size: 0.875rem;
  width: 150px;
  outline: none;
  background: var(--color-surface);
  transition: all 0.2s ease;
}

.header-search input:focus {
  width: 200px;
  background: #ffffff;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(217, 72, 15, 0.15);
}

/* 核心 CTA 按钮组件 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  min-height: 46px;
  min-width: 44px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-brand);
  color: #ffffff !important;
  border-color: var(--color-brand);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--color-brand-hover);
  border-color: var(--color-brand-hover);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--color-brand) !important;
  border-color: var(--color-brand);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--color-brand-light);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  min-height: 38px;
}

.btn-block {
  width: 100%;
}

/* Hero 首屏直达区 */
.hero-section {
  padding: 2.5rem 0 2rem;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #fff7ed 0%, #ffffff 70%);
  border-bottom: 1px solid var(--color-border);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--color-brand-light);
  color: var(--color-brand);
  border: 1px solid var(--color-brand-border);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--color-text-main);
  margin-bottom: 0.85rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--color-text-muted);
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

/* 核心最低价直接展示模块 */
.hero-lowest-price-banner {
  background: #ffffff;
  border: 2px solid var(--color-brand-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  max-width: 640px;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lowest-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.lowest-price-label {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.lowest-price-val {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-brand);
  line-height: 1;
}

.lowest-price-period {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.lowest-price-specs {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

.hero-disclaimer-note {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

/* 热门套餐卡片栅格 */
.section {
  padding: 3rem 0;
}

.section-alt {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

.section-tag {
  color: var(--color-brand);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.pricing-card.featured {
  border: 2px solid var(--color-brand);
  box-shadow: var(--shadow-md);
}

.card-badge {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: var(--color-brand);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  min-height: 42px;
  margin-bottom: 1.25rem;
}

.card-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.card-price-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1;
}

.featured .card-price-num {
  color: var(--color-brand);
}

.card-features-list {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.card-features-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.925rem;
  color: var(--color-text-muted);
}

.check-icon {
  color: var(--color-accent-green);
  font-weight: 800;
  flex-shrink: 0;
}

/* 完整套餐对比表格（水平滚动无障碍） */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 1.5rem 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  min-width: 680px;
}

.compare-table caption {
  font-size: 0.9rem;
  color: var(--color-text-light);
  padding: 0.75rem 1rem;
  text-align: left;
  caption-side: bottom;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.compare-table thead th {
  background-color: var(--color-surface);
  font-weight: 700;
  color: var(--color-text-main);
  border-bottom: 2px solid var(--color-border);
}

.compare-table tbody tr:hover {
  background-color: #fafaf9;
}

/* 流程三步骤 */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--color-brand-light);
  color: var(--color-brand);
  font-weight: 800;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.925rem;
  color: var(--color-text-muted);
}

/* 兼容客户端徽标网格 */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.client-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.client-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.client-tag {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* FAQ 手风琴样式（原生 details/summary，无需 JS） */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 840px;
  margin: 0 auto;
}

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

.faq-item[open] {
  border-color: var(--color-brand-border);
}

.faq-item summary {
  padding: 1.15rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-brand);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-content {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  border-top: 1px dashed var(--color-border);
  margin-top: 0.25rem;
  padding-top: 1rem;
}

/* 文章聚合与列表 */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.article-card:hover {
  border-color: var(--color-brand);
  transform: translateY(-2px);
}

.article-meta {
  font-size: 0.8rem;
  color: var(--color-brand);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.article-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.65rem;
  line-height: 1.4;
}

.article-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.article-card-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-brand);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* 文章正文页面专用排版 */
.article-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

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

.article-content {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #27272a;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 1.75rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  background: var(--color-surface);
  border-left: 4px solid var(--color-brand);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text-muted);
}

.article-content code {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.article-content pre {
  background: #1e293b;
  color: #f8fafc;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.article-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

.article-source-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 2.5rem 0 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* 独立单页专用（关于我们、条款等） */
.page-container {
  max-width: 820px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.25rem;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

/* 页脚硬性要求：仅展示 4 个独立入口 */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0 2rem;
  margin-top: 4rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.footer-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.5rem;
  transition: color 0.15s ease;
}

.footer-link:hover, .footer-link:focus {
  color: var(--color-brand);
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--color-text-light);
  max-width: 720px;
  margin: 0 auto 0.75rem;
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* 动效与减弱动态设置 */
@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;
  }
}

/* 响应式断点适配 (768px, 480px, 360px) */
@media (max-width: 768px) {
  .site-header {
    height: auto;
    padding: 0.75rem 0;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    gap: 1rem;
  }
  .header-search {
    order: 2;
  }
  .header-search input {
    width: 120px;
  }
  .header-search input:focus {
    width: 150px;
  }
  .hero-lowest-price-banner {
    padding: 1rem;
  }
  .lowest-price-val {
    font-size: 1.85rem;
  }
  .section {
    padding: 2.25rem 0;
  }
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .footer-nav {
    gap: 1rem;
  }
}
