@font-face {
    font-display: swap;
    font-family: OPPOSans4;
    font-weight: 100 900;
    src: url(https://resource-static.cdn.bcebos.com/fonts/OPPOSans4.0.woff2) format("woff2");
}

/* ========== 全局变量 ========== */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: rgba(37, 99, 235, 0.10);
    --success-color: #16a34a;
    --warning-color: #d97706;
    --bg-body: #ffffff;
    --bg-muted: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-muted: #373d46;
    --border-color: #e2e8f0;
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.07);
    --radius-2xl: 0.625rem;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'OPPOSans4', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

.resource-down-page {
    background: #f3f4f6;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: var(--primary-color);
}

/* ========== 工具类 ========== */
.resource-gradient-text {
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.resource-bg-grid {
    background-image: radial-gradient(circle, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

.resource-badge-premium {
    background-color: rgba(217, 119, 6, 0.15);
    color: var(--warning-color);
    border: 1px solid rgba(217, 119, 6, 0.30);
}

.resource-badge-free {
    background-color: rgba(22, 163, 74, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(22, 163, 74, 0.30);
}

.resource-badge-paid {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid rgba(37, 99, 235, 0.20);
}

.resource-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* 首页内容区标题与标签 */
.resource-section-intro {
    min-width: 0;
}

.resource-section-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.resource-section-title-line .resource-title {
    margin: 0;
}

.resource-section-badge {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
}


.resource-price-tag {
    font-size: 1rem;
    color: var(--text-primary);
}

.resource-price-currency {
    display: inline-block;
    margin-right: 0.18rem;
    font-size: 0.9em;
    font-weight: 700;
    line-height: 1;
}

.resource-price-tag .resource-price-old {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.resource-line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.min-w-0 {
    min-width: 0;
}

/* ========== 法律单页 ========== */
.legal-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.legal-sidebar,
.legal-content {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.legal-sidebar {
    position: sticky;
    top: 96px;
    padding: 22px;
    border-radius: 18px;
}

.legal-sidebar-title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.legal-sidebar-copy {
    margin: 0 0 18px;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #64748b;
}

.legal-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid transparent;
    color: #334155;
    font-weight: 600;
    transition: all 0.2s ease;
}

.legal-nav-link span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.legal-nav-link:hover {
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.18);
    background: #eff6ff;
}

.legal-nav-link.is-active {
    color: #eff6ff;
    background: linear-gradient(135deg, #1d4ed8, #0f172a);
    box-shadow: 0 18px 32px rgba(29, 78, 216, 0.22);
}

.legal-content {
    padding: 32px;
    border-radius: 22px;
}

.legal-content .article-content {
    max-width: 900px;
    line-height: 1.9;
    color: #475569;
}

.legal-content h2,
.legal-content h3 {
    color: #0f172a;
}

.legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.875rem;
    font-weight: 700;
}

/* ========== 导航栏 ========== */
.resource-navbar-custom {
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
    padding: 0.7rem 0;
}

.resource-nav-shell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.resource-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
}

.resource-navbar-custom .navbar-toggler,
.resource-navbar-custom .navbar-toggler:focus,
.resource-navbar-custom .navbar-toggler:active,
.resource-navbar-custom .navbar-toggler:focus-visible {
    border: 0;
    outline: none;
    box-shadow: none;
}

.resource-navbar-custom .resource-brand {
    margin-right: 2rem;
    gap: 0.6rem !important;
    min-width: 0;
    flex: 0 1 auto;
    max-width: 100%;
    overflow: hidden;
}

.resource-navbar-custom .resource-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
}

.resource-navbar-custom .resource-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.resource-navbar-custom .resource-brand-text {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
    line-height: 1;
    white-space: nowrap;
    min-width: 0;
}

.resource-nav-mobile-tools {
    gap: 0.5rem;
    flex: 0 0 auto;
    margin-left: auto;
}

.resource-nav-mobile-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.8rem;
    background-color: rgba(241, 245, 249, 0.78);
    color: var(--text-muted);
    transition: var(--transition-base);
}

.resource-nav-mobile-tool:hover {
    background-color: rgba(226, 232, 240, 0.95);
    color: var(--text-primary);
}

.resource-nav-mobile-tool i {
    font-size: 1.05rem;
    line-height: 1;
}

.resource-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.8rem;
    background-color: rgba(241, 245, 249, 0.78);
    color: var(--text-muted);
    transition: var(--transition-base);
}

.resource-nav-toggle:hover {
    background-color: rgba(226, 232, 240, 0.95);
    color: var(--text-primary);
}

.resource-nav-toggle i {
    line-height: 1;
}

.resource-nav-panel {
    width: 100%;
}

.resource-nav-body {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    width: 100%;
}

/* 桌面端导航项 */
.resource-navbar-custom .navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 0.78rem;
    border-radius: 0.65rem;
    border: 1px solid transparent;
    transition: var(--transition-base);
    white-space: nowrap;
    line-height: 1;
}

.resource-navbar-custom .navbar-nav .nav-link:hover {
    color: var(--text-primary);
    background-color: rgba(248, 250, 252, 0.92);
}

.resource-navbar-custom .navbar-nav .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
}

.resource-navbar-custom .resource-nav-main-list {
    gap: 0.2rem;
}

.resource-navbar-custom .resource-nav-main-list .nav-item {
    display: flex;
    align-items: center;
}

.resource-nav-side {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 0;
}

/* 桌面端搜索框 */
.resource-search-wrap {
    position: relative;
    width: 100%;
}

.resource-search-wrap .resource-search-icon {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: var(--primary-color);
    transform: translateY(-50%);
    color: #fff;
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.resource-search-wrap .resource-search-icon:hover {
    color: #fff;
    background: var(--primary-hover);
}

.resource-search-wrap .resource-search-icon:focus-visible {
    outline: none;
    color: #fff;
    background: var(--primary-hover);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.resource-search-wrap .resource-search-desk {
    width: 100%;
    border-radius: 1.25rem;
    border: 1px solid var(--border-color);
    background-color: rgba(248, 250, 252, 0.92);
    padding: 0.58rem 2.9rem 0.58rem 1rem;
    font-size: 0.875rem;
    height: 2.6rem;
    transition: var(--transition-base);
}

.resource-search-wrap .resource-search-desk:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.30);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.resource-search-wrap .resource-search-desk::placeholder {
    color: var(--text-muted);
}

/* 登录注册按钮 */
.resource-btn-main {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1;
    transition: var(--transition-base);
}

.resource-btn-main:hover {
    background-color: var(--primary-hover);
    color: #fff;
}

#auth-header-slot {
    gap: 0.65rem !important;
}

.resource-nav-drop {
    position: relative;
}

.resource-nav-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0.125rem;
    border-radius: 9rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background-color: rgba(241, 245, 249, 0.78);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: var(--transition-base);
    overflow: hidden;
}

