/* ============================================================
   DNF开服发布网 - 美化版样式
   保持原PHP模板结构不变，仅视觉层美化
   ============================================================ */

/* ---------- 全局重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", sans-serif;
    font-size: 13px;
    color: #e0e0e0;
    background: #0a0a12 url('bg.jpg') no-repeat center top fixed;
    background-size: cover;
    line-height: 1.6;
    min-height: 100vh;
}

/* 背景遮罩，让内容更清晰 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10,10,18,0.45) 0%, rgba(15,15,25,0.55) 100%);
    z-index: -1;
}

/* ---------- 链接 ---------- */
a {
    color: #ffb347;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ff6b00;
    text-decoration: underline;
}

a.viewlink {
    color: #00d4ff;
}

a.viewlink:hover {
    color: #00ffcc;
}

/* ============================================================
   顶部Banner - 321DNF金色品牌（已修正类名为.banner）
   ============================================================ */
.banner {
    width: 1170px;
    height: 300px;
    margin: 0 auto;
    background: url('banner.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

/* 炫彩立体流动LOGO大字 */
.banner::before {
    content: "www.321DNF.com";
    position: absolute;
    top: 32%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    font-weight: 900;
    color: transparent;
    -webkit-text-fill-color: transparent;
    letter-spacing: 8px;
    font-family: "Arial Black", "Microsoft YaHei", sans-serif;
    background: linear-gradient(90deg,
        #b8860b 0%,
        #daa520 15%,
        #ffd700 30%,
        #fff8dc 42%,
        #ffffff 48%,
        #fff8dc 54%,
        #ffd700 70%,
        #daa520 85%,
        #b8860b 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmerFlow 5s linear infinite, glowPulse 3s ease-in-out infinite;
    white-space: nowrap;
    z-index: 2;
}
@keyframes shimmerFlow {
    from { background-position: 200% center; }
    to { background-position: 0% center; }
}
@keyframes glowPulse {
    0%, 100% {
        filter:
            drop-shadow(0 1px 0 rgba(255,255,255,0.5))
            drop-shadow(0 2px 0 rgba(0,0,0,0.25))
            drop-shadow(0 3px 0 rgba(0,0,0,0.25))
            drop-shadow(0 4px 0 rgba(0,0,0,0.25))
            drop-shadow(0 5px 0 rgba(0,0,0,0.25))
            drop-shadow(0 6px 12px rgba(0,0,0,0.6))
            drop-shadow(0 0 20px rgba(255,215,0,0.4));
    }
    50% {
        filter:
            drop-shadow(0 1px 0 rgba(255,255,255,0.5))
            drop-shadow(0 2px 0 rgba(0,0,0,0.25))
            drop-shadow(0 3px 0 rgba(0,0,0,0.25))
            drop-shadow(0 4px 0 rgba(0,0,0,0.25))
            drop-shadow(0 5px 0 rgba(0,0,0,0.25))
            drop-shadow(0 6px 12px rgba(0,0,0,0.6))
            drop-shadow(0 0 45px rgba(255,215,0,0.8));
    }
}

/* 标语胶囊 */
.banner::after {
    content: "找服就上321DNF.COM";
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 26px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 4px;
    padding: 8px 30px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 25px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7), 0 2px 4px rgba(0,0,0,0.9);
    white-space: nowrap;
    z-index: 2;
}

@keyframes bannerGlow {
    0%, 100% { text-shadow: 0 0 15px rgba(255,215,0,.9), 0 0 30px rgba(255,140,0,.7), 0 0 60px rgba(255,100,0,.5), 0 3px 6px rgba(0,0,0,.9); }
    50% { text-shadow: 0 0 22px rgba(255,215,0,1), 0 0 45px rgba(255,140,0,.9), 0 0 80px rgba(255,100,0,.7), 0 3px 6px rgba(0,0,0,.9); }
}

.logo {
    width: 100%;
    height: 100%;
}

.logo a {
    display: block;
    width: 100%;
    height: 100%;
}

/* ============================================================
   广告信息条（贴在banner底部，黑色半透明+金色文字）
   ============================================================ */
.dl {
    width: 1170px !important;
    margin: -40px auto 0 !important;
    position: relative;
    z-index: 3;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.85) 100%) !important;
    border: none !important;
}

.dl tr {
    background: transparent !important;
}

.dl td,
.dl th {
    padding: 8px 12px !important;
    font-size: 13px;
    color: #ffd700 !important;
    background: transparent !important;
    border: none !important;
    text-align: center;
}

.dl a {
    color: #ffd700;
    text-decoration: none;
    margin: 0 8px;
}

.dl a:hover {
    color: #ff8c00;
    text-decoration: underline;
}

.dl b {
    color: #ff6b00;
}

