/**
 * 魔域辅助下载中心 - 001MY Theme
 * Theme Name: 魔域辅助下载中心
 * Description: 仿 001my 魔域辅助下载中心模板，支持统计代码与内嵌网站功能。
 * Version: 1.0
 * Author: Theme Team
 */

/* ===== 基础 ===== */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #d6d6d6;
}

/* 整站居中盒子 */
.site-wrap {
    max-width: 1200px;
    margin: 0 auto;
    background: #ebebeb;
    box-shadow: 0 0 25px rgba(0, 0, 0, .12);
}

a { color: #333; text-decoration: none; }
a:hover { color: #ee4d2d; }

img { max-width: 100%; height: auto; }

.container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

/* ===== 顶部通栏 ===== */
.topbar {
    background: #2b2b2b;
    color: #cfcfcf;
    font-size: 12px;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 34px;
}
.topbar a { color: #cfcfcf; }
.topbar a:hover { color: #fff; }
.topbar .sep { margin: 0 8px; color: #666; }

/* ===== 头部 LOGO ===== */
#header { background: #fff; }
.header-inner {
    display: flex;
    align-items: center;
    height: 86px;
}
#logo { display: flex; align-items: center; }
.logo-mark {
    display: inline-block;
    background: #ee4d2d;
    color: #fff;
    font-weight: bold;
    font-size: 22px;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 6px;
    margin-right: 14px;
}
.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #222;
}

/* 页头下载按钮 */
.download-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #ff7a3d, #ee4d2d);
    color: #fff !important;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(238, 77, 45, .4);
    animation: dlPulse 1.6s ease-in-out infinite;
    transition: transform .15s;
}
.download-btn:hover {
    background: linear-gradient(180deg, #ff8a4d, #f5582f);
    color: #fff !important;
    transform: translateY(-1px);
}
.download-btn .dl-icon { font-size: 18px; }
@keyframes dlPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(238, 77, 45, .4); }
    50% { box-shadow: 0 4px 22px rgba(238, 77, 45, .8); }
}

/* ===== 主导航 ===== */
#nav-menu {
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 3px solid #ee4d2d;
}
.nav-inner { display: flex; flex-wrap: wrap; }
#nav-menu a {
    display: inline-block;
    padding: 14px 26px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    position: relative;
    transition: color .2s, background .2s;
}
#nav-menu a:hover {
    color: #ee4d2d;
    background: #fff5f2;
}
#nav-menu a.current {
    color: #ee4d2d;
    background: #fff5f2;
}
#nav-menu a.current::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    background: #ee4d2d;
}

