/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background-color: #0f172a;
    font-size: 16px;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: -0.01em;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-secondary {
    background-color: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
}

.btn-secondary:hover {
    background-color: #334155;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(30, 41, 59, 0.5);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo h2 {
    color: #3b82f6;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: #94a3b8;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 14px;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #e2e8f0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3b82f6;
    transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 20px;
    height: 2px;
    background-color: #e2e8f0;
    margin: 3px 0;
    transition: 0.3s;
}

/* 首页样式 */
.hero {
    padding: 160px 0 80px;
    text-align: center;
    background-color: #0f172a;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.cta-buttons .btn {
    margin: 0 8px;
}

/* 首页特性预览 */
.features-preview {
    padding: 80px 0;
    background-color: #1e293b;
}

.features-preview .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 功能图标 */
.feature-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #3b82f6;
}

/* 统计数据 */
.stats {
    padding: 80px 0;
    background-color: #0f172a;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #e2e8f0;
}

.stat-label {
    font-size: 1rem;
    color: #94a3b8;
}

/* 功能页面样式 */
.features-hero {
    padding: 120px 0 60px;
    background-color: #0f172a;
    text-align: center;
}

.features-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #e2e8f0;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.features-detail {
    padding: 80px 0;
    background-color: #1e293b;
}

.feature-section {
    margin-bottom: 80px;
}

.feature-section:last-child {
    margin-bottom: 0;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse .feature-content,
.feature-row.reverse .feature-visual {
    direction: ltr;
}

.feature-content {
    padding: 20px 0;
}

.feature-content .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #3b82f6;
}

.feature-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #e2e8f0;
}

.feature-description {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 24px;
    line-height: 1.7;
}

.feature-details ul {
    list-style: none;
    margin: 0;
}

.feature-details li {
    padding: 12px 0;
    color: #94a3b8;
    display: flex;
    align-items: flex-start;
}

.feature-details li i {
    color: #10b981;
    margin-right: 12px;
    margin-top: 4px;
    font-size: 1rem;
}

.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 模型网格 */
.model-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}

.model-card {
    background: #0f172a;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid #334155;
    transition: all 0.2s ease;
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    border-color: #3b82f6;
}

.model-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #3b82f6;
}

.model-name {
    color: #e2e8f0;
    font-weight: 500;
}

/* 渠道列表 */
.channel-list {
    width: 100%;
}

.channel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #334155;
}

.channel-item:last-child {
    border-bottom: none;
}

.channel-name {
    color: #e2e8f0;
    font-weight: 500;
}

.channel-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.channel-status.active {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.channel-status.inactive {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.channel-weight {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* 令牌网格 */
.token-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}

.token-card {
    background: #0f172a;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #334155;
}

.token-name {
    color: #e2e8f0;
    font-weight: 600;
    margin-bottom: 8px;
}

.token-models, .token-limits {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

/* 代码示例容器 */
.code-example {
    background: #0f172a;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #334155;
    margin: 20px 0;
}

.code-example h4 {
    color: #e2e8f0;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.code-example pre {
    background: #000;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0;
    font-size: 0.9rem;
}

.code-example code {
    color: #e2e8f0;
}

/* 定价页面样式 */
.pricing {
    padding: 120px 0 80px;
    background-color: #1e293b;
}

.pricing h1 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #e2e8f0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    align-items: stretch;
}

.pricing-card {
    background: #0f172a;
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    border: 1px solid #334155;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured {
    border: 1px solid #3b82f6;
    position: relative;
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.pricing-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #e2e8f0;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #e2e8f0;
}

.price span {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 400;
}

.features-list {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
    text-align: left;
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid #334155;
    color: #94a3b8;
    display: flex;
    align-items: center;
}

.features-list li:before {
    content: "✓";
    color: #10b981;
    margin-right: 12px;
    font-weight: bold;
}

.pricing-card .btn {
    width: 100%;
}

.pricing-note {
    margin-top: 60px;
    text-align: center;
    background: #0f172a;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #334155;
}

.pricing-note h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #e2e8f0;
}

.pricing-note p {
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* 关于页面样式 */
.about {
    padding: 120px 0 80px;
    background-color: #0f172a;
}

.about h1 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #e2e8f0;
}

.about-content {
    background: #1e293b;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #334155;
}

.about-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 32px 0 16px;
    color: #e2e8f0;
}

