:root {
    --v3-paper-0: #FBF7EE;
    --v3-paper-1: #F6F0E2;
    --v3-paper-2: #EFE6D2;
    --v3-paper-3: #E5D9BF;

    --v3-ink: #322B23;
    --v3-ink-2: #55483A;
    --v3-ink-3: #857462;
    --v3-ink-4: #AC9C86;

    --v3-red: #A63A28;
    --v3-red-hi: #BE4B34;
    --v3-red-lo: #82291A;
    --v3-red-ring: rgba(166, 58, 40, 0.26);

    --v3-gold: #B08D4F;
    --v3-gold-line: rgba(176, 141, 79, 0.30);
    --v3-gold-line-soft: rgba(176, 141, 79, 0.16);
    --v3-jade: #4A7360;

    --v3-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", SimSun, serif;
    --v3-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

    --v3-space-1: 4px;
    --v3-space-2: 8px;
    --v3-space-3: 12px;
    --v3-space-4: 16px;
    --v3-space-5: 24px;
    --v3-space-6: 32px;
    --v3-space-7: 48px;
    --v3-space-8: 64px;
    --v3-tap: 44px;
    --v3-content: 1120px;
    --v3-gutter: clamp(14px, 3.2vw, 24px);
    --v3-safe-top: env(safe-area-inset-top, 0px);
    --v3-safe-right: env(safe-area-inset-right, 0px);
    --v3-safe-bottom: env(safe-area-inset-bottom, 0px);
    --v3-safe-left: env(safe-area-inset-left, 0px);

    --v3-fs-xs: 12px;
    --v3-fs-sm: 13.5px;
    --v3-fs-md: 15.5px;
    --v3-fs-lg: 17px;
    --v3-fs-xl: clamp(20px, 2.4vw, 26px);
    --v3-fs-display: clamp(22px, 3.2vw, 34px);

    --v3-r-sm: 8px;
    --v3-r-md: 12px;
    --v3-r-lg: 18px;

    --v3-shadow-sm: 0 1px 2px rgba(50, 43, 35, 0.05), 0 2px 10px rgba(50, 43, 35, 0.05);
    --v3-shadow-md: 0 2px 6px rgba(50, 43, 35, 0.06), 0 14px 38px rgba(50, 43, 35, 0.09);
    --v3-shadow-lg: 0 4px 10px rgba(50, 43, 35, 0.07), 0 26px 60px rgba(50, 43, 35, 0.13);

    --v3-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --v3-fast: 170ms;
    --v3-mid: 320ms;
    --v3-caret: var(--v3-red);
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(72px + var(--v3-safe-top));
}

body {
    margin: 0;
    padding-top: var(--v3-safe-top);
    padding-right: var(--v3-safe-right);
    padding-bottom: var(--v3-safe-bottom);
    padding-left: var(--v3-safe-left);
    font-family: var(--v3-sans);
    font-size: var(--v3-fs-md);
    line-height: 1.7;
    color: var(--v3-ink-2);
    background-color: var(--v3-paper-0);
    background-image:
        radial-gradient(120% 62% at 16% -6%, rgba(255, 253, 244, 0.95) 0%, rgba(255, 253, 244, 0) 56%),
        radial-gradient(105% 55% at 88% -8%, rgba(233, 209, 165, 0.42) 0%, rgba(233, 209, 165, 0) 55%),
        radial-gradient(150% 80% at 50% 118%, rgba(84, 64, 42, 0.12) 0%, rgba(84, 64, 42, 0) 58%);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: auto;
    caret-color: var(--v3-caret);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    pointer-events: none;
    opacity: 0.30;
    mix-blend-mode: multiply;
    background-image: url("/images/gzd/gzd-paper-texture.svg");
    background-size: 420px 420px;
}

.v3-dust {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.v3-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.v3-main {
    flex: 1 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.v3-container {
    width: min(var(--v3-content), calc(100% - 2 * var(--v3-gutter)));
    margin-inline: auto;
}

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

input,
textarea,
select,
button {
    font-family: inherit;
    caret-color: var(--v3-caret);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
textarea,
select {
    font-size: max(16px, 1em);
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
*::-webkit-scrollbar-thumb {
    background: rgba(166, 58, 40, 0.28);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}
*::-webkit-scrollbar-track {
    background: transparent;
}

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

::selection {
    background: rgba(166, 58, 40, 0.18);
}

:focus-visible {
    outline: 2px solid var(--v3-red-ring);
    outline-offset: 2px;
    border-radius: 4px;
}

.v3-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.v3-skip {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 2147483600;
    padding: 10px 18px;
    background: var(--v3-red);
    color: #fff;
    border-radius: 8px;
    transition: top var(--v3-fast) ease;
}

.v3-skip:focus {
    top: 12px;
    color: #fff;
}

.v3-topbar {
    flex-shrink: 0;
    padding: 14px 0 0;
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(180deg, rgba(251, 247, 238, 0.94) 0%, rgba(251, 247, 238, 0.82) 70%, rgba(251, 247, 238, 0));
    backdrop-filter: saturate(1.1) blur(10px);
    -webkit-backdrop-filter: saturate(1.1) blur(10px);
    transition: box-shadow var(--v3-mid) var(--v3-ease);
}

.v3-topbar.is-compact {
    padding-top: 8px;
    box-shadow: 0 1px 0 var(--v3-gold-line-soft);
}

.v3-topbar.is-compact .v3-brand img {
    height: 44px;
}

.v3-topbar__row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    width: min(1240px, calc(100% - 48px));
    margin-inline: auto;
}

.v3-topbar__side {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.v3-topbar__side--end {
    justify-content: flex-end;
}

.v3-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    border-radius: 10px;
}

.v3-brand img {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(90, 60, 30, 0.14));
}

.v3-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 260px;
    padding: 4px 12px;
    border: 1px solid var(--v3-gold-line);
    border-radius: 999px;
    background: rgba(255, 253, 246, 0.72);
    font-size: 12.5px;
    color: var(--v3-ink-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v3-chip b {
    color: var(--v3-ink-2);
    font-weight: 600;
}

.v3-hero-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 0 6px;
    text-align: center;
}

.v3-hero-brand img {
    height: 64px;
    width: auto;
    filter: drop-shadow(0 3px 10px rgba(90, 60, 30, 0.16));
}

.v3-slogan {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    font-family: var(--v3-serif);
    font-size: 19px;
    letter-spacing: 0.42em;
    text-indent: 0.42em;
    color: var(--v3-ink);
}

.v3-slogan i {
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--v3-gold), transparent);
}

.v3-subtle {
    margin: 2px 0 0;
    font-size: 13px;
    letter-spacing: 0.18em;
    color: var(--v3-ink-4);
}

.v3-card {
    position: relative;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(255, 254, 249, 0.92), rgba(252, 247, 236, 0.92));
    border: 1px solid var(--v3-gold-line);
    border-radius: var(--v3-r-lg);
    box-shadow: var(--v3-shadow-md);
}

.v3-card--frame::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid var(--v3-gold-line-soft);
    border-radius: calc(var(--v3-r-lg) - 5px);
    pointer-events: none;
}

.v3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: var(--v3-r-md);
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
    cursor: pointer;
    transition: transform var(--v3-fast) var(--v3-ease), box-shadow var(--v3-fast) ease, filter var(--v3-fast) ease, background-color var(--v3-fast) ease, border-color var(--v3-fast) ease, color var(--v3-fast) ease;
}

.v3-btn--primary {
    background: linear-gradient(180deg, #B54531 0%, var(--v3-red) 52%, var(--v3-red-lo) 100%);
    color: #FFF7EF;
    box-shadow: inset 0 1px 0 rgba(255, 226, 205, 0.32), 0 8px 20px rgba(130, 41, 26, 0.26);
}

.v3-btn--primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 226, 205, 0.38), 0 11px 26px rgba(130, 41, 26, 0.32);
}

.v3-btn--primary:active {
    transform: translateY(0);
}

.v3-btn--primary[disabled],
.v3-btn--primary.is-busy {
    opacity: 0.65;
    cursor: default;
    transform: none;
}

.v3-btn--ghost {
    background: rgba(255, 253, 246, 0.75);
    border-color: var(--v3-gold-line);
    color: var(--v3-ink-2);
}

.v3-btn--ghost:hover {
    border-color: rgba(166, 58, 40, 0.45);
    color: var(--v3-red);
    transform: translateY(-1px);
    box-shadow: var(--v3-shadow-sm);
}

.v3-backlink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 12px;
    border: 1px solid var(--v3-gold-line);
    border-left: 3px solid var(--v3-red);
    border-radius: 8px;
    background: rgba(255, 253, 246, 0.78);
    color: var(--v3-ink-2) !important;
    font-size: 13.5px;
    transition: all var(--v3-fast) var(--v3-ease);
}

.v3-backlink:hover {
    color: var(--v3-red) !important;
    transform: translateX(-2px);
    box-shadow: var(--v3-shadow-sm);
}

.v3-backlink svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.v3-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.v3-field > label {
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--v3-ink-2);
}

.v3-field > label small {
    font-weight: 400;
    color: var(--v3-ink-4);
}

.v3-input,
.v3-textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(140, 116, 82, 0.34);
    border-radius: var(--v3-r-md);
    background: rgba(255, 254, 250, 0.9);
    font-family: inherit;
    font-size: 15.5px;
    color: var(--v3-ink);
    transition: border-color var(--v3-fast) ease, box-shadow var(--v3-fast) ease;
}

.v3-input::placeholder,
.v3-textarea::placeholder {
    color: var(--v3-ink-4);
}

.v3-input:focus,
.v3-textarea:focus {
    outline: none;
    border-color: var(--v3-red);
    box-shadow: 0 0 0 3px var(--v3-red-ring);
}

.v3-textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.8;
}

.v3-hint {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--v3-ink-4);
}

.v3-err {
    min-height: 18px;
    font-size: 12.5px;
    color: #B03A2A;
}

.v3-err.form-success {
    color: var(--v3-jade);
}

.v3-searchline {
    position: relative;
    display: flex;
    gap: 12px;
    max-width: 660px;
    margin-inline: auto;
}

.v3-searchline > svg {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    width: 19px;
    height: 19px;
    color: var(--v3-ink-4);
    pointer-events: none;
    transition: color var(--v3-fast) ease;
}

.v3-searchline:focus-within > svg {
    color: var(--v3-red);
}

.v3-searchline .v3-input {
    flex: 1;
    min-width: 0;
    height: 54px;
    padding: 0 18px 0 48px;
    border-radius: var(--v3-r-md);
    background: #FFFEFA;
    box-shadow: inset 0 2px 6px rgba(122, 92, 42, 0.08);
}

.v3-searchline .v3-btn {
    min-height: 54px;
    padding-inline: 36px;
    border-radius: var(--v3-r-md);
}

.v3-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.v3-pill {
    position: relative;
    padding: 9px 24px 9px 26px;
    border: 1px solid var(--v3-gold-line-soft);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 253, 246, 0.92), rgba(250, 244, 231, 0.86));
    color: var(--v3-ink-2);
    font-family: var(--v3-serif);
    font-size: 14.5px;
    letter-spacing: 0.14em;
    text-indent: 0.14em;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 1px 3px rgba(120, 90, 40, 0.07);
    transition: color var(--v3-fast) ease, border-color var(--v3-fast) ease, background var(--v3-mid) var(--v3-ease), box-shadow var(--v3-mid) ease, transform var(--v3-fast) ease;
}

