/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;800&display=swap');

:root {
  --primary-color: #ff9a9e; /* Cotton candy pink */
  --primary-hover: #fbc2eb;
  --secondary-color: #8fd3f4; /* Sky blue */
  --text-color: #fcfcfc; /* Cream white */
  --text-light: #d1d5db;
  --bg-color: #0b0f19; /* Deep purple-blue */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.15);
  --max-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
  font-family: 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif; 
  line-height: 1.6; 
  color: var(--text-color); 
  background-color: var(--bg-color); 
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 2.5rem; color: #fff; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }

/* Global Button Style */
.cta-btn { 
  display: inline-block; 
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); 
  color: #fff; 
  padding: 14px 35px; 
  border-radius: 50px; 
  font-size: 1.1rem; 
  font-weight: 800; 
  transition: transform 0.3s, box-shadow 0.3s; 
  text-align: center; 
  border: none;
  box-shadow: 0 8px 20px rgba(255, 154, 158, 0.4);
}
.cta-btn:hover { 
  transform: translateY(-3px) scale(1.02); 
  box-shadow: 0 12px 25px rgba(143, 211, 244, 0.5); 
}

/* Background Blobs (Glassmorphism + Clouds) */
.bg-blobs { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.4; animation: floatBlob 20s infinite alternate ease-in-out; }
.blob-1 { width: 55vw; height: 55vw; background: radial-gradient(circle, #2a0845, #6441A5); top: -20%; left: -10%; }
.blob-2 { width: 45vw; height: 45vw; background: radial-gradient(circle, #ff9a9e, #fbc2eb); bottom: -15%; right: -10%; animation-delay: -5s; opacity: 0.35;}
.blob-3 { width: 35vw; height: 35vw; background: radial-gradient(circle, #8fd3f4, #84fab0); top: 35%; left: 45%; animation-delay: -10s; opacity: 0.25;}
@keyframes floatBlob { 
  0% { transform: translate(0, 0) scale(1) rotate(0deg); } 
  100% { transform: translate(60px, 80px) scale(1.15) rotate(15deg); } 
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 35px; /* Extremely soft corners like clouds */
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

/* Header */
header { 
  padding: 15px 0; 
  position: sticky; top: 0; z-index: 100; 
  background: rgba(11, 15, 25, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 800; background: linear-gradient(to right, #ff9a9e, #8fd3f4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; flex-shrink: 0;}
.main-nav { display: flex; gap: 30px; align-items: center; }
.main-nav a { font-size: 1.05rem; color: var(--text-color); font-weight: 600; transition: color 0.3s; }
.main-nav a:hover { color: var(--primary-color); text-shadow: 0 0 10px rgba(255, 154, 158, 0.6); }
.header-btn { padding: 10px 25px !important; font-size: 1rem !important; flex-shrink: 0;}

/* Hero Section */
.hero { padding: 80px 20px; position: relative; z-index: 10; min-height: 80vh; display: flex; align-items: center;}
.hero-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 40px; width: 100%;}
.hero-text { flex: 1.2; max-width: 650px; text-align: left; }
.hero h1 { font-size: 3.5rem; margin-bottom: 25px; line-height: 1.25; font-weight: 800; background: linear-gradient(135deg, #fff, #fbc2eb); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.25rem; color: var(--text-light); margin-bottom: 40px; line-height: 1.8; }
.hero-visual { flex: 1; max-width: 550px; display: flex; justify-content: center; }
.floating-cloud { animation: floatCloud 5s ease-in-out infinite; filter: drop-shadow(0 25px 35px rgba(255, 154, 158, 0.25)); }
@keyframes floatCloud { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-25px) scale(1.03); } }

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

/* Sections */
section { padding: 80px 0; position: relative; z-index: 10;}
.card { padding: 40px 30px; text-align: center; transition: transform 0.4s, box-shadow 0.4s; }
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4); border-color: rgba(255, 255, 255, 0.3);}
.card h3 { margin-bottom: 20px; font-size: 1.5rem; color: #fff; font-weight: 800;}
.card p { color: var(--text-light); line-height: 1.7; }

/* 3D Pricing Carousel */
.carousel-scene { width: 100%; height: 850px; perspective: 1500px; position: relative; display: flex; justify-content: center; align-items: center; margin-top: 20px; margin-bottom: 80px;}
.carousel-3d { width: 320px; height: 480px; position: relative; transform-style: preserve-3d; animation: spinCarousel 24s infinite linear; }
.carousel-item { position: absolute; width: 100%; height: 100%; left: 0; top: 0; padding: 45px 35px; text-align: center; }
.carousel-item:nth-child(1) { transform: rotateY(0deg) translateZ(380px); }
.carousel-item:nth-child(2) { transform: rotateY(120deg) translateZ(380px); }
.carousel-item:nth-child(3) { transform: rotateY(240deg) translateZ(380px); }
@keyframes spinCarousel { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
.carousel-3d:hover { animation-play-state: paused; }

.pricing-card h3 { font-size: 1.6rem; color: #fff; margin-bottom: 10px; font-weight: 800;}
.price { font-size: 3rem; font-weight: 800; color: #fff; margin: 25px 0; text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);}
.price span { font-size: 1.1rem; color: var(--text-light); font-weight: 400;}
.pricing-features { list-style: none; margin: 30px 0 40px; padding: 0; }
.pricing-features li { margin-bottom: 15px; color: var(--text-light); }
.popular-badge { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #ff9a9e, #fbc2eb); color: #fff; padding: 8px 24px; border-radius: 30px; font-size: 0.95rem; font-weight: 800; box-shadow: 0 5px 20px rgba(255, 154, 158, 0.5); white-space: nowrap;}

/* Reviews Marquee */
.marquee-wrapper { overflow: hidden; position: relative; width: 100vw; left: 50%; transform: translateX(-50%); padding: 30px 0; margin-top: 20px;}
.marquee-track { display: flex; gap: 40px; width: max-content; animation: scrollMarquee 25s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.review-card { width: 450px; padding: 35px; font-style: italic; white-space: normal; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.25); }
.review-author { margin-top: 25px; font-weight: 800; font-style: normal; text-align: right; color: var(--primary-color);}

/* FAQ */
.faq-list { max-width: 850px; margin: 0 auto; }
.faq-item { padding: 30px 35px; margin-bottom: 20px; transition: transform 0.3s; }
.faq-item:hover { transform: translateX(10px); border-color: rgba(255,255,255,0.3); }
.faq-item h4 { font-size: 1.25rem; margin-bottom: 12px; color: #fff; font-weight: 800;}
.faq-item p { color: var(--text-light); }

/* Footer */
footer { background: rgba(0, 0, 0, 0.2); border-top: 1px solid rgba(255,255,255,0.05); padding: 50px 0 30px; text-align: center; position: relative; z-index: 10;}
.footer-links { display: flex; justify-content: center; gap: 40px; margin-bottom: 25px; flex-wrap: wrap; }
.footer-links a { color: var(--text-light); transition: color 0.3s; font-weight: 600;}
.footer-links a:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5);}
.copyright { color: #666; font-size: 0.95rem; }

/* Sub pages specific */
.page-content { padding: 50px 40px; max-width: 900px; margin: 0 auto; border-radius: 35px; background: var(--glass-bg); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); }
.page-content h1 { background: linear-gradient(to right, #ff9a9e, #8fd3f4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.page-content h2 { margin: 40px 0 20px; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px;}
.page-content p, .page-content li { margin-bottom: 18px; color: var(--text-light); }
.page-content ul { margin-left: 25px; }

/* Mobile Adaption */
@media (max-width: 768px) {
  .hero-wrapper { flex-direction: column; text-align: center; gap: 20px;}
  .hero-text { text-align: center; }
  .hero h1 { font-size: 2.5rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  header .container { flex-direction: column; gap: 15px; }
  .main-nav { flex-wrap: wrap; justify-content: center; gap: 15px;}
  .cta-btn { width: 100%; padding: 15px; }
  .header-btn { width: auto !important; padding: 10px 30px !important; }
  .page-content { padding: 30px 20px; }
  
  /* Fallback for Carousel on Mobile */
  .carousel-scene { height: auto; display: block; perspective: none; margin-top: 20px;}
  .carousel-3d { width: 100%; height: auto; transform-style: flat; animation: none; display: flex; flex-direction: column; gap: 30px; }
  .carousel-item { position: relative; width: 100%; transform: none !important; left: auto; top: auto; height: auto;}
  
  .marquee-wrapper { width: 100%; }
  .review-card { width: 320px; }
}

/* Phase 2 A11y & Semantics Fixes */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 20px;
    z-index: 9999;
    transition: top 0.2s;
    font-weight: bold;
    border-radius: 0 0 10px 0;
}
.skip-link:focus { top: 0; }

*:focus-visible {
    outline: 3px solid var(--primary-color) !important;
    outline-offset: 2px !important;
}

section[id], main[id] {
    scroll-margin-top: 100px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* 语义化表格样式 (替代不合规的3D木马) */
.pricing-table-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}
.pricing-table {
    width: 100%;
    min-width: 800px;
    border-collapse: separate;
    border-spacing: 12px;
    margin: 0 auto;
}
.pricing-table caption {
    caption-side: top;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}
.pricing-table th {
    background: rgba(255,154,158,0.15);
    color: #fff;
    font-size: 1.25rem;
    padding: 25px;
    border-radius: 20px 20px 0 0;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}
.pricing-table td {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 22px;
    text-align: center;
    color: var(--text-color);
    border-radius: 8px;
}
.pricing-table tr td:first-child { 
    text-align: left; 
    font-weight: bold; 
    color: var(--text-light);
}

/* FAQ details 原生支持 */
details.faq-item {
    cursor: pointer;
}
details.faq-item summary {
    font-size: 1.15rem;
    color: #fff;
    font-weight: bold;
    outline: none;
    margin-bottom: 10px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item p { margin-top: 10px; }
