/* ==========================================================================
   疾风云官网 (xsusjc.my) - 纯正苹果官网极简主义 Design System (Apple.com Style)
   ========================================================================== */

/* 1. 苹果官方原汁原味设计 Token */
:root {
  --apple-bg: #f5f5f7;
  --apple-card: #ffffff;
  --apple-card-hover: #ffffff;
  
  --apple-text: #1d1d1f;
  --apple-subtext: #424245;
  --apple-caption: #6e6e73;
  --apple-border: rgba(0, 0, 0, 0.08);
  --apple-border-hover: rgba(0, 113, 227, 0.4);

  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-blue-light: rgba(0, 113, 227, 0.08);
  
  --apple-radius-card: 32px;
  --apple-radius-item: 20px;
  --apple-radius-pill: 9999px;

  --apple-shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.04);
  --apple-shadow-md: 0 12px 40px rgba(0, 0, 0, 0.06);
  --apple-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.09);
  --apple-shadow-blue: 0 8px 30px rgba(0, 113, 227, 0.25);

  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bezier-apple: cubic-bezier(0.25, 1, 0.5, 1);
}

/* 2. 重置与画布设定 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--apple-bg);
  color: var(--apple-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background: var(--apple-bg);
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* 3. 苹果风格容器与板块留白 */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 140px 0;
  position: relative;
}

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

.section-eyebrow {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--apple-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--apple-text);
  margin-bottom: 20px;
}

.section-title span {
  background: linear-gradient(135deg, #0071e3 0%, #42a5f5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.25rem;
  color: var(--apple-subtext);
  line-height: 1.6;
  font-weight: 400;
}

/* 4. 苹果极简悬浮导航栏 */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 64px);
  max-width: 1240px;
  height: 56px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--apple-radius-pill);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s var(--bezier-apple);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--apple-text);
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 30px;
  height: 30px;
  background: var(--apple-text);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--apple-subtext);
  transition: color 0.2s ease;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--apple-radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.25s var(--bezier-apple);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--apple-blue);
  color: #ffffff;
  box-shadow: var(--apple-shadow-blue);
}

.btn-primary:hover {
  background: var(--apple-blue-hover);
  transform: scale(1.02);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--apple-text);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.09);
  border-color: rgba(0, 0, 0, 0.15);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.0625rem;
  border-radius: var(--apple-radius-pill);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  height: 20px;
  justify-content: center;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--apple-text);
  border-radius: 2px;
}

/* 5. 苹果风格 Hero 极简首屏 */
.hero {
  padding-top: 180px;
  padding-bottom: 100px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 113, 227, 0.08);
  border-radius: var(--apple-radius-pill);
  font-size: 0.875rem;
  color: var(--apple-blue);
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-title {
  font-size: 5.25rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--apple-text);
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--apple-blue);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--apple-subtext);
  max-width: 720px;
  margin: 0 auto 40px;
  font-weight: 400;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
}

/* 苹果风 3D 浮雕交互速度展示舱 */
.hero-showcase {
  background: #ffffff;
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-card);
  padding: 40px;
  box-shadow: var(--apple-shadow-lg);
  max-width: 1040px;
  margin: 0 auto;
}

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

.showcase-item {
  padding: 24px 16px;
  border-right: 1px solid var(--apple-border);
}

.showcase-item:last-child {
  border-right: none;
}

.showcase-value {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--apple-text);
}

.showcase-value .unit {
  font-size: 1.25rem;
  color: var(--apple-blue);
}

.showcase-label {
  font-size: 0.875rem;
  color: var(--apple-caption);
  margin-top: 6px;
  font-weight: 600;
}

/* 6. 核心优势 - 苹果 Bento Grid 网格 */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--apple-card);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-card);
  padding: 48px 36px;
  transition: all 0.35s var(--bezier-apple);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--apple-shadow-sm);
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--apple-shadow-md);
  border-color: rgba(0, 0, 0, 0.12);
}

.bento-card.bento-wide {
  grid-column: span 2;
  background: linear-gradient(135deg, #ffffff 0%, #f9f9fb 100%);
}

.bento-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--apple-blue-light);
  color: var(--apple-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.bento-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--apple-text);
  margin-bottom: 12px;
}

.bento-desc {
  font-size: 1.0625rem;
  color: var(--apple-subtext);
  line-height: 1.6;
}

/* 7. 节点延迟与状态面板 */
.nodes-apple-board {
  background: #ffffff;
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-card);
  padding: 48px;
  box-shadow: var(--apple-shadow-md);
}

.nodes-board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.node-status-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1b7a32;
}

.dot-pulse {
  width: 10px;
  height: 10px;
  background-color: #34c759;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.2);
}

.nodes-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.node-card {
  background: #fbfbfd;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--apple-radius-item);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s var(--bezier-apple);
}

.node-card:hover {
  background: #ffffff;
  border-color: rgba(0, 113, 227, 0.3);
  box-shadow: var(--apple-shadow-sm);
}

.node-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.node-flag-icon {
  font-size: 1.75rem;
}

.node-title-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--apple-text);
}

.node-sub-text {
  font-size: 0.8125rem;
  color: var(--apple-caption);
}

.node-ping-badge {
  font-family: SFMono-Regular, Consolas, monospace;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--apple-radius-pill);
}

.ping-green {
  color: #1b7a32;
  background: rgba(52, 199, 89, 0.15);
}