.v3-pill::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 50%;
    width: 5px;
    height: 5px;
    transform: translateY(-50%) rotate(45deg);
    border-radius: 1px;
    background: var(--v3-gold);
    opacity: 0.5;
    transition: background var(--v3-fast) ease, opacity var(--v3-fast) ease;
}

.v3-pill:hover {
    border-color: var(--v3-gold-line);
    color: var(--v3-red);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 5px 12px rgba(120, 90, 40, 0.12);
}

.v3-pill:hover::before {
    opacity: 0.85;
}

.v3-pill:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #FFFDF6, 0 0 0 4px rgba(196, 71, 50, 0.35);
}

.v3-pill.is-active,
.v3-pill[aria-selected="true"] {
    border-color: var(--v3-red-lo);
    background: linear-gradient(180deg, #B54531 0%, var(--v3-red) 100%);
    color: #FFF6EE;
    box-shadow: 0 4px 14px rgba(130, 41, 26, 0.28), inset 0 1px 0 rgba(255, 226, 205, 0.35);
}

.v3-pill.is-active::before,
.v3-pill[aria-selected="true"]::before {
    background: #FFE7D2;
    opacity: 0.95;
}

.v3-footer {
    flex-shrink: 0;
    margin-top: 48px;
    padding: 26px 0 30px;
    border-top: 1px solid var(--v3-gold-line);
    background:
        radial-gradient(90% 140% at 50% -30%, rgba(255, 252, 243, 0.85) 0%, rgba(255, 252, 243, 0) 60%),
        linear-gradient(180deg, rgba(243, 235, 218, 0.55), rgba(236, 225, 202, 0.75));
}

.v3-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.v3-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.v3-footer__links a {
    min-height: var(--v3-tap);
    padding: 10px 18px;
    border: 1px solid var(--v3-gold-line);
    border-radius: 999px;
    background: rgba(255, 253, 246, 0.72);
    color: var(--v3-ink-2) !important;
    font-size: 13px;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--v3-fast) var(--v3-ease);
}

.v3-footer__links a:hover {
    color: var(--v3-red) !important;
    border-color: rgba(166, 58, 40, 0.4);
    transform: translateY(-1px);
}

.v3-footer__qr {
    position: relative;
}

.v3-qr-panel {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    display: flex;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid var(--v3-gold-line);
    border-radius: var(--v3-r-md);
    background: linear-gradient(180deg, rgba(255, 254, 249, 0.98), rgba(252, 246, 234, 0.98));
    box-shadow: var(--v3-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--v3-mid) var(--v3-ease);
    z-index: 60;
}

.v3-qr-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.v3-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 128px;
}

.v3-qr-item img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border: 1px solid var(--v3-gold-line-soft);
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    box-sizing: border-box;
}

.v3-qr-item b {
    font-size: 13px;
    color: var(--v3-ink);
}

.v3-qr-item span {
    font-size: 11.5px;
    color: var(--v3-ink-4);
}

.v3-footer__beian {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    font-size: 12px;
    color: var(--v3-ink-4);
}

.v3-footer__beian a {
    color: var(--v3-ink-3) !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.v3-footer__beian a:hover {
    color: var(--v3-red) !important;
}

.v3-footer__beian img {
    height: 13px;
}

.v3-footer__copy {
    font-size: 12.5px;
    letter-spacing: 0.14em;
    color: var(--v3-ink-3);
}

.v3-totop {
    position: fixed;
    right: 26px;
    bottom: 30px;
    z-index: 90;
    width: 46px;
    height: 46px;
    border: 1px solid var(--v3-gold-line);
    border-radius: 50%;
    background: rgba(255, 253, 246, 0.9);
    color: var(--v3-ink-2);
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--v3-shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--v3-mid) var(--v3-ease);
}

.v3-totop.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.v3-totop:hover {
    color: var(--v3-red);
    border-color: rgba(166, 58, 40, 0.4);
    transform: translateY(-2px);
}

.portal-flash {
    display: none;
    margin: 0 auto 18px;
    max-width: 720px;
    padding: 12px 18px;
    border-radius: var(--v3-r-md);
    font-size: 14px;
    text-align: center;
}

.portal-flash--success {
    display: block;
    border: 1px solid rgba(74, 115, 96, 0.35);
    background: rgba(74, 115, 96, 0.08);
    color: #33584A;
}

.portal-flash--error {
    display: block;
    border: 1px solid rgba(176, 58, 42, 0.35);
    background: rgba(176, 58, 42, 0.07);
    color: #8E2E1F;
}

.login-feedback {
    display: none;
    margin: 0 0 16px;
    padding: 11px 14px;
    border-radius: var(--v3-r-md);
    font-size: 13.5px;
    text-align: center;
}

.login-feedback--error {
    display: block;
    border: 1px solid rgba(176, 58, 42, 0.35);
    background: rgba(176, 58, 42, 0.07);
    color: #8E2E1F;
}

.login-feedback--success {
    display: block;
    border: 1px solid rgba(74, 115, 96, 0.35);
    background: rgba(74, 115, 96, 0.08);
    color: #33584A;
}

#portalSearchLoading {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 245, 234, 0.72);
    backdrop-filter: blur(3px);
}

#portalSearchLoading[hidden] {
    display: none;
}

#portalSearchLoading::before {
    content: "";
    width: 46px;
    height: 46px;
    border: 3px solid var(--v3-gold-line);
    border-top-color: var(--v3-red);
    border-radius: 50%;
    animation: v3Spin 0.8s linear infinite;
}

@keyframes v3Spin {
    to { transform: rotate(360deg); }
}

.portal-access-notice {
    width: min(880px, calc(100% - 48px));
    margin: 14px auto 0;
    position: relative;
    border: 1px solid rgba(74, 115, 96, 0.32);
    border-left: 4px solid var(--v3-jade);
    border-radius: var(--v3-r-md);
    background: linear-gradient(180deg, rgba(255, 254, 249, 0.95), rgba(240, 246, 240, 0.92));
    box-shadow: var(--v3-shadow-sm);
    transition: opacity 380ms var(--v3-ease), transform 380ms var(--v3-ease);
}

.portal-access-notice.is-leaving {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.portal-access-notice__inner {
    position: relative;
    padding: 14px 52px 14px 20px;
}

.portal-access-notice__title {
    margin: 0 0 2px;
    font-weight: 700;
    color: #33584A;
    letter-spacing: 0.08em;
}

.portal-access-notice__desc {
    margin: 0;
    font-size: 13.5px;
    color: var(--v3-ink-2);
}

.portal-access-notice__school {
    margin: 0 4px;
}

.portal-access-notice__libs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.portal-access-lib-tag {
    padding: 2px 10px;
    border: 1px solid rgba(74, 115, 96, 0.3);
    border-radius: 999px;
    background: rgba(74, 115, 96, 0.08);
    font-size: 12px;
    color: #33584A;
}

.portal-access-notice__close {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 4px 10px;
    border: 1px solid var(--v3-gold-line);
    border-radius: 999px;
    background: transparent;
    color: var(--v3-ink-3);
    font-size: 12px;
    cursor: pointer;
}

.portal-access-notice__close:hover {
    color: var(--v3-red);
    border-color: rgba(166, 58, 40, 0.4);
}

.v3-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 640ms var(--v3-ease), transform 640ms var(--v3-ease);
}

.v3-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .v3-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.v3-login-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 0 10px;
}

.v3-login-card {
    width: min(430px, calc(100vw - 40px));
    padding: 40px 42px 32px;
    box-sizing: border-box;
}

.v3-login-title {
    margin: 0 0 6px;
    font-family: var(--v3-serif);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-indent: 0.24em;
    text-align: center;
    color: var(--v3-ink);
}

.v3-login-sub {
    margin: 0 0 26px;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.12em;
    color: var(--v3-ink-4);
}

.v3-login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.v3-pwd-wrap {
    position: relative;
}

.v3-pwd-wrap .v3-input {
    padding-right: 52px;
}

.v3-pwd-eye {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--v3-ink-4);
    cursor: pointer;
    transition: color var(--v3-fast) ease, background-color var(--v3-fast) ease;
}

.v3-pwd-eye:hover {
    color: var(--v3-red);
    background: rgba(166, 58, 40, 0.07);
}

.v3-pwd-eye svg {
    width: 20px;
    height: 20px;
}

.v3-pwd-eye .eye-hide { display: none; }
.v3-pwd-eye.is-on .eye-show { display: none; }
.v3-pwd-eye.is-on .eye-hide { display: block; }

.v3-login-form .v3-btn {
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
}

.v3-login-note {
    margin: 22px 0 0;
    text-align: center;
    font-size: 12.5px;
    color: var(--v3-ink-4);
}

.shake {
    animation: v3Shake 480ms cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes v3Shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-3px); }
    40%, 60% { transform: translateX(3px); }
}

.v3-home-body {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 24px max(20px, calc((100% - 1560px) / 2)) 10px;
}

.v3-home-col {
    width: min(880px, calc(100% - 2 * clamp(260px, 21vw, 310px) - 44px));
    min-width: 0;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.v3-searchpanel {
    padding: 34px 36px 30px;
}

.v3-searchpanel__legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 0 24px;
    font-family: var(--v3-serif);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.46em;
    text-indent: 0.23em;
    color: #7A6233;
}

.v3-searchpanel__legend::before,
.v3-searchpanel__legend::after {
    content: "";
    flex: 0 1 96px;
    height: 1px;
    background: linear-gradient(90deg, rgba(176, 141, 79, 0), var(--v3-gold-line-strong), rgba(176, 141, 79, 0));
}

.v3-searchpanel__legend .en {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
    text-transform: uppercase;
    color: var(--v3-ink-4);
    transform: translateY(2px);
}

.v3-searchpanel .v3-pills {
    position: relative;
    justify-content: center;
    gap: 2px;
    padding: 5px;
    border: 1px solid var(--v3-gold-line);
    border-radius: 999px;
    background:
        radial-gradient(120% 190% at 50% 0%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(180deg, rgba(255, 253, 246, 0.95), rgba(248, 240, 224, 0.9));
    box-shadow: inset 0 2px 5px rgba(120, 90, 40, 0.1), 0 1px 0 rgba(255, 255, 255, 0.65);
    margin-bottom: 22px;
}

.v3-searchpanel .v3-pill {
    flex: none;
    min-width: 88px;
    border: none;
    border-radius: 999px;
    padding: 9px 26px;
    font-family: var(--v3-serif);
    font-size: 14.5px;
    letter-spacing: 0.16em;
    text-indent: 0.16em;
    color: var(--v3-ink-3);
    background: transparent;
    box-shadow: none;
    transition: color var(--v3-fast) ease, background-color var(--v3-mid) ease, box-shadow var(--v3-mid) ease, transform var(--v3-fast) ease;
}

.v3-searchpanel .v3-pill::before {
    content: "";
    position: absolute;
    left: -4px;
    top: 50%;
    width: 5px;
    height: 5px;
    transform: translateY(-50%) rotate(45deg);
    border-radius: 1px;
    background: var(--v3-gold);
    opacity: 0.42;
    transition: opacity var(--v3-fast) ease;
}

.v3-searchpanel .v3-pill:first-child::before {
    display: none;
}

.v3-searchpanel .v3-pill:hover {
    color: var(--v3-red);
    transform: none;
    border-color: transparent;
    background: rgba(176, 141, 79, 0.09);
}

.v3-searchpanel .v3-pill:hover::before {
    opacity: 0.7;
}

.v3-searchpanel .v3-pill:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #FFFDF6, 0 0 0 4px rgba(196, 71, 50, 0.35);
}