/* ---------- 主表格容器 ---------- */
.tableBorder1 {
    width: 1100px !important;
    margin: 0 auto !important;
    border-collapse: separate !important;
    border-spacing: 0 6px !important;
    background: transparent !important;
    border: none !important;
}

/* ---------- 表头 ---------- */
.tableBorder1 tr:first-child th,
#tab1 tr:first-child th {
    background: #FF3300 !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: bold;
    padding: 12px 8px !important;
    text-align: center;
    border: none !important;
    border-bottom: 2px solid #cc0000 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.tableBorder1 tr:first-child th:first-child {
    border-radius: 8px 0 0 0;
}

.tableBorder1 tr:first-child th:last-child {
    border-radius: 0 8px 0 0;
}

/* ---------- 广告行通用美化（核心） ---------- */
.tableBorder1 tr,
#tab1 tr {
    transition: all 0.25s ease !important;
    border: none !important;
}

/* 给每行加边框效果 - 通过第一个和最后一个TD */
.tableBorder1 tr td:first-child,
#tab1 tr td:first-child {
    border-left: 3px solid #ff6b00 !important;
    border-radius: 6px 0 0 6px;
}

.tableBorder1 tr td:last-child,
#tab1 tr td:last-child {
    border-right: 1px solid rgba(255, 107, 0, 0.3) !important;
    border-radius: 0 6px 6px 0;
}

.tableBorder1 tr td,
#tab1 tr td {
    padding: 5px 6px !important;
    border-top: 1px solid rgba(255, 107, 0, 0.15) !important;
    border-bottom: 1px solid rgba(255, 107, 0, 0.15) !important;
    background: transparent !important;
    vertical-align: middle;
    line-height: 1.3 !important;
    font-size: 12px !important;
}

/* hover效果 - 鼠标放上去变白 */
.tableBorder1 tr:hover,
#tab1 tr:hover {
    background: #ffffff !important;
    box-shadow: none !important;
    transform: none !important;
}

.tableBorder1 tr:hover td,
.tableBorder1 tr:hover td a,
.tableBorder1 tr:hover td font,
#tab1 tr:hover td,
#tab1 tr:hover td a,
#tab1 tr:hover td font {
    color: #000000 !important;
}

.tableBorder1 tr:hover td:first-child,
#tab1 tr:hover td:first-child {
    border-left-color: #999999 !important;
    box-shadow: none !important;
}

/* ============================================================
   开服信息行 - 按类型区分底色和文字色
   套黄：红字 + 黄色底
   精品：红字 + 浅蓝色底
   红钻：黑字 + 浅红色底
   待开发：黑字 + 浅黄色底
   次日/次次日开放的行同样适用
   ============================================================ */

/* 套黄：红字 + 黄色底 #ffff00 */
.tableBorder1 tr[bgColor="#ffff00"],
#tab1 tr[bgColor="#ffff00"] {
    background-color: #ffff00 !important;
}
.tableBorder1 tr[bgColor="#ffff00"] td,
.tableBorder1 tr[bgColor="#ffff00"] td a,
.tableBorder1 tr[bgColor="#ffff00"] td font,
#tab1 tr[bgColor="#ffff00"] td,
#tab1 tr[bgColor="#ffff00"] td a,
#tab1 tr[bgColor="#ffff00"] td font {
    color: #FF0000 !important;
}

/* 精品：红字 + 浅蓝色底 #ADD8E6 */
.tableBorder1 tr.jp-row,
#tab1 tr.jp-row {
    background: #ADD8E6 !important;
}
.tableBorder1 tr.jp-row td,
.tableBorder1 tr.jp-row td a,
.tableBorder1 tr.jp-row td font,
#tab1 tr.jp-row td,
#tab1 tr.jp-row td a,
#tab1 tr.jp-row td font {
    color: #000000 !important;
}

/* 红钻：黑字 + 浅红色底 #FFB6C1 */
.tableBorder1 tr[bgColor="#FFB6C1"],
#tab1 tr[bgColor="#FFB6C1"] {
    background-color: #FFB6C1 !important;
}
.tableBorder1 tr[bgColor="#FFB6C1"] td,
.tableBorder1 tr[bgColor="#FFB6C1"] td a,
.tableBorder1 tr[bgColor="#FFB6C1"] td font,
#tab1 tr[bgColor="#FFB6C1"] td,
#tab1 tr[bgColor="#FFB6C1"] td a,
#tab1 tr[bgColor="#FFB6C1"] td font {
    color: #000000 !important;
}

