/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #0f0f1a;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========== 顶部导航 ========== */
.site-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 1px solid #2a2a4a;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #e94560, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: 15px;
    color: #a0a0b0;
    transition: color 0.2s;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    border-bottom-color: #e94560;
}

/* ========== 广告位通用样式 ========== */
.ad-slot {
    margin: 24px 0;
    padding: 16px;
    background: #1a1a2e;
    border: 1px dashed #3a3a5a;
    border-radius: 12px;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-top {
    margin-top: 24px;
}

.ad-mid {
    margin: 40px 0;
}

.ad-bottom {
    margin: 40px 0 24px;
}

/* ========== 头条区 ========== */
.hero-section {
    margin: 32px 0;
}

.hero-card {
    display: flex;
    gap: 32px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #2a2a4a;
}

.hero-image {
    flex: 1;
    min-height: 280px;
    background: linear-gradient(135deg, #e9456022, #f39c1222);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-placeholder {
    font-size: 80px;
}

.hero-content {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: #e9456022;
    color: #e94560;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 12px;
}

.tag-hot {
    background: linear-gradient(135deg, #e94560, #f39c12);
    color: #fff;
}

.hero-content h1 {
    font-size: 26px;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #fff;
}

.hero-desc {
    color: #a0a0b0;
    font-size: 15px;
    margin-bottom: 16px;
}

.hero-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #707080;
}

/* ========== 区块标题 ========== */
.section {
    margin: 48px 0;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-left: 12px;
    border-left: 4px solid #e94560;
    color: #fff;
}

/* ========== 卡片网格 ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a4a;
    transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #e94560;
}

.card-image {
    height: 140px;
    background: linear-gradient(135deg, #2a2a4a, #1a1a2e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    font-size: 16px;
    margin: 8px 0;
    color: #fff;
    line-height: 1.4;
}

.card-body p {
    font-size: 13px;
    color: #a0a0b0;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 12px;
    color: #606070;
}

/* ========== 攻略列表 ========== */
.guide-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: #1a1a2e;
    border-radius: 12px;
    border: 1px solid #2a2a4a;
    transition: border-color 0.2s;
    cursor: pointer;
}

.guide-item:hover {
    border-color: #e94560;
}

.guide-num {
    font-size: 28px;
    font-weight: 800;
    color: #e94560;
    min-width: 40px;
}

.guide-content {
    flex: 1;
}

.guide-content h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
}

.guide-content p {
    font-size: 13px;
    color: #a0a0b0;
}

.guide-arrow {
    font-size: 20px;
    color: #606070;
    transition: transform 0.2s, color 0.2s;
}

.guide-item:hover .guide-arrow {
    transform: translateX(4px);
    color: #e94560;
}

/* ========== 页脚 ========== */
.site-footer {
    background: #0a0a14;
    border-top: 1px solid #2a2a4a;
    margin-top: 60px;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 32px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
    color: #707080;
    font-size: 14px;
    line-height: 2;
    display: block;
}

.footer-col a:hover {
    color: #e94560;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2a2a4a;
    color: #505060;
    font-size: 13px;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .main-nav {
        gap: 16px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .hero-card {
        flex-direction: column;
    }

    .hero-image {
        min-height: 180px;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 20px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .guide-item {
        padding: 16px;
    }

    .guide-num {
        font-size: 22px;
    }
}