.v3-searchpanel .v3-pill.is-active,
.v3-searchpanel .v3-pill[aria-selected="true"] {
    background: linear-gradient(180deg, #C04A34 0%, #B54531 32%, var(--v3-red) 100%);
    color: #FFF6EE;
    box-shadow:
        0 5px 14px rgba(130, 41, 26, 0.34),
        0 1px 3px rgba(130, 41, 26, 0.24),
        inset 0 1px 0 rgba(255, 226, 205, 0.4),
        inset 0 -1px 0 rgba(90, 20, 10, 0.28);
}

.v3-searchpanel .v3-pill.is-active::before,
.v3-searchpanel .v3-pill.is-active + .v3-pill::before,
.v3-searchpanel .v3-pill[aria-selected="true"]::before,
.v3-searchpanel .v3-pill[aria-selected="true"] + .v3-pill::before {
    opacity: 0;
}

@media (max-width: 480px) {
    .v3-searchpanel .v3-pill {
        min-width: 0;
        padding: 8px 17px;
        font-size: 13.5px;
        letter-spacing: 0.1em;
        text-indent: 0.1em;
    }

    .v3-searchpanel .v3-pills {
        padding: 4px;
    }
}

.v3-elderlane {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 18px;
    max-width: 660px;
    margin: 20px auto 0;
    padding: 14px 18px 14px 72px;
    border: 1px solid var(--v3-gold-line);
    border-radius: calc(var(--v3-r-md) + 4px);
    background:
        radial-gradient(120% 180% at 88% 42%, rgba(217, 178, 92, 0.18) 0%, rgba(217, 178, 92, 0) 56%),
        radial-gradient(100% 140% at 0% 0%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 58%),
        linear-gradient(180deg, rgba(252, 246, 230, 0.94), rgba(246, 237, 216, 0.92));
    color: var(--v3-ink-2) !important;
    text-align: left;
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -1px 0 rgba(176, 141, 79, 0.08),
        0 4px 12px rgba(120, 90, 40, 0.08);
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--v3-mid) var(--v3-ease), box-shadow var(--v3-mid) ease, border-color var(--v3-mid) ease, background var(--v3-mid) ease;
}

.v3-elderlane::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0.08) 100%);
    pointer-events: none;
}

.v3-elderlane:hover {
    transform: translateY(-2px);
    border-color: rgba(176, 141, 79, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 10px 24px rgba(120, 90, 40, 0.14);
}

.v3-elderlane:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px #FFFDF6,
        0 0 0 4px rgba(196, 71, 50, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 10px 24px rgba(120, 90, 40, 0.14);
}

.v3-elderlane::before {
    content: "大";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%) rotate(-6deg);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid rgba(122, 34, 22, 0.22);
    background: linear-gradient(150deg, #B54531 0%, var(--v3-red-lo) 100%);
    color: #FFEFD9;
    font-family: var(--v3-serif);
    font-size: 17px;
    font-weight: 700;
    box-shadow:
        0 3px 8px rgba(130, 41, 26, 0.28),
        inset 0 1px 0 rgba(255, 226, 205, 0.36);
    transition: transform var(--v3-mid) var(--v3-ease), box-shadow var(--v3-mid) ease;
    z-index: 1;
}

.v3-elderlane:hover::before {
    transform: translateY(-50%) rotate(2deg) scale(1.06);
    box-shadow:
        0 6px 14px rgba(130, 41, 26, 0.34),
        inset 0 1px 0 rgba(255, 226, 205, 0.42);
}

.v3-elderlane > span {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.v3-elderlane b {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--v3-serif);
    font-size: 16px;
    letter-spacing: 0.28em;
    color: #6B4A1F;
}

.v3-elderlane b::after {
    content: "";
    width: 22px;
    height: 1px;
    background: linear-gradient(90deg, rgba(107, 74, 31, 0.55), rgba(107, 74, 31, 0));
}

.v3-elderlane > span > span {
    font-size: 12.5px;
    letter-spacing: 0.05em;
    color: var(--v3-ink-3);
}

.v3-elderlane em {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(176, 141, 79, 0.34);
    background: linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(247, 238, 219, 0.96));
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--v3-gold);
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 1px 3px rgba(120, 90, 40, 0.08);
    transition: transform var(--v3-fast) ease, background var(--v3-fast) ease, color var(--v3-fast) ease, border-color var(--v3-fast) ease;
}

.v3-elderlane em::after {
    content: "→";
    font-size: 12px;
    color: currentColor;
}

.v3-elderlane:hover em {
    transform: translateX(1px);
    border-color: rgba(166, 58, 40, 0.34);
    background: linear-gradient(180deg, #FFFDF6, #F8EDDB);
    color: var(--v3-red);
}

.v3-rescard {
    padding: 24px 26px 26px;
}

.v3-sechead {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 18px;
}

.v3-sechead h2 {
    margin: 0;
    font-family: var(--v3-serif);
    font-size: 19px;
    letter-spacing: 0.3em;
    color: var(--v3-ink);
}

.v3-sechead span {
    font-size: 12.5px;
    color: var(--v3-ink-4);
}

.v3-resgrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.v3-res {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    padding: 24px 10px 19px;
    border: 1px solid var(--v3-gold-line-soft);
    border-radius: var(--v3-r-md);
    background: linear-gradient(180deg, rgba(255, 254, 249, 0.94), rgba(250, 244, 230, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: transform var(--v3-mid) var(--v3-ease), box-shadow var(--v3-mid) ease, border-color var(--v3-fast) ease;
}

.v3-res::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(176, 141, 79, 0.16);
    border-radius: calc(var(--v3-r-md) - 5px);
    pointer-events: none;
    transition: border-color var(--v3-fast) ease;
}

.v3-res::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 52%;
    height: 2px;
    transform: translateX(-50%) scaleX(0);
    background: linear-gradient(90deg, rgba(166, 58, 40, 0), #A63A28 30%, #A63A28 70%, rgba(166, 58, 40, 0));
    transition: transform var(--v3-mid) var(--v3-ease);
}

.v3-res:hover {
    transform: translateY(-4px);
    border-color: rgba(176, 141, 79, 0.55);
    box-shadow: 0 16px 34px rgba(80, 55, 25, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.v3-res:hover::before {
    border-color: rgba(176, 141, 79, 0.32);
}

.v3-res:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.v3-res img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(90, 60, 30, 0.15));
    transition: transform var(--v3-mid) var(--v3-ease);
}

.v3-res:hover img {
    transform: translateY(-2px) scale(1.07);
}

.v3-res b {
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
    color: var(--v3-ink);
    transition: color var(--v3-fast) ease;
}

.v3-res:hover b {
    color: var(--v3-red);
}

.v3-kb__title {
    margin: 0 0 2px;
    font-family: var(--v3-serif);
    font-size: 17px;
    letter-spacing: 0.2em;
    color: var(--v3-ink);
}

.v3-kb__lead {
    margin: 0 0 14px;
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--v3-ink-4);
}

.v3-kb__hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid rgba(166, 58, 40, 0.25);
    border-radius: var(--v3-r-md);
    background: linear-gradient(180deg, rgba(255, 250, 240, 0.9), rgba(250, 240, 226, 0.9));
    transition: all var(--v3-fast) var(--v3-ease);
}

.v3-kb__hero:hover {
    transform: translateY(-2px);
    box-shadow: var(--v3-shadow-sm);
}

.v3-kb__hero img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.v3-kb__hero b {
    display: block;
    font-size: 14.5px;
    color: var(--v3-ink);
}

.v3-kb__hero span {
    font-size: 11.5px;
    color: var(--v3-ink-4);
}

.v3-kb__group {
    margin: 0 0 6px;
    font-size: 11.5px;
    letter-spacing: 0.24em;
    color: var(--v3-ink-4);
}

.v3-kb__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.v3-kb__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 4px 8px;
    border: 1px solid var(--v3-gold-line-soft);
    border-radius: var(--v3-r-sm);
    background: rgba(255, 253, 246, 0.55);
    color: var(--v3-ink-2) !important;
    font-size: 12.5px;
    transition: all var(--v3-fast) var(--v3-ease);
}

.v3-kb__item:hover {
    transform: translateY(-2px);
    border-color: var(--v3-gold-line);
    background: rgba(255, 252, 243, 0.95);
    box-shadow: var(--v3-shadow-sm);
}

.v3-kb__item img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.v3-elder-main {
    width: min(880px, calc(100% - 40px));
    margin-inline: auto;
    padding-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    font-size: 18px;
}

.v3-elder-panel {
    padding: 34px 38px;
}

.v3-elder-title {
    margin: 0 0 4px;
    font-family: var(--v3-serif);
    font-size: 30px;
    letter-spacing: 0.3em;
    text-align: center;
    color: var(--v3-ink);
}

.v3-elder-sub {
    margin: 0 0 24px;
    text-align: center;
    font-size: 15px;
    color: var(--v3-ink-3);
}

.v3-elder-panel .v3-pills {
    justify-content: center;
    margin-bottom: 20px;
}

.v3-elder-panel .v3-pill {
    padding: 13px 34px;
    font-size: 19px;
}

.v3-elder-panel .v3-input {
    min-height: 62px;
    font-size: 21px;
    padding: 12px 20px;
}

.v3-elder-panel .v3-btn {
    width: 100%;
    min-height: 62px;
    font-size: 21px;
    margin-top: 14px;
}

.v3-elder-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.v3-elder-grid .v3-res {
    padding: 22px 8px 18px;
}

.v3-elder-grid .v3-res img {
    width: 60px;
    height: 60px;
}

.v3-elder-grid .v3-res b {
    font-size: 17px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.results-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 14px;
    border: 1px solid var(--v3-gold-line);
    border-radius: 999px;
    background: rgba(255, 253, 246, 0.72);
    font-size: 12.5px;
    color: var(--v3-ink-3);
    white-space: nowrap;
}

.results-count strong {
    color: var(--v3-red);
    font-size: 14px;
}

.search-mode-toggle {
    min-height: 36px;
    padding: 0 16px;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-indent: 0;
}

.search-page-body {
    width: min(1360px, calc(100% - 40px));
    margin-inline: auto;
    padding-top: 22px;
    padding-bottom: 10px;
    display: grid;
    grid-template-columns: 308px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    box-sizing: border-box;
}

