:root {
    --bg: #f7f8fc;
    --bg-soft: #ffffff;
    --fg: #1a1d26;
    --fg-soft: #4a5163;
    --muted: #7a8499;
    --primary: #2b5cff;
    --primary-soft: #e8edff;
    --primary-deep: #1a3fd0;
    --accent: #ff5c8a;
    --accent-2: #00c9a7;
    --card: rgba(255, 255, 255, 0.72);
    --card-solid: #ffffff;
    --border: rgba(43, 92, 255, 0.14);
    --border-soft: rgba(26, 29, 38, 0.08);
    --shadow-sm: 0 2px 8px rgba(26, 29, 38, 0.06);
    --shadow-md: 0 8px 28px rgba(26, 29, 38, 0.09);
    --shadow-lg: 0 18px 48px rgba(26, 29, 38, 0.13);
    --glow: 0 0 0 1px rgba(43, 92, 255, 0.08), 0 12px 36px rgba(43, 92, 255, 0.16);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --header-h: 64px;
    --max-w: 1180px;
}

html[data-theme="dark"] {
    --bg: #0c0f16;
    --bg-soft: #12161f;
    --fg: #e9edf7;
    --fg-soft: #b9c2d6;
    --muted: #8b95ab;
    --primary: #6f8dff;
    --primary-soft: rgba(111, 141, 255, 0.14);
    --primary-deep: #8fa5ff;
    --accent: #ff7aa5;
    --accent-2: #2fd7b8;
    --card: rgba(24, 29, 41, 0.68);
    --card-solid: #161b26;
    --border: rgba(111, 141, 255, 0.2);
    --border-soft: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 52px rgba(0, 0, 0, 0.6);
    --glow: 0 0 0 1px rgba(111, 141, 255, 0.16), 0 14px 40px rgba(111, 141, 255, 0.22);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.78;
    color: var(--fg);
    background-color: var(--bg);
    background-image:
        radial-gradient(1100px 520px at 8% -8%, rgba(43, 92, 255, 0.16), transparent 62%),
        radial-gradient(900px 480px at 96% 4%, rgba(255, 92, 138, 0.12), transparent 60%),
        radial-gradient(760px 620px at 50% 108%, rgba(0, 201, 167, 0.1), transparent 62%);
    background-attachment: fixed;
    overflow-x: hidden;
    transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[data-theme="dark"] body {
    background-image:
        radial-gradient(1100px 520px at 8% -8%, rgba(111, 141, 255, 0.2), transparent 62%),
        radial-gradient(900px 480px at 96% 4%, rgba(255, 122, 165, 0.12), transparent 60%),
        radial-gradient(760px 620px at 50% 108%, rgba(47, 215, 184, 0.1), transparent 62%);
}

::selection {
    background: var(--primary);
    color: #fff;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover {
    color: var(--primary-deep);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 6px;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

ul,
ol {
    padding-left: 1.35em;
}

li {
    margin: 4px 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ============ Header ============ */
#site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--card);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, var(--shadow-sm);
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

html[data-theme="dark"] #site-header {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, var(--shadow-sm);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 10px 20px;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.02em;
    color: var(--fg);
    flex-shrink: 0;
    transition: transform 0.35s var(--ease);
}

.brand:hover {
    transform: translateY(-1px) scale(1.02);
    color: var(--fg);
    text-decoration: none;
}

.brand svg {
    display: block;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(43, 92, 255, 0.36);
    transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.brand:hover svg {
    transform: rotate(-4deg);
    box-shadow: 0 10px 26px rgba(43, 92, 255, 0.5);
}

.brand-name {
    background: linear-gradient(120deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

#site-header nav {
    flex: 1 1 auto;
    min-width: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    position: relative;
    display: inline-block;
    padding: 7px 11px;
    font-size: 14px;
    font-weight: 500;
    color: var(--fg-soft);
    border-radius: 999px;
    white-space: nowrap;
    transition: color 0.28s var(--ease), background 0.28s var(--ease), transform 0.28s var(--ease);
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: translateX(-50%);
    transition: width 0.32s var(--ease);
}

.nav-list a:hover {
    color: var(--primary);
    background: var(--primary-soft);
    text-decoration: none;
    transform: translateY(-1px);
}

.nav-list a:hover::after {
    width: 60%;
}

.site-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.site-search input[type="search"] {
    width: 190px;
    padding: 9px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--fg);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: width 0.4s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-search input[type="search"]::placeholder {
    color: var(--muted);
}

.site-search input[type="search"]:focus {
    width: 230px;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow-sm);
    outline: none;
}

.site-search button,
#theme-toggle,
#menu-toggle {
    padding: 9px 16px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    color: var(--fg-soft);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease);
}

.site-search button {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(43, 92, 255, 0.3);
}

.site-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(43, 92, 255, 0.42);
}

