: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;

    /* 科技感渐变色系 */
    --gradient-primary: linear-gradient(135deg, #3b82f6, #06b6d4);
    --gradient-accent: linear-gradient(135deg, #fbbf24, #d946ef);
    --gradient-success: linear-gradient(135deg, #10b981, #34d399);
    --gradient-purple: linear-gradient(135deg, #8b5cf6, #a78bfa);

    /* 多彩图标色系 */
    --icon-green: #10b981;
    --icon-purple: #8b5cf6;
    --icon-orange: #f97316;
    --icon-cyan: #06b6d4;
    --icon-pink: #ec4899;
    --icon-blue: #3b82f6;

    /* 增强阴影系统 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
    --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.3);

    /* 过渡动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}


/* 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);

    /* 暗色模式渐变调整 */
    --gradient-primary: linear-gradient(135deg, #60a5fa, #22d3ee);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow-blue: 0 0 30px rgba(96, 165, 250, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    font-display: swap; /* 优化字体加载 */
    /* 防止字体加载导致的布局偏移 */
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

.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);
    min-height: 400px; /* 预留最小高度避免CLS */
    height: 400px; /* 固定高度防止CLS */
    display: flex;
    align-items: center;
    justify-content: center;
    /* 防止内容溢出导致布局偏移 */
    contain: layout;
    position: relative;
}

/* 图表加载状态 */
.chart-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--text-color);
    border-radius: 50%;
    animation: chart-spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chart-container.loading::before {
    opacity: 1;
}

@keyframes chart-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chart-container canvas {
    max-height: 350px; /* 限制图表最大高度 */
    width: 100% !important;
    height: auto !important;
}


/* 表格样式 */

.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: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
}

/* 滚动后增强阴影 */
.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .header {
    background-color: rgba(17, 24, 39, 0.9);
}

.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;
    position: relative;
}

.navbar-brand,
.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    flex-shrink: 0;
}

/* 汉堡菜单按钮样式 */
.navbar-toggler {
    display: none; /* 默认隐藏，由媒体查询控制 */
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    position: relative;
    /* 合并动画样式 */
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 8px;
}

/* 修复按钮焦点和激活状态的样式 */
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:hover {
    outline: none;
    box-shadow: none;
    background: none;
    border: none;
}

/* 修复Bootstrap默认的toggler样式 */
.navbar-toggler:focus .navbar-toggler-icon,
.navbar-toggler:active .navbar-toggler-icon,
.navbar-toggler:hover .navbar-toggler-icon {
    background-color: var(--text-color);
}

.navbar-toggler-icon {
    display: block;
    width: 1.5rem;
    height: 1.125rem;
    position: relative;
    background-color: var(--text-color); /* 确保中间横线有颜色 */
}

.navbar-toggler-icon,
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    background-color: var(--text-color);
    height: 2px;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    left: 0;
}

.navbar-toggler-icon::before {
    top: -0.5rem;
}

.navbar-toggler-icon::after {
    bottom: -0.5rem;
}

/* 折叠内容样式 */
.navbar-collapse {
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: space-between; /* 左右分布：nav-items居中，nav-right靠右 */
}

.nav-items {
    display: flex;
    gap: 2rem;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* 让导航项真正居中 */
    white-space: nowrap;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    padding: 0.5rem 0;
    position: relative;
}

/* 导航链接下划线hover动画 */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #3b82f6;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    margin-left: auto; /* 确保右侧按钮靠右 */
}

.theme-switcher {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.theme-switcher:hover {
    color: #3b82f6;
    transform: rotate(15deg);
}

.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;
}

/* 企业合作通道按钮 */
.demo-btn,
.nav-link.demo-btn,
a.nav-link.demo-btn {
    background: linear-gradient(135deg, #fbbf24, #f97316) !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    margin-left: 0.5rem;
    border: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3) !important;
    border-bottom: none !important;
}

.demo-btn:hover,
.nav-link.demo-btn:hover,
a.nav-link.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4) !important;
    color: white !important;
}


/* 暗色主题下汉堡按钮的样式 */
[data-theme="dark"] .navbar-toggler-icon,
[data-theme="dark"] .navbar-toggler-icon::before,
[data-theme="dark"] .navbar-toggler-icon::after {
    background-color: var(--text-color);
}

[data-theme="dark"] .navbar-toggler:focus .navbar-toggler-icon,
[data-theme="dark"] .navbar-toggler:active .navbar-toggler-icon,
[data-theme="dark"] .navbar-toggler:hover .navbar-toggler-icon {
    background-color: var(--text-color);
}

/* 英雄区域样式 */

.hero {
    padding: 0 20px 40px;
    text-align: center;
    background: var(--background-color);
    position: relative;
    overflow: hidden;
    margin-top: -20px;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.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;
}

/* 按钮容器样式 - PC端默认（恢复原来样式） */
.flex.align-items-center {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* PC端恢复左对齐 */
    gap: 30px; /* 恢复原来的间距 */
    margin-top: 20px;
}

.join-us-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.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;
    aspect-ratio: 5 / 4; /* 500x400 比例 */
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}


/* 用户评价区域样式 */

.testimonials {
    padding: 100px 0;
    background: var(--background-color);
    position: relative;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.testimonials .subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.testimonials .description {
    text-align: center;
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

/* 特性卡片增强 */
.testimonial-card {
    background: var(--card-background);
    border: 1px solid rgba(229, 231, 235, 0.6);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* 卡片顶部渐变装饰条 */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

/* 卡片hover效果 */
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(59, 130, 246, 0.3);
}

/* 多彩图标系统 */
.testimonial-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    transition: all var(--transition-normal);
}

/* 第1张卡片 - 高并发 - 绿色系 */
.testimonial-card:nth-child(1) .icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.1));
    color: var(--icon-green);
}

