@import url('https://fonts.googleapis.com/css2?family=Mochiy+Pop+One&family=Noto+Sans+SC:wght@400;700&display=swap');

/* --- 基础与重置 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Noto Sans SC', sans-serif; /* 统一使用 Noto Sans SC 作为默认字体 */
    color: #333;
}

body {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* 固定背景，滚动时不移动 */
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); /* 背景模糊效果，增加层次感 */
}

/* --- 主要容器 --- */
.main-container {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 40px 50px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 90%;
    max-width: 600px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    transform: scale(0.95);
    animation: pop-in 0.5s forwards ease-out;
}

@keyframes pop-in {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- 标题和副标题 --- */
.title {
    font-family: 'Noto Sans SC', sans-serif; /* 明确指定 Noto Sans SC 作为标题字体 */
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700; /* 明确设置为粗体，与您截图中“间”字的粗细保持一致 */
}

.subtitle {
    font-size: 1.1em;
    color: #7f8c8d;
    margin-bottom: 30px;
}

/* --- 选项和表单 --- */
.options-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="password"] {
    padding: 15px;
    border: 2px solid #bdc3c7;
    border-radius: 15px;
    font-size: 1em;
    text-align: center;
    transition: all 0.3s ease;
}

input[type="password"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

/* --- 通用按钮样式 --- */
.button {
    display: block;
    padding: 15px 20px;
    border-radius: 15px;
    border: none;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.button:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.button-library { background-color: #2ecc71; }
.button-library:hover { background-color: #27ae60; }

.button-resource { background-color: #3498db; }
.button-resource:hover { background-color: #2980b9; }

.button-back {
    background-color: #95a5a6;
    margin-top: 30px;
}
.button-back:hover { background-color: #7f8c8d; }

/* --- 文件列表样式 (资料库页面) --- */
.file-list-box {
    background-color: rgba(245, 245, 245, 0.7);
    border-radius: 15px;
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.file-list-box ul {
    list-style: none;
}

.file-list-box li {
    margin-bottom: 10px;
}

.file-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #fff;
    border-radius: 10px;
    text-decoration: none;
    color: #34495e;
    transition: all 0.3s ease;
}

.file-link:hover {
    background-color: #ecf0f1;
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.file-icon {
    margin-right: 15px;
    font-size: 1.5em;
}

.file-name {
    word-break: break-all;
}

/* --- 移动端适配 --- */
@media (max-width: 600px) {
    .main-container {
        padding: 30px 20px;
    }
    .title {
        font-size: 2em;
    }
}