#theme-toggle:hover,
#menu-toggle:hover {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

#theme-toggle:active,
#menu-toggle:active,
.site-search button:active {
    transform: translateY(0) scale(0.97);
}

#menu-toggle {
    display: none;
}

/* ============ Main layout ============ */
main {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 20px 20px 60px;
    display: block;
}

section {
    position: relative;
    margin: 34px 0;
    padding: 30px 32px;
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
    animation: rise 0.85s var(--ease-out) both;
}

section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-2), var(--primary));
    background-size: 300% 100%;
    opacity: 0.75;
    animation: slideGradient 12s linear infinite;
}

section:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes floatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(43, 92, 255, 0.32); }
    50% { box-shadow: 0 0 0 10px rgba(43, 92, 255, 0); }
}

/* ============ Typography ============ */
h1 {
    margin: 0 0 18px;
    font-size: clamp(1.65rem, 1.2rem + 2.2vw, 2.5rem);
    line-height: 1.32;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: linear-gradient(120deg, var(--fg) 12%, var(--primary) 58%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

h2 {
    position: relative;
    margin: 0 0 20px;
    padding: 0 0 0 18px;
    font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: -0.005em;
    color: var(--fg);
}

h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.18em;
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    box-shadow: 0 0 14px rgba(43, 92, 255, 0.45);
}

h3 {
    margin: 26px 0 10px;
    font-size: 1.14rem;
    line-height: 1.5;
    font-weight: 700;
    color: var(--fg);
    transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

h3:hover {
    color: var(--primary);
}

h4 {
    margin: 20px 0 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
}

p {
    margin: 12px 0;
    color: var(--fg-soft);
}

strong {
    color: var(--fg);
    font-weight: 700;
}

.meta {
    display: inline-block;
    margin: 8px 0;
    padding: 4px 12px;
    font-size: 12.5px;
    color: var(--muted);
    background: var(--primary-soft);
    border-radius: 999px;
    letter-spacing: 0.01em;
}

address {
    font-style: normal;
    margin: 14px 0;
    padding: 18px 20px;
    background: var(--bg-soft);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

address:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

address p {
    margin: 6px 0;
}

blockquote {
    position: relative;
    margin: 16px 0;
    padding: 18px 22px 18px 26px;
    font-size: 15px;
    color: var(--fg-soft);
    background: linear-gradient(120deg, var(--primary-soft), transparent 80%);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

blockquote::before {
    content: "\201C";
    position: absolute;
    top: 2px;
    left: 8px;
    font-size: 34px;
    line-height: 1;
    color: var(--primary);
    opacity: 0.35;
    font-family: Georgia, serif;
}

blockquote:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-sm);
}

blockquote p {
    margin: 0;
    color: inherit;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 0;
    padding: 10px 16px;
    list-style: none;
    font-size: 13px;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    width: fit-content;
    max-width: 100%;
}

.breadcrumb li {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 6px;
    color: var(--muted);
    opacity: 0.6;
}

.breadcrumb a {
    color: var(--muted);
    font-weight: 500;
}

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

.breadcrumb [aria-current="page"] {
    color: var(--primary);
    font-weight: 600;
}

/* ============ Hero ============ */
#hero {
    margin-top: 22px;
    padding: 40px 36px 34px;
    background:
        linear-gradient(135deg, rgba(43, 92, 255, 0.14), rgba(255, 92, 138, 0.1) 48%, rgba(0, 201, 167, 0.12)),
        var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--glow), var(--shadow-lg);
}

#hero::after {
    content: "";
    position: absolute;
    top: -140px;
    right: -120px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43, 92, 255, 0.28), transparent 68%);
    pointer-events: none;
    animation: floatSoft 9s ease-in-out infinite;
}

