/* ================================================================
   光速云 (GuangSuYun) — 全局设计系统
   guangsuyun.blog | 日系夏日天空主题
   Theme: Japanese Summer Sky — Light, Airy, Premium
   ================================================================ */

/* === 字体引入 === */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* === 设计变量 === */
:root {
  /* 色彩系统 */
  --bg:               #E3F2FD;
  --bg-white:         #FFFFFF;
  --bg-card:          rgba(255, 255, 255, 0.88);
  --bg-alt:           rgba(187, 222, 251, 0.22);
  --primary:          #2196F3;
  --primary-light:    #BBDEFB;
  --primary-dark:     #1565C0;
  --primary-hover:    #1976D2;
  --text:             #263238;
  --text-secondary:   #546E7A;
  --text-light:       #78909C;
  --border:           rgba(33, 150, 243, 0.12);
  --border-strong:    rgba(33, 150, 243, 0.28);

  /* 字体 */
  --font: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  /* 间距比例 */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* 圆角 */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* 阴影 */
  --shadow-sm:  0 1px 6px rgba(33, 82, 150, 0.06);
  --shadow-md:  0 4px 20px rgba(33, 82, 150, 0.08), 0 1px 4px rgba(33, 82, 150, 0.04);
  --shadow-lg:  0 8px 32px rgba(33, 82, 150, 0.12), 0 2px 8px rgba(33, 82, 150, 0.06);
  --shadow-cta: 0 4px 20px rgba(33, 150, 243, 0.32);

  /* 过渡 */
  --t-fast: 0.15s ease;
  --t-base: 0.25s ease;
  --t-slow: 0.4s ease;

  /* 布局 */
  --max-w:        1200px;
  --max-w-narrow: 820px;
  --nav-h:        68px;
}

/* === 重置 === */
*, *::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);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--primary-dark); }

ul, ol { padding-left: var(--sp-6); }

/* === 排版 === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.1em 0.4em;
  border-radius: var(--r-sm);
}

pre {
  background: var(--text);
  color: #ecf0f1;
  padding: var(--sp-6);
  border-radius: var(--r-md);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: var(--sp-6);
}
pre code { background: none; color: inherit; padding: 0; font-size: inherit; }

blockquote {
  border-left: 4px solid var(--primary);
  padding: var(--sp-4) var(--sp-6);
  background: var(--bg-alt);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--text-secondary);
  margin-bottom: var(--sp-6);
  font-style: italic;
}

hr { border: none; border-top: 1px solid var(--border); margin: var(--sp-8) 0; }

/* === 布局 === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.container--narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.section { padding: var(--sp-20) 0; }
.section--sm { padding: var(--sp-12) 0; }
.section--alt { background-color: var(--bg-alt); }
.section--white { background-color: var(--bg-white); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(33, 150, 243, 0.08);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(33, 150, 243, 0.18);
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  text-align: center;
  margin-bottom: var(--sp-4);
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: var(--sp-12);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.grid   { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === 导航栏 === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--t-base), box-shadow var(--t-base);
}
.nav--transparent { background: transparent; }
.nav--scrolled {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), #64B5F6);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}
.nav__logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.nav__logo-sub {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-light);
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  padding: 0;
}
.nav__links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__links a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.nav__links a.active {
  color: var(--primary);
  font-weight: 700;
}

.nav__cta { display: flex; align-items: center; gap: var(--sp-3); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}
.nav--open .nav__hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__hamburger span:nth-child(2) { opacity: 0; }
.nav--open .nav__hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动菜单面板 */
.nav__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(38, 50, 56, 0.48);
  backdrop-filter: blur(4px);
}
.nav__mobile-menu.open { display: block; }
.nav__mobile-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 280px;
  background: white;
  padding: var(--sp-6);
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0,0,0,0.14);
}
.nav__mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}
.nav__mobile-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
  padding: var(--sp-2);
  line-height: 1;
}
.nav__mobile-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.nav__mobile-links a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
.nav__mobile-links a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.nav__mobile-cta {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}

/* === Hero 区域 === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(170deg, #CBE8F8 0%, #D6EDF9 25%, #E3F2FD 55%, #EAF6FE 80%, #F5FBFF 100%);
}

.hero__sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}
.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center top;
  object-fit: cover;
  object-position: center top;
  opacity: 0.85;
}

/* 云朵 */
.hero__clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 50px;
  filter: blur(1.5px);
}
.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud-1 {
  width: 200px; height: 55px;
  top: 16%; right: 10%;
  animation: cloudDrift1 38s ease-in-out infinite;
}
.cloud-1::before { width: 88px; height: 76px; top: -34px; left: 24px; }
.cloud-1::after  { width: 66px; height: 60px; top: -24px; right: 24px; }