.search-sidebar {
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.search-results-pane,
.content-container,
.search-results-main {
    min-width: 0;
}

.content-container {
    display: flex;
    flex-direction: column;
}

.v3-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.search-card {
    position: relative;
    box-sizing: border-box;
    padding: 22px 20px;
    background: linear-gradient(180deg, rgba(255, 254, 249, 0.94), rgba(251, 246, 235, 0.94));
    border: 1px solid var(--v3-gold-line);
    border-radius: var(--v3-r-lg);
    box-shadow: var(--v3-shadow-sm);
}

.search-card__head {
    margin-bottom: 14px;
}

.search-card__title {
    margin: 0;
    font-family: var(--v3-serif);
    font-size: 18px;
    letter-spacing: 0.24em;
    color: var(--v3-ink);
}

.search-card .search-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.search-card .search-tab {
    padding: 7px 18px;
    border: 1px solid var(--v3-gold-line);
    border-radius: 999px;
    background: rgba(255, 253, 246, 0.66);
    color: var(--v3-ink-2);
    font-size: 13.5px;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all var(--v3-fast) var(--v3-ease);
}

.search-card .search-tab:hover {
    border-color: rgba(166, 58, 40, 0.4);
    color: var(--v3-red);
}

.search-card .search-tab.active {
    background: linear-gradient(180deg, #B54531 0%, var(--v3-red) 100%);
    border-color: var(--v3-red-lo);
    color: #FFF6EE;
    box-shadow: 0 3px 12px rgba(130, 41, 26, 0.26);
}

.search-query--primary {
    display: flex;
    gap: 10px;
}

.search-query__field {
    flex: 1;
    min-width: 0;
}

.search-query__input {
    width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid rgba(140, 116, 82, 0.34);
    border-radius: var(--v3-r-md);
    background: rgba(255, 254, 250, 0.92);
    font-size: 14.5px;
    color: var(--v3-ink);
    transition: border-color var(--v3-fast) ease, box-shadow var(--v3-fast) ease;
}

.search-query__input:focus {
    outline: none;
    border-color: var(--v3-red);
    box-shadow: 0 0 0 3px var(--v3-red-ring);
}

.search-query__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    min-width: 96px;
    padding: 0 20px;
    border: none;
    border-radius: var(--v3-r-md);
    background: linear-gradient(180deg, #B54531 0%, var(--v3-red) 52%, var(--v3-red-lo) 100%);
    color: #FFF7EF;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 226, 205, 0.32), 0 6px 16px rgba(130, 41, 26, 0.24);
    transition: filter var(--v3-fast) ease, transform var(--v3-fast) var(--v3-ease);
}

.search-query__submit:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.search-query__submit[aria-busy="true"] {
    opacity: 0.65;
    pointer-events: none;
}

.search-btn-icon {
    display: inline-flex;
    width: 17px;
    height: 17px;
}

.search-btn-icon svg {
    width: 100%;
    height: 100%;
}

.search-card__hint {
    margin: 10px 0 0;
    min-height: 18px;
    font-size: 12.5px;
    color: var(--v3-ink-4);
}

.search-card__hint.is-error {
    color: #B03A2A;
}

.search-query.is-invalid .search-query__input {
    border-color: #C04A35;
    box-shadow: 0 0 0 3px rgba(176, 58, 42, 0.18);
}

.filter-db-card {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--v3-gold-line);
}

.filter-db-card__label {
    display: block;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--v3-ink-3);
}

.search-card__fulltext-scope {
    margin: 12px 0 0;
    padding: 10px 12px;
    border: 1px dashed rgba(166, 58, 40, 0.3);
    border-radius: var(--v3-r-sm);
    background: rgba(166, 58, 40, 0.05);
    font-size: 12.5px;
    color: var(--v3-ink-2);
}

.database-filter-select--native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.cluster-nav {
    box-sizing: border-box;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 254, 249, 0.94), rgba(251, 246, 235, 0.94));
    border: 1px solid var(--v3-gold-line);
    border-radius: var(--v3-r-lg);
    box-shadow: var(--v3-shadow-sm);
}

.cluster-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.cluster-nav__title {
    position: relative;
    margin: 0;
    padding-left: 14px;
    font-family: var(--v3-serif);
    font-size: 16px;
    letter-spacing: 0.22em;
    color: var(--v3-ink);
}

.cluster-nav__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 16px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--v3-red-hi), var(--v3-red-lo));
}

.cluster-nav__clear {
    flex: none;
    padding: 4px 13px;
    border: 1px solid var(--v3-gold-line);
    border-radius: 999px;
    background: transparent;
    color: var(--v3-ink-3);
    font-size: 12px;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--v3-fast) ease;
}

.cluster-nav__clear:hover {
    color: var(--v3-red);
    border-color: rgba(166, 58, 40, 0.42);
    background: rgba(166, 58, 40, 0.05);
}

.cluster-nav__scroll {
    max-height: calc(100vh - 430px);
    min-height: 260px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(176, 141, 79, 0.45) transparent;
    padding-right: 4px;
}

.cluster-nav__scroll::-webkit-scrollbar {
    width: 6px;
}

.cluster-nav__scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(176, 141, 79, 0.4);
}

.cluster-nav__scroll::-webkit-scrollbar-track {
    background: transparent;
}

.cluster-nav__loading,
.cluster-nav__empty {
    margin: 10px 2px;
    font-size: 13px;
    color: var(--v3-ink-4);
}

.cluster-panel {
    border: 1px solid var(--v3-gold-line-soft);
    border-radius: var(--v3-r-md);
    background: linear-gradient(180deg, rgba(255, 253, 246, 0.92), rgba(252, 247, 236, 0.88));
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color var(--v3-fast) ease;
}

.cluster-panel:hover {
    border-color: var(--v3-gold-line);
}

.cluster-panel[open] {
    border-color: var(--v3-gold-line);
    background: linear-gradient(180deg, #FFFDF6, #FBF5E8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.cluster-panel__summary {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 11px 13px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    list-style: none;
    user-select: none;
}

.cluster-panel__summary::-webkit-details-marker {
    display: none;
}

.cluster-panel__summary::after {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    margin-left: 2px;
    border-right: 1.6px solid var(--v3-ink-4);
    border-bottom: 1.6px solid var(--v3-ink-4);
    transform: rotate(45deg);
    transition: transform var(--v3-mid) ease, border-color var(--v3-fast) ease;
}

.cluster-panel[open] > .cluster-panel__summary::after {
    transform: rotate(-135deg);
    border-color: var(--v3-red);
}

.cluster-panel__summary:hover {
    background: rgba(176, 141, 79, 0.08);
}

.cluster-panel__icon {
    flex: none;
    font-size: 14px;
    opacity: 0.85;
}

.cluster-panel__label {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--v3-ink-2);
}

.cluster-panel__meta {
    flex: none;
    font-size: 11.5px;
    letter-spacing: 0.02em;
    color: var(--v3-ink-4);
}

.cluster-panel__selected-badge {
    display: none;
    flex: none;
}

.cluster-panel__selected-badge.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    padding: 1px 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--v3-red-hi), var(--v3-red-lo));
    color: #FFF6EC;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 6px rgba(130, 41, 26, 0.28);
}

.cluster-panel__action-hint {
    margin: 0;
    padding: 0 13px 9px;
    font-size: 11.5px;
    letter-spacing: 0.03em;
    color: var(--v3-ink-4);
}

.cluster-panel__list {
    margin: 0;
    padding: 2px 8px 10px;
    list-style: none;
}

.cluster-panel__list li + li {
    margin-top: 2px;
}

.cluster-panel__list--scroll {
    max-height: min(300px, 38vh);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(176, 141, 79, 0.45) transparent;
    padding-right: 6px;
}

.cluster-panel__list--scroll::-webkit-scrollbar {
    width: 6px;
}

.cluster-panel__list--scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(176, 141, 79, 0.4);
}

.cluster-panel__list--scroll::-webkit-scrollbar-track {
    background: transparent;
}

#clusterPanelSource .cluster-nav-item__label {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.42;
}

.cluster-nav-item {
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin: 0;
    padding: 7px 9px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
    color: var(--v3-ink-2);
    transition: background var(--v3-fast) ease, color var(--v3-fast) ease;
}

.cluster-nav-item:hover {
    background: rgba(176, 141, 79, 0.1);
}

.cluster-nav-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #FFFDF6, 0 0 0 4px rgba(196, 71, 50, 0.35);
}

.cluster-nav-item.is-selected {
    background: rgba(166, 58, 40, 0.09);
    color: var(--v3-red);
}

.cluster-nav-item.is-selected:hover {
    background: rgba(166, 58, 40, 0.14);
}

.cluster-nav-item__box {
    position: relative;
    flex: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid rgba(138, 112, 56, 0.55);
    border-radius: 5px;
    background: #FFFDF6;
    box-shadow: inset 0 1px 2px rgba(90, 62, 30, 0.08);
    transition: all var(--v3-fast) ease;
}

.cluster-nav-item:hover .cluster-nav-item__box {
    border-color: var(--v3-gold);
}

.cluster-nav-item.is-selected .cluster-nav-item__box {
    border-color: var(--v3-red);
    background: linear-gradient(180deg, var(--v3-red-hi), var(--v3-red-lo));
    box-shadow: none;
}

.cluster-nav-item.is-selected .cluster-nav-item__box::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1.5px;
    width: 4px;
    height: 8px;
    border-right: 2px solid #FFF3E4;
    border-bottom: 2px solid #FFF3E4;
    transform: rotate(43deg);
}

.cluster-nav-item__label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cluster-nav-item__count {
    flex: none;
    margin-left: auto;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(176, 141, 79, 0.09);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11.5px;
    letter-spacing: 0.04em;
    line-height: 1.7;
    color: #8A7038;
}

.cluster-nav-item.is-selected .cluster-nav-item__count {
    background: rgba(166, 58, 40, 0.12);
    color: var(--v3-red);
}

@keyframes clusterLimitShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.cluster-nav-item--limit {
    animation: clusterLimitShake 0.3s ease;
    opacity: 0.6;
}

.cluster-filter-bar {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 14px;
    border: 1px dashed var(--v3-gold-line);
    border-radius: var(--v3-r-md);
    background: rgba(255, 252, 243, 0.85);
}

.cluster-filter-bar.is-active {
    display: flex;
}

.cluster-filter-bar[hidden],
.cluster-footer-actions[hidden],
.cluster-nav__clear[hidden] {
    display: none !important;
}

.cluster-nav__dock--has-pending.cluster-filter-bar {
    border-style: solid;
    border-color: rgba(166, 58, 40, 0.35);
    background: rgba(250, 240, 232, 0.68);
}

.cluster-filter-bar__summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: none;
    margin: 0;
    font-size: 12.5px;
    color: var(--v3-ink-3);
}

.cluster-filter-bar__summary strong {
    color: var(--v3-red);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
}

.cluster-nav__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.cluster-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 280px;
    padding: 3px 11px;
    border: 1px solid rgba(166, 58, 40, 0.32);
    border-radius: 999px;
    background: rgba(166, 58, 40, 0.06);
    font-size: 12px;
    color: var(--v3-red);
    cursor: pointer;
    transition: all var(--v3-fast) ease;
}

.cluster-chip:hover {
    border-color: rgba(166, 58, 40, 0.52);
    background: rgba(166, 58, 40, 0.12);
}

.cluster-chip__type {
    flex: none;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    color: #B06A50;
}

.cluster-chip__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.cluster-chip__x {
    flex: none;
    font-size: 13px;
    line-height: 1;
    opacity: 0.7;
}

.cluster-chip:hover .cluster-chip__x {
    opacity: 1;
}

.cluster-footer-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 4px;
}

.cluster-nav__apply {
    min-width: 158px;
    padding: 9px 24px;
    border: 1px solid rgba(122, 34, 22, 0.5);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--v3-red-hi), var(--v3-red-lo));
    color: #FFF6EC;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-indent: 0.08em;
    cursor: pointer;
    opacity: 0.55;
    box-shadow: inset 0 1px 0 rgba(255, 226, 205, 0.3);
    transition: all var(--v3-mid) ease;
}

.cluster-nav__apply.is-ready {
    opacity: 1;
    box-shadow: inset 0 1px 0 rgba(255, 226, 205, 0.32), 0 4px 14px rgba(130, 41, 26, 0.3);
}

.cluster-nav__apply.is-ready:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 226, 205, 0.36), 0 8px 20px rgba(130, 41, 26, 0.36);
}

.cluster-nav__apply:disabled,
.cluster-nav__apply[aria-disabled="true"] {
    cursor: not-allowed;
}

.cluster-footer-actions .cluster-nav__clear {
    padding: 9px 22px;
    font-size: 13px;
}

