/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #ffffff;  /* 白色背景 */
    color: #333;  /* 深灰色字体，减少视觉疲劳 */
    padding-top: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: #007BFF;  /* 蓝色 */
}

header h1 {
    font-size: 2.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

/* 页脚 */
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 1rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #007bff;
    color: #fff;
    height: 50px;
    line-height: 50px;
}

footer a {
    font-size: 1.1rem;
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    color: #0056b3;  /* 深蓝色 */
}

/* 表格化样式 */
.crypto-table {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;  /* 白色背景 */
    padding: 0 8px 60px;
}

.crypto-table-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1.5fr 1fr;
    background-color: #007BFF;  /* 深蓝色 */
    padding: 8px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
}

.header-item {
    text-align: left;
    font-size: 1rem;
    padding: 10px;
}

.crypto-list {
    display: flex;
    flex-direction: column;
}

.crypto-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1.5fr 1fr;
    padding: 15px 20px;
    align-items: center;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
    align-items: center;
}

.crypto-row:hover {
    background-color: #f1f1f1;  /* 淡灰背景 */
}

.crypto-row .crypto-name {
    font-size: 1rem;
    /* font-weight: bold; */
    color: #007BFF;
}

.crypto-row .crypto-price,
.crypto-row .crypto-volume {
    font-size: 1rem;
    color: #555;  /* 深灰色 */
}

.crypto-row .crypto-change {
    font-size: 1rem;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
}

.crypto-row .crypto-change.up {
    background-color: rgba(0, 255, 0, 0.1);
    color: #28a745;
}

.crypto-row .crypto-change.down {
    background-color: rgba(255, 0, 0, 0.1);
    color: #dc3545;
}

.crypto-row button {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.crypto-row button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* 弹窗样式 */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    position: relative;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #dc3545;
    cursor: pointer;
}

/* 图表容器 */
.chart-container {
    width: 100%;
    height: 400px;
    margin-top: 30px;
}

/* 页脚链接 */
footer a {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    color: #ffffff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.6rem;
    }

    .crypto-table-header {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }

    .crypto-row {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
        padding: 12px 3px;
    }

    .crypto-row button {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .chart-container {
        height: 300px;
    }
}
/* 去掉所有 <a> 标签的下划线 */
a {
    text-decoration: none;
}

/* 为某些特定的链接加下划线（比如:hover状态） */
a:hover {
    text-decoration: underline;
}