:root {
    /* 默认深色模式 */
    --accent-primary: #64ffda;
    --primary-bg: #0a192f;
    --secondary-bg: #112240;
    --text-primary-color: #e6f1ff;
    --text-secondary-color: #8892b0;
    --card-bg: rgba(255, 255, 255, 0.02);
    --border-color: rgba(255, 255, 255, 0.05);

    --header-bg: rgba(10, 25, 47, 0.95);
    --header-border: rgba(100, 255, 218, 0.1);

    --theme-toggle-shadow-color: rgba(100, 255, 218, 0.4);

    --hero-background-gradient: rgba(59, 130, 246, 0.1);
    --hero-h1-start: #e6f1ff;
    --hero-h1-end: #64ffda;
    --hero-p: #8892b0;

    --cta-button-bg: transparent;
    --cta-button-shadow:rgba(100, 100, 100, 0.6);
    --cta-button-text: #64ffda;
    --cta-button-border: 1px solid #64ffda;
    --cta-button-hover-bg: rgba(100, 255, 218, 0.1);
    --cta-button-hover-shadow: rgba(100, 255, 218, 0.2);

    --section-title-after-bg: #64ffda;

    --feature-card-border-hover: rgba(100, 255, 218, 0.2);
    --feature-icon-color: #64ffda;

    --ai-feature-visual-bg: linear-gradient(135deg, rgba(100, 255, 218, 0.1), rgba(100, 255, 218, 0.2));
    --ai-feature-visual-color: #64ffda;
    --ai-feature-visual-border: 1px solid rgba(100, 255, 218, 0.2);

    --input-group-bg: rgba(255, 255, 255, 0.05);
    --input-group-focus-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);

    --submit-btn-bg: #64ffda;
    --submit-btn-color: #0a192f;
    --submit-btn-shadow: 0 4px 6px rgba(100, 255, 218, 0.3);
    --submit-btn-shadow-hover: 0 6px 15px rgba(100, 255, 218, 0.4);

    --result-btn-bg: #64ffda;
    --result-btn-color: #0a192f;
    --result-btn-shadow: rgba(100, 255, 218, 0.3);
    --result-btn-shadow-hover: rgba(100, 255, 218, 0.3);

    --stat-positive: #86efac;
    /* 绿-300，暗色里更亮 */
    --stat-negative: #fca5a5;
    /* 红-300，暗色里更亮 */
}

