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

:root {
  --bg-dark: #060b0f;
  --bg-card: rgba(10, 20, 30, 0.65);
  --bg-card-hover: rgba(15, 30, 45, 0.85);
  --primary-cyan: #00f2fe;
  --primary-blue: #4facfe;
  --text-light: #e6f7ff;
  --text-muted: #7fa1b3;
  --accent-green: #00ffaa;
  --border-cyan: rgba(0, 242, 254, 0.25);
  --border-cyan-glow: rgba(0, 242, 254, 0.7);
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(6, 11, 15, 0.75) 0%, rgba(6, 11, 15, 0.95) 100%),
    url('tea_tech_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-light);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* Background canvas and grid */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

#mouse-trail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
}

.tech-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 242, 254, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 254, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

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

/* Custom Scrollbar for the page */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 254, 0.6);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation / Header */
header {
  border-bottom: 1px solid var(--border-cyan);
  background: rgba(6, 11, 15, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

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

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
}

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

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 36px;
  }
}

.hero-description {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

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

@media (max-width: 992px) {
  .hero-cta {
    justify-content: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
  color: #000;
  border: none;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.7);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-cyan);
  border: 1px solid var(--primary-cyan);
  box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.1);
}

.btn-secondary:hover {
  background: rgba(0, 242, 254, 0.1);
  box-shadow: inset 0 0 15px rgba(0, 242, 254, 0.2), 0 0 15px rgba(0, 242, 254, 0.3);
  transform: translateY(-2px);
}

/* H1 Right: Global Real-Time Registrations Counter */
.counter-box {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 242, 254, 0.05);
  position: relative;
  overflow: hidden;
}

.counter-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
  animation: scanning 3s linear infinite;
}

@keyframes scanning {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.counter-title {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.counter-title .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.counter-number {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 700;
  color: var(--primary-cyan);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
  letter-spacing: 1px;
}

/* Sections General */
section {
  padding: 60px 0;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-left: 4px solid var(--primary-cyan);
  padding-left: 16px;
}

.section-title h2, .section-title h3, .section-title h4, .section-title h5, .section-title h6 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* H2: User Reviews & Node Speed Test */
.h2-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 992px) {
  .h2-layout {
    grid-template-columns: 1fr;
  }
}

/* Reviews Scroll */
.reviews-container {
  height: 380px;
  overflow-y: hidden;
  position: relative;
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  background: var(--bg-card);
  padding: 20px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.reviews-scroll {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: scroll-up 25s linear infinite;
}

.reviews-container:hover .reviews-scroll {
  animation-play-state: paused;
}

@keyframes scroll-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.review-card {
  background: rgba(25, 40, 55, 0.4);
  border: 1px solid rgba(0, 242, 254, 0.1);
  border-radius: 8px;
  padding: 16px;
  transition: var(--transition);
}

.review-card:hover {
  border-color: var(--primary-cyan);
  background: rgba(25, 40, 55, 0.6);
  transform: translateX(5px);
}

.review-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.reviewer-name {
  font-weight: 600;
  color: var(--primary-cyan);
}

.reviewer-rating {
  color: #ffd700;
}

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

/* Node Speed Test */
.speed-test-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.speed-test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 242, 254, 0.1);
  padding-bottom: 12px;
}

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

.speed-test-status {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--accent-green);
  background: rgba(0, 255, 170, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.speed-nodes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.speed-node-item {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  align-items: center;
  gap: 15px;
}

.node-name {
  font-size: 14px;
  font-weight: 600;
}

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

.node-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan));
  width: 0%;
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.node-ping {
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
  color: var(--accent-green);
}

.node-ping.high-ping {
  color: #ff4a4a;
}

/* H3: Package Cards Slider (Swipeable, Parallel Scroll) */
.packages-wrapper {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
}

.packages-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 4px;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.packages-slider:active {
  cursor: grabbing;
}

.packages-slider::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.package-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.package-card.recommended {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.package-card.recommended::before {
  content: 'HOT';
  position: absolute;
  top: 15px;
  right: -30px;
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 30px;
  transform: rotate(45deg);
  letter-spacing: 1px;
}

.package-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary-cyan);
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.25);
  background: var(--bg-card-hover);
}

.package-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.package-price {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-cyan);
  margin-bottom: 20px;
}

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

.package-features {
  list-style: none;
  text-align: left;
  margin-bottom: 30px;
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.package-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.package-features li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: bold;
}

.package-cta {
  width: 100%;
}

