/* 全局样式 */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

/* 主容器 */
.main-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 15px;
}

/* 平板端及以上 */
@media (min-width: 768px) {
    .main-container {
        max-width: 85%;
        padding: 0 20px;
    }
}

/* 桌面端 */
@media (min-width: 1024px) {
    .main-container {
        max-width: 70%;
    }
}

/* 头部样式 */
.header { 
    background-color: #000000;
    color: #ffffff;
    padding: 20px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e0e0e0;
}

.header img {
    display: block;
    height: 30px;
    margin-bottom: 2px;
}

.header h1 { 
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

/* 文章详情页标题样式 */
body.article-page .header h1 {
    margin: 0 0 0 0;
    font-size: 22px;
    line-height: 1.3;
}

/* 平板端及以上 - 标题优化 */
@media (min-width: 768px) {
    .header h1 {
        font-size: 28px;
    }
    
    body.article-page .header h1 {
        font-size: 26px;
    }
}

/* 桌面端 - 标题优化 */
@media (min-width: 1024px) {
    .header h1 {
        font-size: 32px;
    }
    
    body.article-page .header h1 {
        font-size: 28px;
    }
}

.header p { 
    margin: 0 0 0 0;
    color: #cccccc;
    font-size: 16px;
}

/* 分类页信息样式 */
.header .category-info {
    text-align: right;
    font-size: 16px;
    color: #cccccc;
    margin: 0;
    padding: 5px 0;
}

.header .category-info .category-name {
    color: #ffffff;
    font-weight: 400;
    font-size: 16px;
}

/* 平板端及以上 - 分类信息优化 */
@media (min-width: 768px) {
    .header .category-info {
        font-size: 16px;
    }
    
    .header .category-info .category-name {
        font-size: 16px;
    }
}

/* 导航样式 */
.nav { 
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #333333;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.nav a { 
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}

.nav a:hover { 
    color: #999999;
}

/* 平板端及以上 - 导航优化 */
@media (min-width: 768px) {
    .nav {
        margin-top: 25px;
        padding-top: 20px;
        gap: 0;
    }
    
    .nav a {
        margin-right: 30px;
        font-size: 16px;
    }
    
    .nav a:last-child {
        margin-right: 0;
    }
}

/* 内容标题 */
.content-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #000000;
}

/* 文章卡片样式 */
.article-card { 
    background: #ffffff;
    padding: 20px 0;
    margin-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
}

.article-card:last-child {
    border-bottom: none;
}

.article-card h3 { 
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

.article-card h3 a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s;
}

.article-card h3 a:hover {
    color: #666666;
}

.article-card .meta { 
    color: #999999;
    font-size: 13px;
    margin-bottom: 12px;
}

.article-card .meta span { 
    margin-right: 20px;
}

.article-card .meta a {
    color: #666666;
    text-decoration: none;
}

.article-card .meta a:hover {
    color: #000000;
}

.article-card p { 
    color: #666666;
    line-height: 1.7;
    font-size: 15px;
}

/* 空状态样式 */
.empty { 
    text-align: center;
    padding: 80px 20px;
    color: #999999;
}

.empty p {
    margin-bottom: 10px;
}

/* 推荐服务器样式 */
.servers-section {
    background: #ffffff;
    padding: 20px 0;
    margin-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
}

.servers-section .section-title {
    display: none;
}

.server-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
    align-items: stretch;
}

.server-card {
    background: #f8f8f8;
    border-radius: 6px;
    padding: 15px;
    position: relative;
    border: 1px solid #e0e0e0;
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.server-card:hover {
    border-color: #999999;
}

.server-card .badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #000000;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.server-card .server-title {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    padding-right: 60px;
}

.server-card .server-specs {
    color: #666666;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
    flex: 1;
}

.server-card .server-specs p {
    margin-bottom: 3px;
}

.server-card .server-specs strong {
    color: #333333;
    font-weight: 600;
}

.server-card .server-price {
    font-size: 26px;
    font-weight: 700;
    color: #d83b46;
    margin-bottom: 8px;
}

.server-card .server-price .period {
    font-size: 16px;
    color: #000000;
    font-weight: 400;
}

.server-card .buy-btn {
    display: block;
    padding: 8px 12px;
    background: #dc3545;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.server-card .buy-btn:hover {
    background: #c82333;
}

/* 响应式设计 - 平板端 (768px 及以上) */
@media (min-width: 768px) {
    .server-cards {
        flex-direction: row;
        max-width: 85%;
    }
    
    .server-card {
        flex: 1;
    }
}

/* 响应式设计 - 桌面端 (1024px 及以上) */
@media (min-width: 1024px) {
    .server-cards {
        max-width: 70%;
    }
}

/* 文章内容样式（用于文章详情页） */
.article-content { 
    background: #ffffff;
    padding: 0 0 60px 0;
}

.article-meta { 
    color: #999999;
    font-size: 14px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    text-align: right;
}

.article-meta span { 
    margin-right: 20px;
}

.article-meta a {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
}

.article-meta a:hover {
    color: #000000;
    text-decoration: underline;
}

.article-body { 
    line-height: 1.8;
    color: #333333;
    font-size: 16px;
}

.article-body img { 
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.article-body h1, 
.article-body h2, 
.article-body h3 { 
    margin-top: 40px;
    margin-bottom: 20px;
    color: #000000;
    font-weight: 600;
}

.article-body h1 { font-size: 28px; }
.article-body h2 { font-size: 24px; }
.article-body h3 { font-size: 20px; }

.article-body p { 
    margin-bottom: 20px;
}

.article-body strong {
    font-weight: 600;
    color: #000000;
}

.article-body a {
    color: #000000;
    text-decoration: underline;
}

.article-body a:hover {
    color: #666666;
}

/* 相关文章样式 */
.related { 
    background: #f8f8f8;
    padding: 30px;
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
}

.related h3 { 
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.related ul { 
    list-style: none;
    padding: 0;
}

.related li { 
    margin-bottom: 12px;
}

.related a { 
    text-decoration: none;
    color: #333333;
    transition: color 0.2s;
}

.related a:hover { 
    color: #000000;
}

/* 页脚样式 */
footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 30px 0;
    margin-top: 60px;
    text-align: center;
    border-top: 3px solid #000000;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 14px;
    color: #cccccc;
}

@media (max-width: 768px) {
    footer {
        padding: 20px 0;
        margin-top: 40px;
    }
    
    footer .container {
        font-size: 12px;
    }
}