.ping-orange {
  color: #c97000;
  background: rgba(255, 149, 0, 0.15);
}

/* 8. 套餐价格板块 - 修正极高清价格排版 */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
}

.toggle-btn {
  padding: 8px 24px;
  border-radius: var(--apple-radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--apple-caption);
  transition: all 0.2s ease;
}

.toggle-btn.active {
  background: #ffffff;
  color: var(--apple-text);
  box-shadow: var(--apple-shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

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

.price-card {
  background: var(--apple-card);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-card);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s var(--bezier-apple);
  box-shadow: var(--apple-shadow-sm);
  position: relative;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--apple-shadow-md);
}

.price-card.featured {
  border: 2px solid var(--apple-blue);
  box-shadow: var(--apple-shadow-blue);
}

.badge-featured {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--apple-blue);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--apple-radius-pill);
  letter-spacing: 0.05em;
}

.price-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--apple-text);
  margin-bottom: 8px;
}

.price-desc {
  font-size: 0.9375rem;
  color: var(--apple-subtext);
  min-height: 44px;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* 修复价格巨型高对比度数字与格式 */
.price-num {
  display: flex;
  align-items: baseline;
  margin-bottom: 28px;
}

.price-symbol {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--apple-blue);
  margin-right: 4px;
}

.plan-price-val {
  font-size: 2.875rem;
  font-weight: 800;
  color: #1d1d1f !important;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-period {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--apple-caption);
  margin-left: 6px;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  flex-grow: 1;
}

.price-features li {
  font-size: 0.9375rem;
  color: var(--apple-text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-features svg {
  width: 16px;
  height: 16px;
  fill: var(--apple-blue);
  flex-shrink: 0;
}

/* 9. 用户评价板块 */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-apple-card {
  background: var(--apple-card);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-card);
  padding: 40px 32px;
  box-shadow: var(--apple-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s var(--bezier-apple);
}

.review-apple-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--apple-shadow-md);
}

.review-body-text {
  font-size: 1.0625rem;
  color: var(--apple-text);
  line-height: 1.6;
  margin-bottom: 28px;
  font-weight: 400;
}

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

.user-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--apple-blue-light);
  color: var(--apple-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.user-name-text {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--apple-text);
}

.user-role-text {
  font-size: 0.8125rem;
  color: var(--apple-caption);
}

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

.faq-apple-item {
  background: var(--apple-card);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-item);
  overflow: hidden;
  transition: all 0.25s var(--bezier-apple);
}

.faq-apple-item.active {
  border-color: rgba(0, 113, 227, 0.4);
  box-shadow: var(--apple-shadow-sm);
}

.faq-apple-q {
  width: 100%;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--apple-text);
  text-align: left;
}

.faq-apple-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 32px;
  color: var(--apple-subtext);
  font-size: 1rem;
  line-height: 1.6;
}

.faq-apple-item.active .faq-apple-a {
  max-height: 300px;
  padding-bottom: 24px;
}

/* 11. 知识库与 8 篇文章网格 */
.articles-apple-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.article-apple-card {
  background: var(--apple-card);
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s var(--bezier-apple);
  cursor: pointer;
  box-shadow: var(--apple-shadow-sm);
}

.article-apple-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--apple-shadow-md);
  border-color: rgba(0, 113, 227, 0.3);
}

.article-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--apple-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.article-head-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--apple-text);
  margin-bottom: 12px;
}

.article-summary {
  font-size: 0.84375rem;
  color: var(--apple-subtext);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-foot-link {
  font-size: 0.8125rem;
  color: var(--apple-blue);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 12. 全屏极简长文阅读器 Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--bezier-apple);
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border-radius: var(--apple-radius-card);
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.15);
  transform: scale(0.96);
  transition: transform 0.3s var(--bezier-apple);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 24px 36px;
  border-bottom: 1px solid var(--apple-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fbfbfd;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--apple-text);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 48px 56px;
  overflow-y: auto;
  color: var(--apple-subtext);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.modal-body h1 {
  font-size: 2.25rem;
  color: var(--apple-text);
  margin-bottom: 20px;
}

.modal-body h2 {
  font-size: 1.5rem;
  color: var(--apple-text);
  margin: 36px 0 16px;
}

.modal-body p {
  margin-bottom: 20px;
}

.modal-cta-box {
  background: #f5f5f7;
  border-radius: var(--apple-radius-item);
  padding: 32px;
  text-align: center;
  margin-top: 40px;
}

/* 13. 页脚 */
.footer {
  background: #f5f5f7;
  border-top: 1px solid var(--apple-border);
  padding: 80px 0 40px;
  color: var(--apple-caption);
  font-size: 0.84375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

.footer-col-title {
  font-weight: 700;
  color: var(--apple-text);
  margin-bottom: 16px;
}

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

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--apple-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 14. 响应式布局 */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.75rem; }
  .bento-grid, .pricing-bento, .articles-apple-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card.bento-wide { grid-column: span 2; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .showcase-item { border-right: none; }
}

@media (max-width: 768px) {
  .navbar { width: calc(100% - 32px); top: 12px; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 24px;
    border-radius: var(--apple-radius-item);
    box-shadow: var(--apple-shadow-lg);
  }
  .hero-title { font-size: 2.75rem; }
  .section-title { font-size: 2.25rem; }
  .bento-grid, .pricing-bento, .reviews-grid, .nodes-list, .articles-apple-grid, .showcase-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.bento-wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .modal-body { padding: 28px 20px; }
}
