/* Shared resource pages: tools, documentation and documentation details. */
.resource-page {
    --resource-border: #ececec;
    --resource-muted: #747474;
    --resource-soft: #fffaf0;
    background: #fff;
    color: var(--text-main);
}

.navbar + .resource-page { padding-top: 0; }

.resource-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #fffbf1 100%);
    border-bottom: 1px solid rgba(var(--primary-rgb), .18);
}

.resource-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(28, 28, 28, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 28, 28, .025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .65), transparent 85%);
}

.resource-hero__glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(100px);
    opacity: .13;
    pointer-events: none;
}

.resource-hero__glow--one { top: -190px; right: 8%; }
.resource-hero__glow--two { bottom: -290px; left: 2%; opacity: .08; }

.resource-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr);
    align-items: center;
    gap: 80px;
    padding-top: 148px;
    padding-bottom: 70px;
}

.resource-hero__content { max-width: 710px; }

.resource-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 13px;
    margin-bottom: 20px;
    border: 1px solid rgba(var(--primary-rgb), .45);
    border-radius: var(--border-radius-pill);
    background: rgba(var(--primary-rgb), .1);
    color: #5d4a10;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
}
/* 文档中心眉标图标：辅助深金，与墨色文字构成“金饰 + 墨字”搭配 */
.docs-page .resource-eyebrow i,
.docs-detail-page .resource-eyebrow i { color: #a67c00; }

.resource-hero h1 {
    max-width: 720px;
    margin: 0 0 20px;
    color: var(--text-dark);
    font-size: clamp(38px, 4.2vw, 58px);
    line-height: 1.14;
    letter-spacing: -.035em;
}

.resource-hero__content > p {
    max-width: 650px;
    color: var(--text-sub);
    font-size: 17px;
    line-height: 1.85;
}

.resource-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 30px;
    color: #505050;
    font-size: 14px;
    font-weight: 600;
}

.resource-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.resource-hero__meta i { color: var(--primary-dark); }

.resource-hero__visual { display: flex; justify-content: flex-end; }

.hero-tool-panel {
    position: relative;
    width: 340px;
    padding: 19px;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 24px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 30px 70px rgba(119, 91, 7, .14);
    backdrop-filter: blur(14px);
    transform: rotate(2.5deg);
}

.hero-tool-panel::after {
    content: '';
    position: absolute;
    inset: 12px -13px -15px 18px;
    z-index: -1;
    border: 1px solid rgba(var(--primary-rgb), .35);
    border-radius: 24px;
    background: rgba(var(--primary-rgb), .12);
}

.hero-tool-panel__top { display: flex; gap: 7px; padding: 2px 2px 17px; }
.hero-tool-panel__top span { width: 8px; height: 8px; border-radius: 50%; background: #e4e4e4; }
.hero-tool-panel__top span:first-child { background: var(--primary); }
.hero-tool-panel__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hero-tool-panel__grid div {
    height: 112px;
    display: grid;
    place-items: center;
    border: 1px solid #f0ede5;
    border-radius: 17px;
    background: #fff;
    color: var(--primary-dark);
    font-size: 31px;
    box-shadow: 0 8px 24px rgba(44, 38, 20, .045);
}
.hero-tool-panel__grid div:nth-child(2),
.hero-tool-panel__grid div:nth-child(3) { background: var(--primary-light); }

.resource-hero__inner--center {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

.resource-hero__inner--center .resource-hero__content { max-width: 820px; }
.resource-hero__inner--center .resource-hero__content > p { margin-inline: auto; }

.resource-hero--docs { min-height: 520px; }
.resource-hero--docs .resource-hero__inner { padding-bottom: 78px; }

.resource-hero--compact { min-height: 310px; }
.resource-hero--compact .resource-hero__inner {
    grid-template-columns: 1fr;
    padding-top: 128px;
    padding-bottom: 52px;
}
.resource-hero--compact h1 { font-size: clamp(32px, 4vw, 48px); }

.docs-search {
    width: min(100%, 680px);
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 31px auto 0;
    padding: 8px 10px 8px 21px;
    border: 1px solid #e8e3d7;
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 42px rgba(79, 61, 12, .09);
    color: #a98926;
    text-align: left;
    transition: var(--transition);
}

.docs-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 18px 44px rgba(var(--primary-rgb), .18);
    transform: translateY(-2px);
}

.docs-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    font-size: 15px;
}