.cluster-nav__applybar {
    flex-direction: column;
    margin: 14px -18px -18px;
    padding: 14px 18px 16px;
    border-top: 1px solid var(--v3-gold-line-soft);
    background: linear-gradient(180deg, rgba(255, 253, 246, 0.92), rgba(249, 242, 228, 0.96));
    border-radius: 0 0 calc(var(--v3-r-lg) - 1px) calc(var(--v3-r-lg) - 1px);
}

.cluster-nav__applybar .cluster-nav__apply {
    width: 100%;
}

.cluster-nav__applybar .cluster-nav__clear {
    min-width: 132px;
}

.cluster-nav__dock-hint {
    margin: 0;
    font-size: 11.5px;
    letter-spacing: 0.04em;
    text-align: center;
    color: var(--v3-ink-4);
}

@media (max-width: 900px) {
    .cluster-nav {
        padding: 14px;
    }

    .cluster-panel__summary {
        padding: 10px 11px;
    }

    .cluster-nav-item {
        padding: 8px;
    }
}

.results-archive {
    min-width: 0;
}

.results-archive__head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 14px;
}

.results-archive__title {
    margin: 0;
    font-family: var(--v3-serif);
    font-size: 19px;
    letter-spacing: 0.28em;
    color: var(--v3-ink);
}

.results-table-container {
    position: relative;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(255, 254, 249, 0.96), rgba(252, 247, 236, 0.96));
    border: 1px solid var(--v3-gold-line);
    border-radius: var(--v3-r-lg);
    box-shadow: var(--v3-shadow-sm);
    overflow: hidden;
}

.results-table-header {
    border-bottom: 1px solid var(--v3-gold-line);
    background: rgba(240, 230, 208, 0.45);
}

.results-table-header table,
.results-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.col-title { width: 34%; }
.col-database { width: 10%; }
.col-source { width: 18%; }
.col-author { width: 19%; }
.col-publisher { width: 19%; }

.results-table-header th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--v3-ink-3);
    white-space: nowrap;
}

.results-table td {
    padding: 13px 16px;
    border-top: 1px solid var(--v3-gold-line-soft);
    font-size: 13.8px;
    vertical-align: top;
    overflow-wrap: break-word;
}

.results-table tbody tr {
    transition: background-color var(--v3-fast) ease;
}

.results-table tbody tr:hover {
    background: rgba(176, 141, 79, 0.07);
}

.results-table td.col-title a {
    color: var(--v3-red);
    font-weight: 600;
    text-underline-offset: 3px;
}

.results-table td.col-title a:hover {
    color: var(--v3-red-hi);
    text-decoration: underline;
}

.database-badge,
.source-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    white-space: nowrap;
}

.database-badge {
    border: 1px solid rgba(74, 115, 96, 0.35);
    background: rgba(74, 115, 96, 0.08);
    color: #33584A;
}

.source-badge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid var(--v3-gold-line);
    background: rgba(176, 141, 79, 0.08);
    color: #7A6233;
}

.source-empty,
.meta-empty {
    color: var(--v3-ink-4);
    font-size: 12px;
}

.meta-text {
    color: var(--v3-ink-2);
}

.no-results {
    padding: 70px 20px;
    text-align: center;
}

.no-results-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--v3-gold-line);
    border-radius: 50%;
    color: var(--v3-ink-4);
    margin-bottom: 14px;
}

.no-results-icon svg {
    width: 26px;
    height: 26px;
}

.no-results h3 {
    margin: 0 0 6px;
    font-size: 17px;
    color: var(--v3-ink);
    letter-spacing: 0.1em;
}

.no-results p {
    margin: 0;
    font-size: 13.5px;
    color: var(--v3-ink-3);
}

.no-results-tips {
    margin: 14px auto 0;
    padding: 0;
    max-width: 28em;
    list-style: none;
    text-align: left;
    font-size: 13px;
    line-height: 1.7;
    color: var(--v3-ink-3);
}

.no-results-tips li {
    position: relative;
    padding-left: 1em;
    margin: 0.2em 0;
}

.no-results-tips li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: var(--v3-gold, #a67c52);
}

.match-badge {
    flex: 0 0 auto;
    align-self: center;
    display: inline-block;
    padding: 1px 7px;
    border: 1px solid var(--v3-gold-line, #d4b896);
    border-radius: 2px;
    font-size: 11px;
    letter-spacing: 0.06em;
    line-height: 1.6;
    color: var(--v3-ink-3, #6b5a4a);
    background: rgba(255, 252, 245, 0.9);
    white-space: nowrap;
}

.match-badge--exact {
    color: var(--v3-red, #8b1a1a);
    border-color: rgba(139, 26, 26, 0.35);
    font-weight: 600;
}

.match-badge--prefix {
    color: var(--v3-ink-2, #4a3c2e);
}

.match-badge--author {
    color: var(--v3-ink-3, #6b5a4a);
}

.tooltip-dynamic {
    position: fixed;
    z-index: 2147483000;
    max-width: min(22rem, calc(100vw - 1.5rem));
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(168, 134, 110, 0.38);
    border-radius: 0.55rem;
    background:
        linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(246, 239, 228, 0.98));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.75) inset,
        0 10px 28px rgba(80, 52, 28, 0.12);
    font-size: 0.8125rem;
    line-height: 1.65;
    color: #3A271C;
    letter-spacing: 0.02em;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, visibility 160ms ease;
    word-break: break-word;
}

.tooltip-dynamic.is-visible {
    opacity: 1;
    visibility: visible;
}

.tooltip-dynamic--title {
    max-width: min(28rem, calc(100vw - 1.5rem));
    padding: 0.7rem 0.9rem;
    border-color: rgba(194, 53, 49, 0.22);
    font-family: var(--v3-serif, "Songti SC", "STSong", "Noto Serif SC", serif);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 0.04em;
    color: #5C3F2A;
}

.tooltip-dynamic--title::before {
    content: "";
    position: absolute;
    left: 1.1rem;
    width: 0.55rem;
    height: 0.55rem;
    background: linear-gradient(180deg, #FFFCF7, #F6EFE4);
    border: solid rgba(168, 134, 110, 0.38);
    transform: rotate(45deg);
}

.tooltip-dynamic--title.is-below::before {
    top: -0.3rem;
    border-width: 1px 0 0 1px;
}

.tooltip-dynamic--title.is-above::before {
    bottom: -0.3rem;
    border-width: 0 1px 1px 0;
}

.tooltip-arrow {
    display: none !important;
}

.search-footer {
    margin-top: 22px;
}

.footer-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--v3-gold-line);
    border-radius: var(--v3-r-lg);
    background: linear-gradient(180deg, rgba(255, 254, 249, 0.94), rgba(251, 246, 235, 0.94));
    box-shadow: var(--v3-shadow-sm);
}

.pagination-info {
    font-size: 13px;
    color: var(--v3-ink-3);
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-info strong {
    color: var(--v3-red);
}

.pagination-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 13px;
    border: 1px solid var(--v3-gold-line);
    border-radius: 999px;
    background: rgba(255, 253, 246, 0.72);
    color: var(--v3-ink-2) !important;
    font-size: 13.5px;
    cursor: pointer;
    transition: all var(--v3-fast) var(--v3-ease);
}

.pagination-btn:hover:not(.disabled) {
    color: var(--v3-red) !important;
    border-color: rgba(166, 58, 40, 0.4);
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: var(--v3-red);
    border-color: var(--v3-red-lo);
    color: #FFF6EE !important;
    box-shadow: 0 3px 10px rgba(130, 41, 26, 0.28);
}

.pagination-btn.disabled {
    opacity: 0.45;
    cursor: default;
}

.pagination-dots {
    color: var(--v3-ink-4);
    padding: 0 2px;
}

.pagination-jump {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 10px;
    font-size: 13px;
    color: var(--v3-ink-3);
}

.pagination-jump input {
    width: 64px;
    height: 36px;
    box-sizing: border-box;
    padding: 0 10px;
    border: 1px solid rgba(140, 116, 82, 0.34);
    border-radius: 8px;
    background: rgba(255, 254, 250, 0.9);
    font-size: 13.5px;
    text-align: center;
}

.pagination-jump input:focus {
    outline: none;
    border-color: var(--v3-red);
    box-shadow: 0 0 0 3px var(--v3-red-ring);
}

.jump-btn {
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--v3-gold-line);
    border-radius: 8px;
    background: rgba(255, 253, 246, 0.8);
    color: var(--v3-ink-2);
    font-size: 13px;
    cursor: pointer;
}

.jump-btn:hover {
    color: var(--v3-red);
    border-color: rgba(166, 58, 40, 0.4);
}

.cluster-footer-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
}

.cluster-footer-actions[hidden] {
    display: none;
}

.cluster-footer-actions__apply {
    min-height: 40px;
    padding: 0 26px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #B54531 0%, var(--v3-red) 100%);
    color: #FFF6EE;
    font-size: 14px;
    letter-spacing: 0.2em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(130, 41, 26, 0.26);
}

.cluster-footer-actions__apply[disabled] {
    opacity: 0.5;
    cursor: default;
}

.gzd-portal-elder-page .search-page-body {
    grid-template-columns: 340px minmax(0, 1fr);
    font-size: 17px;
}

.gzd-portal-elder-page .search-query__input,
.gzd-portal-elder-page .search-query__submit {
    min-height: 54px;
    font-size: 17px;
}

.gzd-portal-elder-page .search-card .search-tab {
    font-size: 16px;
    padding: 10px 20px;
}

.gzd-portal-elder-page .results-table td {
    font-size: 16px;
    padding: 15px 16px;
}

.gzd-portal-elder-page .pagination-btn {
    min-width: 44px;
    height: 44px;
    font-size: 15.5px;
}

.elder-search-fold {
    border: 1px solid var(--v3-gold-line);
    border-radius: var(--v3-r-md);
    background: rgba(255, 253, 246, 0.6);
    overflow: hidden;
}

.elder-search-fold__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: var(--v3-ink-2);
}

.elder-search-fold__summary::-webkit-details-marker {
    display: none;
}

.elder-search-fold__hint {
    font-size: 12px;
    font-weight: 400;
    color: var(--v3-ink-4);
}

.elder-search-fold__body {
    padding: 14px 16px 16px;
    border-top: 1px dashed var(--v3-gold-line);
}

.elder-sidebar-band {
    display: none;
}

.v3-advice-layout {
    width: min(1040px, calc(100% - 40px));
    margin-inline: auto;
    padding-top: 30px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.v3-advice-aside {
    padding: 26px 24px;
}

.v3-advice-aside h2 {
    margin: 0 0 12px;
    font-family: var(--v3-serif);
    font-size: 18px;
    letter-spacing: 0.22em;
    color: var(--v3-ink);
}

.v3-advice-aside ol {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13.5px;
    color: var(--v3-ink-2);
}

.v3-advice-aside .v3-advice-tip {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px dashed rgba(74, 115, 96, 0.4);
    border-radius: var(--v3-r-md);
    background: rgba(74, 115, 96, 0.06);
    font-size: 12.5px;
    color: #33584A;
}

.v3-advice-formcard {
    padding: 32px 34px;
}

.v3-advice-formcard h1 {
    margin: 0 0 4px;
    font-family: var(--v3-serif);
    font-size: 22px;
    letter-spacing: 0.24em;
    color: var(--v3-ink);
}

.v3-advice-formcard > p {
    margin: 0 0 24px;
    font-size: 13.5px;
    color: var(--v3-ink-3);
}

.v3-advice-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

.v3-advice-form .v3-field--wide {
    grid-column: 1 / -1;
}

.v3-advice-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.v3-help-main {
    width: min(860px, calc(100% - 40px));
    margin-inline: auto;
    padding-top: 30px;
}

.v3-help-card {
    padding: 40px 46px;
}

.v3-help-card > h1 {
    margin: 0 0 6px;
    font-family: var(--v3-serif);
    font-size: 24px;
    letter-spacing: 0.22em;
    color: var(--v3-ink);
}

.v3-help-lead {
    margin: 0 0 26px;
    font-size: 14px;
    color: var(--v3-ink-3);
}

.v3-help-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 1px dashed var(--v3-gold-line);
}

