/* ===========================================
   青雨村文旅 - ARG 静态网站版
   参考"大学生登山失踪事件"设计
   - 主页伪装成普通文旅网站
   - 搜索框关键词跳转
   - 隐藏页面切换暗黑风格
   =========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== 默认：普通文旅页面（明亮）===== */
body {
    background: #f7f5ee;
    color: #333;
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
    line-height: 1.8;
    min-height: 100vh;
}

.site-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== 顶部 ===== */
.site-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #6a8c5b;
}

.site-header h1 {
    font-size: 24px;
    color: #4a6c3b;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.site-header p {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.search-wrap {
    margin: 16px 0;
    display: flex;
    gap: 0;
}

.search-wrap input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-right: none;
    font-size: 14px;
    background: #fff;
    color: #333;
    font-family: inherit;
}

.search-wrap input:focus {
    outline: none;
    border-color: #6a8c5b;
}

.search-wrap button {
    padding: 10px 24px;
    background: #6a8c5b;
    color: #fff;
    border: 1px solid #6a8c5b;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: background 0.2s;
}

.search-wrap button:hover {
    background: #4a6c3b;
}

.search-hint {
    font-size: 11px;
    color: #aaa;
    font-family: "Courier New", monospace;
    margin-top: 4px;
}

/* ===== 顶部导航 ===== */
.site-nav {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.site-nav a {
    color: #4a6c3b;
    text-decoration: none;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: #2a4c1b;
    text-decoration: underline;
}

/* ===== 主页内容 ===== */
.hero {
    background: linear-gradient(135deg, #e8e3d4 0%, #f0ebdc 100%);
    border: 1px solid #d8d0bc;
    padding: 32px 24px;
    margin-bottom: 24px;
    text-align: center;
}

.hero h2 {
    color: #4a6c3b;
    font-size: 22px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.hero p {
    color: #555;
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto 8px;
    line-height: 2;
}

.section {
    background: #fff;
    border: 1px solid #d8d0bc;
    padding: 24px;
    margin-bottom: 16px;
}

.section h3 {
    color: #4a6c3b;
    font-size: 17px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #d8d0bc;
}

.section p {
    color: #555;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 10px;
}

.section ul {
    list-style: none;
    padding: 0;
}

.section li {
    padding: 6px 0;
    border-bottom: 1px dotted #eee;
    color: #555;
}

/* ===== 卡片网格 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.card {
    background: #fff;
    border: 1px solid #d8d0bc;
    padding: 16px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    display: block;
}

.card:hover {
    border-color: #6a8c5b;
    box-shadow: 0 2px 8px rgba(106, 140, 91, 0.15);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.card-title {
    font-size: 15px;
    color: #4a6c3b;
    font-weight: bold;
}

.card-desc {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

/* ===== 游客须知 ===== */
.notice {
    background: #fffbf0;
    border: 1px solid #f0e0a0;
    border-left: 4px solid #d8b060;
    padding: 16px 20px;
    margin: 24px 0;
}

.notice h4 {
    color: #8a6020;
    font-size: 14px;
    margin-bottom: 8px;
}

.notice p {
    color: #6a5020;
    font-size: 13px;
    line-height: 1.9;
}

/* ===== 底部 ===== */
.site-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #d8d0bc;
    text-align: center;
    color: #888;
    font-size: 12px;
}

.site-footer p {
    margin: 4px 0;
}

/* ===== 隐藏小字（主页里的线索）===== */
.hidden-hint {
    font-size: 11px;
    color: #d8d0bc;
    margin-top: 30px;
    text-align: center;
    font-family: "Courier New", monospace;
    user-select: none;
    cursor: default;
    transition: color 0.3s;
}

.hidden-hint:hover {
    color: #888;
}

/* ===========================================
   隐藏档案页面（暗黑风格）
   =========================================== */

body.archive-page {
    background: #070707;
    color: #aaa;
    font-family: "Courier New", "SimSun", monospace;
}

body.archive-page .site-wrap {
    border: 1px solid #4a1010;
    background: #0a0202;
    padding: 24px;
    margin-top: 20px;
}

body.archive-page .site-header {
    border-bottom: 1px solid #4a1010;
}

body.archive-page .site-header h1 {
    color: #c82020;
    text-shadow: 0 0 6px rgba(200, 32, 32, 0.3);
}

body.archive-page .search-wrap input {
    background: #0a0202;
    color: #c8a8a8;
    border: 1px solid #4a1010;
}

body.archive-page .search-wrap input:focus {
    border-color: #c82020;
}

body.archive-page .search-wrap button {
    background: #4a1010;
    border-color: #4a1010;
}

body.archive-page .search-wrap button:hover {
    background: #c82020;
}

body.archive-page .site-nav a {
    color: #c82020;
}

/* 隐藏页面的内容区 */
.archive-content {
    background: #0a0202;
    border: 1px solid #4a1010;
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
}

.archive-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 3px,
        rgba(200, 32, 32, 0.03) 3px,
        rgba(200, 32, 32, 0.03) 4px
    );
    pointer-events: none;
}

