:root {
    --bg-color: #010a17;
    --card-bg: rgba(4, 18, 38, 0.7);
    --card-border: rgba(0, 240, 255, 0.2);
    --primary: #0066ff;
    --primary-hover: #004ecc;
    --accent: #00f0ff;
    --text-main: #e0f2fe;
    --text-muted: #7dd3fc;
    --glass-bg: rgba(1, 10, 23, 0.7);
    --glass-border: rgba(0, 240, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 102, 255, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.1), transparent 25%);
    background-attachment: fixed;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('marlin-bg.png') center/cover no-repeat;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: none; /* Mobile first hidden */
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2rem;
    }
    .nav-links a:hover {
        color: var(--accent);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    animation: fadeInUp 1s ease-out forwards;
    text-align: center;
}

@media (min-width: 992px) {
    .hero-content {
        text-align: left;
    }
    .hero-btns {
        justify-content: flex-start;
    }
}

.hero-visual {
    position: relative;
    height: 450px;
    display: none;
}

@media (min-width: 992px) {
    .hero-visual {
        display: block;
    }
}

.floating-card {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    white-space: nowrap;
}

.floating-card .icon {
    font-size: 2rem;
}

.floating-card .info strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.2;
}

.floating-card .info span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.card-1 {
    top: 5%;
    left: 5%;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    right: 5%;
    animation-delay: -2s;
}

.card-3 {
    bottom: 5%;
    left: 15%;
    animation-delay: -4s;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--primary), var(--accent));
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 4.5rem;
    }
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .hero p {
        font-size: 1.25rem;
    }
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 600px) {
    .hero-btns {
        flex-direction: row;
        justify-content: center;
    }
}

/* Sections Base */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: #fff;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

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

/* Features Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing */
.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
    transform: scale(1.02);
}

.pricing-card.popular::before {
    content: '最受欢迎';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 1.5rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: normal;
}

.pricing-features {
    text-align: left;
    margin: 2rem 0;
}

.pricing-features li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.pricing-features li::before {
    content: '✓';
    color: var(--accent);
    margin-right: 0.5rem;
    font-weight: bold;
}

/* FAQ */
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-muted);
    display: none;
}

/* Checkbox hack for FAQ to avoid JS */
.faq-toggle {
    display: none;
}

.faq-toggle:checked ~ .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.faq-toggle:checked ~ .faq-question .icon {
    transform: rotate(45deg);
}

.faq-question .icon {
    transition: var(--transition);
    font-size: 1.5rem;
    color: var(--accent);
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.875rem;
}

/* Blog Cards */
.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.blog-thumb {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.blog-thumb::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.8;
}

.thumb-1::before, .thumb-2::before, .thumb-3::before, .thumb-4::before, .thumb-5::before, .thumb-6::before { background: transparent; }

.blog-thumb span {
    z-index: 1;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(5px);
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-content h3 a {
    color: #fff;
}

.blog-content h3 a:hover {
    color: var(--accent);
}

.blog-content p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.875rem;
    align-self: flex-start;
}

.read-more:hover {
    text-decoration: underline;
}

/* Article Page specific */
.article-content {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    color: #fff;
    margin: 2rem 0 1rem;
}

.article-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.25; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float-up { 0% { transform: translateY(0) scale(1); opacity: 0; } 20% { opacity: 0.8; } 100% { transform: translateY(-1000px) scale(1.5); opacity: 0; } }

.bubbles-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; z-index: -1; }
.bubble-item { position: absolute; bottom: -50px; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(0, 240, 255, 0.2)); border-radius: 50%; box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5), 0 0 10px rgba(0, 240, 255, 0.4); border: 1px solid rgba(255,255,255,0.3); animation: float-up linear infinite; }
.b1 { left: 10%; width: 20px; height: 20px; animation-duration: 8s; animation-delay: 0s; }
.b2 { left: 30%; width: 35px; height: 35px; animation-duration: 12s; animation-delay: 2s; }
.b3 { left: 50%; width: 15px; height: 15px; animation-duration: 6s; animation-delay: 4s; }
.b4 { left: 70%; width: 40px; height: 40px; animation-duration: 10s; animation-delay: 1s; }
.b5 { left: 90%; width: 25px; height: 25px; animation-duration: 9s; animation-delay: 5s; }

/* Subpages Typography */
.page-header {
    padding: 8rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.page-header h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.content-section {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.content-section h2 {
    color: #fff;
    margin: 2rem 0 1rem;
}

.content-section p, .content-section ul {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.content-section ul {
    padding-left: 1.5rem;
    list-style: disc;
}

/* Testimonials */
.testimonial-card {
    padding: 2rem;
    font-style: italic;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--card-border);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
}

.author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    font-style: normal;
}

.author-info h4 {
    color: #fff;
    font-size: 1rem;
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.875rem;
}