/* H4: Articles List Scroll-Down Feed */
.articles-feed-box {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  padding: 24px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  height: 480px;
}

.articles-feed-scroll {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: scroll-articles 45s linear infinite;
}

.articles-feed-box:hover .articles-feed-scroll {
  animation-play-state: paused;
}

@keyframes scroll-articles {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.article-feed-item {
  background: rgba(15, 28, 40, 0.5);
  border: 1px solid rgba(0, 242, 254, 0.08);
  border-radius: 8px;
  padding: 20px;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-feed-item:hover {
  border-color: var(--primary-cyan);
  background: rgba(15, 28, 40, 0.8);
  transform: scale(1.01);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.1);
}

.article-feed-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-cyan);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-feed-title::before {
  content: '>';
  font-family: var(--font-mono);
  color: var(--accent-green);
}

.article-feed-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* H5: FAQ 折叠面板 & 设备保护 */
.h5-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .h5-layout {
    grid-template-columns: 1fr;
  }
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.faq-question {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: rgba(10, 20, 30, 0.4);
}

.faq-question:hover {
  background: rgba(0, 242, 254, 0.05);
}

.faq-icon {
  font-size: 18px;
  color: var(--primary-cyan);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 14px;
  border-top: 1px solid transparent;
}

.faq-item.active {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.faq-item.active .faq-question {
  color: var(--primary-cyan);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 18px 24px;
  border-top: 1px solid rgba(0, 242, 254, 0.1);
}

/* Device Protection Panel */
.device-protection-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.device-protection-panel h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-cyan);
}

.device-protection-panel p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.device-icons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 480px) {
  .device-icons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.device-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 242, 254, 0.05);
  border-radius: 8px;
  padding: 16px 10px;
  transition: var(--transition);
}

.device-item:hover {
  background: rgba(0, 242, 254, 0.05);
  border-color: var(--primary-cyan);
  transform: translateY(-3px);
}

.device-svg {
  width: 32px;
  height: 32px;
  fill: var(--primary-cyan);
  filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.5));
}

.device-name {
  font-size: 12px;
  font-weight: 600;
}

/* H6: Service Unlocking Grid */
.unlock-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

@media (max-width: 1200px) {
  .unlock-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .unlock-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.unlock-item {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.unlock-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary-cyan);
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.15);
  background: var(--bg-card-hover);
}

.unlock-logo {
  font-size: 32px;
  filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.3));
}

.unlock-name {
  font-weight: 700;
  font-size: 16px;
}

.unlock-status {
  font-size: 12px;
  color: var(--accent-green);
  font-family: var(--font-mono);
  background: rgba(0, 255, 170, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Single Article Layout */
.article-header {
  padding: 60px 0 30px;
  border-bottom: 1px solid var(--border-cyan);
  margin-bottom: 40px;
}

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

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
}

.article-body p {
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-cyan);
  margin: 40px 0 20px;
  border-left: 3px solid var(--primary-cyan);
  padding-left: 12px;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-blue);
  margin: 30px 0 15px;
}

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

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

.article-body a {
  color: var(--primary-cyan);
  text-decoration: none;
  border-bottom: 1px dotted var(--primary-cyan);
  transition: var(--transition);
}

.article-body a:hover {
  color: var(--primary-blue);
  border-bottom-style: solid;
}

.article-body strong {
  color: #fff;
  font-weight: 600;
}

.internal-jump-box {
  background: rgba(0, 242, 254, 0.03);
  border: 1px solid rgba(0, 242, 254, 0.1);
  border-radius: 8px;
  padding: 20px;
  margin: 40px 0;
}

.internal-jump-title {
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-cyan);
  font-size: 15px;
}

.internal-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 576px) {
  .internal-links {
    grid-template-columns: 1fr;
  }
}

.internal-links a {
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: none;
}

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

/* Footer & PBN Links (Core Task 2) */
footer {
  border-top: 1px solid var(--border-cyan);
  background: rgba(5, 10, 15, 0.9);
  padding: 40px 0;
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Low-profile, beautifully blended PBN links */
.pbn-links-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 242, 254, 0.05);
  padding-top: 20px;
  margin-top: 10px;
}

.pbn-links-area a {
  color: rgba(127, 161, 179, 0.5); /* low-profile blended color */
  text-decoration: none;
  transition: var(--transition);
  font-weight: 400;
}

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

.pbn-divider {
  color: rgba(127, 161, 179, 0.2);
}