/* 亮色模式 */
[data-theme="light"] {
    --accent-primary: #2563EB;
    --primary-bg: #F8FAFC;
    --secondary-bg: #F1F5F9;
    --text-primary-color: #1E293B;
    --text-secondary-color: #64748B;
    --card-bg: #FFFFFF;
    --border-color: rgba(148, 163, 184, 0.3);

    --header-bg: rgba(248, 250, 252, 0.95);
    --header-border: rgba(148, 163, 184, 0.3);

    --theme-toggle-shadow-color: rgba(37, 99, 235, 0.4);

    --hero-background-gradient: rgba(100, 255, 218, 0.1);
    --hero-h1-start: #2563EB;
    --hero-h1-end: #7C3AED;
    --hero-p: #64748B;

    --cta-button-bg: linear-gradient(135deg, #2563EB, #7C3AED);
    --cta-button-shadow: rgba(59, 130, 246, 0.3);
    --cta-button-text: white;
    --cta-button-border: none;
    --cta-button-hover-bg: linear-gradient(135deg, #2563EB, #7C3AED);
    --cta-button-hover-shadow: rgba(59, 130, 246, 0.4);

    --section-title-after-bg: linear-gradient(135deg, #2563EB, #7C3AED);

    --feature-card-border-hover: rgba(148, 163, 184, 0.3);
    --feature-icon-color: #2563EB;
    --ai-feature-visual-bg: linear-gradient(135deg, #2563EB, #7C3AED);
    --ai-feature-visual-color: white;
    --ai-feature-visual-border: 1px solid rgba(148, 163, 184, 0.3);

    --input-group-bg: #F1F5F9;
    --input-group-focus-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);

    --submit-btn-bg: linear-gradient(135deg, #2563EB, #7C3AED);
    --submit-btn-color: white;
    --submit-btn-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
    --submit-btn-shadow-hover: 0 6px 15px rgba(59, 130, 246, 0.4);

    --result-btn-bg: linear-gradient(135deg, #2563EB, #7C3AED);
    --result-btn-color: white;
    --result-btn-shadow: rgba(59, 130, 246, 0.3);
    --result-btn-shadow-hover: rgba(59, 130, 246, 0.3);

    --stat-positive: #16a34a;
    /* 绿-600 */
    --stat-negative: #dc2626;
    /* 红-600 */
    
}

* {
    margin: 0;
    /* 移除所有元素的外边距 */
    padding: 0;
    /* 移除所有元素的内边距 */
    box-sizing: border-box;
    /* 设置盒模型为border-box，确保元素的总宽度和高度包括边框和内边距 */
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    /* 设置全局字体为Inter，Helvetica Neue，或者无衬线字体 */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    /* 为背景颜色、文本颜色和边框颜色添加平滑过渡效果 */
}

body {
    background: var(--primary-bg);
    /* 设置背景颜色 */
    color: var(--text-primary-color);
    /* 设置文本颜色 */
    line-height: 1.6;
    /* 设置行高为1.6，增加文本的可读性 */
    overflow-x: hidden;
    /* 禁止水平滚动条 */
    min-height: 100vh;
    /* 确保页面至少占满整个视口高度 */
}

.container {
    width: 90%;
    /* 设置容器宽度为视口宽度的90% */
    max-width: 1200px;
    /* 设置容器最大宽度为1200px */
    margin: 0 auto;
    /* 自动左右居中 */
    padding: 0 20px;
    /* 左右内边距20px，保持页面内容与边缘的距离 */
}


/* 导航栏样式 */
header {
    padding: 20px 0;
    /* 设置导航栏上下内边距为20px */
    position: fixed;
    /* 设置导航栏固定在页面顶部 */
    width: 100%;
    /* 设置导航栏宽度为100%，填满整个屏幕宽度 */
    top: 0;
    /* 设置导航栏距离顶部为0，确保固定在页面顶部 */
    z-index: 1000;
    /* 设置导航栏的堆叠顺序，确保其显示在页面其他内容上方 */
    background-color: var(--header-bg);
    /* 设置导航栏背景颜色 */
    backdrop-filter: blur(10px);
    /* 添加毛玻璃效果，背景模糊 */
    border-bottom: 1px solid var(--header-border);
    /* 设置导航栏底部边框颜色 */
}

nav {
    display: flex;
    /* 使用 Flexbox 布局，使子元素按行或列排列 */
    justify-content: space-between;
    /* 在子元素之间均匀分配间距，第一个子元素左对齐，最后一个右对齐 */
    align-items: center;
    /* 将导航栏内的子元素垂直居中对齐 */
}

.logo {
    font-size: 24px;
    /* 设置字体大小为24px */
    font-weight: 700;
    /* 设置字体加粗 */
    color: var(--accent-primary);
    /* 设置文本颜色 */
    display: flex;
    /* 使用 Flexbox 布局 */
    align-items: center;
    /* 将 logo 内部元素垂直居中对齐 */
}

.logo i {
    margin-right: 10px;
    /* 设置 logo 内图标（i 标签）右侧的外边距为10px */
}

.nav-right {
    display: flex;
    /* 使用 Flexbox 布局，使子元素按行排列 */
    align-items: center;
    /* 将导航栏中的子元素垂直居中对齐 */
    gap: 20px;
    /* 设置子元素之间的间距为20px */
}

.nav-links {
    display: flex;
    /* 使用 Flexbox 布局，使列表项按行排列 */
    list-style: none;
    /* 移除列表项默认的项目符号 */
}

.nav-links li {
    margin-left: 30px;
    /* 设置每个导航链接（li 标签）左侧的外边距为30px */
}

.nav-links a {
    color: var(--text-primary-color);
    /* 设置链接文本颜色 */
    text-decoration: none;
    /* 移除链接的默认下划线 */
    font-weight: 500;
    /* 设置链接字体为500（中等加粗） */
    transition: color 0.3s ease;
    /* 设置文本颜色变化的平滑过渡效果，持续时间为0.3秒 */
    font-size: 15px;
    /* 设置链接的字体大小为15px */
    position: relative;
    /* 设置链接的定位为相对定位，以便后续使用绝对定位 */
}

/* 作用: 创建一个动态展开的下划线效果，初始时宽度为0，鼠标悬停时逐渐展开。 */
.nav-links a:after {
    content: '';
    /* 创建空的伪元素 */
    position: absolute;
    /* 绝对定位伪元素 */
    width: 0;
    /* 初始宽度为0 */
    height: 2px;
    /* 下划线高度为2px */
    bottom: -5px;
    /* 下划线距离链接底部5px */
    left: 0;
    /* 左对齐 */
    background: var(--accent-primary);
    /* 下划线颜色为主色 */
    transition: width 0.3s ease;
    /* 宽度变化时，添加平滑过渡 */
}

/* 作用: 鼠标悬停时改变链接文本的颜色为主色调 */
.nav-links a:hover {
    color: var(--accent-primary);
    /* 改变链接文本颜色为主色 */
}

/* 作用: 鼠标悬停时展开下划线，从左到右 */
.nav-links a:hover:after {
    width: 100%;
    /* 设置下划线宽度为100%，使其从左到右展开 */
}

/* 主题切换按钮 */
.theme-toggle {
    background: var(--card-bg);
    /* 设置按钮背景颜色 */
    border: 1px solid var(--border-color);
    /* 设置按钮边框颜色为自定义变量 --border-color */
    border-radius: 50%;
    /* 设置按钮为圆形 */
    width: 40px;
    /* 设置按钮宽度为40px */
    height: 40px;
    /* 设置按钮高度为40px */
    display: flex;
    /* 使用 Flexbox 布局，使内容居中 */
    align-items: center;
    /* 垂直居中对齐按钮内容 */
    justify-content: center;
    /* 水平居中对齐按钮内容 */
    cursor: pointer;
    /* 鼠标悬停时显示为指针，表示可点击 */
    transition: all 0.3s ease;
    /* 设置所有属性变化的平滑过渡效果，持续时间为0.3秒 */
}

.theme-toggle i {
    color: var(--text-primary-color);
    /* 设置图标颜色 */
}

.theme-toggle:hover {
    box-shadow: 0 0 10px var(--theme-toggle-shadow-color);
    /* 鼠标悬停时添加阴影效果 */
}


/* 默认：桌面显示主题按钮，隐藏菜单按钮和移动菜单 */
#themeToggle {
    display: inline-flex;
}

#menuToggle,
.mobile-menu {
    display: none;
}


/* 英雄区域样式 */
.hero {
    height: 100vh;
    /* 设置英雄区域的高度为视口高度 */
    display: flex;
    /* 使用 Flexbox 布局，使内容居中对齐 */
    align-items: center;
    /* 垂直居中对齐英雄区域内的内容 */
    padding-top: 80px;
    /* 设置上内边距为80px，避免内容被顶部遮挡 */
    position: relative;
    /* 设置相对定位，便于后续绝对定位子元素 */
    overflow: hidden;
    /* 隐藏溢出的内容 */
}

.hero::before {
    content: '';
    /* 创建空的伪元素 */
    position: absolute;
    /* 绝对定位伪元素 */
    top: 0;
    /* 设置伪元素顶部为0 */
    right: 0;
    /* 设置伪元素右边为0 */
    width: 100%;
    /* 设置伪元素宽度为100% */
    height: 100%;
    /* 设置伪元素高度为100% */
    z-index: -1;
    /* 设置伪元素位于内容的下层 */
    background: radial-gradient(circle at 50% 50%, var(--hero-background-gradient) 0%, transparent 50%);
    /* 设置渐变背景，形成柔和的光环效果 */
}

.hero-content {
    max-width: 650px;
    /* 设置内容区域最大宽度为650px */
    z-index: 2;
    /* 确保内容区域位于伪元素之上 */
}

.hero h1 {
    font-size: 3.5rem;
    /* 设置标题字体大小为3.5rem */
    margin-bottom: 20px;
    /* 设置标题底部的外边距为20px */
    background: linear-gradient(45deg, var(--hero-h1-start), var(--hero-h1-end));
    /* 设置标题的背景为从主文本颜色到强调色的线性渐变（45度方向） */
    -webkit-background-clip: text;
    /* 使用WebKit前缀，设置背景剪切区域为文字，这样背景渐变只显示在文字区域 */
    background-clip: text;
    /* 标准属性，设置背景剪切区域为文字 */
    -webkit-text-fill-color: transparent;
    /* 使用WebKit前缀，将文字填充颜色设为透明，以便背景渐变可见 */
    line-height: 1.2;
    /* 设置标题的行高为1.2，增加文本的可读性 */
}

.hero p {
    font-size: 1.2rem;
    /* 设置段落文字的字体大小为1.2rem */
    color: var(--hero-p);
    /* 设置段落文字颜色 */
    margin-bottom: 30px;
    /* 设置段落底部的外边距为30px */
}

.cta-button {
    display: inline-block;
    /* 设置按钮为行内块级元素，使其可以与其他元素并排显示 */
    padding: 14px 32px;
    /* 设置按钮的内边距，上下14px，左右32px */
    background: var(--cta-button-bg);
    /* 设置按钮背景为透明 */
    color: var(--cta-button-text);
    /* 设置按钮文字颜色 */
    border: var(--cta-button-border);
    /* 设置按钮边框为1px实线 */
    box-shadow: 0 2px 8px var(--cta-button-shadow);
    border-radius: 6px;
    /* 设置按钮圆角为6px，使按钮的边角变圆 */
    text-decoration: none;
    /* 移除按钮的文本下划线 */
    font-weight: 600;
    /* 设置按钮文字的字体粗细为600（较粗） */
    transition: all 0.3s ease;
    /* 设置所有属性变化的平滑过渡效果，持续时间为0.3秒 */
    cursor: pointer;
    /* 鼠标悬停时显示为指针，表示该元素可点击 */
    position: relative;
    /* 设置按钮为相对定位，为了后续定位伪元素或动画效果 */
    overflow: hidden;
    /* 隐藏按钮溢出的内容 */
}

.cta-button:hover {
    background: var(--cta-button-hover-bg);
    /* 鼠标悬停时，按钮背景颜色 */
    box-shadow: 0 6px 20px var(--cta-button-hover-shadow);
    /* 鼠标悬停时，按钮的阴影效果增加，营造更强的立体感 */
    transform: translateY(-2px);
    /* 鼠标悬停时，按钮向上移动2px，产生轻微的浮动效果 */
}

/* 功能区域样式 */
.features {
    padding: 200px 0;
    /* 设置功能区域的上下内边距为100px，左右内边距为0，增加空间感 */
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    /* 设置功能区域的背景颜色为自定义变量 --secondary-bg */
}

.section-title {
    text-align: center;
    /* 设置标题文本居中对齐 */
    margin-bottom: 60px;
    /* 设置标题底部的外边距为60px，增加标题与下方内容的间距 */
    font-size: 2.5rem;
    /* 设置标题字体大小为2.5rem */
    color: var(--text-primary-color);
    /* 设置标题文字颜色 */
    position: relative;
    /* 设置标题为相对定位，以便后续使用绝对定位的子元素 */
    display: inline-block;
    /* 设置标题为行内块级元素，确保其宽度适应内容 */
}

.section-title:after {
    content: '';
    /* 创建一个空的伪元素，作为装饰使用 */
    position: absolute;
    /* 设置伪元素的定位为绝对定位，方便精确控制位置 */
    width: 80px;
    /* 设置伪元素的宽度为80px */
    height: 3px;
    /* 设置伪元素的高度为3px，形成一条细线 */
    background: var(--section-title-after-bg);
    /* 设置伪元素的背景颜色 */
    bottom: -15px;
    /* 将伪元素定位在标题底部偏下15px */
    left: 50%;
    /* 将伪元素的左边距设置为50%，使其水平居中对齐 */
    transform: translateX(-50%);
    /* 使用transform使伪元素精准居中，修正因百分比定位导致的偏移 */
}

.features-grid {
    display: grid;
    /* 使用 CSS Grid 布局 */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* 设置网格的列布局，自动适应可用空间，每列最小宽度300px，最大宽度为1fr（即等分剩余空间） */
    gap: 30px;
    /* 设置网格项之间的间距为30px */
}

.feature-card {
    background: var(--card-bg);
    /* 设置卡片的背景颜色 */
    border-radius: 10px;
    /* 设置卡片的圆角为10px，使边角更加圆滑 */
    padding: 30px;
    /* 设置卡片的内边距为30px，增加内容与卡片边缘的间距 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* 设置卡片的变换和阴影效果的平滑过渡，持续时间为0.3秒 */
    border: 1px solid var(--border-color);
    /* 设置卡片的边框为1px实线 */
    height: 100%;
    /* 设置卡片高度为100%，使其充满父容器 */
    position: relative;
    /* 设置卡片为相对定位 */
    overflow: hidden;
    /* 隐藏溢出的内容 */
}

.feature-card:before {
    content: '';
    /* 创建一个空的伪元素 */
    position: absolute;
    /* 设置伪元素的定位为绝对定位 */
    top: 0;
    /* 将伪元素定位在卡片的顶部 */
    left: 0;
    /* 将伪元素定位在卡片的左侧 */
    width: 100%;
    /* 设置伪元素宽度为卡片的100% */
    height: 4px;
    /* 设置伪元素高度为4px，形成一条细线 */
    background: var(--accent-primary);
    /* 设置伪元素的背景颜色 */
}

.feature-card:hover {
    transform: translateY(-5px);
    /* 鼠标悬停时，卡片向上移动5px，产生浮动效果 */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    /* 鼠标悬停时，添加阴影效果，给卡片增加立体感 */
    border-color: var(--feature-card-border-hover);
    /* 鼠标悬停时，改变卡片边框颜色 */
}

.feature-icon {
    font-size: 2.5rem;
    /* 设置图标的字体大小为2.5rem */
    color: var(--feature-icon-color);
    /* 设置图标颜色为自定义变量 --accent-primary */
    margin-bottom: 20px;
    /* 设置图标底部的外边距为20px */
}

.feature-card h3 {
    margin-bottom: 15px;
    /* 设置标题底部的外边距为15px，增加标题与下方内容的间距 */
    font-size: 1.5rem;
    /* 设置标题的字体大小为1.5rem */
    color: var(--text-primary-color);
    /* 设置标题的文本颜色 */
}

.feature-card p {
    color: var(--text-secondary-color);
    /* 设置段落文本颜色 */
}


/* AI特色部分 */
.ai-features {
    padding: 100px 0;
    /* 设置AI特色部分的上下内边距为100px，左右内边距为0 */
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    /* 设置背景为从次要背景色到主背景色的135度线性渐变 */
}

.ai-feature {
    display: flex;
    /* 使用Flexbox布局，使内容横向排列 */
    align-items: center;
    /* 设置Flex项垂直居中对齐 */
    margin-bottom: 40px;
    /* 设置每个AI功能项底部外边距为40px */
    background: var(--card-bg);
    /* 设置背景颜色 */
    border-radius: 10px;
    /* 设置圆角为10px，使功能项边角更圆滑 */
    padding: 30px;
    /* 设置内边距为30px，确保内容与边缘有足够空间 */
    border: 1px solid var(--border-color);
    /* 设置边框为1px实线 */
}

.ai-feature:nth-child(even) {
    flex-direction: row-reverse;
    /* 针对偶数项，改变排列顺序，将内容和视觉部分反转 */
}

.ai-feature-content {
    flex: 1;
    /* 设置内容区域占据剩余空间 */
    padding: 0 30px;
    /* 设置左右内边距为30px */
}

.ai-feature-visual {
    flex: 1;
    /* 设置视觉区域占据剩余空间 */
    height: 250px;
    /* 设置视觉区域的高度为250px */
    background: var(--ai-feature-visual-bg);
    /* 设置背景为浅蓝色到透明的渐变效果 */
    border-radius: 10px;
    /* 设置圆角为10px，使视觉区域边角更圆滑 */
    display: flex;
    /* 使用Flexbox布局，使内容居中对齐 */
    align-items: center;
    /* 垂直居中对齐内容 */
    justify-content: center;
    /* 水平居中对齐内容 */
    color: var(--ai-feature-visual-color);
    /* 设置文本颜色 */
    font-size: 1.5rem;
    /* 设置字体大小为1.5rem */
    font-weight: 600;
    /* 设置字体粗细为600（中等加粗） */
    border: var(--ai-feature-visual-border);
    /* 设置边框为1px实线 */
}

/* 预测工具样式 */
.prediction-tool {
    padding: 200px 0px;
    background-color: var(--primary-bg);
    /* margin-top: 200px;
    margin-bottom: 200px; */
}

.tool-container {
    background: var(--secondary-bg);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary-color);
    display: flex;
    align-items: center;
}

.input-group label i {
    margin-right: 10px;
    color: var(--accent-primary);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-group-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary-color);
    font-size: 16px;
    transition: all 0.3s ease;
}


.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: var(--input-group-focus-shadow);
}


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

.submit-btn {
    background: var(--submit-btn-bg);
    color: var(--submit-btn-color);
    box-shadow: var(--submit-btn-shadow);
    border: none;
    padding: 16px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--submit-btn-shadow-hover);
}

