﻿/* style.css - Web3 / SaaS Chocolate Theme */
:root {
    --bg-dark: #231709; /* 深褐色的高级黑巧底色 */
    --primary-color: #D4AF37; /* 焦糖金 */
    --primary-hover: #b8972e;
    --accent-red: #8b0000; /* 丝绒红 */
    --text-main: #fcf1e3;
    --text-muted: #d4bda5;
    --bg-light: #2c1d11; /* 稍浅的巧克力色 */
    --bg-white: #382516; /* 卡片色 */
    --border-color: #4a331c;
    --shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 2px 5px rgba(255,255,255,0.1);
    --border-radius: 16px;
}

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

html {
    scroll-behavior: smooth;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
}

body {
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }

/* Gooey Background */
.bg-gooey-container {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    filter: url('#goo');
    overflow: hidden;
    background: var(--bg-dark);
}
.blob {
    position: absolute;
    background: #382212; /* Melted chocolate */
    border-radius: 50%;
    filter: blur(10px);
}
.blob-1 { width: 400px; height: 400px; top: -10%; left: -10%; animation: float 15s infinite alternate; }
.blob-2 { width: 500px; height: 500px; bottom: -20%; right: -10%; background: #2e1a0b; animation: float 20s infinite alternate-reverse; }
.blob-3 { width: 300px; height: 300px; top: 40%; left: 40%; background: #422816; animation: float 12s infinite alternate; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(150px, 150px) scale(1.2); }
}

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 100px 0; }
.bg-light { background-color: rgba(44, 29, 17, 0.6); backdrop-filter: blur(10px); }
.text-center { text-align: center; }

/* Navbar */
.navbar {
    position: sticky; top: 0;
    background-color: rgba(35, 23, 9, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    z-index: 100; padding: 15px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); letter-spacing: 1px; }
.nav-links a { margin: 0 15px; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover { color: var(--primary-color); }

/* Buttons - Q弹的流体反馈 */
.btn {
    display: inline-block; padding: 12px 28px;
    border-radius: 30px; font-weight: 700; text-align: center; cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), background-color 0.3s, box-shadow 0.3s;
    border: none; min-height: 48px; line-height: 24px;
}
.btn:active { transform: scale(0.9); }
.btn-primary { 
    background: linear-gradient(135deg, var(--primary-color), #FFDF73); 
    color: var(--bg-dark); 
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn-primary:hover { 
    transform: translateY(-3px) scale(1.05); 
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6); 
}
.btn-secondary { background-color: var(--accent-red); color: white; box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4); }
.btn-secondary:hover { background-color: #a50000; transform: translateY(-3px) scale(1.05); }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); background: transparent; }
.btn-outline:hover { background-color: var(--primary-color); color: var(--bg-dark); }
.btn-large { padding: 16px 36px; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; margin-top: 20px; }
.mt-20 { margin-top: 20px; }

/* Typography */
h1, h2, h3 { line-height: 1.2; margin-bottom: 20px; font-weight: 800; }
.hero-title { 
    font-size: 3.2rem; margin-bottom: 25px; 
    background: linear-gradient(45deg, #D4AF37, #FFF8D6, #D4AF37);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: shine 3s infinite; background-size: 200% auto;
}
@keyframes shine { to { background-position: 200% center; } }
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); margin: 0 auto 40px auto; }
.section-title { font-size: 2.5rem; margin-bottom: 50px; color: var(--primary-color); text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

/* Hero SVG & Dashboard */
.hero { position: relative; min-height: 80vh; display: flex; align-items: center; }

@media (min-width: 1200px) {
    .hero .container {
        padding-left: 240px; 
        padding-right: 240px;
    }
}

.hero-3d-svg {
    position: absolute; right: 2%; top: 10%; width: 350px; height: 350px;
    animation: floatingSVG 6s ease-in-out infinite; pointer-events: none; z-index: 1;
}
@keyframes floatingSVG { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } }

.thermometer-dashboard {
    position: absolute; left: 10px; top: 15%; width: 45px; height: 260px;
    background: rgba(0,0,0,0.6); border: 3px solid var(--primary-color);
    border-radius: 30px; overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8), 0 0 15px rgba(212,175,55,0.3); z-index: 1;
}
.thermo-liquid {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, var(--accent-red), var(--primary-color));
    transform-origin: bottom; animation: thermoRise 3s ease-out forwards;
}
@keyframes thermoRise { 0% { transform: scaleY(0.1); } 100% { transform: scaleY(0.9); } }