.cloud-2 {
  width: 130px; height: 38px;
  top: 30%; right: 30%;
  opacity: 0.6;
  animation: cloudDrift2 50s ease-in-out infinite;
}
.cloud-2::before { width: 58px; height: 52px; top: -24px; left: 16px; }
.cloud-2::after  { width: 44px; height: 40px; top: -16px; right: 16px; }

.cloud-3 {
  width: 220px; height: 60px;
  top: 10%; right: 45%;
  opacity: 0.45;
  animation: cloudDrift1 62s ease-in-out infinite reverse;
}
.cloud-3::before { width: 96px; height: 82px; top: -38px; left: 32px; }
.cloud-3::after  { width: 74px; height: 64px; top: -28px; right: 28px; }

.cloud-4 {
  width: 160px; height: 44px;
  top: 48%; right: 8%;
  opacity: 0.35;
  animation: cloudDrift2 44s ease-in-out infinite 8s;
}
.cloud-4::before { width: 70px; height: 62px; top: -28px; left: 18px; }
.cloud-4::after  { width: 50px; height: 48px; top: -18px; right: 18px; }

@keyframes cloudDrift1 {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(28px); }
}
@keyframes cloudDrift2 {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(-22px); }
}

/* 光晕 */
.hero__glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(33,150,243,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + var(--sp-16)) var(--sp-6) var(--sp-16);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(33, 150, 243, 0.1);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(33, 150, 243, 0.22);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--sp-6);
  color: var(--text);
}
.hero__title span {
  background: linear-gradient(135deg, var(--primary) 0%, #42A5F5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--sp-8);
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__image-wrap {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(33, 82, 150, 0.16), 0 4px 16px rgba(33, 82, 150, 0.08);
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #90CAF9, #BBDEFB);
}
.hero__image-wrap img { width: 100%; height: 100%; object-fit: cover; }

.hero__scroll-hint {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-secondary);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero__scroll-arrow {
  width: 22px; height: 22px;
  border-right: 2px solid var(--text-light);
  border-bottom: 2px solid var(--text-light);
  transform: rotate(45deg);
  animation: scrollBounce 2.2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}

/* === 按钮 === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.7rem 1.6rem;
  border-radius: var(--r-full);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t-base);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.btn--primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover {
  background: var(--primary-dark);
  color: white;
  box-shadow: 0 6px 24px rgba(33, 150, 243, 0.42);
  transform: translateY(-1px);
}

.btn--secondary {
  background: white;
  color: var(--primary);
  border-color: var(--border-strong);
}
.btn--secondary:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.btn--lg   { padding: 0.9rem 2.2rem; font-size: 1.05rem; }
.btn--sm   { padding: 0.4rem 1rem;   font-size: 0.85rem; }
.btn--full { width: 100%; }

/* === 卡片 === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--t-base), transform var(--t-base);
  backdrop-filter: blur(10px);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card__icon {
  width: 52px; height: 52px;
  background: var(--primary-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--sp-5);
}
.card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--sp-3);
}
.card__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* 文章卡片 */
.article-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--t-base), transform var(--t-base);
  box-shadow: var(--shadow-sm);
}
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.article-card__body { padding: var(--sp-6); }
.article-card__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.article-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: var(--sp-3); line-height: 1.4; }
.article-card__title a { color: var(--text); }
.article-card__title a:hover { color: var(--primary); }
.article-card__excerpt { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.75; margin-bottom: var(--sp-4); }
.article-card__meta { display: flex; align-items: center; gap: var(--sp-4); font-size: 0.78rem; color: var(--text-light); }

/* 套餐卡片 */
.package-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  text-align: center;
  transition: all var(--t-base);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.package-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.package-card--featured { border-color: var(--primary); border-width: 2px; box-shadow: var(--shadow-lg); }

.package-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

.package-card__name  { font-size: 1.1rem; font-weight: 700; margin-bottom: var(--sp-2); }
.package-card__price { font-size: 2.4rem; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: var(--sp-1); }
.package-card__period { font-size: 0.82rem; color: var(--text-light); margin-bottom: var(--sp-6); }
.package-card__note  { font-size: 0.8rem; color: var(--text-light); margin-bottom: var(--sp-4); }