.v3-help-toc a {
    padding: 6px 16px;
    border: 1px solid var(--v3-gold-line);
    border-radius: 999px;
    background: rgba(255, 253, 246, 0.7);
    color: var(--v3-ink-2) !important;
    font-size: 13px;
    transition: all var(--v3-fast) var(--v3-ease);
}

.v3-help-toc a:hover {
    color: var(--v3-red) !important;
    border-color: rgba(166, 58, 40, 0.4);
    transform: translateY(-1px);
}

.v3-help-card section {
    margin-bottom: 30px;
    scroll-margin-top: 20px;
}

.v3-help-card section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 17px;
    color: var(--v3-red);
    letter-spacing: 0.14em;
}

.v3-help-card section h2::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--v3-red-hi), var(--v3-red-lo));
}

.v3-help-card section ul {
    margin: 0;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14.5px;
    color: var(--v3-ink-2);
}

.v3-help-card section li::marker {
    color: var(--v3-gold);
}

.v3-help-more {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px dashed var(--v3-gold-line);
    font-size: 13.5px;
    color: var(--v3-ink-3);
}

.v3-video-main {
    width: min(920px, calc(100% - 40px));
    margin-inline: auto;
    padding-top: 30px;
}

.v3-video-card {
    padding: 30px 32px;
}

.v3-video-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.v3-video-head h2 {
    margin: 0;
    font-family: var(--v3-serif);
    font-size: 20px;
    letter-spacing: 0.24em;
    color: var(--v3-ink);
}

.v3-video-head p {
    margin: 0;
    font-size: 13px;
    color: var(--v3-ink-3);
}

.v3-video-stage {
    border-radius: var(--v3-r-md);
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(30, 24, 16, 0.22);
    background: #17130D;
}

.v3-video-stage video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.v3-video-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.v3-video-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 22px;
}

.v3-video-step {
    padding: 14px 16px;
    border: 1px solid var(--v3-gold-line-soft);
    border-radius: var(--v3-r-md);
    background: rgba(255, 253, 246, 0.6);
    font-size: 13px;
    color: var(--v3-ink-2);
}

.v3-video-step b {
    display: block;
    margin-bottom: 4px;
    font-size: 13.5px;
    color: var(--v3-ink);
    letter-spacing: 0.08em;
}

.v3-about-main {
    width: min(1080px, calc(100% - 40px));
    margin-inline: auto;
    padding-top: 4px;
}

.v3-about-card {
    padding: 32px clamp(20px, 4vw, 46px) 30px;
}

.v3-pager__stage {
    position: relative;
}

.v3-slide {
    display: none;
}

.v3-slide.is-active {
    display: block;
    animation: v3SlideIn 420ms var(--v3-ease);
}

@keyframes v3SlideIn {
    from { opacity: 0; transform: translateX(26px); }
    to   { opacity: 1; transform: translateX(0); }
}

.v3-pager__figs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}

.v3-pager__figs--one {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    margin-inline: auto;
}

.v3-pager__figs img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--v3-gold-line);
    border-radius: var(--v3-r-md);
    background: #FFFDF6;
    box-shadow: var(--v3-shadow-md);
}

.v3-pager__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px dashed var(--v3-gold-line);
}

.v3-pager__btn {
    min-width: 108px;
}

.v3-pager__dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v3-pager__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid rgba(176, 141, 79, 0.65);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: all var(--v3-mid) var(--v3-ease);
}

.v3-pager__dot:hover {
    border-color: var(--v3-red);
    transform: scale(1.25);
}

.v3-pager__dot.is-active {
    width: 26px;
    border-radius: 999px;
    background: linear-gradient(90deg, #B54531, var(--v3-red));
    border-color: transparent;
}

.v3-pager__count {
    margin: 14px 0 0;
    text-align: center;
    font-size: 12.5px;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    color: var(--v3-ink-4);
}

@media (max-width: 760px) {
    .v3-pager__figs {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .v3-pager__nav {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 980px) {

    .v3-home-body {
        padding: 20px var(--v3-gutter, 20px) 10px;
    }
    .v3-home-col {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .search-page-body {
        grid-template-columns: minmax(0, 1fr);
    }
    .search-sidebar {
        position: static;
        order: -1;
    }
    .cluster-nav__scroll {
        max-height: none;
    }
    .v3-advice-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .v3-advice-aside {
        order: 2;
    }
}

@media (min-width: 769px) {
    body.v3-login .v3-topbar__row {
        grid-template-columns: 1fr auto 1fr;
    }

    body.v3-login .v3-topbar__side--end {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .v3-topbar__row {
        grid-template-columns: 1fr auto;
    }
    .v3-topbar__side--start {
        display: none;
    }
    .v3-brand img,
    .v3-hero-brand img {
        height: 44px;
    }
    .v3-slogan {
        font-size: 15px;
        letter-spacing: 0.3em;
    }
    .v3-container,
    .search-page-body,
    .v3-advice-layout,
    .v3-help-main,
    .v3-video-main,
    .v3-elder-main {
        width: calc(100% - 28px);
    }
    .v3-resgrid,
    .v3-elder-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .v3-kb__list {
        grid-template-columns: repeat(3, 1fr);
    }
    .v3-searchpanel {
        padding: 22px 18px;
    }
    .v3-searchline {
        flex-direction: column;
    }
    .v3-searchline .v3-btn {
        width: 100%;
    }
    .v3-advice-form {
        grid-template-columns: 1fr;
    }
    .v3-help-card,
    .v3-advice-formcard,
    .v3-video-card,
    .v3-elder-panel,
    .v3-login-card {
        padding: 26px 20px;
    }
    .v3-video-steps {
        grid-template-columns: 1fr;
    }
    .col-publisher {
        display: none;
    }
    .results-table-header .col-publisher {
        display: none;
    }
    .v3-totop {
        right: 16px;
        bottom: 18px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

.v3-login-main {
    position: relative;
    padding-top: 34px;
}

.v3-login-stage {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
}

.v3-login-stage::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(560px, 86vw);
    height: min(560px, 86vw);
    transform: translate(-50%, -52%);
    background: url("/images/gzd/gzd-seal-watermark.svg") center / contain no-repeat;
    opacity: 0.5;
    pointer-events: none;
    animation: v3SealDrift 26s ease-in-out infinite alternate;
}

@keyframes v3SealDrift {
    from { transform: translate(-50%, -52%) rotate(0deg) scale(1); }
    to   { transform: translate(-50%, -54%) rotate(6deg) scale(1.05); }
}

.v3-login-card {
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.v3-login-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 2px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, transparent, var(--v3-gold), transparent);
}

.v3-hero-slogan {
    position: relative;
    z-index: 2;
    margin: 0 0 36px;
    text-align: center;
    font-family: var(--v3-serif);
    font-size: clamp(16px, 1.9vw, 20px);
    font-weight: 500;
    letter-spacing: 0.58em;
    text-indent: 0.58em;
    line-height: 1.9;
    color: #5D4C39;
}

.v3-hero-slogan i {
    display: inline-block;
    vertical-align: middle;
    width: clamp(28px, 3.4vw, 42px);
    height: 7px;
    margin: 0 clamp(13px, 1.5vw, 19px);
    background:
        radial-gradient(circle 1.8px at 50% 50%, rgba(176, 141, 79, 0.9) 99%, rgba(201, 169, 90, 0)),
        linear-gradient(90deg, rgba(176, 141, 79, 0), rgba(176, 141, 79, 0.5) 26%, rgba(176, 141, 79, 0.5) 74%, rgba(176, 141, 79, 0));
    background-repeat: no-repeat;
    background-size: 100% 100%, 100% 1px;
    background-position: center center, center center;
}

.v3-inputwrap,
.v3-pwd-wrap {
    position: relative;
}

.v3-inputwrap .v3-input,
.v3-pwd-wrap .v3-input {
    width: 100%;
}

.v3-inputwrap > svg,
.v3-pwd-wrap > svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: var(--v3-ink-4);
    pointer-events: none;
    transition: color var(--v3-fast) ease;
}

.v3-inputwrap:focus-within > svg,
.v3-pwd-wrap:focus-within > svg {
    color: var(--v3-red);
}

.v3-inputwrap .v3-input {
    padding-left: 44px;
}

.v3-pwd-wrap .v3-input {
    padding-left: 44px;
}

.btn-login,
.v3-btn--primary {
    position: relative;
    overflow: hidden;
}

.btn-login::before,
.v3-btn--primary::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -70%;
    width: 46%;
    background: linear-gradient(105deg, transparent, rgba(255, 240, 220, 0.35), transparent);
    transform: skewX(-18deg);
    transition: left 520ms var(--v3-ease);
    pointer-events: none;
}

.btn-login:hover::before,
.v3-btn--primary:hover::before {
    left: 128%;
}

.v3-sechead {
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--v3-gold-line-soft);
    margin-bottom: 16px;
}

.v3-sechead h2 {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 21px;
}

.v3-sechead h2::before {
    content: "";
    width: 5px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--v3-red-hi), var(--v3-red-lo));
}

.v3-sechead .en {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--v3-ink-4);
}

.v3-sechead .more {
    margin-left: auto;
    font-size: 12.5px;
    letter-spacing: 0.12em;
    color: var(--v3-ink-3);
    transition: color var(--v3-fast) ease;
}

.v3-sechead .more:hover {
    color: var(--v3-red);
}

.v3-kb__title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 14px;
    margin-right: 9px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--v3-red-hi), var(--v3-red-lo));
    vertical-align: -1px;
}

.results-table-container {
    box-shadow: var(--v3-shadow-md);
}

.results-table-header th {
    font-family: var(--v3-serif);
    letter-spacing: 0.2em;
    border-bottom: 1px solid var(--v3-gold-line);
    background:
        linear-gradient(180deg, rgba(255, 252, 243, 0.6), rgba(238, 228, 205, 0.35));
}

.results-table td {
    padding: 15px 16px;
}

.results-table td:first-child {
    position: relative;
}

.results-table td.col-title a {
    font-family: var(--v3-serif);
    font-size: 15px;
    line-height: 1.65;
    letter-spacing: 0.02em;
}

.results-table tbody tr {
    box-shadow: inset 3px 0 0 transparent;
    transition: background-color var(--v3-fast) ease, box-shadow var(--v3-mid) var(--v3-ease);
}

.results-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(166, 58, 40, 0.045), rgba(176, 141, 79, 0.06));
    box-shadow: inset 3px 0 0 var(--v3-red);
}

.database-badge,
.source-badge {
    backdrop-filter: saturate(1.1);
}

.pagination-btn.active {
    background: linear-gradient(180deg, #B54531 0%, var(--v3-red) 100%);
    box-shadow: 0 4px 12px rgba(130, 41, 26, 0.32), inset 0 1px 0 rgba(255, 226, 205, 0.3);
}

.results-archive__head {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--v3-gold-line-soft);
    margin-bottom: 16px;
}