.resource-nav-trigger:hover {
    background-color: rgba(226, 232, 240, 0.95);
    border-color: rgba(203, 213, 225, 0.95);
}

.resource-nav-trigger-mb {
    width: 2.35rem;
    height: 2.35rem;
}

.resource-nav-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 9999px;
}

.resource-nav-user-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: -0.25rem;
    left: auto;
    min-width: 10.5rem;
    margin-top: 0;
    padding: 0.45rem;
    border: 1px solid var(--border-color);
    border-radius: 0.875rem;
    background-color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    z-index: 1080;
}

.resource-nav-user-menu::before,
.resource-nav-user-menu::after {
    content: "";
    position: absolute;
    right: 1.1rem;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
}

.resource-nav-user-menu::before {
    top: -8px;
    border-bottom: 8px solid var(--border-color);
}

.resource-nav-user-menu::after {
    top: -7px;
    border-bottom: 8px solid #fff;
}

.resource-nav-menu-item {
    display: flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    line-height: 1.2;
    color: var(--text-primary);
    text-decoration: none;
}

.resource-nav-menu-item:hover {
    background-color: var(--bg-muted);
    color: var(--text-primary);
}

.resource-nav-menu-ph {
    color: var(--text-muted);
    cursor: default;
}

.resource-nav-menu-item + .resource-nav-menu-item {
    margin-top: 0.125rem;
}

.resource-nav-menu-ph:hover {
    background-color: transparent;
    color: var(--text-muted);
}

.resource-nav-menu-warn {
    color: #dc2626;
}

.resource-nav-menu-warn:hover {
    color: #dc2626;
}

.resource-nav-auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 9rem;
    color: var(--text-muted);
    background-color: rgba(241, 245, 249, 0.78);
    transition: var(--transition-base);
}

.resource-nav-auth-icon:hover {
    color: var(--text-primary);
    background-color: rgba(226, 232, 240, 0.95);
}

.resource-nav-auth-icon i {
    font-size: 1.1rem;
    line-height: 1;
}

.hide {
    display: none !important;
}

/* ========== 登录弹窗 ========== */
#zhuiying-pop-bg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
}

#zhuiying-pop-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28rem;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    z-index: 1000000;
    display: none;
    border-radius: 1rem;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
}

#zhuiying-pop-content {
    margin: 0;
    overflow: hidden;
    max-height: calc(100vh - 2rem);
}

#zhuiying-pop-con {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1rem;
    background: #fff;
    max-height: calc(100vh - 2rem);
}

#zhuiying-pop-close {
    position: absolute;
    top: -0.65rem;
    right: -0.65rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    outline: 0;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    color: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

#zhuiying-pop-close::before {
    content: "x";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 600;
}

.resource-auth-toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000002;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.resource-auth-toast {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-width: 11rem;
    max-width: min(22rem, calc(100vw - 2rem));
    padding: 0.95rem 1.25rem;
    border-radius: 999px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.resource-auth-toast.is-visible {
    opacity: 1;
    transform: scale(1);
}

.resource-auth-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    flex: 0 0 auto;
}

.resource-auth-toast-icon svg {
    width: 100%;
    height: 100%;
}

.resource-auth-toast-text {
    line-height: 1;
}