.testimonial-card:nth-child(1):hover .icon {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* 第2张卡片 - 折扣 - 紫色系 */
.testimonial-card:nth-child(2) .icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(167, 139, 250, 0.1));
    color: var(--icon-purple);
}

.testimonial-card:nth-child(2):hover .icon {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* 第3张卡片 - 最新 - 橙色系 */
.testimonial-card:nth-child(3) .icon {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(251, 146, 60, 0.1));
    color: var(--icon-orange);
}

.testimonial-card:nth-child(3):hover .icon {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

/* 第4张卡片 - 安全 - 青色系 */
.testimonial-card:nth-child(4) .icon {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(34, 211, 238, 0.1));
    color: var(--icon-cyan);
}

.testimonial-card:nth-child(4):hover .icon {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

/* 第5张卡片 - 客服 - 粉色系 */
.testimonial-card:nth-child(5) .icon {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(244, 114, 182, 0.1));
    color: var(--icon-pink);
}

.testimonial-card:nth-child(5):hover .icon {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

/* 第6张卡片 - 正规 - 蓝色系 */
.testimonial-card:nth-child(6) .icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.1));
    color: var(--icon-blue);
}

.testimonial-card:nth-child(6):hover .icon {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.testimonial-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.4;
}

.testimonial-card p {
    color: var(--secondary-color);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.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: 80px 0;
    background: linear-gradient(180deg,
        var(--background-color) 0%,
        rgba(59, 130, 246, 0.02) 50%,
        var(--background-color) 100%);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
}

.section-desc {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 24px;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.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 24px;
    border: 1px solid var(--border-color);
    background: var(--card-background);
    color: var(--text-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    width: auto;
    display: inline-block;
    margin: 0 5px;
}

.metric-btn:hover {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.08);
    transform: translateY(-1px);
}

.metric-btn.active {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}


/* 模型选择器样式 */

.model-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 8px;
    padding: 10px 0;
    margin-bottom: 20px;
    position: relative;
}

/* 模型选择按钮增强 */
.model-btn {
    padding: 2px 8px;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 18px;
    height: auto;
}

.model-btn:hover {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.08);
    transform: translateY(-1px);
}

.model-btn.active {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

[data-theme="dark"] .model-btn {
    background: rgba(55, 65, 81, 0.8);
    border-color: rgba(75, 85, 99, 0.5);
    color: rgba(255, 255, 255, 0.88);
}

[data-theme="dark"] .model-btn:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
}

[data-theme="dark"] .model-btn.active {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: #ffffff;
    border-color: transparent;
}


/* 排行榜样式 */

.ranking-box {
    background: var(--card-background);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(229, 231, 235, 0.5);
    padding: 24px;
    transition: all var(--transition-normal);
    min-height: 600px;
}

.ranking-box:hover {
    box-shadow: var(--shadow-lg);
}

.ranking-content {
    min-height: 480px;
}

.time-selector {
    background-color: var(--time-selector-bg);
    display: inline-block;
    border-radius: 10px;
    padding: 4px;
}

/* 时间选择器按钮 */
.time-btn {
    padding: 8px 16px;
    margin: 0 2px;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 8px;
    background: var(--card-background);
    color: var(--text-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    height: auto;
}

.time-btn:hover {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.08);
}

.time-btn.active {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: white;
    border-color: transparent;
}

[data-theme="dark"] .time-btn {
    background: rgba(55, 65, 81, 0.8);
    border-color: rgba(75, 85, 99, 0.5);
    color: rgba(255, 255, 255, 0.88);
}

[data-theme="dark"] .time-btn:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
}

[data-theme="dark"] .time-btn.active {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: #ffffff;
    border-color: transparent;
}

/* CTA区域样式增强 */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 100px 0 100px;
    margin-bottom: 0;
    text-align: center;
    overflow: hidden;
}

/* CTA背景装饰 */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* 网格背景效果 */
.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.cta-stars {
    display: none;
}

.cta-section .container {
    position: relative;
    z-index: 1;
    background: transparent;
    border-radius: 0;
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
}

.cta-title span {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-btn-primary {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
}

.cta-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.5);
    color: white;
}

.cta-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    position: relative;
    cursor: pointer;
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: #ffffff;
}

