/* ========================================
   90s RETRO NOSTALGIA DESIGN SYSTEM
   Welcome to 1997! 🎉
   ======================================== */

/* === RESET & BASE === */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* === BODY & BACKGROUND === */
body {
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
    /* 90s tiled pattern - MANDATORY */
    background-image:
        linear-gradient(45deg, #b8b8b8 25%, transparent 25%),
        linear-gradient(-45deg, #b8b8b8 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #b8b8b8 75%),
        linear-gradient(-45deg, transparent 75%, #b8b8b8 75%);
    background-size: 4px 4px;
    background-position: 0 0, 0 2px, 2px -2px, -2px 0px;
    font-family: "MS Sans Serif", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #000000;
    margin: 0;
    padding: 0;
}

/* === LINKS (90s STYLE) === */
a {
    color: #0000ff;
    text-decoration: underline;
    transition: none;
}

a:visited {
    color: #800080;
}

a:hover {
    color: #ff0000;
}

a:active {
    color: #ff0000;
}

/* === RAINBOW TEXT ANIMATION === */
@keyframes rainbow {
    0% {
        color: #ff0000;
    }

    17% {
        color: #ff8000;
    }

    33% {
        color: #ffff00;
    }

    50% {
        color: #00ff00;
    }

    67% {
        color: #0080ff;
    }

    83% {
        color: #8000ff;
    }

    100% {
        color: #ff0000;
    }
}

.text-rainbow {
    animation: rainbow 4s linear infinite;
    font-weight: 900;
}

/* === PULSE GLOW ANIMATION (for badges) === */
@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 10px 2px rgba(255, 0, 0, 0.5);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 1.5s ease-in-out infinite;
}

/* === BLINK ANIMATION === */
@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.blink {
    animation: blink 1s step-end infinite;
}

/* === HORIZONTAL RULE (GROOVE EFFECT) === */
.hr-groove {
    border: none;
    height: 4px;
    background: linear-gradient(to bottom,
            #808080 0%, #808080 50%,
            #ffffff 50%, #ffffff 100%);
    margin: 20px 0;
}

/* === CONSTRUCTION STRIPE BACKGROUND === */
.bg-construction {
    background: repeating-linear-gradient(45deg,
            #ffff00,
            #ffff00 10px,
            #000000 10px,
            #000000 20px);
    padding: 20px;
    border: 4px solid #000000;
}

/* === MAIN CONTAINER === */
.webbox {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 10px;
}

.main {
    width: 100%;
    max-width: 1024px;
    background: #00c3ff;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #dfdfdf;
    padding: 20px;
    margin: 0 auto;
}

/* === GRID SYSTEM (PRESERVED) === */
.container_16 {
    margin-left: auto;
    margin-right: auto;
    width: 960px;
}

.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6,
.grid_7,
.grid_8,
.grid_9,
.grid_10,
.grid_11,
.grid_12,
.grid_13,
.grid_14,
.grid_15,
.grid_16 {
    display: inline;
    float: left;
    margin-left: 10px;
    margin-right: 10px;
}

.grid_3 {
    width: 160px;
}

.grid_12 {
    width: 700px;
}

.grid_16 {
    width: 940px;
}

.clear {
    clear: both;
    display: block;
    overflow: hidden;
    visibility: hidden;
    width: 0;
    height: 0;
}

.clearfix:after {
    content: '.';
    display: block;
    clear: both;
    visibility: hidden;
    height: 0;
}

/* === HEADINGS === */
h1,
h2,
h3 {
    font-family: "Arial Black", Impact, Haettenschweiler, sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 32px;
}

h3 {
    font-size: 24px;
}

/* === STRONG TEXT === */
.strong {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
    font-weight: 900;
    text-align: center;
}

/* === BUTTONS (WINDOWS 95 STYLE) === */
button,
.btn,
.down01_btn {
    display: inline-block;
    padding: 8px 16px;
    background: #00c3ff;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #dfdfdf;
    color: #000000;
    font-family: "MS Sans Serif", Tahoma, sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: none;
    letter-spacing: 1px;
}

button:hover,
.btn:hover,
.down01_btn:hover {
    background: #d0d0d0;
}

button:active,
.btn:active,
.down01_btn:active {
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #dfdfdf;
    transform: translate(1px, 1px);
}

button:focus,
.btn:focus,
.down01_btn:focus {
    outline: 2px dotted #000000;
    outline-offset: 2px;
}

/* === YELLOW BUTTON VARIANT === */
.btn-yellow {
    background: #ffff00;
    border-color: #ffff80 #808000 #808000 #ffff80;
}

.btn-yellow:hover {
    background: #ffff80;
}

.btn-yellow:active {
    border-color: #808000 #ffff80 #ffff80 #808000;
}

/* === RED BUTTON VARIANT === */
.btn-red {
    background: #ff0000;
    color: #ffffff;
    border-color: #ff5555 #800000 #800000 #ff5555;
}

.btn-red:hover {
    background: #ff3333;
}

.btn-red:active {
    border-color: #800000 #ff5555 #ff5555 #800000;
}

/* === BLUE BUTTON VARIANT === */
.btn-blue {
    background: #0000ff;
    color: #ffffff;
    border-color: #5555ff #000080 #000080 #5555ff;
}

.btn-blue:hover {
    background: #3333ff;
}

.btn-blue:active {
    border-color: #000080 #5555ff #5555ff #000080;
}

/* === CONTENT SECTIONS === */
.content-title {
    margin-left: 20px;
    margin-right: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #ff0000;
    margin-bottom: 8px;
    font-family: "Arial Black", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-body {
    margin-left: 20px;
    margin-right: 20px;
    font-family: "MS Sans Serif", Tahoma, sans-serif;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
    background: #ffffff;
    padding: 16px;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #dfdfdf;
}

/* === WINDOWS 95 TITLE BAR === */
.title-bar {
    background: linear-gradient(to right, #000080, #1084d0);
    color: #ffffff;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 0;
    border: none;
}

/* === WINDOW-STYLE CARD === */
.window-card {
    background: #00c3ff;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #dfdfdf;
    margin-bottom: 20px;
}

.window-card .window-content {
    background: #ffffff;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #dfdfdf;
    padding: 16px;
}

/* === SIDEBAR === */
.sidebar {
    padding: 0;
}

.gamedown,
.gamedownn {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #dfdfdf;
    background-color: #c0c0c0;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: none;
}

.gamedownn {
    background-color: #ffff00;
    border-color: #ffff80 #808000 #808000 #ffff80;
}

.gamedown:hover,
.gamedownn:hover {
    background-color: #00c3ff;
}

.gamedownn:hover {
    background-color: #ffff80;
}

.gamedown:active,
.gamedownn:active {
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #dfdfdf;
    transform: translate(1px, 1px);
}

.gamedown a,
.gamedownn a {
    text-decoration: none;
    color: #0000ff;
    font-weight: bold;
}

.gamedown a:hover,
.gamedownn a:hover {
    color: #ff0000;
}

/* === RIGHTBOX === */
.rightbox {
    border-right: 4px solid #808080;
    padding-right: 20px;
}

/* === LOGO === */
.logo {
    border-bottom: 4px solid #808080;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

/* === MODAL OVERLAYS (WINDOWS 95 STYLE) === */
.download-notice-overlay,
.copy-notice-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.download-notice-box,
.copy-notice-box {
    background-color: #00c3ff;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow:
        inset -2px -2px 0 #808080,
        inset 2px 2px 0 #fff,
        inset -4px -4px 0 #404040,
        inset 4px 4px 0 #dfdfdf;
    min-width: 300px;
    max-width: 500px;
    padding: 0;
    text-align: center;
}

.download-notice-content,
.copy-notice-content {
    padding: 20px;
}

.download-notice-content h3,
.copy-notice-content h3 {
    color: #ff0000;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 900;
    font-family: "Arial Black", sans-serif;
    text-transform: uppercase;
}

.download-notice-content p,
.copy-notice-content p {
    color: #000000;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
    font-family: "MS Sans Serif", Tahoma, sans-serif;
}

.download-notice-content button,
.copy-notice-content button {
    background-color: #c0c0c0;
    color: #000000;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #dfdfdf;
    padding: 10px 40px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: none;
}

.download-notice-content button:hover,
.copy-notice-content button:hover {
    background-color: #d0d0d0;
}

.download-notice-content button:active,
.copy-notice-content button:active {
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #dfdfdf;
    transform: translate(1px, 1px);
}

/* === CLOSE BUTTON === */
.close-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #dfdfdf;
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    padding: 2px 8px;
    line-height: 1;
    transition: none;
    z-index: 10;
}

.close-btn:hover {
    background: #d0d0d0;
}

.close-btn:active {
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #dfdfdf;
    transform: translate(1px, 1px);
}

/* === SCROLLBAR STYLING (90s style) === */
#expContent::-webkit-scrollbar,
#bossContent::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

#expContent::-webkit-scrollbar-track,
#bossContent::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
}

#expContent::-webkit-scrollbar-thumb,
#bossContent::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #dfdfdf;
}

#expContent::-webkit-scrollbar-thumb:hover,
#bossContent::-webkit-scrollbar-thumb:hover {
    background: #d0d0d0;
}

#expContent::-webkit-scrollbar-thumb:active,
#bossContent::-webkit-scrollbar-thumb:active {
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #dfdfdf;
}

/* === COPY SUCCESS ICON === */
.copy-icon {
    width: 60px;
    height: 60px;
    background: #00ff00;
    border: 2px solid;
    border-color: #00ff00 #006600 #006600 #00ff00;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #000000;
    font-weight: bold;
}

/* === MARQUEE CONTAINER === */
.marquee-container {
    background: #000080;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    padding: 8px 0;
    margin-bottom: 20px;
    overflow: hidden;
}

.marquee-text {
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
}

/* === HIT COUNTER STYLE === */
.hit-counter {
    background: #000000;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #dfdfdf;
    padding: 12px 20px;
    display: inline-block;
    margin: 20px 0;
}

.hit-counter-text {
    color: #00ff00;
    font-family: "Courier New", Courier, monospace;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* === BADGE (NEW/HOT) === */
.badge-new {
    display: inline-block;
    background: #ff0000;
    color: #ffff00;
    border: 2px solid;
    border-color: #ff5555 #800000 #800000 #ff5555;
    padding: 4px 12px;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 8px;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

/* === TABLE-LIKE GRID === */
.grid-table {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0;
    border: 2px solid #000000;
}

.grid-cell {
    padding: 8px 12px;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    background: #ffffff;
}

.grid-cell:nth-child(odd) {
    background: #e8e8e8;
    font-weight: bold;
    color: #ff0000;
}

/* === RESPONSIVE === */

/* 平板和小屏幕 */
@media (max-width: 960px) {
    .container_16 {
        width: 100%;
        padding: 0 15px;
    }

    .main {
        padding: 15px;
    }
}

/* 平板竖屏 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container_16 {
        width: 100%;
        padding: 0 10px;
    }

    .grid_3,
    .grid_12,
    .grid_16 {
        width: 100%;
        float: none;
        display: block;
        margin: 0 0 20px 0;
    }

    .rightbox {
        border-right: none;
        border-bottom: 4px solid #808080;
        padding-bottom: 20px;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .main {
        padding: 15px 10px;
    }

    /* 标题大小调整 */
    h1,
    .text-rainbow {
        font-size: 28px !important;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    /* 内容区域 */
    .content-title {
        font-size: 18px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .content-body {
        margin-left: 10px;
        margin-right: 10px;
        font-size: 14px;
        padding: 12px;
    }

    /* 按钮优化 */
    button,
    .btn,
    .down01_btn {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 44px;
        /* 移动端触摸友好 */
    }

    /* 侧边栏按钮 */
    .gamedown,
    .gamedownn {
        padding: 12px 10px;
        font-size: 14px;
        margin-bottom: 12px;
    }

    /* 徽章 */
    .badge-new {
        font-size: 10px;
        padding: 3px 8px;
    }

    /* 点击计数器 */
    .hit-counter {
        padding: 10px 15px;
    }

    .hit-counter-text {
        font-size: 14px;
        letter-spacing: 1px;
    }

    /* 滚动公告栏 */
    .marquee-container {
        padding: 6px 0;
    }

    .marquee-text {
        font-size: 14px;
    }

    /* 模态框 */
    .download-notice-box,
    .copy-notice-box {
        min-width: 280px;
        max-width: 90%;
        margin: 0 10px;
    }

    .download-notice-content,
    .copy-notice-content {
        padding: 20px 15px;
    }

    /* 建设中条纹 */
    .bg-construction {
        padding: 15px 10px;
    }

    .bg-construction div {
        font-size: 24px !important;
    }
}

/* 手机横屏和小平板 */
@media (max-width: 640px) {
    .webbox {
        padding: 10px 5px;
    }

    .main {
        padding: 10px 8px;
    }

    /* 进一步缩小标题 */
    h1,
    .text-rainbow {
        font-size: 24px !important;
        line-height: 1.3;
    }

    .strong {
        flex-direction: column;
        gap: 8px;
    }

    /* 内容区域 */
    .content-title {
        font-size: 16px;
        margin-left: 8px;
        margin-right: 8px;
    }

    .content-body {
        margin-left: 8px;
        margin-right: 8px;
        font-size: 13px;
        padding: 10px;
        line-height: 1.6;
    }

    /* 按钮 */
    button,
    .btn,
    .down01_btn {
        padding: 12px 16px;
        font-size: 14px;
        width: 100%;
        display: block;
    }

    /* 窗口卡片 */
    .window-card {
        margin-bottom: 15px;
    }

    .title-bar {
        font-size: 13px;
        padding: 6px 8px;
    }

    .window-content {
        padding: 12px !important;
    }

    /* 模态框内容 */
    #expContent,
    #bossContent {
        font-size: 13px;
        padding: 12px;
        max-height: 40vh;
    }

    /* 表格式内容 */
    .grid-table {
        font-size: 12px;
    }

    .grid-cell {
        padding: 6px 8px;
    }
}

/* 小手机 */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .webbox {
        padding: 5px 2px;
    }

    .main {
        padding: 8px 5px;
        border-width: 1px;
    }

    /* 标题 */
    h1,
    .text-rainbow {
        font-size: 20px !important;
        margin-top: 20px !important;
    }

    h2 {
        font-size: 18px;
    }

    h3 {
        font-size: 16px;
    }

    /* 内容 */
    .content-title {
        font-size: 15px;
        margin-left: 5px;
        margin-right: 5px;
    }

    .content-body {
        margin-left: 5px;
        margin-right: 5px;
        font-size: 12px;
        padding: 8px;
    }

    /* 按钮 */
    button,
    .btn,
    .down01_btn {
        padding: 10px 12px;
        font-size: 13px;
        letter-spacing: 0.5px;
    }

    /* 徽章 */
    .badge-new {
        font-size: 9px;
        padding: 2px 6px;
    }

    /* 点击计数器 */
    .hit-counter {
        padding: 8px 10px;
    }

    .hit-counter-text {
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    /* 滚动公告栏 */
    .marquee-text {
        font-size: 12px;
    }

    /* 模态框 */
    .download-notice-box,
    .copy-notice-box {
        min-width: 260px;
        max-width: 95%;
    }

    .download-notice-content h3,
    .copy-notice-content h3 {
        font-size: 18px !important;
    }

    .download-notice-content p,
    .copy-notice-content p {
        font-size: 13px !important;
    }

    .download-notice-content button,
    .copy-notice-content button {
        padding: 8px 30px;
        font-size: 14px;
    }

    /* 建设中条纹 */
    .bg-construction {
        padding: 12px 8px;
    }

    .bg-construction div {
        font-size: 18px !important;
        text-shadow: 1px 1px 0 #000000 !important;
    }

    /* 关闭按钮 */
    .close-btn {
        padding: 4px 10px;
        font-size: 18px;
    }

    /* 分隔线 */
    .hr-groove {
        height: 3px;
        margin: 15px 0;
    }

    /* 窗口卡片 */
    .title-bar {
        font-size: 12px;
        padding: 4px 6px;
    }

    /* 侧边栏 */
    .gamedown,
    .gamedownn {
        padding: 10px 8px;
        font-size: 13px;
    }
}

/* 超小屏幕 */
@media (max-width: 360px) {

    h1,
    .text-rainbow {
        font-size: 18px !important;
    }

    .content-body {
        font-size: 11px;
    }

    .hit-counter-text {
        font-size: 10px;
    }

    button,
    .btn,
    .down01_btn {
        font-size: 12px;
        padding: 8px 10px;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    .text-rainbow {
        animation: none;
        color: #ff0000;
    }

    .animate-pulse-glow {
        animation: none;
    }

    .blink {
        animation: none;
        opacity: 1;
    }

    * {
        transition: none !important;
        animation: none !important;
    }
}

/* === ADDITIONAL UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.p-16 {
    padding: 16px;
}

/* === NO BORDER RADIUS ANYWHERE === */
* {
    border-radius: 0 !important;
}

/* === MOBILE TOUCH OPTIMIZATION === */
@media (max-width: 768px) {

    /* 优化触摸滚动 */
    body {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }

    /* 移除点击高亮 */
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }

    /* 按钮和链接保持可点击 */
    button,
    .btn,
    .down01_btn,
    a,
    .gamedown,
    .gamedownn {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }

    /* 防止文本选择（除了内容区域） */
    .strong,
    .title-bar,
    .badge-new,
    .hit-counter {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    /* 内容区域允许选择 */
    .content-body {
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }

    /* 优化滚动条在移动端的显示 */
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    /* 确保按钮有足够的触摸区域 */
    button,
    .btn,
    .down01_btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* 优化输入框（如果有的话） */
    input,
    textarea {
        font-size: 16px;
        /* 防止iOS自动缩放 */
    }
}

/* === LANDSCAPE MOBILE OPTIMIZATION === */
@media (max-width: 768px) and (orientation: landscape) {

    /* 横屏时减少垂直间距 */
    .main {
        padding: 10px 15px;
    }

    .content-body {
        padding: 10px;
        margin-bottom: 15px;
    }

    .hr-groove {
        margin: 12px 0;
    }

    h1,
    .text-rainbow {
        font-size: 24px !important;
        margin-top: 15px !important;
    }

    .hit-counter {
        padding: 8px 12px;
    }
}

/* === YB.GIF 图片自适应 === */
.yb-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 桌面端保持原始大小 */
@media (min-width: 769px) {
    .yb-image {
        max-width: none;
    }
}

/* === 移动端底部图片 === */
.mobile-bottom-image {
    display: none;
    /* 桌面端隐藏 */
}

@media (max-width: 768px) {

    /* 移动端不显示底部图片 */
    .mobile-bottom-image {
        display: none !important;
    }

    /* 移动端隐藏漂浮图片（由zxf.js生成） */
    #floatLayer,
    #floatDiv,
    #float,
    .float-layer,
    .kefu-float,
    [id*="float"]:not(#floatText),
    [class*="float"]:not(.mobile-bottom-image),
    body>div[style*="position: fixed"],
    body>div[style*="position:fixed"] {
        display: none !important;
        visibility: hidden !important;
    }

    /* 移动端标题字体加大 */
    h1.text-rainbow,
    .text-rainbow {
        font-size: 32px !important;
    }

    /* 移动端缩小zcxf内容 */
    .zcxf {
        font-size: 12px !important;
        padding: 8px !important;
        margin: 8px 0 !important;
    }

    .zcxf * {
        font-size: 12px !important;
    }

    .zcxf img {
        max-width: 80% !important;
        height: auto !important;
    }
}

@media (max-width: 640px) {

    h1.text-rainbow,
    .text-rainbow {
        font-size: 28px !important;
    }

    /* 640px以下进一步缩小zcxf */
    .zcxf {
        font-size: 11px !important;
        padding: 6px !important;
    }

    .zcxf * {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {

    h1.text-rainbow,
    .text-rainbow {
        font-size: 24px !important;
    }

    .mobile-bottom-image {
        padding: 15px 5px;
    }

    /* 480px以下最小尺寸zcxf */
    .zcxf {
        font-size: 10px !important;
        padding: 5px !important;
    }

    .zcxf * {
        font-size: 10px !important;
    }

    .zcxf img {
        max-width: 70% !important;
    }
}