.resource-auth-toast-success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.resource-auth-toast-error {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.resource-auth-toast-info {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.resource-auth-toast-logout {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
}

.resource-auth-modal {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: #fff;
}

.resource-auth-modal.resource-auth-verifying .resource-auth-tabs,
.resource-auth-modal.resource-auth-verifying .resource-auth-body {
    display: none;
}

.resource-auth-modal.resource-auth-verifying .resource-auth-rotate-layer {
    display: block;
}

.resource-auth-tabs {
    border-bottom: 1px solid var(--border-color);
    margin: 0;
    padding: 2rem 2rem 0;
}

.resource-auth-tabs ul {
    display: flex;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.resource-auth-tabs ul li {
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    padding: 0 0 0.75rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.resource-auth-tabs ul li a {
    color: inherit;
}

.resource-auth-tabs ul li.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.resource-auth-body {
    padding: 2rem;
    background: #fff;
}

.resource-auth-body form {
    margin: 0;
}

.resource-modal-body-tab {
    display: block;
}

.resource-modal-body-tab.hide {
    display: none !important;
}

.resource-auth-rotate-layer {
    display: none;
    padding: 2rem;
    background: #fff;
}

.resource-auth-rotate-dialog {
    width: 100%;
    max-width: 27rem;
    margin: 0 auto;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.resource-auth-rotate-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.resource-auth-rotate-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.resource-auth-rotate-copy {
    margin-top: 0.3rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.resource-auth-rotate-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-muted);
}

.resource-auth-rotate-close i {
    font-size: 0.875rem;
}

.resource-auth-rotate-close:hover {
    color: var(--text-primary);
    background: rgba(148, 163, 184, 0.2);
}

.resource-auth-feedback {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
}

.resource-auth-field + .resource-auth-field {
    margin-top: 1rem;
}

.resource-auth-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
}

.resource-auth-body .form-control {
    display: block;
    width: 100%;
    height: 2.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background: #fff;
    color: var(--text-primary);
    padding: 0.625rem 0.875rem;
    box-shadow: none;
}

.resource-auth-body .form-control:focus {
    border-color: rgba(37, 99, 235, 0.7);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.resource-auth-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.resource-auth-inline .form-control {
    min-width: 0;
}

.resource-auth-verify {
    flex: 0 0 auto;
}

.resource-validate-img {
    width: 6.25rem;
    height: 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    cursor: pointer;
}

.resource-auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.resource-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
}

.resource-auth-submit,
.resource-auth-send,
.resource-btn-color {
    border-radius: 0.75rem;
}

.resource-btn-color {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.resource-btn-color:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

.resource-text-color {
    color: var(--primary-color) !important;
}

.resource-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.875rem;
    margin-top: 1.25rem;
    font-weight: 600;
}

.resource-auth-send {
    flex: 0 0 auto;
    white-space: nowrap;
}

.resource-auth-tip {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.resource-rotate-box {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
}

.resource-rotate-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 14rem;
    padding: 0.75rem 0.75rem 0.5rem;
}

.resource-rotate-dial {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12.5rem;
    height: 12.5rem;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f4f8ff 68%, #e4ebf7 100%);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25), 0 12px 24px rgba(15, 23, 42, 0.08);
}

.resource-rotate-dial::before {
    content: "";
    position: absolute;
    inset: 0.6rem;
    border-radius: 50%;
    border: 2px solid rgba(148, 163, 184, 0.28);
    pointer-events: none;
}

.resource-rotate-pointer {
    position: absolute;
    top: 0.55rem;
    left: 50%;
    width: 0;
    height: 0;
    margin-left: -0.55rem;
    border-left: 0.55rem solid transparent;
    border-right: 0.55rem solid transparent;
    border-top: 0;
    border-bottom: 0.9rem solid #2563eb;
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.24));
    z-index: 2;
}

.resource-rotate-image {
    width: 10.5rem;
    height: auto;
    transition: transform 0.18s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.resource-rotate-empty {
    position: absolute;
    inset: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-muted);
    font-size: 0.9375rem;
    text-align: center;
}

.resource-rotate-slider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.resource-rotate-icon {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 1rem;
}

.resource-rotate-range {
    margin-top: 0;
}

.resource-rotate-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.resource-rotate-note {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.resource-rotate-refresh {
    min-height: 2.25rem;
    padding: 0.4rem 0.9rem;
    border-radius: 0.75rem;
}

/* ========== 卡片 / 模板卡片 ========== */
.resource-card {
    border: 0;
    border-radius: var(--radius-2xl);
    background-color: var(--bg-card);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: var(--transition-base);
    overflow: hidden;
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.resource-card .card-img-top {
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.resource-card:hover .card-img-top {
    transform: scale(1.05);
}

.resource-card-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.65;
}

.resource-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-size: 1.15rem;
}

.resource-badge-amber {
    background-color: rgba(255, 247, 237, 0.96);
    border-color: rgba(245, 158, 11, 0.5);
    color: #92400e;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.resource-panel-head {
    margin-bottom: 0.75rem;
	font-size: 1.2rem;
}

/* ========== 插件 / 导航条目（左图右文，不换行） ========== */
.resource-item,
.resource-link {
    flex-wrap: nowrap !important;
    gap: 0.65rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    padding: 0.7rem 0.9rem;
    transition: var(--transition-base);
    height: 100%;
    min-height: 4.25rem;
}

.resource-item:hover,
.resource-link:hover {
    border-color: rgba(37, 99, 235, 0.30);
    box-shadow: var(--shadow-hover);
}

.resource-item .resource-item-icon {
    flex: 0 0 auto;
    width: 6rem;
    height: 6rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: var(--bg-muted);
}

.resource-item .resource-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.resource-item:hover .resource-item-icon img {
    transform: scale(1.05);
}

.resource-link .resource-link-icon {
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.resource-map-icon-home {
    background-color: #2563eb;
}

.resource-map-icon-template {
    background-color: #0f766e;
}

.resource-map-icon-plugin {
    background-color: #7c3aed;
}

.resource-map-icon-collect {
    background-color: #059669;
}

.resource-map-icon-tutorial {
    background-color: #ea580c;
}

.resource-map-icon-vip {
    background-color: #dc2626;
}

.resource-item .resource-item-body .resource-item-title,
.resource-link .resource-item-body .resource-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.resource-item .resource-item-body .resource-item-desc,
.resource-link .resource-item-body .resource-item-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.65;
	margin: 0.2rem 0;
}

.resource-item .resource-item-body .resource-item-tag {
    display: inline-block;
    margin-top: 0.2rem;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.1rem 0.6rem;
    border-radius: 9999px;
    background-color: rgba(22, 163, 74, 0.12);
    color: var(--success-color);
    border: 1px solid rgba(22, 163, 74, 0.25);
}

.resource-item .resource-item-body .resource-type-tag {
    display: inline-block;
    margin-top: 0.2rem;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.1rem 0.6rem;
    border-radius: 9999px;
    background-color: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.22);
}

/* ========== 教程条目 ========== */
.resource-tutorial {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    padding: 0.9rem;
    transition: var(--transition-base);
    overflow: hidden;
    height: 100%;
}

.resource-tutorial:hover {
    border-color: rgba(37, 99, 235, 0.30);
    box-shadow: var(--shadow-hover);
}

.resource-tutorial .resource-tut-thumb {
    flex-shrink: 0;
    width: 100%;
    height: 11rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: var(--bg-muted);
}

.resource-tutorial .resource-tut-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.resource-tutorial:hover .resource-tut-thumb img {
    transform: scale(1.05);
}

.resource-tutorial .resource-tut-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.resource-tutorial .resource-tut-body .resource-tut-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-tutorial .resource-tut-body .resource-tut-title a {
    color: var(--text-primary);
    transition: var(--transition-base);
}

.resource-tutorial .resource-tut-body .resource-tut-title a:hover {
    color: var(--primary-color);
}

.resource-tutorial .resource-tut-body .resource-tut-excerpt {
    font-size: 0.85rem;
	line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-tutorial .resource-tut-body .resource-tut-footer {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* ========== VIP CTA ========== */
.resource-vip {
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    position: relative;
    overflow: hidden;
    padding: 2.1rem 1.75rem;
}

.resource-vip .resource-bg-grid {
    position: absolute;
    inset: 0;
    opacity: 0.15;
}

.resource-vip .resource-vip-body {
    position: relative;
    z-index: 2;
}

.resource-vip .resource-vip-tip {
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.20);
    padding: 0.24rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
}

.resource-vip .resource-vip-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.6rem;
}

.resource-vip .resource-vip-desc {
    color: rgba(255, 255, 255, 0.80);
    max-width: 28rem;
}

.resource-vip .resource-vip-btn {
    background-color: #fff;
    color: var(--primary-color);
    border: none;
    border-radius: 0.5rem;
    padding: 0.68rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.resource-vip .resource-vip-btn:hover {
    background-color: rgba(255, 255, 255, 0.90);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.resource-member-main {
    margin: 0;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.resource-member-sub {
    margin-top: 0.75rem;
    max-width: 40rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.resource-member-tabs {
    display: flex;
    justify-content: center;
}

.resource-member-switch {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background-color: var(--bg-card);
    padding: 0.25rem;
}

.resource-member-tab {
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    transition: var(--transition-base);
}

.resource-member-tab.resource-is-active {
    background-color: var(--primary-color);
    color: #fff;
}

.resource-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-radius: 1rem;
    padding: 1.5rem;
}

.resource-plan-card-vip {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.03) 0%, #fff 100%);
}

.resource-plan-card-svip {
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.12);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.05) 0%, #fff 100%);
}

.resource-plan-tip {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 9999px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.28rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.resource-plan-card-head {
    margin-bottom: 0;
}

.resource-plan-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.resource-text-normal {
    color: #6b7280;
}

.resource-text-vip {
    color: #7c3aed;
}

.resource-text-svip {
    color: #7c3aed;
}

.resource-plan-card-copy {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

.resource-plan-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.resource-plan-price {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.resource-period-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.resource-plan-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1 1 auto;
}

.resource-plan-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

.resource-plan-list li i {
    margin-top: 0.1rem;
    color: var(--success-color);
    font-size: 1rem;
    line-height: 1;
}

.resource-plan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.9rem;
    border-radius: 0.6rem;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: var(--transition-base);
}

.resource-plan-btn-muted {
    border: 1px solid var(--border-color);
    background-color: var(--bg-muted);
    color: var(--text-muted);
}

.resource-plan-btn-lite {
    border: 1px solid var(--primary-color);
    background-color: #fff;
    color: var(--primary-color);
}

.resource-plan-btn-lite:hover {
    background-color: rgba(37, 99, 235, 0.05);
    color: var(--primary-color);
}

.resource-plan-btn-main {
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
}

.resource-plan-btn-main:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

.resource-member-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.resource-member-cmp {
    overflow-x: auto;
    border-radius: 1rem;
}

.resource-member-table {
    width: 100%;
    min-width: 48rem;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.resource-member-table thead tr {
    border-bottom: 1px solid var(--border-color);
}

.resource-member-table th,
.resource-member-table td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
}

.resource-member-table th {
    font-weight: 600;
}

.resource-member-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.resource-member-table tbody tr:last-child {
    border-bottom: 0;
}

.resource-member-table td:first-child,
.resource-member-table th:first-child {
    text-align: left;
    color: var(--text-primary);
}

.resource-member-dim {
    color: var(--text-muted);
}

.resource-member-copy {
    color: var(--text-muted);
}

.resource-member-strong {
    color: var(--success-color);
    font-weight: 600;
}

.resource-member-faq-list {
    max-width: 48rem;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}

.resource-member-faq-item {
    border-radius: 0.9rem;
    padding: 1rem 1.1rem;
}

.resource-member-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    list-style: none;
}

.resource-member-faq-item summary::-webkit-details-marker {
    display: none;
}

.resource-member-faq-item summary i {
    color: var(--text-muted);
    transition: transform var(--transition-base);
}

.resource-member-faq-item[open] summary i {
    transform: rotate(180deg);
}

.resource-member-faq-item p {
    margin: 0.85rem 0 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.8;
}

/* ========== 页脚 ========== */
.resource-footer-custom {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-card);
    padding: 3rem 0 1.5rem;
}

