/* ==========================================================================
   FiimeROM — 协议 / 隐私单页文档
   仅由 page/toss.html 与 page/privacy.html 加载
   ========================================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body.policy-page {
    --p-bg: #f6f3ec;
    --p-paper: #ffffff;
    --p-ink: #23252f;
    --p-ink-soft: #4e5160;
    --p-muted: #6c6f81;
    --p-faint: #8f8a9c;
    --p-line: #e7e1d6;
    --p-line-soft: #f0ebe2;
    --p-accent: #eba744;
    --p-accent-deep: #9a6412;
    --p-accent-soft: #fdf4e2;
    --p-dark: #191b27;
    --p-radius: 22px;
    --p-shadow: 0 30px 70px -48px rgba(25, 27, 39, 0.55);
    --p-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    margin: 0;
    font-family: var(--p-font);
    font-size: 15px;
    line-height: 1.7;
    color: var(--p-ink);
    background:
        radial-gradient(900px 480px at 10% 0%, rgba(235, 167, 68, 0.1), transparent 62%),
        var(--p-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color-scheme: light;
}

body.policy-page ::selection {
    background: rgba(235, 167, 68, 0.28);
}

body.policy-page img {
    max-width: 100%;
}

body.policy-page a {
    text-decoration: none;
}

body.policy-page button {
    font-family: inherit;
}

body.policy-page a:focus-visible,
body.policy-page button:focus-visible {
    outline: 2px solid var(--p-accent);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   主区域与顶部
   -------------------------------------------------------------------------- */

/* 站点框架默认 overflow:hidden，会阻断 sticky 目录 */
body.policy-page .knsl-app {
    overflow: visible;
}

.policy-main {
    padding-top: 60px;
}

/* 阅读进度：固定在站点导航下方 */
.policy-progress {
    position: fixed;
    z-index: 9998;
    top: 60px;
    left: 0;
    right: 0;
    height: 3px;
    pointer-events: none;
    background: rgba(25, 27, 39, 0.05);
}

.policy-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #d9962d 0%, #eba744 55%, #f4c46e 100%);
    transition: width 0.08s linear;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.policy-hero {
    position: relative;
    overflow: hidden;
    padding: 52px 0 104px;
    color: #fff;
    background:
        radial-gradient(520px 360px at 104% -12%, rgba(235, 167, 68, 0.35), transparent 68%),
        radial-gradient(480px 360px at -8% 112%, rgba(59, 97, 221, 0.2), transparent 66%),
        linear-gradient(154deg, #26283b 0%, #1a1c2a 54%, #13151f 100%);
}

.policy-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 82%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 82%);
}

.policy-hero::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -190px;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(235, 167, 68, 0.26);
    border-radius: 50%;
    box-shadow:
        0 0 0 52px rgba(235, 167, 68, 0.04),
        0 0 0 108px rgba(235, 167, 68, 0.022);
    pointer-events: none;
}

.policy-hero .container {
    position: relative;
    z-index: 1;
}

.policy-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 26px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.42);
}

.policy-crumbs a {
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.16s ease;
}

.policy-crumbs a:hover {
    color: #fff;
}

.policy-crumbs .policy-crumbs__sep {
    color: rgba(255, 255, 255, 0.25);
}

.policy-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: end;
}

.policy-kicker {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px 11px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.14em;
    color: #f3c77e;
    background: rgba(235, 167, 68, 0.11);
    border: 1px solid rgba(235, 167, 68, 0.34);
    border-radius: 999px;
}

.policy-kicker svg {
    width: 13px;
    height: 13px;
}

.policy-hero h1 {
    margin: 17px 0 14px;
    font-size: clamp(32px, 4.2vw, 46px);
    font-weight: 750;
    line-height: 1.24;
    letter-spacing: -0.035em;
    color: #fff;
}

.policy-lead {
    max-width: 650px;
    margin: 0;
    font-size: 14.5px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.63);
}

