/* ==========================================================================
   狗狗云 (DogDog Cloud) - 原生 CSS 样式表
   商务极简风格 | 纯 CSS 动态视觉图卡 | 秒开与全端自适应 | SEO 文章板块
   ========================================================================== */

:root {
  --bg-dark: #0B132B;
  --bg-card: #1C2541;
  --bg-card-hover: #232F52;
  --bg-nav: rgba(11, 19, 43, 0.88);
  
  --primary: #38BDF8;           /* 商务科技蓝 */
  --primary-glow: #0284C7;
  --accent-orange: #FF6B35;     /* 狗狗云活力橙 */
  --accent-green: #10B981;      /* 运行正常绿 */
  
  --primary-gradient: linear-gradient(135deg, #38BDF8 0%, #6366F1 100%);
  --orange-gradient: linear-gradient(135deg, #FF6B35 0%, #FF8555 100%);
  
  --text-main: #F8FAFC;
  --text-sub: #94A3B8;
  --text-muted: #64748B;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(56, 189, 248, 0.3);
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.2);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  
  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-orange {
  background: var(--orange-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 按钮基础样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.45);
  filter: brightness(1.1);
}

.btn-orange {
  background: var(--orange-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 107, 53, 0.45);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   1. 商务页眉与导航目录 (Header Navbar)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--orange-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

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

.nav-links a {
  color: var(--text-sub);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   2. 主视觉区 (Hero Section) - 左右分栏与纯 CSS 动态视觉图卡
   ========================================================================== */
.hero {
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.8px;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-sub);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.stat-item-inline {
  display: flex;
  flex-direction: column;
}

.stat-item-inline .val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-item-inline .lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 动态视觉图卡 */
.hero-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-visual-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.visual-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.status-dot-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-green);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.visual-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  color: var(--text-sub);
}

.node-ping-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.node-ping-item {
  background: rgba(11, 19, 43, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  animation: float-slide 4s ease-in-out infinite alternate;
}

.node-ping-item:nth-child(2) { animation-delay: 1.2s; }
.node-ping-item:nth-child(3) { animation-delay: 2.4s; }

@keyframes float-slide {
  0% { transform: translateY(0px); border-color: rgba(255, 255, 255, 0.08); }
  50% { transform: translateY(-3px); border-color: rgba(56, 189, 248, 0.3); }
  100% { transform: translateY(0px); border-color: rgba(255, 255, 255, 0.08); }
}

.node-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.node-flag { font-size: 1.1rem; }

.ping-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.speed-radar-box {
  background: rgba(11, 19, 43, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.speed-info { display: flex; flex-direction: column; }
.speed-info .title { font-size: 0.75rem; color: var(--text-muted); }
.speed-info .val { font-size: 1.2rem; font-weight: 800; color: var(--primary); }

.wave-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
}

.wave-bar {
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
  animation: wave-anim 1.4s ease-in-out infinite alternate;
}

.wave-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.wave-bar:nth-child(2) { height: 85%; animation-delay: 0.3s; }
.wave-bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 100%; animation-delay: 0.5s; }
.wave-bar:nth-child(5) { height: 75%; animation-delay: 0.4s; }

@keyframes wave-anim {
  0% { height: 20%; opacity: 0.4; }
  100% { height: 100%; opacity: 1; }
}

/* Section 通用标题 */
.section { padding: 4.5rem 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 0.75rem; letter-spacing: -0.5px; }
.section-desc { font-size: 0.98rem; color: var(--text-sub); }

/* 3. 核心优势 */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 2.25rem 1.75rem; transition: all 0.3s ease; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--border-highlight); box-shadow: var(--shadow-glow); background: var(--bg-card-hover); }
.feature-icon-wrapper { width: 52px; height: 52px; border-radius: 10px; background: rgba(56, 189, 248, 0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.feature-icon-wrapper svg { width: 26px; height: 26px; fill: currentColor; }
.feature-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text-main); }
.feature-desc { font-size: 0.92rem; color: var(--text-sub); line-height: 1.65; }

/* 4. 流媒体与 AI 支持图卡 */
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.support-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 2rem; }
.support-card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.support-badge-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.support-badge-icon.media { background: rgba(239, 68, 68, 0.12); color: #EF4444; }
.support-badge-icon.ai { background: rgba(168, 85, 247, 0.12); color: #A855F7; }
.support-card-title { font-size: 1.2rem; font-weight: 700; }
.tags-list { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.tag-item { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.85rem; background: rgba(11, 19, 43, 0.6); border: 1px solid var(--border-color); border-radius: 6px; font-size: 0.88rem; color: var(--text-main); font-weight: 500; }
.tag-item svg { width: 15px; height: 15px; fill: var(--primary); }

/* 5. 套餐价格对比表 */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; align-items: stretch; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 2rem 1.5rem; display: flex; flex-direction: column; position: relative; transition: all 0.3s ease; }
.pricing-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); }
.pricing-card.featured { border-color: var(--primary); background: linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, var(--bg-card) 100%); box-shadow: var(--shadow-glow); }
.pricing-card.featured::before { content: "🔥 热门推荐 / 高性价比"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary-gradient); color: #FFFFFF; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.85rem; border-radius: 4px; white-space: nowrap; }
.plan-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.4rem; }
.plan-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.5rem; min-height: 2.4em; }
.plan-price-box { margin-bottom: 1.5rem; }
.plan-price { font-size: 2.2rem; font-weight: 800; color: var(--text-main); line-height: 1; }
.plan-currency { font-size: 1.1rem; font-weight: 600; margin-right: 0.2rem; color: var(--primary); }
.plan-period { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.plan-features { list-style: none; margin-bottom: 1.75rem; flex-grow: 1; }
.plan-features li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--text-sub); margin-bottom: 0.75rem; }
.plan-features li svg { width: 16px; height: 16px; fill: var(--accent-green); flex-shrink: 0; }

