/* ==========================================================================
   网猫机场 (catnet.cfd) 官方落地页样式表
   ========================================================================== */

:root {
  --primary-color: #4361ee;
  --primary-hover: #3751d7;
  --primary-light: #eef2ff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --border-active: #4361ee;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(67, 97, 238, 0.08);
  --shadow-lg: 0 10px 25px rgba(67, 97, 238, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text-dark);
  background-color: #f6f8fb;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.header {
  background: #ffffff;
  border-bottom: 1px solid #edf2f7;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
}

.brand-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: #4a5568;
  font-size: 0.98rem;
}

.nav-link:hover {
  color: var(--primary-color);
}

.btn-nav-accent {
  background-color: var(--primary-color);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-nav-accent:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

/* Hero Section */
.hero-section {
  padding: 60px 0 80px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #1a202c;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.25);
  transition: all 0.2s ease;
}

.btn-action:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(67, 97, 238, 0.35);
}

.btn-action svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-recommend {
  grid-column: span 2;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-recommend:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

/* Hero Right Card */
.hero-card {
  background: #ffffff;
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.card-content {
  padding: 28px;
}

.card-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.platform-icons {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 24px;
  padding: 12px;
  background-color: #f8fafc;
  border-radius: var(--radius-md);
}

.platform-icons svg, .platform-icons img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.server-stats {
  text-align: center;
  font-size: 0.95rem;
  color: #4a5568;
  margin-bottom: 20px;
  font-weight: 500;
}

.flags-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.security-tag {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px dashed #e2e8f0;
  padding-top: 16px;
}

.card-footer-bar {
  background-color: var(--primary-color);
  color: #ffffff;
  display: flex;
  justify-content: space-around;
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Advantages Section */
.advantages-section {
  padding: 80px 0;
  background-color: #ffffff;
  border-bottom: 1px solid #edf2f7;
}

.section-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 50px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.advantage-card {
  text-align: center;
  padding: 30px 24px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid #edf2f7;
  transition: all 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.advantage-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px auto;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.advantage-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.advantage-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a202c;
}

.advantage-desc {
  font-size: 0.95rem;
  color: #718096;
  line-height: 1.6;
}

.features-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid #e2e8f0;
  padding-top: 40px;
  text-align: center;
}

.mini-feature-item {
  font-weight: 700;
  color: #2d3748;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mini-feature-item svg {
  width: 22px;
  height: 22px;
  fill: var(--primary-color);
}

/* Pricing Section */
.pricing-section {
  padding: 80px 0;
  background-color: #f8fafc;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.price-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.price-card.popular {
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
}

.plan-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 12px;
}

.plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.plan-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 16px;
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.9rem;
  color: #4a5568;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li svg {
  width: 16px;
  height: 16px;
  fill: #10b981;
  flex-shrink: 0;
}

.btn-price {
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: block;
}

.btn-price:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
}

/* Articles Section */
.articles-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.article-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.article-tag {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  width: fit-content;
}

.article-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-card-desc {
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.5;
}

.article-read-more {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* User Reviews Section */
.reviews-section {
  padding: 80px 0;
  background-color: #f8fafc;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.review-text {
  font-size: 0.95rem;
  color: #4a5568;
  margin-bottom: 20px;
  line-height: 1.6;
  font-style: italic;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.user-info .user-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #2d3748;
}

.user-info .user-role {
  font-size: 0.8rem;
  color: #a0aec0;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: none;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2d3748;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background-color: #f8fafc;
}

.faq-answer {
  padding: 0 24px 20px 24px;
  font-size: 0.95rem;
  color: #718096;
  line-height: 1.6;
  border-top: 1px solid #edf2f7;
  padding-top: 16px;
}

/* Article Detail Page Styles */
.article-detail-container {
  max-width: 860px;
  margin: 40px auto 80px auto;
  background: #ffffff;
  padding: 40px 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}

.article-header {
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.article-title-main {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1a202c;
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 20px;
  color: #a0aec0;
  font-size: 0.9rem;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2d3748;
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 36px 0 16px 0;
  color: #1a202c;
}

.article-body h3 {
  font-size: 1.25rem;
  margin: 24px 0 12px 0;
  color: #2d3748;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-cta-box {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border-left: 4px solid var(--primary-color);
  padding: 24px;
  border-radius: var(--radius-md);
  margin: 40px 0;
  text-align: center;
}

.article-cta-box h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.article-cta-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #ffffff !important;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-top: 16px;
}

.article-cta-btn:hover {
  background-color: var(--primary-hover);
}

.related-articles {
  margin-top: 60px;
  border-top: 1px solid #edf2f7;
  padding-top: 32px;
}

/* Footer & PBN Links (Core Task 2) */
footer, .site-footer {
  background-color: #1a202c;
  color: #a0aec0;
  padding: 40px 0 24px 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.footer-links-pbn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: #718096;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid #2d3748;
  width: 100%;
  max-width: 600px;
}

.footer-links-pbn span {
  color: #4a5568;
}

.footer-links-pbn a {
  color: #a0aec0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links-pbn a:hover {
  color: #ffffff;
}

.copyright-text {
  font-size: 0.82rem;
  color: #718096;
  margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .advantages-grid, .pricing-grid, .articles-grid, .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-card.popular {
    transform: none;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons-grid {
    grid-template-columns: 1fr;
  }

  .btn-recommend {
    grid-column: span 1;
  }

  .advantages-grid, .pricing-grid, .articles-grid, .reviews-grid {
    grid-template-columns: 1fr;
  }

  .features-mini-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .article-detail-container {
    padding: 24px;
  }
}