.resource-footer-custom .resource-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.resource-footer-custom .resource-footer-brand .resource-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
}

.resource-footer-custom .resource-footer-brand .resource-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.resource-footer-custom .resource-footer-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.resource-footer-custom .resource-footer-link:hover {
    color: var(--primary-color);
}

.resource-back-top-btn {
    position: fixed;
    right: 3rem;
    bottom: 3rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border: 0;
    border-radius: 9999px;
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: var(--transition-base);
}

.resource-back-top-btn.resource-is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.resource-back-top-btn:hover {
    background-color: var(--primary-hover);
    color: #fff;
}

.resource-back-top-btn i {
    font-size: 1rem;
    line-height: 1;
}

/* ========== 响应式 ========== */
/* 按钮 */
.resource-btn-main-lg {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.7rem 1.6rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.resource-btn-main-lg:hover {
    background-color: var(--primary-hover);
    color: #fff;
}

.resource-btn-lite-lg {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.7rem 1.6rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.resource-btn-lite-lg:hover {
    background-color: var(--bg-muted);
    color: var(--text-primary);
}

.resource-text-balance {
    text-wrap: balance;
}

.resource-trans {
    transition: var(--transition-base);
}

/* 标签 */
.resource-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    padding: 0.3rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-base);
}

.resource-tag:hover {
    border-color: rgba(37, 99, 235, 0.30);
    color: var(--text-primary);
}

.resource-map-link {
    min-height: 2.5rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    background-color: rgba(248, 250, 252, 0.9);
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-base);
}

.resource-map-link:hover {
    border-color: rgba(37, 99, 235, 0.30);
    background-color: #fff;
    color: var(--primary-color);
}

.resource-tag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.35rem;
    border-radius: 9999px;
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 600;
}

/* Hero */
.resource-hero {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, #fff 60%);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.resource-hero .resource-bg-grid {
    position: absolute;
    inset: 0;
    opacity: 0.4;
}

.resource-hero-tip {
    border-radius: 9999px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    background-color: rgba(37, 99, 235, 0.05);
    padding: 0.28rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* ========== 教程页 / 文章页 ========== */
.resource-head {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.04) 0%, #fff 60%);
    border-bottom: 1px solid var(--border-color);
}

.resource-crumb .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    font-size: 0.9rem;
    color: var(--text-muted);
}

.resource-crumb .breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
}

.resource-crumb .breadcrumb-item a:hover {
    color: var(--primary-color);
}

.resource-crumb .breadcrumb-item.active {
    color: var(--text-primary);
}

.resource-tut-tag {
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition-base);
}

.resource-tut-tag:hover {
    color: var(--text-primary);
    border-color: rgba(37, 99, 235, 0.3);
}

.resource-tut-tag.resource-active-chip {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.resource-tut-empty-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background-color: var(--bg-muted);
    color: var(--text-muted);
    font-size: 1.8rem;
}

.resource-site-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #f59e0b;
    font-size: 0.82rem;
    line-height: 1;
}

.resource-site-head {
    min-width: 0;
}

.resource-site-head .resource-item-title {
    flex: 1 1 auto;
    min-width: 0;
}

.resource-site-arrow {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.1rem;
}

.resource-site-empty {
    margin-top: 0.5rem;
}

.resource-hero-band {
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.resource-page-copy {
    max-width: 40rem;
}

.resource-filter {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background-color: var(--bg-card);
    padding: 1.35rem 1rem;
}

.resource-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.resource-filter-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.2;
}

.resource-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.resource-filter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 11rem) auto;
    gap: 0.65rem;
    align-items: center;
}

.resource-filter-wrap {
    position: relative;
}

.resource-filter-icon {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-50%);
    font-size: 1rem;
    transition: var(--transition-base);
}

.resource-filter-icon:hover {
    background-color: var(--primary-hover);
}

.resource-filter-icon:focus-visible {
    outline: none;
    background-color: var(--primary-hover);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.resource-filter-input,
.resource-filter-select {
    width: 100%;
    height: 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.8rem;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-size: 0.92rem;
}

.resource-filter-input {
    padding: 0 3rem 0 1rem;
}

.resource-filter-select {
    padding: 0 0.9rem;
}

.resource-filter-reset {
    height: 2.75rem;
    padding: 0 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.8rem;
    background-color: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.92rem;
    text-decoration: none;
    transition: var(--transition-base);
}

.resource-filter-reset:hover {
    color: var(--text-primary);
    background-color: var(--bg-muted);
}

.resource-item-fallback {
    width: 100%;
    height: 100%;
    display: block;
}

.resource-item-fallback {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
}

.resource-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid transparent;
    border-radius: 9999px;
    padding: 0.28rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.resource-badge-main {
    background-color: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--primary-color);
}