.policy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.54);
}

.policy-meta span {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.policy-meta svg {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    color: #e5b361;
}

.policy-hero__side {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    padding-bottom: 3px;
    min-width: 174px;
}

.policy-hero__cta,
.policy-hero__print {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 12px;
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.policy-hero__cta {
    color: #241a08;
    background: linear-gradient(135deg, #f4bd68 0%, #eba744 55%, #df992f 100%);
    border: 0;
    box-shadow: 0 16px 30px -18px rgba(223, 153, 47, 0.95);
}

.policy-hero__cta:hover {
    color: #241a08;
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.policy-hero__cta svg {
    width: 15px;
    height: 15px;
}

.policy-hero__print {
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.17);
}

.policy-hero__print:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.28);
}

.policy-hero__print svg {
    width: 15px;
    height: 15px;
}

/* 语言 / 主题控件 */

.policy-hero__tools {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    margin-top: 3px;
}

.policy-lang {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 2px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
}

.policy-lang button {
    min-width: 34px;
    height: 30px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 7px;
    transition:
        color 0.16s ease,
        background-color 0.16s ease;
}

.policy-lang button:hover {
    color: #fff;
}

.policy-lang button.is-active {
    color: #241a08;
    background: #eba744;
}

.policy-theme {
    display: inline-flex;
    flex: 1 1 auto;
    gap: 6px;
    align-items: center;
    justify-content: center;
    height: 38px;
    min-width: 0;
    padding: 0 9px;
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 10px;
    transition:
        color 0.16s ease,
        background-color 0.16s ease,
        border-color 0.16s ease;
}

.policy-theme:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.28);
}

.policy-theme svg {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    color: #e5b361;
}

.policy-theme__moon {
    display: none;
}

html[data-policy-theme="dark"] .policy-theme__sun {
    display: none;
}

html[data-policy-theme="dark"] .policy-theme__moon {
    display: block;
}

/* 深色主题下的悬浮控件配色 */
html[data-policy-theme="dark"] .policy-lang {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
}

html[data-policy-theme="dark"] .policy-theme {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
}

/* --------------------------------------------------------------------------
   双栏布局
   -------------------------------------------------------------------------- */

.policy-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin-top: -60px;
    padding-bottom: 76px;
}

/* 目录 */

.policy-sidebar {
    position: sticky;
    top: 84px;
    display: grid;
    gap: 14px;
    min-width: 0;
}

.policy-toc {
    padding: 18px 16px 14px;
    background: var(--p-paper);
    border: 1px solid var(--p-line);
    border-radius: 18px;
    box-shadow: 0 20px 44px -36px rgba(25, 27, 39, 0.42);
}

.policy-toc__head {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 11px;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.16em;
    color: var(--p-faint);
    text-transform: uppercase;
    border-bottom: 1px solid var(--p-line-soft);
}

.policy-toc__count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 18px;
    padding: 0 5px;
    font-size: 9.5px;
    letter-spacing: 0.04em;
    color: var(--p-accent-deep);
    background: var(--p-accent-soft);
    border-radius: 6px;
}

.policy-toc__nav {
    display: grid;
    gap: 2px;
    max-height: calc(100vh - 300px);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd5c7 transparent;
}

.policy-toc__nav a {
    position: relative;
    display: block;
    padding: 8px 10px 8px 13px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--p-muted);
    border-radius: 8px;
    transition:
        color 0.16s ease,
        background-color 0.16s ease;
}

.policy-toc__nav a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: var(--p-accent);
    border-radius: 999px;
    transform: translateY(-50%);
    transition: height 0.18s ease;
}

.policy-toc__nav a:hover {
    color: var(--p-ink);
    background: #faf7f1;
}

.policy-toc__nav a.is-active {
    font-weight: 650;
    color: #875912;
    background: var(--p-accent-soft);
}

