body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 30px auto;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 25px 0;
    text-align: center;
    font-size: 2.2em;
    font-weight: bold;
    letter-spacing: 1px;
    border-bottom: 5px solid #388E3C;
}

.notice-board {
    background-color: #fff3e0;
    color: #e65100;
    padding: 15px 25px;
    font-size: 1.1em;
    text-align: center;
    border-bottom: 1px solid #ffe0b2;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    display: table; /* 默认表格布局 */
}

table th, table td {
    padding: 18px 25px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    background-color: #f0f2f5;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tr:hover {
    background-color: #f8f8f8;
}

table td a {
    color: #007bff;
    text-decoration: none;
    word-break: break-all; /* 确保长链接换行 */
    transition: color 0.3s ease;
}

table td a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 新增的验证区域样式 */
.verification-area {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-top: 20px;
    margin-bottom: 20px; /* 增加与表格的间距 */
}
.verification-area input[type="text"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
    width: 200px;
    max-width: 70%;
}
.verification-area button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.verification-area button:hover {
    background-color: #0056b3;
}
.verification-area .message {
    margin-top: 10px;
    font-weight: bold;
    color: #333;
}
.verification-area .message.success {
    color: #4CAF50;
}
.verification-area .message.error {
    color: #f44336;
}

/* --- 优化后的响应式设计 --- */

/* 适用于中等屏幕（平板电脑，最大宽度768px） */
@media (max-width: 768px) {
    .container {
        width: 95%;
        margin: 20px auto;
    }
    table th, table td {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    header {
        font-size: 1.8em;
        padding: 20px 0;
    }
    .notice-board {
        font-size: 1em;
        padding: 10px 15px;
    }
    .verification-area input[type="text"] {
        width: calc(100% - 100px); /* 适应小屏宽度 */
        margin-right: 0;
        margin-bottom: 10px;
        display: block; /* 使输入框独占一行 */
        max-width: 100%;
    }
    .verification-area button {
        width: 100%;
        display: block;
    }
}

/* 适用于小屏幕（手机，最大宽度576px，此处调整为更小范围以适配卡片布局） */
@media (max-width: 576px) {
    table, thead, tbody, th, td, tr {
        display: block; /* 将表格元素设置为块级显示 */
    }

    /* 隐藏表头 */
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    /* 将每一行变成一个卡片 */
    table tr {
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 15px; /* 卡片间距 */
        background-color: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        padding: 15px; /* 卡片内边距 */
        display: flex; /* 使用Flexbox布局内容 */
        flex-direction: column; /* 内容垂直排列 */
    }

    /* 每个单元格作为一行 */
    table td {
        border: none; /* 移除单元格边框 */
        position: relative;
        padding-left: 100px; /* 为伪元素留出空间 */
        text-align: right; /* 值右对齐 */
        font-size: 1em; /* 确保内容字体大小 */
        padding: 8px 10px; /* 调整卡片内每个项目间距 */
    }

    /* 使用伪元素显示项目名称（来自th） */
    table td::before {
        content: attr(data-label); /* 使用 data-label 属性作为内容 */
        position: absolute;
        left: 10px;
        width: 90px; /* 项目名称的宽度 */
        padding-right: 10px;
        white-space: nowrap; /* 不换行 */
        text-align: left;
        font-weight: bold;
        color: #666;
    }
    /* 特别调整序号和下载地址的显示 */
    table td:nth-of-type(1)::before { content: "序号:"; }
    table td:nth-of-type(2)::before { content: "区服:"; }
    table td:nth-of-type(3)::before { content: "下载:"; }
    table td:nth-of-type(4)::before { content: "联系:"; }

    /* 针对长链接做特殊处理，确保显示美观 */
    table td a {
        display: block; /* 链接独占一行 */
        word-break: break-all; /* 强制换行 */
        text-align: right;
    }

    /* 优化头部和公告在手机端的显示 */
    header {
        font-size: 1.6em;
        padding: 15px 0;
    }
    .notice-board {
        font-size: 0.95em;
        padding: 10px 15px;
    }
}

/* 再次针对更小的屏幕做微调，特别是超长链接 */
@media (max-width: 375px) {
    table td {
        padding-left: 80px; /* 留给标签更多空间 */
        font-size: 0.95em;
    }
    table td::before {
        width: 70px;
    }
}