/* ================= 全局底色与横纹纸张质感 ================= */
body {
    background-color: #f4f3ef;
    background-image: linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 100% 4px; 
    color: #5d6275;
    font-family: "SimSun", "Courier New", monospace;
    margin: 0;
    padding: 30px 10px;
}

a { color: #7b83a0; text-decoration: underline; }
a:hover { color: #484e63; }
.text-mini { font-size: 13px; }
.text-center { text-align: center; }
.text-muted { color: #9da3b4; }
.italic { font-style: italic; }

/* ================= 顶部 Banner ================= */
.banner {
    background-color: #e2e1f0;
    border: 1px solid #c2c0db;
    max-width: 960px;
    margin: 0 auto 15px auto;
    padding: 30px 20px 15px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.tape {
    position: absolute;
    width: 90px;
    height: 25px;
    background-color: rgba(245, 240, 210, 0.5);
    backdrop-filter: blur(1px);
    border-left: 1px dashed rgba(0,0,0,0.1);
    border-right: 1px dashed rgba(0,0,0,0.1);
}
.tape-left { top: -10px; left: 15px; transform: rotate(-5deg); }
.tape-right { top: -10px; right: 15px; transform: rotate(5deg); }
.banner-stars { font-size: 22px; font-weight: bold; color: #6a6f8a; letter-spacing: 2px; }
.banner-sub { font-size: 12px; color: #9398b3; margin: 5px 0 20px 0; font-style: italic; }

.nav-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.nav-btn {
    background: #ffffff; border: 1px solid #c2c0db;
    padding: 4px 12px; font-size: 13px; color: #5d6275; text-decoration: none;
    box-shadow: 1px 1px 0px #c2c0db;
}
.nav-btn:hover { background: #f4f3ef; position: relative; top: 1px; left: 1px; box-shadow: 0px 0px 0px; }

/* ================= 跑马灯走字 ================= */
.ticker-wrap {
    max-width: 960px; margin: 0 auto 25px auto;
    border-top: 1px dashed #c2c0db; border-bottom: 1px dashed #c2c0db;
    padding: 6px 0; overflow: hidden; font-size: 12px; color: #8c92a6;
}
.ticker { white-space: nowrap; display: inline-block; padding-left: 100%; animation: marquee 25s linear infinite; }
@keyframes marquee { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-100%, 0, 0); } }

/* ================= 主布局 ================= */
.grid-container { display: grid; grid-template-columns: 260px 1fr; gap: 25px; max-width: 1000px; margin: 0 auto; }
@media (max-width: 768px) {
    .grid-container { grid-template-columns: 1fr; }
    .sticky-note, .long-sticky-note { display: none !important; }
}

/* ================= 卡片基类 ================= */
.card { border: 1px solid #dcdbd3; padding: 15px; margin-bottom: 20px; position: relative; background-color: #ffffff; }
.bg-white { background-color: #ffffff; border-color: #d8d7cf; }
.bg-beige { background-color: #fbf9f3; border-color: #e4e1d6; }
.bg-purple { background-color: #eae9f4; border-color: #d1cfe3; }
.bg-blue { background-color: #e1ecf7; border-color: #cbdcf0; }

.card-title { font-weight: bold; font-size: 15px; color: #4b5066; margin-bottom: 10px; }
.title-large { font-size: 20px; color: #535a73; }
.title-mid { font-size: 17px; color: #4b5066; }
.divider-dashed { border-top: 1px dashed #d0cfc7; margin: 10px 0; }

/* ================= 小组件 ================= */
.admin-info { display: flex; gap: 10px; align-items: center; margin-top: 15px; }
.avatar-box { width: 45px; height: 45px; background-color: #cbdcf0; border: 1px dashed #7b83a0; }
.progress-bar { background: #e1e0eb; height: 6px; border-radius: 3px; overflow: hidden; margin-top: 10px; }
.progress-fill { background: #9fa6cc; width: 40%; height: 100%; }
.counter-box {
    background: #0d1117; color: #3fb950; font-family: monospace; font-size: 18px;
    letter-spacing: 4px; padding: 4px 10px; display: inline-block; border-radius: 3px;
}
.highlight { background-color: #e4e2f2; padding: 0 4px; font-weight: bold; }
.alert-box { background: #fbf8eb; border: 1px solid #ecdca5; padding: 10px; margin: 15px 0; font-size: 13px; }

.main-col { position: relative; }
.sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
@media (max-width: 550px) { .sub-grid { grid-template-columns: 1fr; } }

.link-list, .update-timeline { list-style: none; padding-left: 0; }
.link-list li { margin-bottom: 5px; }
.update-timeline li { margin-bottom: 12px; }
.update-timeline li span { background: #eae8df; padding: 1px 5px; border-radius: 2px; margin-right: 8px; color: #7c7b73; }
.buttons-row { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
.btn-placeholder { width: 88px; height: 31px; background: #ffffff; border: 1px solid #d4d2c9; text-align: center; line-height: 31px; font-size: 12px; }

/* ================= 仿手写悬浮便签组 ================= */
.pin {
    width: 10px; height: 10px; border-radius: 50%; position: absolute;
    top: -5px; left: 50%; transform: translateX(-50%); box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.pin-red { background-color: #e63946; }
.pin-red::after { content: ""; width: 2px; height: 5px; background: #888; position: absolute; bottom: -3px; left: 4px; }

/* 右上角黄色便签 */
.sticky-note {
    position: absolute; right: -15px; top: 190px; width: 210px;
    padding: 15px; transform: rotate(3deg); box-shadow: 3px 3px 8px rgba(0,0,0,0.05); z-index: 10;
}
.note-yellow { background-color: #fef5c8; border: 1px solid #ebd887; }
.note-yellow .note-title { font-weight: bold; text-decoration: underline; margin-top:0; color: #7c6d2c; }
.note-yellow p { font-size: 13px; color: #877735; line-height: 1.5; margin-bottom: 0; }

/* 中下部粉色长条便签 */
.long-sticky-note {
    background-color: #ffe3e8; border: 1px solid #f3c2cc;
    padding: 12px 20px; margin: 25px 10px; transform: rotate(-1deg);
    box-shadow: 2px 3px 6px rgba(0,0,0,0.04); position: relative; text-align: center;
}
.long-sticky-note p { font-size: 13px; color: #9c5968; margin: 0; }

/* ================= 📝 留言板专属组件 ================= */
.guestbook-container { padding: 5px 15px; }
.guestbook-item {
    background: #fbf9f3; border: 1px solid #e4e1d6;
    padding: 10px; margin-bottom: 12px; box-shadow: inset 1px 1px 2px rgba(0,0,0,0.01);
}
.guestbook-meta { font-size: 12px; color: #9da3b4; margin-bottom: 4px; }
.guestbook-body { font-size: 14px; color: #5d6275; }
.guestbook-btn {
    width: 100%; background: #eae9f4; border: 1px solid #d1cfe3;
    padding: 8px; font-family: inherit; color: #5d6275; cursor: pointer; font-size: 13px;
}
.guestbook-btn:hover { background: #dfdde3; }

/* ================= 🔒 密码区域组件 ================= */
.secret-input {
    border: 1px solid #dcdbd3; padding: 6px 10px; width: 70%;
    font-family: inherit; font-size: 14px; color: #5d6275; background: #fff;
}
.secret-btn {
    background: #eae9f4; border: 1px solid #d1cfe3; padding: 6px 12px;
    font-family: inherit; font-size: 14px; color: #5d6275; cursor: pointer;
}
.secret-btn:hover { background: #dfdde3; }

/* 下拉提示框 */
.scrolled-far-box { text-align: center; margin: 35px 0 20px 0; color: #9da3b4; font-size: 14px; }

/* ================= 🚧 施工斑马线 ================= */
.construction-barrier {
    background: repeating-linear-gradient(
        -45deg,
        #fbc531, #fbc531 15px,
        #2f3640 15px, #2f3640 30px
    );
    height: 35px; border: 1px solid #2f3640;
    margin: 20px 0; display: flex; justify-content: space-around; align-items: center;
}
.barrier-sign { font-size: 16px; background: rgba(255,255,255,0.8); padding: 1px 4px; border-radius: 2px; }

/* ================= ⚓ 底部复古大页脚 ================= */
.site-footer {
    max-width: 960px; margin: 40px auto 0 auto;
    border: 1px solid #dcdbd3; background-color: #fbf9f3;
    padding: 30px 20px; text-align: center; line-height: 1.6;
}
.footer-icons { font-size: 18px; margin-bottom: 15px; letter-spacing: 8px; }

/* 底部复古小徽章流 */
.footer-badges {
    display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 20px;
}
.badge {
    font-size: 10px; font-family: "Courier New", monospace; font-weight: bold;
    padding: 2px 6px; border: 1px solid rgba(0,0,0,0.15); box-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}