.policy-toc__nav a.is-active::before {
    height: 14px;
}

.policy-toc__num {
    margin-right: 6px;
    font-size: 9.5px;
    font-weight: 700;
    color: #b9b2a4;
    font-variant-numeric: tabular-nums;
}

.policy-toc__nav a.is-active .policy-toc__num {
    color: #c08a2d;
}

.policy-toc__foot {
    padding: 11px 4px 0;
    margin-top: 10px;
    font-size: 10px;
    line-height: 1.5;
    color: var(--p-faint);
    border-top: 1px solid var(--p-line-soft);
}

.policy-help {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 15px;
    color: rgba(255, 255, 255, 0.8);
    background:
        radial-gradient(180px 120px at 110% -10%, rgba(235, 167, 68, 0.28), transparent 70%),
        #1d1f2c;
    border-radius: 15px;
    box-shadow: 0 18px 40px -34px rgba(25, 27, 39, 0.7);
}

.policy-help:hover {
    color: #fff;
}

.policy-help svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: #e7b563;
}

.policy-help span {
    display: block;
    font-size: 11.5px;
    line-height: 1.55;
}

.policy-help strong {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    color: #fff;
}

/* --------------------------------------------------------------------------
   文档主体
   -------------------------------------------------------------------------- */

.policy-doc {
    min-width: 0;
    padding: clamp(28px, 4vw, 52px);
    background: var(--p-paper);
    border: 1px solid var(--p-line);
    border-radius: var(--p-radius);
    box-shadow: var(--p-shadow);
}

.policy-doc__head {
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--p-line-soft);
}

.policy-doc__eyebrow {
    margin: 0 0 10px;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.16em;
    color: #b07a1d;
    text-transform: uppercase;
}

.policy-doc__head p {
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
    color: #5b5e6e;
}

.policy-callout {
    padding: 16px 18px;
    margin: 0 0 30px;
    background: linear-gradient(135deg, #fdf9f0 0%, #fbf3e4 100%);
    border: 1px solid #f0dfbd;
    border-radius: 14px;
}

.policy-callout__title {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 750;
    color: #875912;
}

.policy-callout__title svg {
    width: 15px;
    height: 15px;
    color: #c68f2c;
}

.policy-callout ul {
    display: grid;
    gap: 5px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.policy-callout li {
    position: relative;
    padding-left: 15px;
    font-size: 12.5px;
    line-height: 1.72;
    color: #7c5a1f;
}

.policy-callout li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 4px;
    height: 4px;
    background: #d5a044;
    border-radius: 50%;
}

/* 章节 */

.policy-section {
    margin: 0 0 32px;
    scroll-margin-top: 86px;
}

.policy-section:last-of-type {
    margin-bottom: 0;
}

.policy-section h2 {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0 0 14px;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--p-ink);
}

.policy-section__num {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 30px;
    height: 30px;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    color: #875912;
    background: var(--p-accent-soft);
    border: 1px solid #f0dfbd;
    border-radius: 9px;
    font-variant-numeric: tabular-nums;
}

.policy-anchor {
    opacity: 0;
    margin-left: auto;
    padding: 2px 6px;
    font-size: 15px;
    font-weight: 500;
    color: #c6b9a2;
    border-radius: 6px;
    transition:
        opacity 0.18s ease,
        color 0.18s ease,
        background-color 0.18s ease;
}

.policy-section h2:hover .policy-anchor,
.policy-anchor:focus-visible {
    opacity: 1;
}

.policy-anchor:hover {
    color: var(--p-accent-deep);
    background: #faf5ea;
}

.policy-section p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.95;
    color: var(--p-ink-soft);
}

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

.policy-section a {
    color: var(--p-accent-deep);
    font-weight: 600;
    border-bottom: 1px solid rgba(154, 100, 18, 0.28);
    transition: border-color 0.16s ease;
}

.policy-section a:hover {
    border-bottom-color: var(--p-accent-deep);
}

