/**
 * 首页专用样式 — 设计图风格（暖金橙）
 */

/* ===== Hero ===== */
.hero {
    padding: 80px 0 64px;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0 auto 16px;
    max-width: 20ch;
}

.hero h1 .accent {
    color: var(--accent);
}

.hero p.hero-desc {
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1.7;
    max-width: 56ch;
    margin: 0 auto 36px;
}

.hero-search {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.hero-search input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font: inherit;
    font-size: 15px;
    outline: none;
    background: var(--surface);
}

.hero-search button {
    padding: 14px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 200ms var(--ease);
}

.hero-search button:hover {
    background: var(--accent-deep);
}

.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.hero-tags span {
    font-size: 12px;
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    padding: 5px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
}

/* ===== Section 通用 ===== */
.section {
    padding: 64px 0;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.section-label span.eyebrow {
    margin: 0;
}

.section-label hr {
    flex: 1;
    border: none;
    border-top: 1px solid var(--border);
}

/* ===== 5分类导航卡片 ===== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 28px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--ink);
    transition: all 300ms var(--ease-slow);
    cursor: pointer;
}

.cat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(217, 119, 28, 0.10);
    transform: translateY(-2px);
}

.cat-card .cat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cat-card h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.cat-card p.cat-desc {
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.5;
}

.cat-card .cat-count {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--muted);
}

/* ===== 攻略精选 ===== */
.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
}

.featured-header h2 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.view-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.view-more:hover { text-decoration: underline; }

.guide-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.guide-hero {
    grid-row: span 2;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 360px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 300ms var(--ease-slow);
}

.guide-hero:hover {
    border-color: var(--accent);
}

.guide-hero .guide-img-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 30%, #f5f5f4 70%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-hero .guide-img-placeholder svg {
    opacity: 0.15;
    width: 80px;
    height: 80px;
}

.guide-hero .guide-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(217, 119, 28, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    width: max-content;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.guide-hero h3 {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.guide-hero h3 a {
    color: inherit;
    text-decoration: none;
}

.guide-hero p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 8px;
    position: relative;
    z-index: 1;
    max-width: 40ch;
}

.guide-hero .guide-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

.guide-card {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 250ms var(--ease-slow);
}

.guide-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.guide-card .card-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    width: max-content;
    margin-bottom: 10px;
    font-weight: 500;
}

.guide-card .card-tag.tag-guide {
    color: var(--accent);
    background: var(--accent-soft);
}
.guide-card .card-tag.tag-boss {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
}
.guide-card .card-tag.tag-equip {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.08);
}

.guide-card h4 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.guide-card h4 a {
    color: inherit;
    text-decoration: none;
}

.guide-card p.card-desc {
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.5;
    margin-top: 6px;
}

.guide-card .card-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    margin-top: 10px;
}

/* ===== 开服列表（表格） ===== */
.server-table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.server-table {
    width: 100%;
    border-collapse: collapse;
}

.server-table th {
    text-align: left;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 16px 20px;
    background: var(--surface-warm);
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}

.server-table td {
    padding: 16px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--ink-soft);
}

.server-table tr:last-child td {
    border-bottom: none;
}

.server-table tbody tr {
    transition: background 150ms var(--ease);
}

.server-table tbody tr:hover {
    background: var(--surface-warm);
}

.server-name {
    color: var(--ink);
    font-weight: 600;
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.hot {
    background: #dc2626;
    box-shadow: 0 0 6px rgba(220, 38, 38, 0.5);
}
.status-dot.new {
    background: #16a34a;
    box-shadow: 0 0 6px rgba(22, 163, 74, 0.4);
}
.status-dot.normal {
    background: #a1a1aa;
}

.server-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-weight: 500;
}

.server-tag.s-new {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.08);
}
.server-tag.s-hot {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
}
.server-tag.s-recommend {
    color: var(--accent);
    background: var(--accent-soft);
}

/* ===== 装备 & Boss 并排 ===== */
.side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.sub-section-head {
    position: relative;
}

.sub-section-head h3 {
    font-size: 16px;
    font-weight: 700;
    padding: 16px 20px;
    margin: 0;
    border-bottom: 1px solid var(--border);
}

.sub-section-head .view-all {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.sub-section-head .view-all:hover {
    text-decoration: underline;
}

.item-list,
.boss-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.item-list li,
.boss-list li {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-soft);
    cursor: pointer;
    transition: all 200ms var(--ease);
}

.item-list li:last-child,
.boss-list li:last-child {
    border-bottom: none;
}

.item-list li:hover,
.boss-list li:hover {
    background: var(--surface-warm);
}

.item-list a,
.boss-list a {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
    transition: color 200ms;
}

.item-list a:hover,
.boss-list a:hover {
    color: var(--accent);
}

.item-list .list-arrow,
.boss-list .list-arrow {
    margin-left: auto;
    color: var(--muted);
    font-size: 13px;
}

/* ===== CTA 区块 ===== */
.closing {
    padding: 80px 0;
    text-align: center;
}

.closing-inner {
    background: linear-gradient(135deg, #27272a, #3f3f46);
    border-radius: var(--radius-xl);
    padding: 64px 40px;
    color: #fff;
}

.closing-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.closing-inner p {
    color: #d4d4d8;
    font-size: 17px;
    max-width: 48ch;
    margin: 0 auto 32px;
}

.closing-inner .btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 200ms var(--ease);
}

.closing-inner .btn-hero:hover {
    background: var(--accent-glow);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .guide-grid {
        grid-template-columns: 1fr 1fr;
    }
    .guide-hero {
        grid-row: span 1;
        min-height: 240px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 48px 0 40px;
    }
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .guide-grid {
        grid-template-columns: 1fr;
    }
    .guide-hero {
        min-height: 200px;
    }
    .side-by-side {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .server-table th:nth-child(3),
    .server-table td:nth-child(3),
    .server-table th:nth-child(5),
    .server-table td:nth-child(5) {
        display: none;
    }
}

@media (max-width: 480px) {
    .cat-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p.hero-desc {
        font-size: 15px;
    }
    .hero-search {
        flex-direction: column;
        border-radius: var(--radius-md);
        overflow: hidden;
    }
    .hero-search input {
        border-radius: 0;
    }
    .hero-search button {
        border-radius: 0;
        padding: 14px;
    }
    .closing-inner {
        padding: 40px 20px;
    }
}