.package-card__features {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: var(--sp-6);
}
.package-card__features li {
  padding: var(--sp-2) 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
}
.package-card__features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.package-card__features li:last-child { border-bottom: none; }

/* === 徽章 / 标签 === */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--r-full);
  background: var(--primary-light);
  color: var(--primary-dark);
}
.tag--blue   { background: #E3F2FD; color: #1565C0; }
.tag--green  { background: #E8F5E9; color: #2E7D32; }
.tag--orange { background: #FFF3E0; color: #E65100; }
.tag--red    { background: #FFEBEE; color: #C62828; }
.tag--gray   { background: #ECEFF1; color: #546E7A; }

/* === 面包屑 === */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  padding: var(--sp-4) 0;
  font-size: 0.84rem;
}
.breadcrumb li { display: flex; align-items: center; gap: var(--sp-2); }
.breadcrumb li + li::before { content: '›'; color: var(--text-light); }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li:last-child { color: var(--text); font-weight: 500; }

/* === FAQ 手风琴 === */
.faq-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background var(--t-fast);
}
.faq-item__trigger:hover { background: var(--bg-alt); }
.faq-item__icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
  transition: transform var(--t-base);
}
.faq-item--open .faq-item__icon { transform: rotate(45deg); }
.faq-item__body { max-height: 0; overflow: hidden; transition: max-height var(--t-slow); }
.faq-item--open .faq-item__body { max-height: 800px; }
.faq-item__content {
  padding: 0 var(--sp-6) var(--sp-6);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}
.faq-item__content a { color: var(--primary); }
.faq-item__content a:hover { text-decoration: underline; }

/* === 提示框 === */
.alert {
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-md);
  border-left: 4px solid;
  margin-bottom: var(--sp-6);
  font-size: 0.9rem;
  line-height: 1.75;
}
.alert--info    { background: #E3F2FD; border-color: var(--primary); color: #0D47A1; }
.alert--warning { background: #FFF8E1; border-color: #FFC107; color: #E65100; }
.alert--danger  { background: #FFEBEE; border-color: #F44336; color: #B71C1C; }
.alert--success { background: #E8F5E9; border-color: #4CAF50; color: #1B5E20; }
.alert__title   { font-weight: 700; margin-bottom: var(--sp-2); }

/* 风险提示 */
.risk-notice {
  background: #FFF8E1;
  border: 1px solid #FFD54F;
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
  font-size: 0.84rem;
  color: #5D4037;
  line-height: 1.75;
}
.risk-notice__title { font-weight: 700; color: #E65100; margin-bottom: var(--sp-2); }

/* === 表格 === */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--sp-6);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.9rem;
}
thead th {
  background: var(--primary);
  color: white;
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
tbody td {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-alt); }
.table-check { color: #4CAF50; font-weight: 700; }
.table-cross { color: #F44336; font-weight: 700; }
.table-na    { color: var(--text-light); }

/* === 文章 / 内容页布局 === */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--sp-12);
  align-items: start;
  padding: var(--sp-10) 0;
}
.article-content {
  background: white;
  border-radius: var(--r-lg);
  padding: var(--sp-10);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.article-header {
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--border);
}
.article-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.article-title { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: var(--sp-4); line-height: 1.25; }
.article-meta {
  display: flex; flex-wrap: wrap;
  gap: var(--sp-5);
  font-size: 0.82rem;
  color: var(--text-light);
}
.article-meta span { display: flex; align-items: center; gap: var(--sp-1); }

/* 快速答案 / TL;DR */
.quick-answer {
  background: linear-gradient(135deg, #E3F2FD, #EAF6FE);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  margin-bottom: var(--sp-8);
}
.quick-answer__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: var(--sp-3);
}
.quick-answer__text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
}

/* 文章正文排版 */
.article-body h2 {
  font-size: 1.4rem;
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--primary-light);
}
.article-body h3 {
  font-size: 1.15rem;
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
}
.article-body p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: var(--sp-5);
}
.article-body ul, .article-body ol {
  margin-bottom: var(--sp-5);
  padding-left: var(--sp-6);
}
.article-body li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--sp-2);
}
.article-body a { border-bottom: 1px solid transparent; }
.article-body a:hover { border-bottom-color: var(--primary); }

