/* CSS变量定义 */
:root {
    --主体背景: #0a0c10;
    --次主体背景: #121824;
    --次要背景: rgba(22, 30, 44, 0.9);
    --主体文字颜色: #f3f4f6;
    --次主体文字颜色: #9ca3af;
    --主题强调色: #10b981;
    --主题强调色深色: #047857;
    --危险色: #ef4444;
    --成功色: #10b981;
    --边框颜色: rgba(63, 73, 92, 0.4);
    --卡片背景色: rgba(22, 30, 44, 0.85);
    --拟态背景色: rgba(22, 30, 44, 0.85);
    --阴影色: rgba(0, 0, 0, 0.4);
    --悬停色: rgba(16, 185, 129, 0.1);
}

/* 浅色主题 */
.浅色主题 {
    --主体背景: #ffffff;
    --次主体背景: #f8fafc;
    --次要背景: rgba(255, 255, 255, 0.95);
    --主体文字颜色: #1e293b;
    --次主体文字颜色: #64748b;
    --主题强调色: #10b981;
    --主题强调色深色: rgba(3, 105, 81, 0.9);
    --危险色: #dc2626;
    --成功色: #059669;
    --边框颜色: rgba(226, 232, 240, 0.8);
    --卡片背景色: rgba(0, 0, 0, 0.02);
    --拟态背景色: rgba(255, 255, 255, 0.85);
    --阴影色: rgba(0, 0, 0, 0.15);
    --悬停色: rgba(4, 120, 87, 0.08);
}
a {
    color: var(--主体文字颜色);
}
.layui-card-body {
    padding: 40px 30px 20px;
}
.layui-tab-title {
    border: 0;
    padding: 15px 10px 10px;
}
.layui-tab-title li {
    font-size: 18px;
    padding: 0;
    margin: 0 15px;
    min-width: auto;
}
.layui-tab-title .layui-this {
    color: #009688;
}
.layui-tab-title .layui-this:after {
    border-bottom: 3px var(--主题强调色) solid !important;
}
#移动端导航 .layui-nav {
    width: 100%;
    display: block;
}
#移动端导航 .layui-nav-tree .layui-nav-item a {
    height: 28px;
    line-height: 28px;
}
.提示 {
    background: #24292e;
    height: 32px;
    line-height: 32px;
    color: #b7bdc4;
    font-size: 12px;
}
body {
    font-family: "微软雅黑", "Inter", sans-serif;
    background-color: var(--主体背景);
    color: var(--主体文字颜色);
    overflow-x: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 1280px;
}
.layui-container {
    min-width: 1250px;
}
.格子背景 {
    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: 20px 20px;
    transition: background-image 0.3s ease;
}
.浅色主题.格子背景 {
    background-image: linear-gradient(rgb(76 175 80 / 3%) 1px, transparent 1px), linear-gradient(90deg, rgb(76 175 80 / 3%) 1px, transparent 1px);
    background-size: 20px 20px;
    transition: background-image 0.3s ease;
}
#头部 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 15px;
    box-sizing: border-box;
}
#移动端导航按钮 {
    display: none;
}
.主题切换 {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: none;
    color: var(--主体文字颜色);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 0;
    height: 0;
    border-top: 50px solid var(--边框颜色);
    border-left: 50px solid transparent;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    z-index: 1;
}
.主题切换 i {
    position: absolute;
    top: -40px;
    right: 5px;
    transition: all 0.3s ease;
}
.主题切换:hover i {
    transform: scale(1.2);
}
.主题切换.选中 {
    border-top-color: var(--边框颜色);
}
.主题切换.选中 i {
    color: #161e2cd9;
}
header {
    width: 100%;
    position: sticky;
    top: 0;
    background: var(--拟态背景色);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-box-shadow: 0 4px 20px var(--阴影色);
    box-shadow: 0 4px 20px var(--阴影色);
    transition: all 0.3s ease;
    z-index: 99;
}
section,
#carousel {
    margin-top: 30px;
}
.数据滚动 {
    display: -webkit-flex;
    display: flex;
}
.价格上涨 {
    color: var(--成功色);
}
.价格下跌 {
    color: var(--危险色);
}
.行情数据项 a {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}
.行情数据项 img {
    width: 16px;
    height: 16px;
    object-fit: cover;
    border-radius: 100%;
    margin-right: 5px;
}
.行情数据项:hover {
    background-color: var(--悬停色);
}
.layui-btn-primary {
    background: linear-gradient(135deg, var(--主题强调色) 0%, var(--主题强调色深色) 100%);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
.layui-btn-primary:hover {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.layui-nav {
    background-color: transparent;
    border: none;
    display: flex;
}
.layui-nav-item a {
    color: var(--主体文字颜色) !important;
    font-size: 16px;
    white-space: nowrap;
}
.layui-nav-item a:hover,
.layui-nav-itemed > a {
    color: var(--主题强调色);
}
.layui-nav-bar {
    background-color: var(--主题强调色);
}
.layui-card {
    background-color: var(--卡片背景色);
    border: 1px solid var(--边框颜色);
    transition: all 0.3s ease;
    border-radius: 15px;
    box-shadow: 0px 8px 2px 0px rgb(255 255 255 / 5%);
}
.浅色主题 .layui-card {
    box-shadow: 0px 8px 2px 0px rgb(0 0 0 / 5%);
}
.layui-card-header {
    border-bottom: 1px solid var(--边框颜色);
    color: var(--主体文字颜色);
    font-weight: 600;
}
.浅色主题 .layui-card-header {
    border-bottom: none;
}
.logo a {
    display: flex;
    align-items: center;
}
.logo img {
    height: 52px;
    margin-right: 0.75rem;
    border-radius: 0.5rem;
}
.logo_文字 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--主体文字颜色);
    white-space: nowrap;
}
.logo_文字 span {
    color: var(--主题强调色);
}
.logo_上文字 {
    font-size: 0.875rem;
}
/* 搜索框样式 */
.导航右侧 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.搜索区块 {
    position: relative;
    margin-right: 1rem;
}
.搜索区块 i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--次主体文字颜色);
}
.搜索输入框 {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--边框颜色);
    color: var(--主体文字颜色);
    transition: all 0.3s ease;
}
.搜索输入框:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--主题强调色);
    outline: none;
}
/* 用户头像 */
.用户头像,
#移动端导航按钮 {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background-color: var(--新闻徽章-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--主题强调色);
    transition: all 0.3s ease;
}
#移动端导航按钮 {
    color: #fff;
    margin-left: 10px;
    box-sizing: content-box;
    padding: 0;
    display: none;
    position: relative;
    z-index: 2;
}
.用户头像:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--主题强调色);
}
/* 新闻项样式 */
.新闻项 {
    display: flex;
    flex-direction: row;
    gap: 25px;
    padding: 1.5rem;
    border-bottom: 1px solid var(--边框颜色);
    transition: all 0.3s ease;
}
.新闻项:hover {
    background-color: var(--悬停色);
}
.新闻图像容器 {
    margin-bottom: 1rem;
}
.新闻图像 {
    width: 225px;
    height: 12rem;
    object-fit: cover;
    border-radius: 0.5rem;
}
.新闻内容 {
    flex: 1;
}
.新闻元信息 {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}
.新闻徽章 {
    background-color: var(--新闻徽章-bg);
    color: var(--主题强调色);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.75rem;
}
.新闻时间 {
    color: var(--次主体文字颜色);
    font-size: 0.875rem;
}
.新闻标题 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--主体文字颜色);
    margin-bottom: 0.75rem;
}
.新闻摘要 {
    color: var(--次主体文字颜色);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.新闻底部 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.新闻阅读数 {
    display: flex;
    align-items: center;
    color: var(--次主体文字颜色);
    font-size: 0.875rem;
}
.新闻阅读 {
    margin-right: 1rem;
}
.新闻阅读 i,
.新闻评论 i {
    margin-right: 0.25rem;
}
.阅读更多 {
    color: var(--主题强调色);
    display: flex;
    align-items: center;
}
.阅读更多 i {
    margin-left: 0.5rem;
}
/* 卡片样式 */
.卡片头部 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.卡片标题 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--主体文字颜色);
    display: flex;
    align-items: center;
}
.卡片标题 i {
    color: var(--主题强调色);
    margin-right: 0.5rem;
}
.卡片更多 {
    color: var(--主题强调色);
    display: flex;
    align-items: center;
}
.卡片更多 i {
    margin-left: 0.25rem;
    font-size: 0.875rem;
}
/* 轮播 */
.首页轮播项 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 市场数据样式 */
.实时行情数据 {
    background-color: var(--次要背景);
    border-top: 1px solid var(--边框颜色);
    border-bottom: 1px solid var(--边框颜色);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    overflow: hidden;
}
.数据滚动容器 {
    display: flex;
    gap: 1.5rem;
}
.行情货币 {
    color: var(--主体文字颜色);
    font-weight: 500;
    margin-right: 0.5rem;
}
.行情价格 {
    color: var(--主体文字颜色);
    margin-right: 0.75rem;
}
.行情变化 {
    display: flex;
    align-items: center;
}
.行情变化 i {
    margin-right: 0.25rem;
}
/* 浅色主题下导航背景设置为深绿色 */
.浅色主题 header {
    background: linear-gradient(180deg, var(--主题强调色) 0%, var(--主题强调色深色) 100%);
    border-color: var(--主题强调色深色);
}