.about-content p {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-content ul {
    padding-left: 24px;
    margin: 16px 0;
}

.about-content li {
    margin-bottom: 12px;
    color: #94a3b8;
}

.cta-center {
    text-align: center;
    margin: 32px 0;
}

/* 文档页面样式 */
.docs-main {
    padding: 100px 0 60px;
    background-color: #0f172a;
}

.docs-layout {
    display: flex;
    gap: 30px;
}

/* 文档左侧导航 */
.docs-sidebar {
    width: 280px;
    background: #1e293b;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #334155;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #e2e8f0;
    padding-bottom: 12px;
    border-bottom: 1px solid #334155;
}

.sidebar-nav ul {
    list-style: none;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-item a {
    display: block;
    padding: 8px 12px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.nav-item a:hover,
.nav-item a.active {
    background-color: #334155;
    color: #e2e8f0;
}

.nav-item.active > a {
    background-color: #3b82f6;
    color: white;
}

.nav-item.has-sub > a::after {
    content: '▼';
    float: right;
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.nav-item.has-sub.active > a::after {
    transform: rotate(180deg);
}

.sub-nav {
    margin-top: 4px;
    margin-left: 16px;
}

.sub-nav li {
    margin-bottom: 4px;
}

.sub-nav a {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* 文档右侧内容 */
.docs-content {
    flex: 1;
    background: #1e293b;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #334155;
}

.content-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #e2e8f0;
}

.content-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 32px 0 16px;
    color: #e2e8f0;
}

.content-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 24px 0 12px;
    color: #e2e8f0;
}

.content-body p {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 16px;
}

.content-body ul,
.content-body ol {
    padding-left: 24px;
    margin: 16px 0;
}

.content-body li {
    margin-bottom: 8px;
    color: #94a3b8;
}

.content-body code {
    background-color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.content-body pre {
    background-color: #0f172a;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
    position: relative;
}

.content-body pre code {
    background: none;
    padding: 0;
}

.copy-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.copy-button:hover {
    background-color: #2563eb;
}

/* 页脚样式 */
.footer {
    background-color: #1e293b;
    color: #94a3b8;
    padding: 60px 0 30px;
    border-top: 1px solid #334155;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: #3b82f6;
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-logo p {
    color: #64748b;
    font-size: 0.875rem;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 24px;
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 600;
}

.footer-links ul,
.footer-social ul {
    list-style: none;
}

.footer-links li,
.footer-social li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-social a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    display: inline-block;
}

.footer-links a:hover,
.footer-social a:hover {
    color: #e2e8f0;
    transform: translateX(4px);
}

.footer-social .fab {
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    color: #64748b;
    font-size: 0.875rem;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, 10px) rotate(5deg);
    }
    50% {
        transform: translate(0, 20px) rotate(0deg);
    }
    75% {
        transform: translate(-10px, 10px) rotate(-5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* 免费版和企业版介绍区域 */
.free-version, .enterprise-version {
    padding: 80px 0;
}

.free-version {
    background-color: #1e293b;
}

.enterprise-version {
    background-color: #0f172a;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse .content-text,
.content-grid.reverse .content-image {
    direction: ltr;
}

.content-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #e2e8f0;
}

.content-text p {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    margin-bottom: 32px;
}

.feature-list li {
    padding: 8px 0;
    color: #94a3b8;
    display: flex;
    align-items: center;
}

.feature-list li i {
    color: #10b981;
    margin-right: 12px;
    font-size: 1.2rem;
}

.content-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-window {
    background-color: #0f172a;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 100%;
    overflow: hidden;
    border: 1px solid #334155;
}

.terminal-header {
    background-color: #1e293b;
    padding: 12px 16px;
    display: flex;
    align-items: center;
}

.terminal-dots {
    display: flex;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #eab308; }
.dot.green { background-color: #22c55e; }

.terminal-title {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-left: 12px;
}

.terminal-body {
    padding: 20px;
    position: relative;
}

.terminal-body pre {
    margin: 0;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
}

.dashboard-preview {
    background-color: #1e293b;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 100%;
    overflow: hidden;
    border: 1px solid #334155;
}

.dashboard-header {
    background-color: #0f172a;
    padding: 12px 16px;
}

.dashboard-tabs {
    display: flex;
    gap: 16px;
}

.dashboard-tabs span {
    color: #64748b;
    font-size: 0.875rem;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.dashboard-tabs span.active {
    background-color: #3b82f6;
    color: white;
}

.dashboard-content {
    padding: 20px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background-color: #0f172a;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    border: 1px solid #334155;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
}

.chart-placeholder {
    background-color: #0f172a;
    border-radius: 6px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border: 1px dashed #334155;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .docs-layout {
        flex-direction: column;
    }
    
    .docs-sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }
    
    .sub-nav {
        margin-left: 8px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .content-grid.reverse {
        direction: ltr;
    }
    
    .content-grid.reverse .content-text,
    .content-grid.reverse .content-image {
        direction: ltr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero {
        padding: 140px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
    
    .features-grid,
    .pricing-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h4::after,
    .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .features,
    .pricing,
    .about,
    .docs-main {
        padding: 80px 0 60px;
    }
    
    .features h1,
    .pricing h1,
    .about h1,
    .content-header h1 {
        font-size: 2rem;
    }
    
    .docs-content {
        padding: 24px;
    }
    
    .free-version, .enterprise-version {
        padding: 60px 0;
    }
    
    .content-text h2 {
        font-size: 1.5rem;
    }
    
    .content-text p {
        font-size: 1rem;
    }
    
    .terminal-body {
        padding: 16px;
    }
    
    .terminal-body pre {
        font-size: 0.8rem;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .features-hero {
        padding: 80px 0 40px;
    }
    
    .features-hero h1 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .features-detail {
        padding: 60px 0;
    }
    
    .feature-section {
        margin-bottom: 60px;
    }
    
    .feature-row {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .feature-row.reverse {
        direction: ltr;
    }
    
    .feature-row.reverse .feature-content,
    .feature-row.reverse .feature-visual {
        direction: ltr;
    }
    
    .feature-content h2 {
        font-size: 1.5rem;
    }
    
    .feature-description {
        font-size: 1rem;
    }
    
    .model-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .code-example {
        padding: 16px;
    }
    
    .code-example pre {
        font-size: 0.8rem;
        padding: 12px;
    }
}