/* 同模版1层级：页面底 → 顶栏 → Tab → 卡片 → 标题条 → 强调字 */
:root {
    --brand: #e67e22;
    --brand-deep: #a35412;
    --card: #ffffff;
    --ink: #2a221c;
    --line: #f0e6dc;
    --nav-bg: rgba(243, 156, 74, 0.94);
    --nav-border: rgba(163, 84, 18, 0.28);
    --tab-bg: #f39c4a;
    --tab-bg-hover: #e67e22;
    --tab-border: #e67e22;
    --tab-border-bottom: #c96a18;
    --title-bg: #fff5eb;
    --title-ink: #a35412;
    --tint: rgba(230, 126, 34, 0.1);
    --on-brand: #ffffff;
    --on-tab: #ffffff;
    --radius: 6px;
    --grid-gap: 4px;
    --container-width: 1020px;
    --sidebar-margin: 515px;
    --shadow: 0 1px 2px rgba(56, 28, 8, 0.06), 0 8px 24px rgba(56, 28, 8, 0.1);
}

.site-logo {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: cover;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

::-webkit-scrollbar { width: 8px; height: 5px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.06); border-radius: 2em; }
::-webkit-scrollbar-thumb { background-color: color-mix(in srgb, var(--brand-deep) 55%, transparent); border-radius: 2em; }
::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--brand-deep) 75%, transparent); }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--brand);
    color: var(--ink);
    font-size: 13px;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
html { overflow-y: scroll; scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }

.ss-header {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nav-border);
    padding: 12px 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 18px;
}
.ss-hdrbox {
    width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ss-hdrleft { flex-shrink: 0; }
.ss-title { font-size: 24px; font-weight: 800; margin: 0; }
.ss-title a {
    color: var(--on-brand);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.22);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ss-hdrmid { flex: 1; max-width: 360px; }
.ss-searchform { display: flex; width: 100%; position: relative; }
.ss-searchinp {
    width: 100%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 22px;
    padding: 8px 45px 8px 15px;
    color: var(--on-brand);
    font-size: 13px;
    outline: none;
}
.ss-searchinp::placeholder { color: rgba(255,255,255,0.62); }
.ss-searchinp:focus {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.36);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}
.ss-searchbtn {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: rgba(255,255,255,0.8);
    cursor: pointer; font-size: 14px; padding: 6px 10px;
}
.ss-searchbtn:hover { color: var(--on-brand); }
.ss-hdrright { flex-shrink: 0; }
.ss-hdrlinks { display: flex; align-items: center; gap: 6px; }
.ss-hdrlink {
    color: rgba(255,255,255,0.88);
    font-weight: 600; font-size: 12px;
    padding: 6px 9px; border-radius: 999px;
    display: flex; align-items: center; gap: 4px; white-space: nowrap;
    transition: background .25s, color .25s;
}
.ss-hdrlink:hover { background: rgba(255,255,255,0.12); color: var(--on-brand); }
.ss-hdrlink.active { background: rgba(255,255,255,0.92); color: var(--brand-deep); }
.ss-hdrlink.active i { color: var(--brand-deep); }

.ss-container {
    width: var(--container-width);
    margin: 0 auto;
    padding-bottom: 0;
}

.ss-catnav { width: 100%; margin-bottom: 12px; }
.ss-navlist {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--grid-gap);
    list-style: none;
}
.ss-navitem {
    background: var(--tab-bg);
    border: 1px solid var(--tab-border);
    border-bottom: 2px solid var(--tab-border-bottom);
    border-radius: 5px;
    height: 40px;
    overflow: hidden;
    transition: background .25s, border-color .25s;
}
.ss-navitem a {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    color: var(--on-tab); font-weight: 700; font-size: 13px;
}
.ss-navitem:hover,
.ss-navitem.highlight:hover { background: var(--tab-bg-hover); }

