:root {
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.2);
    --secondary: #6366f1;
    --accent: #10b981;
    --bg-dark: #0f172a;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-dark: rgba(30, 41, 59, 0.7);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: rgba(226, 232, 240, 0.8);
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: #f8fafc;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 优化触摸体验 */
button,
a,
.nav-link,
.tab-btn,
.price-btn,
.btn-large,
.demo-connect-btn,
.sidebar-link {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* 防止长按选择文本 */
.mobile-menu-toggle,
.demo-connect-btn,
.price-btn,
.btn-large {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Elegant Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
    border-bottom: none;
    flex-direction: row;
    max-height: none;
    overflow: visible;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.nav-link.active {
    color: var(--primary);
    font-weight: 700;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-link.cta-btn {
    background: none;
    color: #2563eb !important;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    box-shadow: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    white-space: nowrap;
}

.nav-link.cta-btn::after {
    content: '→';
    font-size: 1.1em;
    transition: transform 0.25s ease;
    display: inline-block;
    margin-left: 2px;
    color: #2563eb;
}

.nav-link.cta-btn:hover {
    background: none;
    transform: translateY(-1px);
    box-shadow: none;
    color: #1d4ed8 !important;
}

.nav-link.cta-btn:hover::after {
    transform: translateX(4px);
    color: #1d4ed8;
}

.nav-link.cta-btn:active {
    transform: translateY(0);
    color: #1e40af !important;
}

.btn-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white !important;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-large:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* --- Hero Section --- */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.05), transparent);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    word-break: keep-all;
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb, #6366f1, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
}

/* Optimized Code Window */
.hero-visual {
    width: 100%;
    position: relative;
}

