:root {
    --main-color: #5D3FD3;
    --light-purple: #f0edff;
    --dark-purple: #4a2fb8;
    --green-color: #28a745;
    --light-green: #e9f7ec;
    --gradient-primary: linear-gradient(135deg, #5D3FD3 0%, #8D71FF 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.page-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* 主要内容区域 */
.main-container {
    max-width: 1200px;
    margin: 15px auto 30px;
    padding: 0 20px;
}

/* 筛选器卡片 */
.filters-card {
    background: white;
    border-radius: 15px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

/* 下拉筛选器 */
.dropdown-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.custom-dropdown {
    position: relative;
    width: 200px;
}

.dropdown-btn {
    width: 100%;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.dropdown-btn:hover {
    border-color: var(--main-color);
}

.dropdown-btn .fas {
    transition: transform 0.3s ease;
}

.custom-dropdown.open .dropdown-btn .fas {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    margin-top: 5px;
    overflow: hidden;
}

.custom-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-purple);
    color: var(--main-color);
}

/* 筛选器组 */
.filter-group {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.filter-label {
    flex-shrink: 0;
    width: 60px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    line-height: 36px;
}

.filter-options {
    flex: 1;
    min-width: 0;
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    line-height: 1.2;
}

/* 标签筛选器样式已在filter-group中定义 */

.filter-tag {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-tag:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}

.filter-tag.active {
    background: var(--main-color);
    color: white;
    border-color: var(--main-color);
}

/* 图表卡片 */
.chart-card {
    background: white;
    border-radius: 15px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.chart-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.chart-title::before {
    content: '';
    width: 5px;
    height: 22px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* 说明卡片 */
#description-container {
    background-color: var(--light-purple);
    border: 1px solid #dcd2ff;
    color: var(--dark-purple);
}

#description-container p {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

/* 新增卡片样式 */
.info-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.card-title-custom {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title-custom i {
    color: var(--main-color);
}

.card-text-custom {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* 自定义列表样式 */
.custom-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.custom-list li {
    padding: 12px 5px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.custom-list li:last-child {
    border-bottom: none;
}

.custom-list li:hover {
    background-color: #f8f9fa;
}

.custom-list a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.custom-list a:hover {
    color: var(--main-color);
}

.limited-height-img {
    max-height: 230px;
    width: 100%;
    object-fit: cover;
}

/* 价格统计样式 */
.price-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-grow: 1;
}

.stat-item {
    text-align: center;
    padding: 0 10px;
    position: relative;
}

.stat-item:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 35px;
    background-color: #eee;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: #333;
}
.change-percent {
    color: var(--green-color);
}
.change-percent.negative {
    color: #dc3545;
}

/* 热门号码表格样式 */
.hot-numbers-table .table {
    margin-bottom: 0;
}
.hot-numbers-table .table th {
    background-color: #f7f5ff;
    color: var(--dark-purple);
    border: none;
    font-weight: 600;
}
.hot-numbers-table .table td {
    vertical-align: middle;
    font-weight: 500;
}
.trend-link {
    color: var(--main-color);
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
}
.trend-link:hover {
    color: var(--dark-purple);
}

/* 响应式 */
@media (max-width: 768px) {
    .dropdown-filters {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    .custom-dropdown {
        width: 100%;
    }
    
    .filter-group {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .filter-label {
        width: auto;
        line-height: 1.4;
    }
    
    .filter-options {
        width: 100%;
    }
}