.ss-featured,
.ss-appsec,
.ss-recomsec,
.ss-catsec {
    width: 100%;
    background: var(--card);
    margin-bottom: 12px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.ss-featlist,
.ss-recomlist,
.ss-linkgrid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    list-style: none;
}
.ss-featitem,
.ss-recomitem,
.ss-linkitem {
    height: 40px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background .22s;
    overflow: hidden;
}
.ss-featitem a,
.ss-recomitem a,
.ss-linkitem a {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    color: var(--ink); font-size: 13px; text-align: center; padding: 0 5px;
}
.ss-featitem:hover,
.ss-recomitem:hover,
.ss-linkitem:hover { background: var(--tint); }
.ss-featitem:hover a,
.ss-recomitem:hover a,
.ss-linkitem:hover a { color: var(--brand-deep) !important; }

.ss-banners {
    width: 100%; margin-bottom: 12px;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}

/* Banner + APP hover (synced from template 1; classes keep ss-* fingerprint) */
.ss-banitem { min-width: 0; position: relative; }
.ss-banitem > a {
    display: block; position: relative;
    border-radius: calc(var(--radius) + 2px); overflow: hidden;
    background: var(--card);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.08);
    transform: translateZ(0);
    transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s cubic-bezier(.2,.8,.2,1);
}
.ss-banitem > a::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 0 0 1px transparent;
    transition: box-shadow .22s ease;
}
.ss-banitem img {
    width: 100%; display: block; border-radius: inherit;
    transform: scale(1);
    transition: transform .28s cubic-bezier(.2,.8,.2,1), filter .22s ease;
}
@media (hover: hover) and (pointer: fine) {
    .ss-banitem > a:hover,
    .ss-banitem > a:focus-visible {
        transform: translateY(-4px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1), 0 16px 32px color-mix(in srgb, var(--brand-deep) 22%, transparent);
        outline: none;
    }
    .ss-banitem > a:hover::after,
    .ss-banitem > a:focus-visible::after {
        box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 45%, transparent);
    }
    .ss-banitem > a:hover img,
    .ss-banitem > a:focus-visible img {
        transform: scale(1.03); filter: saturate(1.06) contrast(1.02);
    }
}
.ss-appgrid { padding: 8px 6px 12px; }
.ss-applink {
    display: flex; flex-direction: column; align-items: center; width: 100%;
    padding: 6px 2px 4px; border-radius: 12px;
    transition: background-color .2s ease;
}
.ss-appicon {
    width: 64px; height: 64px; border-radius: 16px; overflow: hidden;
    margin: 8px 12px 10px; position: relative;
    background: color-mix(in srgb, var(--title-bg) 80%, #fff);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 6px 14px rgba(0,0,0,0.1);
    transform: translateZ(0);
    transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s cubic-bezier(.2,.8,.2,1);
}
.ss-appicon::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 12%, transparent);
    transition: box-shadow .22s ease;
}
.ss-appicon img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.ss-appname { transition: color .2s ease, transform .22s ease; }
@media (hover: hover) and (pointer: fine) {
    .ss-applink:hover,
    .ss-applink:focus-visible {
        background: color-mix(in srgb, var(--brand) 6%, transparent);
        outline: none;
    }
    .ss-applink:hover .ss-appicon,
    .ss-applink:focus-visible .ss-appicon {
        transform: translateY(-5px) scale(1.06);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1), 0 14px 28px color-mix(in srgb, var(--brand-deep) 22%, transparent);
    }
    .ss-applink:hover .ss-appicon::after,
    .ss-applink:focus-visible .ss-appicon::after {
        box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 42%, transparent);
    }
    .ss-applink:hover .ss-appicon img,
    .ss-applink:focus-visible .ss-appicon img { transform: scale(1.05); }
    .ss-applink:hover .ss-appname,
    .ss-applink:focus-visible .ss-appname {
        color: var(--brand-deep); transform: translateY(-1px); font-weight: 700;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ss-banitem > a, .ss-banitem img, .ss-applink, .ss-appicon, .ss-appicon img, .ss-appname { transition: none; }
    .ss-banitem > a:hover, .ss-applink:hover .ss-appicon { transform: none; }
}
.ss-banitem img { width: 100%; display: block; border-radius: var(--radius); }