/* 待开发：黑字 + 浅黄色底 #ffff99 */
.tableBorder1 tr[bgColor="#ffff99"],
#tab1 tr[bgColor="#ffff99"] {
    background-color: #ffff99 !important;
}
.tableBorder1 tr[bgColor="#ffff99"] *,
#tab1 tr[bgColor="#ffff99"] * {
    color: #000000 !important;
}
.tableBorder1 tr[bgColor="#ffff99"] .tda,
.tableBorder1 tr[bgColor="#ffff99"] a.tda,
#tab1 tr[bgColor="#ffff99"] .tda,
#tab1 tr[bgColor="#ffff99"] a.tda {
    background: #e6c200 !important;
    border: 1px solid #cc9900 !important;
    color: #000000 !important;
}

/* 次日/次次日区域：服务器名字全部黑色 */
.tableBorder1 tr.TableRow ~ tr td:first-child,
.tableBorder1 tr.TableRow ~ tr td:first-child a,
.tableBorder1 tr.TableRow ~ tr td:first-child font,
#tab1 tr.TableRow ~ tr td:first-child,
#tab1 tr.TableRow ~ tr td:first-child a,
#tab1 tr.TableRow ~ tr td:first-child font {
    color: #000000 !important;
}

/* ---------- 不同类型广告行的左侧边框颜色区分 ---------- */
/* 套黄/推荐类 - 橙色 */
.tableBorder1 tr td:first-child {
    border-left-color: #ff6b00 !important;
}

/* ---------- "点击查看"按钮美化 ---------- */
.tda,
a.tda {
    display: inline-block !important;
    padding: 5px 14px !important;
    background: linear-gradient(180deg, #ff6b00 0%, #cc4400 100%) !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    border: 1px solid #ff8800 !important;
    box-shadow: 0 2px 6px rgba(255, 107, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.2) !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.tda:hover,
a.tda:hover {
    background: linear-gradient(180deg, #ff8800 0%, #ff6b00 100%) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.3) !important;
    transform: translateY(-1px);
    text-decoration: none !important;
    color: #fff !important;
}

/* ---------- 分隔行（明天/后天/昨天标题） ---------- */
.TableRow {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 107, 0, 0.15) 20%, rgba(255, 107, 0, 0.25) 50%, rgba(255, 107, 0, 0.15) 80%, transparent 100%) !important;
}

.TableRow th {
    padding: 14px 8px !important;
    font-size: 15px !important;
    font-weight: bold !important;
    color: #ffb347 !important;
    text-align: center !important;
    border: none !important;
    border-top: 1px solid rgba(255, 107, 0, 0.3) !important;
    border-bottom: 1px solid rgba(255, 107, 0, 0.3) !important;
    text-shadow: 0 0 10px rgba(255, 179, 71, 0.6);
    letter-spacing: 2px;
    background: transparent !important;
}

/* ---------- 状态标签美化 ---------- */
/* 当前开放 */
.tableBorder1 td font[color="#FF0000"],
#tab1 td font[color="#FF0000"] {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255, 50, 50, 0.15);
    border: 1px solid rgba(255, 50, 50, 0.4);
    border-radius: 3px;
    color: #ff5555 !important;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

/* 已经开放 */
.tableBorder1 td font[color="blue"],
#tab1 td font[color="blue"] {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(0, 150, 255, 0.15);
    border: 1px solid rgba(0, 150, 255, 0.4);
    border-radius: 3px;
    color: #44aaff !important;
    font-size: 12px;
    font-weight: bold;
}

/* 等待开放 */
.tableBorder1 td font[color="#000000"],
#tab1 td font[color="#000000"] {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(150, 150, 150, 0.15);
    border: 1px solid rgba(150, 150, 150, 0.4);
    border-radius: 3px;
    color: #aaa !important;
    font-size: 12px;
    font-weight: bold;
}

/* 精品推荐/红钻推荐等 */
.tableBorder1 td font[color="#089642"],
#tab1 td font[color="#089642"] {
    color: #00ff88 !important;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(0, 255, 136, 0.5);
}

.tableBorder1 td font[color="#ff0066"],
#tab1 td font[color="#ff0066"] {
    color: #ff66aa !important;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(255, 102, 170, 0.5);
}

/* 推荐标签 */
.tableBorder1 .r,
#tab1 .r {
    float: none !important;
    display: inline;
}

.tableBorder1 font[class="r"],
#tab1 font[class="r"] {
    margin-left: 4px;
}

/* ---------- 动画 ---------- */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 107, 0, 0.3); }
    50% { box-shadow: 0 0 15px rgba(255, 107, 0, 0.6); }
}

/* ---------- 服务器名称列 ---------- */
.tableBorder1 tr td:nth-child(1) a,
#tab1 tr td:nth-child(1) a {
    font-weight: bold;
    color: #ffd700;
    font-size: 13px;
}

.tableBorder1 tr td:nth-child(1) a:hover,
#tab1 tr td:nth-child(1) a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

