* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimSun", Arial, sans-serif;
    background-color: #f5f5dc; /* 浅米色背景 */
    color: #000;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部区域 */
.header {
    background-color: #fffef0; /* 米白色 */
    padding: 40px;
    margin-bottom: 20px;
    position: relative;
    min-height: 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contributor {
    font-size: 16px;
    color: #000;
    margin-bottom: 20px;
}

.main-title {
    font-size: 36px;
    font-weight: bold;
    color: #000;
    margin: 30px 0;
    line-height: 1.4;
}

.main-title .highlight {
    color: #ff8c00; /* 橙金色 */
    font-weight: bold;
}

.disclaimer {
    position: absolute;
    bottom: 20px;
    right: 40px;
    font-size: 12px;
    color: #ff0000; /* 红色 */
}

.admin-link {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 14px;
}

.admin-link a {
    color: #000;
    text-decoration: underline;
}

.admin-link a:hover {
    color: #ff8c00;
}

/* 搜索框 */
.search-box {
    background-color: #fffef0;
    padding: 20px 40px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-form input {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    font-family: inherit;
}

.search-form button {
    padding: 10px 20px;
    background-color: #ff8c00;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
}

.search-form button:hover {
    background-color: #ff7a00;
}

.btn-clear {
    padding: 10px 20px;
    background-color: #6c757d;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

.btn-clear:hover {
    background-color: #5a6268;
}

/* 小说列表 */
.novels-list {
    background-color: #fffef0;
    padding: 20px 40px;
}

.novel-item {
    padding: 20px 0;
    border-bottom: 1px solid #000;
}

.novel-item:last-child {
    border-bottom: none;
}

.novel-title {
    font-size: 18px;
    color: #000;
    margin-bottom: 10px;
}

.novel-link {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

.novel-link:hover {
    color: #ff8c00;
    text-decoration: underline;
}

.external-link {
    color: #000;
    text-decoration: underline;
    margin-left: 5px;
}

.external-link:hover {
    color: #ff8c00;
}

.novel-date {
    font-size: 12px;
    color: #666;
    padding-left: 20px;
    margin-top: 5px;
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.novel-synopsis {
    font-size: 14px;
    color: #333;
    padding-left: 20px;
    line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 20px;
        min-height: auto;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .disclaimer {
        position: static;
        margin-top: 20px;
        text-align: right;
    }
    
    .admin-link {
        position: static;
        margin-top: 20px;
        text-align: right;
    }
    
    .search-box {
        padding: 15px 20px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form input,
    .search-form button,
    .btn-clear {
        width: 100%;
    }
    
    .novels-list {
        padding: 15px 20px;
    }
}


/* ===== 公告弹窗样式 ===== */
.notice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-modal {
    background: #fff;
    padding: 20px 24px;
    width: 90%;
    max-width: 420px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    position: relative;
}

.notice-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
}

/* 公告弹窗 - 全屏覆盖 */
.notice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* 弹窗主体 */
.notice-modal {
    background: #fff;
    padding: 24px 20px;
    max-width: 420px;
    width: 90%;
    border-radius: 8px;
    text-align: center;
    line-height: 1.6;
}

/* 确认按钮 */
.notice-confirm {
    margin-top: 16px;
    padding: 10px 24px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.notice-confirm:hover {
    background: #000;
}
