:root {
    --sky: #eaf4ff;
    --sky-2: #d7ebff;
    --ink: #123056;
    --panel: #ffffff;
    --line: rgba(26, 124, 255, 0.18);
    --blue: #1a7cff;
    --blue-deep: #0d5bd7;
    --cyan: #3ec6ff;
    --muted: #5d7896;
    --amber: #1a7cff;
    --rose: #e85d6c;
    --shadow: 0 12px 32px rgba(18, 72, 140, 0.08);
    --serif: "Instrument Serif", "Noto Serif SC", serif;
    --sans: "Sora", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--sans);
    background:
        radial-gradient(900px 420px at 8% -10%, #ffffff 0%, transparent 55%),
        radial-gradient(720px 380px at 100% 0%, #cfe6ff 0%, transparent 50%),
        var(--sky);
    color: var(--ink);
    min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.noise {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(26, 124, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 124, 255, .07) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 35%, transparent 80%);
}
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; position: relative; z-index: 1; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, .82);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; padding: 14px 0 10px; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
    width: 36px; height: 36px; display: grid; place-items: center;
    background: linear-gradient(160deg, var(--cyan), var(--blue));
    color: #fff; font-weight: 700;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    box-shadow: 0 0 0 4px rgba(26, 124, 255, .12);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.brand-text small { color: var(--muted); font-size: 12px; }