.results-archive__title::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 17px;
    margin-right: 10px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--v3-red-hi), var(--v3-red-lo));
    vertical-align: -2px;
}

.v3-pagehero {
    text-align: center;
    padding: 26px 0 8px;
}

.v3-pagehero .eyebrow {
    margin: 0 0 8px;
    font-family: Georgia, serif;
    font-size: 11px;
    letter-spacing: 0.4em;
    text-indent: 0.4em;
    text-transform: uppercase;
    color: var(--v3-gold);
}

.v3-pagehero h1 {
    margin: 0;
    font-family: var(--v3-serif);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    letter-spacing: 0.34em;
    text-indent: 0.34em;
    color: var(--v3-ink);
}

.v3-pagehero .sub {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 12px 0 0;
    font-size: 13px;
    letter-spacing: 0.2em;
    color: var(--v3-ink-4);
}

.v3-pagehero .sub i {
    width: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--v3-gold), transparent);
}

.v3-advice-formcard::after,
.v3-help-card::after,
.v3-video-card::after,
.v3-about-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 2px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, transparent, var(--v3-gold), transparent);
}

.v3-help-card {
    counter-reset: helpsec;
}

.v3-help-card section h2::before {
    counter-increment: helpsec;
    content: "0" counter(helpsec);
    width: auto;
    height: auto;
    margin-right: 10px;
    background: none;
    border-radius: 0;
    font-family: Georgia, serif;
    font-size: 13px;
    letter-spacing: 0.18em;
    color: var(--v3-gold);
}

.v3-video-stage {
    position: relative;
}

.v3-video-stage::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    box-shadow: 0 0 0 1px rgba(176, 141, 79, 0.35), 0 0 44px rgba(166, 58, 40, 0.14);
    pointer-events: none;
}

.v3-video-step b::before {
    content: attr(data-no);
    margin-right: 8px;
    font-family: Georgia, serif;
    color: var(--v3-gold);
}

.v3-advice-formcard .v3-input:focus,
.v3-advice-formcard .v3-textarea:focus {
    border-color: var(--v3-red);
    box-shadow: 0 0 0 4px rgba(166, 58, 40, 0.14);
}

.v3-orn {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    --oc: rgba(176, 141, 79, 0.60);
    background-image:
        linear-gradient(var(--oc), var(--oc)), linear-gradient(var(--oc), var(--oc)),
        linear-gradient(var(--oc), var(--oc)), linear-gradient(var(--oc), var(--oc)),
        linear-gradient(var(--oc), var(--oc)), linear-gradient(var(--oc), var(--oc)),
        linear-gradient(var(--oc), var(--oc)), linear-gradient(var(--oc), var(--oc));
    background-repeat: no-repeat;
    background-size:
        20px 2px, 2px 20px,
        20px 2px, 2px 20px,
        20px 2px, 2px 20px,
        20px 2px, 2px 20px;
    background-position:
        left top, left top,
        right top, right top,
        right bottom, right bottom,
        left bottom, left bottom;
}

.results-table-container::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 20px;
    height: 20px;
    border-top: 2px solid rgba(176, 141, 79, 0.55);
    border-left: 2px solid rgba(176, 141, 79, 0.55);
    border-top-left-radius: var(--v3-r-lg);
    pointer-events: none;
    z-index: 3;
}

.results-table-container::after {
    content: "";
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid rgba(176, 141, 79, 0.55);
    border-right: 2px solid rgba(176, 141, 79, 0.55);
    border-bottom-right-radius: var(--v3-r-lg);
    pointer-events: none;
    z-index: 3;
}

.v3-goldtext {
    background: linear-gradient(165deg, #D2B26A 0%, #B08D4F 34%, #8A6E2E 58%, #C9A95A 88%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.v3-pagehero .eyebrow {
    letter-spacing: 0.46em;
}

@media (min-width: 981px) {
    .v3-kb {
        position: absolute;
        top: 24px;
        right: max(20px, calc((100% - 1560px) / 2));
        width: clamp(260px, 21vw, 310px);
        box-sizing: border-box;
        padding: 22px 16px 20px;
    }

    .v3-kb__hero {
        max-width: none;
    }

    .v3-kb__group {
        margin-top: 4px;
    }

    .v3-kb__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v3-kb__title {
        font-size: 18px;
    }

    .v3-kb__hero {
        margin-bottom: 16px;
    }

    .v3-kb__item {
        min-height: 70px;
        box-sizing: border-box;
    }

    .v3-kb__item img {
        width: 29px;
        height: 29px;
    }
}

@media (max-width: 980px) {
    .v3-home-body {
        display: flex;
        flex-direction: column;
        gap: var(--v3-space-5, 24px);
        padding: 20px var(--v3-gutter, 20px) 10px;
    }

    .v3-home-col {
        width: 100%;
        order: 1;
    }

    .v3-kb {
        position: static !important;
        top: auto;
        right: auto;
        width: 100%;
        max-width: none;
        margin: 0;
        order: 2;
        padding: 20px 16px 18px;
        box-sizing: border-box;
        z-index: auto;
    }

    .v3-kb__list {
        grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    }
}
.v3-elderlane {
    position: relative;
    padding-left: 64px;
}

.v3-elderlane::before {
    content: "大";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%) rotate(-6deg);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: linear-gradient(150deg, #B54531, var(--v3-red-lo));
    color: #FFEFD9;
    font-family: var(--v3-serif);
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(130, 41, 26, 0.3);
    transition: transform var(--v3-mid) var(--v3-ease);
}

.v3-elderlane:hover::before {
    transform: translateY(-50%) rotate(2deg) scale(1.06);
}

.v3-elderlane em::before {
    display: none;
}

@media (max-width: 560px) {
    .v3-elderlane {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 13px 14px 13px 60px;
    }

    .v3-elderlane::before {
        left: 14px;
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .v3-elderlane b {
        font-size: 15px;
        letter-spacing: 0.2em;
    }

    .v3-elderlane > span > span {
        font-size: 11.8px;
    }

    .v3-elderlane em {
        padding: 6px 10px;
        font-size: 12.2px;
    }
}

.v3-kb::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 2px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, transparent, var(--v3-gold), transparent);
}

.v3-kb__item:hover img {
    transform: translateX(2px) scale(1.08);
}

.v3-kb__item img {
    transition: transform var(--v3-mid) var(--v3-ease);
}

.v3-kb__hero:hover img {
    transform: scale(1.06);
}

.v3-kb__hero img {
    transition: transform var(--v3-mid) var(--v3-ease);
}

.v3-footer__inner::before {
    content: "";
    display: block;
    width: min(360px, 68%);
    height: 5px;
    margin: 0 auto 4px;
    background:
        radial-gradient(circle at center, var(--v3-gold) 0 2.4px, rgba(176, 141, 79, 0) 3px),
        linear-gradient(90deg, rgba(176, 141, 79, 0) 0%, var(--v3-gold-line-strong) 28%, var(--v3-gold-line-strong) 72%, rgba(176, 141, 79, 0) 100%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%, 100% 1px;
}

.v3-qr-panel {
    transform-origin: bottom center;
}

.v3-qr-panel:not(.is-open) {
    transform: translateX(-50%) translateY(6px) scale(0.96);
}

.v3-qr-panel::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -7px;
    border: 7px solid transparent;
    border-top-color: rgba(252, 246, 234, 0.98);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(140, 110, 60, 0.42) transparent;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(140, 110, 60, 0.38);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(140, 110, 60, 0.55);
    border: 2px solid transparent;
    background-clip: content-box;
}

.v3-pill:active,
.v3-btn:active,
.pagination-btn:active {
    transform: scale(0.97);
}

.v3-help-toc {
    counter-reset: tocidx;
}

.v3-help-toc a::before {
    counter-increment: tocidx;
    content: counter(tocidx, decimal-leading-zero);
    margin-right: 7px;
    font-family: Georgia, serif;
    font-size: 11px;
    color: var(--v3-gold);
}

.v3-help-card section h2 {
    padding-bottom: 9px;
    border-bottom: 1px dashed var(--v3-gold-line);
}

.v3-video-step {
    position: relative;
    padding-left: 20px;
}

.v3-video-step::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--v3-gold-hi, #D0AE68), rgba(176, 141, 79, 0.25));
}

.search-card__head {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--v3-gold-line-soft);
    margin-bottom: 14px;
}

.cluster-nav__title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 13px;
    margin-right: 8px;
    border-radius: 2px;
    background: linear-gradient(180deg, #BE4B34, #82291A);
    vertical-align: -1px;
}

@media (max-width: 768px) {
    .v3-input,
    .v3-textarea,
    .search-query__input,
    .pagination-jump input {
        font-size: 16px;
    }

    .v3-resgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .v3-res {
        padding: 18px 8px 15px;
    }

    .v3-res img {
        width: 38px;
        height: 38px;
    }

    .v3-res b {
        font-size: 13.5px;
    }

}

@media print {
    body::after,
    .v3-dust,
    .v3-totop,
    .v3-footer__qr {
        display: none !important;
    }
}

.portal-account,
.portal-dev-ip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 260px;
    padding: 4px 12px;
    border: 1px solid var(--v3-gold-line);
    border-radius: 999px;
    background: rgba(255, 253, 246, 0.72);
    font-size: 12.5px;
    color: var(--v3-ink-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-account__lab,
.portal-dev-ip__lab {
    flex-shrink: 0;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(176, 141, 79, 0.14);
    color: #7A6233;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.portal-account__who,
.portal-dev-ip__value {
    color: var(--v3-ink-2);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.field-error {
    display: none;
    min-height: 0;
    margin: -4px 0 0;
    font-size: 12.5px;
    color: #B03A2A;
}

.field-error.is-visible {
    display: block;
}

.v3-input.is-invalid {
    border-color: #C04A35;
    box-shadow: 0 0 0 3px rgba(176, 58, 42, 0.16);
}

.login-pwd-toggle .login-pwd-toggle__hide {
    display: none;
}

.login-pwd-toggle.is-on .login-pwd-toggle__show {
    display: none;
}

.login-pwd-toggle.is-on .login-pwd-toggle__hide {
    display: block;
}

.btn-login.is-loading {
    opacity: 0.75;
    pointer-events: none;
}

.v3-qr-panel[hidden] {
    display: none;
}

.v3-searchpanel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, transparent, var(--v3-gold), transparent);
}

.results-archive__heading {
    margin: 0;
    font-size: 13px;
    color: var(--v3-ink-4);
}

.search-footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.no-results-icon svg {
    width: 26px;
    height: 26px;
}

.cluster-nav--multi .cluster-panel:last-child {
    margin-bottom: 0;
}

.v3-hits {
    list-style: none;
    margin: 0;
    padding: 16px;
}

.v3-hit {
    position: relative;
    display: flex;
    gap: 18px;
    padding: 17px 22px 16px 20px;
    background:
        radial-gradient(150% 190% at 100% 0%, rgba(217, 178, 92, 0.06) 0%, rgba(217, 178, 92, 0) 48%),
        linear-gradient(180deg, #FFFDF6, #FBF4E6);
    border: 1px solid var(--v3-gold-line-soft);
    border-radius: var(--v3-r-md);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 2px 8px rgba(90, 62, 30, 0.05);
    transition: transform var(--v3-mid) var(--v3-ease), box-shadow var(--v3-mid) ease, border-color var(--v3-fast) ease;
}

.v3-hit + .v3-hit {
    margin-top: 12px;
}

.v3-hit::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--v3-red-hi), var(--v3-red-lo));
    opacity: 0;
    transition: opacity var(--v3-mid) var(--v3-ease);
}