.resource-badge-ok {
    background-color: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.18);
    color: var(--success-color);
}

.resource-badge-amber {
    background-color: rgb(255 186 99 / 96%);
    border-color: rgba(245, 158, 11, 0.5);
    color: #92400e;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.resource-badge-muted {
    background-color: var(--bg-muted);
    border-color: var(--border-color);
    color: var(--text-muted);
}

.resource-empty {
    border: 1px dashed var(--border-color);
    border-radius: 1rem;
    background-color: var(--bg-card);
    padding: 3.5rem 1.5rem;
}

.resource-empty-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background-color: var(--bg-muted);
    color: var(--text-muted);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.resource-empty-title {
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.resource-empty-copy {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.resource-empty-btn {
    height: 2.7rem;
    margin-top: 1.25rem;
    padding: 0 1.2rem;
    border-radius: 0.8rem;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}

.resource-down-shell {
    min-height: 100vh;
}

.resource-down-card {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.4rem;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.resource-down-top {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.resource-down-media {
    min-width: 0;
    height: 100%;
}

.resource-down-cover {
    height: 100%;
    border-radius: 0.35rem;
    min-height: 100%;
}

.resource-down-cover img,
.resource-down-cover .resource-detail-fb {
    width: 100%;
    height: 100%;
}

.resource-down-cover img {
    object-fit: cover;
}

.resource-down-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.resource-down-title {
    margin: 0 0 1.2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.resource-down-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem 1.2rem;
}

.resource-down-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    min-width: 0;
}

.resource-down-meta-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.resource-down-meta-item strong {
    font-size: 0.98rem;
    color: var(--text-primary);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.resource-down-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.resource-down-actions form {
    margin: 0;
}

.resource-down-actions .resource-dbtn-main,
.resource-down-actions .resource-dbtn-lite {
    min-width: 160px;
}

.resource-down-notice {
    margin-top: 1.4rem;
    padding: 1.15rem 1.25rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.6rem;
    background: #f8fbff;
}

.resource-down-notice ol {
    margin: 0;
    padding-left: 1.2rem;
    color: #334155;
}

.resource-down-notice li + li {
    margin-top: 0.7rem;
}

.resource-down-notice a {
    color: var(--primary-color);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.resource-down-notice-title {
    margin: 0 0 0.9rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.resource-down-notice p {
    margin: 0 0 0.7rem;
    color: #334155;
    line-height: 1.75;
}

.resource-detail-cover {
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    border-radius: 0.9rem;
    border: 1px solid var(--border-color);
}

.resource-detail-cover img,
.resource-detail-fb {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
}

.resource-detail-cover img {
    object-fit: contain;
}

.resource-detail-fb {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 4rem;
    font-weight: 700;
}

.resource-detail-main {
    min-width: 0;
}

.resource-detail-hero {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.resource-detail-media {
    min-width: 0;
}

.resource-detail-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    line-height: 1.25;
}

.resource-detail-sub {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.resource-detail-price {
    display: flex;
    align-items: flex-end;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.resource-detail-meta{
    margin-top: 1rem;
}

.resource-dprice-now {
    color: var(--text-primary);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.resource-dprice-now .resource-price-old {
    display: inline-block;
    margin-left: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: line-through;
}

.resource-dprice-note {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.resource-dmeta-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
}

.resource-dmeta-value {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.resource-detail-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.resource-dbtn-main,
.resource-detail-btn-sub,
.resource-dbtn-lite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 3rem;
    padding: 0.75rem 1.35rem;
    border-radius: 0.8rem;
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
}

.resource-dbtn-main {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff;
}

.resource-dbtn-main:hover {
    color: #fff;
    filter: brightness(0.96);
}

.resource-detail-btn-sub {
    background-color: #fff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.resource-detail-btn-sub:hover {
    background-color: rgba(37, 99, 235, 0.05);
    color: var(--primary-color);
}

.resource-dbtn-lite {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.resource-dbtn-lite:hover {
    background-color: var(--bg-muted);
    color: var(--text-primary);
}

.resource-dbtn-main.resource-is-disabled {
    opacity: 0.6;
    cursor: default;
}

.resource-dvip-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 0.85rem;
    background-color: rgba(37, 99, 235, 0.06);
    padding: 0.75rem 0.9rem;
    color: var(--primary-color);
    font-size: 0.92rem;
}

.resource-dsec-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.resource-detail-title,
.resource-detail-sub,
.resource-dmeta-value,
.resource-dvip-note,
.resource-tag-link,
.resource-empty-copy,
.resource-detail-text {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.resource-dvip-note {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.resource-detail-text h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-top: 1.5rem;
}

.resource-detail-text h3:first-child {
    margin-top: 0;
}

.resource-detail-text iframe,
.resource-detail-text video,
.resource-detail-text embed,
.resource-detail-text object {
    display: block;
    max-width: 100%;
}

.resource-detail-text table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.resource-detail-text table th,
.resource-detail-text table td,
.resource-detail-text pre,
.resource-detail-text code {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.resource-gallery-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.resource-gallery-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-gallery {
    position: relative;
}

.resource-gallery-viewport {
    overflow: hidden;
}

.resource-gallery-track {
    display: flex;
    gap: 0.75rem;
    transition: transform 0.28s ease;
    will-change: transform;
}

.resource-gallery-frame {
    flex: 0 0 auto;
    width: calc((100% - 2.25rem) / 4);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    background-color: var(--bg-card);
    scroll-snap-align: start;
}

.resource-gallery-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transition: var(--transition-base);
}

.resource-gallery-nav:hover:not(:disabled) {
    color: var(--primary-color);
    border-color: rgba(37, 99, 235, 0.24);
    background: rgba(37, 99, 235, 0.04);
}

.resource-gallery-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.resource-gallery-zoom {
    display: block;
    cursor: zoom-in;
    text-decoration: none;
    position: relative;
}

.resource-gallery-frame img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.resource-gallery-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding: 0.55rem 0.75rem;
    background: rgba(15, 23, 42, 0.52);
    color: #fff;
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.resource-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.92);
}

.resource-lightbox[hidden] {
    display: none;
}

.resource-lightbox-img {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 0.9rem;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.12s ease;
    cursor: grab;
    user-select: none;
}

.resource-lightbox-img.resource-is-zoomed {
    cursor: grab;
}

.resource-lightbox-img.resource-is-dragging {
    cursor: grabbing;
    transition: none;
}

.resource-lightbox-nav,
.resource-lightbox-close {
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1rem;
}

.resource-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.resource-lightbox-nav.resource-is-prev {
    left: 1rem;
}

.resource-lightbox-nav.resource-is-next {
    right: 1rem;
}

.resource-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.resource-lightbox-nav:hover:not(:disabled),
.resource-lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.resource-lightbox-nav:disabled {
    opacity: 0.35;
}

.resource-lightbox-count {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.82rem;
    line-height: 1;
}

.resource-gallery-empty {
    border: 1px dashed var(--border-color);
    border-radius: 1rem;
    background-color: rgba(248, 250, 252, 0.6);
    padding: 2rem 1.25rem;
    text-align: center;
}

.resource-side-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.resource-side-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resource-side-list {
    display: grid;
    gap: 0.65rem;
}

.resource-side-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
}

.resource-side-item .resource-item-thumb {
    flex: 0 0 auto;
    width: 6rem;
    height: 4.25rem;
    border-radius: 0.65rem;
    overflow: hidden;
    background-color: var(--bg-muted);
}

.resource-side-item .resource-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.resource-side-item .resource-item-thumb .resource-item-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.resource-side-item .resource-item-body {
    flex: 1 1 auto;
    min-width: 0;
}

.resource-side-item .resource-item-title {
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-side-item .resource-item-desc {
    margin: 0.3rem 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-side-item .resource-type-tag,
.resource-side-item .resource-item-tag {
    display: inline-flex;
    align-items: center;
    margin-top: 0.45rem;
    margin-right: 0.35rem;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.1rem 0.55rem;
    border-radius: 9999px;
}

.resource-side-item .resource-type-tag {
    background-color: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.22);
}

.resource-side-item .resource-item-tag {
    background-color: rgba(22, 163, 74, 0.12);
    color: var(--success-color);
    border: 1px solid rgba(22, 163, 74, 0.25);
}

.resource-side-item:hover .resource-item-title {
    color: var(--primary-color);
}

.resource-tag-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    background-color: var(--bg-card);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
    text-decoration: none;
    transition: var(--transition-base);
}

.resource-tag-link:hover {
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--text-primary);
}

.resource-side-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.resource-vip-card {
    border-color: rgba(37, 99, 235, 0.2);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, #fff 100%);
}

.resource-vip-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
}

.resource-vip-link:hover {
    gap: 0.55rem;
    color: var(--primary-color);
}

.website-detail-head {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.05) 0%, #fff 70%);
}

.website-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.website-detail-brand {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    min-width: 0;
}

.website-detail-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 8rem;
    height: 8rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 1.1rem;
    background-color: var(--bg-card);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.website-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.website-detail-logo-text {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.website-detail-brand-body {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.website-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.website-detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.website-detail-chip-cat {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.14);
}

.website-detail-chip-ok {
    color: var(--success-color);
    background-color: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.16);
}

.website-detail-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.18;
}

.website-detail-summary {
    margin: 0.7rem 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.8;
}

.website-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.website-detail-btn-main,
.website-detail-btn-sub {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.7rem;
    border-radius: 9999px;
    padding: 0.68rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.website-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.website-detail-main,
.website-detail-sidebar {
    min-width: 0;
}

.website-detail-panel,
.website-detail-sidecard {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background-color: var(--bg-card);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.website-detail-panel {
    padding: 1.35rem;
}

.website-detail-panel + .website-detail-panel {
    margin-top: 1.25rem;
}

.website-detail-sidecard {
    padding: 1.1rem;
}

.website-detail-sidecard + .website-detail-sidecard {
    margin-top: 1rem;
}

.website-detail-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.website-detail-panel-title,
.website-detail-side-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.website-detail-panel-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.website-detail-side-title {
    margin: 0 0 0.95rem;
    font-size: 0.95rem;
}

.website-detail-panel-note {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.website-detail-panel-head .website-detail-panel-title {
    margin-bottom: 0;
}

.website-detail-content {
    color: var(--text-primary);
}

.website-detail-content > :first-child {
    margin-top: 0;
}

.website-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.website-detail-tag-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 9999px;
    background-color: rgba(37, 99, 235, 0.05);
    color: var(--primary-color);
    font-size: 0.84rem;
}

.website-detail-tag-link:hover {
    color: var(--primary-hover);
    border-color: rgba(37, 99, 235, 0.26);
}

.website-detail-rating-panel {
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.05) 0%, #fff 100%);
}

.website-detail-rating-box {
    display: grid;
    gap: 0.6rem;
}

.website-detail-rating-value {
    color: #d97706;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.website-detail-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    color: #f59e0b;
    font-size: 0.95rem;
}

.website-detail-related-grid,
.website-detail-side-list {
    display: grid;
    gap: 0.85rem;
}

.website-detail-related-card,
.website-detail-side-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    border: 1px solid var(--border-color);
    border-radius: 0.9rem;
    background-color: rgba(248, 250, 252, 0.7);
    padding: 0.85rem;
    transition: var(--transition-base);
}

.website-detail-related-card:hover,
.website-detail-side-item:hover {
    color: inherit;
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: var(--shadow-hover);
}

.website-detail-related-icon,
.website-detail-side-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 0.8rem;
}

.website-detail-related-icon {
    width: 3rem;
    height: 3rem;
}

.website-detail-side-icon {
    width: 2.85rem;
    height: 2.85rem;
}

.website-detail-related-icon img,
.website-detail-side-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.website-detail-related-icon-text,
.website-detail-side-icon-text {
    color: #fff;
    font-weight: 700;
}

.website-detail-related-body,
.website-detail-side-body {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    min-width: 0;
    flex: 1 1 auto;
}

.website-detail-related-title,
.website-detail-side-name {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.website-detail-related-desc,
.website-detail-side-desc {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.website-detail-related-arrow {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.website-detail-side-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
    font-size: 0.74rem;
}

.website-detail-sidebar-inner {
    position: sticky;
    top: 5rem;
}

.website-detail-info-list {
    display: grid;
    gap: 0.9rem;
}

.website-detail-info-item {
    display: grid;
    gap: 0.32rem;
}

.website-detail-info-key {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.website-detail-info-val,
.website-detail-info-link,
.website-detail-info-ok {
    font-size: 0.92rem;
    line-height: 1.6;
    word-break: break-all;
}

.website-detail-info-val,
.website-detail-info-link {
    color: var(--text-primary);
}

.website-detail-info-link:hover {
    color: var(--primary-color);
}

.website-detail-info-rate {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #d97706;
}

.website-detail-info-ok {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--success-color);
}

.resource-border-dashed {
    border-style: dashed !important;
}

.resource-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0;
}

.resource-pager li {
    list-style: none;
}

.resource-pager li a,
.resource-pager li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.85rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.875rem;
    line-height: 1;
    text-decoration: none;
    transition: var(--transition-base);
}

.resource-pager li a:hover {
    background-color: var(--bg-muted);
    color: var(--text-primary);
}

.resource-pager .active span,
.resource-pager .active a,
.resource-pager .current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.resource-pager .disabled span,
.resource-pager .disabled a {
    color: rgba(100, 116, 139, 0.45);
    cursor: not-allowed;
    background-color: var(--bg-card);
}

.resource-pager .disabled a:hover {
    background-color: var(--bg-card);
    color: rgba(100, 116, 139, 0.45);
}

.resource-pager .visible-xs.active .num {
    min-width: auto;
    padding: 0 0.9rem;
}

.resource-pager .visible-xs {
    display: none;
}

.resource-pager .hidden-xs {
    display: inline-flex;
}


.article-content {
    font-size: 1rem;
    color: var(--text-primary);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: var(--text-primary);
    font-weight: 700;
    margin: 0.625rem 0;
    line-height: 1.4;
}

.article-content .resource-article-subtitle {
    font-size: 1.5rem;
}

.article-content p,
.article-content li,
.article-content blockquote {
    line-height: 1.85;
    color: var(--text-muted);
}

.article-content p {
    margin: 0.85rem 0;
}

.article-content ul,
.article-content ol {
    padding-left: 1.25rem;
    margin: 1rem 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.25rem 0;
    border-radius: 0.75rem;
}

.article-content a {
    color: var(--primary-color);
}

.article-content blockquote {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--primary-color);
    background-color: var(--bg-muted);
    border-radius: 0.5rem;
}

.article-content pre {
    position: relative;
    overflow-x: auto;
    border-radius: 0.75rem;
    background-color: rgba(15, 23, 42, 0.95);
    padding: 1rem 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #f8fafc;
    margin: 1rem 0;
}

.article-content .resource-code-copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 9999px;
    background-color: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-base);
}