.search-form {
    flex: 1;
    display: flex;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.search-form input,
.hero-search input {
    flex: 1;
    background: transparent;
    border: 0;
    color: var(--ink);
    padding: 10px 16px;
    outline: none;
}
.search-form input::placeholder,
.hero-search input::placeholder { color: #8aa3c0; }
.search-form button,
.hero-search button,
.btn {
    border: 0;
    background: linear-gradient(180deg, #3b91ff, var(--blue-deep));
    color: #fff;
    font-weight: 700;
    padding: 10px 16px;
    cursor: pointer;
}
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.lang-slot { min-width: 128px; position: relative; z-index: 3; }
#translate { display: none; }
.lang-slot select,
#translate select,
.translateSelectLanguage {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-width: 128px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231a7cff' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 32px 8px 12px;
    font-size: 13px;
}
.nav-toggle { display: none; background: #fff; color: var(--ink); border: 1px solid var(--line); padding: 8px 10px; }
.cat-nav { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 12px; }
.cat-nav a {
    white-space: nowrap;
    font-size: 13px;
    color: var(--muted);
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}
.cat-nav a:hover { color: var(--blue); border-color: var(--blue); }

.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 36px;
    padding: 52px 0 18px;
    align-items: stretch;
}
.eyebrow { letter-spacing: .22em; font-size: 11px; color: var(--blue); margin: 0 0 12px; text-transform: uppercase; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: .96; margin: 0 0 16px; }
.hero h1 strong { font-style: italic; color: var(--blue); }
.lede { color: var(--muted); max-width: 46ch; line-height: 1.7; margin: 0; }
.hero-search {
    margin-top: 24px;
    display: flex;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.hero-search input { padding: 14px 16px; }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 28px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}
.hero-stats div { padding-right: 16px; }
.hero-stats b { display: block; font-size: 22px; margin-bottom: 4px; color: var(--blue-deep); }
.hero-stats span { color: var(--muted); font-size: 12px; }

.hero-stage { display: flex; flex-direction: column; gap: 12px; }
.hero-lead {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 18px;
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(62, 198, 255, .16), transparent 42%),
        #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    align-items: center;
    box-shadow: var(--shadow);
}
.hero-lead-icon {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    background: #eef6ff;
    border-radius: 22px;
    border: 1px solid var(--line);
    overflow: hidden;
}
.hero-lead-icon img { width: 72px; height: 72px; max-width: 72px; object-fit: contain; }
.kicker { letter-spacing: .18em; font-size: 11px; color: var(--blue); text-transform: uppercase; }
.hero-lead h2 { font-size: 28px; margin: 6px 0 8px; }
.hero-lead p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-cta {
    display: inline-block;
    margin-top: 14px;
    color: #fff;
    background: linear-gradient(180deg, #3b91ff, var(--blue-deep));
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
}
.hero-side { display: grid; gap: 10px; }
.hero-mini {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.hero-mini img { width: 40px; height: 40px; max-width: 40px; flex-shrink: 0; object-fit: contain; }
.hero-mini strong { display: block; font-size: 14px; }
.hero-mini em { display: block; color: var(--blue); font-style: normal; font-size: 12px; margin-top: 2px; }
.hero-lead:hover,
.hero-mini:hover,
.soft-card:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
    transition: transform .18s ease, border-color .18s ease;
}

.block { padding: 28px 0 48px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.block-head h2 { margin: 0; font-size: 28px; }
.block-head p { color: var(--muted); font-size: 13px; margin: 0; }
.soft-grid, .feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
.rank-item { display: flex; min-width: 0; }
.rank-no { flex: 0 0 26px; width: 26px; height: 26px; margin-right: 10px; display: grid; place-items: center; align-self: center; border-radius: 8px; background: #eef3fb; color: var(--muted); font-size: 12px; font-weight: 600; }
.rank-no.top { background: var(--blue); color: #fff; }
.rank-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.rank-link:hover { border-color: var(--blue); }
.rank-link img { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: #eef6ff; }
.rank-name { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-meta { margin-left: auto; padding-left: 10px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.update-list { grid-template-columns: 1fr; }
.rank-list-page { grid-template-columns: 1fr; }
.rank-switch { display: flex; gap: 16px; margin: 4px 0 0; }
.rank-switch a { color: var(--muted); font-size: 14px; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.rank-switch a:hover { color: var(--ink); }
.rank-switch a.on { color: var(--blue-deep); border-bottom-color: var(--blue); }
.feature-grid .soft-card {
    background: linear-gradient(180deg, #f4f9ff, #fff);
}
.soft-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.soft-card-link { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; padding: 16px; align-items: center; }
.soft-icon {
    width: 56px;
    height: 56px;
    background: #eef6ff;
    display: grid;
    place-items: center;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.soft-icon img { width: 36px; height: 36px; max-width: 36px; object-fit: contain; }
.soft-meta h3 { margin: 0 0 6px; font-size: 16px; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.soft-meta p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.soft-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.soft-tags span {
    font-size: 11px;
    color: var(--blue-deep);
    border: 1px solid var(--line);
    background: #f3f8ff;
    padding: 2px 6px;
    border-radius: 999px;
}
.soft-heat { text-align: right; }
.soft-heat b { display: block; color: var(--blue); font-size: 16px; }
.soft-heat small { color: var(--muted); }

.page-head { padding: 40px 0 10px; }
.page-head h1 { font-size: 42px; margin: 0; }
.page-head p { color: var(--muted); }
.empty { padding: 40px; border: 1px dashed var(--line); color: var(--muted); border-radius: 16px; background: #fff; }

.detail { padding: 36px 0 80px; }
.detail-hero {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}
.detail-icon {
    width: 120px;
    height: 120px;
    background: #fff;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.detail-icon img { width: 72px; height: 72px; max-width: 72px; object-fit: contain; }
.detail-copy h1 { font-size: 44px; margin: 0 0 10px; }
.spec { display: flex; flex-wrap: wrap; gap: 18px; padding: 0; list-style: none; margin: 16px 0 0; }
.spec span { display: block; color: var(--muted); font-size: 12px; }
.detail-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.btn.primary { display: inline-block; border-radius: 999px; }
.btn.ghost {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 10px 16px;
    border-radius: 999px;
}
.rich { line-height: 1.8; color: #2a4468; max-width: 72ch; }
.rich h2, .rich h3 { font-family: var(--serif); color: var(--ink); }
.rich a { color: var(--blue); }
.mobile-dl { display: none; }

.site-footer {
    border-top: 1px solid var(--line);
    padding: 36px 0 48px;
    color: var(--muted);
    background: rgba(255, 255, 255, .55);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid h4 { color: var(--ink); margin: 0 0 8px; }
.brand.mini { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--ink); }
.footer-link-board { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.flb-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.flb-tabs { display: flex; align-items: center; gap: 22px; }
.flb-tab { border: 0; background: none; padding: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--muted); cursor: pointer; font-family: inherit; border-bottom: 2px solid transparent; }
.flb-tab:hover { color: var(--ink); }
.flb-tab.on { color: var(--blue-deep); border-bottom-color: var(--blue); }
.flb-note { color: var(--muted); font-size: 13px; margin: 0; }
.flb-panels { margin-top: 14px; }
.flb-panel { display: flex; flex-wrap: wrap; align-items: baseline; }
.flb-panel[hidden] { display: none; }
.flb-item { color: var(--muted); font-size: 13px; line-height: 1.9; }
a.flb-item:hover { color: var(--blue-deep); }
.flb-panel .flb-item + .flb-item::before { content: "|"; color: var(--line); margin: 0 8px; }
.footer-disclosure { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.fd-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 0 0 10px; }
.fd-links a, .fd-links span { color: var(--muted); font-size: 13px; }
.fd-links a:hover { color: var(--blue-deep); }
.fd-record, .fd-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.cs-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 40;
    width: 64px; height: 64px; border: 0; cursor: pointer;
    background: linear-gradient(160deg, var(--cyan), var(--blue));
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(13, 91, 215, .28);
}
.cs-fab-icon, .cs-fab-close { display: grid; place-items: center; line-height: 1; }
.cs-fab-close { display: none; font-size: 28px; font-weight: 400; }
.cs-root.is-open .cs-fab-icon { display: none; }
.cs-root.is-open .cs-fab-close { display: grid; }
.cs-root.is-panel .cs-fab { display: none; }
.cs-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: #2dff6a; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.cs-dot.off { background: var(--rose); }
.cs-panel {
    position: fixed; right: 22px; bottom: 96px; z-index: 40; width: min(360px, calc(100vw - 24px));
    background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; max-height: 70vh;
    border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
}
.cs-panel header { display: flex; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cs-panel header small { display: block; color: var(--muted); }
.cs-panel header button { background: none; border: 0; color: var(--ink); font-size: 20px; cursor: pointer; }
.cs-log { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 220px; background: #f6fbff; }
.bubble { max-width: 85%; padding: 8px 10px; font-size: 13px; line-height: 1.5; border-radius: 10px; }
.bubble.visitor { align-self: flex-end; background: #dcebff; }
.bubble.admin, .bubble.system { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.bubble p { margin: 0 0 6px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble ul, .bubble ol { margin: 4px 0 6px; padding-left: 18px; }
.bubble li { margin: 2px 0; }
.bubble code { background: #eef4ff; border-radius: 4px; padding: 0 4px; font-size: 12px; }
.bubble small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.cs-form { border-top: 1px solid var(--line); padding: 10px; background: #fff; }
.cs-form input, .cs-compose textarea {
    width: 100%; background: #f6fbff; border: 1px solid var(--line); color: var(--ink); padding: 8px; border-radius: 8px;
}
.cs-compose { display: flex; gap: 8px; margin-top: 8px; }
.cs-compose textarea { resize: none; }
.cs-compose button {
    background: linear-gradient(180deg, #3b91ff, var(--blue-deep));
    border: 0; color: #fff; font-weight: 700; padding: 0 12px; cursor: pointer; border-radius: 8px;
}

@media (max-width: 860px) {
    .hero, .detail-hero, .footer-grid, .soft-grid, .feature-grid, .rank-list { grid-template-columns: 1fr; }
    .header-inner { flex-wrap: wrap; }
    .search-form { order: 3; flex: 1 1 100%; }
    .nav-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 10px; }
    .lang-slot, .lang-slot select, .translateSelectLanguage {
        min-width: 104px;
        width: auto;
    }
    .cat-nav { display: none; }
    .cat-nav.open { display: flex; flex-wrap: wrap; }
    .hero { padding-top: 28px; gap: 22px; }
    .hero-lead { grid-template-columns: 64px 1fr; }
    .hero-lead-icon { width: 64px; height: 64px; border-radius: 16px; }
    .hero-lead-icon img { width: 48px; height: 48px; max-width: 48px; }
    .hero-lead h2 { font-size: 22px; }
    .hero-search { flex-direction: column; }
    .soft-card-link { grid-template-columns: 48px 1fr; }
    .soft-heat { display: none; }
    .mobile-dl {
        display: block;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        padding: 10px 12px 12px;
        background: rgba(255,255,255,.94);
        z-index: 30;
        border-top: 1px solid var(--line);
    }
    .mobile-dl .btn { display: block; text-align: center; }
}

.cs-menu {
    position: fixed; right: 22px; bottom: 90px; z-index: 41;
    width: min(260px, calc(100vw - 24px));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow);
}
.cs-menu-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%; text-align: left;
    background: transparent; border: 0; cursor: pointer;
    padding: 10px; border-radius: 12px; color: var(--ink);
}
.cs-menu-item:hover { background: #eef6ff; }
.cs-menu-ico {
    width: 36px; height: 36px; flex-shrink: 0;
    display: grid; place-items: center;
    background: #eaf4ff; color: var(--blue-deep); border-radius: 10px;
}
.cs-menu-item strong { display: block; font-size: 14px; }
.cs-menu-item small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.cs-contact-list { margin: 0; padding: 6px 16px 16px; }
.cs-contact-list div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cs-contact-list dt { font-size: 12px; color: var(--muted); }
.cs-contact-list dd { margin: 4px 0 0; font-weight: 600; }
.cs-fab { width: 56px; height: 56px; z-index: 42; }
.cs-panel { bottom: 90px; z-index: 41; }
[hidden] { display: none !important; }

.member-menu { position: relative; z-index: 6; }
.member-avatar-btn {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
}
.member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, var(--cyan), var(--blue));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 0 0 3px rgba(26, 124, 255, .12);
}
.member-vip-dot {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #3ec6ff;
    border: 2px solid #fff;
}
.member-drop {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 148px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 6px;
    z-index: 100;
}
.member-menu.open .member-drop { display: block; }
.member-drop a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 13px;
}
.member-drop a:hover { background: #eef6ff; color: var(--blue-deep); }
.member-login {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    color: var(--blue-deep);
    white-space: nowrap;
}
.home-split { display: grid; grid-template-columns: 1fr 240px; gap: 20px; align-items: start; }
.ad-slot { margin: 16px 0; display: grid; gap: 10px; }
.ad-unit { position: relative; display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ad-unit img { width: 100%; height: auto; display: block; }
.ad-slot:not(.ad-home_sidebar) .ad-unit img { max-height: 400px; object-fit: contain; object-position: center; margin: 0 auto; }
.ad-unit span, .ad-unit strong { display: block; padding: 10px 12px; }
.ad-flag {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(18, 48, 86, .72);
    color: #fff;
}
.ad-unit .ad-flag { display: inline-block; padding: 2px 8px; }
.ad-home_sidebar { position: sticky; top: 88px; }
.ad-alliance { position: relative; margin-top: 16px; padding-top: 8px; }
.ad-native { margin: 18px 0; }
.ad-popup {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(18, 48, 86, .45);
    display: grid; place-items: center; padding: 20px;
}
.ad-popup-card {
    position: relative; width: min(420px, 100%);
    background: #fff; border-radius: 18px; padding: 28px 18px 18px;
    box-shadow: var(--shadow);
}
.ad-popup-close {
    position: absolute; top: 8px; right: 10px;
    border: 0; background: transparent; font-size: 24px; cursor: pointer; color: var(--muted);
}
.ad-popup-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -6px 28px 14px 0;
    min-height: 22px;
}
.ad-popup-flag {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--sky-2);
    color: var(--blue-deep);
    border: 1px solid var(--line);
}
.ad-popup-timer {
    font-size: 12px;
    color: var(--muted);
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}
.news-list { display: grid; gap: 12px; }
.news-card {
    display: block; background: #fff; border: 1px solid var(--line);
    border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow);
}
.news-card small { color: var(--muted); font-size: 12px; }
.news-card h2 { margin: 6px 0 8px; font-size: 20px; }
.news-card p { margin: 0; color: var(--muted); }
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip-nav a {
    padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px;
}
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 32px; }
.plan-card, .form-card, .dl-box, .dl-card, .dl-channels article {
    background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow);
}
.plan-card .price { font-size: 18px; }
.plan-card .price b { font-size: 32px; }
.form-card { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 40px; }
.form-card label, .form-card input, .form-card select, .form-card textarea { display: block; width: 100%; }
.form-card input, .form-card select, .form-card textarea {
    margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f6fbff;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dl-box { margin: 12px auto 48px; }
.dl-card { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
 .dl-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.dl-channels .vip { border-color: var(--blue); }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 40px; }
.order-row { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.alert { width: min(1120px, calc(100% - 32px)); margin: 12px auto; padding: 10px 14px; border-radius: 10px; background: #ffe4e8; color: #8a2432; }
.alert.ok { background: #e5f4ff; color: #0d5bd7; }
.muted { color: var(--muted); }
.pay-hint { padding-bottom: 40px; }
#freeDl[aria-disabled="true"] { opacity: .65; pointer-events: none; }

.pay-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pay-box { padding-bottom: 48px; }
.pay-card { max-width: 420px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.pay-qr { width: 200px; height: 200px; margin: 0 auto 12px; }
.pay-qr img { margin: 0 auto; }
.pay-url { word-break: break-all; font-size: 12px; }

.cps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; padding-bottom: 24px; }
.cps-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.cps-card span { color: var(--muted); font-size: 13px; }

.me { padding: 28px 0 56px; display: grid; gap: 16px; }
.me .alert { width: 100%; margin: 0; }
.me-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: center;
    background: linear-gradient(135deg, #0b4ec4 0%, #1a7cff 52%, #5ad0ff 100%);
    color: #fff;
    border-radius: 24px;
    padding: 26px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(13, 91, 215, .28);
}
.me-hero::after {
    content: "";
    position: absolute;
    width: 260px; height: 260px;
    right: -70px; top: -90px;
    background: radial-gradient(circle, rgba(255,255,255,.28), transparent 70%);
}
.me-avatar {
    width: 72px; height: 72px;
    border-radius: 22px;
    background: rgba(255,255,255,.16);
    display: grid; place-items: center;
    font-size: 30px; font-weight: 700;
    border: 1px solid rgba(255,255,255,.35);
    position: relative; z-index: 1;
}
.me-id { position: relative; z-index: 1; }
.me-id .eyebrow { color: rgba(255,255,255,.78); }
.me-id h1 { margin: 0; font-size: 28px; font-family: var(--sans); }
.me-id p { margin: 6px 0 0; opacity: .9; font-size: 13px; }
.me-badge {
    display: inline-flex; margin-top: 10px;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(255,255,255,.16); font-size: 12px; font-weight: 700;
}
.me-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.me-stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
}
.me-stat b { display: block; font-size: 22px; color: var(--blue-deep); }
.me-stat span { color: var(--muted); font-size: 12px; }
.me-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.me-quick form { margin: 0; }
.me-quick .btn { border-radius: 999px; }
.me-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.me-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 18px 14px;
    box-shadow: var(--shadow);
    min-width: 0;
}
.me-panel h2 {
    margin: 0 0 12px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.me-panel h2 a { font-size: 12px; color: var(--blue); font-weight: 600; }
.me-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
}
.me-row small { color: var(--muted); display: block; margin-top: 3px; }
.me-row a { color: var(--blue-deep); }
.me-invite {
    display: flex; gap: 8px; align-items: center;
    background: #f6fbff;
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    margin: 10px 0;
}
.me-invite code {
    flex: 1; font-size: 13px; font-weight: 700; letter-spacing: .04em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.me-empty { color: var(--muted); padding: 8px 0 4px; font-size: 13px; }
.me-form label { display: block; font-size: 13px; margin-bottom: 10px; }
.me-form input {
    display: block; width: 100%; margin-top: 6px;
    padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f6fbff;
}
.me-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.me-form select, .me-form textarea {
    display: block; width: 100%; margin-top: 6px;
    padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f6fbff;
}
.me-subnav {
    display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px;
}
.me-subnav a {
    display: inline-flex; align-items: center;
    padding: 7px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff;
    color: var(--blue-deep); font-size: 13px; font-weight: 600;
}
.me-subnav a.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.me-row span { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.me-row form { margin: 0; }
.linkish {
    border: 0; background: none; color: var(--blue); cursor: pointer; font: inherit; padding: 0;
}
.tag-ok { color: #0d5bd7; font-style: normal; }
.tag-wait { color: #c27800; font-style: normal; }
.tag-off { color: var(--rose); font-style: normal; }
@media (max-width: 860px) {
    .home-split, .plan-grid, .dl-channels, .account-grid, .form-row, .me-hero, .me-grid { grid-template-columns: 1fr; }
    .me-stats { grid-template-columns: 1fr 1fr; }
    .ad-home_sidebar { position: static; }
}
@media (max-width: 560px) {
    .me-stats, .me-grid { grid-template-columns: 1fr; }
}

.rn-tabs {
    display: inline-flex; gap: 6px; padding: 4px; margin: 4px 0 14px;
    border: 1px solid var(--line); border-radius: 999px; background: #f6fbff;
}
.rn-tab {
    border: 0; background: none; cursor: pointer; font: inherit;
    padding: 7px 16px; border-radius: 999px; color: var(--blue-deep); font-size: 13px; font-weight: 600;
}
.rn-tab.on { background: var(--blue); color: #fff; }
.rn-pane[hidden] { display: none !important; }

.face-scan {
    position: fixed; inset: 0; z-index: 90;
    background: #071422; color: #fff;
    display: grid; place-items: center;
}
.face-scan[hidden] { display: none !important; }
.face-scan-inner { width: min(420px, calc(100vw - 24px)); text-align: center; }
.face-scan-brand {
    margin: 0 0 14px; letter-spacing: .18em;
    font-size: 12px; color: #8eb4d4; text-transform: uppercase;
}
.face-scan-stage {
    position: relative;
    width: min(340px, 86vw);
    height: min(420px, 62vh);
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    background: #000;
}
.face-scan-stage video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}
.face-oval {
    position: absolute;
    left: 50%; top: 46%;
    width: 72%; height: 78%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(62, 198, 255, .32);
    border-radius: 50%;
    box-shadow: 0 0 0 999px rgba(7, 20, 34, .62);
    pointer-events: none;
    transition: border-color .2s, box-shadow .2s;
}
.face-oval.on {
    border-color: #3ec6ff;
    box-shadow: 0 0 0 999px rgba(7, 20, 34, .52), 0 0 28px rgba(62, 198, 255, .4);
}
.face-scan-tip {
    font-size: 20px; font-weight: 700;
    margin: 18px 0 6px;
}
.face-scan-sub {
    margin: 0 0 16px; color: #8eb4d4; font-size: 13px;
}
.face-scan-close {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: #8eb4d4;
    border: 1px solid rgba(142, 180, 212, .35);
    border-radius: 999px; padding: 8px 18px; cursor: pointer;
}

.form-card.editor-card { max-width: 920px; }
.form-card .tox-tinymce, .me-form .tox-tinymce {
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    margin-top: 6px;
}
.editor-hint { margin: 0; font-size: 12px; color: var(--muted); }
.form-card textarea#content, .me-form textarea#content { min-height: 280px; }
.me-ops { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; font-size: 12px; }
.author-card {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
    margin: 16px 0 20px; padding: 14px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
}
.author-card strong { font-size: 15px; }
.author-card small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.author-card .author-meta { flex: 1; min-width: 140px; }
.author-card form { margin: 0; }
.profile-hero {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
    align-items: flex-start;
}
.profile-stats { display: flex; gap: 18px; font-size: 13px; color: var(--muted); }
.profile-stats b { color: var(--blue-deep); font-size: 18px; display: block; }
.profile-people { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-people a {
    padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
    background: #fff; font-size: 13px;
}

.has-feed .noise { opacity: .45; }
.feed-page {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    margin: 0 auto 48px;
    background: #fff;
    min-height: 70vh;
    box-shadow: 0 12px 40px rgba(18, 72, 140, .08);
}
.feed-tabs {
    position: sticky;
    top: 0;
    z-index: 12;
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 10px 16px 0;
    background: #fff;
    border-bottom: 1px solid #eef2f6;
    scrollbar-width: none;
}
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-tabs a {
    flex: 0 0 auto;
    position: relative;
    padding: 8px 0 12px;
    font-size: 17px;
    color: #1c2c40;
    font-weight: 500;
}
.feed-tabs a.on {
    color: var(--blue);
    font-weight: 700;
}
.feed-tabs a.on::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 22px;
    height: 3px;
    margin-left: -11px;
    border-radius: 999px;
    background: var(--blue);
}
.feed-stream { background: #fff; }
.feed-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}
.feed-empty a { color: var(--blue-deep); font-weight: 600; }
.feed-item {
    display: block;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #f2f4f7;
}
.feed-item h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0;
    color: #172536;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feed-meta {
    margin: 8px 0 0;
    font-size: 12px;
    color: #8a97a8;
    line-height: 1.4;
}
.feed-cut {
    margin: 0;
    padding: 16px 16px 10px;
    text-align: center;
    font-size: 13px;
    color: #b0bac6;
    background: #f6f8fb;
    border-bottom: 1px solid #eef2f6;
}
.feed-hot { padding-bottom: 10px; }
.feed-hot-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}
.feed-fire {
    font-size: 15px;
    font-weight: 800;
    background: linear-gradient(90deg, #ff7a1a, #ff4d4f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.feed-fire::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 16px;
    margin-right: 4px;
    vertical-align: -2px;
    background: linear-gradient(180deg, #ffb347, #ff4d4f);
    clip-path: polygon(50% 0, 78% 38%, 100% 48%, 70% 100%, 50% 78%, 30% 100%, 0 48%, 22% 38%);
}
.feed-hot-head em {
    font-style: normal;
    font-size: 12px;
    color: #b0bac6;
}
.feed-hot-body {
    display: grid;
    grid-template-columns: 1fr 118px;
    gap: 12px;
    align-items: start;
}
.feed-hot-body img {
    width: 118px;
    height: 78px;
    object-fit: cover;
    border-radius: 8px;
    background: #eef3f8;
}
.feed-hot-body h2 { -webkit-line-clamp: 4; }
.feed-hot-body.no-pic { grid-template-columns: 1fr; }
.feed-byline {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
    color: #8a97a8;
}
.feed-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--cyan), var(--blue));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
}
.feed-name { color: #5b6b7c; font-weight: 600; }
.feed-vip {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--blue);
    position: relative;
    flex-shrink: 0;
}
.feed-vip::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 2px;
    width: 4px;
    height: 6px;
    border: 1.5px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
}
.feed-time { margin-right: auto; }
.feed-like {
    margin-left: auto;
    padding-left: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%238a97a8' stroke-width='1.8' d='M12 20s-7-4.4-9.2-8.2C1.2 8.6 3.2 5 7 5c2.1 0 3.4 1.2 5 3 1.6-1.8 2.9-3 5-3 3.8 0 5.8 3.6 4.2 6.8C19 15.6 12 20 12 20z'/%3E%3C/svg%3E") no-repeat left center;
}
.feed-thumb {
    display: grid;
    grid-template-columns: 1fr 111px;
    gap: 12px;
    align-items: start;
}
.feed-main { min-width: 0; }
.feed-pic {
    width: 111px;
    height: 74px;
    object-fit: cover;
    border-radius: 6px;
    background: #eef3f8;
}
.feed-wide h2 { margin-bottom: 10px; }
.feed-cover {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
}
.feed-cover img {
    width: 100%;
    height: 196px;
    object-fit: cover;
    display: block;
}
.feed-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.feed-play::after {
    content: "";
    position: absolute;
    left: 19px;
    top: 15px;
    border-style: solid;
    border-width: 9px 0 9px 14px;
    border-color: transparent transparent transparent var(--blue-deep);
}
.feed-ad { padding: 12px 16px 14px; }
.feed-ad .ad-unit {
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}
.feed-ad .ad-unit img { border-radius: 10px; }
.app-dock { display: none; }

@media (max-width: 860px) {
    .feed-page { margin-bottom: 0; box-shadow: none; width: 100%; }
    .app-dock {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 35;
        height: 58px;
        padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,.96);
        border-top: 1px solid #e8eef5;
        justify-content: space-around;
        align-items: flex-end;
    }
    .app-dock a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #7b8b9c;
        font-size: 11px;
        min-height: 48px;
    }
    .app-dock a.on { color: var(--blue); }
    .app-dock .dock-plus {
        width: 44px;
        flex: 0 0 44px;
        height: 36px;
        min-height: 36px;
        margin-bottom: 10px;
        border-radius: 10px;
        background: linear-gradient(180deg, #3b91ff, var(--blue-deep));
        color: #fff;
        font-size: 28px;
        line-height: 1;
        font-weight: 500;
    }
    .app-dock .dock-plus span { display: block; margin-top: -2px; }
    .app-dock .dock-plus.on { box-shadow: 0 0 0 3px rgba(26,124,255,.18); }
    body { padding-bottom: 62px; }
    .cs-fab { bottom: 84px; }
    .cs-menu { bottom: 154px; }
    .mobile-dl { bottom: 58px; }
}
@media (max-width: 560px) {
    .feed-hot-body { grid-template-columns: 1fr 104px; }
    .feed-hot-body img { width: 104px; height: 70px; }
    .feed-cover img { height: 180px; }
    .page-head h1 { font-size: 32px; }
}
