:root {
    --primary-blue: #3498db;
    --primary-red: #e74c3c;
    --primary-black: #2c3e50;
    --success-green: #2ecc71;
    --warning-yellow: #f1c40f;
    --card-bg: #ffffff;
    --section-bg: #f8fafc;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2980b9 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.6s ease-out;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 400;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.header-meta {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 统计卡片 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
    animation: fadeIn 0.8s ease 0.2s both;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue));
}

.stat-card:nth-child(2) {
    border-top-color: var(--success-green);
}

.stat-card:nth-child(3) {
    border-top-color: var(--warning-yellow);
}

.stat-card:nth-child(4) {
    border-top-color: var(--primary-red);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-blue), #2980b9);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, var(--success-green), #27ae60);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, var(--warning-yellow), #f39c12);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, var(--primary-red), #c0392b);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 雪场分类 */
.ski-center-section {
    margin-bottom: 50px;
    animation: fadeIn 0.8s ease both;
}

.center-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.center-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.center-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), #2980b9);
    color: white;
    font-size: 1.2rem;
}

.center-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.center-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    background: var(--section-bg);
    border-radius: var(--radius-sm);
    min-width: 80px;
}

.center-stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.center-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 雪道卡片网格 */
.slopes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.slope-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.slope-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.slope-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.slope-card.beginner::before {
    background: linear-gradient(90deg, var(--primary-blue), #5dade2);
}

.slope-card.intermediate::before {
    background: linear-gradient(90deg, var(--primary-red), #ec7063);
}

.slope-card.advanced::before {
    background: linear-gradient(90deg, var(--primary-black), #5d6d7e);
}

.slope-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.slope-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    flex: 1;
}

.slope-mark {
    background: var(--section-bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-left: 12px;
}

.slope-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.difficulty-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    display: inline-block;
}

.difficulty-beginner {
    background: rgba(52, 152, 219, 0.15);
    color: var(--primary-blue);
}

.difficulty-intermediate {
    background: rgba(231, 76, 60, 0.15);
    color: var(--primary-red);
}

.difficulty-advanced {
    background: rgba(44, 62, 80, 0.15);
    color: var(--primary-black);
}

.slope-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.status-open {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success-green);
    font-weight: 600;
    font-size: 0.95rem;
}

.last-update {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin: 40px 0;
}

.empty-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-title {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.empty-description {
    color: #94a3b8;
    max-width: 400px;
    margin: 0 auto 24px;
}

/* 页脚 */
.page-footer {
    margin-top: 60px;
    padding: 30px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.footer-copyright {
    opacity: 0.8;
}

/* 动画 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ski-center-section {
    animation-delay: calc(var(--section-index) * 0.1s);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .slopes-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 16px;
    }

    .page-header {
        padding: 30px 24px;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .center-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .center-stats {
        width: 100%;
        justify-content: space-between;
    }

    .slopes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .header-meta {
        flex-direction: column;
        gap: 8px;
    }
}