/* 加密货币价格模块核心样式 */
#crypto-price-module { 
    margin: 0px 0 5px; 
    min-height: 50px;
}

.crypto-module {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 25px;
    color: #fff;
    border: 1px solid #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

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

.crypto-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f0b90b, #ff6b6b, #4ecdc4);
}

.crypto-loading,
.crypto-error {
    text-align: center;
    padding: 40px 20px;
    border-radius: 12px;
    margin: 10px 0;
}

.crypto-loading {
    background: #f8f9fa;
    color: #666;
    border: 2px dashed #dee2e6;
}

.crypto-error {
    background: #fff5f5;
    color: #c53030;
    border: 2px dashed #fc8181;
}

.crypto-error h3 {
    margin-top: 0;
    color: #c53030;
}

.coin-name {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #fff;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.coin-fullname {
    font-size: 18px;
    color: #a0aec0;
    font-weight: 500;
}

.current-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.price-usd {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.price-cny {
    font-size: 24px;
    color: #cbd5e0;
    font-weight: 600;
}

.price-change {
    font-size: 20px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
}

.price-change.positive { 
    color: #0ecb81; 
    background: rgba(14, 203, 129, 0.15); 
}

.price-change.negative { 
    color: #f6465d; 
    background: rgba(246, 70, 93, 0.15); 
}

.update-time {
    font-size: 14px;
    color: #a0aec0;
    margin-top: 5px;
}

.crypto-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.coin-info { 
    flex: 1; 
    min-width: 300px; 
}

.coin-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.btn-trade,
.btn-official {
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
    border: 2px solid transparent;
    font-size: 16px;
    display: inline-block;
}

.btn-trade {
    background: #f0b90b;
    color: #1a1a1a;
}

.btn-trade:hover {
    background: #e6b008;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 185, 11, 0.4);
}

.btn-official {
    background: transparent;
    color: #fff;
    border-color: #4a5568;
}

.btn-official:hover {
    border-color: #f0b90b;
    background: rgba(240, 185, 11, 0.1);
}

/* 统计数据样式 */
.crypto-stats {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stat-label {
    font-size: 13px;
    color: #a0aec0;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.crypto-tips {
    background: rgba(240, 185, 11, 0.1);
    border-left: 4px solid #f0b90b;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: #e2e8f0;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .crypto-module { padding: 20px; }
    .crypto-header { flex-direction: column; }
    .coin-info { min-width: auto; }
    .coin-actions { width: 100%; justify-content: center; }
    .btn-trade, .btn-official { flex: 1; max-width: 200px; }
    .price-usd { font-size: 30px; }
    .price-cny { font-size: 20px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .current-price { flex-direction: column; align-items: flex-start; gap: 10px; }
    .coin-actions { flex-direction: column; }
    .btn-trade, .btn-official { width: 100%; max-width: none; }
    .stats-row { grid-template-columns: 1fr; }
}

/* =================== 首页多币种价格模块 =================== */
.crypto-multi-module {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 25px;
    color: #fff;
    border: 1px solid #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
    margin: 0px 0 30px;
}

.crypto-multi-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f0b90b, #ff6b6b, #4ecdc4);
}

.crypto-multi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.crypto-multi-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.crypto-multi-title i {
    color: #f0b90b;
    font-size: 26px;
}

.multi-update-time {
    font-size: 14px;
    color: #a0aec0;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 20px;
}

/* 三列布局 */
.crypto-three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.crypto-column {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.crypto-column:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.coin-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.coin-column-symbol {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.coin-column-fullname {
    font-size: 14px;
    color: #a0aec0;
    margin-top: 4px;
}

.coin-column-price {
    margin: 15px 0;
}

.column-price-usd {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
}

.column-price-cny {
    font-size: 16px;
    color: #cbd5e0;
}

.column-price-change {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    margin-top: 10px;
}

.column-price-change.positive {
    background: rgba(14, 203, 129, 0.15);
    color: #0ecb81;
}

.column-price-change.negative {
    background: rgba(246, 70, 93, 0.15);
    color: #f6465d;
}

.column-stats {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.column-stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.column-stat-label {
    color: #a0aec0;
}

.column-stat-value {
    color: #fff;
    font-weight: 600;
}

.crypto-column-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.btn-column-trade {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(240, 185, 11, 0.2);
    color: #f0b90b;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(240, 185, 11, 0.3);
}

.btn-column-trade:hover {
    background: rgba(240, 185, 11, 0.3);
    transform: translateY(-2px);
}

.crypto-multi-loading {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #a0aec0;
    font-size: 16px;
}

.crypto-multi-loading:after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f0b90b;
    border-top-color: transparent;
    border-radius: 50%;
    margin-left: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.crypto-multi-refresh {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #a0aec0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.crypto-multi-refresh:hover {
    background: rgba(240, 185, 11, 0.2);
    color: #f0b90b;
    transform: rotate(180deg);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .crypto-three-columns {
        gap: 15px;
    }
    
    .crypto-column {
        padding: 15px;
    }
    
    .column-price-usd {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .crypto-three-columns {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .crypto-multi-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .crypto-multi-refresh {
        position: relative;
        top: auto;
        right: auto;
        margin-left: auto;
    }
    
    .coin-column-symbol {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .crypto-three-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .crypto-column {
        padding: 20px;
    }
    
    .crypto-multi-module {
        padding: 20px;
    }
}
