/* 引入 Google 字体 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px 30px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 20px;
}

p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9em;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #34495e;
    color: white;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

td {
    transition: background-color 0.3s;
}

td[data-label]:before {
    content: attr(data-label) ": ";
    font-weight: bold;
    display: inline-block;
    width: 120px;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    table, th, td {
        display: block;
        width: 100%;
    }

    th {
        display: none;
    }

    td {
        padding: 10px;
        text-align: right;
        position: relative;
    }

    td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        padding-right: 10px;
        white-space: nowrap;
        color: #34495e;
    }
}

button {
    background-color: #34495e;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s, box-shadow 0.3s;
}

button:hover {
    background-color: #2c3e50;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
