:root {
    --ys-blue: #2878f6;
    --ys-blue-dark: #1764e8;
    --ys-blue-soft: #eaf3ff;
    --ys-ink: #17243f;
    --ys-text: #263653;
    --ys-muted: #72819d;
    --ys-pale: #f3f8ff;
    --ys-line: #e2eaf5;
    --ys-white: #fff;
    --ys-green: #24bd84;
    --ys-orange: #ff872f;
    --ys-purple: #805df3;
    --ys-pink: #ef5ba5;
    --ys-width: 1240px;
    --ys-shadow: 0 10px 32px rgba(40, 92, 158, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; }
body.ys-page {
    margin: 0 !important;
    color: var(--ys-text) !important;
    background: #f5f9ff !important;
    font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif !important;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0;
    overflow-x: hidden;
}
.ys-page button, .ys-page input { font: inherit; letter-spacing: 0; }
.ys-page button { cursor: pointer; }
.ys-page a { color: inherit; text-decoration: none; }
.ys-page [v-cloak] { display: none !important; }
.ys-page .hidden { display: none !important; }
.ys-page #app { min-width: 0 !important; width: 100% !important; }

/* Page brand */
.ys-page-brand { position: relative; z-index: 4; display: inline-flex; align-items: center; align-self: center; gap: 11px; color: var(--ys-ink) !important; }
.ys-page-brand img { width: 45px; height: 40px; object-fit: contain; }
.ys-page-brand strong { font-size: 23px; line-height: 1.2; font-weight: 850; }
.ys-page-brand-mark { position: relative; display: block; width: 48px; height: 34px; }
.ys-page-brand-mark::before, .ys-page-brand-mark::after, .ys-page-brand-mark i { content: ""; position: absolute; border: 3px solid var(--ys-blue); border-radius: 50%; }
.ys-page-brand-mark::before { top: 9px; left: 0; width: 23px; height: 19px; }
.ys-page-brand-mark::after { top: 1px; left: 15px; width: 27px; height: 25px; }
.ys-page-brand-mark i { top: 13px; right: 0; width: 22px; height: 17px; background: #edf5ff; }
.ys-page-brand-mark i::after { content: ""; position: absolute; right: -4px; bottom: -4px; left: -20px; height: 7px; background: #edf5ff; border-top: 3px solid var(--ys-blue); }
.ys-home-hero .ys-page-brand { margin-bottom: 26px; }
.ys-search-top .ys-page-brand { display: flex; width: max-content; margin: 0 auto 24px; }
.ys-detail-main > .ys-page-brand { display: flex; width: max-content; margin: 4px 0 9px; }
.ys-detail-main > .ys-page-brand .ys-page-brand-mark i, .ys-detail-main > .ys-page-brand .ys-page-brand-mark i::after { background: #edf5ff; }

/* Header */
.ys-page .headerKox { display: block !important; height: 76px !important; }
.ys-page .headerBox {
    position: fixed !important;
    z-index: 100 !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    height: 76px !important;
    background: rgba(255, 255, 255, .96) !important;
    border-bottom: 1px solid #dfe8f5 !important;
    box-shadow: none !important;
    backdrop-filter: blur(14px);
}
.ys-page .headerBox > .bg { display: none !important; }
.ys-page .headerBox > .box {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 250px 1fr 250px !important;
    align-items: stretch !important;
    overflow: visible !important;
    width: min(var(--ys-width), calc(100% - 48px)) !important;
    height: 76px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}
.ys-page .ys-brand {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: max-content !important;
    opacity: 1 !important;
}
.ys-page .ys-brand .logo { width: 52px !important; height: 46px !important; object-fit: contain !important; }
.ys-page .ys-brand .title {
    margin: 0 !important;
    color: #101a2d !important;
    font-size: 26px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    white-space: nowrap;
}
.ys-brand-mark { position: relative; display: block; width: 55px; height: 38px; }
.ys-brand-mark::before, .ys-brand-mark::after, .ys-brand-mark i {
    content: "";
    position: absolute;
    border: 4px solid var(--ys-blue);
    border-radius: 50%;
}
.ys-brand-mark::before { top: 9px; left: 1px; width: 25px; height: 21px; }
.ys-brand-mark::after { top: 1px; left: 17px; width: 30px; height: 27px; }
.ys-brand-mark i { top: 13px; right: 0; width: 25px; height: 20px; background: #fff; }
.ys-brand-mark i::after { content: ""; position: absolute; right: -5px; bottom: -5px; left: -23px; height: 9px; background: #fff; border-top: 4px solid var(--ys-blue); }
.ys-primary-nav { display: flex; align-items: stretch; justify-content: center; gap: 34px; min-width: 0; }
.ys-config-nav { display: flex; align-items: stretch; gap: 34px; min-width: 0; }
.ys-primary-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #101a2d;
    font-size: 17px;
    font-weight: 750;
    white-space: nowrap;
}
.ys-primary-nav a:hover { color: var(--ys-blue); }
.ys-home-page .ys-primary-nav .ys-nav-home { color: var(--ys-blue); }
.ys-home-page .ys-primary-nav .ys-nav-home::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--ys-blue); }
.ys-nav-chevron { width: 8px; height: 8px; margin: -4px 0 0 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.ys-page .ys-header-actions {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}
.ys-header-link { color: var(--ys-blue); background: transparent; border: 0; font-size: 13px; }
.ys-header-account, .ys-page .ys-header-actions .btns a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 112px !important;
    height: 38px !important;
    padding: 0 16px !important;
    color: var(--ys-blue) !important;
    background: #fff !important;
    border: 1px solid #80b0fb !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}
.ys-header-account i { position: relative; width: 15px; height: 15px; margin-right: 7px; }
.ys-header-account i::before { content: ""; position: absolute; top: 0; left: 5px; width: 6px; height: 6px; background: var(--ys-blue); border-radius: 50%; }
.ys-header-account i::after { content: ""; position: absolute; bottom: 0; left: 2px; width: 12px; height: 7px; background: var(--ys-blue); border-radius: 6px 6px 2px 2px; }
.ys-page .header-menu-btn { display: none !important; align-items: center; justify-content: center; flex-direction: column; gap: 4px; width: 38px; height: 38px; padding: 0; background: #fff; border: 1px solid var(--ys-line); border-radius: 7px; }
.ys-page .header-menu-btn span { display: block; width: 19px; height: 2px; background: var(--ys-text); border-radius: 1px; }

/* Reusable search and small symbols */
.ys-main-search { position: relative; width: min(100%, 990px); }
.ys-search-field {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 68px;
    padding: 6px;
    background: #fff;
    border: 1px solid #e2eaf5;
    border-radius: 36px;
    box-shadow: 0 8px 24px rgba(58, 110, 180, .14);
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.ys-search-field:focus-within { border-color: #69a3fb; box-shadow: 0 14px 36px rgba(40, 100, 184, .17), 0 0 0 5px rgba(40,120,246,.10); transform: translateY(-1px); }
.ys-search-field:focus-within .ys-search-lens { border-color: var(--ys-blue); }
.ys-search-field:focus-within .ys-search-lens::after { background: var(--ys-blue); }
.ys-search-lens { position: relative; flex: 0 0 26px; width: 26px; height: 26px; margin: 0 22px 0 25px; border: 3px solid #687892; border-radius: 50%; }
.ys-search-lens::after { content: ""; position: absolute; right: -7px; bottom: -5px; width: 10px; height: 3px; background: #687892; border-radius: 2px; transform: rotate(45deg); }
.ys-search-field input { min-width: 0; flex: 1; height: 54px; padding: 0 8px; color: var(--ys-ink); background: transparent; border: 0; outline: 0; font-size: 17px; font-weight: 600; }
.ys-search-field input::placeholder { color: #91a0b8; font-weight: 500; }
.ys-search-field input::selection { color: #0d55bd; background: #d9e9ff; }
.ys-search-field input::-webkit-search-cancel-button { display: none; }
.ys-search-field > button:last-child, .ys-search-submit {
    flex: 0 0 142px;
    height: 54px;
    color: #fff;
    background: var(--ys-blue);
    border: 0;
    border-radius: 27px;
    box-shadow: 0 7px 17px rgba(40, 120, 246, .26);
    font-size: 17px;
    font-weight: 800;
}
.ys-search-field > button:last-child:hover { background: var(--ys-blue-dark); }
.ys-search-clear { flex: 0 0 38px; width: 38px; height: 38px; margin-right: 6px; color: #738198; background: #f1f5fa; border: 0; border-radius: 50%; font-size: 25px; font-weight: 300; line-height: 1; }
.ys-search-clear:hover { color: var(--ys-blue); background: var(--ys-blue-soft); }
.ys-suggestions { position: absolute; z-index: 60; top: calc(100% + 10px); right: 10px; left: 10px; overflow-x: hidden; overflow-y: auto; max-height: min(360px, 55vh); padding: 8px; text-align: left; background: rgba(255,255,255,.99); border: 1px solid #d9e5f4; border-radius: 12px; box-shadow: 0 18px 42px rgba(36,73,125,.16); overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b8cae2 transparent; }
.ys-suggestions > button { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 0 13px; color: var(--ys-text); text-align: left; background: transparent; border: 0; border-radius: 7px; transition: color .16s ease, background .16s ease; }
.ys-suggestions > button:hover, .ys-suggestions > button.is-active { color: var(--ys-blue); background: #edf5ff; }
.ys-suggestions > button > span:nth-child(2) { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ys-suggestion-arrow { position: relative; flex: 0 0 auto; width: 16px; height: 16px; margin-left: 14px; color: #8ca0ba; }
.ys-suggestion-arrow::before { content: ""; position: absolute; top: 3px; right: 2px; width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.ys-suggestion-arrow::after { content: ""; position: absolute; top: 8px; right: 2px; width: 11px; height: 1.5px; background: currentColor; transform: rotate(-45deg); transform-origin: right center; }
.ys-suggestions > button:hover .ys-suggestion-arrow, .ys-suggestions > button.is-active .ys-suggestion-arrow { color: var(--ys-blue); }
.ys-suggestions .ys-search-lens { flex-basis: 15px; width: 15px; height: 15px; margin: 0 14px 0 5px; border-width: 2px; }
.ys-suggestion-loading { padding: 10px; }
.ys-suggestion-loading i { display: block; width: 72%; height: 9px; margin: 10px 0; background: #edf2f8; border-radius: 4px; }
.ys-suggestion-loading i:nth-child(2) { width: 54%; }
.ys-suggestion-loading i:nth-child(3) { width: 84%; }
.suggestion-highlight, .keyword-highlight { color: var(--ys-blue); font-weight: 800; }
.ys-grid-icon, .ys-title-grid { display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; margin: -11px 14px 0 0; color: var(--ys-blue); background: currentColor; border-radius: 2px; box-shadow: 11px 0 0 currentColor, 0 11px 0 currentColor, 11px 11px 0 currentColor; }
.ys-grid-icon::before, .ys-grid-icon::after, .ys-title-grid::before, .ys-title-grid::after { display: none; }
.ys-title-fire { position: relative; display: inline-block; width: 20px; height: 24px; margin-right: 9px; background: var(--ys-orange); border-radius: 12px 4px 12px 12px; transform: rotate(-8deg); }
.ys-title-fire::after { content: ""; position: absolute; right: 5px; bottom: 3px; width: 7px; height: 10px; background: #fff; border-radius: 7px 2px 7px 7px; }
.ys-live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: var(--ys-green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(36, 189, 132, .11); }

/* Home hero */
.ys-home-page #app { display: flex; min-height: 100vh; flex-direction: column; }
.ys-home-page main { display: flex; min-height: 0; flex: 1; }
.ys-home-hero { position: relative; display: flex; overflow: hidden; width: 100%; min-height: 560px; flex: 1; background: #edf5ff; border-bottom: 1px solid #e0ebf8; }
.ys-home-hero::before { content: ""; position: absolute; top: 205px; right: 15%; width: 330px; height: 2px; background: #c3dcfa; transform: rotate(-8deg); }
.ys-home-hero-inner { position: relative; z-index: 4; display: flex; align-items: center; justify-content: center; flex-direction: column; width: min(var(--ys-width), calc(100% - 48px)); margin: 0 auto; padding: 64px 0 76px; text-align: center; }
.ys-home-hero h1 { margin: 0; color: var(--ys-ink); font-size: 48px; line-height: 1.25; font-weight: 900; }
.ys-home-hero h1 strong { color: var(--ys-blue); }
.ys-home-hero-inner > p { margin: 17px 0 34px; color: #536783; font-size: 20px; font-weight: 650; }
.ys-home-search { width: min(100%, 920px); }
.ys-pan-pills { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; margin-top: 28px; }
.ys-pan-pills > span, .ys-pan-pills > button { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 19px; color: #1f2d46; background: #fff; border: 1px solid #e3eaf4; border-radius: 22px; box-shadow: 0 5px 14px rgba(74, 106, 148, .07); font-size: 14px; font-weight: 750; white-space: nowrap; }
.ys-pan-pills > .active, .ys-pan-pills > button.active { color: var(--ys-blue); background: #e1eeff; border-color: #c5dcff; }
.ys-pan-pills img { width: 23px; height: 23px; margin-right: 8px; object-fit: contain; }
.ys-hot-keywords { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 38px; margin-top: 22px; color: #4e617c; font-size: 13px; }
.ys-hot-keywords { scrollbar-width: none; }
.ys-hot-keywords::-webkit-scrollbar { display: none; }
.ys-hot-keywords strong { margin-right: 4px; }
.ys-hot-keywords a { max-width: 140px; overflow: hidden; padding: 7px 15px; background: rgba(218, 230, 245, .66); border-radius: 18px; text-overflow: ellipsis; white-space: nowrap; }
.ys-hot-keywords a:hover { color: var(--ys-blue); background: #fff; }
.ys-cloud { position: absolute; z-index: 1; opacity: .45; }
.ys-cloud::before, .ys-cloud::after, .ys-cloud i { content: ""; position: absolute; background: #cfe2fa; border-radius: 50%; }
.ys-cloud b { position: absolute; height: 80px; background: #cfe2fa; border-radius: 48px; }
.ys-cloud-left { top: 125px; left: -70px; width: 280px; height: 160px; }
.ys-cloud-left::before { top: 40px; left: 0; width: 110px; height: 110px; }
.ys-cloud-left::after { top: 25px; left: 90px; width: 145px; height: 135px; }
.ys-cloud-left i { top: 65px; left: 185px; width: 90px; height: 90px; }
.ys-cloud-left b { top: 80px; left: 30px; width: 220px; }
.ys-cloud-right { top: 22px; right: -30px; width: 280px; height: 190px; }
.ys-cloud-right::before { top: 35px; left: 0; width: 120px; height: 120px; }
.ys-cloud-right::after { top: 0; left: 90px; width: 150px; height: 150px; }
.ys-cloud-right i { top: 70px; left: 190px; width: 90px; height: 90px; }
.ys-cloud-right b { top: 100px; left: 20px; width: 240px; }
.ys-hero-search-art { position: absolute; z-index: 2; top: 100px; right: max(40px, calc((100vw - var(--ys-width)) / 2)); width: 145px; height: 145px; background: #b8d6fb; border-radius: 50%; opacity: .72; }
.ys-hero-search-art::before { content: ""; position: absolute; top: 27px; left: 28px; width: 64px; height: 64px; border: 16px solid #3f8bf0; border-radius: 50%; }
.ys-hero-search-art::after { content: ""; position: absolute; right: 18px; bottom: 17px; width: 53px; height: 16px; background: #3f8bf0; border-radius: 9px; transform: rotate(48deg); }

/* Home content */
.ys-home-section { width: min(var(--ys-width), calc(100% - 48px)); margin: 0 auto; padding: 60px 0 0; }
.ys-section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.ys-section-title h2 { display: flex; align-items: center; margin: 0; color: #14213b; font-size: 27px; line-height: 1.2; font-weight: 850; }
.ys-heading-icon { flex: 0 0 auto; width: 29px; height: 29px; margin-right: 11px; color: var(--ys-blue); stroke-width: 2.5; }
.ys-heading-fire { color: #ff6f36; fill: #ffede6; }
.ys-section-title > a { color: var(--ys-blue); font-size: 14px; font-weight: 700; }
.ys-section-title > a span { font-size: 24px; vertical-align: -2px; }
.ys-discovery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.ys-discovery-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-width: 0;
    min-height: 218px;
    padding: 28px 27px 24px;
    background: #edf6ff;
    border: 1px solid #dce9f7;
    border-radius: 16px;
    box-shadow: 0 7px 22px rgba(70, 112, 164, .045);
    transition: transform .28s cubic-bezier(.2,.8,.2,1), border-color .28s ease, box-shadow .28s ease;
}
.ys-discovery-card:nth-child(6n+2) { background: #eaf9f3; border-color: #d9efe5; }
.ys-discovery-card:nth-child(6n+3) { background: #f2efff; border-color: #e3dcfa; }
.ys-discovery-card:nth-child(6n+4) { background: #fff4e9; border-color: #f5e3d1; }
.ys-discovery-card:nth-child(6n+5) { background: #e9faf6; border-color: #d4efe9; }
.ys-discovery-card:nth-child(6n+6) { background: #edf5ff; border-color: #dbe8f8; }
.ys-discovery-card::before,
.ys-discovery-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -8%;
    bottom: -1px;
    left: -8%;
    height: 66px;
    pointer-events: none;
}
.ys-discovery-card::before { background: rgba(89, 155, 239, .11); clip-path: polygon(0 70%, 17% 50%, 34% 72%, 53% 35%, 72% 60%, 87% 28%, 100% 43%, 100% 100%, 0 100%); }
.ys-discovery-card::after { height: 48px; background: rgba(90, 155, 239, .14); clip-path: polygon(0 72%, 18% 34%, 39% 68%, 62% 28%, 83% 58%, 100% 20%, 100% 100%, 0 100%); }
.ys-discovery-card:nth-child(6n+2)::before, .ys-discovery-card:nth-child(6n+2)::after { background: rgba(54, 197, 147, .12); }
.ys-discovery-card:nth-child(6n+3)::before, .ys-discovery-card:nth-child(6n+3)::after { background: rgba(128, 93, 243, .11); }
.ys-discovery-card:nth-child(6n+4)::before, .ys-discovery-card:nth-child(6n+4)::after { background: rgba(243, 154, 84, .12); }
.ys-discovery-card:nth-child(6n+5)::before, .ys-discovery-card:nth-child(6n+5)::after { background: rgba(62, 195, 165, .12); }
.ys-discovery-icon {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    color: #fff;
    background: #4397fa;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 11px;
    box-shadow: 0 9px 20px rgba(67,151,250,.23), inset 0 1px 0 rgba(255,255,255,.3);
    transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease;
}
.ys-discovery-card:nth-child(6n+2) .ys-discovery-icon { background: #26bd87; box-shadow: 0 9px 20px rgba(38,189,135,.2); }
.ys-discovery-card:nth-child(6n+3) .ys-discovery-icon { background: #7d5af3; box-shadow: 0 9px 20px rgba(125,90,243,.2); }
.ys-discovery-card:nth-child(6n+4) .ys-discovery-icon { background: #f49b55; box-shadow: 0 9px 20px rgba(244,155,85,.2); }
.ys-discovery-card:nth-child(6n+5) .ys-discovery-icon { background: #38c3a7; box-shadow: 0 9px 20px rgba(56,195,167,.2); }
.ys-discovery-icon svg { width: 29px; height: 29px; stroke: currentColor; }
.ys-discovery-copy { position: relative; z-index: 2; display: block; min-width: 0; padding-right: 30px; }
.ys-discovery-copy strong, .ys-discovery-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ys-discovery-copy strong { color: #15223d; font-size: 19px; line-height: 1.35; font-weight: 850; }
.ys-discovery-copy small { margin-top: 5px; color: #6f7f99; font-size: 12px; }
.ys-card-next { position: absolute; z-index: 3; top: 116px; right: 20px; display: grid; place-items: center; width: 30px; height: 30px; color: #6481a4; background: rgba(255,255,255,.92); border: 1px solid rgba(225,233,243,.82); border-radius: 50%; box-shadow: 0 5px 12px rgba(56,92,134,.08); transition: color .22s ease, transform .22s ease, background .22s ease; }
.ys-card-next svg { width: 17px; height: 17px; }
.ys-card-arrow { position: absolute; z-index: 3; bottom: 22px; left: 27px; display: inline-flex; color: #4b96f5; transition: transform .22s ease; }
.ys-card-arrow svg { width: 23px; height: 23px; }
.ys-discovery-card:nth-child(6n+2) .ys-card-arrow { color: #33b98c; }
.ys-discovery-card:nth-child(6n+3) .ys-card-arrow { color: #7d66e7; }
.ys-discovery-card:nth-child(6n+4) .ys-card-arrow { color: #cf9a67; }
.ys-discovery-card:nth-child(6n+5) .ys-card-arrow { color: #38ae9e; }
.ys-discovery-card:hover { border-color: #b7d4f5; box-shadow: 0 17px 38px rgba(53,95,151,.12); transform: translateY(-5px); }
.ys-discovery-card:hover .ys-discovery-icon { box-shadow: 0 13px 27px rgba(60,112,184,.22); transform: translateY(-3px) rotate(-2deg); }
.ys-discovery-card:hover .ys-card-next { color: #fff; background: var(--ys-blue); transform: translateX(3px); }
.ys-discovery-card:hover .ys-card-arrow { transform: translateX(5px); }
.ys-hot-section { padding-bottom: 70px; }
.ys-hot-panel { overflow: hidden; background: #fff; border: 1px solid var(--ys-line); border-radius: 13px; box-shadow: var(--ys-shadow); }
.ys-ranking-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 16px 18px; background: #f8fbff; border-bottom: 1px solid var(--ys-line); }
.ys-ranking-tabs .nav-item { flex: 0 0 auto; height: 36px; padding: 0 17px; color: #5d6d85; background: transparent; border: 0; border-radius: 18px; font-size: 13px; font-weight: 700; }
.ys-ranking-tabs .nav-item:hover { color: var(--ys-blue); }
.ys-ranking-tabs .nav-active { color: #fff !important; background: var(--ys-blue) !important; }
.ys-hot-body { padding: 16px 18px 20px; }
.ys-hot-summary { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #53627a; font-size: 13px; }
.ys-hot-summary small { color: #91a0b5; }
.ys-hot-summary b { color: var(--ys-blue); }
.ys-ranking-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.ys-ranking-list .resource-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; min-width: 0; min-height: 54px; padding: 8px 14px; background: #fff; border: 1px solid #edf1f6; border-radius: 8px; }
.ys-resource-file { display: grid; place-items: center; width: 30px; height: 30px; color: #fff; background: #4c91f5; border-radius: 6px; }
.ys-resource-file i { width: 0; height: 0; margin-left: 2px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid #fff; }
.ys-ranking-list li:nth-child(6n+2) .ys-resource-file { background: #ef5b61; }
.ys-ranking-list li:nth-child(6n+3) .ys-resource-file { background: var(--ys-purple); }
.ys-ranking-list li:nth-child(6n+4) .ys-resource-file { background: var(--ys-green); }
.ys-ranking-list .ys-rank-number { display: grid; place-items: center; width: 30px; height: 30px; color: #fff; background: var(--ys-blue); border-radius: 6px; font-size: 12px; }
.ys-ranking-list a { overflow: hidden; color: #17233c; font-size: 14px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.ys-ranking-list a:hover { color: var(--ys-blue); }
.ys-ranking-list em { max-width: 82px; overflow: hidden; padding: 3px 9px; color: var(--ys-blue); background: #eaf3ff; border-radius: 13px; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.ys-ranking-list time { color: #7e8da4; font-size: 11px; white-space: nowrap; }
.ys-ranking-list .ys-list-arrow { display: none; }
.image-mode-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.image-mode-grid .resource-card-link { display: block; overflow: hidden; background: #f7faff; border: 1px solid var(--ys-line); border-radius: 8px; }
.resource-image-container { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #e7f0fb; }
.resource-image { width: 100%; height: 100%; object-fit: cover; }
.image-placeholder { display: flex; align-items: center; justify-content: center; color: #71819a; font-size: 12px; }
.resource-number { position: absolute; top: 7px; left: 7px; display: grid; place-items: center; width: 24px; height: 24px; color: #fff; background: var(--ys-blue); border-radius: 5px; font-size: 10px; }
.resource-content { padding: 10px; }
.resource-title { overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.resource-meta { display: flex; justify-content: space-between; margin-top: 4px; color: var(--ys-muted); font-size: 9px; }

/* Search page */
.ys-search-top { position: relative; z-index: 30; overflow: visible; background: #eaf4ff; border-bottom: 1px solid #deebf9; }
.ys-search-top::before, .ys-search-top::after { content: ""; position: absolute; opacity: .45; background: #d1e4fa; border-radius: 50%; }
.ys-search-top::before { top: 15px; left: -35px; width: 150px; height: 100px; }
.ys-search-top::after { right: -40px; bottom: 5px; width: 210px; height: 100px; }
.ys-search-top-inner { position: relative; z-index: 2; width: min(var(--ys-width), calc(100% - 48px)); margin: 0 auto; padding: 44px 0 28px; }
.ys-search-page-field { z-index: 5; margin: 0 auto; }
.ys-search-page-field .ys-search-field { min-height: 62px; }
.ys-search-page-field .ys-search-field input { height: 48px; }
.ys-search-page-field .ys-search-field > button:last-child { height: 48px; }
.ys-search-pan-pills { margin-top: 18px; }
.ys-search-pan-pills > button { border: 1px solid #e2eaf5; }
.ys-search-layout { position: relative; z-index: 1; display: block; width: min(var(--ys-width), calc(100% - 48px)); min-height: 660px; margin: 0 auto; padding: 28px 0 70px; }
.ys-category-sidebar { overflow: hidden; background: #fff; border: 1px solid var(--ys-line); border-radius: 10px; box-shadow: 0 7px 24px rgba(54,89,134,.06); }
.ys-category-sidebar h2 { display: flex; align-items: center; height: 64px; margin: 0; padding: 0 18px; color: var(--ys-ink); border-bottom: 1px solid var(--ys-line); font-size: 17px; }
.ys-category-sidebar nav { padding: 5px 0 8px; }
.ys-category-sidebar a { display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 9px; align-items: center; min-height: 51px; padding: 0 18px; color: #53627a; border-left: 3px solid transparent; }
.ys-category-sidebar a:hover, .ys-category-sidebar a.active { color: var(--ys-blue); background: #eaf3ff; border-left-color: var(--ys-blue); }
.ys-category-sidebar strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ys-sidebar-cat-icon { display: grid; place-items: center; width: 26px; height: 26px; color: #4c93ef; background: #eaf3ff; border-radius: 7px; }
.ys-sidebar-cat-icon svg { width: 15px; height: 15px; }
.ys-category-sidebar a:nth-child(3n+2) .ys-sidebar-cat-icon { color: var(--ys-green); background: #e9f8f2; }
.ys-category-sidebar a:nth-child(3n+3) .ys-sidebar-cat-icon { color: var(--ys-orange); background: #fff1e9; }
.ys-search-results { width: 100%; min-width: 0; }
.ys-result-heading { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-bottom: 10px; }
.ys-result-heading h1 { margin: 0; color: #1d2941; font-size: 16px; font-weight: 700; }
.ys-result-heading h1 strong, .ys-result-heading h1 em { color: var(--ys-blue); font-style: normal; }
.ys-result-heading > span { padding: 7px 13px; color: #60708a; background: #fff; border: 1px solid var(--ys-line); border-radius: 17px; font-size: 11px; }
.ys-inline-progress { overflow: hidden; height: 4px; margin: 0 2px 10px; background: #dce8f6; border-radius: 2px; }
.ys-inline-progress i { display: block; height: 100%; background: var(--ys-blue); transition: width .25s ease; }
.ys-result-stack { display: grid; gap: 0; overflow: hidden; background: #fff; border: 1px solid #dfe8f4; border-radius: 13px; box-shadow: 0 13px 34px rgba(42,77,126,.075); }
.ys-search-result { display: grid; grid-template-columns: 84px minmax(0,1fr) 180px 155px; gap: 18px; align-items: center; min-width: 0; min-height: 118px; padding: 14px 20px; border-bottom: 1px solid #e9eef5; transition: background .2s ease, box-shadow .2s ease; }
.ys-search-result:last-child { border-bottom: 0; }
.ys-search-result:hover { position: relative; z-index: 2; background: #f8fbff; box-shadow: inset 3px 0 0 var(--ys-blue); }
.ys-result-file { display: grid; place-items: center; overflow: hidden; width: 74px; height: 74px; background: #f1f6fc; border-radius: 8px; }
.ys-result-file > img { width: 100%; height: 100%; object-fit: cover; }
.ys-result-file > span { position: relative; display: block; width: 54px; height: 44px; background: #ffc33d; border-radius: 5px; box-shadow: 0 7px 12px rgba(255,176,48,.2); }
.ys-result-file > span::before { content: ""; position: absolute; top: -8px; left: 4px; width: 25px; height: 12px; background: #ffc33d; border-radius: 5px 5px 0 0; }
.ys-search-result:nth-child(5n+2) .ys-result-file > span { width: 50px; height: 58px; background: var(--ys-purple); clip-path: polygon(0 0,75% 0,100% 22%,100% 100%,0 100%); }
.ys-search-result:nth-child(5n+3) .ys-result-file > span { width: 50px; height: 58px; background: #ef4f55; clip-path: polygon(0 0,75% 0,100% 22%,100% 100%,0 100%); }
.ys-search-result:nth-child(5n+4) .ys-result-file > span { background: #4aa1f6; }
.ys-search-result:nth-child(5n+5) .ys-result-file > span { background: #32bd85; }
.ys-result-file > span i { position: absolute; z-index: 2; top: 16px; left: 22px; width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid #fff; }
.ys-result-copy { min-width: 0; }
.ys-result-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ys-result-title a { overflow: hidden; color: #19253d; font-size: 17px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.ys-result-title a:hover { color: var(--ys-blue); }
.ys-result-title em { flex: 0 0 auto; padding: 2px 7px; color: #e65e3c; background: #fff0eb; border-radius: 10px; font-size: 9px; font-style: normal; }
.ys-result-tags { display: flex; gap: 7px; margin-top: 6px; }
.ys-result-tags span { padding: 2px 9px; color: #667894; background: #edf2f8; border-radius: 11px; font-size: 10px; }
.ys-result-copy p { overflow: hidden; margin: 5px 0 0; color: #8290a7; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ys-result-source { min-width: 0; }
.ys-result-source strong { display: flex; align-items: center; overflow: hidden; color: #27354d; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ys-result-source img { width: 25px; height: 25px; margin-right: 8px; object-fit: contain; }
.ys-result-source small { display: flex; align-items: center; margin: 8px 0 0 33px; color: #7d8ca4; font-size: 10px; }
.ys-result-action-split { display: grid; grid-template-columns: minmax(0,1fr) 34px; overflow: hidden; height: 40px; border: 1px solid #7eb0fb; border-radius: 8px; }
.ys-result-main-action, .ys-result-tree-action { display: inline-flex; align-items: center; justify-content: center; color: var(--ys-blue) !important; background: #fff; border: 0; font-size: 12px; font-weight: 750; transition: color .2s ease, background .2s ease; }
.ys-result-main-action { min-width: 0; padding: 0 8px; }
.ys-result-tree-action { border-left: 1px solid #b8d2fa !important; font-size: 18px; }
.ys-result-main-action:hover, .ys-result-tree-action:hover { background: #edf5ff; }
.ys-action-compact { display: none; }
.ys-link-symbol { position: relative; display: inline-block; width: 15px; height: 15px; margin-right: 7px; }
.ys-link-symbol::before, .ys-link-symbol::after { content: ""; position: absolute; width: 9px; height: 5px; border: 2px solid currentColor; border-radius: 5px; transform: rotate(-42deg); }
.ys-link-symbol::before { top: 1px; left: 0; }
.ys-link-symbol::after { right: 0; bottom: 1px; }
.ys-result-tree { grid-column: 1/-1; padding: 13px 16px; background: #f7faff; border: 1px solid var(--ys-line); border-radius: 8px; }
.ys-tree-head { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--ys-text); font-size: 12px; }
.ys-tree-head span { color: var(--ys-muted); }
.ys-pagination { display: flex; justify-content: center; padding: 30px 0 0; }
.ys-empty-state { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 340px; text-align: center; background: #fff; border: 1px solid var(--ys-line); border-radius: 12px; }
.ys-empty-state strong { margin-top: 22px; color: var(--ys-ink); font-size: 16px; }
.ys-empty-state p { margin: 4px 0 0; color: var(--ys-muted); font-size: 12px; }
.ys-empty-cloud { position: relative; width: 82px; height: 42px; background: #dfeafb; border-radius: 25px; }
.ys-empty-cloud::before { content: ""; position: absolute; top: -25px; left: 20px; width: 52px; height: 52px; background: #dfeafb; border-radius: 50%; }

/* Detail page */
.ys-detail-page::before { content: ""; position: fixed; z-index: -1; top: 0; right: 0; left: 0; height: 270px; background: #edf5ff; }
.ys-detail-main { width: min(var(--ys-width), calc(100% - 48px)); margin: 0 auto; padding: 18px 0 70px; }
.ys-breadcrumb { display: flex; align-items: center; gap: 10px; min-height: 42px; color: #60708a; font-size: 12px; }
.ys-breadcrumb a { display: inline-flex; align-items: center; font-weight: 700; }
.ys-breadcrumb strong { color: #77869c; font-weight: 600; }
.ys-home-symbol { position: relative; width: 15px; height: 12px; margin-right: 8px; background: #71829c; border-radius: 2px; }
.ys-home-symbol::before { content: ""; position: absolute; top: -6px; left: 2px; width: 10px; height: 10px; background: #71829c; transform: rotate(45deg); }
.ys-detail-top-grid { display: grid; grid-template-columns: minmax(0,1fr) 292px; gap: 16px; align-items: stretch; }
.ys-resource-overview, .ys-detail-related-side, .ys-detail-panel { background: #fff; border: 1px solid #dfe8f4; border-radius: 14px; box-shadow: 0 13px 34px rgba(42,77,126,.075); }
.ys-resource-overview { display: grid; grid-template-columns: 238px minmax(0,1fr); gap: 26px; min-width: 0; padding: 24px 26px; }
.ys-detail-file-visual { display: grid; place-items: center; overflow: hidden; min-height: 248px; background: #f5f8fd; border-radius: 10px; }
.ys-detail-file-visual > img { width: 100%; height: 100%; object-fit: cover; }
.ys-large-file-icon { position: relative; display: block; width: 108px; height: 132px; color: #fff; background: var(--ys-purple); border-radius: 13px; clip-path: polygon(0 0,72% 0,100% 22%,100% 100%,0 100%); box-shadow: 0 15px 30px rgba(99,81,219,.22); }
.ys-large-file-icon i { position: absolute; top: 45px; left: 43px; width: 0; height: 0; border-top: 17px solid transparent; border-bottom: 17px solid transparent; border-left: 25px solid #fff; }
.ys-large-file-icon b { position: absolute; right: 0; bottom: 9px; left: 0; text-align: center; font-size: 15px; }
.ys-detail-core { min-width: 0; padding-top: 8px; }
.ys-detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.ys-detail-title-row h1 { margin: 0; overflow-wrap: anywhere; color: var(--ys-ink); font-size: 25px; line-height: 1.4; font-weight: 850; }
.ys-detail-title-row > span { display: inline-flex; align-items: center; flex: 0 0 auto; padding: 7px 12px; color: var(--ys-blue); background: #ebf3ff; border-radius: 18px; font-size: 11px; font-weight: 700; }
.ys-detail-title-row .ys-title-fire { width: 13px; height: 17px; margin-right: 6px; }
.ys-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ys-detail-tags span, .ys-detail-tags a { padding: 4px 13px; color: #697993; background: #edf2f8; border-radius: 14px; font-size: 10px; }
.ys-detail-meta { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: #445570; font-size: 12px; font-weight: 650; }
.ys-detail-meta > i { width: 1px; height: 17px; background: #dfe6ef; }
.ys-detail-meta span { display: inline-flex; align-items: center; }
.ys-detail-meta img { width: 21px; height: 21px; margin-right: 7px; object-fit: contain; }
.ys-clock-symbol { position: relative; display: inline-block; width: 16px; height: 16px; margin-right: 7px; border: 2px solid #b3bfd0; border-radius: 50%; }
.ys-clock-symbol::before { content: ""; position: absolute; top: 3px; left: 6px; width: 2px; height: 5px; background: #b3bfd0; }
.ys-detail-description { margin-top: 18px; padding: 14px 18px; color: #53647e; background: #f1f6fc; border-radius: 9px; font-size: 12px; line-height: 1.85; }
.ys-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ys-detail-actions button { display: inline-flex; align-items: center; justify-content: center; min-width: 126px; height: 43px; padding: 0 17px; color: var(--ys-blue); background: #fff; border: 1px solid #bad2f6; border-radius: 22px; font-size: 12px; font-weight: 750; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.ys-detail-actions button:hover { color: #fff; background: var(--ys-blue); border-color: var(--ys-blue); box-shadow: 0 8px 18px rgba(40,120,246,.18); transform: translateY(-2px); }
.ys-detail-actions button.primary { color: #fff; background: var(--ys-blue); border-color: var(--ys-blue); box-shadow: 0 8px 18px rgba(40,120,246,.16); }
.ys-detail-actions button.primary:hover { background: var(--ys-blue-dark); }
.ys-copy-symbol { position: relative; width: 14px; height: 16px; margin-right: 8px; border: 2px solid currentColor; border-radius: 2px; }
.ys-copy-symbol::before { content: ""; position: absolute; top: -5px; left: -5px; width: 10px; height: 12px; border: 2px solid currentColor; border-radius: 2px; }
.ys-qr-symbol { display: grid; grid-template-columns: 6px 6px; grid-template-rows: 6px 6px; gap: 3px; width: 15px; height: 15px; margin-right: 8px; }
.ys-qr-symbol::before, .ys-qr-symbol::after { content: ""; border: 2px solid currentColor; box-shadow: 9px 0 0 -2px #fff, 9px 0 0 0 currentColor; }
.ys-tree-symbol { position: relative; width: 16px; height: 14px; margin-right: 8px; border: 2px solid currentColor; border-radius: 3px; }
.ys-tree-symbol::before { content: ""; position: absolute; top: -5px; left: 1px; width: 6px; height: 4px; border: 2px solid currentColor; border-bottom: 0; }
.ys-detail-related-side { padding: 20px; }
.ys-detail-related-side h2 { display: flex; align-items: center; margin: 0 0 14px; color: var(--ys-ink); font-size: 18px; }
.ys-detail-related-side h2 .ys-title-fire { width: 16px; height: 20px; }
.ys-detail-related-side a { display: grid; grid-template-columns: 58px minmax(0,1fr) 12px; gap: 10px; align-items: center; min-height: 77px; border-bottom: 1px solid #edf1f6; }
.ys-detail-related-side a:last-child { border-bottom: 0; }
.ys-side-file { position: relative; display: grid; place-items: center; width: 58px; height: 58px; background: #eaf2ff; border-radius: 8px; }
.ys-side-file i { width: 27px; height: 34px; background: var(--ys-purple); border-radius: 4px; clip-path: polygon(0 0,70% 0,100% 25%,100% 100%,0 100%); }
.ys-detail-related-side div { min-width: 0; }
.ys-detail-related-side strong, .ys-detail-related-side small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ys-detail-related-side strong { color: #26354d; font-size: 12px; }
.ys-detail-related-side small { color: #8996aa; font-size: 10px; }
.ys-detail-related-side a > b { color: #7190ba; font-size: 20px; font-weight: 400; }
.ys-detail-panel { margin-top: 24px; padding: 20px; }
.ys-detail-panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.ys-detail-panel-title h2 { display: flex; align-items: center; margin: 0; color: var(--ys-ink); font-size: 19px; }
.ys-detail-panel-title > a { color: var(--ys-blue); font-size: 12px; font-weight: 700; }
.ys-detail-panel-title > button { height: 34px; padding: 0 15px; color: var(--ys-blue); background: #eef5ff; border: 1px solid #c9ddfb; border-radius: 18px; font-size: 11px; font-weight: 700; }
.ys-doc-symbol { position: relative; width: 21px; height: 26px; margin-right: 11px; background: var(--ys-blue); border-radius: 3px; clip-path: polygon(0 0,70% 0,100% 25%,100% 100%,0 100%); }
.ys-doc-symbol::after { content: ""; position: absolute; top: 10px; left: 6px; width: 10px; height: 2px; background: #fff; box-shadow: 0 5px 0 #fff, 0 10px 0 #fff; }
.ys-directory-placeholder { display: flex; align-items: center; gap: 16px; min-height: 80px; padding: 15px 20px; background: #f7faff; border: 1px dashed #cdddf1; border-radius: 8px; }
.ys-directory-placeholder div { min-width: 0; }
.ys-directory-placeholder strong, .ys-directory-placeholder small { display: block; }
.ys-directory-placeholder strong { color: #394a64; font-size: 13px; }
.ys-directory-placeholder small { color: #8996aa; font-size: 10px; }
.ys-folder-symbol { position: relative; width: 45px; height: 34px; background: #ffc33d; border-radius: 5px; }
.ys-folder-symbol::before { content: ""; position: absolute; top: -7px; left: 4px; width: 21px; height: 10px; background: #ffc33d; border-radius: 4px 4px 0 0; }
.ys-directory-body { padding: 14px; background: #f8fbff; border: 1px solid var(--ys-line); border-radius: 8px; }
.ys-directory-body > p { margin: 8px 0 0; color: var(--ys-muted); font-size: 10px; }
.ys-file-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; border-top: 1px solid var(--ys-line); border-left: 1px solid var(--ys-line); }
.ys-file-detail-grid > div { display: grid; grid-template-columns: 130px minmax(0,1fr); min-height: 46px; border-right: 1px solid var(--ys-line); border-bottom: 1px solid var(--ys-line); }
.ys-file-detail-grid dt, .ys-file-detail-grid dd { display: flex; align-items: center; min-width: 0; margin: 0; padding: 9px 16px; font-size: 12px; }
.ys-file-detail-grid dt { color: #667690; background: #f8faff; }
.ys-file-detail-grid dd { overflow: hidden; color: #26354d; font-weight: 650; text-overflow: ellipsis; }
.ys-file-detail-grid dd img { width: 22px; height: 22px; margin-right: 7px; object-fit: contain; }
.ys-related-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.ys-related-grid > a { min-width: 0; }
.ys-related-cover { display: grid; place-items: center; overflow: hidden; aspect-ratio: 16/8; background: #eaf2fd; border-radius: 8px; }
.ys-related-cover img { width: 100%; height: 100%; object-fit: cover; }
.ys-related-cover .ys-large-file-icon { width: 56px; height: 67px; border-radius: 6px; }
.ys-related-cover .ys-large-file-icon i { top: 23px; left: 23px; border-width: 8px 0 8px 12px; border-color: transparent transparent transparent #fff; }
.ys-related-cover .ys-large-file-icon b { bottom: 4px; font-size: 7px; }
.ys-related-grid > a > strong, .ys-related-grid > a > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ys-related-grid > a > strong { margin-top: 10px; color: #273650; font-size: 13px; }
.ys-related-grid > a > small { margin-top: 2px; color: #8290a6; font-size: 10px; }

/* Tree and footer compatibility */
.pan-tree-box, .resource-tree-body { max-height: 340px; overflow: auto; }
.pan-tree-row { display: flex; align-items: center; min-height: 34px; padding-right: 8px; border-bottom: 1px solid #edf1f6; font-size: 11px; }
.pan-tree-toggle { width: 18px; color: #8b9ab0; font-size: 8px; }
.pan-tree-icon { width: 24px; }
.pan-tree-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pan-tree-size { color: #8b9ab0; }
.resource-tree-loading, .resource-tree-empty, .resource-tree-error { padding: 18px; color: #72819a; text-align: center; font-size: 12px; }
.resource-tree-error button { margin-left: 10px; padding: 4px 10px; color: var(--ys-blue); background: #fff; border: 1px solid #b9d2fa; border-radius: 5px; }
.ys-page .footerBox { position: relative; width: 100% !important; margin: auto 0 0 !important; padding: 0 24px !important; color: #667892 !important; background: #edf5ff !important; border-top: 1px solid #d8e6f7; }
.ys-page .footerBox .box { overflow: visible !important; width: min(var(--ys-width), 100%) !important; height: auto !important; margin: 0 auto !important; color: inherit !important; text-align: left !important; }
.ys-footer-main { display: flex; align-items: center; justify-content: space-between; gap: 48px; min-height: 128px; padding: 28px 0 24px; }
.ys-footer-identity { min-width: 0; max-width: 760px; }
.ys-footer-brand { display: inline-flex; align-items: center; gap: 12px; color: #17243f !important; }
.ys-footer-brand img { width: 42px; height: 38px; object-fit: contain; }
.ys-footer-brand strong { font-size: 20px; line-height: 1.2; font-weight: 800; }
.ys-footer-brand-mark { position: relative; display: block; width: 43px; height: 30px; }
.ys-footer-brand-mark::before, .ys-footer-brand-mark::after, .ys-footer-brand-mark i { content: ""; position: absolute; border: 3px solid #5da2ff; border-radius: 50%; }
.ys-footer-brand-mark::before { top: 8px; left: 0; width: 20px; height: 16px; }
.ys-footer-brand-mark::after { top: 1px; left: 14px; width: 23px; height: 21px; }
.ys-footer-brand-mark i { top: 11px; right: 0; width: 19px; height: 15px; }
.ys-footer-brand-mark i::after { content: ""; position: absolute; right: -4px; bottom: -4px; left: -18px; height: 6px; background: #edf5ff; border-top: 3px solid #5da2ff; }
.ys-footer-description { margin-top: 9px; color: #667892; font-size: 12px; line-height: 1.8; }
.ys-footer-description p { margin: 0 !important; padding: 0 !important; color: inherit !important; font-size: inherit !important; }
.ys-footer-links { display: flex; align-items: center; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ys-footer-links a, .ys-footer-links button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; color: #52657f !important; background: rgba(255,255,255,.72); border: 1px solid #cadbef; border-radius: 6px; font-size: 12px; font-weight: 650; transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.ys-footer-links a:hover, .ys-footer-links button:hover { color: var(--ys-blue) !important; background: #fff; border-color: #9fc1ee; box-shadow: 0 6px 16px rgba(47,99,166,.08); }
.ys-footer-links button.ys-footer-demand { color: #fff !important; background: var(--ys-blue); border-color: var(--ys-blue); }
.ys-footer-links button.ys-footer-demand:hover { color: #fff !important; background: var(--ys-blue-dark); border-color: var(--ys-blue-dark); }
.ys-footer-links svg { width: 15px; height: 15px; }
.ys-footer-custom-links { display: contents; }
.ys-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 54px; padding: 13px 0; border-top: 1px solid #d6e3f2; color: #7a8ca5; font-size: 11px; }
.ys-footer-copyright { min-width: 0; }
.ys-footer-copyright p { margin: 0 !important; padding: 0 !important; color: inherit !important; font-size: inherit !important; }
.ys-footer-copyright a { color: #58759a !important; }
.ys-footer-bottom > span { flex: 0 0 auto; color: #7a8ca5; }
.ys-page .global-backtop { right: 24px !important; bottom: 24px !important; width: 42px !important; height: 42px !important; background: var(--ys-blue) !important; border-radius: 21px !important; }
.ys-page .el-dialog { border-radius: 12px !important; }
.ys-page .el-button { border-radius: 7px !important; }
.ys-page .el-button--primary { background: var(--ys-blue) !important; border-color: var(--ys-blue) !important; }
.ys-page a:focus-visible, .ys-page button:focus-visible { outline: 3px solid rgba(40,120,246,.22) !important; outline-offset: 3px; }
.ys-page .ys-search-field input:focus-visible { outline: 0 !important; }

@media (max-width: 1100px) {
    .ys-page .headerBox > .box { grid-template-columns: 210px 1fr 190px !important; }
    .ys-primary-nav, .ys-config-nav { gap: 22px; }
    .ys-discovery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .ys-search-result { grid-template-columns: 70px minmax(0,1fr) 145px 138px; gap: 13px; padding: 14px; }
    .ys-result-file { width: 64px; height: 64px; }
    .ys-resource-overview { grid-template-columns: 190px minmax(0,1fr); }
    .ys-detail-file-visual { min-height: 220px; }
}

@media (max-width: 768px) {
    body.ys-page { font-size: 14px; }
    .ys-page .headerKox, .ys-page .headerBox, .ys-page .headerBox > .box { height: 60px !important; }
    .ys-page .headerBox > .box { display: flex !important; width: calc(100% - 28px) !important; }
    .ys-page .ys-brand { gap: 8px !important; }
    .ys-page .ys-brand .logo { width: 39px !important; height: 36px !important; }
    .ys-page .ys-brand .title { max-width: 50vw; overflow: hidden; font-size: 19px !important; text-overflow: ellipsis; }
    .ys-brand-mark { width: 41px; height: 30px; transform: scale(.78); transform-origin: left center; }
    .ys-primary-nav, .ys-page .ys-header-actions > .ys-header-link, .ys-page .ys-header-actions > .ys-header-account, .ys-page .ys-header-actions > .btns { display: none !important; }
    .ys-page .ys-header-actions { margin-left: auto !important; }
    .ys-page .header-menu-btn { display: inline-flex !important; }
    .ys-home-hero { min-height: 540px; }
    .ys-home-hero-inner { width: calc(100% - 28px); padding: 48px 0 58px; }
    .ys-page-brand { gap: 9px; }
    .ys-page-brand img { width: 38px; height: 34px; }
    .ys-page-brand strong { font-size: 20px; }
    .ys-page-brand-mark { width: 42px; height: 30px; transform: scale(.9); transform-origin: left center; }
    .ys-home-hero .ys-page-brand { margin-bottom: 22px; }
    .ys-search-top .ys-page-brand { margin-bottom: 19px; }
    .ys-detail-main > .ys-page-brand { margin-bottom: 5px; }
    .ys-home-hero h1 { font-size: 31px; }
    .ys-home-hero-inner > p { margin: 13px 0 25px; font-size: 14px; }
    .ys-hero-search-art { display: none; }
    .ys-main-search { width: 100%; }
    .ys-search-field { min-height: 56px; padding: 5px; border-radius: 29px; }
    .ys-search-lens { flex-basis: 20px; width: 20px; height: 20px; margin: 0 12px 0 15px; border-width: 2px; }
    .ys-search-field input { width: 0; height: 44px; padding: 0 4px; font-size: 13px; }
    .ys-search-field > button:last-child, .ys-search-submit { flex-basis: 78px; height: 44px; border-radius: 22px; font-size: 14px; }
    .ys-search-clear { flex-basis: 31px; font-size: 24px; }
    .ys-suggestions { right: 0; left: 0; }
    .ys-pan-pills { justify-content: flex-start; gap: 8px; overflow-x: auto; margin-top: 20px; padding-bottom: 3px; scrollbar-width: none; }
    .ys-pan-pills::-webkit-scrollbar { display: none; }
    .ys-pan-pills > span, .ys-pan-pills > button { flex: 0 0 auto; height: 36px; padding: 0 13px; font-size: 11px; }
    .ys-pan-pills img { width: 19px; height: 19px; margin-right: 6px; }
    .ys-hot-keywords { justify-content: flex-start; overflow-x: auto; width: 100%; }
    .ys-hot-keywords strong, .ys-hot-keywords a { flex: 0 0 auto; }
    .ys-cloud-right { right: -150px; }
    .ys-cloud-left { left: -180px; }
    .ys-home-section { width: calc(100% - 28px); padding-top: 42px; }
    .ys-section-title { margin-bottom: 20px; }
    .ys-section-title h2 { font-size: 20px; }
    .ys-heading-icon { width: 24px; height: 24px; margin-right: 8px; }
    .ys-discovery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .ys-discovery-card { min-height: 174px; padding: 19px 17px 18px; border-radius: 13px; }
    .ys-discovery-icon { width: 46px; height: 46px; margin-bottom: 16px; border-radius: 10px; }
    .ys-discovery-icon svg { width: 25px; height: 25px; }
    .ys-discovery-copy { padding-right: 24px; }
    .ys-discovery-copy strong { font-size: 16px; }
    .ys-discovery-copy small { font-size: 10px; }
    .ys-card-next { top: 91px; right: 13px; width: 25px; height: 25px; }
    .ys-card-next svg { width: 15px; height: 15px; }
    .ys-card-arrow { bottom: 15px; left: 17px; }
    .ys-card-arrow svg { width: 20px; height: 20px; }
    .ys-ranking-tabs { padding: 12px; }
    .ys-hot-body { padding: 13px; }
    .ys-ranking-list { grid-template-columns: 1fr; gap: 7px; }
    .ys-ranking-list .resource-item { grid-template-columns: 34px minmax(0,1fr) auto; min-height: 50px; padding: 6px 10px; }
    .ys-ranking-list time { display: none; }
    .image-mode-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ys-search-top-inner, .ys-search-layout, .ys-detail-main { width: calc(100% - 28px); }
    .ys-search-top-inner { padding: 30px 0 20px; }
    .ys-search-layout { display: block; padding: 18px 0 45px; }
    .ys-category-sidebar { margin-bottom: 14px; }
    .ys-category-sidebar h2 { height: 48px; font-size: 15px; }
    .ys-category-sidebar nav { display: flex; gap: 7px; overflow-x: auto; padding: 9px; scrollbar-width: none; }
    .ys-category-sidebar nav::-webkit-scrollbar { display: none; }
    .ys-category-sidebar a { display: inline-flex; flex: 0 0 auto; min-height: 34px; padding: 0 12px; background: #f5f8fc; border: 0; border-radius: 17px; }
    .ys-sidebar-cat-icon { display: none; }
    .ys-result-heading { display: block; padding: 0 2px; }
    .ys-result-heading h1 { font-size: 14px; }
    .ys-result-heading > span { display: inline-flex; margin-top: 7px; }
    .ys-search-result { grid-template-columns: 48px minmax(0,1fr) 106px; grid-template-rows: auto 34px; gap: 8px 10px; min-height: 0; padding: 12px; }
    .ys-result-file { grid-row: 1/3; width: 48px; height: 48px; align-self: start; }
    .ys-result-file > span { transform: scale(.68); }
    .ys-result-copy { grid-column: 2/4; align-self: center; }
    .ys-result-title { align-items: flex-start; gap: 6px; }
    .ys-result-title a { display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.5; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .ys-result-title em { margin-top: 2px; }
    .ys-result-tags, .ys-result-copy p { display: none; }
    .ys-result-source { grid-column: 2; display: flex; align-items: center; min-width: 0; }
    .ys-result-source strong { width: max-content; max-width: 100%; height: 30px; padding: 0 9px; color: #415570; background: #f1f6fc; border-radius: 15px; font-size: 10px; }
    .ys-result-source img { width: 18px; height: 18px; margin-right: 5px; }
    .ys-result-source small { display: none; }
    .ys-result-action-split { grid-column: 3; width: 106px; height: 34px; border: 0; border-radius: 17px; }
    .ys-result-main-action { color: #fff !important; background: var(--ys-blue); border-radius: 17px 0 0 17px; }
    .ys-result-main-action:hover { color: #fff !important; background: var(--ys-blue-dark); }
    .ys-result-tree-action { color: var(--ys-blue) !important; background: #eaf3ff; border-left: 1px solid #c8dcf8 !important; border-radius: 0 17px 17px 0; }
    .ys-link-symbol { width: 13px; height: 13px; margin-right: 5px; }
    .ys-action-wide { display: none; }
    .ys-action-compact { display: inline; }
    .ys-result-tree { grid-column: 1/-1; }
    .ys-page .footerBox { padding: 0 18px !important; }
    .ys-footer-main { align-items: flex-start; flex-direction: column; gap: 20px; min-height: 0; padding: 27px 0 23px; }
    .ys-footer-links { justify-content: flex-start; width: 100%; }
    .ys-footer-links a, .ys-footer-links button { min-width: 92px; }
    .ys-footer-bottom { align-items: flex-start; flex-direction: column; gap: 4px; padding: 14px 0 17px; }
    .ys-footer-bottom > span { flex: none; }
    .ys-detail-main { padding-top: 12px; }
    .ys-breadcrumb { overflow: hidden; white-space: nowrap; }
    .ys-detail-top-grid { grid-template-columns: 1fr; }
    .ys-resource-overview { grid-template-columns: 100px minmax(0,1fr); gap: 16px; padding: 18px; }
    .ys-detail-file-visual { min-height: 130px; }
    .ys-large-file-icon { width: 66px; height: 81px; border-radius: 8px; }
    .ys-large-file-icon i { top: 28px; left: 28px; border-width: 10px 0 10px 15px; border-color: transparent transparent transparent #fff; }
    .ys-large-file-icon b { bottom: 5px; font-size: 9px; }
    .ys-detail-title-row { display: block; }
    .ys-detail-title-row h1 { font-size: 19px; }
    .ys-detail-title-row > span { display: none; }
    .ys-detail-meta { align-items: flex-start; flex-direction: column; gap: 7px; margin-top: 13px; }
    .ys-detail-meta > i { display: none; }
    .ys-detail-description { grid-column: 1/-1; }
    .ys-detail-actions { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; }
    .ys-detail-actions button { min-width: 0; padding: 0 9px; }
    .ys-detail-related-side { display: none; }
    .ys-detail-panel { margin-top: 15px; padding: 16px; }
    .ys-file-detail-grid { grid-template-columns: 1fr; }
    .ys-file-detail-grid > div { grid-template-columns: 104px minmax(0,1fr); }
    .ys-file-detail-grid dt, .ys-file-detail-grid dd { padding: 8px 10px; }
    .ys-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 10px; }
}

@media (max-width: 420px) {
    .ys-home-hero h1 { font-size: 28px; }
    .ys-home-hero-inner > p { max-width: 320px; }
    .ys-discovery-card { min-height: 168px; }
    .ys-resource-overview { grid-template-columns: 1fr; }
    .ys-detail-file-visual { width: 116px; min-height: 142px; }
    .ys-detail-core { padding-top: 0; }
    .ys-detail-actions { grid-template-columns: 1fr 1fr; }
}

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

.ys-geo-panel {
    margin-top: 28px;
    padding: 24px 26px;
    color: #243247;
    background: #fff;
    border: 1px solid #dfe7f1;
    border-left: 4px solid #2d6cdf;
    border-radius: 6px;
}
.ys-geo-kicker { color: #28765d; font-size: 12px; font-weight: 700; }
.ys-geo-panel h2 { margin: 6px 0 12px; font-size: 20px; line-height: 1.45; }
.ys-geo-panel h3 { margin: 22px 0 10px; font-size: 15px; }
.ys-geo-answer { margin: 0; color: #172235; font-size: 15px; font-weight: 600; line-height: 1.85; }
.ys-geo-intro { margin: 10px 0 0; color: #5a687b; font-size: 14px; line-height: 1.9; white-space: pre-line; }
.ys-geo-faq { margin-top: 18px; border-top: 1px solid #e8edf4; }
.ys-geo-resource-preview { margin-top: 19px; }
.ys-geo-resource-preview h3 { margin-bottom: 9px; }
.ys-geo-resource-preview ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 16px; margin: 0; padding: 0; list-style: none; }
.ys-geo-resource-preview li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 8px 10px; background: #f7f9fb; border-radius: 4px; }
.ys-geo-resource-preview li span { overflow: hidden; color: #405069; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ys-geo-resource-preview li small { flex: none; color: #7d8b9e; font-size: 10px; }
.ys-geo-faq details { border-bottom: 1px solid #e8edf4; }
.ys-geo-faq summary { padding: 13px 2px; color: #263750; font-size: 14px; font-weight: 600; cursor: pointer; }
.ys-geo-faq details p { margin: -2px 0 14px; color: #637084; font-size: 13px; line-height: 1.8; }
.ys-geo-related { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.ys-geo-related strong { margin-right: 3px; color: #526176; font-size: 13px; }
.ys-geo-related a { padding: 6px 10px; color: #315b9b; background: #f2f6fb; border-radius: 4px; font-size: 12px; }
.ys-geo-related a:hover { color: #164da1; background: #e7eff9; }
.ys-geo-updated { margin-top: 16px; color: #8a96a6; font-size: 11px; }

@media (max-width: 768px) {
    .ys-geo-panel { margin-top: 20px; padding: 19px 17px; }
    .ys-geo-panel h2 { font-size: 17px; }
    .ys-geo-answer { font-size: 14px; }
    .ys-geo-resource-preview ul { grid-template-columns: 1fr; }
}