#hero h1 {
    position: relative;
    z-index: 1;
}

.hero-lead {
    position: relative;
    z-index: 1;
    max-width: 78ch;
    font-size: 16.5px;
    line-height: 1.9;
    color: var(--fg-soft);
}

.hero-carousel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 26px 0 22px;
}

.hero-carousel figure {
    margin: 0;
    padding: 12px;
    background: var(--card-solid);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}

.hero-carousel figure:hover {
    transform: translateY(-8px) scale(1.015);
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
}

.hero-carousel svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    transition: transform 0.6s var(--ease);
}

.hero-carousel figure:hover svg {
    transform: scale(1.035);
}

.hero-carousel figcaption {
    margin-top: 10px;
    padding: 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.01em;
}

.hero-stats {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 34px;
    margin: 8px 0 0;
    padding: 18px 22px;
    font-size: 14px;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.hero-stats .stat {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.stat-num {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-variant-numeric: tabular-nums;
}

/* ============ Lists ============ */
section ul,
section ol {
    margin: 12px 0;
    color: var(--fg-soft);
}

section ul li::marker {
    color: var(--primary);
}

section ol li::marker {
    color: var(--primary);
    font-weight: 700;
}

section ul li,
section ol li {
    padding-left: 4px;
    transition: transform 0.28s var(--ease), color 0.28s var(--ease);
}

section ul li:hover,
section ol li:hover {
    transform: translateX(4px);
    color: var(--fg);
}

/* ============ Article cards ============ */
#news article,
#articles article {
    position: relative;
    margin: 16px 0;
    padding: 22px 24px;
    background: var(--card-solid);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

#news article::before,
#articles article::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.45s var(--ease);
}

#news article:hover,
#articles article:hover {
    transform: translateY(-6px);
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
}

#news article:hover::before,
#articles article:hover::before {
    transform: scaleY(1);
}

#news article h3,
#articles article h3 {
    margin-top: 0;
}

#news article a,
#articles article a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}

#news article a::after,
#articles article a::after {
    content: "\2192";
    transition: transform 0.3s var(--ease);
}

#news article a:hover,
#articles article a:hover {
    text-decoration: none;
    gap: 10px;
}

#news article a:hover::after,
#articles article a:hover::after {
    transform: translateX(3px);
}

/* ============ FAQ details ============ */
#faq details {
    position: relative;
    margin: 12px 0;
    padding: 0;
    background: var(--card-solid);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

#faq details:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

#faq details[open] {
    border-color: var(--primary);
    box-shadow: var(--glow);
}

#faq summary {
    position: relative;
    display: block;
    padding: 16px 52px 16px 20px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--fg);
    cursor: pointer;
    list-style: none;
    transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

#faq summary::-webkit-details-marker {
    display: none;
}

#faq summary::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -7px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    transition: transform 0.35s var(--ease);
}

#faq details[open] summary::after {
    transform: rotate(-135deg);
    margin-top: -3px;
}

#faq summary:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

#faq details p {
    margin: 0;
    padding: 4px 20px 20px;
    font-size: 15px;
    line-height: 1.85;
    color: var(--fg-soft);
    animation: rise 0.5s var(--ease-out) both;
}

/* ============ Sitemap / links ============ */
#sitemap ul,
#links ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
}

#sitemap li,
#links li {
    margin: 0;
}

#sitemap a,
#links a {
    display: block;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--fg-soft);
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(43, 92, 255, 0.32);
    text-decoration: none;
}

/* ============ Contact ============ */
#contact address a {
    font-weight: 600;
    border-bottom: 1px dashed currentColor;
}

#contact address a:hover {
    text-decoration: none;
    color: var(--accent);
    border-bottom-style: solid;
}

/* ============ Footer ============ */
footer {
    position: relative;
    margin-top: 50px;
    background: var(--card);
    border-top: 1px solid var(--border-soft);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-2));
    background-size: 200% 100%;
    animation: slideGradient 10s linear infinite;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 30px 20px 34px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--muted);
}

.footer-inner p {
    margin: 6px 0;
    color: var(--muted);
}

.footer-inner nav {
    margin-top: 16px;
}

.footer-inner ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-inner li {
    margin: 0;
}