/* 列表 */

.policy-section ul,
.policy-section ol {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 10px 0 14px;
    list-style: none;
}

.policy-section li {
    position: relative;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.88;
    color: var(--p-ink-soft);
}

.policy-section li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 10px;
    width: 5px;
    height: 5px;
    background: #ddb46d;
    border-radius: 50%;
}

.policy-section li > ul,
.policy-section li > ol {
    gap: 6px;
    margin: 7px 0 2px;
    padding-left: 6px;
}

.policy-section li > ul > li::before,
.policy-section li > ol > li::before {
    background: #e8d6b4;
}

.policy-section .policy-list--plain > li {
    padding-left: 24px;
}

.policy-section .policy-list--plain > li::before {
    content: "–";
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    background: none;
    color: #c9923b;
    font-size: 13px;
    line-height: 1.95;
}

.policy-section .policy-list--plain li > ul > li::before,
.policy-section .policy-list--plain li > ol > li::before {
    content: "";
    top: 10px;
    left: 2px;
    width: 4px;
    height: 4px;
    background: #e2cda9;
}

/* 联系方式 */

.policy-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.policy-contact__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    background: #faf7f1;
    border: 1px solid var(--p-line);
    border-radius: 14px;
}

.policy-contact__item svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: #c08a2d;
}

.policy-contact__label {
    margin: 0 0 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--p-faint);
    text-transform: uppercase;
}

.policy-contact__value {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--p-ink);
    word-break: break-word;
}

.policy-contact__value a {
    color: var(--p-accent-deep);
}

/* 相关文档 */

.policy-related {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    margin-top: 34px;
    border-top: 1px solid var(--p-line-soft);
}

.policy-related__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--p-faint);
    text-transform: uppercase;
}

.policy-related a {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    font-size: 12.5px;
    font-weight: 650;
    color: var(--p-accent-deep);
}

.policy-related a:hover {
    color: #7d5310;
}

.policy-related svg {
    width: 14px;
    height: 14px;
}

/* --------------------------------------------------------------------------
   回到顶部
   -------------------------------------------------------------------------- */

.policy-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9000;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #fff;
    cursor: pointer;
    visibility: hidden;
    background: rgba(29, 31, 44, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    box-shadow: 0 16px 32px -18px rgba(25, 27, 39, 0.8);
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease,
        background-color 0.2s ease;
    backdrop-filter: blur(8px);
}

.policy-top:hover {
    background: #26283b;
    transform: translateY(-1px);
}

.policy-top.is-show {
    visibility: visible;
    opacity: 1;
    transform: none;
}

.policy-top svg {
    width: 18px;
    height: 18px;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .policy-layout {
        grid-template-columns: 224px minmax(0, 1fr);
        gap: 20px;
    }

    .policy-doc {
        padding: 38px 32px;
    }
}