/* 浅色主题调整 */
.浅色主题 header .logo_文字,
.浅色主题 header .logo_上文字,
.浅色主题 header .layui-nav-item a,
.浅色主题 header .搜索输入框::placeholder,
.浅色主题 header .搜索区块 i {
    color: white !important;
}
.浅色主题 header .用户头像 {
    background: #fff;
    color: var(--主题强调色深色);
}
.浅色主题 .logo_文字 span {
    color: #ffeb3b;
}
.浅色主题 header .搜索输入框 {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}
.浅色主题 header .搜索输入框:focus {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: white;
}
header .layui-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
/* 页脚样式 */
footer {
    background-color: rgba(22, 30, 44, 85%);
    border-top: 1px solid var(--边框颜色);
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}
.网页底部LOGO {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.网页底部LOGO div {
    margin-right: 0.5rem;
}
.网页底部LOGO img {
    height: 2rem;
    display: block;
}
.网页底部LOGO span {
    color: var(--主题强调色);
}
.网页底部声明 {
    color: #9ca3af;
    margin-bottom: 1rem;
}
.网页底部链接容器 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.网页底部链接 {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.网页底部链接 a {
    color: #9ca3af;
    transition: color 0.3s ease;
}
.网页底部链接 a:hover {
    color: var(--主题强调色);
}
.网页底部分享 {
    display: flex;
    gap: 1rem;
}
.网页底部分享 a {
    color: #9ca3af;
    transition: color 0.3s ease;
}
.网页底部分享 a:hover {
    color: var(--主题强调色);
}
.网页底部备案 {
    border-top: 1px solid rgba(55, 65, 81, 0.5);
    text-align: center;
    margin-top: 1.5rem;
}
.网页底部版权 {
    color: #9ca3af;
    font-size: 0.875rem;
}
.网页底部ICP {
    margin-top: 0.5rem;
}
.网页底部ICP a {
    color: #9ca3af;
    font-size: 0.875rem;
}
/*@media (max-width: 768px) {
    .首页轮播项标题 {
        字体-大小: 1.875rem;
    }
    .新闻项 {
        弹性布局-方向: 水平显示;
        gap: 1.5rem;
    }
    .新闻图像容器 {
        宽度: 33.3333%;
        下边距: 0;
    }
    .新闻内容 {
        宽度: 66.6667%;
    }
    .网页底部链接 {
        弹性布局-换行: 换行;
    }
    .网页底部链接容器 {
        弹性布局-方向: 垂直显示;
    }
    .logo_文字{
        字体-大小: 1.2rem;
    }
}
@media (min-width: 1024px) {
    #桌面端导航 {
        显示模式: 无效;
    }
}
@media (max-width: 1024px) {
    #桌面端导航 {
        显示模式: 无效;
    }
    .搜索区块 {
        显示模式: 无效;
    }
    #移动端导航按钮 {
        显示模式: 块级元素;
    }
}*/
@media (max-width: 1440px) {
    #桌面端导航 {
        display: flex;
    }
    .layui-container {
        max-width: 1280px;
    }
    .layui-nav-item a {
        padding: 0 0.2rem !important;
    }
    .logo_上文字 {
        font-size: 0.6rem;
    }
    .logo_文字 {
        font-size: 1.2rem;
    }
    .卡片标题 {
        font-size: 1rem;
    }
}
@media (min-width: 1440px) {
    .layui-container {
        max-width: 1400px;
        width: 100% !important;
    }
    .layui-nav-item a {
        padding: 0 0.8rem !important;
    }
}