/* ----------------------------------------------------
   KTM Cloud (ktmcloud.sbs) Design System & Stylesheet
   ---------------------------------------------------- */

:root {
  --bg-dark: #060913;
  --bg-card: rgba(13, 20, 36, 0.82);
  --bg-card-hover: rgba(24, 34, 56, 0.9);
  --border-color: rgba(56, 189, 248, 0.28);
  --border-glow: rgba(56, 189, 248, 0.6);

  --primary: #38bdf8;
  --primary-gradient: linear-gradient(135deg, #06b6d4 0%, #38bdf8 50%, #8b5cf6 100%);
  --cloud-glow: 0 0 35px rgba(56, 189, 248, 0.4);
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;

  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.35);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Mouse Trail Canvas */
#cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

/* ----------------------------------------------------
   ULTRA CRISP HIGH DEFINITION CLOUD BACKGROUND SYSTEM
   ---------------------------------------------------- */
.cloud-bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, #0b1528 0%, #060913 70%);
}

/* Crisp HD Vector Cloud Shapes */
.hd-cloud {
  position: absolute;
  filter: drop-shadow(0 15px 30px rgba(56, 189, 248, 0.25));
  opacity: 0.85;
  transition: transform 0.2s ease-out;
}

.hd-cloud-1 {
  top: 4%;
  left: -5%;
  width: 550px;
  animation: floatCloudDrift 35s ease-in-out infinite alternate;
}

.hd-cloud-2 {
  top: 25%;
  right: -6%;
  width: 650px;
  opacity: 0.75;
  animation: floatCloudDrift 45s ease-in-out infinite alternate-reverse;
}

.hd-cloud-3 {
  bottom: 8%;
  left: 10%;
  width: 700px;
  opacity: 0.8;
  animation: floatCloudDrift 50s ease-in-out infinite alternate;
}

.hd-cloud-4 {
  top: 60%;
  right: 15%;
  width: 500px;
  opacity: 0.65;
  animation: floatCloudDrift 40s ease-in-out infinite alternate-reverse;
}

/* Animated Horizon Waves */
.cloud-wave-layer {
  position: absolute;
  width: 200%;
  height: 300px;
  bottom: 0;
  left: 0;
  background-repeat: repeat-x;
  opacity: 0.75;
}

.cloud-wave-1 {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%231e293b" fill-opacity="0.8" d="M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,138.7C672,128,768,160,864,186.7C960,213,1056,235,1152,213.3C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  animation: waveMotion 25s linear infinite;
}

.cloud-wave-2 {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2338bdf8" fill-opacity="0.25" d="M0,224L60,213.3C120,203,240,181,360,186.7C480,192,600,224,720,224C840,224,960,192,1080,176C1200,160,1320,160,1380,160L1440,160L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z"></path></svg>');
  animation: waveMotion 40s linear infinite reverse;
  bottom: 20px;
}

@keyframes floatCloudDrift {
  0% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-25px) translateX(35px); }
  100% { transform: translateY(15px) translateX(-20px); }
}

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

/* Layout Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 10px 30px -5px rgba(56, 189, 248, 0.5);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -5px rgba(56, 189, 248, 0.7);
}

.btn-outline {
  background: rgba(13, 20, 36, 0.75);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  backdrop-filter: blur(16px);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary);
}

/* Header Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  transition: var(--transition);
  backdrop-filter: blur(24px);
  background: rgba(6, 9, 19, 0.82);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--text-main);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.logo-icon svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hero Section */
.hero {
  padding-top: 180px;
  padding-bottom: 110px;
  text-align: center;
  position: relative;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto 44px auto;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.stat-item h4 {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 800;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.15rem;
}

/* Horizontal Pricing Grid Section (一排价格) */
.pricing-section {
  padding: 100px 0;
  position: relative;
}

.pricing-row {
  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-lg);
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
  backdrop-filter: blur(20px);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.pricing-card.featured {
  border-color: var(--primary);
  background: rgba(18, 28, 50, 0.9);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.3);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

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

.plan-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  min-height: 44px;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 24px;
}

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

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

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

.plan-features li svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-green);
  flex-shrink: 0;
}

/* Features Grid */
.features-section {
  padding: 100px 0;
}

.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: 38px 30px;
  transition: var(--transition);
  backdrop-filter: blur(20px);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 15px 35px -10px rgba(56, 189, 248, 0.3);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--primary);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Articles SEO Section */
.articles-section {
  padding: 100px 0;
  background: rgba(6, 9, 19, 0.6);
}

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

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

.article-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.article-header {
  padding: 26px 26px 12px 26px;
}

.article-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.article-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 12px;
}

.article-snippet {
  padding: 0 26px 26px 26px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  flex-grow: 1;
}

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

/* Article Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 9, 19, 0.88);
  backdrop-filter: blur(16px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #0d1424;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 44px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.article-full-body {
  font-size: 1.08rem;
  line-height: 1.9;
  color: #cbd5e1;
}

.article-full-body h2 {
  font-size: 1.65rem;
  color: var(--text-main);
  margin: 30px 0 16px 0;
}

.article-full-body h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin: 22px 0 12px 0;
}

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

.article-full-body ul {
  margin: 0 0 24px 24px;
}

.article-full-body a {
  color: var(--primary);
  text-decoration: underline;
}

/* User Reviews Section */
.reviews-section {
  padding: 100px 0;
}

.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-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
}

.stars {
  color: var(--accent-amber);
  margin-bottom: 18px;
  font-size: 1.15rem;
}

.review-text {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 26px;
  font-style: italic;
}

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

.user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
}

.user-info h5 {
  font-size: 1.05rem;
  font-weight: 700;
}

.user-info p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* FAQ Accordion Section */
.faq-section {
  padding: 100px 0;
  background: rgba(6, 9, 19, 0.7);
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 26px;
  height: 26px;
  transition: transform 0.3s ease;
  fill: var(--primary);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 30px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.85;
}

.faq-item.active .faq-answer {
  padding-bottom: 26px;
}

/* Footer & PBN Link Hub */
footer {
  background: #03050a;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  padding: 70px 0 44px 0;
  position: relative;
  z-index: 10;
  text-align: center;
}

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

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

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

/* PBN Keyword Links Area (小字号 低调权重输血管道) */
.pbn-link-hub {
  max-width: 1050px;
  margin: 32px auto 24px auto;
  padding: 22px;
  background: rgba(13, 20, 36, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: var(--radius-md);
  text-align: center;
}

.pbn-title {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

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

.pbn-links a {
  color: var(--text-dim);
  font-size: 0.8rem;
  text-decoration: none;
  transition: var(--transition);
  opacity: 0.8;
}

.pbn-links a:hover {
  color: var(--primary);
  opacity: 1;
}

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

/* Responsive Breakdown */
@media (max-width: 1200px) {
  .pricing-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .features-grid, .articles-grid, .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .pricing-row {
    grid-template-columns: 1fr;
  }
  .features-grid, .articles-grid, .reviews-grid {
    grid-template-columns: 1fr;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
}