/* CTA区域的二维码弹窗样式 */
.cta-btn-secondary .contact-qrcode {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 15px;
    text-align: center;
    width: 180px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.cta-btn-secondary .contact-qrcode::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.cta-btn-secondary .contact-qrcode img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.cta-btn-secondary .contact-qrcode p {
    margin: 10px 0 0;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* 悬停时显示二维码 */
.cta-btn-secondary:hover .contact-qrcode {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 暗色模式下二维码弹窗 */
[data-theme="dark"] .cta-btn-secondary .contact-qrcode {
    background: var(--card-background);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .cta-btn-secondary .contact-qrcode::after {
    border-color: var(--card-background) transparent transparent transparent;
}

[data-theme="dark"] .cta-btn-secondary .contact-qrcode p {
    color: var(--secondary-color);
}

/* 暗色模式下CTA区域保持深色风格 */
[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .cta-title {
    color: #ffffff;
}

[data-theme="dark"] .cta-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .cta-btn-primary {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: white;
}

[data-theme="dark"] .cta-btn-primary:hover {
    background: linear-gradient(135deg, #fcd34d, #fb923c);
}

[data-theme="dark"] .cta-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .cta-section {
        padding: 60px 20px;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .cta-btn {
        padding: 10px 24px;
        font-size: 13px;
    }
}

/* 排行榜项目增强 */
.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 4px;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(4px);
    border-color: transparent;
}

/* Top 3 渐变背景 */
.ranking-item:nth-child(1) {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.1), transparent);
}

.ranking-item:nth-child(2) {
    background: linear-gradient(90deg, rgba(156, 163, 175, 0.1), transparent);
}

.ranking-item:nth-child(3) {
    background: linear-gradient(90deg, rgba(180, 83, 9, 0.1), transparent);
}

.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 {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.ranking-item:nth-child(1) .ranking-number {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.ranking-item:nth-child(2) .ranking-number {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: white;
}

.ranking-item:nth-child(3) .ranking-number {
    background: linear-gradient(135deg, #b45309, #92400e);
    color: white;
}

.ranking-item:nth-child(1) .ranking-model {
    color: var(--text-color);
    font-weight: 700;
}


/* 页脚样式 */

/* PC端页脚布局（屏幕宽度1024px） */
@media (min-width: 1024px) {
    footer {
        background-color: var(--card-background);
        padding: 60px 0 20px;
        border-top: none;
        margin-top: 0;
        width: 100%;
        min-width: 1200px; /* 固定最小宽度 */
    }
    
    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr; /* 固定4列布局 */
        gap: 40px;
        margin-bottom: 40px;
        max-width: 1200px; /* 固定最大宽度 */
        margin-left: auto;
        margin-right: auto;
        padding: 0 20px;
    }
    
    .footer-logo h3 {
        text-align: left;
    }
    
    .footer-contact {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* 移动端页脚布局（屏幕宽度<1024px） */
@media (max-width: 1023px) {
    footer {
        background-color: var(--card-background);
        padding: 40px 0 20px;
        border-top: none;
        margin-top: 0;
    }
    
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-bottom: 30px;
        padding: 0 20px;
        text-align: center;
    }
    
    .footer-contact {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

/* 页脚公共样式 */
footer {
    font-size: 14px; /* 页脚整体字体大小始终为14px */
}

.footer-logo h3 {
    font-size: 18px; /* 页脚Logo标题始终为18px */
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-tagline {
    color: var(--secondary-color);
    font-size: 14px; /* 页脚标语始终为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;
}

.contact-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 14px; /* 联系标题始终为14px */
}

.contact-email {
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.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);
    }
}


/* 汉堡菜单增强样式 */

/* 汉堡按钮hover效果 */

.navbar-toggler:hover {
    background-color: var(--hover-color);
    transform: scale(1.05);
}

.navbar-toggler.active {
    background-color: var(--hover-color);
    border-color: var(--border-color);
}

/* 汉堡图标动画 - 变成X */
.navbar-toggler.active .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler.active .navbar-toggler-icon::before {
    transform: rotate(45deg) translate(0, 0);
    top: 0;
}

.navbar-toggler.active .navbar-toggler-icon::after {
    transform: rotate(-45deg) translate(0, 0);
    bottom: 0;
}

/* 菜单打开时的导航栏样式 */
.navbar.menu-opening {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 菜单背景遮罩样式在JavaScript中动态添加 */

/* 菜单展开状态优化 */
.navbar-collapse.show {
    animation: slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 菜单项悬浮效果 */
.navbar-collapse .nav-link {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin: 2px 0;
    transition: all 0.2s ease;
}

.navbar-collapse .nav-link:hover {
    background-color: var(--hover-color);
}


/* 防止菜单打开时背景滚动 */
body.navbar-open {
    overflow: hidden;
}

/* 菜单项进入动画 - 移除延迟，同步显示 */
.navbar-collapse.show .nav-link {
    animation: slideInLeft 0.25s ease forwards;
    opacity: 0;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 右侧按钮区域动画 - 同步显示 */
.navbar-collapse.show .nav-right {
    animation: fadeInUp 0.25s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 主题切换按钮在菜单中的样式 */
.navbar-collapse .theme-switcher {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    margin-right: 8px;
    transition: all 0.2s ease;
}

.navbar-collapse .theme-switcher:hover {
    background-color: var(--hover-color);
    transform: scale(1.05);
}

/* 登录按钮在菜单中的样式增强 */
.navbar-collapse .login-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.navbar-collapse .login-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* 暗色模式下的菜单样式 */
[data-theme="dark"] .navbar-toggler:hover {
    background-color: var(--hover-color);
}

[data-theme="dark"] .navbar-collapse .nav-link:hover {
    background-color: var(--hover-color);
}

[data-theme="dark"] .navbar-collapse .theme-switcher {
    background-color: var(--card-background);
    border-color: var(--border-color);
}

/* 响应式优化 */
@media (max-width: 576px) {
    .navbar-collapse {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .navbar-collapse .nav-link {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .navbar-collapse .nav-right {
        gap: 0.5rem;
        padding-top: 1rem;
    }
    
    .navbar-collapse .theme-switcher,
    .navbar-collapse .login-btn {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
}

/* 性能优化 */
.navbar-toggler,
.navbar-collapse,
.nav-link {
    will-change: transform;
}

/* 无障碍支持 */
.navbar-toggler:focus {
    outline: 2px solid var(--text-color);
    outline-offset: 2px;
}

.navbar-collapse .nav-link:focus {
    outline: 2px solid var(--text-color);
    outline-offset: 2px;
    background-color: var(--hover-color);
}


/* 响应式管理器 - 实时布局切换样式 */

/* 布局过渡状态 */
.layout-transitioning {
    pointer-events: none; /* 过渡期间禁用交互 */
}

.layout-transitioning * {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 导航栏模式样式 */
.navbar.nav-mobile,
.navbar.nav-tablet {
    /* 移动端/平板导航样式 */
}

.navbar.nav-desktop {
    /* 桌面端导航样式 */
}

.navbar.nav-mobile .navbar-collapse,
.navbar.nav-tablet .navbar-collapse {
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    box-shadow: var(--card-shadow);
    padding: 1rem;
    margin-top: 0.5rem;
    z-index: 1000;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.navbar.nav-mobile .navbar-collapse.show,
.navbar.nav-tablet .navbar-collapse.show {
    transform: translateY(0);
    opacity: 1;
}

.navbar.nav-desktop .navbar-collapse {
    flex-direction: row;
    position: static;
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    transform: none;
    opacity: 1;
}

.navbar.nav-mobile .nav-items,
.navbar.nav-tablet .nav-items {
    position: relative;
    left: auto;
    transform: none;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 1rem;
}

.navbar.nav-desktop .nav-items {
    flex-direction: row;
    gap: 2rem;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.navbar.nav-mobile .nav-right,
.navbar.nav-tablet .nav-right {
    justify-content: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.navbar.nav-desktop .nav-right {
    justify-content: flex-end;
    padding-top: 0;
    border-top: none;
    width: auto;
    margin-left: auto;
}

/* 网格布局模式样式 */
.testimonials-grid.grid-mobile {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.testimonials-grid.grid-tablet {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.testimonials-grid.grid-desktop {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.features-grid.grid-mobile .row {
    --bs-gutter-x: 1rem;
}

.features-grid.grid-tablet .row {
    --bs-gutter-x: 1.5rem;
}

.features-grid.grid-desktop .row {
    --bs-gutter-x: 2rem;
}

.model-selector.grid-mobile {
    gap: 6px 10px;
    padding: 10px 5px;
}

.model-selector.grid-tablet {
    gap: 8px 12px;
    padding: 10px;
}

.model-selector.grid-desktop {
    gap: 8px 12px;
    padding: 10px;
}

/* 内容区域模式样式 */
.features-content.content-mobile {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
    text-align: center;
}

.features-content.content-tablet {
    flex-direction: column;
    gap: 35px;
    padding: 0 20px;
    text-align: center;
}

.features-content.content-desktop {
    flex-direction: row;
    gap: 40px;
    padding: 0;
    text-align: left;
}

.features-content.content-mobile .features-images,
.features-content.content-tablet .features-images {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding: 0 15px;
}

.features-content.content-desktop .features-images {
    max-width: 500px;
    margin-left: 40px;
    padding: 0;
}

.stats-layout.stats-mobile {
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.stats-layout.stats-tablet {
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.stats-layout.stats-desktop {
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
}

.stats-layout.stats-mobile .stats-sidebar {
    width: 100%;
    order: 2;
}

.stats-layout.stats-tablet .stats-sidebar {
    width: 100%;
    order: 2;
}

.stats-layout.stats-desktop .stats-sidebar {
    width: 200px;
    order: 1;
}

.stats-layout.stats-mobile .stats-main {
    order: 1;
}

.stats-layout.stats-tablet .stats-main {
    order: 1;
}

.stats-layout.stats-desktop .stats-main {
    order: 2;
}

/* 性能优化 - 使用transform替代布局属性 */
.navbar-collapse {
    will-change: transform, opacity;
}

.nav-items {
    will-change: transform;
}

.testimonials-grid,
.features-grid,
.model-selector {
    will-change: auto; /* 避免不必要的composite layer */
}


/* 响应式设计 */

/* 桌面端导航样式（默认） */
@media (min-width: 993px) {
    .navbar-toggler {
        display: none !important;
    }
    
    .navbar-collapse {
        display: flex !important;
        flex-direction: row;
        position: static;
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        transform: none;
        opacity: 1;
        width: auto;
        /* 确保flex布局正确 */
        flex-grow: 1;
        align-items: center;
        justify-content: space-between;
    }
    
    .nav-items {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        flex-direction: row !important;
        gap: 2rem !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        width: auto !important;
        display: flex !important;
        white-space: nowrap;
    }
    
    .nav-link {
        padding: 0.5rem 0 !important;
        border-bottom: none !important;
        text-align: left !important;
    }
    
    .nav-right {
        justify-content: flex-end !important;
        padding-top: 0 !important;
        border-top: none !important;
        width: auto !important;
        margin-left: auto !important;
        display: flex !important;
        align-items: center;
        gap: 1rem;
        flex-shrink: 0;
    }
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 平板横屏和小型桌面 (768px - 992px) */
@media (max-width: 992px) and (min-width: 769px) {
    /* 显示汉堡菜单按钮 */
    .navbar-toggler {
        display: block !important;
        order: 3;
    }

    /* 重置导航布局 */
    .navbar-collapse {
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        transform: none;
        background-color: var(--background-color);
        border: 1px solid var(--border-color);
        border-radius: 0.375rem;
        box-shadow: var(--card-shadow);
        padding: 1rem;
        margin-top: 0.5rem;
        z-index: 1000;
    }

    .navbar-collapse.show {
        display: flex !important;
    }

    .navbar-collapse:not(.show) {
        display: none !important;
    }

    .nav-items {
        position: relative;
        left: auto;
        transform: none;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        margin-bottom: 1rem;
    }

    .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-right {
        justify-content: center;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-color);
        width: 100%;
        position: relative;
        right: auto;
    }

    .navbar .container {
        position: relative;
    }

    .logo {
        order: 1;
        flex-grow: 1;
    }
}

@media (max-width: 768px) {
    /* 移动端显示汉堡菜单按钮 */
    .navbar-toggler {
        display: block !important;
        order: 3;
    }

    /* 移动端重置导航布局 */
    .navbar-collapse {
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        /* left: 0; */
        transform: none;
        background-color: var(--background-color);
        border: 1px solid var(--border-color);
        border-radius: 0.375rem;
        box-shadow: var(--card-shadow);
        padding: 1rem;
        margin-top: 0.5rem;
        z-index: 1000;
    }

    .navbar-collapse.show {
        display: flex !important;
    }

    .navbar-collapse:not(.show) {
        display: none !important;
    }

    .nav-items {
        position: relative; /* 移动端取消绝对定位 */
        left: auto;
        transform: none;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        margin-bottom: 1rem;
    }

    .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-right {
        justify-content: center;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-color);
        width: 100%;
        position: relative;
        right: auto;
    }

    .navbar .container {
        position: relative;
    }

    .logo {
        order: 1;
        flex-grow: 1;
    }
    /* 英雄区域移动端优化 */
    .hero {
        padding: 40px 15px 30px; /* 减少上下内边距，左右间距更紧凑 */
    }
    
    .hero h4 {
        font-size: 1.75rem; /* 调整标题大小更适合移动端 */
        line-height: 1.3;
        margin-bottom: 16px;
        padding: 0 10px; /* 左右增加一点内边距 */
    }
    
    .hero p {
        font-size: 16px; /* 调整描述文字大小 */
        line-height: 1.5;
        margin: 0 auto 30px;
        padding: 0 10px;
    }
    
    /* 打字机效果在移动端的优化 */
    .typewrite {
        font-size: 1.5rem;
    }
    /* 平台特性区域移动端优化 */
    .features {
        padding: 40px 0; /* 减少上下内边距 */
    }
    
    .features-content {
        flex-direction: column;
        gap: 30px; /* 调整间距 */
        padding: 0 15px; /* 左右增加内边距 */
    }
    
    .features-text {
        padding: 0; /* 取消原有的50px上下内边距 */
        text-align: center; /* 移动端居中显示 */
    }
    
    .features h2 {
        font-size: 2rem; /* 调整标题大小 */
        margin-bottom: 12px;
    }
    
    .features p {
        font-size: 1rem; /* 调整描述文字大小 */
        margin-bottom: 20px;
    }
    
    .features-list {
        text-align: left; /* 特性列表左对齐 */
        max-width: 100%;
    }
    
    .feature-item {
        margin-bottom: 12px; /* 增加特性项之间的间距 */
    }
    
    .features-images {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        padding: 0 15px; /* 图片容器左右内边距 */
    }
    
    /* 按钮在移动端的布局优化 - 一行显示 */
    .flex.align-items-center {
        flex-direction: row; /* 改为行布局，一行显示 */
        justify-content: center; /* 移动端居中对齐 */
        gap: 10px; /* 减小间距以适应移动端 */
        flex-wrap: wrap; /* 如果空间不够允许换行 */
    }
    
    .join-us-btn {
        margin-left: 0 !important; /* 取消左边距 */
        flex: 0 0 auto; /* 不伸缩，保持原始大小 */
        font-size: 12px; /* 移动端字体稍小 */
        padding: 6px 12px; /* 调整内边距使按钮更紧凑 */
        text-align: center;
    }
    /* 企业级能力区域移动端优化 */
    .testimonials {
        padding: 40px 0; /* 减少上下内边距 */
    }
    
    .testimonials .container {
        padding: 0 15px; /* 左右增加内边距 */
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* 调整卡片间距 */
        margin-top: 30px;
    }
    
    .testimonial-card {
        padding: 1.5rem; /* 调整卡片内边距 */
        margin-bottom: 0; /* 取消下边距，使用grid gap控制 */
    }
    
    .testimonial-card .icon {
        font-size: 1.5rem; /* 调整图标大小 */
        margin-bottom: 1rem;
    }
    
    .testimonial-card h3 {
        font-size: 1.125rem; /* 调整标题大小 */
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }
    
    .testimonial-card p {
        font-size: 0.9rem; /* 调整描述文字大小 */
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .testimonials h2 {
        font-size: 1.75rem; /* 调整主标题大小 */
        margin-bottom: 0.75rem;
        padding: 0 15px;
    }
    
    .testimonials .subtitle {
        font-size: 1.125rem; /* 调整副标题大小 */
        margin-bottom: 0.5rem;
        padding: 0 15px;
    }
    
    .testimonials .description {
        font-size: 0.9rem; /* 调整描述大小 */
        margin-bottom: 2rem;
        padding: 0 15px;
    }
    /* 数据统计和排行榜区域移动端优化 */
    .data-stats {
        padding: 40px 0; /* 减少上下内边距 */
    }
    
    .data-stats .container {
        padding: 0 15px; /* 左右增加内边距 */
    }
    
    .section-title {
        font-size: 1.75rem; /* 调整标题大小 */
        margin-bottom: 20px;
        padding: 0 15px;
    }
    
    /* 联系客户经理按钮优化 */
    .contact-manager-btn {
        margin-bottom: 25px;
        width: 100%;
        max-width: 250px;
    }
    
    .stats-layout {
        flex-direction: column;
        gap: 20px; /* 调整间距 */
        align-items: center; /* 移动端居中对齐 */
    }
    
    .stats-sidebar {
        width: 100%;
        order: 2; /* 让侧边栏在下方 */
    }
    
    .stats-main {
        order: 1; /* 让主要内容在上方 */
    }
    
    .metric-selector {
        flex-direction: row;
        justify-content: center;
        margin: 10px;
        gap: 10px;
    }
    
    .metric-btn {
        width: auto;
        flex: 1;
        max-width: 120px;
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .model-selector {
        justify-content: center;
        gap: 6px 10px;
        padding: 10px 5px;
    }

    .model-btn {
        font-size: 11px;
        padding: 0 6px;
        height: 20px;
        line-height: 18px;
    }
    
    .chart-container {
        height: 300px;
        padding: 10px;
        margin-bottom: 20px;
    }
    
    /* 排行榜区域优化 */
    .ranking-box {
        margin: 0 15px;
    }
    
    .time-selector {
        padding: 8px;
    }
    
    .time-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .ranking-item {
        padding: 12px;
    }
    
    .ranking-number {
        font-size: 14px;
        width: 28px;
    }
    
    .ranking-model {
        font-size: 14px;
        margin-left: 8px;
    }
    
    .ranking-tokens {
        font-size: 14px;
    }
    
    /* 通用容器优化 */
    .container {
        padding: 15px;
    }
    
    /* 通用区域间距优化 */
    section {
        margin-bottom: 20px;
    }
    
    /* 通用标题优化 */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    /* 通用按钮优化 */
    .hero-cta-btn,
    .join-us-btn,
    .contact-manager-btn {
        margin: 10px auto;
        display: block;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .footer-contact {
        align-items: center;
    }
}


/* 强制重排辅助类 */
.force-reflow {
    transform: translateZ(0);
    will-change: transform;
}

.force-reflow * {
    transform: translateZ(0);
    will-change: auto;
}

/* 工具类 */

.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 Banner 单图样式 */
.hero-banner {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto 0.5rem;
    padding-top: 5px;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hero 内容区域样式 */
.hero-content {
    text-align: center;
    padding: 10px 0 20px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

@keyframes title-gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-badge {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    font-size: 0.875rem;
    padding: 6px 16px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.highlight-text {
    color: #1f2937;
    font-weight: 600;
}

.hero-slogan {
    font-size: 1rem;
    color: #6b7280;
    margin: 8px 0 0;
}

[data-theme="dark"] .hero-slogan {
    color: #9ca3af;
}

.hero-description {
    font-size: 1rem;
    color: #1f2937;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.hero-description .highlight-text {
    font-weight: 600;
}

/* 模型标签 */
.hero-model-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.model-tag {
    padding: 8px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    color: #374151;
    background: #f3f4f6;
    transition: all 0.3s ease;
    cursor: default;
}

.model-tag:hover {
    color: #5a4fcf;
    background: #ede9fe;
}

/* 按钮组 */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: -10px;
}

.hero-doc-btn {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    border: none;
}

.hero-doc-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
    color: white;
}

.hero-doc-btn i {
    margin-right: 8px;
}

/* 企业级SLA保障徽章 - 高端权威设计 */
.enterprise-sla-badge {
    position: relative;
    display: inline-flex;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 3px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4, #8b5cf6);
    background-size: 200% 200%;
    animation: sla-border-flow 3s ease infinite;
}

@keyframes sla-border-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.sla-glow {
    position: absolute;
    inset: -8px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.3));
    filter: blur(20px);
    opacity: 0.6;
    animation: sla-glow-pulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes sla-glow-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.sla-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sla-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
    animation: sla-icon-float 3s ease-in-out infinite;
}

@keyframes sla-icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.sla-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.sla-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.sla-label {
    font-size: 11px;
    font-weight: 600;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.sla-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.5px;
}

.sla-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 14px;
    border-left: 1px solid rgba(59, 130, 246, 0.2);
}

.sla-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.sla-stat .stat-value {
    font-size: 16px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sla-stat .stat-label {
    font-size: 9px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sla-divider {
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

/* 暗色模式 */
[data-theme="dark"] .sla-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .sla-title {
    color: #f1f5f9;
}

[data-theme="dark"] .sla-label {
    color: #60a5fa;
}

[data-theme="dark"] .sla-stat .stat-label {
    color: #94a3b8;
}

[data-theme="dark"] .sla-stats {
    border-left-color: rgba(96, 165, 250, 0.2);
}

[data-theme="dark"] .sla-glow {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.4), rgba(34, 211, 238, 0.4), rgba(167, 139, 250, 0.4));
}

/* 响应式 - 移动端 */
@media (max-width: 768px) {
    .enterprise-sla-badge {
        margin-top: 20px;
        padding: 2px;
    }
    
    .sla-content {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
        text-align: center;
    }
    
    .sla-icon {
        width: 40px;
        height: 40px;
    }
    
    .sla-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .sla-text {
        align-items: center;
    }
    
    .sla-label {
        font-size: 10px;
    }
    
    .sla-title {
        font-size: 14px;
    }
    
    .sla-stats {
        padding-left: 0;
        padding-top: 12px;
        border-left: none;
        border-top: 1px solid rgba(59, 130, 246, 0.2);
        width: 100%;
        justify-content: center;
    }
    
    .sla-stat .stat-value {
        font-size: 16px;
    }
    
    .sla-stat .stat-label {
        font-size: 9px;
    }
}

/* 按钮下方提示文字 - 保留旧样式作为备用 */
.hero-cta-tip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #f97316;
    margin-top: 20px;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 88, 12, 0.1));
    border: 1px dashed #f97316;
    border-radius: 20px;
    animation: tip-pulse 2s ease-in-out infinite;
}

@keyframes tip-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 15px 0 rgba(249, 115, 22, 0.2);
    }
}

[data-theme="dark"] .hero-cta-tip {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(234, 88, 12, 0.15));
    color: #fb923c;
    border-color: #fb923c;
}

/* 暗色模式适配 */
[data-theme="dark"] .hero-title {
    color: #f3f4f6;
}

[data-theme="dark"] .hero-subtitle {
    color: #f3f4f6;
}

[data-theme="dark"] .hero-description {
    color: #e5e7eb;
}

[data-theme="dark"] .highlight-text {
    color: #f3f4f6;
}

[data-theme="dark"] .model-tag {
    background: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .model-tag:hover {
    background: #4b5563;
    color: #a5b4fc;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }
    .hero-description {
        font-size: 0.9rem;
        padding: 0 15px;
    }
    .model-tag {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
    .hero-cta-btn,
    .hero-doc-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
}

.hero-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gradient-from), var(--gradient-to));
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    margin: 10px 0 6px 0;
    border: none;
    will-change: transform;
    position: relative;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* 脉冲发光动画 */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4),
                    0 0 20px rgba(251, 191, 36, 0.2);
    }
    50% {
        box-shadow: 0 4px 20px rgba(251, 191, 36, 0.6),
                    0 0 40px rgba(251, 191, 36, 0.4),
                    0 0 60px rgba(251, 191, 36, 0.2);
    }
}

/* 商务合作按钮脉冲发光动画 */
@keyframes pulse-glow-contact {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4),
                    0 0 20px rgba(236, 72, 153, 0.2);
    }
    50% {
        box-shadow: 0 4px 20px rgba(236, 72, 153, 0.6),
                    0 0 40px rgba(236, 72, 153, 0.4),
                    0 0 60px rgba(236, 72, 153, 0.2);
    }
}

/* 火箭图标浮动动画 */
@keyframes rocket-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.hero-cta-btn i {
    margin-right: 8px;
    font-size: 16px;
    display: inline-block;
    animation: rocket-float 1.5s ease-in-out infinite;
}

.hero-cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(251, 191, 36, 0.5),
                0 0 50px rgba(251, 191, 36, 0.3);
    color: white;
    animation: none; /* 悬停时停止脉冲，突出悬停效果 */
}

.hero-cta-btn:active {
    transform: translateY(0) scale(0.98);
}

/* 商务合作按钮 - 与自助体验按钮大小一致 */
.hero-contact-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    margin: 10px 0 6px 0;
    border: none;
    will-change: transform;
    position: relative;
    animation: pulse-glow-contact 2s ease-in-out infinite;
}

.hero-contact-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(236, 72, 153, 0.5),
                0 0 50px rgba(236, 72, 153, 0.3);
    color: white;
    animation: none;
}

.hero-contact-btn:active {
    transform: translateY(0) scale(0.98);
}

/* 悬停显示二维码 - 默认隐藏 */
.contact-qrcode {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 15px;
    text-align: center;
    width: 180px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.contact-qrcode::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.contact-qrcode img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.contact-qrcode p {
    margin: 10px 0 0;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* 只有悬停时才显示二维码 */
.hero-contact-btn:hover .contact-qrcode {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 暗色模式下二维码弹窗 */
[data-theme="dark"] .contact-qrcode {
    background: var(--card-background);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .contact-qrcode::after {
    border-color: var(--card-background) transparent transparent transparent;
}

[data-theme="dark"] .contact-qrcode p {
    color: var(--secondary-color);
}

.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: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    margin-top: 15px;
    border: none;
    will-change: transform; /* 优化动画性能 */
}

.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;
    }
}


/* 博客尾部 */

.blog-footer {
    max-width: 1200px;
    margin: 2em auto 2em;
    padding-top: 2em;
    border-top: 1px solid var(--border-color, #e5e7eb);
    display: flex;
    justify-content: space-between;
}


/* 上一篇文章 */

.prev {
    display: flex;
    text-decoration: none;
    color: #57697d;
    img {
        margin: 0 1em;
        max-width: 120px;
        max-height: 80px;
        object-fit: cover;
        border-radius: 8px;
    }
    .prev_title {
        width: 400px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: black;
        font-size: 15px;
        font-weight: bold;
    }
}


/* 下一篇文章 */

.next {
    display: flex;
    text-decoration: none;
    color: #57697d;
    img {
        margin: 0 1em;
        max-width: 120px;
        max-height: 80px;
        object-fit: cover;
        border-radius: 8px;
    }
    .next_text {
        text-align: right;
    }
    .next_title {
        width: 400px;
        text-align: right;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: black;
        font-size: 15px;
        font-weight: bold;
    }
}


/* 微信图标悬浮效果 */

.social-icon.wechat-icon {
    position: relative;
}

.wechat-qrcode {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 10px;
    text-align: center;
    width: 150px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
    margin-bottom: 10px;
    will-change: opacity; /* 优化动画性能 */
}

.wechat-qrcode:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.wechat-qrcode img {
    width: 100%;
    border-radius: 4px;
    aspect-ratio: 1 / 1; /* 保持二维码正方形 */
}

.product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2; /* 300x200 比例 */
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.wechat-qrcode p {
    margin: 8px 0 0;
    font-size: 12px;
    color: #333;
}


/* 轮播图样式 */
.hero-carousel {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto 1rem;
    position: relative;
    /* 预留固定高度防止CLS */
    min-height: 350px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    background-color: var(--card-background);
    /* 添加骨架屏效果 */
    /* background-image: linear-gradient(90deg, #f0f0f0 25%, transparent 25%), 
                      linear-gradient(#f0f0f0 50%, transparent 50%); */
    background-size: 20px 20px;
    /* 防止布局偏移 */
    contain: layout;
}

.carousel-slides {
    position: relative;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
    /* 宽度将通过JavaScript动态设置 */
}

.carousel-slide {
    position: relative;
    height: 100%;
    flex-shrink: 0;
    cursor: pointer;
    /* 宽度将基于总slides数量计算 */
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 改为contain确保完整显示 */
    object-position: center;
    display: block;
    /* 防止图片加载闪烁 */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-slide img.loaded {
    opacity: 1;
}

/* 左右切换按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

/* 底部指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    /* left: 50%; */
    /* transform: translateX(-50%); */
    display: flex;
    gap: 8px;
    opacity: 1; /* 始终显示 */
    visibility: visible; /* 始终可见 */
    transition: all 0.3s ease;
    z-index: 2;
    justify-content: center; /* 内容居中 */
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 鼠标悬浮时显示控制按钮，指示器始终显示 */
.carousel-container:hover .carousel-btn {
    opacity: 1;
    visibility: visible;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero-carousel {
        max-width: 100%;
        margin: 0 0 1.5rem;
        min-height: 300px; /* 平板端减小预留高度 */
    }
    
    .carousel-container {
        height: 300px; /* 减小高度 */
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        min-height: 200px; /* 移动端进一步减小 */
    }
    
    .carousel-container {
        height: 200px; /* 移动端大幅减小高度 */
        border-radius: 6px;
    }
    
    .carousel-slides {
        position: relative;
        width: 100%;
        height: 100%;
    }
    
    .carousel-slide {
        position: relative;
        width: auto;
        height: 100%;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-prev {
        left: 15px;
    }
    
    .carousel-next {
        right: 15px;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
}

/* 700px以下开始使用contain确保图片完整显示 */
@media (max-width: 700px) {
    .carousel-slide img {
        object-fit: contain !important; /* 确保图片完整显示 */
        object-position: center;
        background-color: var(--card-background);
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        min-height: 180px; /* 小屏设备最小高度 */
    }
    
    .carousel-container {
        height: 180px; /* 小屏设备高度 */
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 10px;
        gap: 6px;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
}

/* 针对更小的屏幕（iPhone SE等）特别优化 */
@media (max-width: 375px) {
    .hero-carousel {
        min-height: 160px;
    }
    
    .carousel-container {
        height: 160px;
        margin: 0 -10px; /* 负边距让轮播图稍微突出容器边界 */
    }
    
    .carousel-slide img {
        object-fit: contain !important;
        width: 100%;
        height: 100%;
    }
}

/* Footer预留空间防止CLS */
#footer-placeholder {
    background-color: var(--card-background);
    position: relative;
}

/* PC端页脚占位符设置 */
@media (min-width: 1024px) {
    #footer-placeholder {
        min-height: 350px;
    }
}

/* 移动端页脚占位符设置 */
@media (max-width: 1023px) {
    #footer-placeholder {
        min-height: 500px; /* 移动端预留更多高度 */
    }
}

/* Footer加载状态 */
#footer-placeholder:empty::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--text-color);
    border-radius: 50%;
    animation: footer-spin 1s linear infinite;
}

@keyframes footer-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   Brand Logo Carousel - 仿 zenmux.ai 简约风格
   ======================================== */

/* 轮播容器 */
.brand-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: -10px;
    padding: 12px 0;
}

/* 渐变遮罩效果 */
.brand-carousel::before,
.brand-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.brand-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--background-color), transparent);
}

.brand-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--background-color), transparent);
}

/* 轮播轨道 */
.carousel-track {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 60px;
    width: max-content;
    animation: carousel-scroll 25s linear infinite;
}

/* 悬停暂停动画 */
.brand-carousel[data-animated="true"] .carousel-track:hover {
    animation-play-state: paused;
}

/* 无限滚动动画 */
@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 30px));
    }
}

/* 反向滚动动画 */
@keyframes carousel-scroll-reverse {
    0% {
        transform: translateX(calc(-50% - 30px));
    }
    100% {
        transform: translateX(0);
    }
}

/* 反向轮播样式 */
.brand-carousel.reverse .carousel-track {
    animation: carousel-scroll-reverse 25s linear infinite;
}

.brand-carousel.reverse {
    margin-top: 0;
    padding-top: 0;
}

/* 轮播项 */
.brand-carousel .carousel-track .carousel-item {
    flex-shrink: 0;
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
}

/* 品牌Logo - 优化hover效果 */
.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    transition: all var(--transition-normal);
    cursor: default;
    backdrop-filter: blur(4px);
}