.ss-sechdr {
    height: 42px; width: 100%;
    display: flex; align-items: center; padding-left: 18px;
    background: var(--title-bg);
    border-bottom: 1px solid var(--line);
}
.ss-secttl {
    font-size: 16px; font-weight: 700; color: var(--title-ink);
    letter-spacing: 0.04em;
    display: inline-flex; align-items: center; gap: 8px;
}
.theme-pink, .theme-red, .theme-green, .theme-yellow,
.theme-blue, .theme-gray, .theme-orange, .theme-black {
    background: var(--title-bg);
    color: var(--title-ink);
}

.ss-appgrid {
    display: grid; grid-template-columns: repeat(10, 1fr);
    list-style: none; padding: 5px;
}
.ss-appitem { margin: 4px 0; }
.ss-appname {
    width: 100%; height: 25px; line-height: 25px; text-align: center;
    font-size: 13px; color: var(--ink);
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

.ss-footer {
    background: rgba(255,255,255,0.94);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 18px 20px; text-align: center;
    box-shadow: var(--shadow);
}
.ss-footlinks {
    margin-bottom: 12px; font-weight: 700; font-size: 13px;
    color: var(--line); white-space: nowrap; line-height: 1.5;
}
.ss-footlinks a { color: var(--brand-deep); }
.ss-footlinks a:hover { color: var(--ink); }
.ss-footer p { line-height: 24px; color: var(--ink); }
.ss-footer p a { color: var(--ink); font-weight: 700; }
.ss-warntext { margin-top: 10px; font-size: 12px; color: var(--ink); opacity: .72; }

.ss-sidebar {
    position: fixed; bottom: 0; width: 70px;
    left: 50%; margin-left: var(--sidebar-margin);
    display: flex; flex-direction: column; gap: var(--grid-gap);
}
.ss-sideitem {
    width: 70px; height: 32px; line-height: 32px; text-align: center;
    color: var(--on-tab); border-radius: 5px; font-size: 12px;
    background: var(--tab-bg);
    border: 1px solid var(--tab-border);
    border-bottom: 2px solid var(--tab-border-bottom);
    transition: background .25s;
}
.ss-sideitem:hover { background: var(--tab-bg-hover); }

.ss-backhome .ss-navlist { grid-template-columns: 1fr; }
.ss-subsec {
    width: 100%; background: var(--card); margin-bottom: 12px;
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.ss-subbody {
    padding: 24px 28px; color: var(--ink); font-size: 14px; line-height: 1.85;
}
.ss-subbody h3 {
    font-size: 17px; margin-top: 22px; margin-bottom: 12px;
    color: var(--brand-deep); border-left: 4px solid var(--brand);
    padding-left: 10px; display: flex; align-items: center; gap: 8px;
}
.ss-subbody h3:first-child { margin-top: 0; }
.ss-subbody p { margin-bottom: 14px; }
.ss-subbody ul, .ss-subbody ol { margin-bottom: 14px; padding-left: 20px; }
.ss-subbody li { margin-bottom: 6px; }
.ss-subbody a { color: var(--brand-deep); font-weight: 700; text-decoration: underline; }
.ss-subbody a:hover { color: var(--brand); }
.ss-subbody code {
    background: var(--tint); border: 1px solid var(--line); border-radius: 4px;
    padding: 2px 7px; font-family: inherit; font-size: 13px; font-weight: 700;
    color: var(--brand-deep);
}
.ss-callout {
    background: var(--title-bg); border: 1px solid var(--line);
    border-left: 4px solid var(--brand); border-radius: var(--radius);
    padding: 16px 18px; margin-bottom: 22px;
}
.ss-callout h3 { margin-top: 0; border-left: none; padding-left: 0; }
.ss-chip {
    display: inline-block; background: var(--card); border: 1px solid var(--line);
    border-radius: 4px; padding: 3px 9px; font-family: inherit; font-size: 14px;
    font-weight: 700; color: var(--brand-deep);
}
.ss-rulelist { list-style: none; padding-left: 0; margin-bottom: 22px; }
.ss-rulelist li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.ss-rulelist li > i { color: var(--brand-deep); margin-top: 4px; width: 1.1em; text-align: center; }
.ss-contact {
    background: var(--title-bg); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px 20px; max-width: 520px;
}
.ss-contact p {
    margin-bottom: 12px; font-size: 15px;
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px;
}
.ss-contact p:last-child { margin-bottom: 0; }
.ss-contact i { color: var(--brand-deep); font-size: 18px; width: 1.25em; text-align: center; }
.ss-contact a { color: var(--brand-deep); font-weight: 700; text-decoration: underline; }
.ss-subnote { color: var(--ink); opacity: .72; font-size: 12px; margin-top: 16px; }
.ss-formctrl {
    width: 100%; padding: 10px 12px; border: 1px solid var(--line);
    border-radius: 6px; font-size: 14px; outline: none;
    background: #fff; color: var(--ink);
}
.ss-formctrl:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--tint); }
.ss-btn {
    background: var(--brand); color: var(--on-brand); border: 0; border-radius: 6px;
    padding: 10px 22px; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.ss-btn:hover { background: var(--brand-deep); }
.ss-searchbox { display: flex; gap: 10px; margin-bottom: 24px; max-width: 640px; }
.ss-searchbox .ss-formctrl { flex: 1; min-width: 0; }
.ss-restitle {
    font-size: 15px; font-weight: 700; margin-bottom: 14px;
    color: var(--brand-deep); border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
.ss-resgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; }
.ss-resitem {
    background: var(--title-bg); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 12px 14px;
    transition: border-color .25s, background .25s, transform .25s;
}
.ss-resitem:hover {
    border-color: var(--brand); background: var(--tint); transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.ss-resname { font-weight: 700; color: var(--brand-deep); font-size: 14px; margin-bottom: 5px; display: block; }
.ss-resdesc { font-size: 12px; color: var(--ink); opacity: .72; line-height: 1.45; display: block; }
.ss-resempty {
    grid-column: 1 / -1; text-align: center; padding: 36px 16px;
    color: var(--ink); opacity: .55; font-size: 15px;
}
.ss-resempty i { font-size: 24px; margin-bottom: 10px; display: block; color: var(--brand); }

@media screen and (max-width:1360px) {
    .ss-sidebar { display: none; }
}
@media screen and (max-width:960px) {
    .ss-hdrbox {
        width: min(var(--container-width), calc(100% - 24px));
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "left right" "middle middle";
        gap: 10px 12px;
    }
    .ss-hdrleft { grid-area: left; }
    .ss-hdrright { grid-area: right; }
    .ss-hdrmid { grid-area: middle; max-width: 100%; }
    .ss-container { width: 98%; }
    .ss-navlist { grid-template-columns: repeat(5, 1fr); }
    .ss-featlist, .ss-recomlist, .ss-linkgrid { grid-template-columns: repeat(4, 1fr); }
    .ss-appgrid { grid-template-columns: repeat(5, 1fr); }
}
@media screen and (max-width:800px) {
    .ss-navlist, .ss-featlist, .ss-appgrid, .ss-recomlist, .ss-linkgrid {
        grid-template-columns: repeat(4, 1fr);
    }
    .ss-banners { grid-template-columns: 1fr; }
    .ss-resgrid { grid-template-columns: repeat(2, 1fr); }
    .ss-subbody { padding: 18px 16px; }
}
@media screen and (max-width:640px) {
    .ss-hdrbox {
        grid-template-columns: 1fr;
        grid-template-areas: "left" "middle" "right";
    }
    .ss-hdrleft { display: flex; justify-content: center; }
    .ss-hdrlinks {
        display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
        width: 100%; max-width: none;
    }
    .ss-hdrlink { flex-direction: column; font-size: 9px; padding: 5px 1px; border-radius: 10px; }
    .ss-navitem a, .ss-featitem a, .ss-recomitem a, .ss-linkitem a { font-size: 11px; }
}
@media screen and (max-width:480px) {
    .ss-resgrid { grid-template-columns: 1fr; }
    .ss-searchbox { flex-direction: column; }
}