/* 结果展示样式 - 透明无色 */
.results {
    margin-top: 40px;
    padding: 0;
    /* 去掉内边距 */
    background: transparent;
    /* 背景透明 */
    border: none;
    /* 去掉边框 */
    border-radius: 0;
    /* 去掉圆角 */
    display: none;
}

.results.visible {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 图表容器样式 */
.chart-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    /* iOS 惯性滚动 */
    border-top: 1px solid var(--border-color, #e5e7eb);
    /* 可选：分隔线 */
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    /* 可选：分隔线 */
}

/* 作为 ECharts 容器的“画布”——宽度由 JS 动态设置 */
.chart-canvas {
    /* 保留你原来的高度与内边距设定 */
    height: clamp(260px, 45vh, 420px);
    padding: 10px;
    /* 至少与视口等宽，避免出现空白 */
    min-width: 500px;
    /* 下面这条 width 会在 JS 里改成一个具体像素值 */
    width: 100%;
}

.chart-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.chart-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.chart-header {
    background: var(--secondary-bg);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    font-weight: 600;
}

.chart-container {
    height: 400px;
    padding: 15px;
}

/* 参数表格样式 */
.table-wrap {
    margin-top: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0px;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    min-width: 520px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--secondary-bg);
    font-weight: 600;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* 操作按钮容器 */
.result-action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

/* 按钮基础样式 */
.result-btn {
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 主按钮 */
.result-btn-primary {
    background: var(--result-btn-bg);
    color: var(--result-btn-color);
    box-shadow: 0 4px 6px var(--result-btn-shadow);
    border-radius: 6px;
}

/* 轮廓按钮 */
.result-btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

/* 悬停效果 */
.result-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--result-btn-shadow-hover);
}