.thermo-text-wrapper {
    position: absolute; top: 15%; left: 65px; width: 160px; height: 260px;
    overflow: hidden; pointer-events: none; z-index: 1;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}
.thermo-text {
    display: flex; flex-direction: column; color: var(--primary-color);
    font-weight: bold; font-size: 1.1rem; text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    animation: scrollText 5s infinite linear;
}
.thermo-text span { height: 130px; display: flex; align-items: center; }
@keyframes scrollText { 0% { transform: translateY(0); } 100% { transform: translateY(-260px); } }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.flex-row { display: flex; align-items: center; gap: 40px; }
.flex-half { flex: 1; }

/* General Cards */
.card {
    background: rgba(56, 37, 22, 0.7); backdrop-filter: blur(10px);
    border-radius: var(--border-radius); padding: 40px 30px;
    box-shadow: var(--shadow); border: 1px solid var(--border-color);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card:hover { transform: translateY(-10px) scale(1.02); border-color: var(--primary-color); }
.icon { font-size: 3.5rem; margin-bottom: 20px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); }

/* Pricing Carousel (360 环形 3D) */
#pricing { perspective: 1500px; padding-bottom: 150px; overflow: visible; }
#pricing .grid-3 {
    display: flex !important; justify-content: center; align-items: center;
    transform-style: preserve-3d; animation: carouselSpin 20s infinite linear;
    width: 320px; margin: 0 auto; position: relative; height: 480px; gap: 0;
}
#pricing .grid-3:hover { animation-play-state: paused; }
@keyframes carouselSpin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }

