/* 閸撳秴褰寸粩娆戝仯閺嶅嘲绱?*/
:root {
    --primary: #4f7cff;
    --primary-dark: #2f5fe0;
    --danger: #f56c6c;
    --danger-dark: #e64949;
    --dark: #111827;
    --text: #374151;
    --muted: #6b7280;
    --line: #dbe5ec;
    --bg: #e6ecf5;
    /* 页面主背景：浅蓝灰底 + 蓝/紫/青三处光斑 */
    --page-bg: #eef2f8;
    --bg-deep: #c1d4df;
    --radius: 12px;
    --shadow: 0 8px 24px rgba(23, 58, 88, .08);
}

* {
    box-sizing: border-box;
}

body {
    position: relative;
    z-index: 0;                 /* 建立堆叠上下文，让光斑伪元素落在背景之上、内容之下 */
    margin: 0;
    color: var(--text);
    font: 14px/1.7 -apple-system, "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: #eef2f8;
    background-image:
        radial-gradient(1200px 800px at 12% 8%, #dbe7ff 0%, transparent 55%),
        radial-gradient(900px 700px at 88% 18%, #e7e0ff 0%, transparent 52%),
        radial-gradient(1000px 760px at 70% 96%, #d6f5ee 0%, transparent 55%),
        linear-gradient(160deg, #eef2f8 0%, #e8edf7 100%);
    background-attachment: fixed;
}

/* iOS 不支持 fixed 背景，窄屏降级为背景随页面滚动，避免光斑错位 */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, p {
    margin: 0;
}

img {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
}

.muted {
    color: var(--muted);
}

/* ---------- 妞よ埖鐖?---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.site-header .container {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
}

.logo .mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), #7aa2ff);
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo.logo-img img {
    width: auto;
    max-width: 168px;
    height: 36px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 4px;
    flex: 1;
}

.nav a {
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text);
    transition: .15s;
}

.nav a:hover {
    background: var(--bg);
    color: var(--primary);
}

.nav a.active {
    color: var(--primary);
    font-weight: 600;
    background: rgba(79, 124, 255, .08);
}

.nav-item {
    position: relative;
}

.nav > a,
.nav-item > a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.nav-caret {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: .7;
    transform: translateY(1px);
    transition: transform .15s;
}

.nav-item:hover > a .nav-caret,
.nav-item:focus-within > a .nav-caret,
.nav-item.is-open > a .nav-caret {
    transform: translateY(1px) rotate(180deg);
}

.nav-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 40;
    min-width: 148px;
    padding-top: 8px;
}

.nav-sub-panel {
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(23, 58, 88, .12);
}

.nav-sub-panel a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text);
    font-weight: 400;
    white-space: nowrap;
    background: transparent;
}

.nav-sub-panel a:hover {
    color: var(--primary);
    background: rgba(79, 124, 255, .08);
}

@media (min-width: 901px) {
    .nav-item:hover > .nav-sub,
    .nav-item:focus-within > .nav-sub,
    .nav-item.is-open > .nav-sub {
        display: block;
    }
}

@media (max-width: 1200px) {
    .site-header .container {
        height: auto;
        flex-wrap: wrap;
        padding-top: 10px;
        padding-bottom: 10px;
        row-gap: 4px;
    }

    .nav {
        order: 3;
        flex: none;
        width: 100%;
        flex-wrap: wrap;
    }
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-panel {
    display: contents;
}

.header-menu-toggle,
.cart-label {
    display: none;
}

.header-menu-toggle {
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    background: #fff;
    cursor: pointer;
}

.header-menu-toggle:hover,
.header-menu-toggle[aria-expanded="true"] {
    color: var(--primary);
    background: #edf3ff;
}

.header-menu-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.header-menu-toggle .menu-close-icon,
.header-menu-toggle[aria-expanded="true"] .menu-icon {
    display: none;
}

.header-menu-toggle[aria-expanded="true"] .menu-close-icon {
    display: block;
}

.header-user .nick {
    color: var(--dark);
    font-weight: 600;
}

/* ---------- 閹稿鎸?---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: .15s;
}

.head-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: none;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #374151;
    text-decoration: none;
    cursor: pointer;
}

.head-bell:hover {
    background: #f2f6fb;
    color: var(--primary);
}

.head-bell em {
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 7px;
    background: #e5484d;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    line-height: 14px;
    text-align: center;
}

.user-menu {
    position: relative;
}

.user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #9ca3af;
    transition: transform .15s;
}

.user-menu:hover .user-caret,
.user-menu:focus-within .user-caret,
.user-menu.is-open .user-caret {
    transform: rotate(180deg);
}

.user-ava {
    position: relative;
    display: inline-flex;
    flex: none;
    width: 28px;
    height: 28px;
    overflow: hidden;
    border-radius: 50%;
    background: #d9ecff;
}

.user-ava img,
.user-ava svg {
    display: block;
    width: 100%;
    height: 100%;
}

.user-ava-lg {
    width: 52px;
    height: 52px;
    overflow: visible;
}

.user-ava-lg em {
    position: absolute;
    left: 50%;
    bottom: -2px;
    padding: 0 4px;
    border-radius: 6px;
    background: #7eb6ff;
    color: #fff;
    font-size: 9px;
    font-style: normal;
    line-height: 14px;
    white-space: nowrap;
    transform: translateX(-50%);
}

.user-pop {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 80;
    width: min(300px, calc(100vw - 24px));
    padding-top: 10px;
}

.user-menu:hover > .user-pop,
.user-menu:focus-within > .user-pop,
.user-menu.is-open > .user-pop {
    display: block;
}

.user-pop-panel {
    padding: 16px 16px 0;
    background: #fff;
    border: 1px solid rgba(219, 229, 236, .9);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(23, 58, 88, .16);
}

.user-pop-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-pop-name {
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.user-pop-id {
    margin-top: 2px;
    color: #9ca3af;
    font-size: 13px;
}

.user-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 6px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f4f7fb;
    color: #374151;
    font-size: 14px;
}

.user-balance b {
    color: #ef2d2d;
    font-size: 16px;
}

.user-yen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #3b82f6;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.user-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 4px;
    border-radius: 8px;
    color: #4b5563;
    font-size: 14px;
}

.user-links a svg {
    flex: none;
    color: #64748b;
}

.user-links a:hover {
    background: #f5f8fc;
    color: #2563eb;
}

.user-go {
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-top: 1.5px solid #c5ced6;
    border-right: 1.5px solid #c5ced6;
    transform: translateY(-1px) rotate(45deg);
}

.user-logout {
    width: calc(100% + 32px);
    border: 0;
    font: inherit;
    cursor: pointer;
    background: #fff;
    display: block;
    margin: 6px -16px 0;
    padding: 14px 16px;
    border-top: 1px solid #eef1f5;
    border-radius: 0 0 16px 16px;
    color: #64748b;
    text-align: center;
}

.user-logout:hover {
    color: #2563eb;
}

.btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-danger{
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: var(--danger-dark);
    border-color: var(--danger-dark);
    color: #fff;
}

/* 列表/表格里的统一小按钮（与 .mbtn-mini 同规格：26px / 6px 圆角 / 12px 字） */
.btn-sm {
    height: 26px;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    gap: 4px;
}

.btn-sm.btn-primary:hover,
.btn-sm.btn-danger:hover {
    color: #fff;
}

.btn-lg {
    height: 46px;
    padding: 0 26px;
    font-size: 15px;
}

.btn-ghost {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.btn-block {
    width: 100%;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 96px 0 88px;
    color: #fff;
    background: linear-gradient(135deg, #1e3a8a 0%, #4f7cff 55%, #6ea8ff 100%);
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -80px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

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

.hero h1 {
    font-size: 42px;
    line-height: 1.3;
    font-weight: 700;
    max-width: 720px;
}

.hero .sub {
    margin-top: 18px;
    font-size: 17px;
    color: rgba(255, 255, 255, .86);
    max-width: 640px;
}

.hero .actions {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-stats {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 760px;
}

.hero-stats div {
    border-left: 2px solid rgba(255, 255, 255, .35);
    padding-left: 14px;
}

.hero-stats strong {
    display: block;
    font-size: 26px;
    line-height: 1.3;
}

.hero-stats span {
    font-size: 13px;
    color: rgba(255, 255, 255, .78);
}

/* ---------- 閸栧搫娼?---------- */
.section {
    padding: 16px 0;
}

.section.gray {
    background: var(--bg);
}

.section-head {
    margin-bottom: 34px;
    text-align: center;
}

.section-head h2 {
    font-size: 28px;
    color: var(--dark);
}

.section-head p {
    margin-top: 10px;
    color: var(--muted);
}

/* ---------- 閸楋紕澧?---------- */
.grid {
    display: grid;
    gap: 20px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    transition: .18s;
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.card .icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 17px;
    color: var(--dark);
}

.card .tagline {
    margin-top: 6px;
    color: var(--primary);
    font-size: 13px;
}

.card .desc {
    margin-top: 12px;
    color: var(--muted);
}

.card ul {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.card ul li {
    padding: 5px 0 5px 18px;
    position: relative;
    color: var(--text);
    font-size: 13px;
}

.card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.card .value {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    font-size: 13px;
    color: var(--dark);
    font-weight: 600;
}

/* ---------- 婵帊缍嬫惔?---------- */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.tabs a {
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 13px;
    transition: .15s;
}

.tabs a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tabs a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.media-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: .18s;
}

.media-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.media-cover {
    height: 148px;
    display: flex;
    align-items: flex-end;
    padding: 14px;
    color: #fff;
}

.media-cover .tag {
    background: rgba(0, 0, 0, .28);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.media-body {
    padding: 16px 18px 20px;
}

.media-body h3 {
    font-size: 16px;
    color: var(--dark);
}

.media-body p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    min-height: 42px;
}

.media-meta {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

/* ---------- 閸忓厖绨幋鎴滄粦 ---------- */
.about-intro {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
    line-height: 1.9;
}

.vision {
    margin: 26px auto 0;
    max-width: 820px;
    padding: 18px 22px;
    border-left: 3px solid var(--primary);
    background: rgba(79, 124, 255, .06);
    border-radius: 0 8px 8px 0;
    text-align: left;
    color: var(--dark);
}

.timeline {
    margin-top: 10px;
    border-left: 2px solid var(--line);
    padding-left: 26px;
}

.timeline .item {
    position: relative;
    padding: 14px 0;
}

.timeline .item::before {
    content: "";
    position: absolute;
    left: -33px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
}

.timeline .year {
    font-weight: 700;
    color: var(--dark);
    font-size: 15px;
}

.contact-list {
    margin-top: 8px;
    display: grid;
    gap: 12px;
}

.contact-list div {
    display: flex;
    gap: 12px;
}

.contact-list .label {
    width: 72px;
    color: var(--muted);
    flex-shrink: 0;
}

/* ---------- 鐞涖劌宕熸稉鈧笟?---------- */
.auth-wrap {
    padding: 56px 0 72px;
    background: var(--bg);
    min-height: calc(100vh - 64px - 220px);
}

.auth-box {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.auth-box h1 {
    font-size: 22px;
    color: var(--dark);
    text-align: center;
}

.auth-box .sub {
    margin-top: 8px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.form-item {
    margin-top: 16px;
}

.form-item label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--dark);
    font-weight: 600;
}

.form-item label .req {
    color: #ef4444;
    margin-right: 3px;
}

.input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: .15s;
    background: #fff;
}

.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 124, 255, .12);
}

select.input {
    height: 42px;
}

.captcha-row {
    display: flex;
    gap: 10px;
}

.captcha-row .input {
    flex: 1;
}

.captcha-row img {
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    background: #f9fafb;
}

.alert {
    display: none;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 13px;
}

.alert.show {
    display: block;
}

.auth-foot {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.auth-foot a {
    color: var(--primary);
}

/* ---------- 妞や絻鍓?---------- */
.site-footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 48px 0 26px;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.footer-grid h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 14px;
}

.footer-grid p, .footer-grid li {
    color: #94a3b8;
    line-height: 2;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.copyright {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    text-align: center;
    color: #64748b;
}

.footer-icp {
    margin-left: 12px;
    color: #64748b;
}

.footer-icp:hover { color: #cbd5e1; }

/* ---------- 閹绘劗銇?---------- */
.toast {
    position: fixed;
    left: 50%;
    top: 26px;
    transform: translate(-50%, -20px);
    min-width: 160px;
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(17, 24, 39, .92);
    color: #fff;
    font-size: 13px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: .2s;
    z-index: 999;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------- CTA ---------- */
.cta {
    padding: 60px 0;
    background: linear-gradient(135deg, #1e3a8a, #4f7cff);
    color: #fff;
    text-align: center;
}

.cta h2 {
    font-size: 26px;
}

.cta p {
    margin-top: 10px;
    color: rgba(255, 255, 255, .85);
}

.cta .actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- 閸濆秴绨插?---------- */
@media (max-width: 900px) {
    .site-header .container {
        height: 64px;
        flex-wrap: nowrap;
        padding: 8px 16px;
        gap: 8px;
    }

    .site-header .logo {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .site-header .logo-name {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-header .logo .mark {
        flex: none;
    }

    .site-header .logo-img img {
        min-width: 0;
        max-width: min(168px, 100%);
        height: 32px;
        object-position: left center;
    }

    .site-header .header-user {
        order: 1;
        min-width: 0;
        max-width: 176px;
        gap: 6px;
    }

    .header-user .btn {
        min-height: 44px;
        padding: 0 10px;
    }

    .header-user .user-menu,
    .header-user .user-trigger,
    .header-user .user-name {
        min-width: 0;
        max-width: 100%;
    }

    .header-user .user-trigger {
        display: flex;
        min-height: 44px;
        gap: 6px;
    }

    .header-user .user-caret {
        flex: none;
    }

    .header-user .user-pop {
        right: -52px;
        width: min(300px, calc(100vw - 32px));
    }

    .header-user .user-pop-panel {
        max-height: calc(100vh - 84px);
        max-height: calc(100dvh - 84px);
        overflow-y: auto;
    }

    .header-user .user-pop-name,
    .header-user .user-pop-id {
        overflow-wrap: anywhere;
    }

    .header-menu-toggle {
        display: inline-flex;
        order: 2;
    }

    .header-panel {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 65px);
        max-height: calc(100dvh - 65px);
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(23, 58, 88, .12);
    }

    .site-header.is-menu-open .header-panel {
        display: block;
    }

    .site-header.is-menu-open .user-pop {
        display: none;
    }

    .header-panel .nav {
        flex-direction: column;
        width: auto;
        padding: 12px 16px;
        gap: 4px;
    }

    .header-panel .nav > a,
    .header-panel .nav-item > a {
        display: flex;
        min-height: 44px;
        width: 100%;
        padding: 10px 12px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .header-panel .nav-caret {
        flex: none;
        margin-left: auto;
    }

    .nav-item {
        position: static;
    }

    .nav-item:hover > a .nav-caret,
    .nav-item:focus-within > a .nav-caret {
        transform: translateY(1px);
    }

    .nav-item.is-open > a .nav-caret {
        transform: translateY(1px) rotate(180deg);
    }

    .nav-item.is-open > .nav-sub {
        display: block;
        position: static;
        min-width: 0;
        padding: 4px 0 0;
    }

    .header-panel .nav-sub-panel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 4px;
        border: 0;
        border-radius: 6px;
        background: #f4f7fb;
        box-shadow: none;
    }

    .header-panel .nav-sub-panel a {
        display: flex;
        align-items: center;
        min-height: 44px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .hero {
        padding: 64px 0 56px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .member-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== 婵帊缍嬫惔鎿勭礄media/index閿?==== */
.media-hero {
    background: linear-gradient(120deg, #2f6fed 0%, #0ea5e9 52%, #6d5ef0 100%);
    border-radius: 14px;
    padding: 26px 28px;
    margin-bottom: 18px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(79, 124, 255, .25);
}

.media-hero h1 {
    margin: 0 0 6px;
    font-size: 22px;
}

.media-hero p {
    margin: 0;
    font-size: 13px;
    opacity: .9;
}

.media-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    margin-top: 18px;
}

.media-hero-stats strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
}

.media-hero-stats span {
    font-size: 12px;
    opacity: .85;
}

.filter-bar {
    background: #fff;
    border: 1px solid #dbe5ec;
    border-radius: 12px;
    padding: 6px 18px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(17, 24, 39, .04);
}

.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #eef0f3;
}

.filter-row:last-child {
    border-bottom: none;
}

.filter-label {
    width: 56px;
    flex: none;
    color: #9ca3af;
    font-size: 12px;
    line-height: 28px;
    letter-spacing: 1px;
}

.row-advanced .filter-label {
    width: 64px;
    line-height: 38px;
    letter-spacing: 0;
}

.advanced-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    flex: 1;
    min-width: 0;
    width: 100%;
    gap: 10px;
}

.filter-dropdown {
    position: relative;
    min-width: 0;
}

.filter-dropdown[open] {
    z-index: 5;
}

.filter-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #dbe5ec;
    border-radius: 6px;
    background: #fff;
    color: #4b5563;
    font: inherit;
    font-size: 13px;
    letter-spacing: 0;
    list-style: none;
    cursor: pointer;
}

.filter-trigger::-webkit-details-marker {
    display: none;
}

.filter-trigger span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-trigger::after {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.filter-dropdown[open] .filter-trigger::after {
    transform: translateY(2px) rotate(225deg);
}

.filter-trigger:hover,
.filter-dropdown.is-active .filter-trigger,
.filter-dropdown[open] .filter-trigger {
    border-color: #4f7cff;
    color: #2f5fe0;
}

.filter-dropdown.is-active .filter-trigger {
    background: #eef3ff;
}

.filter-trigger:focus-visible,
.filter-menu a:focus-visible {
    outline: 2px solid #4f7cff;
    outline-offset: 2px;
}

.filter-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: min(280px, 50vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 6px;
    border: 1px solid #dbe5ec;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(17, 24, 39, .12);
    list-style: none;
}

.filter-menu a {
    display: block;
    padding: 7px 9px;
    border-radius: 4px;
    color: #4b5563;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.filter-menu a:hover,
.filter-menu a:focus-visible {
    background: #f3f4f6;
}

.filter-menu a.is-active {
    color: #2f5fe0;
    background: #eef3ff;
}

@media (max-width: 480px) {
    .advanced-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .filter-trigger {
        font-size: 12px;
        padding: 0 8px;
    }
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .15s ease;
}

.chip:hover {
    transform: translateY(-1px);
}

/* 閸氬嫮鐡柅澶屾樊鎼达箓鍘ら懝?*/
.row-channel .chip {
    background: #eef3ff;
    color: #3b62e0;
}

.row-channel .chip.active {
    background: #4f7cff;
    color: #fff;
}

.row-type .chip {
    background: #f3ecff;
    color: #7c3aed;
}

.row-type .chip.active {
    background: #7c3aed;
    color: #fff;
}

.row-area .chip {
    background: #e6fbf7;
    color: #0d9488;
}

.row-area .chip.active {
    background: #0d9488;
    color: #fff;
}

.row-price .chip {
    background: #fff5e6;
    color: #d97706;
}

.row-price .chip.active {
    background: #f59e0b;
    color: #fff;
}

.row-include .chip {
    background: #e8f9ef;
    color: #059669;
}

.row-include .chip.active {
    background: #10b981;
    color: #fff;
}

.row-sort .chip {
    background: #eaf2fe;
    color: #0284c7;
}

.row-sort .chip.active {
    background: #0ea5e9;
    color: #fff;
}

.media-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.media-search .input {
    width: 240px;
}

/* 婵帊缍嬮崡锛勫 */
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mcard {
    position: relative;
    overflow: hidden;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #dbe5ec;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(17, 24, 39, .04);
    transition: all .18s ease;
}

.mcard:hover {
    transform: translateY(-2px);
    border-color: #c7d7ff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .10);
}

.mcard::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #4f7cff, #7c3aed);
}

.mcard.is-news::before {
    background: linear-gradient(180deg, #10b981, #0d9488);
}

.mcard-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.mcard-title h3 {
    margin: 0;
    font-size: 16px;
    color: #111827;
}

.mtype {
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.mtype-1 {
    background: #f3ecff;
    color: #7c3aed;
}

.mtype-2 {
    background: #e8f9ef;
    color: #059669;
}

.mrec {
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: #fff;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.mtags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.mtag {
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 11px;
}

.mtag-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.mtag-green {
    background: #ecfdf5;
    color: #059669;
}

.mtag-blue {
    background: #eff6ff;
    color: #2563eb;
}

.mtag-cyan {
    background: #ecfeff;
    color: #0891b2;
}

.mtag-gold {
    background: #fffbeb;
    color: #b45309;
}

.mtag-orange {
    background: #fff7ed;
    color: #ea580c;
}

.mtag-pink {
    background: #fdf2f8;
    color: #db2777;
}

.mtag-red {
    background: #fef2f2;
    color: #dc2626;
}

.mtag-gray {
    background: #f3f4f6;
    color: #6b7280;
}

.mstats {
    display: flex;
    gap: 20px;
    margin-top: 12px;
}

.mstat {
    flex: 1;
}

.mstat .lb {
    font-size: 11px;
    color: #9ca3af;
}

.mbar {
    height: 6px;
    margin: 4px 0 2px;
    border-radius: 3px;
    background: #f1f2f4;
    overflow: hidden;
}

.mbar i {
    display: block;
    height: 100%;
    border-radius: 3px;
}

.mstat b {
    font-size: 13px;
}

.mprops {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 12px;
    font-size: 12px;
    color: #9ca3af;
}

.mprops span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mprops em {
    font-style: normal;
    color: #374151;
}

.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dot-blue {
    background: #4f7cff;
}

.dot-green {
    background: #10b981;
}

.dot-orange {
    background: #f59e0b;
}

.dot-purple {
    background: #7c3aed;
}

.dot-gray {
    background: #9ca3af;
}

.mdesc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 10px;
    font-size: 12px;
    line-height: 18px;
    color: #6b7280;
}

.mfoot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #eef0f3;
}

.price-now {
    color: #ef4444;
    font-size: 20px;
    font-weight: 700;
}

.price-old {
    margin-left: 6px;
    color: #9ca3af;
    font-size: 12px;
    text-decoration: line-through;
}

.price-note {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #9ca3af;
}

.mactions {
    display: flex;
    flex: none;
    gap: 8px;
}

.mbtn {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}

.mbtn:hover {
    border-color: #4f7cff;
    color: #4f7cff;
}

.mbtn-primary {
    border-color: transparent;
    background: linear-gradient(90deg, #4f7cff, #7c3aed);
    color: #fff;
}

.mbtn-primary:hover {
    color: #fff;
    filter: brightness(1.06);
}

.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #6b7280;
    background: #fff;
    border: 1px solid #dbe5ec;
    border-radius: 12px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
}

.pagination li a,
.pagination li span {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #dbe5ec;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    text-decoration: none;
}

.pagination li a:hover {
    border-color: #4f7cff;
    color: #4f7cff;
}

.pagination li.active span {
    border-color: transparent;
    background: linear-gradient(90deg, #4f7cff, #7c3aed);
    color: #fff;
}

.pagination li.disabled span {
    color: #c0c4cc;
}

@media (max-width: 900px) {
    .media-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 6px;
    }

    .filter-label {
        line-height: 20px;
    }

    .media-search .input {
        width: 100%;
    }

    .media-hero-stats {
        gap: 20px;
    }
}

/* ===== 濯掍綋搴擄細宸﹂閬?+ 鍙崇瓫閫夊垪琛?===== */
.media-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.media-side {
    flex: 0 0 220px;
    width: 220px;
    position: sticky;
    top: 20px;
}

.media-main {
    flex: 1;
    min-width: 0;
}

.side-block {
    background: #fff;
    border: 1px solid #dbe5ec;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(17, 24, 39, .04);
}

.side-block h3 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #111827;
}

.side-list {
    list-style: none;
    max-height: 520px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
}

.side-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    color: #4b5563;
    font-size: 13px;
    text-decoration: none;
    transition: all .15s ease;
}

.side-list li a:hover {
    background: #f3f4f6;
    color: #4f7cff;
}

.side-list li a.active {
    background: linear-gradient(90deg, #4f7cff, #7c3aed);
    color: #fff;
}

.side-count {
    flex: none;
    font-size: 11px;
    color: #9ca3af;
}

.side-list li a.active .side-count {
    color: rgba(255, 255, 255, .85);
}

.side-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.side-tag {
    padding: 4px 10px;
    border-radius: 14px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    text-decoration: none;
    transition: all .15s ease;
}

.side-tag:hover {
    background: #dbe5ec;
    color: #4f7cff;
}

.side-tag.on {
    background: linear-gradient(90deg, #4f7cff, #7c3aed);
    color: #fff;
}

.media-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.media-top .tabs {
    margin: 0;
}

@media (max-width: 900px) {
    .media-layout {
        flex-direction: column;
    }

    .media-side {
        position: static;
        flex: none;
        width: 100%;
    }

    .side-list {
        max-height: none;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .side-list li a {
        padding: 4px 10px;
        background: #f3f4f6;
    }
}

/* ===== 媒体库：一行一条列表 + 全价格档位 ===== */
.mtable-wrap {
    background: #fff;
    border: 1px solid #dbe5ec;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(17, 24, 39, .04);
}

.mtable {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
    font-size: 13px;
}

.mtable th,
.mtable td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f2f4;
    text-align: left;
    vertical-align: top;
}

.mtable thead th {
    background: linear-gradient(180deg, #eef4f8, #e4edf3);
    color: #54697d;
    font-weight: 500;
    white-space: nowrap;
}

.mtable tbody tr:nth-child(even) {
    background: #fafcfe;
}

.mtable tbody tr:hover {
    background: #f2f8fc;
}

.mtable tbody tr:last-child td {
    border-bottom: none;
}

.rname {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.rname h3 {
    margin: 0;
    font-size: 15px;
    color: #111827;
}

.rtags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.rlink {
    margin-top: 6px;
    font-size: 12px;
}

.rlink a {
    color: #4f7cff;
}

.rmeta {
    font-size: 12px;
    line-height: 20px;
    color: #9ca3af;
}

.rmeta span {
    display: flex;
    gap: 8px;
}

.rmeta i {
    flex: none;
    width: 40px;
    font-style: normal;
    color: #9ca3af;
}

.rmeta em {
    font-style: normal;
    color: #374151;
}

.rbar {
    margin-bottom: 8px;
}

.rbar .lb {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
}

.rbar .lb b {
    font-size: 12px;
}

.rbar .mbar {
    height: 6px;
    margin-top: 3px;
    border-radius: 3px;
    background: #f1f2f4;
    overflow: hidden;
}

.rbar .mbar i {
    display: block;
    height: 100%;
    border-radius: 3px;
}

.rdesc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 260px;
    font-size: 12px;
    line-height: 18px;
    color: #6b7280;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 14px;
    font-size: 12px;
}

.price-grid span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.price-grid i {
    font-style: normal;
    color: #9ca3af;
    white-space: nowrap;
}

.price-grid b {
    color: #374151;
    white-space: nowrap;
}

.price-grid b.now {
    color: #ef4444;
    font-size: 14px;
}

.price-grid b.old {
    color: #9ca3af;
    text-decoration: line-through;
}

.price-grid b.best {
    color: #059669;
}

.ractions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .price-grid {
        grid-template-columns: 1fr;
    }

    .rdesc {
        max-width: none;
    }
}

/* 地区标签：数量较多，限高后可滚动查看全部 */
.area-chips {
    max-height: 116px;
    padding-right: 6px;
    overflow-y: auto;
}

.chip-count {
    margin-left: 5px;
    font-size: 11px;
    opacity: .6;
}

.chip.active .chip-count {
    opacity: .85;
}

.area-chips::-webkit-scrollbar {
    width: 6px;
}

.area-chips::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: #d1d5db;
}

.area-chips::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

@media (max-width: 768px) {
    .area-chips {
        max-height: 140px;
    }
}

/* ===== 媒体详情（media/resource）===== */
.rdcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 13px;
    color: var(--muted);
}

.rdcrumb a {
    color: var(--muted);
}

.rdcrumb a:hover {
    color: var(--primary);
}

.rdcrumb .sep {
    color: #c3ccd6;
}

.rdcrumb .cur {
    color: var(--dark);
    font-weight: 600;
}

.rdcrumb-back {
    margin-left: auto;
}

.rdetail {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.rdhead {
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(120deg, #f7faff 0%, #f2f7fd 100%);
}

.rdtitle {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.rdtitle h1 {
    margin: 0;
    font-size: 20px;
    color: var(--dark);
}

.rdtags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.rdtags a.mtag:hover {
    text-decoration: underline;
}

.rdactions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.rdbody {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 20px;
    padding: 20px 24px;
}

.rdmain {
    min-width: 0;
}

.rblock {
    margin-bottom: 22px;
}

.rblock h3 {
    margin: 0 0 12px;
    padding-left: 10px;
    border-left: 3px solid var(--primary);
    font-size: 15px;
    line-height: 1.2;
    color: var(--dark);
}

.price-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.price-item {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.price-item .pl {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.price-item .pv {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    color: var(--dark);
}

.price-item.old .pv {
    color: #9ca3af;
    font-size: 14px;
    text-decoration: line-through;
}

.price-item.now {
    border-color: #fecaca;
    background: #fff5f5;
}

.price-item.now .pv {
    color: #dc2626;
    font-size: 20px;
    font-weight: 700;
}

.price-item.best {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.price-item.best .pv {
    color: #059669;
    font-weight: 700;
}

.rremark {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.rrates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.rbar .lb {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--muted);
}

.rbar .mbar {
    display: block;
    height: 8px;
    border-radius: 6px;
    background: #eef2f7;
    overflow: hidden;
}

.rbar .mbar i {
    display: block;
    height: 100%;
    border-radius: 6px;
}

.rmetrics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.rmetric {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.rmetric span {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.rmetric b {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    color: var(--dark);
}

.rinfo {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.rinfo th,
.rinfo td {
    padding: 9px 12px;
    border: 1px solid #eef2f7;
    text-align: left;
}

.rinfo th {
    width: 90px;
    color: var(--muted);
    font-weight: 400;
    background: #fafcfd;
}

.rinfo td {
    color: var(--text);
}

.rinfo td a {
    color: var(--primary-dark);
    text-decoration: none;
}

.rinfo td a:hover {
    text-decoration: underline;
}

.rdesc-full {
    padding: 12px 14px;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    background: #fafcfd;
    font-size: 16px;
    line-height: 1.9;
    color: var(--text);
}

.rdside .side-block {
    margin-bottom: 16px;
}

.rel-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rel-list li {
    border-bottom: 1px dashed #eef2f7;
}

.rel-list li:last-child {
    border-bottom: none;
}

.rel-list a {
    display: block;
    padding: 8px 0;
}

.rel-list a:hover .rel-name {
    color: var(--primary);
}

.rel-name {
    display: block;
    overflow: hidden;
    font-size: 13px;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rel-meta {
    display: flex;
    gap: 10px;
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
}

.rel-price {
    color: #dc2626;
    font-style: normal;
}

.rel-empty {
    padding: 8px 0;
    font-size: 12px;
    color: var(--muted);
}

.rlink-detail {
    font-weight: 600;
}

@media (max-width: 900px) {
    .rdbody {
        grid-template-columns: 1fr;
    }

    .rrates {
        grid-template-columns: 1fr;
    }
}

/* ===== 媒体列表卡片（参考站排版：左栏信息 + 右侧四列字段）===== */
.mlist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mbox {
    display: flex;
    gap: 22px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.mbox:hover {
    border-color: #cfe0f5;
    box-shadow: 0 8px 22px rgba(23, 58, 88, .1);
}

/* ---- 左栏 ---- */
.mbox-side {
    flex: none;
    width: 196px;
    padding-right: 18px;
    border-right: 1px dashed #e8eef4;
}

.mbox-head {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mbox-name {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--dark);
}

.mbox-name b {
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mbox-name:hover b {
    color: var(--primary);
}

.mbox-logo {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    object-fit: contain;
    background: #f4f7fb;
}

.mbox-logo-txt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f0ff, #e9e6ff);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.mbox-fav {
    flex: none;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    color: #f0a020;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.mbox-fav:hover {
    color: #d97706;
}

.mbox-type {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
}

.mbox-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.is-zi {
    background: #f59e0b;
}

.is-news {
    background: #ef4444;
}

.mbox-price {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 10px;
    font-size: 12px;
}

.mbox-price i {
    margin-right: 4px;
    font-style: normal;
    color: var(--muted);
}

.mp-now {
    color: #7c3aed;
    font-weight: 600;
}

.mp-old {
    color: #9ca3af;
}

.mbox-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.mbtn-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 26px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.mbtn-mini svg {
    flex: none;
}

/* ---- 右侧字段：四列 × 四行，按列填充 ---- */
.mbox-info {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    gap: 8px 20px;
    min-width: 0;
    margin: 0;
}

.mbox-info > div {
    display: flex;
    gap: 6px;
    min-width: 0;
    font-size: 12px;
    line-height: 1.9;
}

.mbox-info dt {
    flex: none;
    color: var(--muted);
}

.mbox-info dd {
    overflow: hidden;
    margin: 0;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mbox-info dd.hl {
    color: #10b981;
    font-weight: 600;
}

.mbox-info dd.w-badges,
.mbox-info dd.ai-badges {
    display: inline-flex;
    gap: 4px;
    overflow: visible;
}

.w-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 3px;
    color: #fff;
    font-size: 11px;
    line-height: 1;
}

.w-pc {
    background: #3b82f6;
}

.w-m {
    background: #22c55e;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6d5ef0, #4f7cff);
    color: #fff;
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
}

.ai-badge:nth-child(2) {
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
}

.ai-badge:nth-child(3) {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.ai-badge:nth-child(4) {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.ai-badge:nth-child(5) {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

@media (max-width: 1100px) {
    .mbox-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(8, auto);
    }
}

@media (max-width: 760px) {
    .mbox {
        flex-direction: column;
        gap: 14px;
    }

    .mbox-side {
        width: auto;
        padding-right: 0;
        padding-bottom: 12px;
        border-right: 0;
        border-bottom: 1px dashed #e8eef4;
    }

    .mbox-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(8, auto);
    }
}

/* ===== 头部购物车图标 ===== */
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    margin-right: 4px;
    border-radius: 6px;
    color: var(--text);
    transition: color .2s ease, background .2s ease;
}

.cart-link:hover,
.header-cart:hover .cart-link,
.header-cart:focus-within .cart-link {
    background: #f2f6fb;
    color: var(--primary);
}

.cart-ico {
    display: block;
}

.cart-ico-wrap {
    position: relative;
    display: inline-flex;
    flex: none;
}

.cart-count {
    position: absolute;
    top: -12px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

.cart-count.is-zero {
    display: none;
}

/* ===== 头部购物车下拉 ===== */
.header-cart {
    position: relative;
}

.cart-pop {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 80;
    width: min(520px, calc(100vw - 24px));
    padding-top: 10px;
}

.header-cart:hover > .cart-pop,
.header-cart:focus-within > .cart-pop {
    display: block;
}

.cart-pop-panel {
    display: flex;
    flex-direction: column;
    min-height: min(520px, calc(100vh - 96px));
    max-height: min(680px, calc(100vh - 96px));
    padding: 16px 16px 14px;
    background: #fff;
    border: 1px solid rgba(219, 229, 236, .9);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(23, 58, 88, .16);
}

.cart-pop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.cart-pop-head strong {
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}

.cart-pop-num {
    flex: none;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e8f0ff;
    color: #4f7cff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.cart-pop-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.cart-pop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 2px;
}

.cart-pop-main {
    flex: 1;
    min-width: 0;
}

.cart-pop-name {
    color: #1f2937;
    line-height: 1.45;
    word-break: break-word;
}

.cart-pop-qty {
    margin-left: 6px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

.cart-pop-price {
    margin-top: 4px;
    color: #ef2d2d;
    line-height: 1.3;
}

.cart-pop-del {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid #f3c0c0;
    border-radius: 50%;
    background: #fff;
    color: #f08b8b;
    cursor: pointer;
}

.cart-pop-del:hover {
    border-color: #ef4444;
    background: #fff5f5;
    color: #ef4444;
}

.cart-pop-empty {
    padding: 22px 8px 16px;
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
}

.cart-pop-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid #eef1f5;
}

.cart-pop-foot[hidden] {
    display: none;
}

.cart-pop-sum {
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.2;
}

.cart-pop-sum b {
    display: block;
    margin-top: 4px;
    color: #3b6cf6;
    font-size: 20px;
    font-weight: 700;
}

.cart-pop-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: #3b6cf6;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.cart-pop-go:hover {
    background: #2f5fe0;
    color: #fff;
}

@media (max-width: 900px) {
    .header-panel .header-cart {
        margin: 0 16px 16px;
        padding-top: 12px;
        border-top: 1px solid var(--line);
    }

    .header-panel .cart-link {
        display: flex;
        min-height: 44px;
        margin: 0;
        padding: 8px 12px;
        gap: 12px;
    }

    .header-panel .cart-label {
        display: block;
        flex: 1;
    }

    .header-panel .cart-amount {
        overflow-wrap: anywhere;
    }

    .header-panel .cart-pop {
        display: block;
        position: static;
        width: auto;
        padding-top: 8px;
    }

    .header-panel .cart-pop-panel {
        min-height: 0;
        max-height: none;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .header-panel .cart-pop-head {
        display: none;
    }

    .header-panel .cart-pop-list {
        max-height: 160px;
    }

    .header-panel .cart-pop-del {
        width: 44px;
        height: 44px;
    }
}

/* ===== 购物车页面 ===== */
.cart-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.cart-head h2 {
    margin: 0;
    font-size: 20px;
    color: var(--dark);
}

.cart-head span {
    font-size: 13px;
    color: var(--muted);
}

.cart-table .cart-name {
    color: var(--dark);
}

.cart-table .cart-name:hover {
    color: var(--primary);
}

.cart-table .check-cell {
    width: 52px;
    text-align: center;
}

.cart-check {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #2f6fd0;
    cursor: pointer;
    vertical-align: middle;
}

.cart-price,
.cart-sub {
    color: var(--dark);
}

.cart-sub {
    color: #dc2626;
    font-weight: 600;
}

.cart-num {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.num-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.num-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.num-input {
    width: 52px;
    padding: 2px 6px;
    text-align: center;
}

.cart-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.cart-total {
    font-size: 14px;
    color: var(--muted);
}

.cart-total b {
    color: #dc2626;
    font-size: 20px;
}

.cart-ops {
    display: flex;
    gap: 10px;
}

.cart-clear {
    color: #dc2626;
    border-color: #fecaca;
}

.cart-clear:hover {
    background: #fef2f2;
    border-color: #dc2626;
    color: #dc2626;
}

@media (max-width: 760px) {
    .cart-foot {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-ops {
        justify-content: flex-end;
    }
}

/* ===== 加入购物车按钮：已加入（绿色）/ 悬停显示「取消加购」（红色）===== */
.add-cart .ac-cancel {
    display: none;
}

.mbtn.add-cart.is-added {
    border-color: transparent;
    background: #16a34a;
    color: #fff;
}

.mbtn.add-cart.is-added:hover {
    background: #dc2626;
    color: #fff;
    filter: none;
}

.mbtn.add-cart.is-added:hover .ac-txt {
    display: none;
}

.mbtn.add-cart.is-added:hover .ac-cancel {
    display: inline;
}

/* ===== 收藏：空心灰星（未收藏）/ 实心金星（已收藏）===== */
.fav-btn {
    cursor: pointer;
}

.mbox-fav {
    color: #c9ced6;
    transition: color .2s ease, transform .15s ease;
}

.mbox-fav:hover {
    color: #f0a020;
    transform: scale(1.12);
}

.mbox-fav.is-on {
    color: #f59e0b;
    text-shadow: 0 0 6px rgba(245, 158, 11, .45);
}

.mbox-fav.is-on:hover {
    color: #d97706;
}

/* 详情页「收藏」按钮：已收藏时高亮 */
.mbtn.fav-btn.is-on {
    border-color: #fbbf24;
    background: #fffbeb;
    color: #d97706;
}

.mbtn.fav-btn.is-on:hover {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #b45309;
}

.mbtn.fav-btn .fav-ico {
    margin-right: 4px;
    font-size: 13px;
}

.mbtn.fav-btn.is-on .fav-ico {
    color: #f59e0b;
}

/* ============================================================
   表格行内操作按钮统一体系（用户中心各列表右侧小按钮）
   三种语义：.uops-primary 主操作 / .uops-soft 次操作 / .uops-danger 危险操作
   ============================================================ */
.uops {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 26px;
    padding: 0 10px;
    border: 1px solid #d8dee8;
    border-radius: 6px;
    background: #fff;
    color: #5b6b82;
    font-size: 12px;
    line-height: 26px;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: all .18s ease;
    user-select: none;
}

.uops svg {
    flex: none;
    width: 12px;
    height: 12px;
}

.uops:hover {
    border-color: #b9c6da;
    color: #33415c;
    background: #f6f8fc;
}

/* 主操作：正向行动（再投一次、添加文章）—— 蓝紫渐变实心 */
.uops.uops-primary {
    border-color: transparent;
    background: linear-gradient(135deg, #4f7cff 0%, #6d5df6 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(79, 124, 255, .25);
}

.uops.uops-primary:hover {
    border-color: transparent;
    background: linear-gradient(135deg, #3f6ae8 0%, #5b4ae6 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(79, 124, 255, .38);
    transform: translateY(-1px);
}

/* 次操作：轻量正向（取消收藏）—— 默认幽灵，hover 变暖橙提示 */
.uops.uops-soft:hover {
    border-color: #f0a35e;
    color: #d97706;
    background: #fff7ed;
}

/* 危险操作：删除 / 清空 —— 默认幽灵，hover 变红实心警示 */
/* 正向轻量操作：再投一次 —— 默认浅蓝幽灵，hover 变蓝实心 */
.uops.uops-blue {
    border-color: #c5d8f6;
    background: #f3f7ff;
    color: #2f6fd0;
}

.uops.uops-blue:hover {
    border-color: #4f7cff;
    background: linear-gradient(135deg, #4f7cff 0%, #6d5df6 100%);
    color: #fff;
    box-shadow: 0 3px 8px rgba(79, 124, 255, .3);
}

.uops.uops-danger:hover {
    border-color: transparent;
    background: linear-gradient(135deg, #f56c6c 0%, #e64949 100%);
    color: #fff;
    box-shadow: 0 3px 8px rgba(245, 108, 108, .3);
}

/* bo-ops 单元格内多个按钮时统一间距 */
.mtable td.bo-ops .uops + .uops {
    margin-left: 6px;
}

/* ===== 头部购物车总金额 ===== */

.cart-amount {
    margin-left: 0;
    color: #64748b;
    font-size: 13px;
    font-style: normal;
    white-space: nowrap;
}

.cart-amount.is-active {
    color: #e8541f;
    font-weight: 600;
}

/* ===== 媒体列表：勾选 + 已选统计条 ===== */

.mbox-pick {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.mbox-pick input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #2f6fd0;
}

.mbox-pick:hover {
    color: #2f6fd0;
}

.pick-bar {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 22px;
    border: 1px solid #dbe5ec;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(17, 24, 39, .16);
    font-size: 14px;
    color: #475569;
}

.pick-bar[hidden] {
    display: none;
}

.pick-bar b {
    color: #e8541f;
    font-size: 17px;
}

.pick-bar .btn {
    height: 32px;
    min-height: 32px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 16px;
}

@media (max-width: 640px) {
    .pick-bar {
        left: 16px;
        right: 16px;
        bottom: 14px;
        transform: none;
        gap: 12px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

.page-kicker {
    margin: 0 0 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, .82);
}

a.card-link {
    display: block;
    color: inherit;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feed-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px 20px;
}

.feed-item time {
    color: var(--muted);
    font-size: 13px;
}

.feed-item h3 {
    font-size: 16px;
    color: var(--dark);
}

.feed-item p {
    margin-top: 6px;
    color: var(--muted);
}

.feed-tag {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(79, 124, 255, .08);
    color: var(--primary);
    font-size: 12px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .feed-item {
        grid-template-columns: 1fr;
    }
}

body.is-media-picker .site-header,
body.is-media-picker .site-footer,
body.is-media-picker .media-hero,
body.is-media-picker .pick-bar {
    display: none;
}

body.is-media-picker .section {
    padding-top: 16px;
    padding-bottom: 24px;
}

/* 头部认证标记：未认证蓝，已认证绿 */
.user-ava-lg em.is-ok {
    background: #16a34a;
}


/* ---------- 首页 ---------- */
.home-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
}

.home-hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% center;
}

.home-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 22, 30, .92) 0%, rgba(16, 22, 30, .76) 34%, rgba(16, 22, 30, .38) 60%, rgba(16, 22, 30, .16) 100%);
}

.home-hero-copy {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: calc(100svh - 214px);
    padding-top: 56px;
    padding-bottom: 48px;
}

.home-kicker {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
}

.home-hero h1 {
    max-width: 720px;
    color: #fff;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
}

.home-hero-copy > p {
    max-width: 560px;
    margin-top: 16px;
    color: rgba(255, 255, 255, .88);
    font-size: 17px;
    line-height: 1.7;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 140px));
    gap: 18px;
    max-width: 680px;
    margin: 42px 0 0;
}

.home-stats div {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .28);
}

.home-stats dd {
    margin: 0;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.home-stats dt {
    margin-top: 4px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 400;
}

.home-flow {
    background: #fff;
    border-bottom: 1px solid #e4e8ee;
}

.home-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-steps li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 28px 0;
}

.home-step-photo {
    flex: 0 0 64px;
    width: 64px;
    height: 76px;
    border-radius: 6px;
    object-fit: cover;
}

.home-step-copy {
    min-width: 0;
}

.home-step-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.home-steps em,
.home-industry em {
    display: block;
    color: #7a8799;
    font-size: 12px;
    font-style: normal;
    line-height: 1.4;
}

.home-steps strong {
    display: block;
    color: #1c2430;
    font-size: 16px;
}

.home-step-copy p,
.home-card-summary,
.home-head p,
.home-library-intro p,
.home-close p {
    display: block;
    margin-top: 6px;
    color: #5c6778;
    font-size: 13px;
    line-height: 1.6;
}

.home-band {
    padding: 64px 0;
    background: #fff;
}

.home-band-muted {
    background: #f4f6f8;
}

.home-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.home-head h2,
.home-library-intro h2,
.home-close h2 {
    color: #1c2430;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

.home-head a,
.home-library-intro a {
    color: #2f6fd0;
    font-size: 14px;
    white-space: nowrap;
}

.home-head a:hover,
.home-library-intro a:hover {
    color: #1f5bb8;
}

.home-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.home-arrow {
    position: relative;
    display: inline-block;
    flex: 0 0 16px;
    width: 16px;
    height: 12px;
    color: currentColor;
}

.home-arrow::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    width: 15px;
    border-top: 1.5px solid currentColor;
}

.home-arrow::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 1px;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.home-industries,
.home-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.home-industries {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.home-industry {
    grid-column: span 3;
}

.home-industry:nth-child(n+5) {
    grid-column: span 4;
}

.home-industry,
.home-product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e3e7ee;
    border-radius: 8px;
    background: #fff;
    color: #1c2430;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.home-card-media {
    height: 168px;
    overflow: hidden;
    background: #e9edf1;
}

.home-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.home-product .home-card-media {
    height: 186px;
}

.home-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 22px;
}

.home-card-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.home-card-body h3 {
    min-width: 0;
    color: #1c2430;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.home-card-title em {
    flex: none;
}

.home-card-summary {
    min-height: 42px;
    margin-bottom: 18px;
    overflow-wrap: anywhere;
}

.home-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    color: #5c6778;
    font-size: 13px;
    line-height: 20px;
}

.home-product .home-card-link {
    padding-top: 15px;
    border-top: 1px solid #edf0f4;
}

.home-industry:hover,
.home-product:hover {
    box-shadow: 0 10px 24px rgba(28, 44, 67, .09);
    transform: translateY(-3px);
}

.home-industry:hover .home-card-media img,
.home-product:hover .home-card-media img {
    transform: scale(1.035);
}

.home-libraries a {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e3e7ee;
    border-radius: 8px;
    background: #fff;
    color: #1c2430;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.home-library-card .home-card-media {
    flex: none;
    height: auto;
    aspect-ratio: 2 / 1;
}

.home-library-card .home-card-body {
    padding: 20px 22px;
}

.home-library-card .home-card-title {
    align-items: center;
}

.home-library-card .home-arrow {
    color: #7a8799;
    transition: color .2s ease;
}

.home-library-card .home-card-summary {
    margin-bottom: 0;
}

.home-library-card:hover {
    box-shadow: 0 10px 24px rgba(28, 44, 67, .09);
    transform: translateY(-3px);
}

.home-library-card:hover .home-card-media img {
    transform: scale(1.035);
}

.home-library-card:hover .home-arrow {
    color: #2f6fd0;
}

.home-industry:hover,
.home-product:hover,
.home-libraries a:hover,
.home-media-row:hover {
    border-color: #2f6fd0;
}

.home-industry:focus-visible,
.home-product:focus-visible,
.home-libraries a:focus-visible,
.home-media-row:focus-visible {
    outline: 2px solid #2f6fd0;
    outline-offset: 2px;
}

.home-media {
    display: flex;
    flex-direction: column;
}

.home-media-row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(110px, .8fr) minmax(110px, .8fr) 168px;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding: 14px 18px;
    border: 1px solid #e3e7ee;
    border-bottom: 0;
    background: #fff;
    color: #1c2430;
}

.home-media-row:first-child {
    border-radius: 8px 8px 0 0;
}

.home-media-row:last-child {
    border-bottom: 1px solid #e3e7ee;
    border-radius: 0 0 8px 8px;
}

.home-media-row:hover {
    background: #f7f9fb;
}

.home-media-row strong {
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-media-name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.home-media-icon {
    position: relative;
    display: inline-flex;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e3e7ee;
    border-radius: 6px;
    background: #edf5f3;
    color: #347264;
    font-size: 15px;
    font-weight: 600;
}

.home-media-icon img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 2px;
    object-fit: contain;
    background: #fff;
}

.home-media-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
}

.home-media-row > span {
    overflow: hidden;
    color: #5c6778;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    white-space: nowrap;
}

.home-media-row > .home-price {
    overflow: visible;
    align-self: center;
}

.home-price small {
    color: #8b95a5;
    font-size: 12px;
    line-height: 1.3;
}

.home-price b {
    color: #e07a1f;
    font-size: 16px;
    line-height: 1.3;
}

.home-price s {
    color: #98a2b3;
    font-size: 12px;
    line-height: 1.3;
}

.home-empty {
    margin: 0;
    color: #5c6778;
}

.home-split {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.home-library-intro p {
    max-width: 280px;
    margin-top: 12px;
    font-size: 15px;
}

.home-library-intro a {
    display: inline-block;
    margin-top: 18px;
}

.home-libraries {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.home-close {
    background: #1b2430;
    padding: 52px 0;
}

.home-close .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.home-close h2,
.home-close p {
    color: #fff;
}

.home-close p {
    max-width: 520px;
    margin-top: 8px;
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
}

.home-close .home-actions {
    margin-top: 0;
    flex: none;
}

@media (max-width: 1100px) {
    .home-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .home-library-intro p {
        max-width: 560px;
    }

    .home-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 28px;
    }

    .home-industries,
    .home-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-industry,
    .home-industry:nth-child(n+5) {
        grid-column: auto;
    }

    .home-industry:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .home-industry:last-child:nth-child(odd) .home-card-media {
        height: 100%;
        min-height: 168px;
    }

    .home-media-row {
        grid-template-columns: minmax(0, 1.4fr) minmax(90px, .7fr) 150px;
    }

    .home-media-row > span:nth-child(3) {
        display: none;
    }
}

@media (max-width: 760px) {
    .home-hero {
        min-height: 0;
    }

    .home-hero-copy {
        min-height: 0;
        padding-top: 40px;
        padding-bottom: 32px;
    }

    .home-hero h1 {
        font-size: 36px;
    }

    .home-stats,
    .home-steps,
    .home-industries,
    .home-products,
    .home-libraries,
    .home-split,
    .home-close .container {
        grid-template-columns: 1fr;
    }

    .home-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .home-steps li,
    .home-steps li:last-child {
        padding: 16px 0;
        border-right: 0;
        border-bottom: 1px solid #e6ebf2;
    }

    .home-steps li:last-child {
        border-bottom: 0;
    }

    .home-band {
        padding: 40px 0;
    }

    .home-head {
        align-items: center;
        gap: 16px;
    }

    .home-head > div {
        min-width: 0;
    }

    .home-head h2 {
        font-size: 24px;
    }

    .home-head a {
        flex: none;
        gap: 8px;
        font-size: 13px;
    }

    .home-industry:last-child:nth-child(odd) {
        display: flex;
        grid-column: auto;
    }

    .home-card-media,
    .home-product .home-card-media,
    .home-industry:last-child:nth-child(odd) .home-card-media {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .home-card-body,
    .home-library-card .home-card-body {
        padding: 18px 20px;
    }

    .home-card-summary {
        min-height: 0;
    }

    .home-close .container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .home-media-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
        padding: 14px 16px;
    }

    .home-media-row > span:nth-child(3) {
        display: block;
    }

    .home-media-row strong,
    .home-media-row > span {
        white-space: normal;
    }

    .home-price {
        align-items: flex-start;
        margin-top: 6px;
        text-align: left;
    }

    .home-close .home-actions {
        margin-top: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-industry,
    .home-product,
    .home-library-card,
    .home-library-card .home-arrow,
    .home-card-media img {
        transition: none;
    }

    .home-industry:hover,
    .home-product:hover,
    .home-library-card:hover,
    .home-library-card:hover .home-card-media img,
    .home-industry:hover .home-card-media img,
    .home-product:hover .home-card-media img {
        transform: none;
    }
}
.ai-ask[hidden] {
    display: none !important;
}

.ai-ask {
    position: fixed;
    inset: 0;
    z-index: 360;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(15, 23, 42, .48);
}

.ai-ask-dialog {
    display: flex;
    flex-direction: column;
    width: min(560px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .22);
}

.ai-ask-head,
.ai-ask-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
}

.ai-ask-head {
    border-bottom: 1px solid var(--line);
}

.ai-ask-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.ai-ask-close {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.ai-ask-close:hover {
    background: #f1f5f9;
    color: var(--text);
}

.ai-ask-body {
    overflow: auto;
    padding: 16px 18px 8px;
}

.ai-ask-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.ai-ask-stat span {
    display: block;
    color: #64748b;
    font-size: 12px;
}

.ai-ask-stat b {
    display: block;
    margin-top: 2px;
    color: var(--text);
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

.ai-ask-stat-fee b {
    color: #e8541f;
}

.ai-ask-note,
.ai-ask-warn {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.6;
}

.ai-ask-note {
    color: #526174;
}

.ai-ask-warn {
    color: #b45309;
}

.ai-ask-warn[hidden] {
    display: none !important;
}

.ai-ask-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}

.ai-ask-prompt {
    width: 100%;
    min-height: 180px;
    max-height: 280px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}

.ai-ask-prompt:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 124, 255, .12);
}

.ai-ask-prompt:disabled {
    background: #f8fafc;
    color: #94a3b8;
}

.ai-ask-foot {
    border-top: 1px solid var(--line);
}

.ai-ask-recharge {
    color: var(--primary);
    font-size: 13px;
    text-decoration: none;
}

.ai-ask-recharge[hidden] {
    display: none !important;
}

.ai-ask-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.ai-ask-foot .btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

body.ai-ask-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .ai-ask {
        padding: 0;
    }

    .ai-ask-dialog {
        width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
    }

    .ai-ask-stat b {
        font-size: 18px;
    }
}

.mtable th.bo-ops,
.mtable td.bo-ops {
    overflow: visible;
    text-align: center;
    padding-right: 22px;
}

.mtable td.bo-ops > form {
    justify-content: flex-end;
}

.bo-ops {
    justify-content: center;
}