.archive-content h2 {
    color: #c82020;
    font-size: 20px;
    margin-bottom: 16px;
    letter-spacing: 2px;
    border-bottom: 1px dashed #4a1010;
    padding-bottom: 8px;
}

.archive-content h3 {
    color: #c8a8a8;
    font-size: 15px;
    margin: 16px 0 8px;
}

.archive-content p {
    color: #aaa;
    font-size: 14px;
    line-height: 2;
    margin-bottom: 12px;
}

.archive-content .meta {
    color: #666;
    font-size: 11px;
    font-family: monospace;
    letter-spacing: 1px;
    margin-bottom: 16px;
    border-bottom: 1px dashed #4a1010;
    padding-bottom: 12px;
}

.archive-content .quote {
    color: #c82020;
    font-style: italic;
    padding: 12px 16px;
    background: rgba(200, 32, 32, 0.05);
    border-left: 3px solid #c82020;
    margin: 16px 0;
}

.archive-content .redacted {
    background: #000;
    color: #000;
    padding: 0 4px;
    cursor: pointer;
    transition: color 0.3s;
}

.archive-content .redacted:hover {
    color: #c82020;
}

/* 隐藏页面的"下一关提示" */
.next-clue {
    background: rgba(200, 32, 32, 0.08);
    border: 1px dashed #c82020;
    padding: 14px 18px;
    margin: 20px 0;
    color: #c82020;
    font-size: 13px;
    font-family: monospace;
}

.next-clue strong {
    color: #ff4040;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(255, 64, 64, 0.3);
}

/* 搜索框（在档案页也要保留）*/
body.archive-page .search-section {
    background: rgba(200, 32, 32, 0.05);
    border: 1px solid #4a1010;
    padding: 16px;
    margin-bottom: 16px;
}

body.archive-page .search-section-title {
    color: #c82020;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: monospace;
}

/* ===========================================
   真结局页面（震撼）
   =========================================== */

body.truth-page {
    background: #000;
    color: #c82020;
    font-family: "Courier New", monospace;
}

body.truth-page .site-wrap {
    border: 2px solid #c82020;
    background: #0a0000;
    padding: 32px;
}

body.truth-page .site-header h1 {
    color: #c82020;
    font-size: 28px;
    text-shadow: 0 0 12px rgba(200, 32, 32, 0.6);
    letter-spacing: 6px;
}

.truth-content {
    background: #000;
    border: 2px solid #c82020;
    padding: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.truth-content h2 {
    color: #c82020;
    font-size: 24px;
    letter-spacing: 4px;
    margin-bottom: 24px;
    text-shadow: 0 0 8px rgba(200, 32, 32, 0.5);
}

.truth-content p {
    color: #c8a8a8;
    font-size: 15px;
    line-height: 2.2;
    margin-bottom: 16px;
}

.truth-content .quote {
    color: #c82020;
    font-size: 18px;
    text-align: center;
    padding: 24px;
    background: rgba(200, 32, 32, 0.05);
    border: 1px dashed #c82020;
    margin: 24px 0;
}

/* ===========================================
   伪结局页面
   =========================================== */

body.fake-page {
    background: #f8f8f8;
    color: #555;
}

body.fake-page .site-wrap {
    border: 1px solid #ccc;
    background: #fff;
    padding: 32px;
}

body.fake-page .site-header {
    border-bottom: 1px solid #ccc;
}

body.fake-page .site-header h1 {
    color: #888;
}

.fake-content {
    background: #fff;
    border: 1px solid #ccc;
    padding: 24px;
    margin-bottom: 16px;
    text-align: center;
}

.fake-content h2 {
    color: #4a6c3b;
    font-size: 18px;
    margin-bottom: 16px;
}

.fake-content p {
    color: #666;
    font-size: 14px;
    line-height: 2;
    margin-bottom: 12px;
}

/* ===========================================
   响应式
   =========================================== */
@media (max-width: 480px) {
    .site-wrap { padding: 12px; }
    .site-header h1 { font-size: 20px; }
    .hero { padding: 20px 16px; }
    .section { padding: 16px; }
    .search-wrap { flex-direction: column; }
    .search-wrap input { border-right: 1px solid #ccc; }
}

/* ===========================================
   响应式
   =========================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f7f5ee; }
::-webkit-scrollbar-thumb { background: #d8d0bc; }

body.archive-page ::-webkit-scrollbar-track { background: #070707; }
body.archive-page ::-webkit-scrollbar-thumb { background: #4a1010; }
