/* ==========================================================================
   杏花云 (XingHua Cloud) 官网全局样式表
   方案：S4「暮樱夜色」视觉系统
   主调：深梅紫夜空、珊瑚杏橙、暖月、夜樱、远山湖面
   ========================================================================== */

:root {
  /* 暮樱夜色核心色彩系统 */
  --bg-dark-primary: #14071D;
  --bg-dark-secondary: #1C0A28;
  --bg-dark-tertiary: #250E34;
  --bg-card: rgba(43, 16, 58, 0.76);
  --bg-card-hover: rgba(56, 21, 75, 0.88);
  --bg-card-popular: linear-gradient(165deg, rgba(65, 23, 86, 0.88) 0%, rgba(35, 12, 48, 0.94) 100%);
  
  /* 品牌点缀色：夜樱粉 & 珊瑚杏橙 */
  --color-sakura-light: #FFE2DA;
  --color-sakura-pink: #FF9BC7;
  --color-sakura-deep: #D95B9F;
  --color-moon-warm: #FFE5B4;
  --color-coral: #FF6B4A;
  --color-coral-hover: #FF8263;
  --color-coral-dark: #E65030;
  --gradient-coral: linear-gradient(135deg, #FF7B54 0%, #FA5B3D 100%);
  --shadow-coral: 0 8px 24px rgba(250, 91, 61, 0.38);

  /* 文字颜色体系（WCAG AA/AAA 对比度 > 4.5:1） */
  --text-primary: #FFFFFF;
  --text-heading: #FFF6FA;
  --text-secondary: #DDC8E2;
  --text-muted: #A990AF;
  --text-dim: #7E6584;

  /* 边框与阴影 */
  --border-subtle: rgba(255, 180, 210, 0.14);
  --border-medium: rgba(255, 180, 210, 0.25);
  --border-popular: rgba(255, 123, 84, 0.65);
  --border-glow: rgba(255, 155, 199, 0.35);
  --shadow-sm: 0 4px 12px rgba(10, 3, 16, 0.35);
  --shadow-md: 0 8px 28px rgba(10, 3, 16, 0.5);
  --shadow-lg: 0 16px 48px rgba(10, 3, 16, 0.65);
  --shadow-popular: 0 16px 44px rgba(255, 107, 74, 0.28);

  /* 版心与间距 */
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-dark-primary);
  color: var(--text-secondary);
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-dark-primary);
  color: var(--text-secondary);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 键盘聚焦无障碍 */
:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 3px;
}

/* 跳过导航快捷链接 */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--color-coral);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 15px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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: 1000;
  background: rgba(20, 7, 29, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

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

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-coral);
  transition: width 0.2s ease;
  border-radius: 2px;
}

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

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

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1.2;
}

.btn-coral {
  background: var(--gradient-coral);
  color: #FFFFFF;
  box-shadow: var(--shadow-coral);
}
.btn-coral:hover {
  background: linear-gradient(135deg, #FF8A65 0%, #FF6448 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(250, 91, 61, 0.48);
  color: #FFFFFF;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-medium);
  color: var(--text-heading);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-coral);
  color: #FFFFFF;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 14px 34px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* 手机菜单按钮 */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   Hero 主视觉区（暮樱夜色视觉核心）
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--bg-dark-primary);
  background-image: 
    linear-gradient(90deg, rgba(20, 7, 29, 0.95) 0%, rgba(20, 7, 29, 0.78) 46%, rgba(20, 7, 29, 0.22) 75%, transparent 100%),
    url('/public/assets/xinghuayun/hero-desktop.webp');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 60px 0 100px;
  overflow: hidden;
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(43, 16, 58, 0.78);
  border: 1px solid var(--border-medium);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  color: var(--color-sakura-light);
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}

.hero-pill .pill-dot {
  width: 8px;
  height: 8px;
  background: var(--color-coral);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-coral);
}