@media (max-width: 860px) {
    .policy-hero {
        padding: 36px 0 82px;
    }

    .policy-crumbs {
        margin-bottom: 20px;
    }

    .policy-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .policy-hero h1 {
        font-size: clamp(28px, 7vw, 36px);
    }

    .policy-lead {
        font-size: 13.5px;
    }

    .policy-hero__side {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 9px;
        min-width: 0;
        padding-bottom: 0;
    }

    .policy-hero__cta,
    .policy-hero__print {
        flex: 1 1 150px;
        min-height: 42px;
    }

    .policy-hero__tools {
        flex: 1 1 100%;
        margin-top: 0;
    }

    .policy-lang button {
        min-width: 38px;
    }

    .policy-theme {
        height: 38px;
    }

    .policy-layout {
        display: block;
        margin-top: -44px;
        padding-bottom: 52px;
    }

    .policy-sidebar {
        position: static;
        display: block;
        margin-bottom: 14px;
    }

    .policy-toc {
        padding: 12px 12px 10px;
        border-radius: 14px;
    }

    .policy-toc__head {
        padding: 0 3px 8px;
        margin-bottom: 8px;
        font-size: 9.5px;
    }

    .policy-toc__nav {
        display: flex;
        gap: 6px;
        max-height: none;
        padding-bottom: 2px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .policy-toc__nav::-webkit-scrollbar {
        display: none;
    }

    .policy-toc__nav a {
        flex: 0 0 auto;
        padding: 7px 11px;
        font-size: 11.5px;
        white-space: nowrap;
        background: #f8f4ec;
        border-radius: 999px;
    }

    .policy-toc__nav a::before {
        display: none;
    }

    .policy-toc__nav a.is-active {
        color: #7d5310;
        background: #fbeed6;
    }

    .policy-toc__num {
        display: none;
    }

    .policy-toc__foot,
    .policy-help {
        display: none;
    }

    .policy-doc {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .policy-section h2 {
        font-size: 17.5px;
    }

    .policy-section__num {
        width: 26px;
        height: 26px;
        font-size: 9.5px;
        border-radius: 8px;
    }

    .policy-anchor {
        opacity: 0.34;
    }

    .policy-contact {
        grid-template-columns: 1fr;
    }

    .policy-top {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom));
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 520px) {
    .policy-main {
        padding-top: 60px;
    }

    .policy-hero {
        padding: 30px 0 72px;
    }

    .policy-kicker {
        font-size: 9.5px;
    }

    .policy-hero h1 {
        margin-top: 14px;
        font-size: 29px;
    }

    .policy-meta {
        gap: 8px 14px;
        margin-top: 18px;
        font-size: 11px;
    }

    .policy-meta svg {
        width: 13px;
        height: 13px;
    }

    .policy-hero__cta,
    .policy-hero__print {
        flex-basis: 100%;
    }

    .policy-layout {
        margin-top: -38px;
        padding-bottom: 42px;
    }

    .policy-doc {
        padding: 22px 16px;
        border-radius: 16px;
    }

    .policy-doc__head {
        padding-bottom: 18px;
        margin-bottom: 22px;
    }

    .policy-callout {
        padding: 14px;
        margin-bottom: 24px;
    }

    .policy-section {
        margin-bottom: 27px;
    }

    .policy-section h2 {
        gap: 9px;
        font-size: 16.5px;
    }

    .policy-section p {
        font-size: 13.5px;
        line-height: 1.9;
    }

    .policy-section li {
        font-size: 13px;
        line-height: 1.85;
    }

    .policy-contact__item {
        padding: 14px;
    }
}

/* --------------------------------------------------------------------------
   深色主题
   -------------------------------------------------------------------------- */

html[data-policy-theme="dark"] body.policy-page {
    color-scheme: dark;
    color: #eef1f8;
    background:
        radial-gradient(900px 480px at 10% 0%, rgba(235, 167, 68, 0.055), transparent 62%),
        #0c0e15;
}

html[data-policy-theme="dark"] .policy-hero {
    background:
        radial-gradient(520px 360px at 104% -12%, rgba(235, 167, 68, 0.28), transparent 68%),
        radial-gradient(480px 360px at -8% 112%, rgba(59, 97, 221, 0.14), transparent 66%),
        linear-gradient(154deg, #1c1f2d 0%, #13151f 54%, #0d0f16 100%);
}

html[data-policy-theme="dark"] .policy-doc {
    background: #161923;
    border-color: #2a2f3e;
    box-shadow: 0 30px 70px -45px rgba(0, 0, 0, 0.9);
}

html[data-policy-theme="dark"] .policy-doc__head {
    border-bottom-color: #232734;
}

html[data-policy-theme="dark"] .policy-doc__head p {
    color: #b9bfd0;
}

html[data-policy-theme="dark"] .policy-doc__eyebrow {
    color: #e0ae5a;
}

html[data-policy-theme="dark"] .policy-callout {
    background: linear-gradient(135deg, #1e1a12 0%, #241d10 100%);
    border-color: rgba(235, 167, 68, 0.25);
}

html[data-policy-theme="dark"] .policy-callout__title {
    color: #f0c476;
}

html[data-policy-theme="dark"] .policy-callout__title svg {
    color: #e0ae5a;
}

html[data-policy-theme="dark"] .policy-callout li {
    color: #e3c48e;
}

html[data-policy-theme="dark"] .policy-callout li::before {
    background: #c9923b;
}

html[data-policy-theme="dark"] .policy-section h2 {
    color: #eef1f8;
}

html[data-policy-theme="dark"] .policy-section__num {
    color: #f0c476;
    background: rgba(235, 167, 68, 0.12);
    border-color: rgba(235, 167, 68, 0.26);
}

html[data-policy-theme="dark"] .policy-section p,
html[data-policy-theme="dark"] .policy-section li {
    color: #b9bfd0;
}

html[data-policy-theme="dark"] .policy-section a {
    color: #f0c476;
    border-bottom-color: rgba(240, 196, 118, 0.3);
}

html[data-policy-theme="dark"] .policy-section li::before {
    background: #8a7448;
}

html[data-policy-theme="dark"] .policy-section li > ul > li::before,
html[data-policy-theme="dark"] .policy-section li > ol > li::before {
    background: #5f563f;
}

html[data-policy-theme="dark"] .policy-section .policy-list--plain > li::before {
    color: #c9923b;
}

html[data-policy-theme="dark"] .policy-section .policy-list--plain li > ul > li::before,
html[data-policy-theme="dark"] .policy-section .policy-list--plain li > ol > li::before {
    background: #5f563f;
}

html[data-policy-theme="dark"] .policy-contact__item {
    background: #1b1f2b;
    border-color: #2a2f3e;
}

html[data-policy-theme="dark"] .policy-contact__item svg {
    color: #d9a44a;
}

html[data-policy-theme="dark"] .policy-contact__label {
    color: #7e8598;
}

html[data-policy-theme="dark"] .policy-contact__value {
    color: #eef1f8;
}

html[data-policy-theme="dark"] .policy-contact__value a {
    color: #f0c476;
}

html[data-policy-theme="dark"] .policy-related {
    border-top-color: #232734;
}

html[data-policy-theme="dark"] .policy-related__label {
    color: #7e8598;
}

html[data-policy-theme="dark"] .policy-related a {
    color: #f0c476;
}

html[data-policy-theme="dark"] .policy-anchor {
    color: #6e7587;
}

html[data-policy-theme="dark"] .policy-anchor:hover {
    color: #f0c476;
    background: #1d2130;
}

html[data-policy-theme="dark"] .policy-toc {
    background: #161923;
    border-color: #2a2f3e;
    box-shadow: 0 20px 44px -36px rgba(0, 0, 0, 0.8);
}

html[data-policy-theme="dark"] .policy-toc__head {
    color: #7e8598;
    border-bottom-color: #232734;
}

html[data-policy-theme="dark"] .policy-toc__count {
    color: #f0c476;
    background: rgba(235, 167, 68, 0.12);
}

html[data-policy-theme="dark"] .policy-toc__nav a {
    color: #9aa1b4;
}

html[data-policy-theme="dark"] .policy-toc__nav a:hover {
    color: #eef1f8;
    background: #1d2130;
}

html[data-policy-theme="dark"] .policy-toc__nav a.is-active {
    color: #f0c476;
    background: rgba(235, 167, 68, 0.1);
}

html[data-policy-theme="dark"] .policy-toc__num {
    color: #6e7587;
}

html[data-policy-theme="dark"] .policy-toc__nav a.is-active .policy-toc__num {
    color: #e0ae5a;
}

html[data-policy-theme="dark"] .policy-toc__foot {
    color: #7e8598;
    border-top-color: #232734;
}

html[data-policy-theme="dark"] .policy-help {
    background: #10131b;
    border: 1px solid #2a2f3e;
    box-shadow: 0 18px 40px -34px rgba(0, 0, 0, 0.9);
}

html[data-policy-theme="dark"] .policy-progress {
    background: rgba(255, 255, 255, 0.06);
}

html[data-policy-theme="dark"] .policy-top {
    background: rgba(238, 241, 248, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
}

html[data-policy-theme="dark"] .policy-top:hover {
    background: rgba(238, 241, 248, 0.2);
}

@media (max-width: 860px) {
    html[data-policy-theme="dark"] .policy-toc__nav a {
        background: #1d2130;
    }

    html[data-policy-theme="dark"] .policy-toc__nav a.is-active {
        color: #f0c476;
        background: #2a2417;
    }
}

/* --------------------------------------------------------------------------
   打印 / 保存 PDF
   -------------------------------------------------------------------------- */

@media print {
    html {
        scroll-padding-top: 0;
    }

    body.policy-page {
        background: #fff !important;
        font-size: 11pt;
    }

    .knsl-top-bar,
    .knsl-footer,
    .knsl-datepicker-place,
    .policy-hero__side,
    .policy-progress,
    .policy-sidebar,
    .policy-top,
    .policy-anchor,
    .policy-callout__title svg {
        display: none !important;
    }

    .policy-main {
        padding-top: 0 !important;
    }

    .policy-hero {
        padding: 0 0 14px !important;
        color: #000 !important;
        background: #fff !important;
        border-bottom: 2px solid #000;
    }

    .policy-hero::before,
    .policy-hero::after {
        display: none !important;
    }

    .policy-hero h1,
    .policy-kicker,
    .policy-lead,
    .policy-meta,
    .policy-crumbs {
        color: #000 !important;
    }

    .policy-kicker {
        padding: 0;
        margin-bottom: 6px;
        background: none !important;
        border: 0;
    }

    .policy-crumbs {
        margin-bottom: 8px;
    }

    .policy-crumbs a {
        color: #000 !important;
    }

    .policy-layout {
        display: block;
        margin: 0;
        padding: 0;
    }

    .policy-doc {
        padding: 0;
        color: #000 !important;
        background: #fff !important;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body.policy-page,
    .policy-doc__head p,
    .policy-doc__eyebrow,
    .policy-section h2,
    .policy-section p,
    .policy-section li,
    .policy-section a,
    .policy-callout,
    .policy-callout__title,
    .policy-callout li,
    .policy-contact__label,
    .policy-contact__value,
    .policy-contact__value a,
    .policy-related__label,
    .policy-related a {
        color: #000 !important;
    }

    .policy-section__num {
        color: #000 !important;
        background: #fff !important;
        border-color: #999 !important;
    }

    .policy-doc__head,
    .policy-related {
        border-color: #bbb !important;
    }

    .policy-section li::before,
    .policy-section li > ul > li::before,
    .policy-section li > ol > li::before,
    .policy-callout li::before {
        background: #000 !important;
    }

    .policy-section .policy-list--plain > li::before {
        color: #000 !important;
        background: none !important;
    }

    .policy-section .policy-list--plain li > ul > li::before,
    .policy-section .policy-list--plain li > ol > li::before {
        background: #000 !important;
    }

    .policy-callout {
        background: #fff !important;
        border: 1px solid #999;
    }

    .policy-section {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 18px;
    }

    .policy-section h2 {
        break-after: avoid;
        page-break-after: avoid;
    }

    .policy-section a {
        color: #000 !important;
        border-bottom: 0;
    }

    .policy-contact {
        grid-template-columns: 1fr 1fr;
    }

    .policy-contact__item {
        background: #fff;
        border: 1px solid #bbb;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body.policy-page *,
    body.policy-page *::before,
    body.policy-page *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