.footer-inner a {
    position: relative;
    color: var(--muted);
    font-weight: 500;
    transition: color 0.3s var(--ease);
}

.footer-inner a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.32s var(--ease);
}

.footer-inner a:hover {
    color: var(--primary);
    text-decoration: none;
}

.footer-inner a:hover::after {
    width: 100%;
}

/* ============ Back to top ============ */
#back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: none;
    padding: 12px 18px;
    font-size: 13px;
    font-family: inherit;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(43, 92, 255, 0.42);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: pulseGlow 2.6s ease-in-out infinite;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.3s var(--ease);
}

#back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 18px 40px rgba(43, 92, 255, 0.55);
}

#back-to-top:active {
    transform: translateY(-1px) scale(0.98);
}

/* ============ Scrollbar ============ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-deep), var(--accent));
    background-clip: padding-box;
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============ Responsive: tablet ============ */
@media (max-width: 1024px) {
    .header-inner {
        gap: 12px;
    }

    .site-search input[type="search"] {
        width: 150px;
    }

    .site-search input[type="search"]:focus {
        width: 180px;
    }

    section {
        padding: 26px 24px;
    }

    #hero {
        padding: 34px 26px 30px;
    }
}

/* ============ Responsive: mobile ============ */
@media (max-width: 860px) {
    :root {
        --header-h: 58px;
    }

    .header-inner {
        padding: 10px 14px;
        gap: 10px;
    }

    .brand {
        font-size: 18px;
    }

    .brand svg {
        width: 34px;
        height: 34px;
    }

    #site-header nav {
        order: 3;
        flex: 1 1 100%;
        min-width: 100%;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        width: 100%;
        padding: 10px 0 4px;
        border-top: 1px solid var(--border-soft);
        margin-top: 4px;
    }

    .nav-list.open {
        display: flex;
        animation: rise 0.45s var(--ease-out) both;
    }

    .nav-list a {
        display: block;
        padding: 11px 14px;
        border-radius: var(--radius-sm);
        font-size: 15px;
    }

    .nav-list a::after {
        display: none;
    }

    #menu-toggle {
        display: inline-block;
        margin-left: auto;
    }

    .site-search {
        order: 4;
        flex: 1 1 100%;
        margin-left: 0;
        width: 100%;
    }

    .site-search input[type="search"],
    .site-search input[type="search"]:focus {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    main {
        padding: 14px 14px 48px;
    }

    .breadcrumb {
        font-size: 12px;
        padding: 8px 14px;
    }

    section {
        margin: 22px 0;
        padding: 22px 18px;
        border-radius: var(--radius);
    }

    #hero {
        margin-top: 16px;
        padding: 26px 18px 24px;
        border-radius: var(--radius);
    }

    #hero::after {
        width: 260px;
        height: 260px;
        top: -110px;
        right: -90px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.22rem;
        padding-left: 14px;
    }

    h2::before {
        width: 4px;
    }

    .hero-lead {
        font-size: 15px;
    }

    .hero-carousel {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 10px;
        padding: 16px 18px;
    }

    .hero-stats .stat {
        white-space: normal;
    }

    .stat-num {
        font-size: 1.35rem;
    }

    #sitemap ul,
    #links ul {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    #sitemap a,
    #links a {
        padding: 10px 12px;
        font-size: 13px;
    }

    #news article,
    #articles article {
        padding: 18px 16px;
    }

    #faq summary {
        padding: 14px 46px 14px 16px;
        font-size: 14.5px;
    }

    #faq details p {
        padding: 2px 16px 18px;
        font-size: 14.5px;
    }

    #back-to-top {
        right: 14px;
        bottom: 14px;
        padding: 10px 15px;
        font-size: 12px;
    }

    .footer-inner {
        padding: 24px 14px 28px;
    }

    .footer-inner ul {
        gap: 6px 16px;
    }
}

@media (max-width: 420px) {
    #sitemap ul,
    #links ul {
        grid-template-columns: 1fr;
    }

    .site-search button {
        padding: 9px 12px;
    }

    #theme-toggle,
    #menu-toggle {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ============ Print ============ */
@media print {
    #site-header,
    #back-to-top,
    .site-search,
    #menu-toggle,
    #theme-toggle {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        background-image: none;
    }

    section {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
        background: #fff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    section::before {
        display: none;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}