/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --light: #f1f5f9;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: 0.3s;
}

/* 英雄区 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 80px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    display: block;
    font-size: 48px;
    color: var(--gray);
    font-weight: 300;
}

.hero-description {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 500px;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

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

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 30px -5px rgba(99, 102, 241, 0.3);
}

/* Token可视化 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.token-visualization {
    position: relative;
    width: 400px;
    height: 400px;
}

.token {
    position: absolute;
    padding: 12px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
}

.token-1 { top: 10%; left: 30%; animation-delay: 0s; color: var(--primary); }
.token-2 { top: 25%; right: 10%; animation-delay: 0.5s; color: var(--secondary); }
.token-3 { top: 40%; left: 5%; animation-delay: 1s; color: var(--accent); }
.token-4 { top: 55%; right: 15%; animation-delay: 1.5s; color: var(--primary-dark); }
.token-5 { top: 70%; left: 20%; animation-delay: 2s; color: var(--secondary); }
.token-6 { top: 80%; right: 30%; animation-delay: 2.5s; color: var(--accent); }
.token-7 { top: 45%; left: 45%; animation-delay: 3s; color: var(--primary); font-size: 1.2em; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* 通用区块样式 */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--dark);
    color: white;
}

.section-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #f0f9ff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-tag.light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title.light {
    color: white;
}

.section-subtitle {
    font-size: 20px;
    color: var(--gray);
}

.section-subtitle.light {
    color: rgba(255, 255, 255, 0.7);
}

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

/* 内容卡片 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.content-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.content-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark);
}

.content-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.example-box {
    background: var(--light);
    padding: 20px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    background: var(--light);
    font-weight: 600;
}

.importance-list {
    list-style: none;
}

.importance-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.importance-list li:last-child {
    border-bottom: none;
}

/* 流程图 */
.process-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 80px;
}

.process-step {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    width: 220px;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin: 0 auto 20px;
}

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

.step-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 15px;
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #4ade80;
}

.process-arrow {
    font-size: 32px;
    color: var(--accent);
}

/* 分词器类型 */
.tokenizer-types {
    margin-top: 60px;
}

.tokenizer-types h3 {
    font-size: 32px;
    margin-bottom: 40px;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.type-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s;
}

.type-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.type-card h4 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--accent);
}

.type-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.used-by {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary);
}

/* 文化区块 */
.culture-content {
    max-width: 1000px;
    margin: 0 auto;
}

.culture-quote {
    text-align: center;
    margin-bottom: 60px;
}

.culture-quote blockquote {
    font-size: 28px;
    font-style: italic;
    color: var(--primary);
    position: relative;
    padding: 0 40px;
}

.culture-quote blockquote::before,
.culture-quote blockquote::after {
    content: '"';
    font-size: 60px;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
}

.culture-quote blockquote::before {
    top: -20px;
    left: 0;
}

.culture-quote blockquote::after {
    bottom: -40px;
    right: 0;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.culture-item {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.culture-item:hover {
    transform: translateY(-10px);
}

.culture-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.culture-item h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

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

/* 技巧区块 */
.tips-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    padding: 60px;
    color: white;
}

.tips-section h3 {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.tip-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    position: relative;
}

.tip-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: white;
    color: #764ba2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.tip-card h5 {
    font-size: 18px;
    margin: 15px 0 10px;
}

.tip-card p {
    opacity: 0.9;
    font-size: 14px;
}

/* 模型卡片 */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.model-card {
    background: white;
    border-radius: 24px;
    padding: 35px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.model-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.model-card.featured {
    border: 2px solid var(--primary);
    position: relative;
}

.model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.model-logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.model-logo.gpt { background: linear-gradient(135deg, #10a37f 0%, #0d8c6d 100%); }
.model-logo.claude { background: linear-gradient(135deg, #d4a574 0%, #c9956b 100%); }
.model-logo.gemini { background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc04 100%); }
.model-logo.llama { background: linear-gradient(135deg, #0467df 0%, #0353b5 100%); }
.model-logo.kimi { background: linear-gradient(135deg, #6b4c9a 0%, #5a3d85 100%); }
.model-logo.wenxin { background: linear-gradient(135deg, #2932e1 0%, #1e25b0 100%); }
.model-logo.qwen { background: linear-gradient(135deg, #ff6a00 0%, #ff8c00 100%); }
.model-logo.deepseek { background: linear-gradient(135deg, #4d6bfa 0%, #3d56d8 100%); }

.model-badge {
    padding: 6px 14px;
    background: var(--gradient);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.model-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.model-desc {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.model-specs {
    margin-bottom: 20px;
}

.spec {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.spec:last-child {
    border-bottom: none;
}

.spec span {
    color: var(--gray);
}

.model-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature {
    padding: 6px 14px;
    background: var(--light);
    border-radius: 20px;
    font-size: 13px;
    color: var(--dark);
}

/* 价格区块 */
.price-note {
    color: var(--gray);
    font-size: 14px;
    margin-top: 10px;
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 30px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: white;
}

.pricing-content {
    display: none;
}

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

.pricing-table-wrapper {
    overflow-x: auto;
    margin-bottom: 60px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pricing-table th {
    background: var(--gradient);
    color: white;
    padding: 20px;
    text-align: left;
    font-weight: 600;
}

.pricing-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.pricing-table tr:hover {
    background: #f8fafc;
}

.pricing-table tr.best-value {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
}

.pricing-table tr.premium {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.05) 0%, transparent 100%);
}

.rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--light);
    border-radius: 50%;
    font-weight: 700;
    color: var(--dark);
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.badge.excellent {
    background: #dcfce7;
    color: #166534;
}

.badge.good {
    background: #dbeafe;
    color: #1e40af;
}

.badge.medium {
    background: #fef3c7;
    color: #92400e;
}

.badge.low {
    background: #fee2e2;
    color: #991b1b;
}

/* 计算器 */
.pricing-calculator {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    margin: 0 auto;
}

.pricing-calculator h3 {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.token-count {
    margin-top: 10px;
    color: var(--gray);
    font-size: 14px;
}

.token-count span {
    color: var(--primary);
    font-weight: 700;
}

.cost-result {
    background: var(--light);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

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

.cost-item span:first-child {
    display: block;
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 8px;
}

.cost-value {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 页脚 */
.footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.link-group h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.link-group a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s;
}

.link-group a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.disclaimer {
    margin-top: 10px;
    font-size: 12px !important;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .subtitle {
        font-size: 36px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-description {
        margin: 0 auto 30px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .process-flow {
        flex-direction: column;
    }
    
    .process-arrow {
        transform: rotate(90deg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tips-section {
        padding: 40px 25px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 42px;
    }
    
    .subtitle {
        font-size: 28px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card,
.model-card,
.culture-item {
    animation: fadeInUp 0.6s ease-out;
}
