@charset "utf-8";
/* =========================================================
   红月吧 · 红月私服发布中心 模板样式
   由原站 style.css（GB2312）整理为 UTF-8，保留原始视觉
   ========================================================= */

BODY {
    SCROLLBAR-FACE-COLOR: #f6f6f6;
    SCROLLBAR-HIGHLIGHT-COLOR: #ffffff;
    SCROLLBAR-SHADOW-COLOR: #cccccc;
    SCROLLBAR-3DLIGHT-COLOR: #cccccc;
    SCROLLBAR-ARROW-COLOR: #330000;
    SCROLLBAR-TRACK-COLOR: #f6f6f6;
    SCROLLBAR-DARKSHADOW-COLOR: #ffffff;
    FONT-SIZE: 9pt;
    COLOR: #000000;
    FONT-FAMILY: Arial, "宋体", "Microsoft YaHei", sans-serif;
    MARGIN: 0px;
    TOPMARGIN: 0px;
    BACKGROUND-COLOR: #ed1b23;
}

TH { FONT-SIZE: 9pt; }
TD { FONT-SIZE: 9pt; }

A {
    TEXT-TRANSFORM: none;
    COLOR: #222222;
    TEXT-DECORATION: none;
}
A:visited { COLOR: #222222; TEXT-DECORATION: none; }
A:hover { COLOR: #ff0000; TEXT-DECORATION: none; }

.button {
    BORDER-RIGHT: #99cc99 1px ridge;
    PADDING-RIGHT: 1px;
    BORDER-TOP: #99cc99 1px ridge;
    PADDING-LEFT: 1px;
    FONT-SIZE: 9pt;
    PADDING-BOTTOM: 1px;
    BORDER-LEFT: #99cc99 1px ridge;
    COLOR: #000000;
    PADDING-TOP: 1px;
    BORDER-BOTTOM: #66ccff 1px ridge;
    FONT-FAMILY: "宋体";
    HEIGHT: 20px;
    BACKGROUND-COLOR: #99cc99;
    cursor: pointer;
}

INPUT {
    BACKGROUND: #ffffff;
    BORDER-BOTTOM: #BAAA7A 1px solid;
    BORDER-LEFT: #e7e6e6 1px solid;
    BORDER-RIGHT: #e7e6e6 1px solid;
    BORDER-TOP: #e7e6e6 1px solid;
    COLOR: #000000;
    FONT-SIZE: 9pt;
    HEIGHT: 20px;
}

SELECT {
    BACKGROUND: #DECE9E;
    BORDER: 1px solid #BAAA7A;
    COLOR: #666666;
    FONT-SIZE: 9pt;
    HEIGHT: 17px;
}

.unnamed2 { font-size: 9px; }
.unnamed3 { font-size: 10px; }

TABLE {
    FONT-SIZE: 9pt;
    COLOR: #000000;
    FONT-FAMILY: "宋体", Arial, sans-serif;
}

/* 导航链接（原站 A.Nav） */
A.Nav { COLOR: #fff799; FONT-FAMILY: "宋体"; TEXT-DECORATION: none; }
A.Nav:link { COLOR: #fff799; TEXT-DECORATION: none; }
A.Nav:visited { COLOR: #fff799; TEXT-DECORATION: none; }
A.Nav:hover { COLOR: #ffb544; TEXT-DECORATION: underline; }

/* 原站滤镜 Glow 的现代替代 */
.font_Glow_nav {
    filter: Glow(Color=#5C090B, Strength=2);
    text-shadow: 0 0 2px #5C090B;
    font-family: "宋体", Arial, sans-serif;
}

/* 原站遗留的类名，补全避免样式缺失 */
.style1 { color: #000000; }
.style3 { color: #000000; font-size: 12px; }
.style5 { color: #FF0000; font-weight: bold; }
.style6 { color: #000000; }
.style7 { color: #000000; }
.style8 { color: #000000; }
.style9 { color: #FF0000; }
.style10 { color: #0000FF; }
.style11 { color: #333333; }
.style12 { color: #ffff00; font-weight: bold; }
.style13 { color: #ff0000; }
.style49 { color: #000000; }
.style52 { color: #000000; }
.style93 { color: #000000; }
.font2 { font-size: 9pt; color: #000000; }

/* 家族联盟表格底纹 */
.sfbg1 { background-color: #ff0000; }
.sfbg2 { background: #F7941C url(images/date1_4.gif) repeat-x; }
.sfbg3 { background: #F7941C url(images/date1_4.gif) repeat-x; }
.title { color: #FFFF00; font-weight: bold; font-size: 9pt; }
.gjbg2 { background-color: #F7941C; }

/* =========================================================
   新增：横幅 / 通告 / 小图标 / 正文 / 分页
   ========================================================= */

/* 站点横幅（替代原 Flash top.swf，980×262） */
.site-banner { background-color: #990000; }
.banner-box {
    width: 100%;
    height: 262px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #5c0000 0%, #a30000 28%, #e00000 52%, #a30000 78%, #5c0000 100%);
    border: 1px solid #ffcc66;
    box-sizing: border-box;
    overflow: hidden;
}
.banner-title {
    margin: 0;
    font-family: "黑体", "Microsoft YaHei", sans-serif;
    font-size: 64px;
    font-weight: bold;
    letter-spacing: .18em;
    color: #ffd700;
    text-shadow: 3px 3px 0 #4a0000, 0 0 18px #ff0;
}
.banner-subtitle {
    margin: 10px 0 0;
    font-family: "黑体", "Microsoft YaHei", sans-serif;
    font-size: 26px;
    letter-spacing: .35em;
    color: #ffffff;
    text-shadow: 2px 2px 0 #6b0000;
}
.banner-domain {
    margin: 14px 0 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
    letter-spacing: .18em;
    color: #ffb544;
}

/* 通告条：文字从左侧无缝横向滚动，鼠标悬停暂停 */
.notice-marquee {
    display: block;
    width: 100%;
    height: 24px;
    line-height: 24px;
    overflow: hidden;
}
.notice-track {
    display: inline-flex;
    white-space: nowrap;
    will-change: transform;
    animation: noticeScroll 30s linear infinite;
}
.notice-marquee:hover .notice-track { animation-play-state: paused; }
@keyframes noticeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.neon-text {
    display: inline-block;
    padding-right: 64px;
    font-size: 12px;
    color: #000000;
    white-space: nowrap;
}

/* 原站 17b_Net_img/ICON_New.gif 缺失，用文字角标替代 */
.new-ico {
    display: inline-block;
    margin-left: 4px;
    padding: 0 3px;
    background: #ff0000;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 9px;
    line-height: 11px;
    border-radius: 2px;
    vertical-align: middle;
}

/* 搜索输入框 */
.search-key { width: 110px; height: 20px; }

/* 私服简介正文 */
.content-body {
    font-size: 9pt;
    line-height: 1.9;
    color: #000000;
    word-break: break-all;
    padding: 6px 8px;
}
.content-body img { max-width: 100%; height: auto; }
.content-body p { margin: 0 0 4px; }

/* 分页条（PbootCMS {page:xxx} 输出的 class） */
.page-index, .page-pre, .page-next, .page-last, .page-num {
    color: #0000ee;
    text-decoration: underline;
    padding: 0 2px;
}
.page-num-current { color: #ff0000; font-weight: bold; padding: 0 2px; }
.page-status { color: #000000; }

/* =========================================================
   新增：表单页 / 新闻页
   ========================================================= */

.form-input {
    width: 100%;
    box-sizing: border-box;
    height: 24px;
    line-height: 22px;
    padding: 0 6px;
    font-size: 12px;
    color: #000;
    border: 1px solid #BAAA7A;
    background: #ffffff;
}
.form-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 6px;
    font-size: 12px;
    line-height: 1.7;
    color: #000;
    border: 1px solid #BAAA7A;
    background: #ffffff;
    font-family: "宋体", Arial, sans-serif;
    resize: vertical;
}
.btn-submit, .btn-reset {
    height: 30px;
    padding: 0 24px;
    font-size: 13px;
    font-family: "宋体", Arial, sans-serif;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #8B0000;
    color: #8B0000;
    background: linear-gradient(#fff6d5, #ffb544);
}
.btn-reset {
    color: #444444;
    border-color: #bbbbbb;
    background: linear-gradient(#ffffff, #e6e6e6);
}

.news-title {
    margin: 6px 0 10px;
    font-size: 20px;
    font-weight: bold;
    color: #990000;
    text-align: center;
}
.news-meta {
    margin: 0;
    font-size: 12px;
    color: #666666;
    text-align: center;
}

/* =========================================================
   1200 基准宽度 + H5 自适应
   桌面：所有区块按 width=1200 居中；≤1260px 自动铺满；
   ≤820px 切换为手机版（隐藏广告位、导航改按钮组、宽表精简列、表单竖向堆叠）。
   ========================================================= */

/* 页面容器：桌面固定 1200px 居中，窄屏自动铺满 */
.page {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    background: #ed1b23;
    overflow: hidden;
}

/* 手机端导航默认不显示 */
.h5-nav { display: none; }

/* ---------- 中屏（平板 / 小笔记本）：宽度跟随屏幕 ---------- */
@media screen and (max-width: 1260px) {
    table { width: 100% !important; max-width: 100%; }
    td, th { width: auto !important; }
}

/* ---------- 窄屏（手机）：手机版布局 ---------- */
@media screen and (max-width: 820px) {

    body { background: #cc0000; overflow-x: hidden; }

    /* 顶部信息条 / PC 导航 / 广告位条 让位给手机导航 */
    .top-bar, .ad-strip, .nav-bar { display: none !important; }

    .h5-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        padding: 8px 6px;
        background: #cc0000;
        border-bottom: 2px solid #ffcc66;
    }
    .h5-nav a {
        padding: 8px 2px;
        font-size: 12px;
        line-height: 1.2;
        color: #fff799;
        text-decoration: none;
        text-align: center;
        border: 1px solid #ff9900;
        background: #990000;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 横幅按屏幕比例收缩 */
    .site-banner { height: auto !important; }
    .banner-box { height: 150px; }
    .banner-title { font-size: 34px; letter-spacing: .12em; }
    .banner-subtitle { font-size: 15px; letter-spacing: .2em; margin-top: 6px; }
    .banner-domain { font-size: 12px; margin-top: 8px; }

    /* 通告条：允许换行 */
    .neon-text { font-size: 12px; line-height: 1.6; }

    /* 图片（中部广告、横幅、页脚 logo）不撑破屏幕 */
    img { max-width: 100%; height: auto; }

    /* 服务器列表：只留 服务器名 / 开放时间 / 线路 / 推荐星级 */
    .cols9 td:nth-child(2), .cols9 td:nth-child(5), .cols9 td:nth-child(6),
    .cols9 td:nth-child(7), .cols9 td:nth-child(8) { display: none; }

    /* 首页固定推荐（8 列）：只留 服务器名 / 开放时间 / 线路 / 推荐星级 */
    .cols8 td:nth-child(2), .cols8 td:nth-child(5),
    .cols8 td:nth-child(6), .cols8 td:nth-child(7) { display: none; }

    /* 家族联盟：只留 家族名 / QQ群 / 老大 / TOP排名 */
    .family-table td:nth-child(4), .family-table td:nth-child(5),
    .family-table td:nth-child(6), .family-table td:nth-child(7),
    .family-table td:nth-child(8) { display: none; }

    /* 新闻列表：只留 序号 / 标题 / 日期 */
    .news-table td:nth-child(3) { display: none; }

    /* 广告报价：只留 位置 / 形式 / 价格 */
    .price-table td:nth-child(4) { display: none; }

    /* 发布 / 家族表单：四列表格改为竖向堆叠，输入框占满一行 */
    .form-table, .form-table tbody, .form-table tr, .form-table td {
        display: block;
        width: auto !important;
    }
    .form-table tr { margin-bottom: 3px; }

    /* 私服详情属性表：同样竖向堆叠 */
    .detail-table, .detail-table tbody, .detail-table tr, .detail-table td {
        display: block;
        width: auto !important;
    }

    /* 手机上字号统一到 13px，避免 9pt 过小 */
    table, td, .style5, .style6, .style49, .style93, .font2 { font-size: 13px; }
    .news-title { font-size: 17px; }

    /* 宽表按屏幕分列，单元格内文字自动换行，杜绝横向溢出 */
    .server-table td, .family-table td,
    .news-table td, .price-table td { word-break: normal; overflow-wrap: break-word; }

    /* 手机版各列宽度分配 */
    .cols9 td:nth-child(1), .cols8 td:nth-child(1) { width: 26% !important; }
    .cols9 td:nth-child(3), .cols8 td:nth-child(3) { width: 32% !important; }
    .cols9 td:nth-child(4), .cols8 td:nth-child(4) { width: 20% !important; }
    .cols9 td:nth-child(9), .cols8 td:nth-child(8) { width: 22% !important; }

    .family-table td:nth-child(1) { width: 30% !important; }
    .family-table td:nth-child(2) { width: 24% !important; }
    .family-table td:nth-child(3) { width: 26% !important; }
    .family-table td:nth-child(9) { width: 20% !important; }

    .news-table td:nth-child(1) { width: 8% !important; }
    .news-table td:nth-child(2) { width: 62% !important; }
    .news-table td:nth-child(4) { width: 30% !important; }

    .price-table td:nth-child(1) { width: 30% !important; }
    .price-table td:nth-child(2) { width: 35% !important; }
    .price-table td:nth-child(3) { width: 35% !important; }

    /* 搜索关键字框独占一行 */
    .search-key {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
        margin: 4px 0;
    }

    /* 发布入口链接单独占行 */
    .pub-links {
        display: block;
        margin-top: 6px;
        line-height: 1.9;
    }

    /* 页脚「返回顶部」不换行 */
    .back-top { width: auto !important; white-space: nowrap; }

    /* 通告 / 导航类文字 */
    .font_Glow_nav { font-size: 12px; }
}