.article-content .resource-code-copy-btn:hover {
    background-color: rgba(37, 99, 235, 0.22);
    border-color: rgba(96, 165, 250, 0.55);
    color: #fff;
}

.article-content .resource-code-copy-btn.resource-is-copied {
    background-color: rgba(22, 163, 74, 0.22);
    border-color: rgba(74, 222, 128, 0.45);
    color: #dcfce7;
}

.article-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.article-content code {
    background-color: rgba(148, 163, 184, 0.14);
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    color: var(--text-primary);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.95rem;
}

.article-content th,
.article-content td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
}

.article-content th {
    background-color: var(--bg-muted);
    color: var(--text-primary);
}

.resource-stick {
    position: -webkit-sticky;
    position: sticky;
    top: 5rem;
    height: fit-content;
    width: 100%;
    align-self: start;
}

.resource-panel {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background-color: var(--bg-card);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.resource-nav-card {
    display: block;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background-color: var(--bg-card);
    color: var(--text-primary);
    transition: var(--transition-base);
    min-height: 100%;
}

.resource-nav-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-hover);
}

.resource-nav-card .resource-nav-tip {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.resource-rel-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.resource-rel-meta .resource-cat-label {
    color: var(--primary-color);
    font-weight: 500;
}

.resource-rel-list {
    display: grid;
    gap: 0.85rem;
}

.resource-rel-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.resource-rel-thumb {
    flex: 0 0 auto;
    width: 6.75rem;
    height: 4.75rem;
    border-radius: 0.65rem;
    overflow: hidden;
    background-color: var(--bg-muted);
}

.resource-rel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.resource-rel-body {
    min-width: 0;
    flex: 1 1 auto;
}

.resource-rel-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-rel-title a {
    color: var(--text-primary);
}

.resource-rel-foot {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.55rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.resource-news-sub {
    max-width: 42rem;
    font-size: 1rem;
    line-height: 1.75;
}

/* ========== 响应式断点集中区 ========== */
@media (width <= 991px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: static;
    }
    .resource-down-top {
        grid-template-columns: 1fr;
    }

    .resource-down-cover {
        max-width: 320px;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .resource-down-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .resource-filter-form {
        grid-template-columns: 1fr;
    }
    .website-detail-sidebar-inner {
        position: static;
    }
    .resource-stick {
        position: static;
    }
}

@media (width <= 767px) {
    .resource-hero .resource-hero-title {
        font-size: 2.2rem !important;
    }

    .resource-member-main {
        font-size: 1.75rem;
    }

    .resource-member-tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.82rem;
    }

    .resource-plan-card {
        padding: 1.25rem;
    }

    .resource-plan-price {
        font-size: 1.75rem;
    }

    .resource-member-title {
        font-size: 1.3rem;
    }

    .resource-vip {
        padding: 2rem 1.25rem;
        text-align: center;
    }

    .resource-vip .resource-vip-desc {
        max-width: 100%;
    }

    .resource-back-top-btn {
        right: 1rem;
        bottom: 1rem;
        width: 2.7rem;
        height: 2.7rem;
    }

    .resource-gallery-head {
        align-items: center;
    }

    .resource-gallery-track {
        gap: 0.65rem;
    }

    .resource-gallery-frame {
        width: calc((100% - 0.65rem) / 2);
    }
    .website-detail-brand {
        flex-direction: column;
        gap: 1rem;
    }

    .website-detail-title {
        font-size: 1.5rem;
    }

    .website-detail-panel,
    .website-detail-sidecard {
        padding: 1rem;
    }

    .website-detail-related-card,
    .website-detail-side-item {
        padding: 0.78rem;
    }
}

@media (width <= 575px) {
    .legal-sidebar,
    .legal-content {
        padding: 20px;
        border-radius: 18px;
    }

    .legal-nav-link {
        padding: 12px 14px;
    }
    #zhuiying-pop-box {
        width: calc(100vw - 1rem);
        max-height: calc(100vh - 1rem);
    }

    #zhuiying-pop-content,
    #zhuiying-pop-con {
        max-height: calc(100vh - 1rem);
    }

    #zhuiying-pop-close {
        top: 0.5rem;
        right: 0.5rem;
    }

    .resource-auth-modal {
        width: 100%;
    }

    .resource-auth-tabs {
        padding: 0.9rem 1rem 0;
    }

    .resource-auth-body {
        padding: 1rem;
    }

    .resource-auth-rotate-layer {
        padding: 1rem;
    }

    .resource-auth-rotate-dialog {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
    }

    .resource-auth-inline,
    .resource-auth-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .resource-rotate-stage {
        min-height: 12.25rem;
    }

    .resource-rotate-dial {
        width: 10.75rem;
        height: 10.75rem;
    }

    .resource-rotate-image {
        width: 9rem;
    }

    .resource-rotate-slider {
        gap: 0.55rem;
    }

    .resource-rotate-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .resource-rotate-note,
    .resource-rotate-refresh {
        width: 100%;
        text-align: center;
    }

    .resource-validate-img,
    .resource-auth-send {
        width: 100%;
    }
    .resource-item,
    .resource-link {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
        min-height: 3.5rem;
    }

    .resource-item .resource-item-icon {
        width: 2.8rem;
        height: 2.8rem;
    }

    .resource-link .resource-link-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.9rem;
    }

    .resource-item .resource-item-body .resource-item-title,
    .resource-link .resource-item-body .resource-item-title {
        font-size: 0.8rem;
    }

    .resource-item .resource-item-body .resource-item-desc,
    .resource-link .resource-item-body .resource-item-desc {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
    }
    .resource-down-card {
        padding: 1rem;
    }

    .resource-down-title {
        font-size: 1.45rem;
    }

    .resource-down-meta {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .resource-down-actions {
        flex-direction: column;
    }

    .resource-down-actions .resource-dbtn-main,
    .resource-down-actions .resource-dbtn-lite,
    .resource-down-actions form {
        width: 100%;
    }
    .resource-filter {
        padding: 1rem;
    }

    .resource-gallery-head {
        flex-wrap: wrap;
    }

    .resource-gallery-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .resource-side-item {
        gap: 0.7rem;
    }

    .resource-side-item .resource-item-thumb {
        width: 5rem;
        height: 3.5rem;
    }

    .resource-detail-title {
        font-size: 1.55rem;
    }

    .resource-detail-hero {
        gap: 0.85rem;
    }

    .resource-gallery-frame {
        width: 100%;
    }

    .resource-detail-actions {
        align-items: stretch;
    }

    .resource-dbtn-main,
    .resource-detail-btn-sub,
    .resource-dbtn-lite {
        width: 100%;
    }
    .resource-pager {
        gap: 0.35rem;
    }

    .resource-pager li a,
    .resource-pager li span {
        min-width: 2rem;
        height: 2rem;
        padding: 0 0.7rem;
        font-size: 0.8rem;
    }

    .resource-pager .hidden-xs {
        display: none;
    }

    .resource-pager .visible-xs {
        display: inline-flex;
    }

    .resource-head .display-6 {
        font-size: 1.8rem;
    }

    .resource-tutorial .resource-tut-footer {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .resource-rel-thumb {
        width: 5.75rem;
        height: 4.1rem;
    }
}

@media (width >= 768px) {
    .resource-tutorial {
        flex-direction: row;
    }

    .resource-tutorial .resource-tut-thumb {
        width: 10rem;
        height: 6.75rem;
    }

}

@media (width >= 768px) and (width <= 991px) {
    .resource-btn-main {
        font-size: 0.8125rem;
    }

    .resource-btn-main {
        padding: 0.5rem 0.85rem;
    }
    .resource-hero .resource-hero-title {
        font-size: 2.75rem !important;
    }
}

@media (width >= 992px) {
    .resource-detail-hero {
        grid-template-columns: minmax(0, 25rem) minmax(0, 1fr);
        gap: 1.5rem;
        align-items: stretch;
    }

    .resource-detail-media {
        height: 100%;
    }

    .resource-detail-cover {
        height: 100%;
        min-height: 100%;
    }

    .resource-detail-cover img,
    .resource-detail-fb {
        height: 100%;
        aspect-ratio: auto;
    }
    .website-detail-hero {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .website-detail-layout {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: 1.5rem;
    }

    .website-detail-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ========== 顶部导航专用断点覆盖 ========== */
@media (width <= 1023px) {
    body.resource-nav-open {
        overflow: hidden;
    }

    .resource-nav-mobile-tools {
        display: flex !important;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        margin-left: 0;
    }

    .resource-nav-side {
        display: none !important;
    }

    .resource-navbar-custom .navbar-toggler,
    .resource-nav-toggle {
        display: inline-flex !important;
    }

    .resource-navbar-custom {
        padding: 0.625rem 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .resource-nav-shell {
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
    }

    .resource-nav-head {
        position: relative;
        width: 100%;
        max-width: 100%;
        padding-right: 5.6rem;
    }

    .resource-navbar-custom .resource-brand {
        max-width: 100%;
        gap: 0 !important;
    }

    .resource-navbar-custom .resource-brand-logo {
        width: 2.2rem;
        height: 2.2rem;
    }

    .resource-nav-panel {
        position: fixed;
        inset: 0;
        display: block !important;
        visibility: hidden;
        pointer-events: none;
        z-index: 1048;
        flex: none;
    }

    .resource-nav-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(15, 23, 42, 0.28);
        opacity: 0;
        transition: opacity 0.24s ease;
    }

    .resource-nav-panel.is-open {
        visibility: visible;
        pointer-events: auto;
    }

    .resource-nav-panel.is-open::before {
        opacity: 1;
    }

    .resource-nav-drawer {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: min(20rem, 82vw);
        min-width: 18rem;
        max-width: 82vw;
        height: 100dvh;
        background: #ffffff;
        box-shadow: -20px 0 40px rgba(15, 23, 42, 0.16);
        transform: translateX(100%);
        transition: transform 0.24s ease;
        overflow-y: auto;
    }

    .resource-nav-panel.is-open .resource-nav-drawer {
        transform: translateX(0);
    }

    .resource-nav-body {
        display: flex;
        flex-direction: column;
        min-height: 100%;
        padding: 1rem;
        gap: 1rem;
        border-top: 0;
    }

    .resource-navbar-custom .resource-nav-main-list {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        width: 100%;
        margin-bottom: 0;
    }

    .resource-navbar-custom .resource-nav-main-list .nav-item {
        width: 100%;
    }

    .resource-navbar-custom .navbar-nav .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.72rem 0.85rem;
        border-radius: 0.7rem;
    }
}

@media (width >= 1024px) {
    .resource-nav-drop:hover .resource-nav-user-menu,
    .resource-nav-drop:focus-within .resource-nav-user-menu {
        display: block;
    }

    .resource-nav-mobile-tools {
        display: none !important;
    }

    .resource-nav-side {
        display: flex !important;
    }

    .resource-nav-shell {
        flex-wrap: nowrap;
        gap: 1rem;
    }

    .resource-nav-head {
        width: auto;
        flex: 0 0 auto;
        padding-right: 0;
    }

    .resource-nav-panel {
        display: flex !important;
        flex: 1 1 auto;
        position: static;
        inset: auto;
        visibility: visible;
        pointer-events: auto;
        z-index: auto;
    }

    .resource-nav-panel::before {
        display: none;
    }

    .resource-nav-drawer {
        display: flex;
        flex: 1 1 auto;
        position: static;
        width: auto;
        min-width: 0;
        max-width: none;
        height: auto;
        background: transparent;
        box-shadow: none;
        transform: none;
        overflow: visible;
    }

    .resource-nav-body {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0;
    }

    .resource-navbar-custom .resource-nav-main-list {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        flex-wrap: nowrap !important;
        margin-bottom: 0;
    }

    .resource-nav-side {
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
    }

    .resource-nav-search {
        width: 13.5rem;
    }
}

@media (width >= 1200px) {
    .resource-nav-search {
        width: 16rem;
    }
}
