:root {
    --font-sans: "HarmonyOS Sans SC", "HarmonyOS Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", NotoSansHansRegular, "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", "Microsoft YaHei", sans-serif;

    --color-brand: #eac70f;
    --color-brand-hover: #ead050;
    --color-brand-subtle: rgba(234, 199, 15, 0.14);
    --color-page-background: #fcfbf8;
    --color-surface: #fff;
    --color-surface-secondary: #f5f4ef;
    --color-control-background: #f3f2ee;
    --color-footer-background: #f7f6f2;
    --color-border-subtle: rgba(23, 21, 15, 0.08);
    --color-text-primary: #17150f;
    --color-text-secondary: #4a3e35;
    --color-text-muted: #757575;
    --color-text-accent: #c28e0e;
    --color-link: var(--color-text-accent);

    --glass-filter: blur(24px) saturate(1.8);
    --glass-background: rgba(255, 255, 255, 0.66);
    --action-link-background: rgba(255, 255, 255, 0.6);
    --action-link-background-hover: #fff;
    --action-link-border-color: rgba(23, 21, 15, 0.1);
    --action-link-border-color-hover: #292929;
    --toggle-track-background: #e0ded8;
    --toggle-track-background-checked: #f0c020;
    --toggle-track-shadow: inset 0 1px 3px rgba(23, 21, 15, 0.12);
    --toggle-thumb-background: #fff;
    --toggle-thumb-shadow: 0 1px 3px rgba(23, 21, 15, 0.18);
    --toggle-label-color: #000;

    --color-page-title-glow-right: rgba(255, 205, 41, 0.55);
    --color-page-title-glow-left: rgba(255, 183, 41, 0.32);
    --color-page-title-glow-bottom: rgba(255, 228, 130, 0.6);
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(23, 21, 15, 0.05), 0 2px 8px rgba(23, 21, 15, 0.04);
    --shadow-md: 0 2px 6px rgba(23, 21, 15, 0.05), 0 12px 32px -8px rgba(23, 21, 15, 0.12);
    --shadow-lg: 0 4px 12px rgba(23, 21, 15, 0.06), 0 24px 56px -12px rgba(23, 21, 15, 0.18);
    --motion-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --focus-ring: 2.5px solid rgba(234, 179, 8, 0.65);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --color-brand-subtle: rgba(234, 199, 15, 0.1);
    --color-page-background: #12110d;
    --color-surface: #1c1b15;
    --color-surface-secondary: #232219;
    --color-control-background: #232219;
    --color-footer-background: #1c1b15;
    --color-border-subtle: rgba(245, 243, 237, 0.09);
    --color-text-primary: #f5f3ed;
    --color-text-secondary: #f5f3ed;
    --color-text-muted: #9a958a;
    --color-text-accent: #f0d050;

    --glass-background: rgba(24, 23, 19, 0.62);
    --action-link-background: rgba(30, 29, 24, 0.55);
    --action-link-background-hover: rgba(52, 50, 42, 0.85);
    --action-link-border-color: rgba(245, 243, 237, 0.12);
    --action-link-border-color-hover: #e6e4de;
    --toggle-track-background: #3a382e;
    --toggle-track-background-checked: #eac70f;
    --toggle-track-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
    --toggle-thumb-background: #f8f8f8;
    --toggle-thumb-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    --toggle-label-color: #fff;

    --color-page-title-glow-right: rgba(240, 208, 80, 0.14);
    --color-page-title-glow-left: rgba(234, 199, 15, 0.1);
    --color-page-title-glow-bottom: rgba(250, 225, 120, 0.09);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.3), 0 12px 32px -8px rgba(0, 0, 0, 0.42);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.34), 0 24px 56px -12px rgba(0, 0, 0, 0.52);
}

