:root {
    --brand: #0f766e;
    --brand-deep: #064e4a;
    --accent: #e6a841;
    --app-bg: #f6f9f8;
    --app-bg-accent: #f6f9f8;
    --panel-bg: #fff;
    --panel-border: #dfe8e5;
    --text-primary: #172b2a;
    --text-secondary: #5f736e;
    --shadow-soft: 0 4px 20px rgb(6 78 74 / 4%);
    --radius-2xl: 14px;
    color-scheme: light;
}
body {
    color: var(--text-primary);
    background: var(--app-bg);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    font-size: 15px;
}
body::before { display: none; }
.public-page { min-width: 320px; min-height: 100vh; display: flex; flex-direction: column; }
.container-fluid-custom { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.public-page > main, .public-page > .main-content-wrapper { flex: 1; }
a { text-underline-offset: 3px; }
button, input, select { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 3000; padding: 12px; background: #fff; color: var(--brand-deep); }
.skip-link:focus { top: 12px; }
.site-header { background: #fff; border-bottom: 1px solid var(--panel-border); }
.site-header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-primary); text-decoration: none; font-size: 20px; font-weight: 750; white-space: nowrap; letter-spacing: -.03em; }
.site-brand img { flex-shrink: 0; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a, .site-nav button, .footer-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--text-secondary); font: inherit; text-decoration: none; cursor: pointer; }
.site-nav [aria-current], .site-nav a:hover, .site-nav button:hover, .footer-link:hover { color: var(--brand); }
.site-nav [aria-current] { font-weight: 650; box-shadow: inset 0 -2px var(--brand); }
.footer-container { margin-top: 56px; border-top: 1px solid var(--panel-border); background: #fff; }
.footer-copyright { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; column-gap: 20px; padding: 18px 0; font-size: 13px; color: var(--text-secondary); }
.footer-copyright a { color: var(--text-secondary); text-decoration: none; }
.footer-divider { display: none; }
.footer-brand { margin-right: auto; }
.usage-content ol { padding-left: 24px; margin: 0; }
.usage-content li { padding-left: 6px; margin-bottom: 20px; }
.usage-content p { margin: 6px 0 0; color: var(--text-secondary); }
.usage-tip { background: var(--app-bg); padding: 14px; border-radius: 10px; }
.btn-primary, .btn-login { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: none; }
.btn-primary:hover:not(:disabled), .btn-login:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn-outline-primary { color: var(--brand); background: #fff; border-color: var(--brand); }
.btn-outline-primary:hover { color: #fff; background: var(--brand); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgb(15 118 110 / 12%); }
.btn { border-radius: 10px; }
.modal-content { border: 1px solid var(--panel-border); border-radius: 14px; box-shadow: 0 20px 80px rgb(6 78 74 / 15%); }
.modal-title { font-size: 18px; color: var(--text-primary); }
.modal-header, .modal-footer { border-color: var(--panel-border); background: #fff; }
.modal-body { color: var(--text-primary); overflow-wrap: anywhere; }
.btn-close:focus { box-shadow: none; outline-color: var(--brand); }
.modal .btn-close { width: 44px; height: 44px; flex-shrink: 0; }
.disclaimer-link-chip { padding: 12px; background: var(--app-bg); border-radius: 10px; overflow-wrap: anywhere; }
.disclaimer-note-block p { font-size: 14px; line-height: 1.8; }
.disclaimer-thanks { color: var(--text-secondary); }
.resource-page article { padding: 28px; border: 1px solid var(--panel-border); border-radius: 14px; background: #fff; }
.resource-page h1 { overflow-wrap: anywhere; }
.resource-page nav { overflow-wrap: anywhere; }
.search-logo { width: 44px; height: 44px; object-fit: contain; box-shadow: none; border-radius: 0; }
.search-logo-container .logo-text { color: var(--text-primary); }
.nav-btn.active, .nav-btn.is-active, .nav-btn:hover { color: var(--brand); border-color: var(--panel-border); background: #eaf5f2; }
.nav-btn.is-active::after { background: var(--brand); }
.admin-page .resource-hero { display: block; }
.admin-page .resource-hero .admin-hero-main { padding: 24px; background: #fff; border: 1px solid var(--panel-border); border-radius: 14px; box-shadow: none; }
.admin-page .admin-title { font-size: 26px; line-height: 1.4; margin: 10px 0; }
.admin-page .admin-kicker { color: var(--brand); background: #edf5f2; letter-spacing: 0; }
.admin-page .admin-hero-tags { margin-top: 16px; }
.admin-page .resource-panel { border-radius: 14px; box-shadow: var(--shadow-soft); border: 1px solid var(--panel-border); }
.admin-page .resource-cta-btn.is-add, .admin-page .resource-cta-btn.is-transfer { color: #fff; background: var(--brand); box-shadow: none; }
.admin-page .resource-cta-btn.is-import { color: var(--brand); background: #fff; border: 1px solid var(--brand); box-shadow: none; }
.admin-page .resource-batch-toolbar { background: #edf5f2; border-color: var(--panel-border); }
@media (max-width: 640px) {
    .container-fluid-custom { padding: 0 16px; }
    .site-header-inner { min-height: 68px; gap: 10px; }
    .site-brand { gap: 6px; font-size: 17px; }
    .site-brand img { width: 34px; height: 34px; }
    .site-nav { gap: 12px; font-size: 13px; }
    .site-nav > a:not(.admin-link) { display: none; }
    .site-nav .admin-link { display: none; }
    .footer-container { margin-top: 36px; }
    .footer-brand { flex-basis: 100%; text-align: center; margin: 0; }
    .resource-page article { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
