:root {
    --primary-color: rgb(4, 4, 4);
    --secondary-color: rgb(75, 85, 99);
    --background-color: #ffffff;
    --text-color: rgb(4, 4, 4);
    --border-color: rgb(229, 231, 235);
    --card-background: #ffffff;
    --hover-color: rgb(249, 250, 251);
    --gradient-from: #fbbf24;
    --gradient-to: #d946ef;
    --tw-text-opacity: 1;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --ranking-box-bg: #ffffff;
    --time-selector-bg: #f5f5f5;
    --chart-bg: #ffffff;
}


/* Dark theme */

[data-theme="dark"] {
    --primary-color: #ffffff;
    --secondary-color: rgb(238, 211, 227);
    --background-color: rgb(17, 24, 39);
    --text-color: rgb(255, 255, 255);
    --border-color: rgb(55, 65, 81);
    --card-background: rgb(31, 41, 55);
    --hover-color: rgb(55, 65, 81);
    --gradient-from: #ffd700;
    --gradient-to: #ff69b4;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --ranking-box-bg: rgb(31, 41, 55);
    --time-selector-bg: rgb(55, 65, 81);
    --chart-bg: rgb(31, 41, 55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--background-color);
    border-radius: 8px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-color);
}


/* 按钮组样式 */

.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

button {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--card-background);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    /* background-color: var(--hover-color); */
    background-color: #e36bb1;
}

button.active {
    background-color: var(--text-color);
    color: var(--background-color);
    border-color: var(--text-color);
}


/* 图表容器样式 */

