/* 通用样式在这里略过 */

/* 添加响应式设计 */
@media (max-width: 768px) {
    .title_box, .price_box {
        flex-direction: column;
        align-items: center;
    }

    .price_info {
        width: 100%;
        margin-bottom: 10px;
    }

    .price_info:last-child {
        margin-bottom: 0;
    }

    .floating-ad {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .floating-ad .ad-content {
        margin-bottom: 10px;
    }

    .floating-ad .action-buttons .register-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 20px;
    }

    .price_info .label {
        font-size: 12px;
    }

    .price_info .value {
        font-size: 16px;
    }

    .section h2 {
        font-size: 18px;
    }

    footer {
        font-size: 12px;
    }
}

/* Reset some basic elements */
body, h1, h2, ul, li, a {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
}

/* 修改点：增加段落样式 */
p {
    margin: 0 0 16px 0; /* 增加段落间距，调整为16px */
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

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

/* Header */
header {
    background-color: #007bff;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 标题容器样式 */
.title_box {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* 价格信息整体样式 */
.price_box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.price_info {
    flex: 1 1 calc(25% - 20px); /* 均分布局 */
    text-align: center;
}

/* 标签文本样式 */
.price_info .label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

/* 价格值样式 */
.price_info .value {
    font-size: 18px;
    font-weight: bold;
    color: #000; /* 黑色字体 */
}

/* 涨跌幅样式 */
.price_info .value.percent {
    font-size: 18px;
    font-weight: bold;
}

/* 涨跌幅为正数（绿色） */
.price_info .value.percent.positive {
    color: #006400; /* 深绿色 */
}

/* 涨跌幅为负数（红色） */
.price_info .value.percent.negative {
    color: #8B0000; /* 深红色 */
}

/* Navigation ads */
.nav .navbar-item a:hover {
    background-color: #e9ecef;
    color: #007bff;
}

/* Articles */
.article {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.list-a li {
    margin-bottom: 10px;
}

.list-a li span {
    color: #888;
    font-size: 14px;
    margin-right: 10px;
}

.list-a li a {
    color: #007bff;
}

.links li a {
    color: #007bff;
    font-size: 16px;
}

.links li a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    background-color: #f0f0f0;
    padding: 10px 0;
    font-size: 14px;
    color: #555;
}

/* 底部悬浮广告样式 */
.floating-ad {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    background-color: #f8f9fa;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
    border-top: 2px solid #ddd;
}

.floating-ad .content-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.floating-ad .ad-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-ad .ad-content img {
    width: 32px;
    height: 32px;
}

.floating-ad .ad-text {
    font-size: 14px;
    color: #333;
}

.floating-ad .action-buttons .register-btn {
    background-color: #ff6f00;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
}

.floating-ad .action-buttons .register-btn:hover {
    background-color: #e65c00;
}

/* 自适应优化 */
@media (max-width: 768px) {
    .floating-ad {
        flex-direction: column;
        padding: 15px 10px;
        text-align: center;
    }

    .floating-ad .content-wrapper {
        justify-content: center;
    }

    .floating-ad .ad-content {
        justify-content: center;
    }

    .floating-ad .action-buttons .register-btn {
        width: 100%;
        max-width: 300px; /* 调整移动端按钮宽度 */
        margin-top: 10px;
    }
}
/* 添加 li 缩进样式 */
li {
    padding-left: 20px;
    text-indent: -10px;
    margin-bottom: 10px;
    line-height: 1.6;
}

ul, ol {
    margin: 0;
    padding-left: 20px;
}

ul ul, ol ol, ul ol, ol ul {
    padding-left: 10px;
}
/* 基本样式 */
.section h2 {
    margin-bottom: 20px;
    font-size: 20px;
    text-align: left;
}

.links {
    display: flex;
    flex-wrap: wrap; /* 自动换行 */
    gap: 10px; /* 列间距 */
    list-style: none; /* 移除默认列表样式 */
    padding: 0; /* 去除 ul 默认内边距 */
    margin: 0; /* 去除 ul 默认外边距 */
}

.links.two-columns li {
    flex: 1 1 calc(50% - 10px); /* 每列占50%，减去间距 */
    box-sizing: border-box; /* 包含内外边距 */
    text-align: center; /* 文本居中 */
}

.links li a {
    display: inline-block; /* 使链接支持 padding 和 margin */
    text-decoration: none; /* 去掉下划线 */
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    transition: background-color 0.3s ease;
    width: 100%; /* 链接充满 li */
    box-sizing: border-box; /* 确保宽度计算包含内边距和边框 */
}

.links li a:hover {
    background-color: #f0f0f0;
}

/* 响应式设计：小屏幕单列布局 */
@media (max-width: 768px) {
    .links.two-columns li {
        flex: 1 1 100%; /* 每行占100%宽度 */
    }
}