body {
    margin: 0;
    background: var(--color-page-background);
    line-height: normal;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html[data-theme="dark"] body {
    color: var(--color-text-primary);
}

* {
    font-family: var(--font-sans);
}

*:focus-visible {
    outline: var(--focus-ring);
}

.page-title {
    background:
        linear-gradient(transparent 55%, var(--color-page-background) 100%),
        radial-gradient(52% 90% at 88% 0%, var(--color-page-title-glow-right) 0%, transparent 66%),
        radial-gradient(56% 95% at 6% 8%, var(--color-page-title-glow-left) 0%, transparent 62%),
        radial-gradient(70% 70% at 50% 125%, var(--color-page-title-glow-bottom) 0%, transparent 60%);
    background-color: var(--color-brand-subtle);
    position: relative;
    margin: -82px 0 18px;
    padding: 138px 34px 48px;
    text-align: left;
    color: var(--color-text-primary);
    overflow-y: hidden;
}

.page-title--centered {
    text-align: center;
}

.page-title h1 {
    margin: 0 0 10px;
    animation: fade-slide-up 0.5s;
    font-size: clamp(30px, 4.6vw, 44px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.12;
}

.page-title small {
    font-size: 19px;
    font-weight: 400;
    opacity: 0.72;
    animation: fade-slide-up 0.5s;
}

.page-content {
    position: relative;
    margin: 0;
    padding: 5px 10%;
    animation: fade-slide-up 0.5s;
}

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

a:not(.footer-link):hover {
    text-decoration: underline;
    color: var(--color-link);
}

a:not(.footer-link):visited {
    color: var(--color-link);
    text-decoration: none;
}

.page-updated-at {
    margin: 20px 10%;
    font-size: 14px;
    font-weight: 300;
    color: var(--color-text-muted);
}

.page-section {
    margin: 0 0 30px;
}

.page-content h1,
.page-content h2,
.page-content h3 {
    position: relative;
    margin: 0;
    padding: 10px 10%;
    font-weight: 800;
    text-align: center;
    color: var(--color-text-accent);
    letter-spacing: 0;
}

.page-content h1 {
    font-size: clamp(26px, 3.4vw, 34px);
    line-height: 1.2;
}

.page-content h2 {
    font-size: 22px;
}

.page-content h3 {
    font-size: 18px;
}

.page-section p {
    position: relative;
    margin: 0 0 0.9em;
    padding: 0;
    font-size: 17px;
    line-height: 1.75;
    text-align: left;
    color: var(--color-text-primary);
}

.page-section p:last-child {
    margin-bottom: 0;
}

.page-section center,
.page-content .page-section > center {
    display: block;
    max-width: 640px;
    margin: 0 auto 0.9em;
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--color-text-primary);
    text-align: center;
}

.page-section h2 {
    margin: 26px 0 10px;
    padding: 0;
    font-size: clamp(20px, 2.6vw, 23px);
    font-weight: 700;
    text-align: center;
    color: var(--color-text-primary);
    letter-spacing: 0;
}

.page-section .page-section-heading {
    margin: 0;
    padding: 10px 10%;
    font-size: clamp(26px, 3.4vw, 34px);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    color: var(--color-text-accent);
    letter-spacing: 0;
}

.tabs__panels .tabs__panel h2,
.tabs__panels .tabs__panel h3 {
    padding: 10px 0 8px;
    text-align: left;
    color: var(--color-text-primary);
    letter-spacing: 0;
}

.tabs__panels .tabs__panel li {
    display: block;
    position: relative;
    padding-left: 1.15em;
    margin-bottom: 0.45em;
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--color-text-primary);
}

.tabs__panels .tabs__panel li::before {
    content: "";
    position: absolute;
    left: 0.2em;
    top: 0.72em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-text-accent);
}

.page-section img {
    border-radius: var(--radius-md);
}

.page-section--centered p {
    text-align: center;
}

.page-section--indented p {
    padding: 1.5px 10%;
}

.action-link {
    display: block;
    text-align: center;
    padding: 9px 0;
    color: var(--color-text-accent) !important;
    text-decoration: none !important;
    border-radius: 2px;
}

.action-link:hover {
    opacity: 0.7;
}

