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

:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --dark: #1A1A2E;
    --gray: #6B7280;
    --light: #F9FAFB;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: #fff;
}

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

/* Hero */
.hero {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, var(--light) 100%);
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,107,107,0.1);
    border: 1px solid rgba(255,107,107,0.2);
    border-radius: 50px;
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 24px;
    animation: badge-pulse 2s ease-in-out infinite;
    transition: all 0.3s;
}

.hero-badge:hover {
    background: rgba(255,107,107,0.15);
    border-color: rgba(255,107,107,0.3);
    transform: scale(1.05);
    animation: none;
}

@keyframes badge-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255,107,107,0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255,107,107,0);
    }
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,107,107,0.3);
}

.btn-primary:focus {
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,107,107,0.3), 0 0 0 3px rgba(255,107,107,0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: var(--dark);
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    border-color: var(--primary);
}

.btn-secondary:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
}

.btn-secondary:active {
    background: #f9fafb;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat span {
    font-size: 14px;
    color: var(--gray);
}

/* API Address Box Styles (Premium Design) */
.api-box-container {
    margin-top: 60px;
    animation: slide-up 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    animation-delay: 0.2s;
    position: relative;
    z-index: 10;
}

/* Background Glow Effect */
.api-box-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 120%;
    background: linear-gradient(90deg, rgba(255,107,107,0.15), rgba(78,205,196,0.15));
    filter: blur(60px);
    z-index: -1;
    border-radius: 100px;
    opacity: 0.8;
}

@keyframes slide-up {
    to { opacity: 1; transform: translateY(0); }
}

.api-address-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 10px 10px 10px 24px; /* Inner padding */
    max-width: 800px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 10px 15px -3px rgba(0, 0, 0, 0.03),
        0 20px 50px 0 rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255,255,255,0.5); /* Inner light border */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.api-address-box:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.03),
        0 30px 60px -5px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(255,255,255,0.8);
    border-color: rgba(255, 255, 255, 0.9);
}

.api-url-container {
    font-family: 'SF Mono', 'Fira Code', 'Menlo', monospace;
    font-size: 16px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0; /* No gap, text flows naturally */
    flex: 1;
    overflow: hidden;
    letter-spacing: -0.02em;
}

.api-base {
    white-space: nowrap;
    color: #64748b;
    opacity: 0.8;
}

.api-endpoint {
    color: var(--primary); /* Use brand primary color */
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    margin-left: 4px;
}

/* Typewriter cursor effect */
.api-endpoint::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--primary);
    font-weight: 400;
    margin-left: 2px;
}

@keyframes blink {
    50% { opacity: 0; }
}

.copy-btn-action {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 14px; /* Slightly softer radius */
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3); /* Colored shadow matching gradient */
}

.copy-btn-action:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.copy-btn-action:active {
    transform: scale(0.98);
}

.api-showcase-note {
    color: #9ca3af;
    font-size: 13px;
    margin-top: 16px;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .api-address-box {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-radius: 24px;
    }
    
    .api-url-container {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        flex-wrap: wrap;
        text-align: center;
        padding: 0;
        margin-bottom: 4px;
    }
    
    .copy-btn-action {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }
}


/* Tabs */
.tabs {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid #f3f4f6;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.tabs.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.tab-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 16px 0;
    justify-content: center;
    flex-wrap: wrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.tab-nav::-webkit-scrollbar {
    height: 4px;
}

.tab-nav::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 4px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .tab-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding: 12px 0;
        gap: 6px;
        /* 添加渐变遮罩效果，提示可以滚动 */
        -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
        mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
    }

    .tab-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 14px;
    position: relative;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.tab-btn:hover:not(.active) {
    background: #f3f4f6;
}

.tab-btn:focus {
    outline: none;
}

.tab-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(255,107,107,0.2);
}

.tab-btn:focus-visible:not(.active) {
    background: #f3f4f6;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Sections */
.section {
    padding: 60px 0;
}

h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}

.subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 16px;
    margin-bottom: 48px;
}

.section-subtitle {
    font-size: 24px;
    font-weight: 700;
    margin: 48px 0 24px;
}

