/* ============================================================
   邠州二中 · 204号镜子
   全局样式表 - 2008年Discuz!论坛风格
   ============================================================ */

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

body {
    background: #B0C8DD url('../images/common/bg_tile.jpg') repeat;
    font-family: "宋体", "SimSun", serif;
    font-size: 12px;
    color: #222;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}

#container {
    max-width: 960px;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #2B5A7A;
    border-top: 4px solid #1A3A4F;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
}

.header {
    background: #1F4E72;
    padding: 10px 20px;
    border-bottom: 2px solid #0F2E44;
    color: #FFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-left .logo {
    height: 40px;
}

.header-left h1 {
    font-size: 18px;
    font-weight: bold;
}

.header-right {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #B0D0E8;
}

.header-right .time {
    background: #F9C040;
    color: #000;
    padding: 2px 12px;
    border-radius: 2px;
    font-weight: bold;
}

.navbar {
    background: #E3EEF7;
    padding: 5px 20px;
    border-bottom: 1px solid #9BB4CC;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.navbar a {
    color: #1A3A4F;
    text-decoration: none;
    font-weight: bold;
}

.navbar a:hover {
    text-decoration: underline;
}

.navbar a.active {
    color: #003366;
    text-decoration: underline;
}

.navbar .disabled {
    color: #999;
    cursor: default;
}

.navbar .disabled:hover {
    text-decoration: none;
}

.navbar-right {
    font-size: 12px;
    color: #555;
}

.navbar-right a {
    font-weight: normal;
    color: #1A3A4F;
}

.marquee {
    background: #F7F9FB;
    padding: 4px 15px;
    border-bottom: 1px dashed #A0B8CC;
    color: #C0392B;
    font-weight: bold;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
}

.marquee span {
    display: inline-block;
    animation: marqueeScroll 28s linear infinite;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.online-box {
    background: #F5F8FA;
    padding: 6px 15px;
    border-bottom: 1px solid #D0DCE8;
    font-size: 12px;
    color: #555;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.search-bar {
    padding: 8px 15px;
    background: #F9FBFD;
    border-bottom: 1px solid #D0DCE8;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.search-bar input[type="text"] {
    flex: 1;
    min-width: 150px;
    padding: 5px 12px;
    border: 1px solid #A0B8CC;
    border-radius: 2px;
    font-size: 13px;
    font-family: "宋体", serif;
}

.search-bar button {
    padding: 5px 18px;
    background: #3D7EB0;
    color: #FFF;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
}

.search-bar button:hover {
    background: #1F4E72;
}

.forum-table {
    width: 100%;
    border-collapse: collapse;
    background: #FCFDFE;
}

.forum-table thead th {
    background: #DCE8F2;
    color: #1A3A4F;
    padding: 7px 12px;
    text-align: left;
    border-bottom: 2px solid #A0B8CC;
    font-size: 13px;
}

.forum-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #E5EDF5;
    vertical-align: middle;
}

.forum-table .icon {
    width: 24px;
    vertical-align: middle;
    margin-right: 4px;
}

.forum-table .forum-name {
    font-weight: bold;
    font-size: 14px;
    color: #003366;
    text-decoration: none;
}

.forum-table .forum-name:hover {
    text-decoration: underline;
}

.forum-table .forum-desc {
    font-size: 11px;
    color: #888;
    margin-top: 1px;
}

.forum-table .meta {
    font-size: 11px;
    color: #888;
    line-height: 1.4;
}

.content {
    padding: 18px 22px;
    line-height: 1.8;
    font-size: 14px;
    background: #FFF;
    min-height: 300px;
}

.content h2 {
    font-size: 18px;
    color: #1A3A4F;
    border-bottom: 2px solid #D0DCE8;
    padding-bottom: 6px;
    margin-bottom: 14px;
}

.hidden-text {
    color: #FFF;
    background: #FFF;
}

.reply-box {
    background: #F5F8FA;
    padding: 8px 14px;
    margin: 6px 0;
    border-left: 3px solid #A0B8CC;
    font-size: 13px;
}