/* ==========================================================================
   5.5 SEO 文章板块 (放置在价格板块下方) - 图卡网格形式
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.article-card-header {
  margin-bottom: 1rem;
}

.article-category-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

.article-card-title a {
  transition: color 0.2s ease;
}

.article-card-title a:hover {
  color: var(--primary);
}

.article-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-read-more {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease;
}

.article-read-more:hover {
  gap: 0.6rem;
  color: #FFFFFF;
}

/* 6. 用户评价 */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.review-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.75rem; display: flex; flex-direction: column; justify-content: space-between; }
.stars { color: #FBBF24; margin-bottom: 0.85rem; font-size: 0.95rem; letter-spacing: 2px; }
.review-text { font-size: 0.92rem; color: var(--text-sub); font-style: italic; margin-bottom: 1.25rem; line-height: 1.6; }
.reviewer { display: flex; align-items: center; gap: 0.75rem; }
.avatar-placeholder { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-gradient); color: #FFFFFF; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.reviewer-info { display: flex; flex-direction: column; }
.reviewer-name { font-size: 0.88rem; font-weight: 600; color: var(--text-main); }
.reviewer-role { font-size: 0.75rem; color: var(--text-muted); }

/* 7. 常见问题 */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.85rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; transition: border-color 0.2s ease; }
.faq-item[open] { border-color: var(--border-highlight); }
.faq-summary { padding: 1.15rem 1.5rem; font-size: 1rem; font-weight: 600; color: var(--text-main); cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; user-select: none; }
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); font-weight: 400; transition: transform 0.2s ease; }
.faq-item[open] .faq-summary::after { content: "−"; transform: rotate(180deg); }
.faq-answer { padding: 0 1.5rem 1.15rem; font-size: 0.92rem; color: var(--text-sub); line-height: 1.7; }

/* 8. 页脚 */
.footer { margin-top: auto; background: #070D1D; border-top: 1px solid var(--border-color); padding: 3rem 0; text-align: center; }
.footer-nav { display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; list-style: none; }
.footer-nav a { font-size: 1rem; font-weight: 600; color: var(--text-sub); transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--primary); }
.footer-copyright { font-size: 0.82rem; color: var(--text-muted); }

/* 9. 独立子页面通用样式 */
.page-header { padding: 3.5rem 0 2rem; text-align: center; background: radial-gradient(circle at top, rgba(56, 189, 248, 0.08), transparent 60%); border-bottom: 1px solid var(--border-color); }
.page-title { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.page-breadcrumb { font-size: 0.88rem; color: var(--text-muted); }
.page-breadcrumb a { color: var(--primary); }
.content-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 2.5rem; margin: 3rem 0; line-height: 1.8; }
.content-box h2 { font-size: 1.3rem; font-weight: 700; color: var(--text-main); margin: 2rem 0 1rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border-color); }
.content-box h3 { font-size: 1.1rem; font-weight: 600; color: var(--primary); margin: 1.5rem 0 0.75rem; }
.content-box h2:first-child { margin-top: 0; }
.content-box p { color: var(--text-sub); margin-bottom: 1.25rem; font-size: 0.95rem; }
.content-box ul, .content-box ol { margin-bottom: 1.25rem; padding-left: 1.5rem; color: var(--text-sub); }
.content-box li { margin-bottom: 0.5rem; }

/* 10. 响应式适配 */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .navbar .container { height: 64px; }
  .nav-links { display: none; }
  .hero { padding: 2.5rem 0; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .section { padding: 3rem 0; }
  .footer-nav { flex-direction: column; gap: 1.25rem; }
  .content-box { padding: 1.5rem; }
}
