/**
 * 首页专用样式 — 1.76复古传奇风
 */

.main-content {
    padding: 16px 0 0;
}

/* ===== 英雄图区 ===== */
.hero-section {
    margin: 0 auto 16px;
    max-width: 1200px;
    position: relative;
    border: 4px solid var(--color-border);
    border-radius: var(--stn-radius);
    box-shadow: var(--color-shadow);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.4s;
    aspect-ratio: 3 / 1;
    min-height: 180px;
    background:
        linear-gradient(180deg, rgba(20, 10, 5, 0.5) 0%, rgba(60, 20, 10, 0.7) 50%, rgba(20, 10, 5, 0.8) 100%),
        linear-gradient(135deg, #3a1a0a 0%, #6b2f1a 25%, #2a1008 50%, #5c2010 75%, #1a0804 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 60%, rgba(255, 140, 30, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 40%, rgba(255, 200, 60, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(180, 80, 20, 0.3) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    pointer-events: none;
}

.hero-title {
    font-family: var(--stn-font-title);
    font-size: clamp(1.4rem, 3vw, 2.6rem);
    color: #ffd700;
    text-shadow: 0 0 30px rgba(255, 180, 40, 0.7), 0 3px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 4px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.hero-subtitle {
    font-family: var(--stn-font-title);
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    color: #f0d080;
    text-shadow: 0 0 12px rgba(200, 140, 40, 0.5), 0 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 3px;
    opacity: 0.9;
}

.hero-overlay-badge {
    position: absolute;
    bottom: 16px;
    right: 20px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--stn-secondary);
    color: #ffd700;
    padding: 6px 14px;
    font-family: var(--stn-font-title);
    font-size: 0.85rem;
    letter-spacing: 2px;
    border-radius: var(--stn-radius);
    pointer-events: none;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 服务器列表 ===== */
.server-section {
    background: var(--color-surface);
    border: 3px solid var(--color-border);
    border-top: 5px solid var(--stn-secondary);
    border-radius: var(--stn-radius);
    box-shadow: var(--color-shadow);
    margin: 16px 0;
    padding: 20px 24px;
    transition: all 0.4s ease;
    position: relative;
}

.server-section::before {
    content: '';
    position: absolute;
    top: -9px;
    left: 20px;
    width: 18px;
    height: 18px;
    background: var(--stn-secondary);
    border-radius: 50%;
    border: 2px solid var(--color-border);
    box-shadow: var(--stn-glow-gold);
}
.server-section::after {
    content: '';
    position: absolute;
    top: -9px;
    right: 20px;
    width: 18px;
    height: 18px;
    background: var(--stn-secondary);
    border-radius: 50%;
    border: 2px solid var(--color-border);
    box-shadow: var(--stn-glow-gold);
}

.server-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.server-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(184, 134, 11, 0.05);
    border-left: 4px solid var(--stn-secondary);
    border-radius: 0 var(--stn-radius) var(--stn-radius) 0;
    transition: all 0.2s;
}
.server-item:hover {
    background: rgba(184, 134, 11, 0.15);
    border-left-color: #ffd700;
}

.server-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.server-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-hot {
    background: #e74c3c !important;
    box-shadow: 0 0 12px rgba(231, 76, 60, 0.6) !important;
}
.status-new {
    background: #2980b9 !important;
    box-shadow: 0 0 12px rgba(41, 128, 185, 0.5) !important;
}
.status-full {
    background: #ff9800;
    box-shadow: 0 0 10px #ff9800;
}
.status-rec {
    background: #9c27b0;
    box-shadow: 0 0 10px #9c27b0;
}
.status-stable {
    background: #78909c;
    box-shadow: 0 0 10px #78909c;
}

/* 服务器名称 - 加深 */
.server-name {
    font-family: var(--stn-font-title);
    font-weight: 700 !important;
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: var(--color-text) !important;
}

/* 开服时间 - 加深 */
.server-time {
    font-size: 0.8rem;
    font-weight: 600 !important;
    color: var(--color-text-secondary) !important;
}

/* 专属标签 - 加深颜色 */
.tag-exclusive {
    background: #c0392b !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 3px 14px !important;
    border-radius: 30px !important;
    font-size: 0.7rem !important;
    border: 1px solid #e74c3c !important;
    box-shadow: 0 0 8px rgba(192, 57, 43, 0.3) !important;
}
.tag-new {
    background: #1976d2 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 3px 14px !important;
    border-radius: 30px !important;
    font-size: 0.7rem !important;
}
.tag-hot {
    background: #c1272d;
}
.tag-full {
    background: #e65100;
}
.tag-rec {
    background: #7b1fa2;
}
.tag-stable {
    background: #455a64;
}

.server-tag {
    display: inline-block;
    padding: 3px 14px !important;
    border-radius: 30px !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    color: #fff !important;
    white-space: nowrap;
}

.server-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.btn-small {
    padding: 5px 12px;
    font-size: 0.75rem;
    background: linear-gradient(180deg, #7a6b50 0%, #5c4d35 40%, #3d3020 100%);
    border: 1px solid var(--stn-secondary);
    color: #ffd700;
    font-family: var(--stn-font-title);
    cursor: pointer;
    border-radius: var(--stn-radius);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-small:hover {
    background: #3d2a0a;
    box-shadow: var(--stn-glow-gold);
}

/* ===== 分类卡片 ===== */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 6px;
}

.section-title {
    font-family: var(--stn-font-title);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-text);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title i {
    color: var(--stn-secondary);
}

.section-more {
    font-size: 0.85rem;
    color: var(--stn-secondary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
.section-more:hover {
    color: #c1272d;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.category-card {
    background: var(--color-surface);
    border: 3px solid var(--color-border);
    border-radius: var(--stn-radius);
    box-shadow: var(--color-shadow);
    padding: 20px;
    transition: all var(--stn-transition);
    position: relative;
    overflow: hidden;
}
.category-card:hover {
    border-color: var(--stn-secondary);
    box-shadow: var(--stn-glow-gold);
    transform: translateY(-2px);
}

.article-list-compact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.article-list-compact li a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dotted var(--color-border-light);
    transition: color 0.2s;
}
.article-list-compact li a:hover {
    color: var(--stn-secondary);
}
.article-list-compact .article-meta {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    margin-left: 8px;
}

/* ===== 内容两栏布局 ===== */
.content-layout {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.content-main {
    flex: 1 1 600px;
    min-width: 280px;
    background: var(--color-surface);
    border: 3px solid var(--color-border);
    border-radius: var(--stn-radius);
    box-shadow: var(--color-shadow);
    padding: 20px;
    transition: all 0.4s ease;
}

.content-sidebar {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 240px;
}

.sidebar-panel {
    background: var(--color-surface);
    border: 3px solid var(--color-border);
    border-radius: var(--stn-radius);
    box-shadow: var(--color-shadow);
    padding: 16px;
    transition: all 0.4s ease;
}

/* ===== 文章列表 ===== */
.article-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.article-item {
    border-bottom: 1px dotted var(--color-border-light);
    padding: 10px 4px;
    transition: background 0.15s ease;
}
.article-item:hover {
    background: rgba(184, 134, 11, 0.06);
}
.article-item a {
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.article-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-text);
    transition: color 0.2s;
}
.article-title:hover {
    color: var(--stn-secondary);
}
.article-meta {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}
.article-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ===== 搜索框 ===== */
.search-box {
    display: flex;
    gap: 0;
    border: 2px solid var(--color-border);
    border-radius: var(--stn-radius);
    overflow: hidden;
    background: var(--color-bg);
}
.search-box form {
    display: flex;
    width: 100%;
}
.search-box input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--color-text);
    font-size: 0.9rem;
    font-family: var(--font-family);
    outline: none;
    min-width: 0;
}
.search-box input::placeholder {
    color: var(--color-text-muted);
    font-style: italic;
}
.search-box button {
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: none;
    border-left: 2px solid var(--color-border);
    color: #ffd700;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--stn-transition);
    flex-shrink: 0;
}
.search-box button:hover {
    background: rgba(0, 0, 0, 0.45);
    box-shadow: var(--stn-glow-gold);
}

/* ===== 侧边栏开服列表 ===== */
.server-mini-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.server-mini-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    background: rgba(184, 134, 11, 0.05);
    border-left: 3px solid var(--stn-secondary);
    border-radius: 0 var(--stn-radius) var(--stn-radius) 0;
    font-size: 0.85rem;
}
.server-mini-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-hot {
    background: #e74c3c !important;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.5) !important;
}
.dot-new {
    background: #2980b9 !important;
    box-shadow: 0 0 8px rgba(41, 128, 185, 0.4) !important;
}
.dot-full {
    background: #ff9800;
    box-shadow: 0 0 6px #ff9800;
}
.dot-rec {
    background: #9c27b0;
    box-shadow: 0 0 6px #9c27b0;
}
.dot-stable {
    background: #78909c;
    box-shadow: 0 0 6px #78909c;
}

