:root {
    color-scheme: light;
    --bg: #f7f7f4;
    --surface: #ffffff;
    --text: #1f2933;
    --muted: #64707d;
    --line: #d9ded8;
    --accent: #276761;
    --accent-strong: #184d49;
    --link: #1f5f8b;
    --shadow: 0 18px 45px rgba(38, 52, 64, 0.09);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.nav {
    width: min(1080px, calc(100% - 32px));
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    flex: 0 0 auto;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 700;
}

.brand-icon {
    flex: 0 0 auto;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
}

.brand-icon img {
    display: block;
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-links a {
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.nav-links a:hover {
    background: #eef3f1;
    color: var(--accent-strong);
    text-decoration: none;
}

.lang-toggle {
    flex: 0 0 auto;
    min-width: 44px;
    height: 34px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--surface);
    color: var(--accent-strong);
    cursor: pointer;
    font-weight: 700;
}

.lang-toggle:hover {
    background: #edf5f2;
}

.page {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0 80px;
}

.page.narrow {
    width: min(860px, calc(100% - 32px));
}

.hero {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 0;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    line-height: 1.2;
}

h1 {
    max-width: 820px;
    font-size: clamp(2.6rem, 7vw, 5rem);
}

h2 {
    font-size: 1.25rem;
}

.lead {
    max-width: 720px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1.16rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 14px;
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
}

.button.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
}

.button:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-top: 28px;
}

.stack {
    display: grid;
    gap: 18px;
}

.home-stack {
    padding-top: 28px;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 24px;
    box-shadow: var(--shadow);
}

.panel p {
    margin: 12px 0 0;
    color: var(--muted);
}

.page-title {
    padding: 28px 0 34px;
}

.clean-list {
    margin: 14px 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.clean-list li + li {
    margin-top: 8px;
}

.publication-list {
    display: grid;
    gap: 14px;
    margin: 16px 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.publication-list li::marker {
    color: var(--accent);
}

.publication-list a {
    font-weight: 700;
}

.note {
    margin-bottom: 16px;
}

.contact-panel {
    display: grid;
    gap: 10px;
}

.contact-link {
    font-size: 1.1rem;
    font-weight: 700;
}

@media (max-width: 760px) {
    .nav {
        width: min(100% - 24px, 1080px);
        min-height: auto;
        padding: 12px 0;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .brand {
        width: calc(100% - 56px);
    }

    .nav-links {
        order: 3;
        width: 100%;
        overflow-x: auto;
        margin-left: 0;
        padding-bottom: 2px;
    }

    .lang-toggle {
        margin-left: auto;
    }

    .page {
        width: min(100% - 24px, 1080px);
        padding: 34px 0 56px;
    }

    .hero {
        min-height: calc(100vh - 112px);
        padding: 30px 0 48px;
    }

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

    .panel {
        padding: 20px;
    }
}
