@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=Outfit:wght@300;400;600;800&display=swap');

/* Basic Variables */
:root {
  --primary-gold: #ffd700;
  --secondary-gold: #ffaa00;
  --accent-gold: #ffe066;
  --bg-dark: #09070f;
  --bg-card: #141124;
  --bg-card-hover: #1c1833;
  --text-white: #ffffff;
  --text-gray: #b0aec2;
  --glow-color: rgba(255, 215, 0, 0.2);
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: 'Outfit', 'Noto Sans SC', sans-serif;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card-hover);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-gold);
}

/* Yellow-White Gradient Font */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #ffffff 60%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

/* Dynamic Cartoon Pig Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Mouse Tail Particles */
.mouse-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-gold) 0%, rgba(255, 215, 0, 0) 70%);
  transform: translate(-50%, -50%);
  animation: fadeOut 0.8s forwards ease-out;
}

@keyframes fadeOut {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
}

/* Global Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Navbar / Header */
header {
  backdrop-filter: blur(12px);
  background: rgba(9, 7, 15, 0.85);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

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

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 45px;
  height: 45px;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
  transition: transform var(--transition-speed);
}

.logo-section:hover .logo-img {
  transform: rotate(15deg) scale(1.1);
}

.logo-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Real-time Online Counter */
.online-counter-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.85rem;
  box-shadow: 0 0 15px var(--glow-color);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #00ff66;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff66;
  animation: pulse 1.8s infinite;
}

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

.online-number {
  font-weight: bold;
  color: #00ff66;
  font-family: monospace;
}

/* Register Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--secondary-gold) 0%, var(--primary-gold) 100%);
  color: #000000;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(255, 170, 0, 0.4);
  transition: all var(--transition-speed);
  display: inline-block;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
  filter: brightness(1.1);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto 35px;
  line-height: 1.6;
}

/* Section Common Styling */
section {
  padding: 60px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

/* H3 套餐内容动态滑动区 */
.pricing-container {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  padding: 20px 5px 40px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.pricing-card {
  flex: 0 0 calc(33.333% - 17px);
  min-width: 300px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 16px;
  padding: 35px 25px;
  scroll-snap-align: start;
  transition: all var(--transition-speed);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.pricing-card.featured {
  border-color: var(--primary-gold);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.15);
}

.pricing-card.featured::before {
  content: '热门首选';
  position: absolute;
  top: -12px;
  right: 25px;
  background: linear-gradient(135deg, var(--secondary-gold) 0%, var(--primary-gold) 100%);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-gold);
  margin-bottom: 20px;
}

.plan-price span {
  font-size: 1rem;
  color: var(--text-gray);
}

.plan-features {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.plan-features li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.pricing-card .btn-primary {
  width: 100%;
}

/* H4 用户评价 (左) & 节点测速 (右) 并排区 */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

/* 左侧：自动跳转的用户评价 */
.reviews-box {
  background: var(--bg-card);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
}

.reviews-carousel {
  position: relative;
  height: 180px;
}

.review-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
  pointer-events: none;
}

.review-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.review-stars {
  color: var(--primary-gold);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.review-content {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-white);
}

.review-user {
  font-weight: 700;
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-user::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 2px;
  background-color: var(--primary-gold);
}

.review-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.review-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.2);
  cursor: pointer;
  transition: background var(--transition-speed);
}

.review-dot.active {
  background: var(--primary-gold);
}

/* 右侧：节点测速自动刷新 */
.speed-test-box {
  background: var(--bg-card);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.speed-test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  padding-bottom: 10px;
}

.speed-test-title {
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.speed-test-status {
  font-size: 0.8rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 5px;
}

.speed-test-status .refresh-icon {
  animation: spin 2s infinite linear;
  display: inline-block;
}

@keyframes spin {
  100% { transform: rotate(-360deg); }
}

.node-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.node-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.node-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.node-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.node-ping {
  font-family: monospace;
  font-weight: bold;
}

.node-ping.excellent { color: #00ff66; }
.node-ping.good { color: #ffaa00; }

.node-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.node-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--secondary-gold), #00ff66);
  border-radius: 10px;
  transition: width 1s cubic-bezier(0.1, 0.8, 0.3, 1);
}

/* H2 文章上下排列滑动区 */
.articles-section {
  background: rgba(20, 17, 36, 0.3);
}

.articles-scroll-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 500px;
  overflow-y: auto;
  padding: 10px 5px;
  scrollbar-width: thin;
  border-radius: 12px;
}

.article-strip-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 12px;
  padding: 20px;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed);
  align-items: center;
}

.article-strip-card:hover {
  transform: scale(1.01) translateX(5px);
  border-color: rgba(255, 215, 0, 0.3);
  background: var(--bg-card-hover);
}