/* ===== 推荐横幅 ===== */
.recommend-bar {
    background: #fff7d6;
    border-bottom: 1px solid #f0e3a0;
}
.recommend-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 44px;
    position: relative;
}
.recommend-text {
    color: #c0392b;
    font-weight: bold;
    font-size: 14px;
}
.recommend-btn {
    background: #2ecc71;
    color: #fff !important;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    position: absolute;
    right: 10px;
}
.recommend-btn:hover { background: #27ae60; }

/* ===== 服务器列表表格 ===== */
.server-table-wrap {
    margin: 14px 0 0;
    overflow-x: auto;
    border: 1px solid #d9c97a;
}
.server-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fffdf2;
}
.server-table th {
    background: #2c3e63;
    color: #fff;
    font-weight: bold;
    padding: 10px 6px;
    text-align: center;
    white-space: nowrap;
    border-right: 1px solid #3a4a72;
}
.server-table td {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid #efe4ad;
    border-right: 1px solid #efe4ad;
}
.server-table tbody tr:nth-child(even) td { background: #fff9e0; }
.server-table .col-name {
    color: #1565c0;
    font-weight: bold;
    white-space: nowrap;
}
.server-table .col-time { color: #e53935; font-weight: bold; white-space: nowrap; }
.server-table .col-version { color: #444; text-align: left; }
.view-btn {
    display: inline-block;
    background: #2196f3;
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 3px;
    white-space: nowrap;
}
.view-btn:hover { background: #1976d2; }
.open-status {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #66bb6a;
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: bold;
    white-space: nowrap;
}

/* ===== 主体两栏布局 ===== */
#body { padding: 18px 0 30px; }
.main-row {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.main-col { flex: 1 1 auto; min-width: 0; }
.side-col { width: 300px; flex: 0 0 300px; }

/* ===== 区块标题 ===== */
.section-head { margin-bottom: 14px; }
.archive-title {
    margin: 0;
    font-size: 18px;
    color: #6f6f6f;
    font-weight: bold;
    padding-left: 4px;
}

/* ===== 首页内嵌网站区块 ===== */
.home-iframe-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}
.home-iframe-card iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* ===== 资讯卡片 ===== */
.news-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 14px;
    transition: box-shadow .2s, transform .2s;
}
.news-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.news-card .post-title {
    margin: 0 0 10px;
    padding-left: 12px;
    font-size: 17px;
    font-weight: bold;
    position: relative;
}
.news-card .post-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    background: #ee4d2d;
    border-radius: 2px;
}
.news-card .post-title a { color: #222; }
.news-card .post-title a:hover { color: #ee4d2d; }
.post-excerpt {
    color: #595959;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 14px;
}
.news-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #595959;
    border-top: 1px dashed #eee;
    padding-top: 12px;
}
.news-author { font-weight: bold; color: #666; margin-right: 18px; }
.news-date { color: #595959; }
.read-more {
    margin-left: auto;
    color: #c0392b;
    border: 1px solid #ee4d2d;
    border-radius: 3px;
    padding: 3px 12px;
}
.read-more:hover { background: #ee4d2d; color: #fff; }

/* ===== 侧边栏 ===== */
.widget {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    margin-bottom: 16px;
    overflow: hidden;
}
.widget-title {
    margin: 0;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #eee;
}
.widget-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: #ee4d2d;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 6px;
    vertical-align: middle;
}
.widget-icon.notice-icon { background: #e53935; }

/* 热门文章 */
.hot-list { list-style: none; margin: 0; padding: 8px 16px; }
.hot-list li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.hot-list li:last-child { border-bottom: 0; }
.hot-list a {
    color: #444;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hot-list a:hover { color: #ee4d2d; }
.rank {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #bbb;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 10px;
}
.rank-1 { background: #ee4d2d; }
.rank-2 { background: #ff7043; }
.rank-3 { background: #ffa726; }

/* 站内公告 */
.notice-list { list-style: none; margin: 0; padding: 12px 16px; }
.notice-list li {
    background: #fff5f5;
    border: 1px solid #ffe0e0;
    color: #c0392b;
    border-radius: 4px;
    padding: 8px 10px;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.6;
}
.notice-list li:last-child { margin-bottom: 0; }

/* ===== 文章 / 页面详情 ===== */
.post-single {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 24px 28px;
}
.post-single .post-title { margin: 0 0 12px; font-size: 24px; }
.post-meta {
    list-style: none;
    margin: 0 0 18px;
    padding: 0 0 14px;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: #595959;
}
.post-meta li { display: inline-block; margin-right: 16px; }
.post-meta a { color: #595959; }
.post-content { font-size: 15px; line-height: 1.9; color: #333; }
.post-content img { border-radius: 4px; }
.post-content h1, .post-content h2, .post-content h3 { color: #222; }
.tags { margin-top: 24px; font-size: 13px; color: #595959; }
.post-near {
    list-style: none;
    margin: 16px 0 0;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    font-size: 13px;
}
.post-near li { margin: 6px 0; color: #595959; }
.post-near a { color: #ee4d2d; }

/* ===== 评论 ===== */
#comments {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 20px 28px;
    margin-top: 16px;
}
#comments h3 { font-size: 16px; }
#comments .text, #comments .textarea {
    width: 100%;
    max-width: 420px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
#comments .textarea { max-width: 100%; }
#comments .submit {
    background: #ee4d2d;
    color: #fff;
    border: 0;
    padding: 8px 22px;
    border-radius: 4px;
    cursor: pointer;
}
#comments .submit:hover { background: #d8401f; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { padding: 10px 0; border-bottom: 1px dashed #eee; }

/* ===== 翻页 ===== */
.page-navigator {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    text-align: center;
}
.page-navigator li { display: inline-block; margin: 0 3px; }
.page-navigator a, .page-navigator .current {
    display: inline-block;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #555;
}
.page-navigator .current {
    background: #ee4d2d;
    border-color: #ee4d2d;
    color: #fff;
}

/* ===== 页脚 ===== */
#footer {
    background: #2b2b2b;
    color: #9a9a9a;
    text-align: center;
    padding: 22px 0;
    font-size: 12px;
    line-height: 1.9;
}
#footer a { color: #bbb; }
#footer a:hover { color: #fff; }
#footer .copyright { margin: 0 0 6px; color: #cfcfcf; }
#footer .disclaimer { margin: 0; color: #9a9a9a; }

/* ===== 响应式 ===== */
@media (max-width: 1000px) {
    .main-row { flex-direction: column; }
    .side-col { width: 100%; flex: 1 1 auto; }
}
@media (max-width: 768px) {
    .header-inner { height: auto; padding: 14px 10px; flex-direction: column; }
    .logo-text { font-size: 18px; }
    .download-btn { margin: 12px auto 0; font-size: 15px; padding: 10px 22px; }
    #nav-menu a { padding: 10px 14px; font-size: 14px; }
    .recommend-inner { height: auto; flex-direction: column; padding: 10px 0; }
    .recommend-btn { position: static; margin-top: 6px; }
    .topbar-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60%;
    }
}
