/* ========================================
   私服网站 - 主样式表
   主色调：红色系 | 页面宽度：1500px
   ======================================== */

/* === 基础重置 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 15px;
    color: #333;
    background: #f5f5f5;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

a:hover {
    color: #cc0000;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

/* === 顶部通栏 === */
.top-bar {
    width: 100%;
    background: #1a1a1a;
    border-bottom: 2px solid #333;
    font-size: 13px;
    height: 38px;
    line-height: 38px;
}

.top-bar-inner {
    width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    color: #999;
}

.top-bar-inner a {
    color: #bbb;
    padding: 0 8px;
}

.top-bar-inner a:hover {
    color: #ff4444;
}

/* === 头部 LOGO + 搜索 === */
.header {
    width: 100%;
    background: linear-gradient(135deg, #1a0000, #330000, #1a0000);
    padding: 25px 0;
}

.header-inner {
    width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #cc0000, #ff3333);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo-text h1 {
    font-size: 28px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo-text p {
    font-size: 13px;
    color: #ff6666;
    margin-top: 2px;
}

.header-search {
    display: flex;
    gap: 0;
}

.header-search input {
    width: 380px;
    height: 44px;
    border: 2px solid #cc0000;
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 0 15px;
    font-size: 15px;
    outline: none;
    background: #fff;
}

.header-search input:focus {
    border-color: #ff3333;
}

.header-search button {
    height: 44px;
    padding: 0 30px;
    background: linear-gradient(180deg, #e60000, #cc0000);
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.header-search button:hover {
    background: linear-gradient(180deg, #ff3333, #e60000);
}

/* === 主导航 === */
.main-nav {
    width: 100%;
    background: linear-gradient(180deg, #cc0000, #aa0000);
    border-bottom: 3px solid #880000;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 3px 10px rgba(180, 0, 0, 0.3);
}

.main-nav-inner {
    width: 1500px;
    margin: 0 auto;
    display: flex;
}

.main-nav a {
    display: block;
    padding: 0 28px;
    height: 52px;
    line-height: 52px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.2s;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(0, 0, 0, 0.25);
    color: #ffdd00;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #ffdd00;
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 60%;
}

/* === 主体容器 === */
.wrapper {
    width: 1500px;
    margin: 0 auto;
    padding: 25px 0;
}

/* === 横幅/Banner === */
.banner {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #200, #400, #600);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,0,0,0.15) 0%, transparent 60%);
    animation: bannerGlow 4s ease-in-out infinite;
}

@keyframes bannerGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.banner-content h2 {
    font-size: 38px;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.banner-content p {
    font-size: 18px;
    margin-top: 12px;
    color: #ffcccc;
}

.banner-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 40px;
    background: linear-gradient(180deg, #ff3333, #cc0000);
    color: #fff;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all 0.3s;
    border: 2px solid #ff6666;
}

.banner-btn:hover {
    background: linear-gradient(180deg, #ff5555, #ff0000);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,0,0,0.4);
    color: #fff;
}

/* === 区块标题 === */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
}

.section-title .icon-bar {
    width: 5px;
    height: 26px;
    background: linear-gradient(180deg, #ff3333, #cc0000);
    border-radius: 3px;
}

.section-title h3 {
    font-size: 22px;
    color: #1a1a1a;
    letter-spacing: 1px;
}

.section-title .more {
    margin-left: auto;
    font-size: 14px;
    color: #999;
}

.section-title .more:hover {
    color: #cc0000;
}

/* === 服务器列表 === */
.server-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.server-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.server-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #cc0000;
}

.server-card-header {
    background: linear-gradient(135deg, #cc0000, #990000);
    padding: 15px;
    text-align: center;
    color: #fff;
}

.server-card-header h4 {
    font-size: 17px;
    letter-spacing: 1px;
}

.server-card-body {
    padding: 15px;
}

.server-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}

.server-info span {
    color: #cc0000;
    font-weight: bold;
}

.server-card-footer {
    padding: 10px 15px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.server-card-footer a {
    display: block;
    padding: 8px 0;
    background: linear-gradient(180deg, #ff4444, #cc0000);
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.server-card-footer a:hover {
    background: linear-gradient(180deg, #ff6666, #e60000);
    color: #fff;
}

/* === 文章列表（一行3列） === */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 30px;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #ffcccc;
}

.article-card-img {
    height: 190px;
    background: linear-gradient(135deg, #2a0000, #4a0000, #660000);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6666;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.article-card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #cc0000, #ff3333, #cc0000);
}

.article-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-body h4 {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 10px;
    height: 50px;
    overflow: hidden;
}

.article-card-body h4 a {
    color: #1a1a1a;
    transition: color 0.2s;
}

.article-card-body h4 a:hover {
    color: #cc0000;
}

.article-card-body .excerpt {
    font-size: 14px;
    color: #888;
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-footer {
    padding: 12px 18px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #aaa;
}

.article-card-footer .tags {
    display: flex;
    gap: 6px;
}

.article-card-footer .tag {
    display: inline-block;
    padding: 2px 10px;
    background: #fff0f0;
    color: #cc0000;
    border-radius: 3px;
    font-size: 12px;
    border: 1px solid #ffdddd;
}

/* === 列表页 === */
.list-layout {
    display: flex;
    gap: 25px;
}

.list-main {
    flex: 1;
}

.list-sidebar {
    width: 340px;
    flex-shrink: 0;
}

/* 列表项样式 */
.list-article-item {
    background: #fff;
    border-radius: 8px;
    padding: 22px 25px;
    margin-bottom: 16px;
    border: 1px solid #eee;
    transition: all 0.3s;
    display: flex;
    gap: 20px;
}

.list-article-item:hover {
    border-color: #ffcccc;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.list-article-thumb {
    width: 200px;
    height: 140px;
    background: linear-gradient(135deg, #2a0000, #4a0000);
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6666;
    font-size: 36px;
}

.list-article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.list-article-info h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.list-article-info h3 a {
    color: #1a1a1a;
}

.list-article-info h3 a:hover {
    color: #cc0000;
}

.list-article-info .excerpt {
    font-size: 14px;
    color: #888;
    line-height: 1.8;
    flex: 1;
}

.list-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #aaa;
    margin-top: 10px;
}

/* === 侧边栏 === */
.sidebar-card {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.sidebar-card-header {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card-header::before {
    content: '';
    width: 4px;
    height: 18px;
    background: #cc0000;
    border-radius: 2px;
}

.sidebar-card-body {
    padding: 14px 18px;
}

/* 侧边栏文章列表 */
.side-article-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.side-article-list li:last-child {
    border-bottom: none;
}

.side-article-list a {
    font-size: 14px;
    color: #555;
    display: block;
    line-height: 1.5;
}

.side-article-list a:hover {
    color: #cc0000;
}

.side-article-list .side-date {
    font-size: 12px;
    color: #ccc;
    margin-top: 3px;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud .tag-item {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid #ffdddd;
    border-radius: 20px;
    font-size: 13px;
    color: #cc0000;
    background: #fff5f5;
    transition: all 0.2s;
}

.tag-cloud .tag-item:hover {
    background: #cc0000;
    color: #fff;
    border-color: #cc0000;
}

.tag-cloud .tag-lg { font-size: 16px; padding: 6px 16px; }
.tag-cloud .tag-md { font-size: 14px; }
.tag-cloud .tag-sm { font-size: 12px; padding: 4px 10px; }

/* === 分页 === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination a, .pagination span {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    color: #666;
    background: #fff;
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: #cc0000;
    color: #cc0000;
    background: #fff5f5;
}

.pagination .current {
    background: #cc0000;
    color: #fff;
    border-color: #cc0000;
    font-weight: bold;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* === 内页（详情页） === */
.article-detail {
    background: #fff;
    border-radius: 8px;
    padding: 35px 40px;
    border: 1px solid #eee;
}

.article-detail-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.article-detail h1 {
    font-size: 28px;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 15px;
}

.article-detail-meta {
    display: flex;
    gap: 25px;
    font-size: 14px;
    color: #999;
}

.article-detail-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-detail-meta .meta-label {
    color: #cc0000;
    font-weight: bold;
}

.article-detail-tags {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.article-detail-tags .tag {
    display: inline-block;
    padding: 4px 16px;
    background: #fff0f0;
    color: #cc0000;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid #ffdddd;
}

.article-detail-content {
    font-size: 16px;
    line-height: 2;
    color: #444;
}

.article-detail-content p {
    margin-bottom: 18px;
    text-indent: 2em;
}

.article-detail-content h2 {
    font-size: 22px;
    color: #1a1a1a;
    margin: 28px 0 16px;
    padding-left: 12px;
    border-left: 4px solid #cc0000;
}

/* 上下篇导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-nav a {
    color: #666;
    font-size: 14px;
}

.article-nav a:hover {
    color: #cc0000;
}

/* === 面包屑 === */
.breadcrumb {
    padding: 12px 0;
    font-size: 14px;
    color: #999;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #cc0000;
}

.breadcrumb span {
    margin: 0 8px;
}

.breadcrumb .current {
    color: #cc0000;
}

/* === 底部 === */
.footer {
    width: 100%;
    background: #1a1a1a;
    color: #888;
    padding: 35px 0 20px;
    margin-top: 40px;
}

.footer-inner {
    width: 1500px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 40px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.footer-col h4 {
    color: #ccc;
    font-size: 16px;
    margin-bottom: 12px;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col ul li a {
    color: #777;
    font-size: 13px;
}

.footer-col ul li a:hover {
    color: #ff4444;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    line-height: 2;
}

.footer-bottom p {
    color: #666;
}

/* === 生成页面样式 === */
.generate-page {
    max-width: 800px;
    margin: 60px auto;
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    border: 1px solid #eee;
}

.generate-page h2 {
    font-size: 24px;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.generate-info {
    background: #fff5f5;
    border-left: 4px solid #cc0000;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #666;
}

.generate-btn {
    display: block;
    width: 100%;
    height: 50px;
    background: linear-gradient(180deg, #e60000, #cc0000);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.generate-btn:hover {
    background: linear-gradient(180deg, #ff3333, #dd0000);
    box-shadow: 0 6px 20px rgba(204,0,0,0.3);
}

.generate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.generate-result {
    margin-top: 25px;
    padding: 20px;
    border-radius: 8px;
    display: none;
}

.generate-result.success {
    display: block;
    background: #f0fff0;
    border: 1px solid #b7eb8f;
    color: #389e0d;
}

.generate-result.error {
    display: block;
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
}

/* === 响应式适配 === */
@media screen and (max-width: 1550px) {
    .wrapper, .header-inner, .main-nav-inner,
    .top-bar-inner, .footer-inner {
        width: 96%;
    }
    .server-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 1200px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .server-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .list-sidebar {
        width: 280px;
    }
    .list-article-thumb {
        width: 150px;
        height: 110px;
    }
}

@media screen and (max-width: 768px) {
    .article-grid, .server-grid {
        grid-template-columns: 1fr;
    }
    .list-layout {
        flex-direction: column;
    }
    .list-sidebar {
        width: 100%;
    }
    .list-article-item {
        flex-direction: column;
    }
    .list-article-thumb {
        width: 100%;
        height: 160px;
    }
    .main-nav-inner {
        flex-wrap: wrap;
    }
    .header-search input {
        width: 200px;
    }
}