.v3-hit:hover {
    transform: translateX(3px);
    border-color: rgba(176, 141, 79, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 26px rgba(90, 62, 30, 0.11);
}

.v3-hit:hover::before {
    opacity: 1;
}

.v3-hit__no {
    flex: none;
    width: 34px;
    padding-top: 3px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    letter-spacing: 0.04em;
    line-height: 1.35;
    text-align: right;
    color: rgba(176, 141, 79, 0.42);
    transition: color var(--v3-fast) ease;
    user-select: none;
}

.v3-hit:hover .v3-hit__no {
    color: rgba(166, 58, 40, 0.55);
}

.v3-hit__body {
    flex: 1;
    min-width: 0;
}

.v3-hit__top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.v3-hit__title {
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--v3-serif);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.72;
    letter-spacing: 0.02em;
    color: var(--v3-red);
    word-break: break-word;
}

.v3-hit__title font[color="red"] {
    color: var(--v3-red-hi);
    font-weight: 700;
}

.v3-hit__title:hover {
    color: var(--v3-red-hi);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.v3-hit__db {
    flex: none;
    margin-top: 2px;
}

.v3-hits .database-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-indent: 0.14em;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.v3-hits .db--laokan {
    border: 1px solid rgba(74, 115, 96, 0.38);
    background: linear-gradient(180deg, rgba(240, 246, 240, 0.95), rgba(226, 236, 228, 0.85));
    color: #2F5546;
}

.v3-hits .db--guji {
    border: 1px solid rgba(138, 112, 56, 0.4);
    background: linear-gradient(180deg, rgba(249, 240, 220, 0.95), rgba(238, 224, 194, 0.85));
    color: #7A5C22;
}

.v3-hits .db--baozhi {
    border: 1px solid rgba(84, 104, 130, 0.38);
    background: linear-gradient(180deg, rgba(238, 243, 248, 0.95), rgba(222, 231, 240, 0.85));
    color: #3D5266;
}

.v3-hits .db--minguo {
    border: 1px solid rgba(122, 74, 110, 0.36);
    background: linear-gradient(180deg, rgba(246, 238, 245, 0.95), rgba(235, 222, 233, 0.85));
    color: #6B3A5E;
}

.v3-hits .db--dangshi {
    border: 1px solid rgba(166, 58, 40, 0.34);
    background: linear-gradient(180deg, rgba(250, 236, 230, 0.95), rgba(242, 220, 211, 0.85));
    color: #8A2B1D;
}

.v3-hits .db--difangzhi {
    border: 1px solid rgba(106, 118, 62, 0.38);
    background: linear-gradient(180deg, rgba(243, 246, 230, 0.95), rgba(230, 236, 209, 0.85));
    color: #56601F;
}

.v3-hit__meta {
    display: flex;
    flex-wrap: wrap;
    column-gap: 28px;
    row-gap: 6px;
    margin: 8px 0 0;
}

.v3-hit__field {
    display: inline-flex;
    align-items: baseline;
    min-width: 0;
    max-width: 100%;
    font-size: 12.8px;
    line-height: 1.85;
    color: var(--v3-ink-2);
    word-break: break-all;
}

.v3-hit__field i {
    flex: none;
    font-style: normal;
    margin-right: 7px;
    padding: 1px 7px;
    border-radius: 4px;
    background: rgba(176, 141, 79, 0.1);
    color: #86702F;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
}

.v3-hit__field em {
    font-style: normal;
    min-width: 0;
}

@media (max-width: 900px) {
    .v3-hits {
        padding: 10px;
    }

    .v3-hit {
        gap: 12px;
        padding: 14px 16px 13px 14px;
    }

    .v3-hit__no {
        width: 24px;
        font-size: 14px;
        padding-top: 4px;
    }

    .v3-hit__top {
        flex-wrap: wrap;
    }

    .v3-hit__meta {
        flex-direction: column;
        column-gap: 0;
    }
}

.v3-footer {
    padding-bottom: max(0.75rem, var(--v3-safe-bottom));
}

.v3-totop {
    bottom: calc(30px + var(--v3-safe-bottom));
    right: calc(26px + var(--v3-safe-right));
}

.v3-pill,
.filter-chip,
.database-filter__item,
.cluster-nav__item,
.pagination-btn,
.search-tab,
.field-tab {
    min-height: var(--v3-tap);
}

.pagination-btn,
.v3-pager__nav a,
.v3-pager__nav button {
    min-width: var(--v3-tap);
    min-height: var(--v3-tap);
}

.search-input,
.search-query__input,
.v3-input,
.v3-searchline input[type="text"],
.v3-login-form input[type="text"],
.v3-login-form input[type="password"],
.v3-advice-form input,
.v3-advice-form textarea {
    min-height: var(--v3-tap);
    font-size: max(16px, 1em);
}

@media (max-width: 1024px) {
    .search-page-body {
        gap: var(--v3-space-5);
    }

    .search-sidebar {
        border-radius: var(--v3-r-md);
    }

    .search-sidebar .cluster-nav {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .v3-topbar {
        padding-top: calc(10px + var(--v3-safe-top));
        background: rgba(251, 247, 238, 0.96);
    }

    .v3-chip {
        max-width: 42vw;
        min-height: 36px;
    }

    .v3-footer {
        margin-top: var(--v3-space-6);
        padding: 22px var(--v3-gutter) calc(22px + var(--v3-safe-bottom));
    }

    .v3-footer__links {
        gap: 8px;
        width: 100%;
    }

    .v3-footer__links a {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
    }

    .v3-qr-panel {
        position: fixed;
        left: var(--v3-gutter);
        right: var(--v3-gutter);
        bottom: calc(72px + var(--v3-safe-bottom));
        width: auto;
        max-width: none;
        transform: translateY(8px);
        justify-content: center;
        flex-wrap: wrap;
    }

    .v3-qr-panel.is-open {
        transform: translateY(0);
    }

    .search-page-body {
        display: flex;
        flex-direction: column;
        gap: var(--v3-space-4);
    }

    .search-sidebar {
        order: 0;
        margin-top: 0;
    }

    .search-results-pane {
        order: 1;
        min-width: 0;
    }

    .search-sidebar .cluster-nav {
        border: 1px solid var(--v3-gold-line);
        border-radius: var(--v3-r-md);
        background: rgba(255, 253, 246, 0.88);
        overflow: hidden;
    }

    .search-sidebar .cluster-nav__head {
        min-height: var(--v3-tap);
        padding-inline: var(--v3-space-4);
    }

    .search-sidebar .cluster-nav__scroll {
        max-height: min(38vh, 280px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--v3-space-3);
    }

    details.v3-mobile-drawer {
        border: 1px solid var(--v3-gold-line);
        border-radius: var(--v3-r-md);
        background: rgba(255, 253, 246, 0.88);
        margin-bottom: var(--v3-space-3);
    }

    details.v3-mobile-drawer > summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: var(--v3-tap);
        padding: 0 var(--v3-space-4);
        font-weight: 600;
        color: var(--v3-ink);
        letter-spacing: 0.08em;
    }

    details.v3-mobile-drawer > summary::-webkit-details-marker {
        display: none;
    }

    details.v3-mobile-drawer > summary::after {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--v3-ink-3);
        border-bottom: 2px solid var(--v3-ink-3);
        transform: rotate(45deg);
        transition: transform var(--v3-fast) var(--v3-ease);
    }

    details.v3-mobile-drawer[open] > summary::after {
        transform: rotate(-135deg);
    }

    .v3-hero-brand {
        padding: var(--v3-space-4) 0 var(--v3-space-2);
    }

    .v3-home-body {
        padding: var(--v3-space-4) var(--v3-gutter) var(--v3-space-3);
    }

    .v3-login-main {
        padding-top: var(--v3-space-5);
        padding-bottom: var(--v3-space-6);
    }

    .v3-login-card {
        width: min(100%, 440px);
        margin-inline: auto;
    }

    .no-results-tips {
        padding-inline: var(--v3-gutter);
    }

    .v3-container,
    .search-page-body,
    .v3-advice-layout,
    .v3-help-main,
    .v3-video-main,
    .v3-elder-main {
        width: calc(100% - 2 * var(--v3-gutter));
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .v3-resgrid,
    .v3-elder-grid {
        gap: var(--v3-space-3);
    }

    .v3-hit {
        padding: 12px 12px 12px 10px;
    }

    .v3-totop {
        width: 44px;
        height: 44px;
        right: calc(14px + var(--v3-safe-right));
        bottom: calc(16px + var(--v3-safe-bottom));
    }

    .col-source,
    .results-table-header .col-source {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v3-topbar,
    .v3-brand img {
        transition: none !important;
    }

    .v3-topbar {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

body.v3-sat .v3-sat-main,
body.v3-error .v3-error-main {
    width: min(var(--v3-content), calc(100% - 2 * var(--v3-gutter)));
    margin: var(--v3-space-6) auto var(--v3-space-7);
}

.v3-error-card {
    position: relative;
    padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 40px);
    text-align: center;
}

.v3-error-card h1 {
    margin: 0 0 var(--v3-space-3);
    font-family: var(--v3-serif);
    font-size: var(--v3-fs-display);
    color: var(--v3-ink);
    letter-spacing: 0.12em;
}

.v3-error-card .error-code {
    margin: 0 0 var(--v3-space-2);
    font-family: var(--v3-serif);
    font-size: clamp(48px, 12vw, 72px);
    line-height: 1;
    color: var(--v3-red);
    letter-spacing: 0.08em;
    opacity: 0.9;
}

.v3-error-card p {
    margin: 0 auto var(--v3-space-4);
    max-width: 36em;
    color: var(--v3-ink-3);
}

.v3-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--v3-space-3);
    justify-content: center;
    margin-top: var(--v3-space-5);
}

.gzd-ft-reader {
    --gzd-paper: var(--v3-paper-0, #FBF7EE);
    --gzd-ink: var(--v3-ink, #322B23);
    --gzd-accent: var(--v3-red, #A63A28);
    --gzd-tap: var(--v3-tap, 44px);
}

.gzd-ft-reader .ft-toolbar button,
.gzd-ft-reader .ft-nav a,
.gzd-ft-reader .ft-pager button {
    min-height: var(--gzd-tap);
    min-width: var(--gzd-tap);
}

@media (min-width: 769px) {
    details.cluster-drawer {
        border: none;
        background: transparent;
        margin: 0;
    }
    details.cluster-drawer > summary {
        display: none;
    }
}

@media (max-width: 768px) {
    details.cluster-drawer .cluster-nav__head {
        display: none;
    }
    details.cluster-drawer .cluster-nav {
        border: none;
        background: transparent;
        border-radius: 0;
    }
}

body.v3-login .v3-login-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 120px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    padding-bottom: max(var(--v3-space-6), env(safe-area-inset-bottom, 0px));
}

body.v3-home .v3-hero-brand {
    padding-top: clamp(20px, 4vw, 40px);
    padding-bottom: clamp(8px, 2vw, 16px);
}
body.v3-home .v3-searchpanel {
    margin-top: var(--v3-space-3);
}

body.v3-about .v3-pagehero,
body.v3-help .v3-pagehero,
body.v3-video .v3-pagehero,
body.v3-advice .v3-pagehero,
body.v3-sat .v3-pagehero {
    padding: var(--v3-space-5) var(--v3-gutter) var(--v3-space-4);
}
