/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* 容器样式 */
.container {
    max-width: 870px;
    margin: 0 auto;
    padding: 20px;
}

/* 币种表格样式 */
.coin-table {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eaedf1;
    box-shadow: 0 2px 12px 0 rgba(55, 99, 170, .06);
}

.coin-table-header {
    display: flex;
    align-items: center;
    padding: 15px;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #eaedf1;
}
.coin-table-header>div {
    width: 90px;
}

.coin-table-body {
    background-color: #fff;
}

.coin-item {
    text-decoration: none;
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eaedf1;
    font-size: 14px;
    color: #666;
}
.coin-item>div {
    width: 90px;
}
.coin-item:hover {
    background-color: #f9f9f9;
}

.coin-item:last-child {
    border-bottom: none;
}

/* 各列样式 */
.coin-info-col {
    flex: 1 !important;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    width: auto !important;
}

.coin-logo {
    margin-right: 10px;
}

.coin-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.coin-name {
    display: flex;
    flex-direction: column;
}

.coin-short-name {
    font-weight: bold;
    font-size: 15px;
    line-height: normal;
    margin-bottom: 6px;
    color: #333;
}

.coin-full-name {
    font-size: 13px;
    color: #999;
}

.coin-price-col {
    flex-shrink: 0;
}

.coin-price {
    font-weight: bold;
    color: #007bff;
}

.coin-change-col {
    flex-shrink: 0;
}

.coin-change {
    font-weight: bold;
}

.positive {
    color: #28a745 !important;
}

.negative {
    color: #dc3545 !important;
}

.interval-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #f5f5f5;
    cursor: pointer;
}

.interval-select:hover {
    background-color: #e0e0e0;
}

.interval-select:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}
.coin-high-col,
.coin-low-col {
    flex-shrink: 0;
}

.coin-high,
.coin-low {
    font-size: 14px;
}

.coin-volume-col {
    width: 150px;
    flex-shrink: 0;
}

.coin-volume {
    font-size: 14px;
}

.coin-market-cap-col {
    flex: 1;
    min-width: 150px;
}

.coin-market-cap {
    font-size: 14px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 5px;
}

.pagination a {
    display: inline-block;
    padding: 0 12px;
    height: 38px;
    line-height: 40px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.pagination a:hover {
    background-color: #0056b3;
}

.pagination span {
    margin: 0 5px;
    font-weight: bold;
    display: inline-block;
    padding: 0 12px;
    height: 38px;
    line-height: 40px;
}

.pagination span.current-page {
    background-color: #0056b3;
    color: #fff;
    border-radius: 4px;
}

/* 注册福利模块样式 */
.register-bonus {
    background: linear-gradient(135deg, #005dff, #005dff);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

.bonus-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    text-decoration: none;
}

.bonus-text {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.bonus-icon {
    font-size: 24px;
    animation: bounce 1s infinite;
}

.bonus-title {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.bonus-button {
    background-color: #fff;
    color: #005dff;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


@keyframes pulse {
    0% {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 6px 12px rgba(107, 134, 255, 0.4);
    }
    100% {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* 热门币种网格布局 */
.other-coins {
    margin: 30px 0 20px 0;
    font-size: 20px;
    color: #333;
    font-weight: bold;
}

.hot-coins-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.hot-coin-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px 0 rgba(55, 99, 170, .06);
    border: 1px solid #eaedf1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hot-coin-card:hover {
    box-shadow: 0 4px 16px 0 rgba(55, 99, 170, .12);
    transform: translateY(-2px);
}

.hot-coin-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hot-coin-logo {
    flex-shrink: 0;
}

.hot-coin-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.hot-coin-name {
    display: flex;
    flex-direction: column;
}

.hot-coin-short-name {
    font-weight: bold;
    font-size: 15px;
    color: #333;
    line-height: normal;
    margin-bottom: 4px;
}

.hot-coin-full-name {
    font-size: 12px;
    color: #999;
    line-height: normal;
}

.hot-coin-price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.hot-coin-price {
    font-weight: bold;
    font-size: 15px;
    color: #007bff;
}

.hot-coin-change {
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.hot-coin-change.positive {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745 !important;
}

.hot-coin-change.negative {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545 !important;
}

/* 币种详情页样式 */
.coin-detail {
    max-width: 870px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #eaedf1;
    box-shadow: 0 2px 12px 0 rgba(55, 99, 170, .06);
}

.coin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #eaedf1;
    box-shadow: 0 2px 12px 0 rgba(55, 99, 170, .06);
    flex-wrap: wrap;
    gap: 20px;
}

.coin-header-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.coin-header-logo {
    margin-right: 20px;
}

.coin-header-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.coin-header-info h1 {
    margin: 0;
    font-size: 22px;
    line-height: 26px;
    color: #222;
    margin-bottom: 10px;
}

.coin-header-info time {
    margin: 0;
    color: #999;
    font-size: 14px;
}

.coin-header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.coin-header-price,
.coin-header-change {
    text-align: right;
}

.coin-header-price-label,
.coin-header-change-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.coin-header-price-value {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.coin-header-change-value {
    font-size: 20px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.coin-header-change-value.positive {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745 !important;
}

.coin-header-change-value.negative {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545 !important;
}

.coin-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    flex: 1;
    border: 1px solid #eaedf1;
    box-shadow: 0 2px 12px 0 rgba(55, 99, 170, .06);
    padding: 20px;
    border-radius: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.coin-description {
    margin-bottom: 30px;
}

.coin-description h1 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

.coin-description p {
    color: #666;
    font-size: 15px;
    line-height: 2;
}

.back-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

.other-coins {
    margin-bottom: 20px;
}
/* 响应式设计 */

@media (max-width: 768px) {
    .coin-logo-col,
    .coin-name-col,
    .coin-price-col,
    .coin-change-col,
    .coin-high-col,
    .coin-low-col,
    .coin-volume-col,
    .coin-market-cap-col {
        width: 100%;
    }
    
    .coin-stats {
        display: grid;
        gap: 10px;
        grid-template-columns: repeat(auto-fit, minmax(100px, 2fr));
    }
    .stat-label {
        font-size: 13px;
        margin-bottom: 3px;
    }
    .stat-value {
        font-size: 15px;
    }
    .coin-header-logo {
        margin-right: 10px;
    }
    .coin-description h1 {
        font-size: 17px;
    }
    .coin-header-info h1 {
        font-size: 20px;
    }
    .bonus-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bonus-button {
        width: 100%;
        text-align: center;
    }
    
    .hot-coins-grid {
        grid-template-columns: 1fr;
    }
    
    .hot-coin-card {
        gap: 15px;
    }
    
    .coin-detail {
        margin-top: 0;
        padding: 15px;
    }
    
    .stat-item {
        padding: 10px;
    }
    
    .coin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .coin-header-left {
        width: 100%;
    }
    
    .coin-header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .coin-header-price,
    .coin-header-change {
        text-align: left;
    }
    .register-bonus {
        margin-bottom: 10px;
    }
    .container {
        padding: 10px;
    }
}