.hero-title {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-heading);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-title .brand-gradient {
  background: linear-gradient(135deg, #FFE7D8 0%, #FF9BC7 45%, #FFA873 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-top: 6px;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 26px;
  text-shadow: 0 2px 8px rgba(10, 3, 16, 0.6);
}

/* 四项特色 (Hero Highlights) */
.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
  margin-bottom: 34px;
}

.hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(30, 11, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  backdrop-filter: blur(6px);
}

.feature-icon-badge {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-coral);
}

.feature-text h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Hero CTA 按钮组 */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   紧靠 Hero 的四列渐变套餐卡片 (Pricing Cards Section)
   ========================================================================== */
.pricing-hero-wrap {
  position: relative;
  z-index: 10;
  margin-top: -60px;
  padding-bottom: 60px;
}

.section-intro-compact {
  text-align: center;
  margin-bottom: 32px;
}

.section-intro-compact .sub-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-coral);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.section-intro-compact h2 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-heading);
}

.pricing-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.plan-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg);
}

/* 热门推荐卡片渐变突出 */
.plan-card.popular {
  background: var(--bg-card-popular);
  border: 1px solid var(--border-popular);
  box-shadow: var(--shadow-popular);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-coral);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(250, 91, 61, 0.4);
}

.plan-header {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.plan-name {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.plan-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.plan-currency {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-coral);
}

.plan-amount {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
}

.plan-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plan-traffic-pill {
  display: inline-block;
  background: rgba(255, 155, 199, 0.12);
  border: 1px solid rgba(255, 155, 199, 0.25);
  color: var(--color-sakura-light);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.plan-card.popular .plan-traffic-pill {
  background: rgba(255, 107, 74, 0.15);
  border-color: rgba(255, 107, 74, 0.35);
  color: #FFE6DF;
}

.plan-features {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.plan-features li .check-icon {
  color: var(--color-sakura-pink);
  font-size: 0.95rem;
}

.plan-card.popular .plan-features li .check-icon {
  color: var(--color-coral);
}

/* ==========================================================================
   通用区块标题与容器
   ========================================================================== */
.section-block {
  padding: 70px 0;
  position: relative;
}

.section-block.alt-bg {
  background: var(--bg-dark-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.section-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-coral);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   节点特性卡片模块 (无装饰图片，纯排版与 UI 图标)
   ========================================================================== */
.features-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.feature-box:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.feature-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 107, 74, 0.12);
  border: 1px solid rgba(255, 107, 74, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--color-coral);
  margin-bottom: 18px;
}

.feature-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   全平台客户端支持模块
   ========================================================================== */
.client-platforms-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.client-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  transition: var(--transition);
}

.client-item-card:hover {
  border-color: var(--color-coral);
  transform: translateY(-4px);
}

.client-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.client-item-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.client-item-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   套餐全参数对比表格
   ========================================================================== */
.pricing-table-container {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  min-width: 780px;
}

.pricing-table caption {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

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

.pricing-table thead th {
  background: rgba(30, 11, 42, 0.95);
  color: var(--text-heading);
  font-weight: 700;
  font-size: 0.9rem;
}

.pricing-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.pricing-table th[scope="row"] {
  font-weight: 600;
  color: var(--text-heading);
}

.price-text-coral {
  color: var(--color-coral);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ==========================================================================
   知识科普文章入口卡片网格
   ========================================================================== */
.articles-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.article-card-item:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.article-card-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-sakura-pink);
  margin-bottom: 8px;
}

.article-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.article-card-link {
  color: var(--color-coral);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-card-link:hover {
  color: var(--color-coral-hover);
  text-decoration: underline;
}

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

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

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

.faq-question {
  padding: 18px 22px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-heading);
  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.3rem;
  color: var(--color-coral);
  transition: transform 0.2s ease;
  line-height: 1;
}

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

.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.faq-answer p + p {
  margin-top: 10px;
}

/* ==========================================================================
   转化 CTA 横幅模块
   ========================================================================== */
.cta-banner-wrap {
  background: linear-gradient(135deg, rgba(62, 21, 84, 0.85) 0%, rgba(30, 9, 43, 0.95) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin-bottom: 70px;
}

.cta-banner-wrap h2 {
  font-size: 2.1rem;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.cta-banner-wrap p {
  max-width: 620px;
  margin: 0 auto 26px;
  font-size: 1.02rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   页脚 (Footer)
   ========================================================================== */
.site-footer {
  background: #0E0414;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  margin-top: auto;
  font-size: 0.9rem;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 16px 0 18px;
  max-width: 340px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--color-coral);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ==========================================================================
   响应式断点适配 (Desktop / Tablet / Mobile)
   ========================================================================== */
@media (max-width: 1100px) {
  .pricing-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .client-platforms-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* 手机端专用 Hero 切换：暮樱夜色竖屏重新构图 */
  .hero-section {
    background-image: 
      linear-gradient(180deg, rgba(20, 7, 29, 0.45) 0%, rgba(20, 7, 29, 0.88) 32%, rgba(20, 7, 29, 0.98) 100%),
      url('/public/assets/xinghuayun/hero-mobile.webp');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    /* 安全区调整：避开右上角月亮与夜樱花枝，不遮挡、不拉伸 */
    padding-top: 240px;
    padding-bottom: 70px;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-pill {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-features {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-cta {
    justify-content: center;
  }

  .pricing-hero-wrap {
    margin-top: 0;
  }

  .pricing-grid-4 {
    grid-template-columns: 1fr;
  }

  .features-grid-3,
  .articles-grid-3 {
    grid-template-columns: 1fr;
  }

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

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

  .mobile-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(20, 7, 29, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-medium);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.open {
    display: flex;
  }

  .header-actions .btn-outline {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: 200px;
  }
  .client-platforms-grid {
    grid-template-columns: 1fr;
  }
  .btn-lg {
    width: 100%;
  }
}


/* ==========================================================================
   S4 暮樱夜色 · 内页架构与组件增强样式
   包含：知识科普 (/posts/)、关于本站 (/about/)、服务条款 (/terms/)、隐私政策 (/privacy/)
   ========================================================================== */

/* 内页头部容器与面包屑导航 */
.inner-page-header {
  padding: 48px 0 32px;
  background: linear-gradient(180deg, rgba(32, 11, 46, 0.95) 0%, rgba(20, 7, 29, 0.6) 100%);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 40px;
}

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

.breadcrumbs a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.breadcrumbs .sep {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.inner-title-wrap {
  max-width: 840px;
}

.inner-page-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.25;
  margin-bottom: 12px;
}

.inner-page-lead {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   一、知识科普文章大厅 (/posts/ 与 /articles/)
   ========================================================================== */
.posts-search-bar {
  margin: 28px 0 36px;
  position: relative;
  max-width: 600px;
}

.posts-search-input {
  width: 100%;
  padding: 14px 20px 14px 46px;
  background: rgba(38, 14, 52, 0.85);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  color: var(--text-heading);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.posts-search-input:focus {
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.25);
  background: rgba(48, 17, 66, 0.95);
}

.posts-search-input::placeholder {
  color: var(--text-dim);
}

.search-input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

/* 文章分类筛选 Pills */
.posts-filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-tab-btn {
  background: rgba(43, 16, 58, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab-btn:hover,
.filter-tab-btn.active {
  background: var(--gradient-coral);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(250, 91, 61, 0.35);
}

/* 9 篇独立文章卡片网格 (三栏/双栏/单栏) */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  position: relative;
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lg);
}

.post-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.post-card-category {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-coral);
  background: rgba(255, 107, 74, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.post-card-time {
  font-size: 0.76rem;
  color: var(--text-dim);
}

.post-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.4;
  margin-bottom: 12px;
}

.post-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.post-card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-coral);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.post-card-link:hover {
  color: var(--color-coral-hover);
  text-decoration: underline;
}

/* ==========================================================================
   文章详情页排版 (正文、目录、H2/H3、横向相关推荐)
   ========================================================================== */
.post-layout-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 70px;
}

.post-toc-sticky {
  position: sticky;
  top: 96px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  backdrop-filter: blur(8px);
}

.post-toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.post-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-toc-list a {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
  padding: 4px 6px;
  border-radius: 4px;
}

.post-toc-list a:hover {
  color: var(--color-coral);
  background: rgba(255, 107, 74, 0.08);
}

.post-body {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  color: var(--text-secondary);
}

.post-body h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 90px;
}

.post-body h2:first-of-type {
  margin-top: 0;
}

.post-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-sakura-light);
  margin: 24px 0 12px;
  scroll-margin-top: 90px;
}

.post-body p {
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.post-body ul, .post-body ol {
  margin: 12px 0 20px 22px;
  line-height: 1.7;
}

.post-body li {
  margin-bottom: 8px;
  font-size: 0.94rem;
}

.post-body strong {
  color: var(--text-heading);
}

.post-body .notice-box {
  background: rgba(255, 155, 199, 0.08);
  border-left: 4px solid var(--color-sakura-pink);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.post-body pre, .post-body code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.post-body code:not(pre code) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-sakura-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}

.post-body pre {
  background: #0E0314;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 0.88rem;
  color: #E2D4E6;
}

/* 横向相关推荐卡片 (桌面横向双栏/三栏，手机单栏) */
.related-posts-section {
  margin-top: 50px;
  padding-top: 36px;
  border-top: 1px solid var(--border-subtle);
}

.related-posts-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 22px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.related-post-card {
  background: rgba(30, 10, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.related-post-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.related-post-card h4 {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
  line-height: 1.4;
}

.related-post-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  flex-grow: 1;
}

.related-post-card a {
  font-size: 0.82rem;
  color: var(--color-coral);
  font-weight: 600;
}

/* ==========================================================================
   二、关于本站精致品牌介绍页面 (/about/)
   ========================================================================== */
.about-sections-wrap {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 70px;
}

.about-card-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  backdrop-filter: blur(10px);
}

.about-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.about-info-col h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-info-col p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.about-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 28px 0;
}

.about-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.spec-mini-card {
  background: rgba(30, 10, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.spec-mini-card .spec-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-coral);
  margin-bottom: 4px;
}

.spec-mini-card .spec-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   三 & 四、服务条款 (/terms/) 与隐私政策 (/privacy/) 统一文档结构
   ========================================================================== */
.doc-layout-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 70px;
}

.doc-sidebar-toc {
  position: sticky;
  top: 96px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}

.doc-sidebar-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-sakura-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.doc-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-toc-link {
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  line-height: 1.4;
}

.doc-toc-link:hover,
.doc-toc-link.active {
  color: #FFFFFF;
  background: rgba(255, 107, 74, 0.15);
  border-left: 2px solid var(--color-coral);
}

.doc-content-body {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}

.doc-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 96px;
}

.doc-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.doc-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-section p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.doc-section ul, .doc-section ol {
  margin: 12px 0 16px 22px;
  line-height: 1.7;
}

.doc-section li {
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.doc-callout {
  background: rgba(43, 16, 58, 0.85);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--color-coral);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   内页响应式适配规则 (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 992px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .post-layout-wrap,
  .doc-layout-wrap {
    grid-template-columns: 1fr;
  }
  .post-toc-sticky,
  .doc-sidebar-toc {
    position: static;
    margin-bottom: 24px;
  }
  .about-grid-2col {
    grid-template-columns: 1fr;
  }
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .inner-page-header {
    padding: 36px 0 24px;
  }
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .about-card-section,
  .post-body,
  .doc-content-body {
    padding: 24px 18px;
  }
  .about-specs-grid {
    grid-template-columns: 1fr;
  }
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}