.docs-search input::placeholder { color: #aaa; }
.docs-search__key {
    padding: 7px 13px;
    border-radius: 10px;
    background: var(--primary-light);
    color: #9d7b16;
    font-size: 12px;
    font-weight: 700;
}

.resource-section { padding: 92px 0; }
.resource-section--topics { padding-bottom: 74px; }
.resource-section--library { padding-top: 78px; background: #fafafa; border-top: 1px solid #f0f0f0; }

.resource-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 42px;
}

.resource-section__head > div { flex: 1; }
.resource-section__head > p {
    max-width: 490px;
    color: var(--text-sub);
    font-size: 15px;
    line-height: 1.8;
    text-align: right;
}

.resource-section__head h2 {
    margin: 8px 0 0;
    color: var(--text-dark);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.25;
    letter-spacing: -.02em;
}

.resource-kicker { color: #a67d00; font-size: 13px; font-weight: 800; letter-spacing: .14em; }

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.tool-card {
    min-width: 0;
    min-height: 352px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--resource-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tool-card:hover {
    border-color: rgba(var(--primary-rgb), .56);
    box-shadow: 0 20px 45px rgba(43, 34, 8, .09);
    transform: translateY(-6px);
}

.tool-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tool-card__icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    flex: 0 0 68px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 27px;
}

.tool-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.tool-card__tag {
    padding: 6px 10px;
    border-radius: var(--border-radius-pill);
    background: #f5f5f5;
    color: #777;
    font-size: 12px;
    font-weight: 700;
}
.tool-card h3 { margin: 24px 0 10px; color: var(--text-dark); font-size: 21px; }
.tool-card p { margin-bottom: 26px; color: var(--resource-muted); font-size: 14px; line-height: 1.85; }
.tool-card__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: auto;
    color: #9b7600;
    font-size: 14px;
    font-weight: 800;
}
.tool-card__action i { font-size: 12px; transition: transform .25s ease; }
.tool-card a.tool-card__action:hover { color: var(--text-dark); }
.tool-card a.tool-card__action:hover i { transform: translateX(4px); }
.tool-card--coming { border-style: dashed; background: linear-gradient(145deg, #fff 0%, #fffaf0 100%); }
.tool-card__action--disabled { color: #999; cursor: default; }

.docs-topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.docs-topic-card {
    position: relative;
    min-width: 0;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--resource-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.docs-topic-card:hover { border-color: rgba(var(--primary-rgb), .55); box-shadow: var(--shadow-md); transform: translateY(-5px); }
.docs-topic-card__image {
    height: 126px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 19px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--primary-light);
}
.docs-topic-card__image i { font-size: 56px; color: var(--primary-dark); transition: transform .3s ease; }
.docs-topic-card:hover .docs-topic-card__image i { transform: scale(1.045); }
.docs-topic-card span { color: #9e7a0a; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.docs-topic-card h3 { margin: 5px 0 5px; color: var(--text-dark); font-size: 19px; }
.docs-topic-card p { color: #858585; font-size: 13px; line-height: 1.6; }
.docs-topic-card__arrow { position: absolute; right: 23px; bottom: 26px; color: #d6d6d6; font-size: 13px; transition: var(--transition); }
.docs-topic-card:hover .docs-topic-card__arrow { color: var(--primary-dark); transform: translateX(4px); }

.docs-library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.docs-category {
    min-width: 0;
    padding: 28px;
    border: 1px solid #e9e9e9;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(0, 0, 0, .035);
}
.docs-category__head { display: flex; align-items: center; gap: 15px; padding-bottom: 22px; border-bottom: 1px solid #eee; }
.docs-category__icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    flex: 0 0 50px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 19px;
}
.docs-category__head h3 { color: var(--text-dark); font-size: 18px; }
.docs-category__head p { margin-top: 3px; color: #8a8a8a; font-size: 12px; line-height: 1.55; }
.docs-category__more { margin-left: auto; color: var(--primary); font-size: 13px; font-weight: 600; white-space: nowrap; }
.docs-category__more:hover { color: var(--primary-dark); }
.docs-category__links { display: grid; gap: 1px; padding-top: 12px; }
.docs-article-link {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 8px;
    border-radius: 9px;
    color: #555;
    font-size: 14px;
}
.docs-article-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-article-link i { flex: 0 0 auto; color: #d4d4d4; font-size: 10px; }
.docs-article-link:hover { padding-left: 12px; background: var(--primary-light); color: #8c6b00; }
.docs-article-link:hover i { color: var(--primary-dark); }
.docs-category.is-filtered-out, .docs-article-link.is-filtered-out { display: none; }

.docs-empty { padding: 70px 20px; text-align: center; color: #8d8d8d; }
.docs-empty i { margin-bottom: 17px; color: #d2d2d2; font-size: 42px; }
.docs-empty h3 { margin-bottom: 7px; color: var(--text-main); font-size: 19px; }
.docs-empty p { font-size: 14px; }

.resource-cta { padding: 0 0 92px; background: #fff; }
.resource-section--library + .resource-cta { padding-top: 92px; }
.resource-cta__box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    padding: 42px 48px;
    border: 1px solid rgba(var(--primary-rgb), .35);
    border-radius: 24px;
    background: linear-gradient(135deg, #fffdf6 0%, #fff6d8 100%);
    box-shadow: 0 20px 50px rgba(var(--primary-rgb), .09);
}
.resource-cta__box::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    right: 12%;
    bottom: -220px;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(45px);
    opacity: .25;
    pointer-events: none;
}
.resource-cta__box > * { position: relative; z-index: 1; }
.resource-cta__box span { color: #9d7904; font-size: 13px; font-weight: 800; }
.resource-cta__box h2 { margin-top: 7px; color: var(--text-dark); font-size: clamp(24px, 2.7vw, 34px); }
.resource-cta__box p { margin-top: 7px; color: var(--text-sub); font-size: 14px; }
.resource-cta__box .btn { flex: 0 0 auto; }

.resource-section--detail { padding-top: 34px; background: #fafafa; }
.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-bottom: 25px;
    color: #999;
    font-size: 13px;
}
.docs-breadcrumb a:hover { color: #9c7600; }
.docs-breadcrumb i { color: #c8c8c8; font-size: 8px; }
.docs-breadcrumb span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 文档详情页 · 目录菜单（现代视觉重构） ===== */
.doc-detail-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }

.doc-sidebar {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 118px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #f0ead8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(96, 76, 12, .07);
    scrollbar-width: thin;
    scrollbar-color: #ecdfc0 transparent;
    animation: docSidebarIn .55s cubic-bezier(.16, 1, .3, 1) both;
}
.doc-sidebar::-webkit-scrollbar { width: 6px; }
.doc-sidebar::-webkit-scrollbar-track { background: transparent; }
.doc-sidebar::-webkit-scrollbar-thumb { border-radius: 3px; background: #ecdfc0; }
.doc-sidebar::-webkit-scrollbar-thumb:hover { background: #ddc994; }

/* 顶部标题条（滚动时吸附） */
.doc-sidebar__title {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 17px 20px;
    background: linear-gradient(135deg, #fffdf5 0%, #fff7e2 100%);
    border-bottom: 1px solid #f3ecd8;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .02em;
}
.doc-sidebar__title i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 9px;
    background: var(--primary-gradient);
    color: #40350a;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), .35);
}

/* 分组（含依次入场动效） */
.doc-sidebar__group { border-bottom: 1px solid #f6f1e6; animation: docGroupIn .5s cubic-bezier(.16, 1, .3, 1) backwards; }
.doc-sidebar__group:nth-child(2) { animation-delay: .05s; }
.doc-sidebar__group:nth-child(3) { animation-delay: .1s; }
.doc-sidebar__group:nth-child(4) { animation-delay: .15s; }
.doc-sidebar__group:last-child { border-bottom: 0; }

/* 分组开关：默认 / 悬停 / 按下 / 聚焦 / 展开 */
.doc-sidebar__toggle {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px 13px 20px;
    border: 0;
    background: transparent;
    color: #4b473a;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: color .25s ease, background-color .25s ease;
    -webkit-tap-highlight-color: transparent;
}
.doc-sidebar__toggle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    border-radius: 0 3px 3px 0;
    background: var(--primary-gradient);
    transform: translateY(-50%);
    transition: height .32s cubic-bezier(.4, 0, .2, 1);
}
.doc-sidebar__toggle:hover { background: #fbf7ec; color: #5d4a10; }
.doc-sidebar__toggle:active { background: #f6efdc; }
.doc-sidebar__toggle:focus-visible { outline: 2px solid rgba(var(--primary-rgb), .55); outline-offset: -2px; border-radius: 10px; }
.doc-sidebar__group.is-open .doc-sidebar__toggle { background: var(--primary-light); color: #5d4a10; }
.doc-sidebar__group.is-open .doc-sidebar__toggle::before { height: 22px; }

.doc-sidebar__toggle > span { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.doc-sidebar__toggle > span i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 8px;
    background: #f7f2e6;
    color: #a67c00;
    font-size: 12px;
    transition: background-color .25s ease, color .25s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}
.doc-sidebar__toggle:hover > span i { background: #fdf3d7; color: #a67c00; transform: scale(1.07); }
.doc-sidebar__group.is-open .doc-sidebar__toggle > span i {
    background: var(--primary-gradient);
    color: #40350a;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), .35);
}

.doc-sidebar__toggle > i, .doc-sidebar__chevron {
    flex: 0 0 auto;
    color: #b9b9b9;
    font-size: 11px;
    transition: transform .38s cubic-bezier(.4, 0, .2, 1), color .25s ease;
}
.doc-sidebar__toggle:hover > i, .doc-sidebar__toggle:hover .doc-sidebar__chevron { color: #a67c00; }
.doc-sidebar__group.is-open .doc-sidebar__toggle > i,
.doc-sidebar__group.is-open .doc-sidebar__chevron { transform: rotate(180deg); color: #a67c00; }

/* 链接容器：展开 / 收起动画（JS 精确控高；无 JS 时 CSS 仍可正常开合） */
.doc-sidebar__links {
    display: grid;
    gap: 2px;
    padding: 7px 12px 12px;
    overflow: hidden;
    visibility: visible;
    transition: height .38s cubic-bezier(.4, 0, .2, 1), opacity .26s ease, padding .38s cubic-bezier(.4, 0, .2, 1), visibility 0s;
}
.doc-sidebar__group:not(.is-open) .doc-sidebar__links {
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: height .38s cubic-bezier(.4, 0, .2, 1), opacity .22s ease, padding .38s cubic-bezier(.4, 0, .2, 1), visibility 0s .38s;
}
.doc-sidebar__group.is-open .doc-sidebar__links { opacity: 1; visibility: visible; }

/* 菜单项：默认 / 悬停 / 按下 / 聚焦 / 选中 / 禁用 */
.doc-sidebar__links a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 9px 12px 9px 14px;
    border-radius: 9px;
    color: #6b675a;
    font-size: 13px;
    line-height: 1.55;
    text-decoration: none;
    transition: color .22s ease, background-color .22s ease, padding-left .28s cubic-bezier(.4, 0, .2, 1);
    -webkit-tap-highlight-color: transparent;
}
.doc-sidebar__links a::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    width: 3px;
    height: 0;
    border-radius: 3px;
    background: var(--primary-gradient);
    transform: translateY(-50%);
    transition: height .3s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease;
}
.doc-sidebar__link-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-sidebar__link-arrow {
    flex: 0 0 auto;
    color: #a67c00;
    font-size: 10px;
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity .25s ease, transform .3s cubic-bezier(.4, 0, .2, 1);
}
.doc-sidebar__links a:hover { background: #faf6ea; color: #5d4a10; padding-left: 16px; }
.doc-sidebar__links a:hover::before { height: 13px; opacity: .55; }
.doc-sidebar__links a:hover .doc-sidebar__link-arrow { opacity: .85; transform: translateX(0); }
.doc-sidebar__links a:active { background: #f5ecd4; }
.doc-sidebar__links a:focus-visible { outline: 2px solid rgba(var(--primary-rgb), .55); outline-offset: 1px; }
.doc-sidebar__links a.active {
    background: linear-gradient(135deg, #fff9e3 0%, #ffefc4 100%);
    color: #40350a;
    font-weight: 700;
}
.doc-sidebar__links a.active::before { height: 18px; }
.doc-sidebar__links a.active .doc-sidebar__link-arrow { opacity: 1; transform: translateX(0); }

/* 禁用态（按钮与菜单项通用） */
.doc-sidebar__toggle:disabled,
.doc-sidebar__toggle[aria-disabled="true"] { color: #bcbcbc; cursor: not-allowed; }
.doc-sidebar__toggle:disabled::before,
.doc-sidebar__toggle[aria-disabled="true"]::before { display: none; }
.doc-sidebar__toggle:disabled > span i,
.doc-sidebar__toggle[aria-disabled="true"] > span i { background: #f4f4f4; color: #c8c8c8; box-shadow: none; }
.doc-sidebar__toggle:disabled:hover,
.doc-sidebar__toggle[aria-disabled="true"]:hover { background: transparent; color: #bcbcbc; }
.doc-sidebar__toggle:disabled:hover > span i,
.doc-sidebar__toggle[aria-disabled="true"]:hover > span i { transform: none; background: #f4f4f4; color: #c8c8c8; }
.doc-sidebar__links a.is-disabled,
.doc-sidebar__links a[aria-disabled="true"] {
    padding-left: 14px;
    background: transparent;
    color: #bcbcbc;
    pointer-events: none;
}
.doc-sidebar__links a.is-disabled::before,
.doc-sidebar__links a[aria-disabled="true"]::before,
.doc-sidebar__links a.is-disabled .doc-sidebar__link-arrow,
.doc-sidebar__links a[aria-disabled="true"] .doc-sidebar__link-arrow { display: none; }

@keyframes docSidebarIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes docGroupIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.doc-article {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e9e9e9;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.doc-article__header { padding: 36px 42px 30px; border-bottom: 1px solid #eee; }
.doc-article__header span { color: #a17b02; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.doc-article__header h2 { margin-top: 8px; color: var(--text-dark); font-size: clamp(25px, 3vw, 34px); line-height: 1.35; }
.doc-article__updated { margin-top: 10px; color: #999; font-size: 12px; }
.doc-article__content { min-height: 430px; padding: 38px 42px 52px; color: #505050; font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.doc-article__content h1, .doc-article__content h2, .doc-article__content h3, .doc-article__content h4 { margin: 1.7em 0 .65em; color: var(--text-dark); line-height: 1.45; }
.doc-article__content h1:first-child, .doc-article__content h2:first-child, .doc-article__content h3:first-child { margin-top: 0; }
.doc-article__content p { margin: 0 0 1.15em; }
.doc-article__content ul, .doc-article__content ol { margin: 0 0 1.25em 1.5em; }
.doc-article__content ul { list-style: disc; }
.doc-article__content ol { list-style: decimal; }
.doc-article__content li { margin-bottom: .45em; }
.doc-article__content a { color: #967100; text-decoration: underline; text-underline-offset: 3px; }
.doc-article__content img { max-width: 100% !important; height: auto !important; margin: 22px auto; border-radius: 12px; }
.doc-article__content table { width: 100% !important; display: block; overflow-x: auto; border-collapse: collapse; }
.doc-article__content th, .doc-article__content td { min-width: 120px; padding: 10px 12px; border: 1px solid #e4e4e4; }
.doc-article__content pre { max-width: 100%; overflow-x: auto; padding: 16px; border-radius: 10px; background: #222; color: #f5f5f5; font-size: 13px; }
.doc-article__related { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 20px 42px; border-top: 1px solid #f0f0f0; color: #888; font-size: 13px; }
.doc-article__related strong { color: var(--text-dark); }
.doc-article__related a { color: var(--primary); font-weight: 600; }
.doc-article__related a:hover { color: var(--primary-dark); }
.doc-article__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 25px 42px;
    border-top: 1px solid #eee;
    background: #fffdf7;
    color: var(--text-main);
}
.doc-article__footer > div { display: flex; align-items: center; gap: 13px; }
.doc-article__footer > div > i { color: var(--primary-dark); font-size: 22px; }
.doc-article__footer span { display: flex; flex-direction: column; }
.doc-article__footer strong { color: var(--text-dark); font-size: 14px; }
.doc-article__footer small { margin-top: 2px; color: #888; font-size: 12px; }
.doc-article__footer > a { flex: 0 0 auto; color: #8e6c00; font-size: 13px; font-weight: 800; }

@media (max-width: 1080px) {
    .resource-hero__inner { gap: 45px; }
    .hero-tool-panel { width: 300px; }
    .hero-tool-panel__grid div { height: 98px; }
    .tool-grid, .docs-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .docs-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .doc-detail-layout { grid-template-columns: 245px minmax(0, 1fr); }
}

@media (max-width: 768px) {
    .navbar + .resource-page { padding-top: 0; }
    .resource-hero { min-height: auto; }
    .resource-hero__inner { grid-template-columns: 1fr; gap: 34px; padding-top: 118px; padding-bottom: 54px; text-align: center; }
    .resource-hero h1 { margin-inline: auto; font-size: clamp(34px, 10vw, 45px); }
    .resource-hero__content > p { margin-inline: auto; font-size: 15px; }
    .resource-hero__meta { justify-content: center; gap: 12px 20px; }
    .resource-hero__visual { display: none; }
    .resource-hero--docs .resource-hero__inner { padding-bottom: 56px; }
    .resource-hero--compact .resource-hero__inner { text-align: left; }
    .resource-hero--compact h1 { margin-inline: 0; font-size: 31px; }
    .docs-search { min-height: 56px; margin-top: 25px; padding-left: 17px; }
    .docs-search__key { display: none; }
    .resource-section { padding: 66px 0; }
    .resource-section--topics { padding-bottom: 55px; }
    .resource-section--library { padding-top: 60px; }
    .resource-section__head { display: block; margin-bottom: 30px; text-align: center; }
    .resource-section__head > p { margin: 12px auto 0; text-align: center; }
    .resource-section__head h2 { font-size: 29px; }
    .tool-grid, .docs-library { grid-template-columns: 1fr; gap: 16px; }
    .tool-card { min-height: 0; padding: 24px; }
    .tool-card__icon { width: 60px; height: 60px; flex-basis: 60px; border-radius: 16px; }
    .tool-card h3 { margin-top: 20px; }
    .docs-topic-grid { gap: 14px; }
    .docs-topic-card { padding: 17px; }
    .docs-topic-card__image { height: 105px; }
    .docs-category { padding: 22px; }
    .resource-cta, .resource-section--library + .resource-cta { padding: 62px 0; }
    .resource-cta__box { flex-direction: column; align-items: flex-start; padding: 31px 28px; text-align: left; }
    .resource-cta__box .btn { width: 100%; }
    .resource-section--detail { padding-top: 24px; }
    .doc-detail-layout { grid-template-columns: 1fr; }
    .doc-sidebar { position: static; max-height: none; overflow: visible; }
    /* 移动端触控友好：加大点按区域与字号 */
    .doc-sidebar__toggle { padding: 15px 16px 15px 20px; min-height: 50px; }
    .doc-sidebar__links { padding: 8px 14px 14px; }
    .doc-sidebar__links a { padding: 11px 13px 11px 15px; font-size: 14px; }
    .doc-sidebar__links a:hover { padding-left: 17px; }
    .doc-sidebar__links a.is-disabled, .doc-sidebar__links a[aria-disabled="true"] { padding-left: 15px; }
    .doc-article__header { padding: 28px 24px 24px; }
    .doc-article__content { min-height: 300px; padding: 28px 24px 38px; font-size: 14px; }
    .doc-article__footer { flex-direction: column; align-items: flex-start; padding: 23px 24px; }
}

@media (max-width: 520px) {
    .resource-hero__inner { padding-top: 110px; padding-bottom: 46px; }
    .resource-eyebrow { font-size: 11px; }
    .resource-hero h1 { font-size: 34px; }
    .resource-hero__meta { font-size: 12px; }
    .docs-topic-grid { grid-template-columns: 1fr; }
    .docs-topic-card { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 15px; }
    .docs-topic-card__image { width: 82px; height: 82px; margin: 0; }
    .docs-topic-card__arrow { right: 16px; bottom: 17px; }
    .docs-topic-card p { padding-right: 14px; }
    .resource-cta__box { border-radius: 18px; }
    .docs-breadcrumb { gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    .tool-card, .docs-topic-card, .docs-search, .docs-topic-card__image i { transition: none; }
    .tool-card:hover, .docs-topic-card:hover, .docs-search:focus-within { transform: none; }
    /* 文档目录菜单：关闭动效但保留状态切换 */
    .doc-sidebar, .doc-sidebar__group, .doc-sidebar__toggle, .doc-sidebar__toggle::before,
    .doc-sidebar__toggle > span i, .doc-sidebar__toggle > i, .doc-sidebar__chevron,
    .doc-sidebar__links, .doc-sidebar__links a, .doc-sidebar__links a::before,
    .doc-sidebar__link-arrow { transition: none; animation: none; }
    .doc-sidebar__links a:hover { padding-left: 14px; }
    .doc-sidebar__links a:hover .doc-sidebar__link-arrow { opacity: 0; }
}

/* ============================================================
   工具箱页面（.tools-page）高奢动效版 —— 移植自 code.html
   所有规则用 .tools-page 限定，不影响 docs-page
   ============================================================ */

/* ====== 动画 Keyframes ====== */
@keyframes toolsFadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes toolsFloatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes toolsPulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(var(--primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}
@keyframes toolsShimmer {
    0% { left: -150%; }
    100% { left: 200%; }
}
@keyframes toolsTextShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}
@keyframes toolsOrbitFloat {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.1) translateY(-8px); }
}

/* ====== Hero 区域重构（白底 + 底部切角 + 浮动发光）====== */
.tools-page .resource-hero {
    min-height: auto;
    padding: 100px 0 110px;
    background: var(--bg-white);
    border-bottom: 0;
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
}
/* 移除工具箱 hero 的网格背景，保留纯净白底 */
.tools-page .resource-hero::before { display: none; }
/* 工具箱用单个大尺寸浮动发光圆 */
.tools-page .resource-hero__glow { display: none; }
.tools-page .hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, transparent 60%);
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
    animation: toolsFloatUpDown 8s ease-in-out infinite alternate;
}

.tools-page .resource-hero__inner {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 0;
    padding-bottom: 0;
}
.tools-page .resource-hero__content { flex: 1.1; padding-right: 20px; max-width: none; }

.tools-page .resource-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 25px;
    border-radius: var(--border-radius-pill);
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    animation: toolsFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.1s;
}

.tools-page .resource-hero h1 {
    margin-bottom: 24px;
    font-size: clamp(38px, 4.6vw, 54px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -1px;
    animation: toolsFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.2s;
}
/* 标题流动渐变文字 */
.tools-page .highlight-text {
    background: linear-gradient(120deg, var(--primary-dark) 0%, #ff8a00 50%, var(--primary-dark) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: toolsTextShimmer 4s linear infinite;
    display: inline-block;
}

.tools-page .resource-hero__content > p {
    max-width: 500px;
    margin-bottom: 35px;
    font-size: 18px;
    color: var(--text-sub);
    line-height: 1.7;
    animation: toolsFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.3s;
}

/* meta 改为带圆形图标盒的样式 */
.tools-page .resource-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 0;
    animation: toolsFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.4s;
}
.tools-page .resource-hero__meta span { display: none; }
.tools-page .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}
.tools-page .meta-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2);
}

/* Hero SVG 视觉区 */
.tools-page .resource-hero__visual {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: toolsFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.5s;
}
.tools-page .svg-illustration {
    width: 100%;
    max-width: 460px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
}
.tools-page .svg-float-main { animation: toolsFloatUpDown 6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.tools-page .svg-float-fast { animation: toolsOrbitFloat 4s ease-in-out infinite alternate; transform-box: fill-box; }
.tools-page .svg-float-slow { animation: toolsOrbitFloat 7s ease-in-out infinite alternate-reverse; transform-box: fill-box; }

/* ====== 区块标题入场 ====== */
.tools-page .resource-section__head { animation: toolsFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.tools-page .resource-kicker { letter-spacing: 2px; }

/* ====== 卡片神级交互 ====== */
.tools-page .tool-card {
    position: relative;
    overflow: hidden;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: toolsFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    text-decoration: none;
    color: inherit;
}
/* 交错入场时间线 */
.tools-page .tool-card:nth-child(1) { animation-delay: 0.1s; }
.tools-page .tool-card:nth-child(2) { animation-delay: 0.2s; }
.tools-page .tool-card:nth-child(3) { animation-delay: 0.3s; }
.tools-page .tool-card:nth-child(4) { animation-delay: 0.4s; }
.tools-page .tool-card:nth-child(5) { animation-delay: 0.5s; }
.tools-page .tool-card:nth-child(6) { animation-delay: 0.6s; }

/* 卡片高光扫描层 */
.tools-page .tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 10;
}
.tools-page .tool-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--primary-rgb), 0.4);
    z-index: 2;
}
.tools-page .tool-card:hover::before { animation: toolsShimmer 0.85s ease-in-out forwards; }

/* 图标盒：hover 缩放旋转 + 渐变背景 + 晕影 */
.tools-page .tool-card__icon {
    position: relative;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tools-page .tool-card__icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 20px;
    background: var(--primary);
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s ease;
    z-index: -1;
}
.tools-page .tool-card:hover .tool-card__icon {
    transform: scale(1.15);
    background: var(--primary-gradient);
    color: var(--bg-white);
}
.tools-page .tool-card:hover .tool-card__icon::after { opacity: 0.4; }

/* 标签 hover 变深色 */
.tools-page .tool-card__tag { transition: var(--transition); }
.tools-page .tool-card:hover .tool-card__tag {
    background: var(--text-dark);
    color: var(--primary);
}

/* 行动按钮箭头位移 */
.tools-page .tool-card__action i {
    transition: all 0.3s ease;
}
.tools-page .tool-card:hover .tool-card__action i {
    transform: translateX(8px);
}

/* 即将上线卡片：保持静音，禁用扫描 */
.tools-page .tool-card--coming:hover { transform: translateY(-5px); box-shadow: none; border-color: #b5bec9; }
.tools-page .tool-card--coming:hover::before { display: none; }

/* ====== CTA 入场 ====== */
.tools-page .resource-cta__box { animation: toolsFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.6s; }

/* ====== 工具箱移动端适配 ====== */
@media (max-width: 1080px) {
    .tools-page .resource-hero__inner { gap: 30px; }
    .tools-page .svg-illustration { max-width: 360px; }
}

@media (max-width: 768px) {
    .tools-page .resource-hero {
        padding: 70px 0 90px;
        clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%);
    }
    .tools-page .resource-hero__inner {
        display: block;
        text-align: center;
        gap: 0;
    }
    .tools-page .resource-hero__content { padding-right: 0; }
    .tools-page .resource-hero h1 { margin-inline: auto; font-size: clamp(30px, 9vw, 44px); }
    .tools-page .resource-hero__content > p { margin-inline: auto; font-size: 15px; }
    .tools-page .resource-eyebrow { margin-inline: auto; }
    .tools-page .resource-hero__meta { justify-content: center; gap: 14px 20px; }
    /* 移动端展示 SVG 插画，缩小并居中 */
    .tools-page .resource-hero__visual {
        display: flex;
        justify-content: center;
        margin-top: 40px;
        animation: toolsFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
        animation-delay: 0.5s;
    }
    .tools-page .svg-illustration { max-width: 260px; }
}

@media (max-width: 520px) {
    .tools-page .resource-hero { padding: 56px 0 80px; }
    .tools-page .resource-hero h1 { font-size: 32px; }
    .tools-page .meta-item { font-size: 13px; }
    .tools-page .meta-icon-box { width: 32px; height: 32px; }
    .tools-page .tool-card { padding: 26px 22px; }
    .tools-page .tool-card__icon { width: 60px; height: 60px; flex-basis: 60px; font-size: 24px; }
    .tools-page .svg-illustration { max-width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
    .tools-page .resource-eyebrow,
    .tools-page .resource-hero h1,
    .tools-page .resource-hero__content > p,
    .tools-page .resource-hero__meta,
    .tools-page .resource-hero__visual,
    .tools-page .tool-card,
    .tools-page .resource-section__head,
    .tools-page .resource-cta__box,
    .tools-page .hero-bg-glow,
    .tools-page .svg-float-main,
    .tools-page .svg-float-fast,
    .tools-page .svg-float-slow,
    .tools-page .highlight-text { animation: none; }
    .tools-page .tool-card:hover { transform: none; }
}

/* ============================================================
   UDID 获取页面（.udid-page）—— 全新视觉，风格统一
   ============================================================ */

/* ====== 动画 Keyframes ====== */
@keyframes udidFadeInUp {
    from { opacity: 0; transform: translateY(36px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes udidFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}
@keyframes udidPulseRing {
    0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.45); }
    70% { box-shadow: 0 0 0 22px rgba(var(--primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}
@keyframes udidParticleDrift {
    0%, 100% { transform: translate(0, 0); opacity: 0.3; }
    25% { transform: translate(20px, -30px); opacity: 0.8; }
    50% { transform: translate(-15px, -50px); opacity: 0.5; }
    75% { transform: translate(-25px, -20px); opacity: 0.6; }
}
@keyframes udidShimmer {
    0% { left: -150%; }
    100% { left: 200%; }
}
@keyframes udidBgPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.9; }
}
@keyframes udidSuccessPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes udidBtnShine {
    0% { transform: translateX(-100%) skewX(-25deg); }
    100% { transform: translateX(200%) skewX(-25deg); }
}

/* ====== Hero 区域（与 utils/tools 风格统一，无 SVG）====== */
.udid-page .resource-hero {
    min-height: auto;
    padding: 100px 0 110px;
    background: var(--bg-white);
    border-bottom: 0;
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
    overflow: hidden;
}
.udid-page .resource-hero::before { display: none; }
.udid-page .resource-hero__glow { display: none; }

.udid-page .hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, transparent 60%);
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
    animation: udidFloat 8s ease-in-out infinite alternate;
}

/* 粒子装饰 */
.udid-hero__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.udid-hero__particles span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.3;
}
.udid-hero__particles span:nth-child(1) { top: 18%; left: 12%; animation: udidParticleDrift 9s ease-in-out infinite; }
.udid-hero__particles span:nth-child(2) { top: 65%; left: 8%; width: 6px; height: 6px; animation: udidParticleDrift 11s ease-in-out infinite reverse; }
.udid-hero__particles span:nth-child(3) { top: 30%; left: 88%; width: 10px; height: 10px; animation: udidParticleDrift 10s ease-in-out infinite; }
.udid-hero__particles span:nth-child(4) { top: 75%; left: 82%; width: 5px; height: 5px; animation: udidParticleDrift 13s ease-in-out infinite reverse; }
.udid-hero__particles span:nth-child(5) { top: 50%; left: 50%; width: 4px; height: 4px; animation: udidParticleDrift 12s ease-in-out infinite; }
.udid-hero__particles span:nth-child(6) { top: 20%; left: 60%; width: 7px; height: 7px; animation: udidParticleDrift 14s ease-in-out infinite reverse; }

.udid-page .resource-hero__inner {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 0;
    padding-bottom: 0;
}
.udid-page .resource-hero__content { flex: 1.1; padding-right: 20px; max-width: none; }

/* Hero 右侧二维码视觉区 */
.udid-page .resource-hero__visual {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: udidFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.5s;
}

/* eyebrow / 标题 / 描述入场动画 */
.udid-page .resource-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 25px;
    border-radius: var(--border-radius-pill);
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    animation: udidFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.1s;
}
.udid-page .resource-hero h1 {
    margin-bottom: 24px;
    font-size: clamp(38px, 4.6vw, 54px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -1px;
    animation: udidFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.2s;
}
.udid-page .highlight-text {
    background: linear-gradient(120deg, var(--primary-dark) 0%, #ff8a00 50%, var(--primary-dark) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: toolsTextShimmer 4s linear infinite;
    display: inline-block;
}
.udid-page .resource-hero__content > p {
    max-width: 540px;
    margin-bottom: 35px;
    font-size: 18px;
    color: var(--text-sub);
    line-height: 1.7;
    animation: udidFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.3s;
}
.udid-page .resource-hero__content > p strong { color: var(--text-dark); font-weight: 700; }
.udid-url {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9em;
    word-break: break-all;
}
.udid-page .resource-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 0;
    animation: udidFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.4s;
}
.udid-page .resource-hero__meta span { display: none; }
.udid-page .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}
.udid-page .meta-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2);
}

/* ====== 二维码卡片（hero 右侧）====== */
.udid-qr-card {
    position: relative;
    width: 300px;
    padding: 20px;
    border-radius: 24px;
    background: var(--primary-light);
    box-shadow: 0 20px 50px rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    animation: udidFloat 6s ease-in-out infinite;
    overflow: hidden;
}
.udid-qr-card__glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(45px);
    opacity: 0.18;
    pointer-events: none;
    animation: udidBgPulse 4s ease-in-out infinite;
}
.udid-qr-card__img {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
}
.udid-qr-card__img img { width: 100%; height: 100%; object-fit: contain; }
.udid-qr-card__tip {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    color: var(--primary-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.udid-qr-card__tip i { color: var(--primary-dark); }

/* ====== 信息卡片（独立全宽）====== */
.udid-info-section { padding: 80px 0 40px; }
.udid-info-card {
    display: flex;
    gap: 32px;
    padding: 44px 48px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fffdf6 0%, #fff6d8 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    box-shadow: 0 20px 50px rgba(var(--primary-rgb), 0.08);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.udid-info-card.udid-in-view { opacity: 1; transform: translateY(0); }
.udid-info-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
}
.udid-info-card__icon {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 30px;
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 1;
}
.udid-info-card__body { flex: 1; position: relative; z-index: 1; }
.udid-info-card__body .resource-kicker { display: block; margin-bottom: 6px; }
.udid-info-card__body h2 {
    margin: 0 0 14px;
    font-size: clamp(24px, 2.6vw, 32px);
    color: var(--text-dark);
    line-height: 1.3;
}
.udid-info-card__body > p {
    margin: 0 0 20px;
    color: var(--text-sub);
    font-size: 16px;
    line-height: 1.8;
    max-width: 760px;
}
.udid-info-card__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}
.udid-info-card__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-main);
    font-weight: 500;
}
.udid-info-card__list i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 10px;
}

/* ====== 警告提示（PC端）====== */
.udid-warn-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 16px 22px;
    border-radius: var(--border-radius-sm);
    background: #fff3cd;
    border: 1px solid #ffe69c;
    color: #97600d;
    font-size: 15px;
}
.udid-warn-prompt i { font-size: 20px; color: #e6a700; flex-shrink: 0; }

/* ====== 服务卡片 ====== */
.udid-services-section { padding-top: 70px; }
.udid-service-card {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    animation: udidFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s, border-color 0.3s;
}
.udid-service-card.udid-in-view { opacity: 1; transform: translateY(0); }
.udid-service-card:nth-child(1) { animation-delay: 0.1s; }
.udid-service-card:nth-child(2) { animation-delay: 0.2s; }
.udid-service-card:nth-child(3) { animation-delay: 0.3s; }
.udid-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 10;
}
.udid-service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--primary-rgb), 0.4);
}
.udid-service-card:hover::before { animation: udidShimmer 0.85s ease-in-out forwards; }
.udid-service-card .tool-card__icon { transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.udid-service-card:hover .tool-card__icon {
    transform: scale(1.15);
    background: var(--primary-gradient);
    color: var(--bg-white);
}
.udid-service-card:hover .tool-card__action i { transform: translateX(6px); }

/* CTA 入场 */
.udid-page .resource-cta__box {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.udid-page .resource-cta__box.udid-in-view { opacity: 1; transform: translateY(0); }

/* ============================================================
   移动端聚焦视图（.udid-mobile-view）
   ============================================================ */
.udid-mobile-view {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    background: linear-gradient(160deg, #fffdf6 0%, #fff8e8 40%, #fff3d4 100%);
}

/* 移动端自动显示（CSS 兜底，JS 负责隐藏 PC 元素）*/
@media (max-width: 750px) {
    .udid-mobile-view { display: flex; }
}

.udid-mobile-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.udid-mobile-bg span {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(60px);
    opacity: 0.18;
}
.udid-mobile-bg span:nth-child(1) { width: 240px; height: 240px; top: -60px; right: -60px; animation: udidBgPulse 6s ease-in-out infinite; }
.udid-mobile-bg span:nth-child(2) { width: 200px; height: 200px; bottom: -40px; left: -40px; animation: udidBgPulse 8s ease-in-out infinite reverse; }
.udid-mobile-bg span:nth-child(3) { width: 160px; height: 160px; top: 40%; left: 50%; transform: translateX(-50%); opacity: 0.08; animation: udidBgPulse 7s ease-in-out infinite; }

.udid-mobile-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    padding: 40px 30px 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(119, 91, 7, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    text-align: center;
    animation: udidFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.udid-mobile-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 36px;
    animation: udidPulseRing 2.5s infinite;
}
.udid-mobile-card__icon--success {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #fff;
    animation: udidSuccessPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.udid-mobile-card__title {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
}
.udid-mobile-card__desc {
    margin: 0 0 24px;
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.6;
}
.udid-mobile-card__tip {
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--text-placeholder);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.udid-mobile-card__tip i { color: var(--primary-dark); }

/* 警告提示（移动端）*/
.udid-mobile-warn {
    display: none;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: var(--border-radius-sm);
    background: #fff3cd;
    border: 1px solid #ffe69c;
    color: #97600d;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}
.udid-mobile-warn i { font-size: 18px; color: #e6a700; flex-shrink: 0; margin-top: 1px; }

/* 按钮 */
.udid-mobile-btn {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    font-weight: 700;
    border-radius: var(--border-radius-pill);
    position: relative;
    overflow: hidden;
}
.udid-mobile-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%) skewX(-25deg);
    pointer-events: none;
}
.udid-mobile-btn:active::after { animation: udidBtnShine 0.7s ease-out; }
.udid-mobile-btn:active { transform: scale(0.97); }

/* 信息说明 */
.udid-mobile-info {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    padding: 20px;
    border-radius: var(--border-radius-sm);
    background: var(--bg-light);
    text-align: left;
}
.udid-mobile-info__icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 16px;
}
.udid-mobile-info__body strong {
    display: block;
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.udid-mobile-info__body p {
    margin: 0;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
}

/* 操作步骤 */
.udid-mobile-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}
.udid-mobile-step {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    font-size: 15px;
    color: var(--text-main);
    font-weight: 500;
}
.udid-mobile-step__num {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

/* UDID 结果展示 */
.udid-mobile-result {
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: var(--border-radius-sm);
    background: var(--bg-light);
    border: 1px dashed rgba(var(--primary-rgb), 0.35);
    text-align: left;
}
.udid-mobile-result__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}
.udid-mobile-result__value {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    word-break: break-all;
    line-height: 1.5;
    font-family: 'Courier New', 'SF Mono', monospace;
    letter-spacing: 0.5px;
}

/* ====== 响应式 ====== */
@media (max-width: 1080px) {
    .udid-page .resource-hero__inner { gap: 30px; }
    .udid-qr-card { width: 260px; }
    .udid-info-card { padding: 36px 36px; gap: 24px; }
}

@media (max-width: 768px) {
    .udid-page .resource-hero {
        padding: 70px 0 90px;
        clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%);
    }
    .udid-page .resource-hero__inner {
        display: block;
        text-align: center;
    }
    .udid-page .resource-hero__content { padding-right: 0; max-width: none; }
    .udid-page .resource-hero h1 { margin-inline: auto; font-size: clamp(30px, 9vw, 44px); }
    .udid-page .resource-hero__content > p { margin-inline: auto; font-size: 15px; }
    .udid-page .resource-eyebrow { margin-inline: auto; }
    .udid-page .resource-hero__meta { justify-content: center; gap: 14px 20px; }
    .udid-page .resource-hero__visual {
        display: flex;
        justify-content: center;
        margin-top: 40px;
    }
    .udid-qr-card { width: 240px; }
    .udid-info-section { padding: 60px 0 30px; }
    .udid-info-card {
        flex-direction: column;
        padding: 28px 24px;
        gap: 18px;
    }
    .udid-info-card__icon { width: 60px; height: 60px; flex-basis: 60px; font-size: 26px; }
    .udid-info-card__body h2 { font-size: 22px; }
    .udid-info-card__body > p { font-size: 14px; }
    .udid-info-card__list { gap: 10px 18px; }
    .udid-info-card__list li { font-size: 14px; }
    .udid-services-section { padding-top: 50px; }
    .udid-services-section .resource-section__head { text-align: center; }
}

@media (max-width: 520px) {
    .udid-page .resource-hero { padding: 56px 0 80px; }
    .udid-page .resource-hero h1 { font-size: 30px; }
    .udid-page .meta-item { font-size: 13px; }
    .udid-page .meta-icon-box { width: 32px; height: 32px; }
    .udid-qr-card { width: 200px; padding: 16px; }
    .udid-qr-card__img { padding: 12px; }
    .udid-info-card { padding: 24px 20px; }
    .udid-mobile-card { padding: 32px 24px 28px; }
    .udid-mobile-card__title { font-size: 22px; }
    .udid-mobile-card__icon { width: 70px; height: 70px; font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    .udid-page .resource-eyebrow,
    .udid-page .resource-hero h1,
    .udid-page .resource-hero__content > p,
    .udid-page .resource-hero__meta,
    .udid-page .resource-hero__visual,
    .udid-page .hero-bg-glow,
    .udid-page .highlight-text,
    .udid-qr-card,
    .udid-hero__particles span,
    .udid-qr-card__glow,
    .udid-mobile-card,
    .udid-mobile-card__icon,
    .udid-mobile-card__icon--success,
    .udid-mobile-bg span { animation: none; }
    .udid-info-card, .udid-service-card, .udid-page .resource-cta__box { opacity: 1; transform: none; transition: none; }
    .udid-service-card:hover { transform: none; }
}

/* ============================================================
   Plist 生成页面（.plist-page）—— 全新视觉，风格统一
   复用 udid-page 的 Hero / 信息卡 / 服务卡 / CTA 模式
   ============================================================ */

/* ====== Hero（白底 + 底部切角 + 浮动发光，与 udid 一致）====== */
.plist-page .resource-hero {
    min-height: auto;
    padding: 100px 0 110px;
    background: var(--bg-white);
    border-bottom: 0;
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
    overflow: hidden;
}
.plist-page .resource-hero::before { display: none; }
.plist-page .resource-hero__glow { display: none; }
.plist-page .hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, transparent 60%);
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
    animation: udidFloat 8s ease-in-out infinite alternate;
}

/* 粒子装饰（复用 udid 动画） */
.plist-hero__particles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.plist-hero__particles span {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.3;
}
.plist-hero__particles span:nth-child(1) { top: 18%; left: 12%; animation: udidParticleDrift 9s ease-in-out infinite; }
.plist-hero__particles span:nth-child(2) { top: 65%; left: 8%; width: 6px; height: 6px; animation: udidParticleDrift 11s ease-in-out infinite reverse; }
.plist-hero__particles span:nth-child(3) { top: 30%; left: 88%; width: 10px; height: 10px; animation: udidParticleDrift 10s ease-in-out infinite; }
.plist-hero__particles span:nth-child(4) { top: 75%; left: 82%; width: 5px; height: 5px; animation: udidParticleDrift 13s ease-in-out infinite reverse; }
.plist-hero__particles span:nth-child(5) { top: 50%; left: 50%; width: 4px; height: 4px; animation: udidParticleDrift 12s ease-in-out infinite; }
.plist-hero__particles span:nth-child(6) { top: 20%; left: 60%; width: 7px; height: 7px; animation: udidParticleDrift 14s ease-in-out infinite reverse; }

.plist-page .resource-hero__inner {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 0;
    padding-bottom: 0;
}
.plist-page .resource-hero__content { flex: 1.1; padding-right: 20px; max-width: none; }

.plist-page .resource-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 25px;
    border-radius: var(--border-radius-pill);
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    animation: udidFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.1s;
}
.plist-page .resource-hero h1 {
    margin-bottom: 24px;
    font-size: clamp(38px, 4.6vw, 54px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -1px;
    animation: udidFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.2s;
}
.plist-page .highlight-text {
    background: linear-gradient(120deg, var(--primary-dark) 0%, #ff8a00 50%, var(--primary-dark) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: toolsTextShimmer 4s linear infinite;
    display: inline-block;
}
.plist-page .resource-hero__content > p {
    max-width: 540px;
    margin-bottom: 35px;
    font-size: 18px;
    color: var(--text-sub);
    line-height: 1.7;
    animation: udidFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.3s;
}
.plist-page .resource-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 0;
    animation: udidFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.4s;
}
.plist-page .resource-hero__meta span { display: none; }
.plist-page .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}
.plist-page .meta-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2);
}

/* Hero 右侧代码预览卡 */
.plist-page .resource-hero__visual {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: udidFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.5s;
}
.plist-code-card {
    position: relative;
    width: 360px;
    max-width: 100%;
    border-radius: 20px;
    background: #1f2329;
    box-shadow: 0 24px 60px rgba(30, 25, 8, 0.22);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: udidFloat 6s ease-in-out infinite;
}
.plist-code-card__glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(50px);
    opacity: 0.22;
    pointer-events: none;
    animation: udidBgPulse 4s ease-in-out infinite;
}
.plist-code-card__top {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.plist-code-card__top span { width: 9px; height: 9px; border-radius: 50%; background: #3a3f47; }
.plist-code-card__top span:first-child { background: #ff5f57; }
.plist-code-card__top span:nth-child(2) { background: #febc2e; }
.plist-code-card__top span:nth-child(3) { background: #28c840; }
.plist-code-card__name {
    margin-left: 10px;
    color: #8a8f98;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.plist-code-card__name i { color: var(--primary); }
.plist-code-card__body {
    margin: 0;
    padding: 16px 20px 18px;
    max-height: 310px;
    color: #c8cdd6;
    font-family: 'SF Mono', 'Courier New', Consolas, monospace;
    font-size: 11.5px;
    line-height: 1.75;
    overflow: auto;
    white-space: pre;
}
.plist-code-card__body code { font-family: inherit; }
/* 低存在感滚动条 */
.plist-code-card__body::-webkit-scrollbar { width: 5px; height: 5px; }
.plist-code-card__body::-webkit-scrollbar-track { background: transparent; }
.plist-code-card__body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
.plist-code-card__body::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); }
.plist-code-card__body { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.15) transparent; }
.plist-code-card__body .c-tag { color: #7a7f88; }
.plist-code-card__body .c-key { color: #f6c24c; }
.plist-code-card__body .c-attr { color: #e5a8a8; }
.plist-code-card__body .c-str { color: #9ed5a3; }

/* ====== 表单区域 ====== */
.plist-form-section { padding-top: 92px; padding-bottom: 50px; }

.plist-form-card {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 52px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.plist-form-card.plist-in-view { opacity: 1; transform: translateY(0); }
.plist-form-card__decor {
    position: absolute;
    top: -90px;
    right: -90px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(90px);
    opacity: 0.1;
    pointer-events: none;
}

.plist-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 32px;
    position: relative;
    z-index: 1;
}

.plist-field { min-width: 0; }
.plist-field__label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 700;
}
.plist-field__label i { color: var(--primary-dark); font-size: 14px; }
.plist-field__req { color: #e5484d; }

.plist-field__control { position: relative; }
.plist-field__input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1.5px solid #e6e6e6;
    border-radius: 12px;
    background: #fafafa;
    color: var(--text-main);
    font-size: 15px;
    font-family: inherit;
    outline: 0;
    transition: var(--transition);
}
.plist-field__input::placeholder { color: #b0b0b0; }
.plist-field__input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}

/* 错误态（保留 form-error 类供 JS 切换） */
.plist-field .plist-field__error {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #e5484d;
    font-size: 13px;
    font-weight: 500;
}
.plist-field.form-error .plist-field__error { display: flex; }
.plist-field.form-error .plist-field__input {
    border-color: #e5484d;
    background: #fff5f5;
}
.plist-field.form-error .plist-field__input:focus {
    box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.12);
}

.plist-form-card__action {
    display: flex;
    justify-content: center;
    margin-top: 38px;
    position: relative;
    z-index: 1;
}
.plist-form-btn {
    min-width: 220px;
    padding: 16px 40px;
    font-size: 1.05rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}
.plist-form-btn:active { transform: translateY(0) scale(0.98); }

/* ====== 信息卡 / 服务卡（复用 udid-info-card / tool-card）====== */
.plist-info-section { padding-top: 60px; padding-bottom: 40px; }
.plist-services-section { padding-top: 70px; }

/* 滚动入场（复用类名风格） */
.plist-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.plist-reveal.plist-in-view { opacity: 1; transform: translateY(0); }
.plist-services-section .plist-reveal:nth-child(1) { transition-delay: 0s; }
.plist-services-section .plist-reveal:nth-child(2) { transition-delay: 0.12s; }
.plist-services-section .plist-reveal:nth-child(3) { transition-delay: 0.24s; }

/* CTA 入场 */
.plist-page .resource-cta__box {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.plist-page .resource-cta__box.plist-in-view { opacity: 1; transform: translateY(0); }

/* ====== 响应式 ====== */
@media (max-width: 1080px) {
    .plist-page .resource-hero__inner { gap: 30px; }
    .plist-code-card { width: 300px; }
    .plist-form-card { padding: 38px 36px; }
}

@media (max-width: 768px) {
    .plist-page .resource-hero {
        padding: 70px 0 90px;
        clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%);
    }
    .plist-page .resource-hero__inner {
        display: block;
        text-align: center;
    }
    .plist-page .resource-hero__content { padding-right: 0; max-width: none; }
    .plist-page .resource-hero h1 { margin-inline: auto; font-size: clamp(30px, 9vw, 44px); }
    .plist-page .resource-hero__content > p { margin-inline: auto; font-size: 15px; }
    .plist-page .resource-eyebrow { margin-inline: auto; }
    .plist-page .resource-hero__meta { justify-content: center; gap: 14px 20px; }
    .plist-page .resource-hero__visual { display: none; }
    .plist-form-section { padding-top: 66px; padding-bottom: 40px; }
    .plist-form-card { padding: 28px 22px; }
    .plist-form-grid { grid-template-columns: 1fr; gap: 20px; }
    .plist-form-btn { width: 100%; min-width: 0; }
    .plist-info-section { padding: 50px 0 30px; }
    .plist-services-section { padding-top: 50px; }
    .plist-services-section .resource-section__head { text-align: center; }
}

@media (max-width: 520px) {
    .plist-page .resource-hero { padding: 56px 0 80px; }
    .plist-page .resource-hero h1 { font-size: 30px; }
    .plist-page .meta-item { font-size: 13px; }
    .plist-page .meta-icon-box { width: 32px; height: 32px; }
    .plist-code-card { max-width: 300px; }
    .plist-code-card__body { font-size: 10.5px; padding: 14px 16px 18px; }
    .plist-form-card { padding: 24px 18px; border-radius: 18px; }
    .plist-field__input { height: 48px; font-size: 14px; }
    .plist-form-card__action { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .plist-page .resource-eyebrow,
    .plist-page .resource-hero h1,
    .plist-page .resource-hero__content > p,
    .plist-page .resource-hero__meta,
    .plist-page .resource-hero__visual,
    .plist-page .hero-bg-glow,
    .plist-page .highlight-text,
    .plist-code-card,
    .plist-code-card__glow,
    .plist-hero__particles span { animation: none; }
    .plist-form-card, .plist-reveal, .plist-page .resource-cta__box {
        opacity: 1; transform: none; transition: none;
    }
}

/* ============================================================
   Keystore 安卓证书页面（.keystore-page）—— 全新视觉，风格统一
   复用 plist-page / udid-page 的 Hero / 表单 / 信息卡 / 服务卡 / CTA 模式
   ============================================================ */

/* ====== Hero（白底 + 底部切角 + 浮动发光，与 plist / udid 一致）====== */
.keystore-page .resource-hero {
    min-height: auto;
    padding: 100px 0 110px;
    background: var(--bg-white);
    border-bottom: 0;
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
    overflow: hidden;
}
.keystore-page .resource-hero::before { display: none; }
.keystore-page .resource-hero__glow { display: none; }
.keystore-page .hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, transparent 60%);
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
    animation: udidFloat 8s ease-in-out infinite alternate;
}

/* 粒子装饰（复用 udid 动画） */
.keystore-hero__particles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.keystore-hero__particles span {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.3;
}
.keystore-hero__particles span:nth-child(1) { top: 18%; left: 12%; animation: udidParticleDrift 9s ease-in-out infinite; }
.keystore-hero__particles span:nth-child(2) { top: 65%; left: 8%; width: 6px; height: 6px; animation: udidParticleDrift 11s ease-in-out infinite reverse; }
.keystore-hero__particles span:nth-child(3) { top: 30%; left: 88%; width: 10px; height: 10px; animation: udidParticleDrift 10s ease-in-out infinite; }
.keystore-hero__particles span:nth-child(4) { top: 75%; left: 82%; width: 5px; height: 5px; animation: udidParticleDrift 13s ease-in-out infinite reverse; }
.keystore-hero__particles span:nth-child(5) { top: 50%; left: 50%; width: 4px; height: 4px; animation: udidParticleDrift 12s ease-in-out infinite; }
.keystore-hero__particles span:nth-child(6) { top: 20%; left: 60%; width: 7px; height: 7px; animation: udidParticleDrift 14s ease-in-out infinite reverse; }

.keystore-page .resource-hero__inner {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 0;
    padding-bottom: 0;
}
.keystore-page .resource-hero__content { flex: 1.1; padding-right: 20px; max-width: none; }

.keystore-page .resource-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 25px;
    border-radius: var(--border-radius-pill);
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    animation: udidFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.1s;
}
.keystore-page .resource-hero h1 {
    margin-bottom: 24px;
    font-size: clamp(38px, 4.6vw, 54px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -1px;
    animation: udidFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.2s;
}
.keystore-page .highlight-text {
    background: linear-gradient(120deg, var(--primary-dark) 0%, #ff8a00 50%, var(--primary-dark) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: toolsTextShimmer 4s linear infinite;
    display: inline-block;
}
.keystore-page .resource-hero__content > p {
    max-width: 540px;
    margin-bottom: 35px;
    font-size: 18px;
    color: var(--text-sub);
    line-height: 1.7;
    animation: udidFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.3s;
}
.keystore-page .resource-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 0;
    animation: udidFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.4s;
}
.keystore-page .resource-hero__meta span { display: none; }
.keystore-page .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}
.keystore-page .meta-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2);
}

/* Hero 右侧证书预览卡 */
.keystore-page .resource-hero__visual {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: udidFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.5s;
}
.keystore-cert-card {
    position: relative;
    width: 360px;
    max-width: 100%;
    border-radius: 22px;
    background: linear-gradient(150deg, #fffdf6 0%, #fff8e8 100%);
    box-shadow: 0 24px 60px rgba(119, 91, 7, 0.16);
    overflow: hidden;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    animation: udidFloat 6s ease-in-out infinite;
}
.keystore-cert-card__glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(55px);
    opacity: 0.24;
    pointer-events: none;
    animation: udidBgPulse 4s ease-in-out infinite;
}
.keystore-cert-card__top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px 18px;
    border-bottom: 1px dashed rgba(var(--primary-rgb), 0.25);
    position: relative;
    z-index: 1;
}
.keystore-cert-card__seal {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 22px;
    box-shadow: var(--shadow-glow);
}
.keystore-cert-card__heading { flex: 1; min-width: 0; }
.keystore-cert-card__heading strong {
    display: block;
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.3;
}
.keystore-cert-card__heading span {
    display: block;
    margin-top: 2px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 600;
}
.keystore-cert-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: var(--border-radius-pill);
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    font-size: 12px;
    font-weight: 700;
}
.keystore-cert-card__body {
    padding: 16px 24px 14px;
    position: relative;
    z-index: 1;
}
.keystore-cert-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.keystore-cert-card__row:last-child { border-bottom: 0; }
.keystore-cert-card__key {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-sub);
    font-size: 13px;
    font-weight: 600;
}
.keystore-cert-card__key i { color: var(--primary-dark); font-size: 12px; }
.keystore-cert-card__val {
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 700;
    font-family: 'SF Mono', 'Courier New', Consolas, monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.keystore-cert-card__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    position: relative;
    z-index: 1;
}
.keystore-cert-card__footer i { font-size: 14px; }

/* ====== 表单区域 ====== */
.keystore-form-section { padding-top: 92px; padding-bottom: 50px; }

.keystore-form-card {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 52px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.keystore-form-card.keystore-in-view { opacity: 1; transform: translateY(0); }
.keystore-form-card__decor {
    position: absolute;
    top: -90px;
    right: -90px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(90px);
    opacity: 0.1;
    pointer-events: none;
}

.keystore-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 32px;
    position: relative;
    z-index: 1;
}

.keystore-field { min-width: 0; }
.keystore-field--full { grid-column: 1 / -1; }
.keystore-field__label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 700;
}
.keystore-field__label i { color: var(--primary-dark); font-size: 14px; }
.keystore-field__req { color: #e5484d; }

.keystore-field__control { position: relative; }
.keystore-field__input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1.5px solid #e6e6e6;
    border-radius: 12px;
    background: #fafafa;
    color: var(--text-main);
    font-size: 15px;
    font-family: inherit;
    outline: 0;
    transition: var(--transition);
}
.keystore-field__input::placeholder { color: #b0b0b0; }
.keystore-field__input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}

/* 错误态（保留 form-error 类供 JS 切换） */
.keystore-field .keystore-field__error {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #e5484d;
    font-size: 13px;
    font-weight: 500;
}
.keystore-field.form-error .keystore-field__error { display: flex; }
.keystore-field.form-error .keystore-field__input {
    border-color: #e5484d;
    background: #fff5f5;
}
.keystore-field.form-error .keystore-field__input:focus {
    box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.12);
}

.keystore-form-card__action {
    display: flex;
    justify-content: center;
    margin-top: 38px;
    position: relative;
    z-index: 1;
}
.keystore-form-btn {
    min-width: 260px;
    padding: 16px 40px;
    font-size: 1.05rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}
.keystore-form-btn:active { transform: translateY(0) scale(0.98); }

/* ====== 信息卡 / 服务卡（复用 udid-info-card / tool-card 模式）====== */
.keystore-info-section { padding-top: 60px; padding-bottom: 40px; }
.keystore-info-card {
    display: flex;
    gap: 32px;
    padding: 44px 48px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fffdf6 0%, #fff6d8 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    box-shadow: 0 20px 50px rgba(var(--primary-rgb), 0.08);
    position: relative;
    overflow: hidden;
}
.keystore-info-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
}
.keystore-info-card__icon {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 30px;
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 1;
}
.keystore-info-card__body { flex: 1; position: relative; z-index: 1; }
.keystore-info-card__body .resource-kicker { display: block; margin-bottom: 6px; }
.keystore-info-card__body h2 {
    margin: 0 0 14px;
    font-size: clamp(24px, 2.6vw, 32px);
    color: var(--text-dark);
    line-height: 1.3;
}
.keystore-info-card__body > p {
    margin: 0 0 20px;
    color: var(--text-sub);
    font-size: 16px;
    line-height: 1.8;
    max-width: 760px;
}
.keystore-info-card__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}
.keystore-info-card__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-main);
    font-weight: 500;
}
.keystore-info-card__list i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 10px;
}

.keystore-services-section { padding-top: 70px; }
.keystore-service-card {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    animation: udidFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s, border-color 0.3s;
}
.keystore-service-card.keystore-in-view { opacity: 1; transform: translateY(0); }
.keystore-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 10;
}
.keystore-service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--primary-rgb), 0.4);
}
.keystore-service-card:hover::before { animation: udidShimmer 0.85s ease-in-out forwards; }
.keystore-service-card .tool-card__icon { transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.keystore-service-card:hover .tool-card__icon {
    transform: scale(1.15);
    background: var(--primary-gradient);
    color: var(--bg-white);
}
.keystore-service-card:hover .tool-card__action i { transform: translateX(6px); }

/* 滚动入场（复用类名风格） */
.keystore-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.keystore-reveal.keystore-in-view { opacity: 1; transform: translateY(0); }
.keystore-services-section .keystore-reveal:nth-child(1) { transition-delay: 0s; }
.keystore-services-section .keystore-reveal:nth-child(2) { transition-delay: 0.12s; }
.keystore-services-section .keystore-reveal:nth-child(3) { transition-delay: 0.24s; }

/* CTA 入场 */
.keystore-page .resource-cta__box {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.keystore-page .resource-cta__box.keystore-in-view { opacity: 1; transform: translateY(0); }

/* ====== 响应式 ====== */
@media (max-width: 1080px) {
    .keystore-page .resource-hero__inner { gap: 30px; }
    .keystore-cert-card { width: 300px; }
    .keystore-form-card { padding: 38px 36px; }
}

@media (max-width: 768px) {
    .keystore-page .resource-hero {
        padding: 70px 0 90px;
        clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%);
    }
    .keystore-page .resource-hero__inner {
        display: block;
        text-align: center;
    }
    .keystore-page .resource-hero__content { padding-right: 0; max-width: none; }
    .keystore-page .resource-hero h1 { margin-inline: auto; font-size: clamp(30px, 9vw, 44px); }
    .keystore-page .resource-hero__content > p { margin-inline: auto; font-size: 15px; }
    .keystore-page .resource-eyebrow { margin-inline: auto; }
    .keystore-page .resource-hero__meta { justify-content: center; gap: 14px 20px; }
    .keystore-page .resource-hero__visual {
        display: flex;
        justify-content: center;
        margin-top: 40px;
    }
    .keystore-cert-card { width: 100%; max-width: 340px; }
    .keystore-form-section { padding-top: 66px; padding-bottom: 40px; }
    .keystore-form-card { padding: 28px 22px; }
    .keystore-form-grid { grid-template-columns: 1fr; gap: 20px; }
    .keystore-form-btn { width: 100%; min-width: 0; }
    .keystore-info-section { padding: 50px 0 30px; }
    .keystore-info-card {
        flex-direction: column;
        padding: 28px 24px;
        gap: 18px;
    }
    .keystore-info-card__icon { width: 60px; height: 60px; flex-basis: 60px; font-size: 26px; }
    .keystore-info-card__body h2 { font-size: 22px; }
    .keystore-info-card__body > p { font-size: 14px; }
    .keystore-info-card__list { gap: 10px 18px; }
    .keystore-info-card__list li { font-size: 14px; }
    .keystore-services-section { padding-top: 50px; }
    .keystore-services-section .resource-section__head { text-align: center; }
}

@media (max-width: 520px) {
    .keystore-page .resource-hero { padding: 56px 0 80px; }
    .keystore-page .resource-hero h1 { font-size: 30px; }
    .keystore-page .meta-item { font-size: 13px; }
    .keystore-page .meta-icon-box { width: 32px; height: 32px; }
    .keystore-cert-card { max-width: 300px; }
    .keystore-cert-card__top { padding: 18px 20px 15px; gap: 10px; }
    .keystore-cert-card__seal { width: 44px; height: 44px; flex-basis: 44px; font-size: 19px; }
    .keystore-cert-card__heading strong { font-size: 15px; }
    .keystore-cert-card__heading span { font-size: 11px; }
    .keystore-cert-card__badge { padding: 4px 8px; font-size: 11px; }
    .keystore-cert-card__body { padding: 14px 20px 12px; }
    .keystore-cert-card__row { padding: 8px 0; }
    .keystore-cert-card__key { font-size: 12px; }
    .keystore-cert-card__val { font-size: 12px; }
    .keystore-cert-card__footer { padding: 12px 20px; font-size: 11px; }
    .keystore-form-card { padding: 24px 18px; border-radius: 18px; }
    .keystore-field__input { height: 48px; font-size: 14px; }
    .keystore-form-card__action { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .keystore-page .resource-eyebrow,
    .keystore-page .resource-hero h1,
    .keystore-page .resource-hero__content > p,
    .keystore-page .resource-hero__meta,
    .keystore-page .resource-hero__visual,
    .keystore-page .hero-bg-glow,
    .keystore-page .highlight-text,
    .keystore-cert-card,
    .keystore-cert-card__glow,
    .keystore-hero__particles span { animation: none; }
    .keystore-form-card, .keystore-reveal, .keystore-page .resource-cta__box {
        opacity: 1; transform: none; transition: none;
    }
    .keystore-service-card:hover { transform: none; }
}

/* ============================================================
   资讯中心列表页（.docs-news-page）—— 文章清单（非卡片）
   仅作用于 news 分组，不影响其他文档分类页
   ============================================================ */
.docs-news-page .news-section { background: #fafafa; border-top: 1px solid #f0f0f0; }
.docs-news-page .news-section .resource-section__head { margin-bottom: 30px; }
.docs-news-page .news-section .resource-section__head > p { color: var(--resource-muted); }

.docs-news-page .news-list {
    border-top: 1px solid #ececec;
}

.docs-news-page .news-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 22px;
    padding: 24px 18px;
    border-bottom: 1px solid #ececec;
    text-decoration: none;
    color: inherit;
    transition: background-color .25s ease, padding .25s ease;
}
.docs-news-page .news-item:hover { background: #fffaf0; padding-left: 26px; }

.docs-news-page .news-item__index {
    color: #d6d6d6;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    text-align: center;
}
.docs-news-page .news-item:hover .news-item__index { color: var(--primary); }

.docs-news-page .news-item__main { min-width: 0; display: flex; flex-direction: column; }
.docs-news-page .news-item__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.docs-news-page .news-item__tag {
    padding: 3px 9px;
    border-radius: var(--border-radius-pill);
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
}
.docs-news-page .news-item__meta time { color: #aaa; font-size: 12px; }

.docs-news-page .news-item__title {
    color: var(--text-dark);
    font-size: 17px;
    font-weight: 750;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.docs-news-page .news-item:hover .news-item__title { color: var(--primary-dark); }

.docs-news-page .news-item__summary {
    margin-top: 6px;
    color: var(--resource-muted);
    font-size: 13px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.docs-news-page .news-item__arrow {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #e8e8e8;
    border-radius: 50%;
    color: #c4c4c4;
    font-size: 12px;
    transition: all .25s ease;
}
.docs-news-page .news-item:hover .news-item__arrow {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.docs-news-page .news-empty { padding: 70px 20px; text-align: center; color: var(--resource-muted); }

.docs-news-page .news-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}
.docs-news-page .news-pagination__link,
.docs-news-page .news-pagination__num {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    background: #fff;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: all .2s ease;
}
.docs-news-page .news-pagination__link:hover:not(.is-disabled),
.docs-news-page .news-pagination__num:hover:not(.is-active) {
    border-color: var(--primary);
    color: var(--primary-dark);
}
.docs-news-page .news-pagination__num.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}
.docs-news-page .news-pagination__link.is-disabled {
    color: #ccc;
    background: #fafafa;
    pointer-events: none;
}

@media (max-width: 768px) {
    .docs-news-page .news-pagination { gap: 6px; margin-top: 28px; }
    .docs-news-page .news-pagination__link,
    .docs-news-page .news-pagination__num { min-width: 32px; height: 32px; padding: 0 8px; font-size: 12px; border-radius: 8px; }
    .docs-news-page .news-item {
        grid-template-columns: 40px minmax(0, 1fr) 30px;
        gap: 12px;
        padding: 20px 10px;
    }
    .docs-news-page .news-item:hover { padding-left: 10px; }
    .docs-news-page .news-item__index { font-size: 24px; }
    .docs-news-page .news-item__title { font-size: 15px; white-space: normal; }
    .docs-news-page .news-item__arrow { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .docs-news-page .news-item, .docs-news-page .news-item__arrow { transition: none; }
}

/* ============================================================
   文档中心：把偏棕的辅助色改为明亮金黄色
   仅作用于文档中心页面，不改变全站金黄主题色
   ============================================================ */
.docs-page .resource-eyebrow,
.docs-page .resource-eyebrow i,
.docs-detail-page .resource-eyebrow,
.docs-detail-page .resource-eyebrow i,
.docs-page .docs-search,
.docs-page .docs-search__key,
.docs-page .resource-kicker,
.docs-page .docs-topic-card span,
.docs-page .docs-article-link:hover,
.docs-page .resource-cta__box span,
.docs-page .docs-breadcrumb a:hover,
.docs-detail-page .doc-sidebar__toggle:hover,
.docs-detail-page .doc-sidebar__group.is-open .doc-sidebar__toggle,
.docs-detail-page .doc-sidebar__toggle > span i,
.docs-detail-page .doc-sidebar__toggle:hover > span i,
.docs-detail-page .doc-sidebar__toggle:hover > i,
.docs-detail-page .doc-sidebar__toggle:hover .doc-sidebar__chevron,
.docs-detail-page .doc-sidebar__group.is-open .doc-sidebar__chevron,
.docs-detail-page .doc-sidebar__links a:hover,
.docs-detail-page .doc-article__header span,
.docs-detail-page .doc-article__content a,
.docs-detail-page .doc-article__footer > a {
    color: #c8970c;
}