.article-icon-box {
  width: 60px;
  height: 60px;
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-gold);
  flex-shrink: 0;
}

.article-content-box {
  flex-grow: 1;
}

.article-title-text {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-white);
  transition: color var(--transition-speed);
}

.article-strip-card:hover .article-title-text {
  color: var(--primary-gold);
}

.article-excerpt-text {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* H5 常见问题 (FAQ) 动态并排区 */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 12px;
  padding: 24px;
  transition: all var(--transition-speed);
}

.faq-item:hover {
  border-color: rgba(255, 215, 0, 0.25);
  background: var(--bg-card-hover);
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-question::before {
  content: 'Q:';
  color: var(--secondary-gold);
  font-weight: 800;
}

.faq-answer {
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* H6 所有设备都将受到保护的文案 */
.protection-section {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(20, 17, 36, 0.5) 100%);
  padding: 80px 0;
  border-top: 1px solid rgba(255, 215, 0, 0.05);
}

.protection-h6 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.protection-desc {
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
  font-size: 1rem;
}

.device-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.device-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-gray);
  transition: all var(--transition-speed);
}

.device-item svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.05));
  transition: all var(--transition-speed);
}

.device-item:hover {
  color: var(--primary-gold);
}

.device-item:hover svg {
  transform: translateY(-5px);
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

.device-name {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Footer & PBN Links (🔧 核心任务 2) */
footer {
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  padding: 40px 0;
  text-align: center;
  background: var(--bg-dark);
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-logo img {
  width: 30px;
  height: 30px;
}

.footer-logo span {
  font-weight: bold;
  letter-spacing: 1px;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-gray);
  margin-bottom: 15px;
}

/* PBN Links style: low-key, small, styled nicely */
.pbn-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.75rem;
}

.pbn-links a {
  color: rgba(176, 174, 194, 0.55);
  text-decoration: none;
  transition: color var(--transition-speed);
  border-bottom: 1px dotted rgba(176, 174, 194, 0.3);
  padding-bottom: 2px;
}

.pbn-links a:hover {
  color: var(--primary-gold);
  border-bottom-color: var(--primary-gold);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .hero-h1 {
    font-size: 2.5rem;
  }
  
  .pricing-container {
    padding-bottom: 25px;
  }
  
  .pricing-card {
    flex: 0 0 85%;
    min-width: 270px;
  }
  
  .device-icons {
    gap: 25px;
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: 2rem;
  }
  
  .logo-title {
    font-size: 1.2rem;
  }
  
  .online-counter-wrapper {
    padding: 4px 10px;
    font-size: 0.75rem;
  }
  
  .btn-primary {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

/* Article Page Specifics */
.article-page-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px 30px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10;
}

.article-header {
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  padding-bottom: 25px;
  margin-bottom: 30px;
}

.article-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
}

.article-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-gray);
  font-size: 0.85rem;
  margin-top: 15px;
}

.article-body-content {
  line-height: 1.8;
  font-size: 1.05rem;
  color: #e0dee9;
}

.article-body-content h2 {
  font-size: 1.5rem;
  color: var(--primary-gold);
  margin: 40px 0 15px;
  border-left: 4px solid var(--primary-gold);
  padding-left: 12px;
}

.article-body-content h3 {
  font-size: 1.25rem;
  color: var(--accent-gold);
  margin: 30px 0 12px;
}

.article-body-content p {
  margin-bottom: 20px;
  text-align: justify;
}

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

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

.article-body-content strong {
  color: var(--accent-gold);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-speed);
}

.btn-back:hover {
  color: var(--primary-gold);
}

.article-footer-cta {
  background: rgba(255, 215, 0, 0.04);
  border: 1px dashed rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  margin-top: 40px;
}

.article-footer-cta h3 {
  margin-bottom: 12px;
  color: var(--primary-gold);
}

.article-footer-cta p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.internal-links-box {
  margin-top: 50px;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  padding-top: 30px;
}

.internal-links-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary-gold);
  margin-bottom: 15px;
}

.internal-links-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  padding-left: 0 !important;
}

.internal-links-list li {
  margin-bottom: 0 !important;
}

.internal-links-list a {
  font-size: 0.9rem;
  color: var(--text-gray);
  text-decoration: none;
  transition: color var(--transition-speed);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.internal-links-list a:hover {
  color: var(--primary-gold);
}

@media (max-width: 600px) {
  .article-page-container {
    padding: 25px 15px;
    margin: 20px auto;
  }
  
  .article-header h1 {
    font-size: 1.7rem;
  }
  
  .internal-links-list {
    grid-template-columns: 1fr;
  }
}

