/* ================= 基础与UI样式 ================= */
:root {
    --primary-color: #5c4a4d; 
    --accent-color: #ff8b94;  
    --bg-color: #fff9e6;      
    --nav-bg: #ffe4e1;        
}
body { margin: 0; font-family: 'Helvetica Neue', Arial, sans-serif; background-color: var(--bg-color); color: #333; transition: background-color 1s ease; }
.cute-font {
    font-family: 'YouYuan', '幼圆', 'KaiTi', '楷体', 'Noto Sans SC', 'Microsoft YaHei', 'Comic Sans MS', cursive;
    font-weight: 700;
}

header { background-color: var(--nav-bg); box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; }
.nav-links a { text-decoration: none; color: var(--primary-color); margin-right: 25px; font-weight: bold; cursor: pointer; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-color); }
.nav-links .secret-link { display: none; color: #d32f2f; }

.login-area input { padding: 6px 10px; margin-left: 10px; border: 1px solid #ffb6c1; border-radius: 4px; outline: none; }
.login-area button { padding: 6px 15px; margin-left: 10px; background-color: var(--primary-color); color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }

main { max-width: 1000px; margin: 0 auto 40px auto; padding: 20px; }
.page-section { display: none; background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); margin-top: 20px;}
#home-page { display: block; background: transparent; padding: 0; box-shadow: none; margin-top: 0;} 

/* 首页网格样式 */
.welcome-title { text-align: center; font-size: 3em; color: var(--primary-color); margin: 40px 0; letter-spacing: 5px; }
.grid-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 50px; }
.card { border-radius: 12px; height: 250px; display: flex; justify-content: center; align-items: center; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.1); position: relative; overflow: hidden; cursor: pointer; background-size: cover; background-position: center; border: 2px solid #fff0f5; }
.card h2 { margin: 0; font-size: 1.8em; color: var(--primary-color); z-index: 2; background-color: rgba(255, 255, 255, 0.85); padding: 10px 25px; border-radius: 30px; transition: opacity 0.3s;}
.card-content { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(92, 74, 77, 0.95); color: white; opacity: 0; display: flex; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; transition: opacity 0.4s ease; font-size: 16px; line-height: 1.6; }
.card:hover h2 { opacity: 0; } .card:hover .card-content { opacity: 1; }

/* 链接与搜索样式 */
.article-link { display: block; padding: 15px 20px; margin-bottom: 15px; background: #fdfdfd; border: 1px solid #eee; border-left: 5px solid var(--accent-color); border-radius: 6px; text-decoration: none; color: #333; cursor: pointer; transition: 0.3s; }
.article-link:hover { transform: translateX(5px); box-shadow: 0 4px 10px rgba(0,0,0,0.08); background: #fff; }
.article-title { font-size: 18px; font-weight: bold; margin-bottom: 5px; }
.article-meta { font-size: 13px; color: #888; }
.archive-search { margin-top: 40px; padding-top: 20px; border-top: 1px dashed #ccc; }
.archive-search p { color: #666; font-size: 14px; margin-bottom: 10px; }
.search-box { width: 50%; padding: 10px 15px; font-size: 14px; border: 1px solid #ccc; border-radius: 4px; outline: none; }
.search-btn { padding: 10px 20px; font-size: 14px; background-color: #888; color: white; border: none; border-radius: 4px; cursor: pointer; }
.result-area { margin-top: 20px; }
.access-denied { background: #f6f6f6; border-left: 4px solid #999; color: #555; padding: 14px 16px; line-height: 1.7; font-size: 14px; }

/* 文章详情页 */
#detail-page h2 { color: var(--primary-color); border-bottom: 2px solid var(--nav-bg); padding-bottom: 10px; }
#detail-content { line-height: 1.8; font-size: 16px; color: #444; margin: 30px 0; }
.back-btn { padding: 10px 20px; background-color: var(--primary-color); color: white; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; }
#visitor-page { position: relative; min-height: 260px; }

/* 隐藏结局入口 */
.hidden-entrance { position: fixed; bottom: 5px; right: 10px; font-size: 12px; color: #999; cursor: pointer; opacity: 0.6; }
.hidden-entrance:hover { opacity: 1; color: var(--primary-color); text-decoration: underline; }
.visitor-count { color: #ff8b94; font-weight: bold; cursor: pointer; user-select: none; }
.visitor-count:hover { color: var(--accent-color); }
.ending-contribution { display: block; margin-top: 14px; color: var(--primary-color); opacity: 0; transition: opacity 4s ease; }
.ending-contribution.visible { opacity: 1; }
.visitor-read-counter { position: absolute; right: 16px; bottom: 14px; font-size: 12px; color: #bbb; }

/* ================= 全新：论坛风留言板样式 ================= */
.message-board { background: #fff; padding: 30px; border-radius: 12px; margin-top: 40px;}
.msg-thread { border-bottom: 1px solid #eee; padding: 20px 0; }
.msg-thread:last-child { border-bottom: none; }
.msg-header { font-size: 13px; color: #888; margin-bottom: 10px; }
.msg-id { font-weight: bold; color: var(--accent-color); }
.msg-time { margin-left: 10px; color: #aaa; }
.msg-content { font-size: 15px; color: #333; margin-bottom: 15px; line-height: 1.6; }

/* 留言回复区域 */
.msg-replies { margin-left: 20px; padding-left: 15px; border-left: 3px solid var(--nav-bg); }
.msg-reply { background-color: #fafafa; padding: 10px 12px; border-radius: 6px; margin-bottom: 8px; font-size: 13px; line-height: 1.5; color: #555; }
.reply-id { font-weight: bold; color: var(--primary-color); margin-right: 5px; }
/* ================= 2ch 风格揭示板专用样式 ================= */
.thread-2ch-wrapper { background-color: #efefef; color: #000; font-family: "MS PGothic", "IPAMonaPGothic", "宋体", sans-serif; padding: 20px; border: 1px solid #ccc; text-align: left; min-height: 400px; }
.title-2ch { font-size: 1.5em; color: #cc0000; font-weight: bold; margin-bottom: 20px; border-bottom: 1px solid #ccc; padding-bottom: 5px; }
.post-2ch { margin-bottom: 20px; }
.header-2ch { font-size: 14px; margin-bottom: 5px; }
.num-2ch { color: #000; }
.name-2ch { color: #008000; font-weight: bold; }
.date-2ch { color: #000; }
.id-2ch { color: #000; }
.body-2ch { font-size: 16px; margin-left: 2em; line-height: 1.5; margin-top: 5px;}
.anchor-2ch { color: #0000ff; text-decoration: underline; cursor: pointer; }