.mini-tag {
    font-size: 0.65rem;
    padding: 2px 10px !important;
    border-radius: 30px !important;
    color: #fff !important;
    white-space: nowrap;
}
.mini-tag.tag-exclusive {
    background: #c0392b !important;
    color: #fff !important;
    font-weight: 700 !important;
}
.mini-tag.tag-new {
    background: #1976d2 !important;
    color: #fff !important;
    font-weight: 600 !important;
}
.mini-tag.tag-hot { background: #c1272d; }
.mini-tag.tag-full { background: #e65100; }
.mini-tag.tag-rec { background: #7b1fa2; }
.mini-tag.tag-stable { background: #455a64; }

/* ===== 热帖列表 ===== */
.hot-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.hot-list li {
    padding: 7px 4px;
    border-bottom: 1px dotted var(--color-border-light);
}
.hot-list li:last-child {
    border-bottom: none;
}
.hot-list a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--stn-transition);
}
.hot-list a:hover {
    color: var(--stn-secondary);
}
.hot-rank {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: var(--stn-radius);
    font-size: 0.7rem;
    font-weight: bold;
    flex-shrink: 0;
    color: #fff;
}
.hot-rank.r1 { background: #c1272d; }
.hot-rank.r2 { background: #d4781a; }
.hot-rank.r3 { background: #b8860b; }
.hot-rank.rn { background: #777; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: 1fr 1fr;
    }
    .content-layout {
        flex-direction: column;
    }
    .content-sidebar {
        flex: 1 1 auto;
        min-width: auto;
    }
}

@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .server-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-title {
        font-size: 1.2rem;
    }
    .hero-overlay-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
        bottom: 10px;
        right: 12px;
    }
    .server-section {
        padding: 16px;
    }
    .server-item-left {
        gap: 8px;
    }
    .server-name {
        font-size: 0.85rem;
    }
    .server-time {
        font-size: 0.7rem;
    }
}