/* 统计页面特定样式 */
.analytics {
    padding: 200px 0;
    background-color: var(--primary-bg);
}

.stats-total-value {
    font-size: 5rem;
    font-weight: 700;
    margin: 15px 0;
    color: var(--section-title-after-bg);
    background: var(--section-title-after-bg);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin: 15px 0;
}

.stat-label {
    color: var(--text-secondary-color);
    font-size: 0.9rem;
}

.stats-section {
    margin-top: 20px;
    margin-bottom: 50px;
}

.stat-echart-container {
    height: 400px;
}

#visit-hourly.stat-echart-container {
    height: 600px;
}

#visit-map.stat-echart-container {
    height: 600px;
}

#visit-calendar.stat-echart-container {
    height: 940px;
}

.section-header {
    display: flex;
    align-items: baseline;
    /* 保证副标题和标题对齐 */
    gap: 15px;
    /* 标题与副标题间距 */
    flex-wrap: nowrap;
}


#established-at {
    display: flex;
    /* 横向排列 */
    gap: 8px;
    /* 每个块之间的间距 */
    align-items: center;
    /* 垂直居中 */
}

#established-at .label {
    display: inline-flex;
    align-items: baseline;
}

#established-at .detail {
    margin-left: 2px;
    font-size: 1em;
}


