:root {
    --bg: #f7f7f7;
    --surface: #ffffff;
    --surface-soft: #f5fbff;
    --text: #333333;
    --text-muted: #555555;
    --primary: #0f4c81;
    --primary-soft: #4ca1af;
    --accent: #ffb600;
    --border: rgba(15, 76, 129, 0.12);
    --shadow: 0 10px 30px rgba(17, 34, 51, 0.08);
}

body.dark {
    --bg: #0f172a;
    --surface: #111827;
    --surface-soft: #1f2937;
    --text: #e5e7eb;
    --text-muted: #94a3b8;
    --primary: #7dd3fc;
    --primary-soft: #0ea5e9;
    --accent: #f59e0b;
    --border: rgba(148, 163, 184, 0.24);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
}

img {
    max-width: 100%;
    display: block;
}

header {
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 18px;
    font-size: 0.95rem;
    transition: color .2s ease;
}

nav a:hover,
nav a.active {
    color: #ffd56b;
}

#modeToggle {
    margin-left: 18px;
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: background .2s ease, transform .2s ease;
}

#modeToggle:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.hero {
    background: url('20240507_135103_007.jpg') center/cover no-repeat;
    min-height: 56vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 24px;
    color: #fff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
}


.hero-content {
    position: relative;
    max-width: 900px;
    text-align: center;
    background: rgba(0, 0, 0, 0.24);
    border-radius: 18px;
    padding: 28px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.05rem;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

section {
    background: var(--surface);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

section h2 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 1.8rem;
}

section p,
section li {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 14px;
}

ul {
    list-style: inside disc;
    padding-left: 18px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--surface-soft);
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--border);
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: var(--primary);
}

.card p {
    margin-bottom: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.gallery img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.btn {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--accent);
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 181, 0, 0.22);
}

footer {
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-muted);
    padding: 22px 24px;
}

@media (max-width: 720px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    nav {
        margin-top: 12px;
    }
    nav a,
    #modeToggle {
        margin: 6px 8px 0 0;
    }
    .hero {
        padding: 60px 18px;
    }
}
