/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --text: #333;
    --border: #e2e8f0;
    --shadow: 0 3px 10px rgba(0, 0, 0, 0.06)
}
body {
    font-family: Arial, sans-serif;
    background-color: #f8fafc;
    color: #333;
    line-height: 1.6;
}
a,a:hover {
    text-decoration: none;
    color: #333;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    margin-bottom: 30px;
}

header h1 {
    text-align: center;
    font-size: 24px;
}
.vas-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.vas-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.vas-content span {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}
.vas-button {
    background: white;
    color: #667eea;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    color: #667eea !important;
    transition: all 0.3s ease;
}
.vas-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.crypto-container {
    width: 100%;
    background-color: #fff;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.crypto-header {
    display: flex;
    background-color: #f8fafc;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    color: #666;
    border-bottom: 1px solid var(--border);
}

.crypto-row {
    align-items: center;
    display: flex;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s ease;
}

.crypto-row:hover {
    background-color: #f8fafc;
}

.crypto-row:last-child {
    border-bottom: none;
}

.crypto-col {
    padding: 12px 15px;
    font-size: 14px;
    text-align: right;
    flex: 1;
    position: relative;
}

/* 调整列宽比例，确保名称列有足够空间 */
.name-col {
    text-align: left;
    flex: 2;
}

.price-col,
.change-col,
.high-col,
.low-col {
    flex: 1.2;
}

.market-cap-col,
.circulate-col,
.volume-col {
    flex: 1.5;
}

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

.crypto-info img {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f5f9;
    padding: 4px;
}

.crypto-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.crypto-symbol {
    font-weight: bold;
    color: var(--text);
    font-size: 15px;
}

.crypto-fullname {
    color: #666;
    font-size: 13px;
}


.crypto-header .crypto-col {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.positive {
    color: #28a745;
}

.negative {
    color: #dc3545;
}
.part {
    margin: 20px 0;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.part-title {
    font-size: 17px;
    margin-bottom: 20px;
}

.change span {
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-weight: bold;
    display: inline-block;
}

.change .positive {
    background-color: rgba(40, 167, 69, 0.1);
}

.change .negative {
    background-color: rgba(220, 53, 69, 0.1);
}

.pagination {
    margin-top: 30px;
    display: flex;
    font-size: 14px;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination-link {
    padding: 5px 13px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination-link:hover:not(.active):not(.disabled) {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.pagination-link.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.pagination-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}


/* 币种详情页样式 */
.crypto-detail-container {
    max-width: 1000px;
    margin: 20px auto;
}

.crypto-detail-container .crypto-header {
    display: block;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-transform: none;
    font-size: 16px;
    color: #1e293b;
}

.header-left {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.crypto-detail-container .logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
    background-color: #ffffff;
    padding: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-left .info {
    display: flex;
    flex-direction: column;
}

.header-left .name {
    font-size: 24px;
    font-weight: bold;
    color: #1e293b;
}

.header-left .time {
    font-size: 14px;
    color: #999;
    margin-top: 2px;
    font-weight: normal;
}

.header-right {
    align-items: center;
    display: flex;
}

.header-right .price {
    font-size: 32px;
    font-weight: bold;
    color: #1e293b;
}

.header-right .change {
    font-size: 16px;
    margin-left: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

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

.stat-card .value {
    font-size: 18px;
    font-weight: bold;
}
.coin-content {}
.coin-content p {
    line-height: 32px;
    text-indent: 2em;
    color: #444;
}


footer {
    margin-top: 40px;
    text-align: center;
    color: #666;
    font-size: 14px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

/* 热门币种行情模块 */
.popular-crypto {
    margin-top: 40px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #1e293b;
}

.popular-crypto-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.popular-crypto-item {
    flex: 1;
    min-width: 300px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: #333;
}

.popular-crypto-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.popular-crypto-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popular-crypto-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.popular-crypto-left img {
    border-radius: 50%;
    background-color: #f1f5f9;
    padding: 6px;
}

.popular-crypto-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.popular-crypto-name {
    font-size: 16px;
    font-weight: bold;
    color: #1e293b;
}

.popular-crypto-symbol {
    font-size: 14px;
    color: #64748b;
}

.popular-crypto-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.popular-crypto-price {
    font-size: 18px;
    font-weight: bold;
    color: #1e293b;
}

.popular-crypto-change {
    font-size: 14px;
}




.time-interval-selector {
    margin-bottom: 15px;
}

.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);
}
h1 {
    text-align: center;
    font-size: 20px;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .popular-crypto-grid {
        flex-direction: column;
    }
    
    .popular-crypto-item {
        min-width: 100%;
    }
}