/* 关于页面特定样式 */
.about {
    padding: 200px 0;
    background-color: var(--primary-bg);
}


/* 页脚样式 */
footer {
    background-color: var(--secondary-bg);
    padding: 70px 0 30px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
    margin-bottom: 50px;
}

.footer-column h3 {
    color: var(--accent-primary);
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    display: inline-block;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--accent-primary);
    bottom: -8px;
    left: 0;
}

.footer-column p,
.footer-column a {
    color: var(--text-secondary-color);
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.copyright {
    color: var(--text-secondary-color);
    font-size: 0.9rem;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    /* 移动端：隐藏桌面按钮，显示汉堡按钮和下拉菜单 */
    .nav-links {
        display: none;
    }
    #themeToggle {
        display: none;
    }
    #menuToggle {
        display: inline-flex;
    }

    .container {
        width: 95%;
        /* 宽度占满 */
        padding: 0 20px;
        /* 两侧留白减少 */
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .ai-feature {
        flex-direction: column !important;
    }

    .ai-feature-content {
        padding: 20px 0;
    }

    .ai-feature-visual {
        width: 100%;
        margin-bottom: 20px;
    }

    .chart-row {
        grid-template-columns: 1fr;
    }

    .result-action-buttons {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        /* 改为上下排列 */
        align-items: flex-start;
        /* 左对齐 */
        gap: 8px;
        /* 间距小一点 */
    }

    .stat-echart-container {
        height: 300px;
    }

    #visit-hourly.stat-echart-container {
        height: 400px;
    }

    #visit-map.stat-echart-container {
        height: 400px;
    }

    #visit-calendar.stat-echart-container {
        height: 5710px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.mobile-menu {
    position: absolute;
    right: 1rem;
    top: 64px;
    width: min(88vw, 320px);

    /* 背景和边框用变量 */
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;

    /* 阴影用按钮阴影色变量 */
    box-shadow: 0 12px 32px var(--cta-button-shadow);
    padding: 0.5rem 0;
    display: none;
    z-index: 1000;

    /* 动画 */
    transform: scale(0.95) translateY(-10px);
    opacity: 0;
    transform-origin: top right;
    transition: all 0.25s ease;
}

.mobile-menu.open {
    display: block;
    transform: scale(1) translateY(0);
    opacity: 1;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    margin: 0;
}

.mobile-menu a,
.mobile-menu .mobile-theme-btn {
    display: block;
    width: 100%;
    padding: 12px 18px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;

    /* 使用文字颜色变量 */
    color: var(--text-primary-color);

    transition: background 0.2s ease, color 0.2s ease;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.mobile-menu a:hover,
.mobile-menu .mobile-theme-btn:hover {
    background: var(--input-group-bg);
}

.menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

/* 声明页面样式 */
.agreement-section {
    padding: 100px 0px;
    background-color: var(--primary-bg);
}

.agreement-section ul {
    list-style: disc inside;
    /* 圆点在内容里面 */
    margin-left: 20px;
    /* 整体缩进 */
}

.agreement-section li {
    margin-bottom: 6px;
    /* 每行间距 */
}