/* 服务器名称前的图标 */
.tableBorder1 tr td:nth-child(1) img,
#tab1 tr td:nth-child(1) img {
    vertical-align: middle;
    margin-right: 4px;
}

/* ---------- IP列 ---------- */
.tableBorder1 tr td:nth-child(2) a,
#tab1 tr td:nth-child(2) a {
    color: #88ccff;
    font-family: Consolas, monospace;
    font-size: 12px;
}

/* ---------- 时间列 ---------- */
.tableBorder1 tr td:nth-child(3),
#tab1 tr td:nth-child(3) {
    color: #ffb347;
    font-weight: bold;
    white-space: nowrap;
}

.tableBorder1 tr td:nth-child(3) font[color="red"],
#tab1 tr td:nth-child(3) font[color="red"] {
    color: #ff6b6b !important;
}

/* ---------- 版本介绍列 ---------- */
.tableBorder1 tr td:nth-child(4),
#tab1 tr td:nth-child(4) {
    color: #ccc;
    font-size: 12px;
}

.tableBorder1 tr td:nth-child(4) a,
#tab1 tr td:nth-child(4) a {
    color: #ccc;
}

.tableBorder1 tr td:nth-child(4) a:hover,
#tab1 tr td:nth-child(4) a:hover {
    color: #fff;
}

/* ---------- 线路列 ---------- */
.tableBorder1 tr td:nth-child(5),
#tab1 tr td:nth-child(5) {
    text-align: center;
    color: #aaffaa;
    font-size: 12px;
}

/* ---------- QQ列 ---------- */
.tableBorder1 tr td:nth-child(7),
#tab1 tr td:nth-child(7) {
    text-align: center;
    color: #88ccff;
    font-family: Consolas, monospace;
    font-size: 12px;
}

/* ---------- 详情列 ---------- */
.tableBorder1 tr td:nth-child(8),
#tab1 tr td:nth-child(8) {
    text-align: center;
}

/* ---------- 页脚 ---------- */
.footer {
    width: 1170px;
    margin: 20px auto 30px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(20, 15, 30, 0.9) 0%, rgba(10, 8, 18, 0.95) 100%);
    border-radius: 8px;
    border-top: 2px solid #ff6b00;
    text-align: center;
    color: #888;
    font-size: 12px;
    line-height: 1.8;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.3);
}

.footer a {
    color: #ffb347;
}

.footer a:hover {
    color: #ff6b00;
}

/* ---------- 滚动条美化 ---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff6b00, #cc4400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff8800, #ff6b00);
}

/* ---------- 响应式（最小适配） ---------- */
@media screen and (max-width: 1120px) {
    .banner,
    .dl,
    .tableBorder1,
    .footer {
        width: 100% !important;
    }
}

/* 精品：黑字 + 浅蓝色底 */
#tab1 tr[bgColor="#7de0f4"] {
    background: #ADD8E6 !important;
}
#tab1 tr[bgColor="#7de0f4"] td,
#tab1 tr[bgColor="#7de0f4"] td a,
#tab1 tr[bgColor="#7de0f4"] td font,
#tab1 tr[bgColor="#7de0f4"] td b {
    color: #000000 !important;
}
/* 精品标签加框框（和红钻一样的样式，蓝色系） */
#tab1 td font[color="#089642"] {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(0, 100, 200, 0.15);
    border: 1px solid rgba(0, 100, 200, 0.5);
    border-radius: 3px;
    color: #003366 !important;
    font-size: 12px;
    font-weight: bold;
}
/* 时间列td垂直对齐 */
#tab1 tr td:nth-child(3) {
    vertical-align: middle;
}
/* 时间列所有子元素垂直对齐 */
#tab1 tr td:nth-child(3) a,
#tab1 tr td:nth-child(3) font,
#tab1 tr td:nth-child(3) b {
    vertical-align: middle;
}
/* 普通套黄行加粗时间文字：统一行高20px，往下微调1px */
#tab1 tr[bgColor="#ffff00"] td:nth-child(3) font[color="red"] {
    line-height: 20px;
    display: inline-block;
    padding-top: 1px;
}
/* 待开发行时间文字：统一行高20px */
#tab1 tr[bgColor="#ffff99"] td:nth-child(3) a {
    line-height: 20px;
}
/* 当前开放（套黄行）的点击查看按钮：橘色背景+黑色字体 */
#tab1 tr[bgColor="#ffff00"] a.tda,
#tab1 tr[bgColor="#ffff00"] .tda {
    background: linear-gradient(180deg, #ff8c00 0%, #ff6600 100%) !important;
    color: #000000 !important;
    border: 1px solid #ff8c00 !important;
}
/* 开服信息表高度改矮 */
#tab1 tr td {
    padding: 2px 6px !important;
    line-height: 14px !important;
}
#tab1 tr th {
    padding: 5px 4px !important;
}
