/**
 * 秒秒云 (miaomiaocloud.sbs) 全局核心样式表
 * 框架: 液态云层 · 流体形状缓慢变化 | 模板: 梦幻流沙
 */

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

html {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--color-sand-bg);
  color: var(--color-text-bright);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

/* 页面通用容器 */
.site-container, .container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

.site-section, section[id] {
  position: relative;
  padding-top: clamp(60px, 8vw, 110px);
  padding-bottom: clamp(60px, 8vw, 110px);
  z-index: 5;
  scroll-margin-top: 100px;
}

/* 顶部流沙公告 */
.site-notice-bar {
  background: rgba(246, 211, 101, 0.08);
  border-bottom: 1px solid var(--quicksand-border);
  padding: 9px 16px;
  font-size: 13px;
  text-align: center;
  color: #f6d365;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.site-notice-bar strong {
  color: #ffffff;
}

.site-notice-bar a {
  color: #fda085;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 粘性导航头 */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(253, 160, 133, 0.15);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(9, 13, 22, 0.96);
  border-bottom-color: rgba(246, 211, 101, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.brand-logo:hover .brand-icon {
  transform: rotate(6deg) scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--quicksand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.brand-slogan {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--color-text-sand-subtle);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-sand-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

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

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #ffffff;
}

/* ==========================================================================
   Hero 首屏 (液态云层 + 梦幻流沙)
   ========================================================================== */
.hero-section {
  text-align: center;
  position: relative;
  padding-top: clamp(60px, 9vw, 120px);
  padding-bottom: clamp(60px, 8vw, 100px);
}

.hero-h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: clamp(22px, 3.8vw, 46px);
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: -0.015em;
  margin: 18px 0 24px 0;
  color: #ffffff;
  text-align: center;
}

.hero-title-row {
  display: block;
  white-space: nowrap;
  max-width: 100%;
}

@media (max-width: 640px) {
  .hero-h1 {
    font-size: clamp(18px, 4.8vw, 24px);
    gap: 8px;
  }
  .hero-title-row {
    white-space: normal;
    word-break: break-word;
  }
}

.hero-desc {
  font-size: clamp(15px, 1.9vw, 18px);
  line-height: 1.85;
  color: rgba(226, 232, 240, 0.88);
  max-width: 820px;
  margin: 0 auto 38px auto;
  text-align: center;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3.5vw, 38px);
  padding: 16px 30px;
  background: rgba(14, 19, 32, 0.6);
  border: 1px solid var(--quicksand-border);
  border-radius: 9999px;
  backdrop-filter: blur(14px);
  max-width: fit-content;
  margin: 0 auto;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-sand-muted);
}

.trust-item strong {
  color: #ffffff;
}

/* ==========================================================================
   实时网络探针 (Live Node Ping Probe)
   ========================================================================== */
.probe-container {
  margin-top: 50px;
  padding: 26px clamp(16px, 3vw, 32px);
}

.probe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.probe-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.probe-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #38ef7d;
  background: rgba(56, 239, 125, 0.1);
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(56, 239, 125, 0.28);
}

