* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3436;
    background: #f8f9fa;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
.site-header {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.site-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.site-subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* 子导航 */
.sub-nav {
    background: #2d6a4f;
    color: white;
    padding: 0.8rem 0;
}

.sub-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-home {
    color: #d8f3dc;
    text-decoration: none;
    font-size: 0.95rem;
}

.back-home:hover {
    text-decoration: underline;
}

.game-name {
    font-weight: 600;
}

/* 导航栏 */
nav {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1b4332;
}

.nav-links a {
    margin-left: 1.5rem;
    color: #495057;
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #2d6a4f;
}

/* 更新横幅 */
.update-banner {
    background: #d8f3dc;
    color: #1b4332;
    text-align: center;
    padding: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 区块标题 */
.section-title {
    margin: 2.5rem 0 1.5rem;
    font-size: 1.6rem;
    color: #1b4332;
}

section {
    margin-bottom: 2.5rem;
}

section h2 {
    color: #1b4332;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #95d5b2;
    padding-bottom: 0.5rem;
}

section h3 {
    color: #2d6a4f;
    margin: 1.2rem 0 0.6rem;
    font-size: 1.15rem;
}

section p, section li {
    margin-bottom: 0.6rem;
    color: #495057;
}

section ul {
    padding-left: 1.5rem;
}

/* 游戏卡片网格 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.game-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.game-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.game-card h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1b4332;
    border: none;
    padding: 0;
}

.game-card p {
    color: #6c757d;
    margin-bottom: 1rem;
}

.game-card-btn {
    color: #2d6a4f;
    font-weight: 600;
    font-size: 0.95rem;
}

/* 表格 */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

th, td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

th {
    background: #2d6a4f;
    color: white;
    font-weight: 600;
}

.working {
    color: #2f9e44;
    font-weight: 600;
}

.expired {
    color: #868e96;
    text-decoration: line-through;
}

/* Tier 卡片 */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.tier-card {
    background: white;
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tier-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    color: white;
}

.tier-s { background: #e03131; }
.tier-a { background: #f08c00; }
.tier-b { background: #2f9e44; }
.tier-c { background: #868e96; }

.tier-card ul {
    padding-left: 1.2rem;
}

.tier-card li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

/* 页脚 */
footer {
    background: #1b4332;
    color: #d8f3dc;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* 广告位容器 */
.ad-container {
    margin: 2rem 0;
    text-align: center;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 响应式 */
@media (max-width: 768px) {
    .site-title { font-size: 1.6rem; }
    .nav-links a { margin-left: 0.8rem; font-size: 0.85rem; }
    .game-grid { grid-template-columns: 1fr; }
    .tier-grid { grid-template-columns: 1fr 1fr; }
}