.hero-decoration {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

.code-window {
    background: #1e293b;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    max-width: 100%;
}

.code-window pre {
    margin: 0;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.code-window pre::-webkit-scrollbar {
    height: 6px;
}

.code-window pre::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.code-window pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* --- Statistics Panel --- */
.stats-strip {
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: left;
    gap: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(99, 102, 241, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.stat-val {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Pricing Table --- */
.pricing-section {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.price-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: var(--shadow-xl);
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.plan-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.plan-icon-basic {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4f46e5;
}

.plan-icon-pro {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.plan-icon-ultra {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.plan-icon-mega {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #7c3aed;
}

.price-card:hover .plan-icon {
    transform: scale(1.1) rotate(5deg);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    color: #10b981;
    flex-shrink: 0;
}

.cross-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(203, 213, 225, 0.3);
    border-radius: 50%;
    color: #94a3b8;
    flex-shrink: 0;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

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

.plan-limits {
    margin: 24px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.limit-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.plan-features {
    list-style: none;
    flex-grow: 1;
}

.plan-features li {
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check { color: var(--accent); font-weight: bold; }
.cross { color: #cbd5e1; }

.price-btn {
    margin-top: 30px;
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
}

.price-btn.secondary { background: #eff6ff; color: var(--primary); }
.price-btn.primary { background: var(--primary); color: white; }

/* --- WebSocket Demo Console --- */
.console-section {
    padding: 100px 0;
    background: var(--bg-dark);
    color: white;
}

.console-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: #1e293b;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.demo-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.demo-input-panel {
    background: #334155;
    padding: 24px;
    border-radius: 16px;
}

.demo-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.demo-label svg {
    opacity: 0.7;
}

.demo-input {
    width: 100%;
    background: #0f172a;
    border: 1px solid #475569;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    transition: all 0.2s ease;
}

.demo-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.demo-connect-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.demo-connect-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.demo-connect-btn svg {
    transition: all 0.2s ease;
}

.demo-connect-btn:hover svg {
    transform: rotate(15deg);
}

.price-display-panel {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.price-icon-wrapper {
    position: absolute;
    top: 16px;
    right: 16px;
    opacity: 0.3;
    color: white;
}

.demo-symbol {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
}

.demo-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 10px 0;
}

.demo-change {
    font-weight: 700;
}

.demo-change.positive {
    color: #4ade80;
}

.demo-change.negative {
    color: #f87171;
}

.terminal {
    background: #0f172a;
    border-radius: 12px;
    height: 400px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 20px;
    overflow-y: auto;
    border: 1px solid #334155;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.terminal::-webkit-scrollbar {
    width: 6px;
}

.terminal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.terminal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }

.log-entry { margin-bottom: 8px; border-left: 2px solid transparent; padding-left: 10px; }
.log-system { color: #94a3b8; }
.log-success { color: #10b981; border-color: #10b981; }
.log-price { color: #facc15; }

/* --- Mobile Menu Toggle Button --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    position: relative;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s ease;
    border-radius: 2px;
    pointer-events: none;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* --- Responsive --- */
/* Desktop styles - ensure menu is visible */
@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        border-bottom: none !important;
        flex-direction: row !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .nav-link {
        width: auto !important;
        padding: 0 !important;
        text-align: left !important;
    }
}

@media (max-width: 1024px) {
    .hero-grid, .console-wrapper { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .endpoint-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Navigation Mobile */
    .mobile-menu-toggle {
        display: flex !important;
    }

    .nav-links {
        position: fixed !important;
        top: 80px !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(12px) !important;
        flex-direction: column !important;
        padding: 24px !important;
        gap: 16px !important;
        border-bottom: 1px solid var(--border) !important;
        transform: translateY(-100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
        z-index: 999 !important;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-link {
        width: 100%;
        padding: 14px 16px;
        border-radius: 8px;
        text-align: center;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-link:hover,
    .nav-link:active {
        background: rgba(37, 99, 235, 0.1);
    }

    .nav-link.cta-btn {
        width: 100%;
        justify-content: center;
        background: none;
        color: #2563eb !important;
        font-weight: 800;
        font-size: 0.95rem;
        box-shadow: none;
        padding: 16px 28px;
        border-radius: 10px;
        margin-left: 0;
        margin-top: 8px;
        white-space: nowrap;
    }

    .nav-link.cta-btn::after {
        content: '→';
        font-size: 1.1em;
        transition: transform 0.25s ease;
        margin-left: 2px;
        color: #2563eb;
    }

    .nav-link.cta-btn:hover,
    .nav-link.cta-btn:active {
        background: none;
        transform: translateY(-1px);
        box-shadow: none;
        color: #1d4ed8 !important;
    }

    .nav-link.cta-btn:hover::after {
        transform: translateX(4px);
        color: #1d4ed8;
    }

    /* Hero Section */
    .hero {
        padding: 120px 0 60px;
    }

    .hero-grid {
        gap: 32px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-desc {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .btn-large {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .code-window {
        padding: 16px;
        font-size: 0.7rem;
    }

    .code-window pre {
        font-size: 0.7rem;
        line-height: 1.5;
    }

    .hero-decoration {
        display: none;
    }

    /* Stats */
    .stats-strip {
        padding: 24px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .stat-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 14px 12px;
        gap: 8px;
        background: #f8fafc;
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    }

    .stat-icon-wrapper {
        display: none;
    }

    .stat-val {
        font-size: 1.75rem;
        line-height: 1.1;
    }

    .stat-label {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    /* Pricing */
    .pricing-section {
        padding: 60px 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .price-card.featured {
        transform: scale(1);
    }

    .price-card {
        padding: 28px 20px;
    }

    .plan-name {
        font-size: 1rem;
    }

    .plan-price {
        font-size: 2rem;
    }

    .plan-features li {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    /* Features */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 32px;
    }

    .features-section {
        padding: 60px 0;
    }

    .feature-item {
        display: grid;
        grid-template-columns: 44px 1fr;
        align-items: center;
        column-gap: 14px;
        row-gap: 10px;
        text-align: left;
        padding: 16px;
        background: white;
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    }

    .feature-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .feature-desc {
        font-size: 0.9rem;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        margin: 0;
        border-radius: 12px;
        box-shadow: none;
        background: #f8fafc;
    }

    .feature-item:hover .feature-icon {
        transform: none;
        background: #eef2ff;
        color: var(--primary);
        box-shadow: none;
    }

    /* Endpoint Grid */
    .docs-section {
        padding: 60px 0;
    }

    .endpoint-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .endpoint-card {
        padding: 20px 16px;
    }

    .endpoint-path {
        font-size: 0.8rem;
        word-break: break-all;
    }

    .endpoint-desc {
        font-size: 0.85rem;
        margin-top: 12px;
    }

    .card-icon {
        display: none;
    }

    /* Console Section */
    .console-section {
        padding: 60px 0;
    }

    .console-wrapper {
        padding: 20px;
        gap: 20px;
    }

    .demo-controls {
        gap: 16px;
    }

    .demo-input-panel,
    .price-display-panel {
        padding: 20px 16px;
    }

    .demo-label {
        font-size: 0.75rem;
    }

    .demo-input {
        font-size: 0.85rem;
        padding: 10px;
    }

    .demo-connect-btn {
        font-size: 0.9rem;
        padding: 14px;
        min-height: 48px;
    }

    .price-btn {
        min-height: 48px;
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .demo-symbol {
        font-size: 0.85rem;
    }

    .demo-price {
        font-size: 1.75rem;
    }

    .demo-change {
        font-size: 0.9rem;
    }

    .terminal {
        height: 280px;
        padding: 14px;
        font-size: 0.75rem;
    }

    .log-entry {
        font-size: 0.75rem;
        margin-bottom: 6px;
        word-break: break-word;
    }

    /* Footer */
    .site-footer {
        padding: 40px 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .footer-link {
        width: 100%;
        justify-content: center;
        padding: 10px 12px;
    }

    .footer-tagline {
        font-size: 0.85rem;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }

    /* Marquee */
    .marquee-item {
        padding: 0 20px;
        font-size: 0.9rem;
    }

    /* Headings */
    h2, .doc-section h2 {
        font-size: 1.75rem !important;
        line-height: 1.3;
        word-break: keep-all;
    }

    h3 {
        font-size: 1.25rem;
        word-break: keep-all;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Action Buttons */
    .hero-actions a,
    .price-btn,
    .docs-section a.price-btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* 防止意外缩放 */
    input,
    textarea,
    select {
        font-size: 16px !important;
    }

    /* 改进焦点样式 */
    *:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }

    /* 优化横向滚动条 */
    *::-webkit-scrollbar {
        height: 8px;
        width: 8px;
    }

    *::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 4px;
    }

    *::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }

    *::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 640px) {
    .hero-title { 
        font-size: 1.5rem; 
        line-height: 1.3;
    }
    
    .stats-grid { 
        grid-template-columns: 1fr; 
        gap: 12px; 
    }
    
    .stat-item {
        text-align: center;
    }
    
    .stat-val { 
        font-size: 1.5rem; 
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .hero-desc { 
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .btn-large { 
        padding: 12px 20px; 
        font-size: 0.85rem; 
    }

    .code-window {
        padding: 12px;
        font-size: 0.65rem;
    }

    .code-window pre {
        font-size: 0.65rem;
    }

    .plan-price {
        font-size: 1.75rem;
    }

    .plan-features li {
        font-size: 0.8rem;
    }

    .feature-title {
        font-size: 1rem;
    }

    .feature-desc {
        font-size: 0.85rem;
    }

    .demo-price {
        font-size: 1.5rem;
    }

    .terminal {
        height: 240px;
        font-size: 0.7rem;
    }

    .pricing-section h2,
    .features-section h2,
    .console-section h2,
    .docs-section h2 {
        font-size: 1.5rem !important;
    }
}

/* --- New: Scrolling Marquee --- */
.marquee-container {
    background: white;
    padding: 30px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 40px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.marquee-item img,
.marquee-item svg {
    flex-shrink: 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    object-fit: contain;
}

.marquee-item:hover {
    color: var(--primary);
}

.marquee-item:hover img,
.marquee-item:hover svg {
    opacity: 1;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- New: Documentation Grid --- */
.docs-section {
    padding: 100px 0;
    background: white;
}

.endpoint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.endpoint-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.endpoint-card:hover {
    background: white;
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--text-muted);
    opacity: 0.2;
    transition: all 0.3s ease;
    transform: scale(1.5);
}

.endpoint-card:hover .card-icon {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.2) rotate(5deg);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-right: 32px; /* Space for icon */
}

.method-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    margin-right: 10px;
}

.method-get { background: #dcfce7; color: #166534; }
.method-post { background: #dbeafe; color: #1e40af; }
.method-ws { background: #fdf2f8; color: #9d174d; }

.endpoint-path {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #334155;
}

.endpoint-desc {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- New: Core Advantages --- */
.features-section {
    padding: 100px 0;
    background: #f8fafc;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    color: var(--primary);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: translateY(-5px);
    background: var(--primary);
    color: white;
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.3);
}

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

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

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 32px;
    }

    .feature-item {
        display: grid;
        grid-template-columns: 48px 1fr;
        align-items: start;
        gap: 16px;
        text-align: left;
        padding: 16px;
        background: white;
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        margin: 0;
        border-radius: 12px;
        box-shadow: none;
        background: #f8fafc;
    }

    .feature-item:hover .feature-icon {
        transform: none;
        background: #eef2ff;
        color: var(--primary);
        box-shadow: none;
    }

    .feature-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .feature-desc {
        font-size: 0.9rem;
        line-height: 1.55;
        grid-column: 1 / -1;
    }
}

/* --- Footer --- */
.site-footer {
    padding: 60px 0;
    background: #0f172a;
    color: white;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    text-decoration: none;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-logo .logo-text {
    color: white;
    -webkit-text-fill-color: white;
}

.footer-tagline {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.footer-link svg {
    opacity: 0.7;
    transition: all 0.2s ease;
}

.footer-link:hover svg {
    opacity: 1;
    color: var(--primary);
}

.footer-copyright {
    color: #64748b;
    font-size: 0.85rem;
}

/* --- Asset Wall Section (Bento Grid) --- */
.asset-wall-section {
    padding: 100px 0;
    background: #ffffff;
}

.asset-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 240px);
    gap: 24px;
}

.asset-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

/* 确保所有资产卡片中的图标都没有边框 */
.asset-card img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.asset-card img svg,
.asset-card img svg * {
    border: none !important;
    outline: none !important;
}

.asset-card:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1);
    border-color: var(--primary);
}

.asset-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.asset-card.wide {
    grid-column: span 2;
}

.asset-category {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.asset-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.asset-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 80%;
}

/* Crypto Card Specifics */
.asset-card.crypto {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    border: none;
}

.asset-card.crypto .asset-desc {
    color: #94a3b8;
}

.card-bg-glow {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.asset-icons {
    position: absolute;
    bottom: 32px;
    right: 32px;
    display: flex;
    gap: 12px;
}

.floating-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: contain;
    animation: floating 3s ease-in-out infinite;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.floating-icon:nth-child(2) {
    animation-delay: 1s;
}

.floating-icon:nth-child(3) {
    animation-delay: 2s;
}

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

/* Stocks Card Specifics */
.stock-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.stock-logo-item {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.stock-logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Forex Card Specifics */
.forex-pairs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.forex-pair-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pair-flags {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.pair-flags img {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 8px;
    object-fit: contain;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    display: block !important;
    flex-shrink: 0;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent;
}

.pair {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
    width: fit-content;
}

/* Exchange Cloud */
.exchange-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.exchange-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    background: #eff6ff;
    padding: 6px 14px;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.exchange-item img {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.exchange-item img {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    object-fit: contain;
    border-radius: 8px;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    display: block;
    flex-shrink: 0;
    box-shadow: none !important;
}

.exchange-item img svg {
    border-radius: 8px;
}

.exchange-item img,
.exchange-item img * {
    border: none !important;
    outline: none !important;
}

.exchange-cloud span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    background: #eff6ff;
    padding: 6px 14px;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.asset-card.exchanges:hover .exchange-item {
    background: var(--primary);
    color: white;
}

.asset-card.exchanges:hover .exchange-cloud span {
    background: var(--primary);
    color: white;
}

/* Responsive Asset Wall */
@media (max-width: 1024px) {
    .asset-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .asset-card.large, .asset-card.wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .asset-wall-section {
        padding: 60px 0;
    }
    .asset-bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .asset-card {
        grid-column: span 1 !important;
        padding: 24px;
    }
    .asset-desc {
        max-width: 100%;
    }
}
