/* ==========================================================================
   外婆云 (WaipoCloud.xyz) - Dark Cyberpunk Theme CSS
   ========================================================================== */

:root {
  --bg-dark: #0A0A14;
  --bg-card: rgba(18, 17, 34, 0.75);
  --bg-card-hover: rgba(28, 26, 52, 0.85);
  --border-color: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(0, 242, 254, 0.3);
  
  --primary-pink: #FF2E93;
  --primary-cyan: #00F2FE;
  --primary-purple: #8A2BE2;
  --accent-gold: #FFB800;
  
  --text-main: #FFFFFF;
  --text-sub: #A6A9C8;
  --text-muted: #6C7293;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 46, 147, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 242, 254, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.08) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

.gradient-text-pink-cyan {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-cyan-purple {
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-logo img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-sub);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #FF2E93 0%, #FF44A6 100%);
  color: #FFF;
  box-shadow: 0 4px 16px rgba(255, 46, 147, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 46, 147, 0.6);
}

.btn-accent {
  background: linear-gradient(135deg, #FFB800 0%, #FF7A00 100%);
  color: #FFF;
  box-shadow: 0 4px 16px rgba(255, 184, 0, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 184, 0, 0.55);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: 48px;
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Mockup Terminal Card (Matches Screenshot Right Graphic) */
.hero-mockup-wrapper {
  position: relative;
}

.hero-mockup-card {
  background: rgba(15, 14, 28, 0.9);
  border-radius: var(--radius-lg);
  padding: 12px;
  position: relative;
  box-shadow: 
    0 0 0 3px var(--primary-pink),
    0 0 0 6px var(--primary-cyan),
    0 20px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.mockup-inner {
  border-radius: 18px;
  overflow: hidden;
  background: #090812;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FF5F56;
}

.mockup-dots span:nth-child(2) { background: #FFBD2E; }
.mockup-dots span:nth-child(3) { background: #27C93F; }

.mockup-body {
  padding: 24px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: 
    radial-gradient(circle at 50% 30%, rgba(0, 242, 254, 0.15), transparent 70%),
    radial-gradient(circle at 80% 80%, rgba(255, 46, 147, 0.15), transparent 70%);
}

.terminal-map {
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid var(--primary-cyan);
  color: var(--primary-cyan);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.status-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-cyan);
}

.ping-meter {
  display: flex;
  justify-content: space-around;
  margin-top: 16px;
}

.ping-item {
  text-align: center;
}

.ping-item .val {
  font-size: 20px;
  font-weight: 700;
  color: #00F2FE;
}

.ping-item .lbl {
  font-size: 12px;
  color: var(--text-muted);
}

/* Features Section (核心优势) */
.section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-sub);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--primary-cyan);
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.15);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.feature-card:nth-child(even) .feature-icon {
  background: rgba(255, 46, 147, 0.1);
  color: var(--primary-pink);
  border-color: rgba(255, 46, 147, 0.2);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

/* Pricing Section (套餐价格) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
}

.pricing-card.popular {
  border-color: var(--primary-pink);
  box-shadow: 0 0 25px rgba(255, 46, 147, 0.25);
  background: rgba(26, 20, 45, 0.85);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary-pink), #FF44A6);
  color: #FFF;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
}

.plan-name {
  font-size: 20px;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
}

.plan-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
}

.plan-features li {
  font-size: 14px;
  color: var(--text-sub);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li::before {
  content: '✓';
  color: var(--primary-cyan);
  font-weight: bold;
}

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

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #FFF;
}

.user-info h4 {
  font-size: 16px;
}

.user-info span {
  font-size: 12px;
  color: var(--primary-cyan);
}

.rating-stars {
  color: var(--accent-gold);
  margin-bottom: 12px;
  font-size: 14px;
}

.review-text {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* FAQ Accordion Section (常见问题FAQ) */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.faq-question {
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  color: var(--primary-cyan);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
  color: var(--primary-pink);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* Articles Knowledge Base Grid (推荐资讯 / 深度博客) */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-cyan);
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.15);
}

.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-tag {
  display: inline-block;
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary-cyan);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
  width: fit-content;
}

.article-title {
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-excerpt {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.6;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

/* Article Detail Template Styles */
.article-page {
  padding: 60px 0 100px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--primary-cyan);
}

.article-header {
  margin-bottom: 40px;
}

.article-header h1 {
  font-size: 38px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.article-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  font-size: 16px;
  line-height: 1.8;
  color: #D1D5DB;
}

.article-content h2 {
  font-size: 24px;
  color: #FFF;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.article-content h3 {
  font-size: 20px;
  color: var(--primary-cyan);
  margin: 28px 0 12px;
}

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

.article-content ul, .article-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content blockquote {
  background: rgba(0, 242, 254, 0.05);
  border-left: 4px solid var(--primary-cyan);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  color: #E2E8F0;
}

.article-cta {
  background: linear-gradient(135deg, rgba(255, 46, 147, 0.15), rgba(0, 242, 254, 0.15));
  border: 1px solid var(--primary-pink);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  margin: 40px 0;
}

/* Footer Section (严格符合核心任务 2 要求) */
.site-footer {
  background: #06060D;
  border-top: 1px solid var(--border-color);
  padding: 48px 0 32px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center; /* 水平居中排版 */
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #FFF;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

/* PBN 友情链接输血管道专用低调美观样式 */
.footer-pbn-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px; /* 低调小字号 */
  color: var(--text-muted);
}

.footer-pbn-links span {
  opacity: 0.6;
}

.footer-pbn-links a {
  color: var(--text-sub);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 400;
}

.footer-pbn-links a:hover {
  color: var(--primary-cyan);
  text-shadow: 0 0 6px rgba(0, 242, 254, 0.4);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 32px;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
