body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #495057;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    background-color: #343a40;
    color: white;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

nav {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

nav a {
    text-decoration: none;
    color: #495057;
    font-size: 18px;
    padding: 5px 10px;
    margin: 0 10px;
    border-radius: 5px;
    transition: color 0.3s, background-color 0.3s, transform 0.3s;
    position: relative;
}

nav a:hover {
    color: #007bff;
    background-color: #e9ecef;
    transform: scale(1.1);
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #007bff;
    bottom: -2px;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

main {
    background-color: white;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

main h2 {
    font-size: 1.8em;
    margin-top: 0;
    color: #007bff;
}

#visitor-info {
    margin: 10px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: #343a40;
    color: white;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    margin-top: 20px;
}

#visit-count, #last-visit-time {
    font-size: 0.9em;
    color: #868e96;
}

.crypto-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.crypto-table th, .crypto-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    vertical-align: middle;
    transition: background-color 0.3s ease;
}

.crypto-table th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 14px;
}

.crypto-table td {
    background-color: #fff;
    font-size: 14px;
}

.crypto-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.crypto-table tr:hover td {
    background-color: #f1f1f1;
}

.crypto-table img {
    width: 30px;
    height: 30px;
}

.crypto-table .logo-col {
    width: 8%;
    text-align: center;
}

.crypto-table .name-col {
    width: 20%;
    text-align: left;
}

.crypto-table .price-col {
    width: 15%;
    text-align: right;
}

/* 响应式调整 */
@media (max-width: 768px) {
    main {
        padding: 10px;
    }

    .crypto-table th, .crypto-table td {
        padding: 6px;
        font-size: 12px;
    }

    .crypto-table .logo-col,
    .crypto-table .name-col,
    .crypto-table .price-col {
        width: auto;
        text-align: center;
    }
}