.brand-logo svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    opacity: 0.8;
    transition: all var(--transition-normal);
}

.brand-logo span {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.5px;
}

.brand-logo:hover {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.brand-logo:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

/* 暗色模式 */
[data-theme="dark"] .brand-logo {
    background: rgba(55, 65, 81, 0.5);
    border: none;
    color: #9ca3af;
}

[data-theme="dark"] .brand-logo:hover {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

[data-theme="dark"] .brand-logo svg {
    opacity: 0.7;
}

[data-theme="dark"] .brand-logo:hover svg {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .brand-carousel {
        margin-top: 20px;
        padding: 15px 0;
    }

    .brand-carousel::before,
    .brand-carousel::after {
        width: 60px;
    }

    .carousel-track {
        gap: 40px;
        animation-duration: 18s;
    }

    .brand-logo {
        font-size: 0.95rem;
        gap: 8px;
    }

    .brand-logo svg {
        width: 20px;
        height: 20px;
    }
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        animation: none;
        overflow-x: auto;
        scroll-behavior: smooth;
    }

    .brand-carousel {
        overflow-x: auto;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   滚动动画系统
   ======================================== */

/* 滚动动画基础类 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 从左侧滑入 */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 从右侧滑入 */
.animate-slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 缩放进入 */
.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* 延迟动画类 */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }

/* 卡片网格渐进式动画 */
.testimonials-grid .testimonial-card:nth-child(1) { transition-delay: 0ms; }
.testimonials-grid .testimonial-card:nth-child(2) { transition-delay: 100ms; }
.testimonials-grid .testimonial-card:nth-child(3) { transition-delay: 200ms; }
.testimonials-grid .testimonial-card:nth-child(4) { transition-delay: 300ms; }
.testimonials-grid .testimonial-card:nth-child(5) { transition-delay: 400ms; }
.testimonials-grid .testimonial-card:nth-child(6) { transition-delay: 500ms; }