.action-links {
    display: flex;
    margin: 14px 0 5px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.action-links a:not(.tip) {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 4px;
    padding: 10px 18px;
    border: 1px solid var(--action-link-border-color);
    border-radius: var(--radius-pill);
    text-decoration: none !important;
    color: var(--color-text-primary) !important;
    background: var(--action-link-background);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    backdrop-filter: blur(20px) saturate(1.6);
    box-shadow: var(--shadow-sm);
    transition: transform 0.45s var(--motion-ease-out), box-shadow 0.45s var(--motion-ease-out), background-color 0.3s, border-color 0.3s;
}

.action-links a:not(.tip):hover,
.action-links a:not(.tip):focus-visible {
    background: var(--action-link-background-hover);
    border-color: var(--action-link-border-color-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-links a:not(.tip):active {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.12s;
}

.action-links a:not(.tip) span {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0;
}

.action-links a:not(.tip) b {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0;
}

.action-links a:not(.tip) .svg {
    margin: 1px -2px 0 6px;
    width: 15px;
    height: 15px;
    fill: var(--color-text-primary);
    opacity: 0.7;
    transition: transform 0.45s var(--motion-ease-out), opacity 0.3s;
}

.action-links a:not(.tip):focus-visible .svg,
.action-links a:not(.tip):hover .svg {
    transform: translateX(3px);
    opacity: 1;
}

@keyframes fade-slide-up {
    0% {
        position: relative;
        top: 50px;
        opacity: 0;
    }

    99% {
        position: relative;
        top: 0;
        opacity: 1;
    }
}

.tabs__list {
    overflow-x: auto;
    white-space: nowrap;
    display: inline-flex;
    border-radius: var(--radius-pill);
    justify-content: flex-start;
    align-items: center;
    scrollbar-width: none;
    background: var(--color-control-background);
    padding: 4px;
    gap: 2px;
    max-width: 100%;
}

.tabs__list button {
    border: none;
    background: transparent;
    color: var(--color-text-primary);
    padding: 8px 16px;
    margin: 0;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 500;
    opacity: 0.65;
    transition: opacity 0.25s, background-color 0.25s, color 0.25s;
}

.tabs__list *:last-child {
    margin-right: 0;
}

.tabs__list button:hover,
.tabs__list button:focus-visible {
    opacity: 1;
}

.tabs__list button[data-status="focus"] {
    font-weight: 700;
    background: var(--color-surface);
    color: var(--color-text-primary);
    opacity: 1;
    box-shadow: var(--shadow-sm);
}

.tabs__panels {
    border: 1px solid var(--color-border-subtle);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-top: 12px;
    min-height: 100px;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.tabs__panel {
    display: none;
    visibility: hidden;
    padding: 0 10px;
    overflow: hidden;
}

.tabs__panel[data-status="focus"] {
    display: block;
    visibility: visible;
    padding: 12px 20px;
}

.cookie-consent {
    visibility: hidden;
    position: fixed;
    z-index: 999;
    bottom: 20px;
    right: -720px;
    width: min(400px, calc(100vw - 80px));
    max-height: calc(100vh - 120px);
    padding: 20px 22px !important;
    background-color: var(--glass-background);
    backdrop-filter: var(--glass-filter);
    -webkit-backdrop-filter: var(--glass-filter);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--color-text-primary);
    overflow-y: auto;
    transition: right 0.6s var(--motion-ease-out), visibility 0.8s;
}

.cookie-consent[data-status="open"] {
    visibility: visible;
    right: 20px;
}

.cookie-consent__header {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4 !important;
    padding-bottom: 8px !important;
}

.cookie-consent__body {
    font-size: 16px;
    line-height: 1.7 !important;
    padding-bottom: 3px !important;
}

.cookie-consent__footer {
    padding-top: 1px !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    text-align: end;
    justify-content: flex-end;
    align-content: flex-end;
    align-items: flex-end;
}

.cookie-consent__footer button {
    color: var(--color-text-primary);
    padding: 8px 18px !important;
    background: transparent;
    border: 1px solid var(--color-border-subtle);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-pill);
    transition: background-color 0.25s, transform 0.25s var(--motion-ease-out), border-color 0.25s;
}

.cookie-consent__footer button:last-child {
    background: var(--color-brand);
    border-color: transparent;
    color: #1c1a12;
}

.cookie-consent__footer button:hover,
.cookie-consent__footer button:focus-visible {
    background-color: rgba(128, 128, 128, 0.14);
    transform: translateY(-1px);
}

.cookie-consent__footer button:last-child:hover,
.cookie-consent__footer button:last-child:focus-visible {
    background: var(--color-brand-hover);
}

.tabs__panels .action-links {
    justify-content: flex-start;
}

.toggle {
    position: relative;
    width: 45px;
    height: 25px;
}

.toggle input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 99;
}

.toggle input:focus + .toggle__track {
    outline: var(--focus-ring);
    transition: outline 0s;
}

.toggle__track {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-pill);
    background: var(--toggle-track-background);
    box-shadow: var(--toggle-track-shadow);
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.toggle input:checked ~ .toggle__track {
    background: var(--toggle-track-background-checked);
}

.toggle__thumb {
    display: inline-block;
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--toggle-thumb-background);
    box-shadow: var(--toggle-thumb-shadow);
    z-index: 10;
    transition: left 0.3s cubic-bezier(0.05, 0.73, 0.25, 1), background-color 0.3s, box-shadow 0.3s;
}

.toggle input:checked ~ .toggle__track .toggle__thumb {
    left: 23px;
}

.toggle__label {
    position: absolute;
    top: 0;
    width: 20px;
    font-size: 10px;
    line-height: 2.5;
    color: var(--toggle-label-color);
    text-align: center;
    transition: left 0.3s cubic-bezier(0.05, 0.73, 0.25, 1), right 0.3s cubic-bezier(0.05, 0.73, 0.25, 1), opacity 0.3s cubic-bezier(0.05, 0.73, 0.25, 1), color 0.3s;
}

.toggle__label--on {
    left: -19px;
    opacity: 0.5;
}

.toggle input:checked ~ .toggle__track .toggle__label--on {
    left: 3px;
    opacity: 1;
}

.toggle__label--off {
    opacity: 1;
    right: 0;
}

.toggle input:checked ~ .toggle__track .toggle__label--off {
    opacity: 0.5;
    right: -20px;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    max-width: 1060px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.sitemap-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 18px 20px;
    transition: transform 0.45s var(--motion-ease-out), box-shadow 0.45s var(--motion-ease-out), border-color 0.3s;
}

.sitemap-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(23, 21, 15, 0.18);
}

html[data-theme="dark"] .sitemap-card:hover {
    border-color: rgba(245, 243, 237, 0.2);
}

.sitemap-card h2 {
    margin: 0 0 6px;
    padding: 0;
    font-size: 17.5px;
    font-weight: 700;
    text-align: left;
    letter-spacing: 0;
}

.sitemap-card h2 a {
    color: var(--color-text-primary) !important;
}

.sitemap-card h2 a:hover {
    color: var(--color-text-accent) !important;
    text-decoration: none !important;
}

.sitemap-card__description {
    margin: 0 0 10px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--color-text-muted);
}

.sitemap-card__url {
    margin: 0;
    font-size: 12.5px;
    color: var(--color-text-accent);
    opacity: 0.85;
    overflow-wrap: anywhere;
}

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