/* 快速开始 */
.quick-start {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.step {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #f3f4f6;
}

.step-num {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 10px;
    text-align: center;
    line-height: 40px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.step p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.step a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.step code {
    background: #1e1e1e;
    color: var(--secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}

.note-text {
    font-size: 13px;
    color: #f59e0b;
    margin-top: 8px;
}

/* AI 模型滚动 - 无缝循环 */
.providers {
    background: var(--light);
    padding: 60px 0;
}

.providers-scroll {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.providers-track {
    display: flex;
    gap: 24px;
    width: fit-content;
    animation: scroll-seamless 20s linear infinite;
}

.providers-track:hover {
    animation-play-state: paused;
}

/* 无缝滚动动画 */
@keyframes scroll-seamless {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.provider-item {
    min-width: 200px;
    flex-shrink: 0;
    background: white;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    border: 2px solid #f3f4f6;
    transition: all 0.3s;
}

.provider-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.provider-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.provider-item h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.provider-item p {
    color: var(--gray);
    font-size: 13px;
}

/* Pricing Cards - Clean & Modern Design */
.pricing {
    background: var(--light);
    padding: 60px 0;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 2px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255,107,107,0.03) 0%, rgba(78,205,196,0.03) 100%);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 16px;
}

.group-label {
    font-size: 15px;
    color: #64748b;
    flex: 1;
}

.group-label strong {
    color: var(--dark);
    font-weight: 700;
    margin-left: 4px;
}

.rate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    font-family: 'SF Mono', 'Menlo', monospace;
    white-space: nowrap;
    flex-shrink: 0;
}

.rate-badge.rate-best {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.rate-badge.rate-low {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.rate-badge.rate-normal {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.rate-badge.rate-high {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

.rate-badge.rate-premium {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.feature-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.card-desc {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .pricing-card {
        padding: 20px;
    }
    
    .card-header {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .group-label {
        font-size: 14px;
    }
    
    .rate-badge {
        font-size: 12px;
        padding: 5px 12px;
    }
}

.group-badge.basic { background: #e0f2fe; color: #0369a1; }
.group-badge.pro { background: #fef3c7; color: #d97706; }
.group-badge.premium { background: #f3e8ff; color: #7c3aed; }
.group-badge.vip { background: #ffe4e6; color: #e11d48; }
.group-badge.custom { background: #f3f4f6; color: #374151; }

.pricing-note {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #f3f4f6;
    display: flex;
    gap: 20px;
}

.note-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.note-content h4 {
    font-size: 18px;
    margin-bottom: 12px;
}

.note-content ul {
    list-style: none;
}

.note-content li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.note-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.note-content code {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}

.note-content a {
    color: var(--primary);
    text-decoration: none;
}

/* API 线路 */
.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.route-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #f3f4f6;
    position: relative;
}

.route-status {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 12px;
    font-weight: 600;
}

.route-status.online {
    color: #10b981;
}

.route-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.route-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.route-url {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #1e1e1e;
    border-radius: 8px;
    margin-bottom: 16px;
}

.route-url code {
    flex: 1;
    color: var(--secondary);
    font-family: monospace;
    font-size: 14px;
}

.copy-btn-small {
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn-small:hover {
    background: rgba(255,255,255,0.2);
}

.route-card p {
    color: var(--gray);
    font-size: 14px;
}

.route-notice {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #f3f4f6;
}

.route-notice h4 {
    font-size: 18px;
    margin-bottom: 16px;
}

.route-notice ul {
    list-style: none;
}

.route-notice li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--gray);
}

.route-notice li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.route-notice a {
    color: var(--primary);
    text-decoration: none;
}

/* API 文档 */
.docs {
    padding: 60px 0;
}

/* API 文档目录 */
.api-toc {
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 2px solid #f3f4f6;
    margin-bottom: 48px;
}

.api-toc h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.toc-section h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.toc-section ul {
    list-style: none;
}

.toc-section li {
    padding: 6px 0;
}

.toc-section a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.toc-section a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.toc-section a::before {
    content: '→';
    margin-right: 8px;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.toc-section a:hover::before {
    opacity: 1;
}

/* API 端点 */
.endpoints {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.endpoint-card {
    background: white;
    border-radius: 12px;
    border: 2px solid #f3f4f6;
    overflow: hidden;
}

.endpoint-header {
    padding: 20px 24px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    gap: 12px;
}

.method {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.method.post {
    background: #10b981;
    color: white;
}

.method.get {
    background: #3b82f6;
    color: white;
}

.method.websocket {
    background: #8b5cf6;
    color: white;
}

.method.delete {
    background: #ef4444;
    color: white;
}

.method.put {
    background: #f59e0b;
    color: white;
}

.endpoint-header code {
    font-family: monospace;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

.endpoint-desc {
    padding: 0 24px 16px;
    color: var(--gray);
    font-size: 14px;
}

.endpoint-example {
    border-top: 1px solid #f3f4f6;
}

.example-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #f9fafb;
}

.example-tab {
    padding: 6px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
}

.example-tab.active {
    background: white;
    color: var(--primary);
}

.example-content {
    display: none;
    position: relative;
}

.example-content.active {
    display: block;
}

.example-content pre {
    padding: 20px 24px;
    background: #1e1e1e;
    color: #d4d4d4;
    overflow-x: auto;
    margin: 0;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.6;
}

.copy-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* 充值教程 */
.recharge-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.recharge-step {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #f3f4f6;
    text-align: center;
}

.step-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.recharge-step h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.recharge-step p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

.recharge-step a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* 售后须知 */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notice-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #f3f4f6;
    display: flex;
    gap: 16px;
}

.notice-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.notice-content h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.notice-content p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

.notice-content a {
    color: var(--primary);
    text-decoration: none;
}

/* FAQ */
.faq {
    padding: 60px 0;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 2px solid #f3f4f6;
    overflow: hidden;
    transition: all 0.3s;
}

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

.faq-q {
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

.faq-q span {
    font-size: 18px;
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 12px;
    font-weight: 400;
    line-height: 1;
}

.faq-item.active .faq-q span {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--gray);
    line-height: 1.6;
    font-size: 13px;
}

.faq-item.active .faq-a {
    max-height: 500px;
    padding: 0 20px 14px;
}

.faq-a a {
    color: var(--primary);
    text-decoration: none;
}

/* Footer */
.footer {
    background: #f9fafb;
    padding: 32px 0;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-content p {
    color: var(--gray);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

/* 响应式 */
@media (max-width: 768px) {
    .hero { padding: 40px 0; }
    .hero h1 { font-size: 28px; }
    .hero-btns { flex-direction: column; }
    .hero-stats {
        gap: 16px;
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }
    .api-showcase { padding: 32px 0; }
    .api-showcase-grid { grid-template-columns: 1fr; gap: 16px; }
    .api-scroll-container { height: 200px; }
    .quick-start { grid-template-columns: 1fr; }
    .routes-grid { grid-template-columns: 1fr; }
    .recharge-steps { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .pricing-note { flex-direction: column; }
    .notice-item { flex-direction: column; }
    .toc-grid { grid-template-columns: 1fr; }
}