.probe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.probe-card {
  background: rgba(9, 13, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.3s ease;
}

.probe-card:hover {
  border-color: rgba(246, 211, 101, 0.45);
  transform: translateY(-3px);
}

.node-region {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.node-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(253, 160, 133, 0.15);
  color: #fda085;
  border: 1px solid rgba(253, 160, 133, 0.3);
}

.node-ping {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 20px;
  font-weight: 800;
  color: #f6d365;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.node-ping small {
  font-size: 12px;
  color: var(--color-text-sand-subtle);
}

.node-desc {
  font-size: 11px;
  color: var(--color-text-sand-muted);
}

/* ==========================================================================
   核心优势卡片 (Features Grid)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.feature-box {
  padding: clamp(26px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(246, 211, 101, 0.1);
  border: 1px solid var(--quicksand-border);
  color: #f6d365;
}

.feature-heading {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.feature-body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-text-sand-muted);
}

/* ==========================================================================
   套餐矩阵与周期切换 (Pricing Plans)
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 16px 0 14px 0;
  color: #ffffff;
}

.section-subtitle {
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--color-text-sand-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

.pricing-switcher-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.billing-switch {
  display: inline-flex;
  background: rgba(14, 19, 32, 0.88);
  border: 1px solid var(--quicksand-border);
  border-radius: 9999px;
  padding: 4px;
  gap: 4px;
}

.billing-opt {
  background: none;
  border: none;
  padding: 8px 22px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-sand-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.billing-opt.active {
  background: var(--quicksand-gradient);
  color: #111827;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(253, 160, 133, 0.4);
}

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

.plan-card {
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-card.featured {
  border-color: rgba(246, 211, 101, 0.55);
  box-shadow: 0 20px 50px -10px rgba(253, 160, 133, 0.32);
  transform: scale(1.03);
}

@media (max-width: 992px) {
  .plan-card.featured {
    transform: none;
  }
}

.plan-featured-tag {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--quicksand-gradient);
  color: #111827;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.plan-desc {
  font-size: 13px;
  color: var(--color-text-sand-subtle);
  min-height: 38px;
}

.plan-price-box {
  margin: 22px 0 26px 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-curr {
  font-size: 22px;
  font-weight: 700;
  color: #f6d365;
}

.plan-num {
  font-size: 44px;
  font-weight: 900;
  color: #ffffff;
}

.plan-cycle {
  font-size: 14px;
  color: var(--color-text-sand-muted);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(241, 245, 249, 0.88);
}

.plan-feature-item svg {
  color: #f6d365;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   客户端生态网格 (Clients)
   ========================================================================== */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.client-item-card {
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.client-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(246, 211, 101, 0.08);
  border: 1px solid var(--quicksand-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.client-meta h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.client-meta p {
  font-size: 12px;
  color: var(--color-text-sand-muted);
}

/* ==========================================================================
   官方 6 篇专栏卡片 (Articles)
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.article-box {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.article-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--color-text-sand-subtle);
}

.article-cat-badge {
  background: rgba(246, 211, 101, 0.12);
  color: #f6d365;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.article-headline {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: #ffffff;
  transition: color 0.25s ease;
}

.article-box:hover .article-headline {
  color: #f6d365;
}

.article-summary {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-sand-muted);
}

.article-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fda085;
}

/* ==========================================================================
   FAQ 手风琴
   ========================================================================== */
.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}

.faq-card {
  background: rgba(14, 19, 32, 0.72);
  border: 1px solid var(--quicksand-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-card.active {
  border-color: rgba(246, 211, 101, 0.5);
}

.faq-q-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  gap: 16px;
}

.faq-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: #f6d365;
  flex-shrink: 0;
}

.faq-card.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-a-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: var(--color-text-sand-muted);
  font-size: 14px;
  line-height: 1.75;
}

.faq-card.active .faq-a-body {
  padding-bottom: 22px;
}

/* ==========================================================================
   CTA 横幅
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, rgba(246, 211, 101, 0.12) 0%, rgba(253, 160, 133, 0.15) 50%, rgba(121, 40, 202, 0.15) 100%);
  border: 1px solid var(--quicksand-border);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 70px) clamp(24px, 4vw, 56px);
  text-align: center;
}

/* ==========================================================================
   页脚 (Footer)
   ========================================================================== */
.site-footer {
  background: #060910;
  border-top: 1px solid rgba(253, 160, 133, 0.12);
  padding: 64px 0 32px 0;
  font-size: 13px;
  color: var(--color-text-sand-subtle);
  position: relative;
  z-index: 10;
}

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

.footer-col h5 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a:hover {
  color: #f6d365;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 26px;
  flex-wrap: wrap;
  gap: 16px;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   文章详情页独立模块增强 (Article Page View)
   ========================================================================== */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.article-page {
  background-color: var(--color-sand-bg);
}

.article-content-wrapper {
  padding: clamp(32px, 5vw, 64px) 0 80px;
  position: relative;
  z-index: 10;
}

.article-body {
  padding: clamp(28px, 4.5vw, 60px);
  margin-bottom: 48px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.article-meta-header {
  border-bottom: 1px solid rgba(253, 160, 133, 0.16);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.article-title {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin: 16px 0 14px 0;
  background: linear-gradient(135deg, #ffffff 30%, #f6d365 75%, #fda085 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.article-meta-info {
  font-size: 13px;
  color: var(--color-text-sand-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.article-inner-text {
  font-size: 16px;
  line-height: 1.85;
  color: #d1d5db;
}

.article-inner-text .lead-text {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
  color: #f3f4f6;
  margin-bottom: 24px;
  border-left: 4px solid #fda085;
  padding-left: 18px;
  background: rgba(253, 160, 133, 0.05);
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 0 10px 10px 0;
}

.article-inner-text p {
  margin-bottom: 20px;
}

.article-inner-text h2 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 40px 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-inner-text h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 20px;
  background: var(--quicksand-gradient);
  border-radius: 3px;
}

.article-inner-text h3 {
  font-size: 18px;
  font-weight: 700;
  color: #f6d365;
  margin: 28px 0 12px 0;
}

.article-inner-text ul, .article-inner-text ol {
  margin: 0 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-inner-text ul {
  list-style: disc;
}

.article-inner-text ol {
  list-style: decimal;
}

.article-inner-text li {
  line-height: 1.75;
}

.article-inner-text code {
  background: rgba(246, 211, 101, 0.12);
  color: #fda085;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}

.article-cta-box {
  margin-top: 48px;
  padding: clamp(24px, 3.5vw, 40px);
  text-align: center;
  background: linear-gradient(135deg, rgba(246, 211, 101, 0.1) 0%, rgba(253, 160, 133, 0.12) 50%, rgba(255, 117, 140, 0.08) 100%);
  border: 1px solid rgba(253, 160, 133, 0.25);
  border-radius: 20px;
}

.article-cta-box h3 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.article-cta-box p {
  font-size: 15px;
  color: #d1d5db;
  max-width: 640px;
  margin: 0 auto 24px auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* 相关文章卡片 */
.related-articles-section {
  margin-top: 48px;
}

.related-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.related-card {
  padding: 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 211, 101, 0.4);
}

.related-card .badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: #f6d365;
  background: rgba(246, 211, 101, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}

.related-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.45;
}

.related-card p {
  font-size: 13px;
  color: var(--color-text-sand-subtle);
  line-height: 1.6;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 36px;
  padding-bottom: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-sand-subtle);
  max-width: 380px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-sand-muted);
}

.footer-col ul a:hover {
  color: #f6d365;
}

.footer-col .disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-text-sand-subtle);
  margin-bottom: 12px;
}

.footer-col .copyright {
  font-size: 12px;
  color: var(--color-text-sand-subtle);
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}