/* Key Takeaways */
.key-takeaways {
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  margin-top: var(--sp-10);
}
.key-takeaways__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--sp-5);
}
.key-takeaways ul { list-style: none; padding: 0; }
.key-takeaways li {
  font-size: 0.9rem;
  color: var(--text);
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  border-bottom: 1px solid rgba(33, 150, 243, 0.14);
  position: relative;
}
.key-takeaways li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.key-takeaways li:last-child { border-bottom: none; }

/* 教程步骤 */
.steps { list-style: none; padding: 0; counter-reset: step; }
.step {
  counter-increment: step;
  display: flex;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px dashed var(--border);
}
.step:last-child { border-bottom: none; }
.step::before {
  content: counter(step);
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 2px;
}
.step__content { flex: 1; }
.step__title { font-weight: 700; font-size: 1rem; margin-bottom: var(--sp-3); color: var(--text); }
.step__desc  { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; }

/* 目录 TOC */
.toc {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-6));
}
.toc__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
}
.toc__list { list-style: none; padding: 0; }
.toc__item { margin-bottom: var(--sp-1); }
.toc__link {
  display: block;
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-sm);
  border-left: 2px solid transparent;
  transition: all var(--t-fast);
  line-height: 1.5;
}
.toc__link:hover, .toc__link.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--primary-light);
}
.toc__item--h3 .toc__link { padding-left: var(--sp-6); font-size: 0.78rem; }

/* 文章内 CTA 框 */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, #42A5F5 100%);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  text-align: center;
  color: white;
  margin: var(--sp-10) 0;
}
.cta-box__title { font-size: 1.25rem; font-weight: 700; margin-bottom: var(--sp-3); }
.cta-box__desc  { font-size: 0.9rem; opacity: 0.9; margin-bottom: var(--sp-6); }
.cta-box .btn--white {
  background: white;
  color: var(--primary-dark);
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  font-weight: 700;
}
.cta-box .btn--white:hover { background: #F0F8FF; }

/* 相关文章 */
.related-articles { border-top: 1px solid var(--border); padding-top: var(--sp-8); margin-top: var(--sp-10); }
.related-articles__title { font-size: 1rem; font-weight: 700; margin-bottom: var(--sp-5); }
.related-articles__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.related-link {
  background: var(--bg-alt);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  border: 1px solid var(--border);
  transition: all var(--t-base);
}
.related-link:hover { background: white; box-shadow: var(--shadow-md); }
.related-link__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: var(--sp-1);
  line-height: 1.45;
}
.related-link__title:hover { color: var(--primary); }
.related-link__cat { font-size: 0.75rem; color: var(--text-light); }

