/* ==========================================================================
   肥猫云 (fmyjc.homes) - Studio Ghibli Totoro Anime Theme CSS
   ========================================================================== */

:root {
  --bg-dark: #0a0d18;
  --bg-card: rgba(20, 26, 45, 0.72);
  --bg-card-hover: rgba(30, 40, 68, 0.88);
  --border-color: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(147, 197, 253, 0.4);
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --accent-cyan: #38bdf8;
  --accent-purple: #c084fc;
  --accent-gold: #fbbf24;
  --accent-green: #34d399;
  
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
* {
  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;
  /* Dreamy Totoro Ghibli Background Image Overlay */
  background-image: 
    linear-gradient(180deg, rgba(10, 13, 24, 0.75) 0%, rgba(10, 13, 24, 0.85) 50%, rgba(6, 8, 14, 0.95) 100%),
    url('totoro_bg.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

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

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

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 13, 24, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  transition: var(--transition-normal);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
}

.logo:hover {
  transform: scale(1.05) rotate(-2deg);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
  animation: floatBounce 3s ease-in-out infinite;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transition: var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.7);
}

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

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

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6);
}

/* Sections Base */
.section {
  padding: 100px 0 60px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px auto;
}

.tag-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Hero Section with Totoro Mascot Illustration */
.hero-section {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

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

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero-content h1 span.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 60%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

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

.hero-stats {
  display: flex;
  gap: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

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

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Totoro Mascot Hero Banner Area */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.totoro-mascot-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
}

.totoro-mascot-img {
  width: 100%;
  max-width: 340px;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(56, 189, 248, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-normal);
  animation: floatMascot 4s ease-in-out infinite;
}

.totoro-mascot-img:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 25px 60px rgba(192, 132, 252, 0.5);
}

@keyframes floatMascot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.totoro-floating-badge {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--accent-cyan);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-cyan);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.dashboard-card {
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--primary), var(--accent-purple));
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 10px #34d399;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.status-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.ping-badge {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.speed-meter {
  text-align: center;
  padding: 16px 0;
}

.speed-number {
  font-size: 3.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.speed-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.node-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.node-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

.node-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.node-latency {
  color: #34d399;
  font-weight: 600;
}

/* Features Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(192, 132, 252, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--accent-cyan);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Streaming & AI Cards */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition-fast);
  backdrop-filter: blur(12px);
}

.media-card:hover {
  border-color: var(--accent-cyan);
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.25);
}

.media-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.media-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.media-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
  position: relative;
  backdrop-filter: blur(16px);
}

.price-card.popular {
  border: 2px solid var(--accent-cyan);
  background: rgba(30, 40, 70, 0.85);
  box-shadow: 0 20px 50px rgba(56, 189, 248, 0.35);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent-cyan), var(--primary));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.price-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 16px;
}

.price-amount span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-features {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.price-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-features li::before {
  content: '🍃';
  font-size: 0.9rem;
}

/* 30 SEO Articles Grid Section */
.seo-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
}

.article-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(192, 132, 252, 0.25);
}

.article-tag {
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.article-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-snippet {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.article-link {
  color: var(--accent-cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-link:hover {
  color: #ffffff;
}

/* FAQ Section */
.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-md);
  overflow: hidden;
  transition: var(--transition-fast);
  backdrop-filter: blur(12px);
}

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

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent-cyan);
  transition: var(--transition-fast);
}

.faq-item.active .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px 24px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* Testimonials / Reviews */
.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;
  backdrop-filter: blur(12px);
}

.review-stars {
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-style: italic;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Right Floating Navigation Arrows */
.floating-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(10, 13, 24, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glow);
  padding: 12px 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  align-items: center;
}

.nav-arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.nav-arrow-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 15px var(--primary);
}

.nav-arrow-btn:active {
  transform: scale(0.95);
}

.nav-counter {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin: 4px 0;
  user-select: none;
}

/* Footer Section */
.footer {
  background: #060812;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px 0;
  margin-top: 80px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
  list-style: none;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--accent-cyan);
}

/* PBN Friend links footer line */
.footer-pbn {
  text-align: center;
  padding: 24px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
}

.pbn-title {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.pbn-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.pbn-links a {
  color: var(--accent-cyan);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.pbn-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.copyright {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Mobile Media Queries (@media) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .features-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
  .seo-articles-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 12px 0;
  }
  .nav-links {
    display: none;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .pricing-grid,
  .seo-articles-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }
  .floating-nav {
    right: 10px;
    padding: 8px 4px;
  }
  .nav-arrow-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}