.reply-box .r-author {
    color: #0066CC;
    font-weight: bold;
}

.reply-box .r-time {
    color: #999;
    font-size: 11px;
    margin-left: 8px;
}

.img-wrap {
    text-align: center;
    margin: 12px 0;
}

.img-wrap img {
    max-width: 100%;
    border: 1px solid #CCC;
    cursor: pointer;
}

.img-caption {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.input-area {
    background: #F5F8FA;
    padding: 15px;
    border: 1px solid #D0DCE8;
    border-radius: 3px;
    margin: 15px 0;
}

.input-area label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.input-area input[type="text"] {
    padding: 6px 12px;
    width: 280px;
    border: 1px solid #A0B8CC;
    border-radius: 2px;
    font-size: 14px;
    font-family: "宋体", serif;
}

.input-area button {
    padding: 6px 20px;
    background: #3D7EB0;
    color: #FFF;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    margin-left: 6px;
}

.input-area button:hover {
    background: #1F4E72;
}

.input-area .msg {
    margin-top: 8px;
    font-weight: bold;
}

.input-area .msg.success {
    color: #2E7D32;
}

.input-area .msg.error {
    color: #C0392B;
}

.btn {
    display: inline-block;
    padding: 6px 22px;
    background: #3D7EB0;
    color: #FFF;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
    font-size: 14px;
    margin: 4px 4px 4px 0;
}

.btn:hover {
    background: #1F4E72;
}

.btn.secondary {
    background: #888;
}

.btn.secondary:hover {
    background: #666;
}

.btn.danger {
    background: #C0392B;
}

.btn.danger:hover {
    background: #922B21;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.footer {
    background: #E3EEF7;
    padding: 10px 20px;
    border-top: 1px solid #A0B8CC;
    font-size: 11px;
    color: #888;
    text-align: center;
    line-height: 1.8;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal.active {
    display: flex;
}

.modal img {
    max-width: 92%;
    max-height: 92%;
    border: 2px solid #666;
    border-radius: 3px;
}

.horror {
    background: #0A0A0A;
    color: #CCC;
}

.horror .content {
    background: #0A0A0A;
    color: #CCC;
}

.horror .content h2 {
    color: #922B21;
    border-bottom-color: #444;
}

.horror .input-area {
    background: #1A1A1A;
    border-color: #444;
}

.horror .input-area input {
    background: #222;
    color: #CCC;
    border-color: #555;
}

.horror .navbar {
    background: #1A1A1A;
    border-bottom-color: #444;
}

.horror .navbar a {
    color: #AAA;
}

.horror .header {
    background: #1A0A0A;
}

.horror .marquee {
    background: #1A1A1A;
    color: #922B21;
    border-bottom-color: #444;
}

.mirror-text {
    text-align: center;
    font-size: 18px;
    color: #922B21;
    font-weight: bold;
    letter-spacing: 3px;
    margin: 15px 0;
    animation: mirrorPulse 2s ease-in-out infinite;
}

@keyframes mirrorPulse {
    0%,
    100% {
        opacity: 0.7;
        text-shadow: 0 0 20px rgba(146, 43, 33, 0.3);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 40px rgba(146, 43, 33, 0.6);
    }
}

.flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
}

.flash-overlay.red {
    background: #922B21;
}

.flash-overlay.black {
    background: #000;
}

.flash-overlay.show {
    animation: flashEffect 0.25s ease-out forwards;
}

@keyframes flashEffect {
    0% {
        opacity: 0.9;
    }
    100% {
        opacity: 0;
    }
}

.ending {
    text-align: center;
    font-size: 18px;
    line-height: 2.6;
    color: #DDD;
    padding: 40px 20px;
    max-width: 620px;
    margin: 0 auto;
}

.ending .music {
    font-size: 24px;
    color: #888;
    margin-top: 15px;
}

.ending .big-red {
    color: #922B21;
    font-size: 22px;
    font-weight: bold;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .header-left h1 {
        font-size: 15px;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .content {
        padding: 12px 15px;
    }

    .search-bar input[type="text"] {
        min-width: 100px;
    }
}