/* === 数据统计块 === */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.stat-card {
  text-align: center;
  padding: var(--sp-6);
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.stat-card__number { font-size: 2.2rem; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: var(--sp-2); }
.stat-card__label  { font-size: 0.85rem; color: var(--text-secondary); }
.stat-card__note   { font-size: 0.72rem; color: var(--text-light); margin-top: var(--sp-1); }

/* === 评分系统 === */
.rating { display: flex; align-items: center; gap: var(--sp-2); }
.rating__stars { display: flex; gap: 2px; color: #FFC107; font-size: 1.1rem; }
.rating__score { font-weight: 700; color: var(--text); }
.rating__count { font-size: 0.8rem; color: var(--text-light); }

.rating-rows { display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.rating-row  { display: flex; align-items: center; gap: var(--sp-4); }
.rating-row__label { width: 88px; font-size: 0.84rem; color: var(--text-secondary); flex-shrink: 0; }
.rating-row__bar   { flex: 1; height: 8px; background: var(--primary-light); border-radius: var(--r-full); overflow: hidden; }
.rating-row__fill  { height: 100%; background: var(--primary); border-radius: var(--r-full); }
.rating-row__score { width: 36px; font-size: 0.84rem; font-weight: 700; color: var(--primary); text-align: right; }

/* 优缺点 */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); margin-bottom: var(--sp-6); }
.pros, .cons {
  background: white;
  border-radius: var(--r-md);
  padding: var(--sp-6);
  border: 1px solid var(--border);
}
.pros__title { font-weight: 700; color: #2E7D32; margin-bottom: var(--sp-4); }
.cons__title { font-weight: 700; color: #C62828; margin-bottom: var(--sp-4); }
.pros ul, .cons ul { list-style: none; padding: 0; }
.pros li, .cons li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.pros li::before { content: '✓'; position: absolute; left: 0; color: #4CAF50; font-weight: 700; }
.cons li::before { content: '✕'; position: absolute; left: 0; color: #F44336; font-weight: 700; }
.pros li:last-child, .cons li:last-child { border-bottom: none; }

/* === 亮点框 === */
.highlight-box {
  background: linear-gradient(135deg, #E3F2FD 0%, #F5FBFF 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  margin-bottom: var(--sp-6);
}

/* 功能列表（带图标） */
.feature-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.feature-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 1px;
}

/* === 页脚 === */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.68);
  padding: var(--sp-16) 0 var(--sp-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}
.footer__brand-name { font-size: 1.25rem; font-weight: 700; color: white; margin-bottom: var(--sp-3); }
.footer__brand-desc { font-size: 0.84rem; line-height: 1.75; margin-bottom: var(--sp-5); max-width: 280px; }
.footer__cta-btn {
  background: var(--primary);
  color: white;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-block;
  transition: background var(--t-base);
}
.footer__cta-btn:hover { background: var(--primary-hover); color: white; }
.footer__col-title {
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: var(--sp-5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer__links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__links a { color: rgba(255,255,255,0.58); font-size: 0.875rem; transition: color var(--t-fast); }
.footer__links a:hover { color: white; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--sp-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.footer__bottom-links { display: flex; gap: var(--sp-5); }
.footer__bottom-links a { color: rgba(255,255,255,0.48); }
.footer__bottom-links a:hover { color: white; }

.footer__disclaimer {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.36);
  margin-top: var(--sp-6);
  line-height: 1.75;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--sp-5);
}

/* === 动画 === */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in          { opacity: 1; transform: none; transition: none; }
  .cloud            { animation: none; }
  .hero__scroll-arrow { animation: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-8);
  width: 44px; height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-cta);
  transition: all var(--t-base);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* === 分页 === */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-top: var(--sp-12);
}
.pagination a, .pagination span {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-secondary);
  transition: all var(--t-fast);
}
.pagination a:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: white; }

/* 404 页 */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-6);
  flex-direction: column;
}
.error-page__code  { font-size: 7rem; font-weight: 700; color: var(--primary-light); line-height: 1; margin-bottom: var(--sp-4); }
.error-page__title { font-size: 1.8rem; margin-bottom: var(--sp-4); }
.error-page__desc  { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: var(--sp-8); }

/* 面包屑区域背景 */
.breadcrumb-bar {
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid var(--border);
  padding-top: var(--nav-h);
}

/* 内容页面头部 */
.page-hero {
  background: linear-gradient(135deg, #CBE8F8 0%, #E3F2FD 100%);
  padding: calc(var(--nav-h) + var(--sp-12)) 0 var(--sp-12);
  text-align: center;
}
.page-hero__title { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-bottom: var(--sp-4); }
.page-hero__desc  { font-size: 1.05rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto; line-height: 1.75; }

/* 侧边栏 CTA 卡片 */
.sidebar-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #42A5F5 100%);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  text-align: center;
  color: white;
  margin-bottom: var(--sp-6);
}
.sidebar-cta__title { font-size: 1rem; font-weight: 700; margin-bottom: var(--sp-3); }
.sidebar-cta__desc  { font-size: 0.82rem; opacity: 0.9; margin-bottom: var(--sp-5); }
.sidebar-cta .btn--white {
  background: white;
  color: var(--primary-dark);
  font-weight: 700;
  width: 100%;
  justify-content: center;
}

/* === 工具类 === */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-primary   { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-light     { color: var(--text-light); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.mt-4 { margin-top: var(--sp-4); }
.mt-8 { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.w-full { width: 100%; }

/* === 响应式 === */
@media (max-width: 1024px) {
  .grid-4    { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}

@media (max-width: 768px) {
  .nav__links  { display: none; }
  .nav__cta    { display: none; }
  .nav__hamburger { display: flex; }

  .hero__content { grid-template-columns: 1fr; text-align: center; }
  .hero__desc    { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual  { display: none; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }

  .article-wrap { grid-template-columns: 1fr; }
  .toc { display: none; }

  .related-articles__grid { grid-template-columns: 1fr; }
  .footer__grid   { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .section  { padding: var(--sp-12) 0; }
  .article-content { padding: var(--sp-6); }

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

@media (max-width: 480px) {
  html { font-size: 15px; }
  .container { padding: 0 var(--sp-4); }
  .btn--lg { font-size: 0.95rem; padding: 0.75rem 1.5rem; }
  .hero__title { font-size: 1.9rem; }
}
