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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background: var(--bg-page);
    line-height: var(--line-height-body);
    -webkit-font-smoothing: antialiased;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.main-content {
    margin-top: var(--nav-height);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-alt {
    background: var(--bg-surface);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-label {
    font-size: var(--font-size-xs);
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

html[lang="zh-CN"] .section-label {
    display: none;
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: var(--line-height-tight);
}

.section-subtitle {
    font-size: var(--font-size-md);
    color: var(--text-muted);
    line-height: var(--line-height-body);
}

.page-header {
    background: var(--primary-dark);
    color: var(--bg-surface);
    padding: var(--space-3xl) 0;
}

.page-header h1 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.page-header p {
    font-size: var(--font-size-md);
    opacity: 0.85;
}

.breadcrumbs {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) 0;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: var(--line-height-body);
}

.breadcrumbs a {
    color: var(--primary);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .sep {
    margin: 0 var(--space-sm);
    color: var(--border-dark);
}

.breadcrumbs .current {
    color: var(--text-secondary);
}

@media (max-width: 767px) {
    body {
        font-size: max(16px, var(--font-size-base));
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .page-header h1 {
        font-size: var(--font-size-xl);
    }

    .section-title {
        font-size: var(--font-size-xl);
    }
}