/* 巧克力排块卡片设计 */
.pricing-card {
    position: absolute; width: 320px; height: 100%;
    background: linear-gradient(135deg, #4a2f1d, #2a1608) !important; /* Chocolate gradient */
    border-radius: 12px;
    box-shadow: inset 5px 5px 15px rgba(255,255,255,0.05), inset -5px -5px 15px rgba(0,0,0,0.8), 0 20px 40px rgba(0,0,0,0.6) !important;
    border: 2px solid #5a3a22 !important;
    padding: 30px; backface-visibility: hidden; transition: transform 0.5s;
    overflow: hidden;
}
.pricing-card:nth-child(1) { transform: rotateY(0deg) translateZ(380px); }
.pricing-card:nth-child(2) { transform: rotateY(120deg) translateZ(380px); }
.pricing-card:nth-child(3) { transform: rotateY(240deg) translateZ(380px); }

/* 包装纸被撕开的拟物动效 (Wrapper Peel) */
.pricing-card::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 35%;
    background: linear-gradient(135deg, #D4AF37, #FFF8D6, #997A00); /* Gold wrapper */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%);
    box-shadow: 0 10px 15px rgba(0,0,0,0.6);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: top; z-index: 1;
}
.pricing-card.popular::after {
    background: linear-gradient(135deg, var(--accent-red), #ff4d4d, #8b0000); /* Red wrapper */
}
.pricing-card:hover::after { transform: rotateX(110deg); }

.pricing-card h3, .pricing-card .price, .pricing-card ul, .pricing-card .btn, .pricing-card .popular-tag { 
    position: relative; z-index: 2; 
}
.pricing-card h3 { margin-top: 40px; color: var(--bg-dark); }
.pricing-card .price { font-size: 2.8rem; font-weight: 800; margin: 15px 0; color: var(--primary-color); text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.pricing-card .price span { font-size: 1rem; color: var(--text-muted); }
.pricing-features { list-style: none; margin-bottom: 30px; flex-grow: 1; text-align: left; }
.pricing-features li { margin-bottom: 12px; color: var(--text-main); font-weight: 500; }
.popular-tag {
    position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
    background: var(--bg-dark); color: var(--primary-color); padding: 6px 16px;
    border-radius: 20px; font-size: 0.875rem; font-weight: 800; z-index: 3; box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Media & AI Badges */
.image-placeholder { display: flex; justify-content: center; align-items: center; }
.grid-badge { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; width: 100%; }
.badge {
    background: rgba(56, 37, 22, 0.8); border: 1px solid var(--primary-color);
    padding: 20px; border-radius: var(--border-radius); text-align: center; font-weight: 700;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1); transition: all 0.3s;
}
.badge:hover { background: var(--primary-color); color: var(--bg-dark); transform: scale(1.05); }

/* Reviews Marquee (跑马灯评价) */
#reviews { overflow: hidden; position: relative; }
#reviews::before, #reviews::after {
    content: ''; position: absolute; top: 0; width: 150px; height: 100%; z-index: 2;
    pointer-events: none;
}
#reviews::before { left: 0; background: linear-gradient(to right, var(--bg-dark), transparent); }
#reviews::after { right: 0; background: linear-gradient(to left, var(--bg-dark), transparent); }
#reviews .grid-3 {
    display: flex; gap: 30px; width: max-content;
    animation: marquee 25s linear infinite;
}
#reviews .grid-3:hover { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(10%); } 100% { transform: translateX(-100%); } }
.review-card { width: 400px; flex-shrink: 0; }
.review-text { font-style: italic; color: var(--text-main); margin-bottom: 20px; font-size: 1.1rem; }
.reviewer { font-weight: 800; color: var(--primary-color); }

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: rgba(56, 37, 22, 0.7); backdrop-filter: blur(5px);
    border: 1px solid var(--border-color); border-radius: var(--border-radius);
    margin-bottom: 15px; overflow: hidden; transition: all 0.3s;
}
.faq-item:hover { border-color: var(--primary-color); }
.faq-item summary {
    padding: 25px; font-weight: 700; cursor: pointer; list-style: none; position: relative;
    user-select: none; color: var(--primary-color); font-size: 1.1rem;
}
.faq-item summary::after {
    content: '+'; position: absolute; right: 25px; top: 50%;
    transform: translateY(-50%); font-size: 1.8rem; transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--accent-red); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-content { padding: 0 25px 25px 25px; color: var(--text-muted); line-height: 1.8; animation: slideDown 0.3s ease-out; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Footer */
.footer {
    background-color: #150e05; color: var(--text-muted); padding: 80px 0 40px;
    text-align: center; border-top: 1px solid rgba(212, 175, 55, 0.2);
}
.footer-links { margin-bottom: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; }
.footer-links a { color: var(--text-main); font-weight: 600; font-size: 1.1rem; }
.footer-links a:hover { color: var(--primary-color); text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }
.footer-copy { color: #6b7280; font-size: 0.9rem; }

/* Responsive Adjustments */
@media (max-width: 1199px) {
    /* Hide decorative SVG/Dashboard on smaller screens to guarantee no overlap */
    .hero-3d-svg, .thermometer-dashboard, .thermo-text-wrapper { display: none !important; }
}

@media (max-width: 992px) {
    .features .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .flex-row { flex-direction: column; }
    
    #pricing .grid-3 { width: 280px; }
    .pricing-card { width: 280px; }
    .pricing-card:nth-child(1) { transform: rotateY(0deg) translateZ(320px); }
    .pricing-card:nth-child(2) { transform: rotateY(120deg) translateZ(320px); }
    .pricing-card:nth-child(3) { transform: rotateY(240deg) translateZ(320px); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .features .grid-3 { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .hero-actions { display: flex; flex-direction: column; gap: 15px; }
    .btn-large { width: 100%; }
    
    /* Disable 3D Carousel on mobile, stack normally */
    #pricing .grid-3 {
        animation: none !important; transform: none !important; 
        flex-direction: column; height: auto; gap: 40px; width: 100%; padding: 20px;
    }
    .pricing-card { position: relative; transform: none !important; width: 100%; height: auto; }
    
    /* Disable Marquee on mobile */
    #reviews .grid-3 { animation: none !important; flex-direction: column; width: 100%; gap: 30px; }
    .review-card { width: 100%; }
    #reviews::before, #reviews::after { display: none; }
}

/* --- Phase 2 Accessibility & SEO Fixes --- */
.skip-link {
    position: absolute; top: -40px; left: 0;
    background: var(--primary-color); color: var(--bg-dark);
    padding: 8px; z-index: 1000; transition: top 0.3s;
}
.skip-link:focus { top: 0; }

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

.btn, a, button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.nav-links a, .footer-copy a { min-height: auto; display: inline; } /* reset exceptions */

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

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}