.chart-container {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 12px;
    background-color: var(--chart-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}


/* 表格样式 */

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

th {
    background-color: var(--hover-color);
    font-weight: bold;
}

tr:hover {
    background-color: var(--hover-color);
}


/* Header and Navigation */

.header {
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.z-30 {
    z-index: 30;
}


/* 导航栏样式 */

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
}

.nav-items {
    display: flex;
    gap: 2rem;
}

.nav-items a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-items a:hover {
    color: var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-switcher {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.theme-switcher:hover {
    color: var(--primary-color);
}

.login-btn {
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    opacity: 0.9;
}


/* 英雄区域样式 */

.hero {
    padding: 100px 20px 60px;
    text-align: center;
    background: var(--background-color);
}

.hero h4 {
    color: var(--text-color);
    margin-bottom: 24px;
}

.hero p {
    font-size: 20px;
    color: var(--secondary-color);
    max-width: 800px;
    margin: 0 auto 40px;
}


/* 渐变文本效果 */

.bg-gradient-to-br {
    background: linear-gradient(135deg, var(--gradient-from), var(--gradient-to));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


/* 标题样式 */

.font-bold {
    font-weight: 700;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.lg\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.mb-5 {
    margin-bottom: 1.25rem;
}

.lg\:leading-normal {
    line-height: 1.5;
}

.leading-normal {
    line-height: 1.5;
}

@media (min-width: 1024px) {
    .lg\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
    .lg\:leading-normal {
        line-height: 1.5;
    }
}


/* 特性区域样式 */

.features {
    padding: 80px 0;
    background-color: var(--background-color);
}

.features-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-around;
}

.features-text {
    flex: 1;
    max-width: 600px;
    padding: 50px 0px;
}

.features h2 {
    color: var(--text-color);
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 16px;
    font-weight: 800;
}

.features p {
    color: var(--text-color);
    font-size: 1.125rem;
    line-height: 1.75rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.feature-item .checkmark {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
    flex-shrink: 0;
    font-weight: 600;
}

.feature-text {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

.features-images {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin-left: 40px;
}

.feature-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}


/* 用户评价区域样式 */

.testimonials {
    padding: 80px 0;
    background-color: var(--background-color);
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.testimonials .subtitle {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.testimonials .description {
    text-align: center;
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card .icon {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.testimonial-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.testimonial-card p {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-link {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.contact-link:hover {
    opacity: 0.7;
}


/* 数据统计区域样式 */

.data-stats {
    padding: 60px 0;
    background-color: var(--background-color);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--text-color);
}

.stats-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.stats-sidebar {
    width: 200px;
    flex-shrink: 0;
}

.stats-main {
    flex-grow: 1;
}

.metric-selector {
    margin: 10px 10px;
    text-align: center;
}

.metric-btn {
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    background: var(--card-background);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 16px;
    width: 106px;
    display: inline-block;
    margin: 0 5px;
}

.metric-btn.active {
    background: var(--text-color);
    color: var(--background-color);
    border-color: var(--text-color);
}


/* 模型选择器样式 */

.model-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    padding: 10px;
    margin-bottom: 20px;
    position: relative;
}

.model-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--card-background);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-btn:hover {
    background-color: var(--hover-color);
}

.model-btn.active {
    background-color: var(--text-color);
    color: var(--background-color);
    border-color: var(--text-color);
}


/* 排行榜样式 */

.ranking-box {
    background-color: var(--ranking-box-bg);
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.time-selector {
    background-color: var(--time-selector-bg);
    display: inline-block;
}

.time-btn {
    padding: 8px 16px;
    margin: 0 4px;
    border: none;
    border-radius: 20px;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-btn:hover {
    background-color: var(--hover-color);
}

.time-btn.active {
    background-color: var(--text-color);
    color: var(--background-color);
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item:hover {
    background-color: var(--hover-color);
    transform: translateX(4px);
}

.ranking-number {
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary-color);
    width: 32px;
    text-align: center;
}

.ranking-model {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    margin-left: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ranking-tokens {
    font-size: 15px;
    color: var(--secondary-color);
    font-weight: 500;
    text-align: right;
    font-variant-numeric: tabular-nums;
}


/* Top 3 特殊样式 */

.ranking-item:nth-child(-n+3) .ranking-number {
    font-weight: 600;
    color: var(--text-color);
}

.ranking-item:nth-child(1) .ranking-model {
    color: var(--text-color);
    font-weight: 700;
}


/* 页脚样式 */

footer {
    background-color: var(--card-background);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 24px;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-tagline {
    color: var(--secondary-color);
    font-size: 14px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.contact-email {
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-email i {
    color: var(--text-color);
    font-size: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-color);
}


/* 打字机效果样式 */

.typewrite {
    display: inline-block;
    position: relative;
}

.typewrite>.wrap {
    border-right: 0.08em solid;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from,
    to {
        border-color: transparent
    }
    50% {
        border-color: var(--text-color);
    }
}

[data-theme="dark"] .typewrite>.wrap {
    animation: blink-caret-dark 0.75s step-end infinite;
}

@keyframes blink-caret-dark {
    from,
    to {
        border-color: transparent
    }
    50% {
        border-color: rgba(255, 255, 255, 0.7);
    }
}


/* 响应式设计 */

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-items {
        display: none;
    }
    .hero {
        padding: 60px 20px 40px;
    }
    .hero h4 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 18px;
    }
    .features-content {
        flex-direction: column;
    }
    .features-images {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonials h2 {
        font-size: 2rem;
    }
    .testimonials .subtitle {
        font-size: 1.25rem;
    }
    .stats-layout {
        flex-direction: column;
    }
    .stats-sidebar {
        width: 100%;
    }
    .metric-selector {
        flex-direction: row;
        justify-content: center;
    }
    .metric-btn {
        width: auto;
    }
    .model-selector {
        justify-content: center;
    }
    .chart-container {
        height: 300px;
        padding: 10px;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .footer-contact {
        align-items: center;
    }
}


/* 工具类 */

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.mb-8 {
    margin-bottom: 2rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-lg {
    box-shadow: var(--card-shadow);
}

.p-6 {
    padding: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.p-1\.5 {
    padding: 0.375rem;
}


/* 主题切换动画 */

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-icon {
    transition: transform 0.3s ease;
}

.theme-switcher:hover .theme-icon {
    transform: rotate(360deg);
}


/* 修复Chart.js在暗色模式下的文字颜色 */

[data-theme="dark"] canvas {
    filter: invert(1) hue-rotate(180deg);
}


.text-centent{
    text-align: center;
}

/* 按钮样式优化 - 保持原有布局 */
.hero-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gradient-from), var(--gradient-to));
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
    margin: 15px 0;
    border: none;
}

.hero-cta-btn i {
    margin-right: 6px;
    font-size: 14px;
}

.hero-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    color: white;
}

.hero-cta-btn:active {
    transform: translateY(0);
}

.join-us-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    margin-top: 15px;
    border: none;
}

.join-us-btn i {
    margin-right: 5px;
    font-size: 12px;
}

.join-us-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
    color: white;
}

.join-us-btn:active {
    transform: translateY(0);
}

.contact-manager-btn {
    display: inline-block;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(17, 153, 142, 0.3);
    margin-bottom: 15px;
    border: none;
}

.contact-manager-btn i {
    margin-right: 4px;
    font-size: 11px;
}

.contact-manager-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(17, 153, 142, 0.4);
    color: white;
}

.contact-manager-btn:active {
    transform: translateY(0);
}

/* 暗色主题下的按钮样式调整 */
[data-theme="dark"] .hero-cta-btn {
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

[data-theme="dark"] .hero-cta-btn:hover {
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

[data-theme="dark"] .join-us-btn {
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

[data-theme="dark"] .join-us-btn:hover {
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.5);
}

[data-theme="dark"] .contact-manager-btn {
    box-shadow: 0 2px 6px rgba(17, 153, 142, 0.4);
}

[data-theme="dark"] .contact-manager-btn:hover {
    box-shadow: 0 3px 10px rgba(17, 153, 142, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-cta-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .join-us-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .contact-manager-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* 社交媒体图标样式 */
.social-media-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
}

.social-icon i {
    font-size: 18px;
}

/* 暗色主题下的社交媒体图标 */
[data-theme="dark"] .social-icon {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .social-icon:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* 响应式设计 - 社交媒体图标 */
@media (max-width: 768px) {
    .social-media-icons {
        gap: 10px;
        margin-top: 12px;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .social-icon i {
        font-size: 16px;
    }
}