/* ============================================
   万物 (island) — 收藏社区模板样式
   ============================================ */

/* ---------- CSS Variables ---------- */
:where(html.island-front) {
    --ww-primary: #e07a5f;
    --ww-primary-light: #f4a98d;
    --ww-primary-dark: #c4624a;
    --ww-dark: #2d3436;
    --ww-text: #2d3436;
    --ww-text-secondary: #7c8a97;
    --ww-bg: #faf9f6;
    --ww-card: #ffffff;
    --ww-border: #e8e6e1;
    --ww-warm: #f2cc8f;
    --ww-sage: #81b29a;
    --ww-success: #4caf50;
    --ww-error: #e74c3c;
    --ww-radius: 12px;
    --ww-radius-sm: 8px;
    --ww-radius-lg: 20px;
    --ww-shadow: 0 2px 12px rgba(0,0,0,0.06);
    --ww-shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
    --ww-transition: 0.3s ease;
    --ww-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
    --ww-max-width: 1388px;
}

/* ---------- Reset & Base ---------- */
:where(html.island-front),:where(html.island-front) *, :where(html.island-front)::before,:where(html.island-front) *::before, :where(html.island-front)::after,:where(html.island-front) *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:where(html.island-front),:where(html.island-front) * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

:where(html.island-front) {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

:where(html.island-front) body {
    font-family: var(--ww-font);
    color: var(--ww-text);
    background: var(--ww-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- Global Scrollbar ---------- */
:where(html.island-front),:where(html.island-front) * {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.12) transparent;
}
:where(html.island-front)::-webkit-scrollbar,:where(html.island-front) *::-webkit-scrollbar { width: 5px; height: 5px; }
:where(html.island-front)::-webkit-scrollbar-track,:where(html.island-front) *::-webkit-scrollbar-track { background: transparent; }
:where(html.island-front)::-webkit-scrollbar-thumb,:where(html.island-front) *::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 3px; }
:where(html.island-front)::-webkit-scrollbar-thumb:hover,:where(html.island-front) *::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.22); }

:where(html.island-front) a {
    color: inherit;
    text-decoration: none;
    transition: color var(--ww-transition);
}

:where(html.island-front) a:hover {
    color: var(--ww-primary);
}

:where(html.island-front) img {
    max-width: 100%;
    height: auto;
    display: block;
}

:where(html.island-front) ul, :where(html.island-front) ol {
    list-style: none;
}

:where(html.island-front) button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

:where(html.island-front) input, :where(html.island-front) textarea, :where(html.island-front) select {
    font-family: inherit;
    outline: none;
}

/* ---------- Utilities ---------- */
:where(html.island-front) .ww-container {
    max-width: var(--ww-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

:where(html.island-front) .ww-section {
    padding: 80px 0;
}

:where(html.island-front) .ww-section-header {
    text-align: center;
    margin-bottom: 50px;
}

:where(html.island-front) .ww-section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ww-primary);
    margin-bottom: 12px;
}

:where(html.island-front) .ww-section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--ww-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

:where(html.island-front) .ww-section-desc {
    font-size: 15px;
    color: var(--ww-text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

:where(html.island-front) .ww-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--ww-transition);
    white-space: nowrap;
}

:where(html.island-front) .ww-btn-primary {
    background: var(--ww-primary);
    color: #fff;
}

:where(html.island-front) .ww-btn-primary:hover {
    background: var(--ww-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224,122,95,0.3);
}

:where(html.island-front) .ww-btn-outline {
    border: 1.5px solid var(--ww-border);
    color: var(--ww-text);
    background: var(--ww-card);
}

:where(html.island-front) .ww-btn-outline:hover {
    border-color: var(--ww-primary);
    color: var(--ww-primary);
}

/* ---------- Page Loader ---------- */
:where(html.island-front) .ww-loader {
    position: fixed;
    inset: 0;
    background: var(--ww-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

:where(html.island-front) .ww-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

:where(html.island-front) .ww-loader-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ww-primary);
    margin: 0 5px;
    animation: wwBounce 1.4s infinite ease-in-out both;
}

:where(html.island-front) .ww-loader-dot:nth-child(1) { animation-delay: -0.32s; }
:where(html.island-front) .ww-loader-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes wwBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ---------- Header ---------- */
:where(html.island-front) .ww-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--ww-transition);
}

:where(html.island-front) .ww-header.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--ww-border);
    padding: 12px 0;
}

:where(html.island-front) .ww-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

:where(html.island-front) .ww-logo img {
    height: 36px;
    width: auto;
}

:where(html.island-front) .ww-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

:where(html.island-front) .ww-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ww-text-secondary);
    position: relative;
    padding: 4px 0;
}

:where(html.island-front) .ww-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ww-primary);
    transition: width var(--ww-transition);
}

:where(html.island-front) .ww-nav-link:hover,
:where(html.island-front) .ww-nav-link.active {
    color: var(--ww-text);
}

:where(html.island-front) .ww-nav-link:hover::after,
:where(html.island-front) .ww-nav-link.active::after {
    width: 100%;
}

:where(html.island-front) .ww-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

:where(html.island-front) .ww-header-search {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--ww-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--ww-transition);
}

:where(html.island-front) .ww-header-search:hover {
    color: var(--ww-primary);
}

:where(html.island-front) .ww-header-login {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 50px;
    background: var(--ww-primary);
    color: #fff;
    transition: all var(--ww-transition);
}

:where(html.island-front) .ww-header-login:hover {
    background: var(--ww-primary-dark);
    color: #fff;
}

:where(html.island-front) .ww-header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 50px;
    border: 1.5px solid var(--ww-border);
    cursor: pointer;
    transition: all var(--ww-transition);
    background: none;
    font: inherit;
    color: inherit;
}

:where(html.island-front) .ww-header-user:hover {
    border-color: var(--ww-primary);
}

:where(html.island-front) .ww-header-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

:where(html.island-front) .ww-header-avatar-placeholder {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ww-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

:where(html.island-front) .ww-header-username {
    font-size: 13px;
    font-weight: 500;
}

:where(html.island-front) .ww-header-user-wrap {
    position: relative;
}

:where(html.island-front) .ww-header-user-arrow {
    transition: transform 0.2s ease;
}

:where(html.island-front) .ww-header-user.active .ww-header-user-arrow {
    transform: rotate(180deg);
}

:where(html.island-front) .ww-header-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--ww-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
    padding: 6px 0;
}

:where(html.island-front) .ww-header-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

:where(html.island-front) .ww-header-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--ww-text);
    text-decoration: none;
    transition: background 0.15s ease;
}

:where(html.island-front) .ww-header-dropdown-item:hover {
    background: var(--ww-bg);
}

:where(html.island-front) .ww-header-dropdown-item svg {
    flex-shrink: 0;
    opacity: 0.6;
}

:where(html.island-front) .ww-header-dropdown-divider {
    height: 1px;
    background: var(--ww-border);
    margin: 4px 0;
}

:where(html.island-front) .ww-header-dropdown-logout {
    color: var(--ww-danger, #e53e3e);
}

:where(html.island-front) .ww-header-dropdown-logout:hover {
    background: #fef2f2;
}

:where(html.island-front) .ww-mobile-toggle {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: var(--ww-text);
}

:where(html.island-front) .ww-mobile-toggle svg {
    width: 22px;
    height: 22px;
}

/* ---------- Hero ---------- */
:where(html.island-front) .ww-hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

:where(html.island-front) .ww-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1px solid var(--ww-border);
    opacity: 0.5;
}

:where(html.island-front) .ww-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px solid var(--ww-border);
    opacity: 0.3;
}

:where(html.island-front) .ww-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

:where(html.island-front) .ww-hero-text {
    max-width: 500px;
}

:where(html.island-front) .ww-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ww-text-secondary);
    margin-bottom: 24px;
}

:where(html.island-front) .ww-hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ww-sage);
}

:where(html.island-front) .ww-hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ww-dark);
    margin-bottom: 20px;
}

:where(html.island-front) .ww-hero-title span {
    color: var(--ww-primary);
}

:where(html.island-front) .ww-hero-desc {
    font-size: 16px;
    color: var(--ww-text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

:where(html.island-front) .ww-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

:where(html.island-front) .ww-hero-visual {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 30px;
}

:where(html.island-front) .ww-hero-card:nth-child(1),
:where(html.island-front) .ww-hero-card:nth-child(3) {
    transform: translateY(-30px);
}

:where(html.island-front) .ww-hero-card:nth-child(n+5) {
    position: absolute;
    visibility: hidden;
    pointer-events: none;
}

:where(html.island-front) .ww-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--ww-radius);
    background: var(--ww-card);
    padding: 16px;
    box-shadow: var(--ww-shadow);
    border: 1px solid var(--ww-border);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease;
    z-index: 1;
}

:where(html.island-front) .ww-hero-card-fading {
    transform: scale(0.85);
    opacity: 0;
}

:where(html.island-front) .ww-hero-card-inner {
}

:where(html.island-front) .ww-hero-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--ww-bg);
    border-radius: var(--ww-radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
}

:where(html.island-front) .ww-hero-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-front) .ww-hero-card-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

:where(html.island-front) .ww-hero-card-meta {
    font-size: 11px;
    color: var(--ww-text-secondary);
}

/* ---------- Masonry / Waterfall ---------- */
:where(html.island-front) .ww-masonry {
    display: flex;
    gap: 20px;
}

:where(html.island-front) .ww-masonry-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

:where(html.island-front) .ww-masonry-item {
    background: var(--ww-card);
    border-radius: var(--ww-radius);
    overflow: hidden;
    border: 1px solid var(--ww-border);
    transition: all var(--ww-transition);
}

:where(html.island-front) .ww-masonry-item:hover {
    box-shadow: var(--ww-shadow-hover);
    transform: translateY(-3px);
}

:where(html.island-front) .ww-masonry-img {
    width: 100%;
    display: block;
}

:where(html.island-front) .ww-masonry-img-wrap {
    position: relative;
    overflow: hidden;
}

:where(html.island-front) .ww-masonry-marker {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    line-height: 1.5;
    z-index: 1;
}

:where(html.island-front) .ww-masonry-marker--top {
    background: #ff4d4f;
    color: #fff;
}

:where(html.island-front) .ww-masonry-marker--recommend {
    background: var(--ww-primary, #1677ff);
    color: #fff;
}

:where(html.island-front) .ww-masonry-marker--featured {
    background: #fa8c16;
    color: #fff;
}

:where(html.island-front) .ww-masonry-type-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    line-height: 1.6;
    z-index: 1;
}

/* 视频/音乐封面右上角播放标识：只做指示，点击仍走卡片本身的弹窗/详情 */
:where(html.island-front) .ww-cover-play {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    pointer-events: none;
    z-index: 2;
}

:where(html.island-front) .ww-cover-play svg {
    width: 14px;
    height: 14px;
    margin-left: 2px;
}

:where(html.island-front) .ww-cover-play--sm {
    width: 24px;
    height: 24px;
}

:where(html.island-front) .ww-cover-play--sm svg {
    width: 12px;
    height: 12px;
    margin-left: 1px;
}

:where(html.island-front) .ww-masonry-body {
    padding: 14px;
}

:where(html.island-front) .ww-masonry-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

:where(html.island-front) .ww-masonry-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-masonry-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

:where(html.island-front) .ww-masonry-author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

:where(html.island-front) .ww-masonry-likes {
    display: flex;
    align-items: center;
    gap: 4px;
}

:where(html.island-front) .ww-masonry-likes svg {
    width: 14px;
    height: 14px;
}

/* ---------- Latest Items ---------- */
:where(html.island-front) .ww-latest-new {
    background: var(--ww-bg);
}

:where(html.island-front) .ww-latest-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 36px;
}

:where(html.island-front) .ww-latest-header .ww-section-tag {
    margin-bottom: 8px;
}

:where(html.island-front) .ww-latest-header .ww-section-title {
    margin-bottom: 8px;
}

:where(html.island-front) .ww-latest-header .ww-section-desc {
    margin: 0;
    text-align: left;
}

:where(html.island-front) .ww-latest-view-all {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ww-primary);
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 8px;
}

:where(html.island-front) .ww-latest-view-all:hover {
    color: var(--ww-primary-dark);
}

:where(html.island-front) .ww-latest-stream {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

:where(html.island-front) .ww-latest-item {
    background: var(--ww-card);
    border-radius: var(--ww-radius);
    overflow: hidden;
    border: 1px solid var(--ww-border);
    transition: all var(--ww-transition);
    display: block;
}

:where(html.island-front) .ww-latest-item:hover {
    box-shadow: var(--ww-shadow-hover);
    transform: translateY(-3px);
    color: inherit;
}

:where(html.island-front) .ww-latest-item-lg {
    grid-column: span 1;
}

:where(html.island-front) .ww-latest-item-lg .ww-latest-item-img {
    aspect-ratio: 4/3;
}

:where(html.island-front) .ww-latest-item-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--ww-bg);
    overflow: hidden;
    position: relative;
}

:where(html.island-front) .ww-latest-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-front) .ww-latest-item-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ww-border);
}

:where(html.island-front) .ww-latest-item-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background: var(--ww-primary);
    border-radius: 50px;
}

:where(html.island-front) .ww-latest-item-body {
    padding: 14px;
}

:where(html.island-front) .ww-latest-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

:where(html.island-front) .ww-latest-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ww-text-secondary);
    margin-bottom: 8px;
}

:where(html.island-front) .ww-latest-item-cat {
    padding: 2px 8px;
    background: var(--ww-bg);
    border-radius: 50px;
    font-size: 11px;
    color: var(--ww-primary);
    font-weight: 500;
}

:where(html.island-front) .ww-latest-item-time {
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-latest-item-user {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-latest-item-user img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

:where(html.island-front) .ww-latest-item-user-default {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ww-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

:where(html.island-front) .ww-latest-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--ww-text-secondary);
    font-size: 14px;
}

/* ---------- Footer ---------- */
:where(html.island-front) .ww-footer {
    background: var(--ww-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

:where(html.island-front) .ww-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

:where(html.island-front) .ww-footer-brand p {
    font-size: 13px;
    line-height: 1.8;
    margin-top: 16px;
    color: rgba(255,255,255,0.5);
}

:where(html.island-front) .ww-footer-logo img {
    height: 32px;
}

:where(html.island-front) .ww-footer-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

:where(html.island-front) .ww-footer-links li {
    margin-bottom: 10px;
}

:where(html.island-front) .ww-footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    transition: color var(--ww-transition);
}

:where(html.island-front) .ww-footer-links a:hover {
    color: var(--ww-primary);
}

:where(html.island-front) .ww-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

:where(html.island-front) .ww-footer-lang {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

:where(html.island-front) .ww-footer-lang-btn {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    padding: 2px 8px;
    border-radius: 4px;
    transition: all var(--ww-transition);
}

:where(html.island-front) .ww-footer-lang-btn:hover,
:where(html.island-front) .ww-footer-lang-btn.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

:where(html.island-front) .ww-footer-lang-sep {
    color: rgba(255,255,255,0.2);
    font-size: 12px;
}

:where(html.island-front) .ww-footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

:where(html.island-front) .ww-footer-social-item {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all var(--ww-transition);
}

:where(html.island-front) .ww-footer-social-item:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

:where(html.island-front) .ww-footer-qr {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    width: 130px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 100;
}

:where(html.island-front) .ww-footer-qr::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #fff;
}

:where(html.island-front) .ww-footer-social-item:hover .ww-footer-qr {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

:where(html.island-front) .ww-footer-qr img {
    width: 110px;
    height: 110px;
    border-radius: 4px;
    object-fit: cover;
    margin-bottom: 4px;
}

:where(html.island-front) .ww-footer-qr span {
    display: block;
    font-size: 11px;
    color: var(--ww-text);
    font-weight: 500;
}

/* ---------- Toast ---------- */
:where(html.island-front) .ww-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 24px;
    background: var(--ww-dark);
    color: #fff;
    border-radius: 50px;
    font-size: 13px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

:where(html.island-front) .ww-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------- Feature Steps ---------- */
:where(html.island-front) .ww-features {
    background: var(--ww-bg);
}

:where(html.island-front) .ww-fs-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}

:where(html.island-front) .ww-fs-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

:where(html.island-front) .ww-fs-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

:where(html.island-front) .ww-fs-connector {
    position: absolute;
    top: 24px;
    left: calc(50% + 24px);
    width: calc(100% - 48px);
    height: 2px;
    background: var(--ww-border);
    z-index: 1;
}

:where(html.island-front) .ww-fs-step:last-child .ww-fs-connector {
    display: none;
}

:where(html.island-front) .ww-fs-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

:where(html.island-front) .ww-fs-icon {
    margin-bottom: 14px;
}

:where(html.island-front) .ww-fs-body h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
}

:where(html.island-front) .ww-fs-body p {
    font-size: 13px;
    color: var(--ww-text-secondary);
    line-height: 1.7;
    max-width: 260px;
}

/* ---------- Collection Moments ---------- */
:where(html.island-front) .ww-moments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

:where(html.island-front) .ww-moment-card {
    position: relative;
    border-radius: var(--ww-radius);
    overflow: hidden;
    aspect-ratio: 1;
    text-decoration: none;
    color: inherit;
    display: block;
}

:where(html.island-front) .ww-moment-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

:where(html.island-front) .ww-moment-card:hover img {
    transform: scale(1.05);
}

:where(html.island-front) .ww-moment-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45,52,54,0.4);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    transition: background var(--ww-transition);
}

:where(html.island-front) .ww-moment-card:hover .ww-moment-overlay {
    background: rgba(45,52,54,0.6);
}

:where(html.island-front) .ww-moment-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

:where(html.island-front) .ww-moment-user {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

:where(html.island-front) .ww-moment-user img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

/* ---------- Join Banner ---------- */
:where(html.island-front) .ww-join-banner {
    padding: 80px 0;
    background: var(--ww-bg);
}

:where(html.island-front) .ww-join-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

:where(html.island-front) .ww-join-left h2 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

:where(html.island-front) .ww-join-left h2 span {
    color: var(--ww-primary);
}

:where(html.island-front) .ww-join-left > p {
    font-size: 15px;
    color: var(--ww-text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

:where(html.island-front) .ww-join-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

:where(html.island-front) .ww-join-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--ww-dark);
}

:where(html.island-front) .ww-join-stat-label {
    font-size: 12px;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-join-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--ww-border);
}

:where(html.island-front) .ww-join-actions {
    display: flex;
    gap: 12px;
}

:where(html.island-front) .ww-join-right {
    position: relative;
}

:where(html.island-front) .ww-join-visual {
    position: relative;
    height: 280px;
}

:where(html.island-front) .ww-join-card {
    position: absolute;
    border-radius: var(--ww-radius);
    overflow: hidden;
    box-shadow: var(--ww-shadow-hover);
    transition: transform var(--ww-transition);
}

:where(html.island-front) .ww-join-card:hover {
    transform: translateY(-4px);
}

:where(html.island-front) .ww-join-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-front) .ww-join-card-1 {
    width: 180px;
    height: 140px;
    top: 0;
    left: 10%;
    z-index: 3;
}

:where(html.island-front) .ww-join-card-2 {
    width: 160px;
    height: 120px;
    top: 30px;
    right: 5%;
    z-index: 2;
}

:where(html.island-front) .ww-join-card-3 {
    width: 170px;
    height: 130px;
    bottom: 50px;
    left: 25%;
    z-index: 1;
}

/* ---------- Search Overlay ---------- */
:where(html.island-front) .ww-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

:where(html.island-front) .ww-search-overlay.open {
    opacity: 1;
    visibility: visible;
}

:where(html.island-front) .ww-search-overlay-inner {
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

:where(html.island-front) .ww-search-overlay.open .ww-search-overlay-inner {
    transform: translateY(0);
}

:where(html.island-front) .ww-search-overlay-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 6px 6px 6px 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

:where(html.island-front) .ww-search-overlay-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--ww-text);
    background: transparent;
    line-height: 1.5;
}

:where(html.island-front) .ww-search-overlay-input::placeholder {
    color: #aaa;
}

:where(html.island-front) .ww-search-overlay-submit {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--ww-primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity var(--ww-transition);
}

:where(html.island-front) .ww-search-overlay-submit:hover {
    opacity: 0.85;
}

:where(html.island-front) .ww-search-overlay-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--ww-transition);
}

:where(html.island-front) .ww-search-overlay-close:hover {
    opacity: 1;
}

/* ---------- Search Results Page ---------- */
:where(html.island-front) .ww-search-main {
    padding-top: 110px;
    min-height: 60vh;
}

:where(html.island-front) .ww-search-header {
    margin-bottom: 32px;
}

:where(html.island-front) .ww-search-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--ww-text);
    margin-bottom: 16px;
}

:where(html.island-front) .ww-search-keyword {
    color: var(--ww-primary);
}

:where(html.island-front) .ww-search-count {
    font-size: 14px;
    font-weight: 400;
    color: var(--ww-text-light);
    margin-left: 8px;
}

:where(html.island-front) .ww-search-inline {
    display: flex;
    max-width: 480px;
    border: 1.5px solid var(--ww-border);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color var(--ww-transition);
}

:where(html.island-front) .ww-search-inline:focus-within {
    border-color: var(--ww-primary);
}

:where(html.island-front) .ww-search-inline-input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    color: var(--ww-text);
}

:where(html.island-front) .ww-search-inline-btn {
    padding: 10px 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ww-text-light);
    transition: color var(--ww-transition);
}

:where(html.island-front) .ww-search-inline-btn:hover {
    color: var(--ww-primary);
}

:where(html.island-front) .ww-search-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

:where(html.island-front) .ww-search-card {
    display: block;
    background: var(--ww-card);
    border-radius: var(--ww-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--ww-border);
    transition: all var(--ww-transition);
}

:where(html.island-front) .ww-search-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

:where(html.island-front) .ww-search-card-img {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: #f5f4f1;
}

:where(html.island-front) .ww-search-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

:where(html.island-front) .ww-search-card:hover .ww-search-card-img img {
    transform: scale(1.05);
}

:where(html.island-front) .ww-search-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ww-text-lighter);
}

:where(html.island-front) .ww-search-card-body {
    padding: 14px;
}

:where(html.island-front) .ww-search-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ww-text);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(html.island-front) .ww-search-card-desc {
    font-size: 12px;
    color: var(--ww-text-light);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

:where(html.island-front) .ww-search-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ww-text-lighter);
}

:where(html.island-front) .ww-search-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

:where(html.island-front) .ww-search-card-author span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(html.island-front) .ww-search-card-avatar,
:where(html.island-front) .ww-search-card-avatar-ph {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

:where(html.island-front) .ww-search-card-avatar-ph {
    background: var(--ww-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ww-text-lighter);
}

:where(html.island-front) .ww-search-card-time {
    flex-shrink: 0;
    margin-left: 8px;
}

:where(html.island-front) .ww-search-empty {
    text-align: center;
    padding: 60px 20px;
}

:where(html.island-front) .ww-search-empty-icon {
    color: var(--ww-text-lighter);
    margin-bottom: 16px;
}

:where(html.island-front) .ww-search-empty-text {
    font-size: 16px;
    color: var(--ww-text-light);
    margin-bottom: 8px;
}

:where(html.island-front) .ww-search-empty-text span {
    color: var(--ww-primary);
    font-weight: 500;
}

:where(html.island-front) .ww-search-empty-hint {
    font-size: 13px;
    color: var(--ww-text-lighter);
    margin-bottom: 20px;
}

:where(html.island-front) .ww-search-empty-btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 50px;
    background: var(--ww-primary);
    color: #fff;
    text-decoration: none;
    transition: background var(--ww-transition);
}

:where(html.island-front) .ww-search-empty-btn:hover {
    background: var(--ww-primary-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    :where(html.island-front) .ww-masonry { flex-wrap: wrap; }
    :where(html.island-front) .ww-masonry-col { flex: 1 1 calc(33.333% - 14px); min-width: calc(33.333% - 14px); }
    :where(html.island-front) .ww-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    :where(html.island-front) .ww-hero-visual { max-width: 500px; }
    :where(html.island-front) .ww-footer-grid { grid-template-columns: 1fr 1fr; }
    :where(html.island-front) .ww-moments-grid { grid-template-columns: repeat(3, 1fr); }
    :where(html.island-front) .ww-join-inner { grid-template-columns: 1fr; gap: 32px; }
    :where(html.island-front) .ww-search-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    :where(html.island-front) .ww-section { padding: 50px 0; }
    :where(html.island-front) .ww-section-title { font-size: 26px; }
    :where(html.island-front) .ww-hero { padding: 100px 0 50px; }
    :where(html.island-front) .ww-hero-title { font-size: 34px; }
    :where(html.island-front) .ww-masonry { flex-wrap: wrap; }
    :where(html.island-front) .ww-masonry-col { flex: 1 1 calc(50% - 10px); min-width: calc(50% - 10px); }
    :where(html.island-front) .ww-nav { display: none; }
    :where(html.island-front) .ww-mobile-toggle { display: flex; }
    :where(html.island-front) .ww-header-login { display: none; }
    :where(html.island-front) .ww-footer-grid { grid-template-columns: 1fr; gap: 24px; }
    :where(html.island-front) .ww-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    :where(html.island-front) .ww-moments-grid { grid-template-columns: repeat(2, 1fr); }
    :where(html.island-front) .ww-back-top { right: 16px; bottom: 16px; width: 36px; height: 36px; }
    :where(html.island-front) .ww-join-inner { grid-template-columns: 1fr; gap: 32px; }
    :where(html.island-front) .ww-join-left h2 { font-size: 24px; }
    :where(html.island-front) .ww-join-right { display: none; }
    :where(html.island-front) .ww-search-grid { grid-template-columns: repeat(2, 1fr); }
    :where(html.island-front) .ww-search-main { padding-top: 90px; }
}

@media (max-width: 480px) {
    :where(html.island-front) .ww-container { padding: 0 16px; }
    :where(html.island-front) .ww-hero-title { font-size: 28px; }
    :where(html.island-front) .ww-hero-visual { grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 20px; }
    :where(html.island-front) .ww-hero-card:nth-child(1), :where(html.island-front) .ww-hero-card:nth-child(3) { transform: translateY(-20px); }
    :where(html.island-front) .ww-masonry-col { flex: 1 1 100%; min-width: 100%; }
    :where(html.island-front) .ww-moments-grid { grid-template-columns: repeat(2, 1fr); }
    :where(html.island-front) .ww-join-stats { flex-wrap: wrap; gap: 16px; }
    :where(html.island-front) .ww-join-stat-num { font-size: 22px; }
    :where(html.island-front) .ww-join-stat-divider { display: none; }
    :where(html.island-front) .ww-join-actions { flex-direction: column; align-items: stretch; }
    :where(html.island-front) .ww-join-actions .ww-btn { text-align: center; justify-content: center; }
    :where(html.island-front) .ww-footer-social { flex-wrap: wrap; }
    :where(html.island-front) .ww-search-grid { grid-template-columns: 1fr; }
    :where(html.island-front) .ww-search-title { font-size: 18px; }
}

/* ---------- Mobile Nav ---------- */
:where(html.island-front) .ww-mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--ww-transition);
}

:where(html.island-front) .ww-mobile-nav.open {
    opacity: 1;
    visibility: visible;
}

:where(html.island-front) .ww-mobile-nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--ww-card);
    padding: 24px;
    transform: translateX(100%);
    transition: transform var(--ww-transition);
    overflow-y: auto;
}

:where(html.island-front) .ww-mobile-nav.open .ww-mobile-nav-panel {
    transform: translateX(0);
}

:where(html.island-front) .ww-mobile-nav-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-bottom: 20px;
    color: var(--ww-text);
}

:where(html.island-front) .ww-mobile-nav-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    margin-bottom: 16px;
    background: var(--ww-bg);
    border-radius: var(--ww-radius-sm);
}

:where(html.island-front) .ww-mobile-nav-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

:where(html.island-front) .ww-mobile-nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

:where(html.island-front) .ww-mobile-nav-avatar-ph {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ww-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ww-text-light);
}

:where(html.island-front) .ww-mobile-nav-username {
    font-size: 15px;
    font-weight: 500;
    color: var(--ww-text);
}

:where(html.island-front) .ww-mobile-nav-msg {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--ww-text-light);
    text-decoration: none;
    border-radius: var(--ww-radius-sm);
    transition: all var(--ww-transition);
}

:where(html.island-front) .ww-mobile-nav-msg:hover {
    background: var(--ww-card);
    color: var(--ww-primary);
}

:where(html.island-front) .ww-mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

:where(html.island-front) .ww-mobile-nav-links a {
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--ww-radius-sm);
    color: var(--ww-text);
    transition: all var(--ww-transition);
}

:where(html.island-front) .ww-mobile-nav-links a:hover {
    background: var(--ww-bg);
    color: var(--ww-primary);
}

:where(html.island-front) .ww-mobile-nav-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--ww-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

:where(html.island-front) .ww-mobile-nav-user {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--ww-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

:where(html.island-front) .ww-mobile-nav-user-link {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--ww-text);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s ease;
}

:where(html.island-front) .ww-mobile-nav-user-link:hover {
    background: var(--ww-bg);
}

:where(html.island-front) .ww-mobile-nav-logout {
    color: var(--ww-danger, #e53e3e);
}

/* ---------- Utility Modifiers ---------- */
:where(html.island-front) .ww-section-more {
    margin-top: 40px;
    margin-bottom: 0;
}

:where(html.island-front) .ww-hero-actions--center {
    justify-content: center;
}

/* ---------- Back to Top ---------- */
:where(html.island-front) .ww-back-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    box-shadow: var(--ww-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ww-text-secondary);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--ww-transition);
}

:where(html.island-front) .ww-back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

:where(html.island-front) .ww-back-top:hover {
    color: var(--ww-primary);
    border-color: var(--ww-primary);
}

/* ---------- FAQ ---------- */
:where(html.island-front) .ww-faq {
    background: var(--ww-card);
    border-top: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-faq-list {
    max-width: 720px;
    margin: 0 auto;
}

:where(html.island-front) .ww-faq-item {
    border-bottom: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--ww-text);
    text-align: left;
    cursor: pointer;
    transition: color var(--ww-transition);
}

:where(html.island-front) .ww-faq-question:hover {
    color: var(--ww-primary);
}

:where(html.island-front) .ww-faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform var(--ww-transition);
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-faq-item.open .ww-faq-icon {
    transform: rotate(180deg);
    color: var(--ww-primary);
}

:where(html.island-front) .ww-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

:where(html.island-front) .ww-faq-item.open .ww-faq-answer {
    max-height: 200px;
}

:where(html.island-front) .ww-faq-answer p {
    padding: 0 0 20px;
    font-size: 14px;
    color: var(--ww-text-secondary);
    line-height: 1.8;
}

/* ---------- Community Page ---------- */
:where(html.island-front) .ww-comm-tabs-bar {
    padding: 16px 0;
    background: var(--ww-card);
    border-bottom: 1px solid var(--ww-border);
    position: sticky;
    top: 64px;
    z-index: 50;
}

:where(html.island-front) .ww-comm-tabs-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

:where(html.island-front) .ww-comm-tabs-scroll::-webkit-scrollbar {
    display: none;
}

:where(html.island-front) .ww-comm-tab {
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ww-text-secondary);
    background: transparent;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: all var(--ww-transition);
    text-decoration: none;
}

:where(html.island-front) .ww-comm-tab:hover {
    color: var(--ww-primary);
    background: rgba(224, 122, 95, 0.06);
}

:where(html.island-front) .ww-comm-tab.active {
    color: var(--ww-primary);
    background: rgba(224, 122, 95, 0.1);
    border-color: rgba(224, 122, 95, 0.2);
}

:where(html.island-front) .ww-comm-main {
    padding: 110px 0 80px;
    background: var(--ww-bg);
}

:where(html.island-front) .ww-comm-tabbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-comm-tabbar-left {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

:where(html.island-front) .ww-comm-tabbar-left::-webkit-scrollbar {
    display: none;
}

:where(html.island-front) .ww-comm-tab {
    padding: 6px 16px;
    font-size: 14px;
    color: var(--ww-text-secondary);
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    transition: all var(--ww-transition);
}

:where(html.island-front) .ww-comm-tab:hover {
    color: var(--ww-text);
    background: var(--ww-card);
}

:where(html.island-front) .ww-comm-tab.active {
    color: var(--ww-primary);
    background: rgba(224, 122, 95, 0.08);
    font-weight: 600;
}

:where(html.island-front) .ww-comm-tabbar-right {
    position: relative;
    margin-left: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

:where(html.island-front) .ww-ws-expand-btn, :where(html.island-front) .ww-ws-collapse-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 6px;
    cursor: pointer; color: var(--text-secondary, #666);
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
:where(html.island-front) .ww-ws-expand-btn:hover, :where(html.island-front) .ww-ws-collapse-btn:hover {
    background: var(--bg-hover, #f5f5f5); color: var(--text-primary, #333);
}
:where(html.island-front) .ww-ws-group-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 6px;
    color: var(--text-secondary, #666);
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
:where(html.island-front) .ww-ws-group-btn:hover {
    background: var(--bg-hover, #f5f5f5); color: var(--text-primary, #333);
}
:where(html.island-front) .ww-ws-menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: 6px; padding: 2px; border-radius: 4px;
    color: var(--text-secondary, #999); opacity: 0.55;
    transition: opacity 0.15s, color 0.15s, background 0.15s;
    cursor: pointer; vertical-align: middle;
}
:where(html.island-front) .ww-ws-menu-toggle:hover { opacity: 1; background: var(--bg-hover, #f5f5f5); }
:where(html.island-front) .ww-ws-menu-toggle.active { color: var(--primary, #5a7dff); opacity: 1; }
:where(html.island-front) .ww-ws-sub-tabs {
    align-items: center; gap: 8px;
    overflow-x: auto; white-space: nowrap;
}
:where(html.island-front) .ww-ws-sub-tabs::-webkit-scrollbar { display: none; }
:where(html.island-front) .ww-ws-sub-label {
    font-size: 13px; color: var(--text-secondary, #999);
    flex-shrink: 0;
}
:where(html.island-front) .ww-ws-sub-parent {
    font-size: 13px; font-weight: 500; color: var(--text-primary, #333);
    flex-shrink: 0;
}
:where(html.island-front) .ww-ws-sub-sep {
    font-size: 13px; color: var(--text-secondary, #ccc);
    margin: 0 2px; flex-shrink: 0;
}
:where(html.island-front) .ww-ws-sub-tab {
    font-size: 13px !important;
}

:where(html.island-front) .ww-comm-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--ww-text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--ww-transition);
}

:where(html.island-front) .ww-comm-view-btn:hover {
    background: var(--ww-card);
    color: var(--ww-text);
}

:where(html.island-front) .ww-comm-view-btn.active {
    background: var(--ww-primary);
    color: #fff;
}

:where(html.island-front) body.ww-comm-fullwidth .ww-container {
    max-width: 100%;
}

:where(html.island-front) .ww-comm-settings {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 100;
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: var(--ww-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s ease;
}

:where(html.island-front) .ww-comm-settings.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

:where(html.island-front) .ww-comm-settings-inner {
    padding: 16px;
    min-width: 220px;
}

:where(html.island-front) .ww-comm-settings-group {
    margin-bottom: 14px;
}

:where(html.island-front) .ww-comm-settings-group:last-child {
    margin-bottom: 0;
}

:where(html.island-front) .ww-comm-settings-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ww-text-light);
    margin-bottom: 8px;
}

:where(html.island-front) .ww-comm-settings-options {
    display: flex;
    gap: 6px;
}

:where(html.island-front) .ww-comm-settings-opt {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid var(--ww-border);
    background: transparent;
    color: var(--ww-text-secondary);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all var(--ww-transition);
}

:where(html.island-front) .ww-comm-settings-opt:hover {
    border-color: var(--ww-primary);
    color: var(--ww-primary);
}

:where(html.island-front) .ww-comm-settings-opt.active {
    background: rgba(224, 122, 95, 0.08);
    border-color: var(--ww-primary);
    color: var(--ww-primary);
    font-weight: 500;
}

:where(html.island-front) .ww-comm-masonry { 
    position: relative;
    column-gap: 20px;
}

:where(html.island-front) .ww-comm-masonry > .ww-comm-card {
    break-inside: avoid;
    margin-bottom: 20px;
}

:where(html.island-front) .ww-comm-masonry .ww-comm-card-desc,
:where(html.island-front) .ww-comm-masonry .ww-comm-card-cat {
    display: none;
}

:where(html.island-front) .ww-comm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

:where(html.island-front) .ww-comm-grid .ww-comm-card {
    height: 320px;
    margin-bottom: 0;
}

:where(html.island-front) .ww-comm-grid .ww-comm-card-img {
    height: 180px;
}

:where(html.island-front) .ww-comm-grid .ww-comm-card-img img {
    height: 100%;
    object-fit: cover;
}

:where(html.island-front) .ww-comm-grid .ww-comm-card-desc {
    display: block;
    font-size: 13px;
    color: var(--ww-text-secondary);
    line-height: 1.5;
    margin: 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

:where(html.island-front) .ww-comm-grid .ww-comm-card-cat {
    display: block;
}

:where(html.island-front) .ww-comm-cols-3 { columns: 3; grid-template-columns: repeat(3, 1fr); }
:where(html.island-front) .ww-comm-cols-4 { columns: 4; grid-template-columns: repeat(4, 1fr); }
:where(html.island-front) .ww-comm-cols-5 { columns: 5; grid-template-columns: repeat(5, 1fr); }
:where(html.island-front) .ww-comm-cols-6 { columns: 6; grid-template-columns: repeat(6, 1fr); }

:where(html.island-front) .ww-comm-card {
    background: var(--ww-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--ww-border);
    transition: all var(--ww-transition);
    display: block;
}

:where(html.island-front) .ww-comm-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ww-shadow-hover);
    border-color: transparent;
}

:where(html.island-front) .ww-comm-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

:where(html.island-front) .ww-comm-card-img {
    position: relative;
    overflow: hidden;
    background: var(--ww-bg);
    /* aspect-ratio: 4/3; */
}

:where(html.island-front) .ww-comm-card-img img {
    width: 100%;
    /* height: 100%; */
    /* object-fit: cover; */
    display: block;
    transition: transform 0.3s ease;
}

:where(html.island-front) .ww-comm-card:hover .ww-comm-card-img img {
    transform: scale(1.05);
}

:where(html.island-front) .ww-comm-card-color {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

@keyframes wwCardFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

:where(html.island-front) .ww-reveal {
    opacity: 0;
    animation: wwCardFadeIn 0.35s ease forwards;
    animation-delay: var(--reveal-delay, 0ms);
}

:where(html.island-front) .ww-comm-card-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ww-text-secondary);
    opacity: 0.3;
}

:where(html.island-front) .ww-comm-card-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: var(--ww-primary);
}

:where(html.island-front) .ww-comm-card-body {
    padding: 10px;
}

:where(html.island-front) .ww-comm-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ww-text); 
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

:where(html.island-front) .ww-comm-card-desc {
    font-size: 13px;
    color: var(--ww-text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

:where(html.island-front) .ww-comm-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-comm-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    /* border-top: 1px solid var(--ww-border); */
    padding-top: 0px;
}

:where(html.island-front) .ww-comm-card-footer .ww-comm-card-author {
    text-decoration: none;
}

:where(html.island-front) .ww-comm-card-footer .ww-comm-card-author:hover span {
    color: var(--ww-primary);
}

:where(html.island-front) .ww-comm-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-comm-card-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

:where(html.island-front) .ww-comm-card-avatar-placeholder {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ww-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-comm-card-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

:where(html.island-front) .ww-comm-card-likes {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--ww-text-secondary);
    opacity: 0.7;
}

:where(html.island-front) .ww-comm-card-likes svg {
    width: 13px;
    height: 13px;
}

:where(html.island-front) .ww-comm-card-time {
    font-size: 12px;
    color: var(--ww-text-secondary);
    opacity: 0.7;
}

:where(html.island-front) .ww-comm-card-skel {
    pointer-events: none;
}
:where(html.island-front) .ww-comm-skel-img {
    width: 100%;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: ww-skel-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px 8px 0 0;
}
:where(html.island-front) .ww-comm-skel-body {
    padding: 14px;
}
:where(html.island-front) .ww-comm-skel-line {
    height: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: ww-skel-shimmer 1.5s ease-in-out infinite;
}
:where(html.island-front) .ww-comm-skel-line.w80 { width: 80%; }
:where(html.island-front) .ww-comm-skel-line.w50 { width: 50%; }
:where(html.island-front) .ww-comm-skel-line.w30 { width: 30%; }
:where(html.island-front) .ww-comm-skel-footer {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
:where(html.island-front) .ww-comm-skel-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: ww-skel-shimmer 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes ww-skel-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

:where(html.island-front) .ww-comm-empty {
    column-span: all;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-comm-empty svg {
    opacity: 0.2;
    margin-bottom: 16px;
}

:where(html.island-front) .ww-comm-empty p {
    font-size: 15px;
    margin-bottom: 24px;
}

:where(html.island-front) .ww-comm-loading {
    column-span: all;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    padding-bottom: 66vh;
}

:where(html.island-front) .ww-comm-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--ww-primary, #e63228);
    border-radius: 50%;
    animation: wwSpin 0.6s linear infinite;
}

@keyframes wwSpin {
    to { transform: rotate(360deg); }
}

:where(html.island-front) .ww-comm-pagination {
    display: flex;
    justify-content: center;
    padding: 44px 0 8px;
}

:where(html.island-front) .ww-comm-pagination ul.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

:where(html.island-front) .ww-comm-pagination ul.pagination li a,
:where(html.island-front) .ww-comm-pagination ul.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--ww-radius-sm);
    border: 1px solid var(--ww-border);
    color: var(--ww-text);
    background: var(--ww-card);
    font-size: 14px;
    text-decoration: none;
    transition: border-color var(--ww-transition), background var(--ww-transition), color var(--ww-transition);
}

:where(html.island-front) .ww-comm-pagination ul.pagination li a:hover {
    border-color: var(--ww-dark);
    color: var(--ww-dark);
}

:where(html.island-front) .ww-comm-pagination ul.pagination li.active span {
    background: var(--ww-dark);
    border-color: var(--ww-dark);
    color: #fff;
}

:where(html.island-front) .ww-comm-pagination ul.pagination li.disabled span {
    opacity: .4;
    cursor: not-allowed;
}

:where(html.island-front) .ww-comm-loader {
    display: flex;
    justify-content: center;
    padding: 30px 0;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-comm-loader svg {
    opacity: 0.5;
}

/* ---------- Community Detail Page ---------- */
:where(html.island-front) .ww-cd-section {
    padding: 104px 0 48px;
    background: var(--ww-bg);
}

:where(html.island-front) .ww-cd-top {
    margin-bottom: 20px;
}

:where(html.island-front) .ww-cd-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--ww-text-secondary);
    text-decoration: none;
    transition: color var(--ww-transition);
}

:where(html.island-front) .ww-cd-back:hover {
    color: var(--ww-primary);
}

:where(html.island-front) .ww-cd-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
:where(html.island-front) .ww-cd-layout--no-gallery {
    grid-template-columns: 1fr;
}

:where(html.island-front) .ww-cd-gallery {
    position: sticky;
    top: 84px;
}

:where(html.island-front) .ww-cd-carousel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.85);
    border: 1px solid var(--ww-border);
    max-height: 66vh;
    height: var(--carousel-h, auto);
}

:where(html.island-front) .ww-cd-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

:where(html.island-front) .ww-cd-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

:where(html.island-front) .ww-cd-carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

:where(html.island-front) .ww-cd-carousel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    max-height: 66vh;
    cursor: pointer;
    transition: object-fit 1s ease;
}

:where(html.island-front) .ww-cd-carousel:hover .ww-cd-carousel-slide img {
    object-fit: contain;
}

:where(html.island-front) .ww-cd-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--ww-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--ww-transition);
    z-index: 2;
    color: var(--ww-text);
}

:where(html.island-front) .ww-cd-carousel-btn:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

:where(html.island-front) .ww-cd-carousel-prev {
    left: 12px;
}

:where(html.island-front) .ww-cd-carousel-next {
    right: 12px;
}

:where(html.island-front) .ww-cd-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

:where(html.island-front) .ww-cd-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all var(--ww-transition);
}

:where(html.island-front) .ww-cd-carousel-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}

:where(html.island-front) .ww-cd-carousel-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 12px;
    z-index: 2;
}

/* ---------- Video Player ---------- */
:where(html.island-front) .ww-cd-video-player {
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-cd-video-player.ww-cd-video-fullscreen {
    border-radius: 0;
    border: none;
    position: relative;
    width: 100%;
    height: 100%;
}

:where(html.island-front) .ww-cd-video-player.ww-cd-video-fullscreen .ww-cd-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    transition: opacity 0.3s;
    z-index: 10;
}

:where(html.island-front) .ww-cd-video-player.ww-cd-video-fullscreen .ww-cd-video-controls.is-controls-dim {
    opacity: 0;
}

:where(html.island-front) .ww-cd-video-player.ww-cd-video-fullscreen .ww-cd-video-wrap video {
    max-height: 100vh;
    height: 100vh;
    object-fit: contain;
}

:where(html.island-front) .ww-cd-video-player.ww-cd-video-fullscreen .ww-cd-video-big-play {
    display: none;
}

:where(html.island-front) .ww-cd-video-wrap {
    position: relative;
    width: 100%;
    cursor: pointer;
}

:where(html.island-front) .ww-cd-video-wrap video {
    width: 100%;
    display: block;
    max-height: 66vh;
}

:where(html.island-front) .ww-cd-video-big-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    color: #fff;
}

:where(html.island-front) .ww-cd-video-big-play:hover {
    background: rgba(0,0,0,0.7);
}

:where(html.island-front) .ww-cd-video-controls {
    padding: 8px 12px 10px;
    background: #1a1a1a;
}

:where(html.island-front) .ww-cd-video-progress {
    width: 100%;
    height: 4px;
    background: #444;
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 8px;
    position: relative;
}

:where(html.island-front) .ww-cd-video-progress-fill {
    height: 100%;
    width: 0;
    background: var(--ww-primary);
    border-radius: 2px;
    transition: width 0.1s linear;
}

:where(html.island-front) .ww-cd-video-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

:where(html.island-front) .ww-cd-video-controls-left,
:where(html.island-front) .ww-cd-video-controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

:where(html.island-front) .ww-cd-video-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

:where(html.island-front) .ww-cd-video-btn:hover {
    color: #fff;
}

:where(html.island-front) .ww-cd-video-time {
    color: #aaa;
    font-size: 12px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

:where(html.island-front) .ww-cd-video-volume {
    flex: 1;
    max-width: 100px;
}

:where(html.island-front) .ww-cd-video-volume input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #444;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

:where(html.island-front) .ww-cd-video-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ww-primary);
    cursor: pointer;
}

:where(html.island-front) .ww-cd-video-volume input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ww-primary);
    border: none;
    cursor: pointer;
}

/* ---------- Music Disc Player ---------- */
:where(html.island-front) .ww-cd-music-player {
    display: flex;
    flex-direction: column;
    align-items: center;
}

:where(html.island-front) .ww-cd-music-disc {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    position: relative;
    background: #1a1a1a;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    cursor: pointer;
}

:where(html.island-front) .ww-cd-music-disc-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

:where(html.island-front) .ww-cd-music-disc-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-front) .ww-cd-music-disc-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d3436, #636e72);
    color: rgba(255,255,255,0.3);
}

:where(html.island-front) .ww-cd-music-disc-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background 0.2s, transform 0.15s;
}

:where(html.island-front) .ww-cd-music-disc-play:hover {
    background: rgba(0,0,0,0.6);
    transform: translate(-50%, -50%) scale(1.08);
}

:where(html.island-front) .ww-cd-music-disc-play svg {
    margin-left: 2px;
}

:where(html.island-front) .ww-cd-music-disc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.08);
    z-index: 1;
    pointer-events: none;
}

:where(html.island-front) .ww-cd-music-disc::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
    pointer-events: none;
}

@keyframes ww-disc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

:where(html.island-front) .ww-cd-music-disc-spinning {
    animation: ww-disc-spin 8s linear infinite;
}

:where(html.island-front) .ww-cd-music-ctrl {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-cd-music-ctrl-progress {
    width: 100%;
    height: 4px;
    background: var(--ww-border);
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 10px;
}

:where(html.island-front) .ww-cd-music-ctrl-fill {
    height: 100%;
    width: 0;
    background: var(--ww-primary);
    border-radius: 2px;
    transition: width 0.1s linear;
}

:where(html.island-front) .ww-cd-music-ctrl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

:where(html.island-front) .ww-cd-music-ctrl-time {
    color: var(--ww-text-secondary);
    font-size: 12px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

:where(html.island-front) .ww-cd-music-ctrl-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

:where(html.island-front) .ww-cd-music-ctrl-play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ww-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

:where(html.island-front) .ww-cd-music-ctrl-play:hover {
    background: var(--ww-primary-dark);
}

:where(html.island-front) .ww-cd-music-ctrl-play svg {
    margin-left: 1px;
}

:where(html.island-front) .ww-cd-music-ctrl-btn {
    background: none;
    border: none;
    color: var(--ww-text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

:where(html.island-front) .ww-cd-music-ctrl-btn:hover {
    color: var(--ww-primary);
}

:where(html.island-front) .ww-cd-music-ctrl-vol {
    width: 70px;
}

:where(html.island-front) .ww-cd-music-ctrl-vol input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--ww-border);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

:where(html.island-front) .ww-cd-music-ctrl-vol input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ww-primary);
    cursor: pointer;
}

:where(html.island-front) .ww-cd-music-ctrl-vol input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ww-primary);
    border: none;
    cursor: pointer;
}

:where(html.island-front) .ww-cd-info {
    padding-top: 8px;
}

:where(html.island-front) .ww-cd-cat {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ww-primary);
    background: rgba(224, 122, 95, 0.1);
    margin-bottom: 16px;
}

:where(html.island-front) .ww-cd-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--ww-text);
    line-height: 1.3;
    margin-bottom: 20px;
}

:where(html.island-front) .ww-cd-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

:where(html.island-front) .ww-cd-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

:where(html.island-front) .ww-cd-author-avatar-ph {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ww-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-cd-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

:where(html.island-front) .ww-cd-author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ww-text);
}

:where(html.island-front) .ww-cd-author-time {
    font-size: 13px;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-cd-likes {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-cd-divider {
    height: 1px;
    background: var(--ww-border);
    margin-bottom: 24px;
}

:where(html.island-front) .ww-cd-desc {
    font-size: 15px;
    color: var(--ww-text);
    line-height: 1.9;
}

:where(html.island-front) .ww-cd-desc p {
    margin: 0;
}

:where(html.island-front) .ww-cd-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 28px;
}

:where(html.island-front) .ww-cd-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

:where(html.island-front) .ww-cd-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid var(--ww-border);
    border-radius: var(--ww-radius-sm);
    background: var(--ww-card);
    color: var(--ww-text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--ww-transition);
    text-decoration: none;
}

:where(html.island-front) .ww-cd-action-btn:hover {
    border-color: var(--ww-primary);
    color: var(--ww-primary);
    background: rgba(231, 76, 60, 0.05);
}

:where(html.island-front) .ww-cd-action-btn.ww-cd-action-primary {
    border-color: var(--ww-primary);
    color: var(--ww-primary);
    background: rgba(231, 76, 60, 0.06);
    font-weight: 600;
}

:where(html.island-front) .ww-cd-action-btn.ww-cd-action-primary:hover {
    background: var(--ww-primary);
    color: #fff;
}

:where(html.island-front) .ww-cd-action-btn.ww-cd-action-primary:hover svg {
    stroke: #fff;
}

:where(html.island-front) .ww-cd-action-btn.active {
    border-color: var(--ww-primary);
    color: var(--ww-primary);
    background: rgba(231, 76, 60, 0.08);
}

:where(html.island-front) .ww-cd-action-btn.active svg {
    fill: var(--ww-primary);
    stroke: var(--ww-primary);
}

:where(html.island-front) .ww-cd-action-count {
    font-size: 12px;
    opacity: 0.7;
}

:where(html.island-front) .ww-cd-type-actions {
    margin-top: 20px;
    padding: 16px 20px;
    background: #f9f9f9;
    border-radius: var(--ww-radius-sm);
    border: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-cd-type-actions-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ww-text);
    margin-bottom: 12px;
}

:where(html.island-front) .ww-cd-type-actions-header svg {
    opacity: 0.6;
}

:where(html.island-front) .ww-cd-type-actions-body {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

:where(html.island-front) .ww-cd-purchase-state { display: contents; }

:where(html.island-front) .ww-cd-type-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--ww-primary);
}

:where(html.island-front) .ww-cd-type-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--ww-border);
    border-radius: var(--ww-radius-sm);
    background: var(--ww-card);
    color: var(--ww-text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--ww-transition);
    text-decoration: none;
}

:where(html.island-front) .ww-cd-type-action-btn.ww-cd-type-action-primary {
    border-color: var(--ww-primary);
    color: #fff;
    background: var(--ww-primary);
}

:where(html.island-front) .ww-cd-type-action-btn.ww-cd-type-action-primary:hover {
    opacity: 0.85;
}

:where(html.island-front) .ww-cd-type-action-btn.ww-cd-type-action-primary svg {
    stroke: #fff;
}

:where(html.island-front) .ww-cd-empty {
    text-align: center;
    padding: 160px 0 100px;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-cd-empty svg {
    opacity: 0.15;
    margin-bottom: 20px;
}

:where(html.island-front) .ww-cd-empty h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ww-text);
    margin-bottom: 8px;
}

:where(html.island-front) .ww-cd-empty p {
    font-size: 14px;
    margin-bottom: 28px;
}

/* Detail Tabs */
:where(html.island-front) .ww-cd-tabs-section {
    padding: 0 0 48px;
    background: var(--ww-bg);
}

:where(html.island-front) .ww-cd-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--ww-border);
    margin-bottom: 24px;
}

:where(html.island-front) .ww-cd-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ww-text-secondary);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--ww-transition);
    margin-bottom: -1px;
}

:where(html.island-front) .ww-cd-tab:hover {
    color: var(--ww-text);
}

:where(html.island-front) .ww-cd-tab.active {
    color: var(--ww-primary);
    border-bottom-color: var(--ww-primary);
}

:where(html.island-front) .ww-cd-tab-count {
    font-size: 12px;
    opacity: 0.6;
}

:where(html.island-front) .ww-cd-tab-panel {
    display: none;
}

:where(html.island-front) .ww-cd-tab-panel.active {
    display: block;
}

:where(html.island-front) .ww-cd-tab-empty {
    text-align: center;
    padding: 48px 0;
    color: var(--ww-text-secondary);
    font-size: 14px;
}

/* 未登录时的笔记 / 溯源占位 */
:where(html.island-front) .ww-cd-tab-lock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 0;
    color: var(--ww-text-secondary);
    font-size: 14px;
    text-align: center;
}
:where(html.island-front) .ww-cd-tab-lock p {
    margin: 0;
}
:where(html.island-front) .ww-cd-tab-lock svg {
    opacity: 0.45;
}

/* Key-value info rows (财产信息 / 其它信息) */
:where(html.island-front) .ww-cd-kv-list {
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: 12px;
    overflow: hidden;
}

:where(html.island-front) .ww-cd-kv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
}

:where(html.island-front) .ww-cd-kv-row + .ww-cd-kv-row {
    border-top: 1px solid var(--ww-border);
}

/* 财产信息：一行两个 */
:where(html.island-front) #cdTabProperty .ww-cd-kv-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: none;
    border: none;
    border-radius: 0;
    overflow: visible;
}

:where(html.island-front) #cdTabProperty .ww-cd-kv-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: 10px;
    padding: 12px 14px;
}

:where(html.island-front) #cdTabProperty .ww-cd-kv-row + .ww-cd-kv-row {
    border-top: 1px solid var(--ww-border);
}

/* 键值对属性（正文下方内联展示） */
:where(html.island-front) .ww-cd-extra-inline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

:where(html.island-front) .ww-cd-extra-row {
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 0;
}

:where(html.island-front) .ww-cd-extra-key {
    display: block;
    font-size: 12px;
    color: var(--ww-text-secondary);
    margin-bottom: 3px;
    word-break: break-all;
}

:where(html.island-front) .ww-cd-extra-val {
    display: block;
    font-size: 14px;
    color: var(--ww-text);
    word-break: break-all;
}

:where(html.island-front) .ww-cd-kv-label {
    color: var(--ww-text-secondary);
    font-size: 14px;
    flex-shrink: 0;
}

:where(html.island-front) .ww-cd-kv-value {
    color: var(--ww-text);
    font-size: 14px;
    text-align: right;
    word-break: break-all;
}

/* Comments */
:where(html.island-front) .ww-cd-comment-form {
    padding: 0;
    background: var(--ww-card);
    border-radius: 12px;
    border: 1px solid var(--ww-border);
    margin-bottom: 24px;
    overflow: hidden;
}

:where(html.island-front) .ww-cd-cf-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 0;
}

:where(html.island-front) .ww-cd-cf-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ww-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ww-text-secondary);
    flex-shrink: 0;
    overflow: hidden;
}

:where(html.island-front) .ww-cd-cf-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-front) .ww-cd-cf-hint {
    font-size: 13px;
    color: var(--ww-text-secondary);
    opacity: 0.6;
}

:where(html.island-front) .ww-cd-cf-body {
    padding: 12px 20px 0;
}

:where(html.island-front) .ww-cd-cf-body textarea {
    width: 100%;
    border: none;
    border-radius: 0;
    padding: 0;
    font-size: 14px;
    resize: none;
    font-family: inherit;
    color: var(--ww-text);
    background: transparent;
    outline: none;
    line-height: 1.7;
    min-height: 72px;
}

:where(html.island-front) .ww-cd-cf-body textarea::placeholder {
    color: var(--ww-text-secondary);
    opacity: 0.5;
}

:where(html.island-front) .ww-cd-cf-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 0 4px;
}

:where(html.island-front) .ww-cd-cf-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid var(--ww-border);
    background: var(--ww-bg);
}

:where(html.island-front) .ww-cd-cf-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

:where(html.island-front) .ww-cd-cf-img-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid var(--ww-border);
    border-radius: 6px;
    background: var(--ww-card);
    color: var(--ww-text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--ww-transition);
}

:where(html.island-front) .ww-cd-cf-img-btn:hover {
    border-color: var(--ww-primary);
    color: var(--ww-primary);
}

:where(html.island-front) .ww-cd-cf-tip {
    font-size: 11px;
    color: var(--ww-text-secondary);
    opacity: 0.5;
}

:where(html.island-front) .ww-cd-cf-submit {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 24px;
    border: none;
    border-radius: 20px;
    background: var(--ww-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--ww-transition);
}

:where(html.island-front) .ww-cd-cf-submit:hover {
    background: var(--ww-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.3);
}

:where(html.island-front) .ww-cd-cf-submit:active {
    transform: translateY(0);
}

:where(html.island-front) .ww-cd-comment-login-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 20px;
    color: var(--ww-text-secondary);
    font-size: 14px;
}

:where(html.island-front) .ww-cd-comment-login-tip svg {
    opacity: 0.4;
}

:where(html.island-front) .ww-cd-comment-login-tip a {
    color: var(--ww-primary);
    font-weight: 500;
}

:where(html.island-front) .ww-cd-comment-img-thumb {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-cd-comment-img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-front) .ww-cd-comment-img-remove {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0 0 0 6px;
}

:where(html.island-front) .ww-cd-comment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

:where(html.island-front) .ww-cd-comment {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--ww-card);
    border-radius: 12px;
    border: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-cd-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ww-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ww-text-secondary);
    flex-shrink: 0;
    overflow: hidden;
}

:where(html.island-front) .ww-cd-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-front) .ww-cd-comment-body {
    flex: 1;
    min-width: 0;
}

:where(html.island-front) .ww-cd-comment-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

:where(html.island-front) .ww-cd-comment-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ww-text);
}

:where(html.island-front) .ww-cd-comment-time {
    font-size: 12px;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-cd-comment-text {
    font-size: 14px;
    color: var(--ww-text);
    line-height: 1.6;
    margin: 0;
}

:where(html.island-front) .ww-cd-comment-name {
    text-decoration: none;
}

:where(html.island-front) .ww-cd-comment-name:hover {
    color: var(--ww-primary);
}

:where(html.island-front) .ww-cd-comment-meta {
    font-size: 11px;
    color: var(--ww-text-secondary);
    opacity: 0.7;
    padding: 1px 6px;
    background: var(--ww-bg);
    border-radius: 3px;
}

:where(html.island-front) .ww-cd-comment-images {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

:where(html.island-front) .ww-cd-comment-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--ww-border);
    transition: opacity var(--ww-transition);
}

:where(html.island-front) .ww-cd-comment-images img:hover {
    opacity: 0.85;
}

:where(html.island-front) .ww-cd-comment-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

:where(html.island-front) .ww-cd-comment-act {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: none;
    background: transparent;
    color: var(--ww-text-secondary);
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--ww-transition);
}

:where(html.island-front) .ww-cd-comment-act:hover {
    background: var(--ww-bg);
    color: var(--ww-text);
}

:where(html.island-front) .ww-cd-comment-act.active {
    color: var(--ww-primary);
}

:where(html.island-front) .ww-cd-comment-act.active svg {
    fill: var(--ww-primary);
    stroke: var(--ww-primary);
}

:where(html.island-front) .hidden {
    display: none !important;
}

:where(html.island-front) .ww-cd-replies-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 4px 8px;
    border: none;
    background: transparent;
    color: var(--ww-primary);
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
}

:where(html.island-front) .ww-cd-replies-toggle:hover {
    background: rgba(0,0,0,0.04);
}

:where(html.island-front) .ww-cd-replies-toggle svg.is-flipped {
    transform: rotate(180deg);
}

:where(html.island-front) .ww-cd-comment-replies {
    margin-top: 12px;
    padding: 12px;
    background: var(--ww-bg);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

:where(html.island-front) .ww-cd-comment-reply {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-cd-comment-reply:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

:where(html.island-front) .ww-cd-comment-reply-to {
    font-size: 12px;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-cd-comment-reply-to a {
    color: var(--ww-primary);
    text-decoration: none;
}

:where(html.island-front) .ww-cd-reply-form {
    margin-top: 10px;
}

:where(html.island-front) .ww-cd-reply-textarea {
    width: 100%;
    border: 1px solid var(--ww-border);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    resize: none;
    font-family: inherit;
    color: var(--ww-text);
    background: var(--ww-bg);
    outline: none;
    transition: border-color var(--ww-transition);
}

:where(html.island-front) .ww-cd-reply-textarea:focus {
    border-color: var(--ww-primary);
}

:where(html.island-front) .ww-cd-reply-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

:where(html.island-front) .ww-cd-reply-cancel {
    padding: 4px 14px;
    border: 1px solid var(--ww-border);
    border-radius: 6px;
    background: transparent;
    color: var(--ww-text-secondary);
    font-size: 13px;
    cursor: pointer;
}

:where(html.island-front) .ww-cd-reply-cancel:hover {
    border-color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-btn-sm {
    padding: 4px 14px !important;
    font-size: 13px !important;
}

/* Notes */
:where(html.island-front) .ww-cd-note-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

:where(html.island-front) .ww-cd-note {
    padding: 20px;
    background: var(--ww-card);
    border-radius: 12px;
    border: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-cd-note-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

:where(html.island-front) .ww-cd-note-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--ww-text);
}

:where(html.island-front) .ww-cd-note-time {
    font-size: 12px;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-cd-note-body p {
    font-size: 14px;
    color: var(--ww-text);
    line-height: 1.7;
    margin: 0;
}

:where(html.island-front) .ww-cd-note-imgs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
:where(html.island-front) .ww-cd-note-imgs img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--ww-border, #e5e7eb);
    cursor: pointer;
}

:where(html.island-front) .ww-cd-note-images {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

:where(html.island-front) .ww-cd-note-images img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

/* Timeline (Trace) */
:where(html.island-front) .ww-cd-timeline {
    position: relative;
    padding-left: 28px;
}

:where(html.island-front) .ww-cd-timeline-item {
    position: relative;
    padding-bottom: 28px;
}

:where(html.island-front) .ww-cd-timeline-item:last-child {
    padding-bottom: 0;
}

:where(html.island-front) .ww-cd-timeline-dot {
    position: absolute;
    left: -28px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ww-border);
    border: 2px solid var(--ww-bg);
    z-index: 1;
}

:where(html.island-front) .ww-cd-timeline-item.active .ww-cd-timeline-dot {
    background: var(--ww-primary);
}

:where(html.island-front) .ww-cd-timeline-line {
    position: absolute;
    left: -23px;
    top: 18px;
    width: 2px;
    bottom: 0;
    background: var(--ww-border);
}

:where(html.island-front) .ww-cd-timeline-item:last-child .ww-cd-timeline-line {
    display: none;
}

:where(html.island-front) .ww-cd-timeline-content {
    background: var(--ww-card);
    border-radius: 12px;
    border: 1px solid var(--ww-border);
    padding: 16px 20px;
}

:where(html.island-front) .ww-cd-timeline-date {
    font-size: 12px;
    color: var(--ww-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

:where(html.island-front) .ww-cd-timeline-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ww-text);
    margin-bottom: 6px;
}

:where(html.island-front) .ww-cd-timeline-desc {
    font-size: 13px;
    color: var(--ww-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Records */
:where(html.island-front) .ww-cd-record-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:where(html.island-front) .ww-cd-record {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--ww-card);
    border-radius: 12px;
    border: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-cd-record-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(224, 122, 95, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ww-primary);
    flex-shrink: 0;
}

:where(html.island-front) .ww-cd-record-body {
    flex: 1;
    min-width: 0;
}

:where(html.island-front) .ww-cd-record-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ww-text);
    margin-bottom: 4px;
}

:where(html.island-front) .ww-cd-record-desc {
    font-size: 13px;
    color: var(--ww-text-secondary);
    line-height: 1.6;
    margin: 0 0 6px;
}

:where(html.island-front) .ww-cd-record-time {
    font-size: 12px;
    color: var(--ww-text-secondary);
    opacity: 0.7;
}

/* Related */
:where(html.island-front) .ww-cd-related {
    padding: 48px 0 80px;
    background: var(--ww-card);
    border-top: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-cd-related-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ww-text);
    margin-bottom: 24px;
}

:where(html.island-front) .ww-cd-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

:where(html.island-front) .ww-cd-related-card {
    background: var(--ww-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--ww-border);
    text-decoration: none;
    color: inherit;
    transition: all var(--ww-transition);
}

:where(html.island-front) .ww-cd-related-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ww-shadow-hover);
    border-color: transparent;
}

:where(html.island-front) .ww-cd-related-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--ww-bg);
}

:where(html.island-front) .ww-cd-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

:where(html.island-front) .ww-cd-related-card:hover .ww-cd-related-img img {
    transform: scale(1.05);
}

:where(html.island-front) .ww-cd-related-info {
    padding: 12px;
}

:where(html.island-front) .ww-cd-related-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--ww-text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(html.island-front) .ww-cd-related-author {
    font-size: 12px;
    color: var(--ww-text-secondary);
}

/* ---------- Lightbox ---------- */
:where(html.island-front) .ww-cd-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

:where(html.island-front) .ww-cd-lightbox.active {
    display: flex;
}

:where(html.island-front) .ww-cd-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 2;
}

:where(html.island-front) .ww-cd-lightbox-close:hover {
    opacity: 1;
}

:where(html.island-front) .ww-cd-lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
}

:where(html.island-front) .ww-cd-lightbox-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
}

:where(html.island-front) .ww-cd-lightbox-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

:where(html.island-front) .ww-cd-lightbox-btn:hover {
    background: rgba(255,255,255,0.2);
}

:where(html.island-front) .ww-cd-lightbox-counter {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* Share Modal */
:where(html.island-front) .ww-cd-share-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
:where(html.island-front) .ww-cd-share-modal.active {
    display: flex;
}
:where(html.island-front) .ww-cd-share-mask {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}
:where(html.island-front) .ww-cd-share-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px 24px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    z-index: 1;
}
:where(html.island-front) .ww-cd-share-close {
    position: absolute;
    top: 10px; right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
:where(html.island-front) .ww-cd-share-close:hover {
    color: #333;
}
:where(html.island-front) .ww-cd-share-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px;
}
:where(html.island-front) .ww-cd-share-qr {
    width: 180px;
    height: 180px;
    margin: 0 auto 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
:where(html.island-front) .ww-cd-share-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
:where(html.island-front) .ww-cd-share-name {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
:where(html.island-front) .ww-cd-share-url-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
:where(html.island-front) .ww-cd-share-url-input {
    flex: 1;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 13px;
    color: #666;
    background: #f9f9f9;
    outline: none;
}
:where(html.island-front) .ww-cd-share-url-input:focus {
    border-color: #4CAF50;
}
:where(html.island-front) .ww-cd-share-copy-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 36px;
    padding: 0 14px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
:where(html.island-front) .ww-cd-share-copy-btn:hover {
    background: #43A047;
}

/* Download Modal */
:where(html.island-front) .ww-download-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
:where(html.island-front) .ww-download-modal.active {
    display: flex;
}
:where(html.island-front) .ww-download-modal-mask {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}
:where(html.island-front) .ww-download-modal-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px 24px;
    max-width: 520px;
    width: 90%;
    z-index: 1;
}
:where(html.island-front) .ww-download-modal-close {
    position: absolute;
    top: 10px; right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
:where(html.island-front) .ww-download-modal-close:hover {
    color: #333;
}
:where(html.island-front) .ww-download-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px;
    text-align: center;
}
/* 开始收藏弹窗：三个入口各占一行，点整行跳到对应页面 */
:where(html.island-front) .ww-start-box { max-width: 560px; }
:where(html.island-front) .ww-start-lead {
    font-size: 13px;
    color: var(--ww-text-secondary);
    text-align: center;
    margin: -12px 0 18px;
}
:where(html.island-front) .ww-start-tabs { display: flex; flex-direction: column; gap: 12px; }
:where(html.island-front) .ww-start-tab {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    text-decoration: none;
    background: var(--ww-bg);
    border: 1px solid var(--ww-border);
    border-radius: var(--ww-radius);
    transition: border-color var(--ww-transition), background var(--ww-transition);
}
:where(html.island-front) .ww-start-tab:hover { border-color: var(--ww-primary); background: var(--ww-card); }
:where(html.island-front) .ww-start-tab-ic {
    flex: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ww-primary);
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: 10px;
}
:where(html.island-front) .ww-start-tab:hover .ww-start-tab-ic { background: var(--ww-dark); color: #fff; border-color: var(--ww-dark); }
:where(html.island-front) .ww-start-tab-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
:where(html.island-front) .ww-start-tab-main b { font-size: 15px; font-weight: 600; color: var(--ww-text); }
:where(html.island-front) .ww-start-tab-main i {
    font-style: normal;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ww-text-secondary);
}
:where(html.island-front) .ww-start-tab-go { flex: none; color: var(--ww-text-light); }
:where(html.island-front) .ww-start-tab:hover .ww-start-tab-go { color: var(--ww-primary); }
@media (max-width: 520px) {
    :where(html.island-front) .ww-start-tab { gap: 10px; padding: 14px; }
    :where(html.island-front) .ww-start-tab-main i { display: none; }
}

:where(html.island-front) .ww-download-modal-body {
    display: flex;
    gap: 24px;
}
:where(html.island-front) .ww-download-modal-versions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 120px;
}
:where(html.island-front) .ww-download-version-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #666;
}
:where(html.island-front) .ww-download-version-item:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}
:where(html.island-front) .ww-download-version-item.active {
    border-color: #4CAF50;
    background: #f1f8f4;
    color: #4CAF50;
}
:where(html.island-front) .ww-download-modal-qr {
    flex: 1;
    text-align: center;
}
:where(html.island-front) .ww-download-qr-img {
    width: 160px;
    height: 160px;
    margin: 0 auto 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
:where(html.island-front) .ww-download-qr-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
:where(html.island-front) .ww-download-qr-tip {
    font-size: 13px;
    color: #999;
    margin: 0 0 12px;
}
:where(html.island-front) .ww-download-url-row {
    display: flex;
    gap: 6px;
    align-items: center;
}
:where(html.island-front) .ww-download-url-input {
    flex: 1;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 8px;
    font-size: 12px;
    color: #666;
    background: #f9f9f9;
    outline: none;
}
:where(html.island-front) .ww-download-url-input:focus {
    border-color: #4CAF50;
}
:where(html.island-front) .ww-download-copy-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 32px;
    padding: 0 10px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}
:where(html.island-front) .ww-download-copy-btn:hover {
    background: #43A047;
}

@media (max-width: 768px) {
    :where(html.island-front) .ww-download-modal-body {
        flex-direction: column;
    }
    :where(html.island-front) .ww-download-modal-versions {
        flex-direction: row;
        min-width: auto;
    }
    :where(html.island-front) .ww-download-version-item {
        flex: 1;
        justify-content: center;
        font-size: 13px;
        padding: 8px 10px;
    }
}

@media (max-width: 1024px) {
    :where(html.island-front) .ww-comm-cols-3 { columns: 3; grid-template-columns: repeat(3, 1fr); }
    :where(html.island-front) .ww-comm-cols-4 { columns: 3; grid-template-columns: repeat(3, 1fr); }
    :where(html.island-front) .ww-comm-cols-5 { columns: 4; grid-template-columns: repeat(4, 1fr); }
    :where(html.island-front) .ww-comm-cols-6 { columns: 4; grid-template-columns: repeat(4, 1fr); }
    :where(html.island-front) .ww-cd-layout { gap: 32px; }
    :where(html.island-front) .ww-cd-related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    :where(html.island-front) .ww-comm-cols-3, :where(html.island-front) .ww-comm-cols-4, :where(html.island-front) .ww-comm-cols-5, :where(html.island-front) .ww-comm-cols-6 { columns: 2; grid-template-columns: repeat(2, 1fr); }
    :where(html.island-front) .ww-comm-tabbar { flex-direction: column; align-items: flex-start; gap: 12px; }
    :where(html.island-front) .ww-comm-tabbar-right { display: none; }
    :where(html.island-front) .ww-cd-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    :where(html.island-front) .ww-cd-gallery {
        position: static;
    }
    :where(html.island-front) .ww-cd-music-disc {
        width: 200px;
        height: 200px;
    }
    :where(html.island-front) .ww-cd-title {
        font-size: 22px;
    }
    :where(html.island-front) .ww-cd-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    :where(html.island-front) .ww-comm-cols-3, :where(html.island-front) .ww-comm-cols-4, :where(html.island-front) .ww-comm-cols-5, :where(html.island-front) .ww-comm-cols-6 { columns: 2; grid-template-columns: repeat(2, 1fr); }
    :where(html.island-front) .ww-comm-card-body { padding: 10px; }
    :where(html.island-front) .ww-comm-card-title { font-size: 13px; }
    :where(html.island-front) .ww-comm-card-desc { display: none; }
    :where(html.island-front) .ww-cd-title {
        font-size: 20px;
    }
    :where(html.island-front) .ww-cd-related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    :where(html.island-front) .ww-cd-tabs { overflow-x: auto; scrollbar-width: none; }
    :where(html.island-front) .ww-cd-tabs::-webkit-scrollbar { display: none; }
    :where(html.island-front) .ww-cd-tab { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
}

/* ---------- Community Detail Author Link ---------- */
:where(html.island-front) .ww-cd-author-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
    transition: opacity var(--ww-transition);
}

:where(html.island-front) .ww-cd-author-link:hover {
    opacity: 0.75;
}

/* ---------- User Home Page ---------- */
:where(html.island-front) .ww-uh-banner {
    position: relative;
    min-height: 340px;
    background-size: cover;
    background-position: center;
    background-color: #81b29a;
    display: flex;
    align-items: flex-end;
    padding: 0;
}

:where(html.island-front) .ww-uh-banner-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
}

:where(html.island-front) .ww-uh-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-bottom: 40px;
    padding-top: 120px;
    width: 100%;
}

:where(html.island-front) .ww-uh-avatar-wrap {
    margin: 0 auto 16px;
}

:where(html.island-front) .ww-uh-avatar-wrap img,
:where(html.island-front) .ww-uh-avatar-ph {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.85);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: block;
    margin: 0 auto;
}

:where(html.island-front) .ww-uh-avatar-ph {
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
}

:where(html.island-front) .ww-uh-banner-content .ww-uh-name {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

:where(html.island-front) .ww-uh-banner-content .ww-uh-signature {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

:where(html.island-front) .ww-uh-actions {
    display: inline-flex;
    gap: 12px;
}

:where(html.island-front) .ww-uh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    background: rgba(255,255,255,0.92);
}

:where(html.island-front) .ww-uh-btn:hover {
    background: #fff;
    transform: translateY(-1px);
}

:where(html.island-front) .ww-uh-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

:where(html.island-front) .ww-uh-btn-follow.active {
    background: var(--ww-primary);
    color: #fff;
}

:where(html.island-front) .ww-uh-btn-follow.active:hover {
    background: var(--ww-primary-dark, #c0704e);
}

:where(html.island-front) .ww-uh-btn-msg {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}

:where(html.island-front) .ww-uh-btn-msg:hover {
    background: rgba(255,255,255,0.3);
}

:where(html.island-front) .ww-uh-section {
    padding: 32px 0 60px;
    background: var(--ww-bg);
}

:where(html.island-front) .ww-uh-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-uh-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ww-text-secondary);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--ww-transition);
    margin-bottom: -1px;
}

:where(html.island-front) .ww-uh-tab:hover {
    color: var(--ww-text);
}

:where(html.island-front) .ww-uh-tab.active {
    color: var(--ww-primary);
    border-bottom-color: var(--ww-primary);
}

:where(html.island-front) .ww-uh-tab-count {
    font-size: 12px;
    color: var(--ww-text-secondary);
    background: var(--ww-bg);
    padding: 1px 8px;
    border-radius: 10px;
    border: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-uh-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

:where(html.island-front) .ww-uh-card {
    background: var(--ww-card);
    border-radius: var(--ww-radius);
    border: 1px solid var(--ww-border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all var(--ww-transition);
}

:where(html.island-front) .ww-uh-card:hover {
    box-shadow: var(--ww-shadow-hover);
    transform: translateY(-3px);
}

:where(html.island-front) .ww-uh-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

:where(html.island-front) .ww-uh-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ww-transition);
}

:where(html.island-front) .ww-uh-card:hover .ww-uh-card-img img {
    transform: scale(1.05);
}

:where(html.island-front) .ww-uh-card-color {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

:where(html.island-front) .ww-uh-card-placeholder {
    width: 100%;
    height: 100%;
    background: var(--ww-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-uh-card-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(255,255,255,0.92);
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-uh-card-body {
    padding: 14px;
}

:where(html.island-front) .ww-uh-card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--ww-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(html.island-front) .ww-uh-card-desc {
    font-size: 12px;
    color: var(--ww-text-secondary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

:where(html.island-front) .ww-uh-card-meta {
    font-size: 12px;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-uh-empty {
    text-align: center;
    padding: 80px 0;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-uh-empty svg {
    margin-bottom: 16px;
    opacity: 0.3;
}

:where(html.island-front) .ww-uh-empty p {
    font-size: 14px;
}

@media (max-width: 1024px) {
    :where(html.island-front) .ww-uh-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    :where(html.island-front) .ww-uh-banner { min-height: 280px; }
    :where(html.island-front) .ww-uh-banner-content { padding-top: 100px; padding-bottom: 30px; }
    :where(html.island-front) .ww-uh-banner-content .ww-uh-name { font-size: 22px; }
    :where(html.island-front) .ww-uh-actions { flex-wrap: wrap; justify-content: center; }
    :where(html.island-front) .ww-uh-btn { padding: 8px 20px; font-size: 13px; }
    :where(html.island-front) .ww-uh-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (max-width: 480px) {
    :where(html.island-front) .ww-uh-banner { min-height: 240px; }
    :where(html.island-front) .ww-uh-avatar-wrap img, :where(html.island-front) .ww-uh-avatar-ph { width: 72px; height: 72px; }
    :where(html.island-front) .ww-uh-banner-content .ww-uh-name { font-size: 20px; }
    :where(html.island-front) .ww-uh-btn { padding: 8px 16px; font-size: 13px; }
    :where(html.island-front) .ww-uh-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    :where(html.island-front) .ww-uh-card-body { padding: 10px; }
    :where(html.island-front) .ww-uh-card-title { font-size: 13px; }
    :where(html.island-front) .ww-uh-card-desc { display: none; }
}

/* ============================================
   Auth — Login / Register
   ============================================ */

:where(html.island-front) .ww-auth-main {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

:where(html.island-front) .ww-auth-card {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: var(--ww-radius-lg);
    padding: 40px 36px;
    box-shadow: var(--ww-shadow);
}

:where(html.island-front) .ww-auth-header {
    text-align: center;
    margin-bottom: 28px;
}

:where(html.island-front) .ww-auth-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ww-dark);
    margin-bottom: 6px;
}

:where(html.island-front) .ww-auth-subtitle {
    font-size: 14px;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-auth-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--ww-radius-sm);
    font-size: 13px;
    margin-bottom: 20px;
}

:where(html.island-front) .ww-auth-msg-error {
    background: #fef2f2;
    color: var(--ww-error);
    border: 1px solid #fecaca;
}

:where(html.island-front) .ww-auth-msg-success {
    background: #f0fdf4;
    color: var(--ww-success);
    border: 1px solid #bbf7d0;
}

:where(html.island-front) .ww-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-auth-tab {
    flex: 1;
    padding: 10px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--ww-text-secondary);
    cursor: pointer;
    transition: color var(--ww-transition), border-color var(--ww-transition);
}

:where(html.island-front) .ww-auth-tab:hover {
    color: var(--ww-text);
}

:where(html.island-front) .ww-auth-tab.active {
    color: var(--ww-primary);
    border-bottom-color: var(--ww-primary);
}

:where(html.island-front) .ww-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

:where(html.island-front) .ww-auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

:where(html.island-front) .ww-auth-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ww-text);
}

:where(html.island-front) .ww-auth-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--ww-text);
    background: var(--ww-bg);
    border: 1px solid var(--ww-border);
    border-radius: var(--ww-radius-sm);
    outline: none;
    transition: border-color var(--ww-transition);
}

:where(html.island-front) .ww-auth-input:focus {
    border-color: var(--ww-primary);
}

:where(html.island-front) .ww-auth-input::placeholder {
    color: #b0b8c1;
}

:where(html.island-front) .ww-auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

:where(html.island-front) .ww-auth-input-wrap .ww-auth-input {
    padding-right: 44px;
}

:where(html.island-front) .ww-auth-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: var(--ww-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

:where(html.island-front) .ww-auth-eye:hover {
    color: var(--ww-text);
}

:where(html.island-front) .ww-auth-code-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ww-primary);
    background: none;
    border: 1px solid var(--ww-primary);
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--ww-transition), color var(--ww-transition);
}

:where(html.island-front) .ww-auth-code-btn:hover {
    background: var(--ww-primary);
    color: #fff;
}

:where(html.island-front) .ww-auth-code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

:where(html.island-front) .ww-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

:where(html.island-front) .ww-auth-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ww-text-secondary);
    cursor: pointer;
}

:where(html.island-front) .ww-auth-check input[type="checkbox"] {
    accent-color: var(--ww-primary);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

:where(html.island-front) .ww-auth-check a {
    color: var(--ww-primary);
    text-decoration: none;
}

:where(html.island-front) .ww-auth-check a:hover {
    text-decoration: underline;
}

:where(html.island-front) .ww-auth-check-agree {
    font-size: 12px;
}

:where(html.island-front) .ww-auth-link {
    font-size: 13px;
    color: var(--ww-primary);
    text-decoration: none;
}

:where(html.island-front) .ww-auth-link:hover {
    text-decoration: underline;
}

:where(html.island-front) .ww-auth-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--ww-primary);
    border: none;
    border-radius: var(--ww-radius-sm);
    cursor: pointer;
    transition: background var(--ww-transition);
    margin-top: 4px;
}

:where(html.island-front) .ww-auth-btn:hover {
    background: var(--ww-primary-dark);
}

:where(html.island-front) .ww-auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 20px;
    color: var(--ww-text-secondary);
    font-size: 12px;
}

:where(html.island-front) .ww-auth-divider::before,
:where(html.island-front) .ww-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ww-border);
}

:where(html.island-front) .ww-auth-oauth {
    display: flex;
    justify-content: center;
    gap: 16px;
}

:where(html.island-front) .ww-auth-oauth-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1px solid var(--ww-border);
    border-radius: var(--ww-radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--ww-text);
    background: var(--ww-card);
    transition: border-color var(--ww-transition), box-shadow var(--ww-transition);
}

:where(html.island-front) .ww-auth-oauth-btn:hover {
    border-color: var(--ww-text-secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

:where(html.island-front) .ww-auth-oauth-qq:hover {
    border-color: #faad08;
}

:where(html.island-front) .ww-auth-oauth-alipay:hover {
    border-color: #079adf;
}

:where(html.island-front) .ww-auth-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 10px 24px;
    background: var(--ww-dark);
    color: #fff;
    font-size: 14px;
    border-radius: var(--ww-radius-sm);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10000;
    pointer-events: none;
}

:where(html.island-front) .ww-auth-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
    :where(html.island-front) .ww-auth-card {
        padding: 28px 20px;
        border-radius: var(--ww-radius);
    }
    :where(html.island-front) .ww-auth-main {
        padding: 30px 0;
    }
    :where(html.island-front) .ww-auth-title {
        font-size: 20px;
    }
    :where(html.island-front) .ww-auth-oauth {
        flex-direction: column;
        align-items: center;
    }
    :where(html.island-front) .ww-auth-oauth-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Material Library (Stream) Page ---------- */
:where(html.island-front) .ww-stream-main {
    padding: 110px 0 80px;
    background: var(--ww-bg);
    min-height: 100vh;
}

:where(html.island-front) .ww-stream-tabbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-stream-tabbar-left {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

:where(html.island-front) .ww-stream-tabbar-left::-webkit-scrollbar {
    display: none;
}

:where(html.island-front) .ww-stream-tab {
    padding: 6px 16px;
    font-size: 14px;
    color: var(--ww-text-secondary);
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    transition: all var(--ww-transition);
}

:where(html.island-front) .ww-stream-tab:hover {
    color: var(--ww-text);
    background: var(--ww-card);
}

:where(html.island-front) .ww-stream-tab.active {
    color: var(--ww-primary);
    background: rgba(224, 122, 95, 0.08);
    font-weight: 600;
}

:where(html.island-front) .ww-stream-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

:where(html.island-front) .ww-stream-card {
    background: var(--ww-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--ww-border);
    transition: all var(--ww-transition);
    display: block;
    text-decoration: none;
    color: inherit;
}

:where(html.island-front) .ww-stream-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ww-shadow-hover);
    border-color: transparent;
}

:where(html.island-front) .ww-stream-card-img {
    position: relative;
    overflow: hidden;
    background: var(--ww-bg);
    aspect-ratio: 4/3;
}

:where(html.island-front) .ww-stream-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

:where(html.island-front) .ww-stream-card:hover .ww-stream-card-img img {
    transform: scale(1.05);
}

:where(html.island-front) .ww-stream-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ww-text-secondary);
    opacity: 0.3;
}

:where(html.island-front) .ww-stream-card-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: var(--ww-primary);
}

:where(html.island-front) .ww-stream-card-type {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    background: rgba(0,0,0,0.6);
}

:where(html.island-front) .ww-stream-card-body {
    padding: 14px;
}

:where(html.island-front) .ww-stream-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ww-text);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

:where(html.island-front) .ww-stream-card-desc {
    font-size: 13px;
    color: var(--ww-text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

:where(html.island-front) .ww-stream-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-stream-card-stats {
    display: flex;
    gap: 10px;
}

:where(html.island-front) .ww-stream-card-stat {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--ww-text-secondary);
    opacity: 0.7;
}

:where(html.island-front) .ww-stream-card-stat svg {
    flex-shrink: 0;
}

:where(html.island-front) .ww-stream-card-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

:where(html.island-front) .ww-stream-card-avatar-ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ww-border);
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-stream-card-owner {
    gap: 5px;
}

:where(html.island-front) .ww-stream-card-owner-name {
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:where(html.island-front) .ww-stream-card-time {
    font-size: 11px;
    color: var(--ww-text-secondary);
    opacity: 0.5;
}

:where(html.island-front) .ww-stream-card-views {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--ww-text-secondary);
    opacity: 0.7;
}

:where(html.island-front) .ww-stream-card-views svg {
    flex-shrink: 0;
}

:where(html.island-front) .ww-stream-empty {
    text-align: center;
    padding: 80px 0;
}

:where(html.island-front) .ww-stream-empty svg {
    color: var(--ww-text-secondary);
    opacity: 0.3;
    margin-bottom: 16px;
}

:where(html.island-front) .ww-stream-empty p {
    font-size: 15px;
    color: var(--ww-text-secondary);
    margin-bottom: 20px;
}

/* ---------- Material Detail Page ---------- */
:where(html.island-front) .ww-mat-section {
    padding: 110px 0 80px;
    background: var(--ww-bg);
    min-height: 100vh;
}

:where(html.island-front) .ww-mat-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

:where(html.island-front) .ww-mat-content {
    background: var(--ww-card);
    border-radius: 12px;
    border: 1px solid var(--ww-border);
    padding: 32px;
}

:where(html.island-front) .ww-mat-comments {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-mat-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ww-text-secondary);
    margin-bottom: 20px;
}

:where(html.island-front) .ww-mat-breadcrumb a {
    color: var(--ww-text-secondary);
    text-decoration: none;
    transition: color var(--ww-transition);
}

:where(html.island-front) .ww-mat-breadcrumb a:hover {
    color: var(--ww-primary);
}

:where(html.island-front) .ww-mat-breadcrumb span {
    color: var(--ww-text);
    font-weight: 500;
}

:where(html.island-front) .ww-mat-breadcrumb svg {
    flex-shrink: 0;
    opacity: 0.4;
}

:where(html.island-front) .ww-mat-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--ww-text);
    line-height: 1.3;
    margin-bottom: 16px;
}

:where(html.island-front) .ww-mat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

:where(html.island-front) .ww-mat-tag {
    padding: 4px 12px;
    font-size: 12px;
    color: var(--ww-primary);
    background: rgba(224, 122, 95, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(224, 122, 95, 0.15);
}

:where(html.island-front) .ww-mat-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-mat-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-mat-meta-item svg {
    flex-shrink: 0;
    opacity: 0.6;
}

:where(html.island-front) .ww-mat-owner-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--ww-text);
    font-weight: 500;
}
:where(html.island-front) .ww-mat-owner-link:hover {
    color: var(--ww-primary);
}
:where(html.island-front) .ww-mat-owner-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
:where(html.island-front) .ww-mat-owner-avatar-ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ww-bg);
    color: var(--ww-text-secondary);
}
:where(html.island-front) .ww-mat-owner-name {
    font-size: 13px;
}
:where(html.island-front) .ww-mat-sidebar-user {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--ww-text);
    font-weight: 500;
}
:where(html.island-front) .ww-mat-sidebar-user:hover {
    color: var(--ww-primary);
}
:where(html.island-front) .ww-mat-sidebar-user-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

:where(html.island-front) .ww-mat-cover {
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--ww-bg);
}

:where(html.island-front) .ww-mat-cover img {
    width: 100%;
    display: block;
}

:where(html.island-front) .ww-mat-desc-block {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--ww-bg);
    border-radius: 8px;
    border-left: 3px solid var(--ww-primary);
}

:where(html.island-front) .ww-mat-desc-block p {
    font-size: 14px;
    color: var(--ww-text-secondary);
    line-height: 1.8;
    margin: 0;
}

:where(html.island-front) .ww-mat-content-body {
    font-size: 15px;
    color: var(--ww-text);
    line-height: 1.8;
}

:where(html.island-front) .ww-mat-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

:where(html.island-front) .ww-mat-content-body h2,
:where(html.island-front) .ww-mat-content-body h3,
:where(html.island-front) .ww-mat-content-body h4 {
    margin: 24px 0 12px;
    font-weight: 600;
    color: var(--ww-text);
}

:where(html.island-front) .ww-mat-content-body h2 { font-size: 20px; }
:where(html.island-front) .ww-mat-content-body h3 { font-size: 17px; }
:where(html.island-front) .ww-mat-content-body h4 { font-size: 15px; }

:where(html.island-front) .ww-mat-content-body p {
    margin-bottom: 12px;
}

:where(html.island-front) .ww-mat-content-body a {
    color: var(--ww-primary);
    text-decoration: underline;
}

:where(html.island-front) .ww-mat-content-body pre {
    background: var(--ww-bg);
    border: 1px solid var(--ww-border);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
    margin: 16px 0;
}

:where(html.island-front) .ww-mat-content-body code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
}

:where(html.island-front) .ww-mat-content-body ul,
:where(html.island-front) .ww-mat-content-body ol {
    padding-left: 24px;
    margin-bottom: 12px;
    list-style: disc;
}

:where(html.island-front) .ww-mat-content-body ol {
    list-style: decimal;
}

:where(html.island-front) .ww-mat-content-body li {
    margin-bottom: 4px;
}

:where(html.island-front) .ww-mat-download-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-mat-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--ww-primary);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--ww-transition);
}

:where(html.island-front) .ww-mat-download-btn:hover {
    background: var(--ww-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.3);
}

:where(html.island-front) .ww-mat-download-size {
    font-size: 13px;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-mat-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

:where(html.island-front) .ww-mat-sidebar-card {
    background: var(--ww-card);
    border-radius: 12px;
    border: 1px solid var(--ww-border);
    padding: 20px;
}

:where(html.island-front) .ww-mat-sidebar-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ww-text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-mat-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:where(html.island-front) .ww-mat-sidebar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

:where(html.island-front) .ww-mat-sidebar-label {
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-mat-sidebar-value {
    color: var(--ww-text);
    font-weight: 500;
}

:where(html.island-front) .mat-src-acts {
    display: flex;
    align-items: center;
    gap: 6px;
}

:where(html.island-front) .mat-src-open {
    display: inline-block;
    padding: 2px 9px;
    border: 1px solid var(--ww-dark);
    border-radius: 5px;
    font-size: 11.5px;
    color: var(--ww-dark);
    background: var(--ww-card);
    text-decoration: none;
}

:where(html.island-front) .mat-src-open:hover {
    background: var(--ww-dark);
    color: #fff;
}

:where(html.island-front) .mat-src-copy {
    background: none;
    border: 1px solid var(--ww-border);
    border-radius: 5px;
    padding: 2px 9px;
    font-size: 11.5px;
    color: var(--ww-text-secondary);
    cursor: pointer;
    font-family: inherit;
}

:where(html.island-front) .mat-src-copy:hover {
    border-color: var(--ww-dark);
    color: var(--ww-dark);
}

:where(html.island-front) .ww-mat-related {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:where(html.island-front) .ww-mat-related-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: all var(--ww-transition);
    padding: 6px;
    border-radius: 8px;
}

:where(html.island-front) .ww-mat-related-item:hover {
    background: var(--ww-bg);
    color: inherit;
}

:where(html.island-front) .ww-mat-related-img {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--ww-bg);
}

:where(html.island-front) .ww-mat-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

:where(html.island-front) .ww-mat-related-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ww-text-secondary);
    opacity: 0.3;
}

:where(html.island-front) .ww-mat-related-info {
    flex: 1;
    min-width: 0;
}

:where(html.island-front) .ww-mat-related-info h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--ww-text);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

:where(html.island-front) .ww-mat-related-info span {
    font-size: 12px;
    color: var(--ww-text-secondary);
    opacity: 0.7;
}

/* ---------- Material Pages Responsive ---------- */
@media (max-width: 1024px) {
    :where(html.island-front) .ww-stream-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    :where(html.island-front) .ww-mat-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    :where(html.island-front) .ww-stream-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    :where(html.island-front) .ww-stream-card-body {
        padding: 10px;
    }
    :where(html.island-front) .ww-stream-card-title {
        font-size: 13px;
    }
    :where(html.island-front) .ww-stream-card-desc {
        display: none;
    }
    :where(html.island-front) .ww-mat-layout {
        grid-template-columns: 1fr;
    }
    :where(html.island-front) .ww-mat-content {
        padding: 20px;
    }
    :where(html.island-front) .ww-mat-title {
        font-size: 22px;
    }
    :where(html.island-front) .ww-mat-download-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    :where(html.island-front) .ww-stream-grid {
        grid-template-columns: 1fr;
    }
    :where(html.island-front) .ww-stream-card-desc {
        display: block;
    }
    :where(html.island-front) .ww-mat-content {
        padding: 16px;
    }
    :where(html.island-front) .ww-mat-title {
        font-size: 20px;
    }
    :where(html.island-front) .ww-mat-meta-row {
        gap: 10px;
    }
}

/* ---------- Hot Ranking Page ---------- */
:where(html.island-front) .ww-hot-page {
    padding: 110px 0 60px;
}

:where(html.island-front) .ww-hot-header {
    margin-bottom: 32px;
}

:where(html.island-front) .ww-hot-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--ww-text);
    margin-bottom: 6px;
}

:where(html.island-front) .ww-hot-desc {
    font-size: 14px;
    color: var(--ww-text-secondary);
}

/* Tabs */
:where(html.island-front) .ww-hot-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

:where(html.island-front) .ww-hot-tabs {
    display: flex;
    gap: 6px;
    background: var(--ww-bg);
    border: 1px solid var(--ww-border);
    border-radius: 10px;
    padding: 4px;
    width: fit-content;
}

/* Period switch (周/月/总榜) */
:where(html.island-front) .ww-hot-periods {
    display: flex;
    gap: 4px;
    background: var(--ww-bg);
    border: 1px solid var(--ww-border);
    border-radius: 10px;
    padding: 4px;
    width: fit-content;
    flex-shrink: 0;
}

:where(html.island-front) .ww-hot-period-btn {
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ww-text-secondary);
    background: none;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s;
}

:where(html.island-front) .ww-hot-period-btn:hover {
    color: var(--ww-text);
}

:where(html.island-front) .ww-hot-period-btn.active {
    color: var(--ww-text);
    background: var(--ww-card);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

:where(html.island-front) .ww-hot-period {
    display: none;
}

:where(html.island-front) .ww-hot-period.active {
    display: block;
}

:where(html.island-front) .ww-hot-tab {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ww-text-secondary);
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

:where(html.island-front) .ww-hot-tab:hover {
    color: var(--ww-text);
}

:where(html.island-front) .ww-hot-tab.active {
    color: var(--ww-text);
    background: var(--ww-card);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Panels */
:where(html.island-front) .ww-hot-panel {
    display: none;
}

:where(html.island-front) .ww-hot-panel.active {
    display: block;
}

/* List */
:where(html.island-front) .ww-hot-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--ww-border);
    border: 1px solid var(--ww-border);
    border-radius: var(--ww-radius);
    overflow: hidden;
}

:where(html.island-front) .ww-hot-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--ww-card);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

:where(html.island-front) .ww-hot-row:hover {
    background: #faf9f6;
}

:where(html.island-front) .ww-hot-row-top {
    background: #fff;
}

:where(html.island-front) .ww-hot-row-top:hover {
    background: #fef9f6;
}

/* Rank number */
:where(html.island-front) .ww-hot-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--ww-text-secondary);
    border-radius: 8px;
    background: var(--ww-bg);
}

:where(html.island-front) .ww-hot-num-1 {
    color: #fff;
    background: #e07a5f;
}

:where(html.island-front) .ww-hot-num-2 {
    color: #fff;
    background: #f0b429;
}

:where(html.island-front) .ww-hot-num-3 {
    color: #fff;
    background: #81b29a;
}

/* Thumbnail */
:where(html.island-front) .ww-hot-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--ww-bg);
}

:where(html.island-front) .ww-hot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

:where(html.island-front) .ww-hot-thumb-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ww-text-secondary);
    opacity: 0.4;
}

/* Avatar */
:where(html.island-front) .ww-hot-avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ww-bg);
}

:where(html.island-front) .ww-hot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

:where(html.island-front) .ww-hot-avatar-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ww-text-secondary);
    opacity: 0.4;
}

/* Info */
:where(html.island-front) .ww-hot-info {
    flex: 1;
    min-width: 0;
}

:where(html.island-front) .ww-hot-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ww-text);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(html.island-front) .ww-hot-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

:where(html.island-front) .ww-hot-tag {
    font-size: 12px;
    color: var(--ww-primary);
    background: rgba(224, 122, 95, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

:where(html.island-front) .ww-hot-stat {
    font-size: 12px;
    color: var(--ww-text-secondary);
}

/* Score */
:where(html.island-front) .ww-hot-score {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

:where(html.island-front) .ww-hot-score-val {
    font-size: 20px;
    font-weight: 700;
    color: var(--ww-primary);
    line-height: 1.2;
}

:where(html.island-front) .ww-hot-score-label {
    font-size: 11px;
    color: var(--ww-text-secondary);
}

/* Empty */
:where(html.island-front) .ww-hot-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--ww-text-secondary);
    font-size: 14px;
    border: 1px solid var(--ww-border);
    border-radius: var(--ww-radius);
}

/* ---------- Hot Page Responsive ---------- */
@media (max-width: 768px) {
    :where(html.island-front) .ww-hot-page {
        padding: 80px 0 40px;
    }

    :where(html.island-front) .ww-hot-title {
        font-size: 22px;
    }

    :where(html.island-front) .ww-hot-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    :where(html.island-front) .ww-hot-tabs {
        width: 100%;
    }

    :where(html.island-front) .ww-hot-periods {
        width: 100%;
    }

    :where(html.island-front) .ww-hot-period-btn {
        flex: 1;
        text-align: center;
        padding: 7px 12px;
        font-size: 12.5px;
    }

    :where(html.island-front) .ww-hot-tab {
        flex: 1;
        text-align: center;
        padding: 8px 12px;
        font-size: 13px;
    }

    :where(html.island-front) .ww-hot-row {
        padding: 12px 14px;
        gap: 12px;
    }

    :where(html.island-front) .ww-hot-thumb,
    :where(html.island-front) .ww-hot-avatar {
        width: 44px;
        height: 44px;
    }

    :where(html.island-front) .ww-hot-num {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    :where(html.island-front) .ww-hot-name {
        font-size: 14px;
    }

    :where(html.island-front) .ww-hot-score-val {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    :where(html.island-front) .ww-hot-row {
        padding: 10px 12px;
        gap: 10px;
    }

    :where(html.island-front) .ww-hot-thumb,
    :where(html.island-front) .ww-hot-avatar {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    :where(html.island-front) .ww-hot-avatar {
        border-radius: 50%;
    }

    :where(html.island-front) .ww-hot-num {
        width: 24px;
        height: 24px;
        font-size: 12px;
        border-radius: 6px;
    }

    :where(html.island-front) .ww-hot-name {
        font-size: 13px;
        margin-bottom: 4px;
    }

    :where(html.island-front) .ww-hot-stat {
        font-size: 11px;
    }

    :where(html.island-front) .ww-hot-score {
        min-width: 48px;
    }

    :where(html.island-front) .ww-hot-score-val {
        font-size: 15px;
    }

    :where(html.island-front) .ww-hot-score-label {
        font-size: 10px;
    }
}

/* ============================================
   工作台 Workspace
   ============================================ */

:where(html.island-front) .ww-workspace-section {
    padding: 110px 0 60px;
}

:where(html.island-front) .ww-workspace-cat-panel.hidden {
    display: none;
}

/* Empty state */
:where(html.island-front) .ww-workspace-empty {
    text-align: center;
    padding: 60px 20px;
    color: #bbb;
}

:where(html.island-front) .ww-workspace-empty svg {
    margin-bottom: 12px;
    opacity: 0.4;
}

:where(html.island-front) .ww-workspace-empty p {
    margin: 0 0 12px;
    font-size: 15px;
}

:where(html.island-front) .ww-workspace-empty-link {
    color: var(--ww-primary);
    font-size: 14px;
    text-decoration: none;
}

:where(html.island-front) .ww-workspace-empty-link:hover {
    text-decoration: underline;
}

/* Demo notice */
:where(html.island-front) .ww-workspace-demo-notice {
    margin-top: 32px;
    padding: 14px 20px;
    background: #fff8f0;
    border: 1px solid #ffe0c0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #b45309;
}

:where(html.island-front) .ww-workspace-demo-notice svg {
    flex-shrink: 0;
    color: #d97706;
}

:where(html.island-front) .ww-workspace-demo-notice a {
    color: var(--ww-primary);
    text-decoration: none;
    font-weight: 500;
}

:where(html.island-front) .ww-workspace-demo-notice a:hover {
    text-decoration: underline;
}

/* Card date in footer */
:where(html.island-front) .ww-comm-card-date,
:where(html.island-front) .ww-comm-card-type {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--ww-text-light);
}

/* Masonry placeholder */
:where(html.island-front) .ww-masonry-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    min-height: 180px;
    color: #ccc;
}

@media (max-width: 768px) {
    :where(html.island-front) .ww-workspace-section {
        padding: 80px 0 40px;
    }
    :where(html.island-front) .ww-comm-tabbar {
        flex-direction: row;
        align-items: center;
    }
    :where(html.island-front) .ww-comm-tabbar-left {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

/* ============================================
   页面加载动画
   ============================================ */

:where(html.island-front) .page-loader {
    position: fixed;
    inset: 0;
    background: var(--ww-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

:where(html.island-front) .page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

:where(html.island-front) .loader-flow {
    display: flex;
    gap: 12px;
    align-items: center;
}

:where(html.island-front) .loader-flow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ww-primary);
    animation: flowDot 1.4s ease-in-out infinite;
}

:where(html.island-front) .loader-flow-dot:nth-child(2) {
    animation-delay: 0.2s;
}

:where(html.island-front) .loader-flow-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes flowDot {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   Header 搜索下拉
   ============================================ */

:where(html.island-front) .ww-search-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

:where(html.island-front) .ww-search-modal.open {
    opacity: 1;
    visibility: visible;
}

:where(html.island-front) .ww-search-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
}

:where(html.island-front) .ww-search-modal-dialog {
    position: relative;
    width: 90%;
    max-width: 640px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform: translateY(-16px) scale(0.97);
    transition: transform 0.25s ease;
    overflow: hidden;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
}

:where(html.island-front) .ww-search-modal.open .ww-search-modal-dialog {
    transform: translateY(0) scale(1);
}

:where(html.island-front) .ww-search-modal-header {
    padding: 20px 24px 0;
}

:where(html.island-front) .ww-search-modal-field {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--ww-bg);
    border: 1.5px solid var(--ww-border);
    border-radius: 50px;
    padding: 0 8px 0 18px;
    transition: border-color 0.2s;
}

:where(html.island-front) .ww-search-modal-field:focus-within {
    border-color: var(--ww-primary);
}

:where(html.island-front) .ww-search-modal-icon {
    color: var(--ww-text-secondary);
    flex-shrink: 0;
}

:where(html.island-front) .ww-search-modal-input {
    flex: 1;
    height: 48px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--ww-text);
    outline: none;
}

:where(html.island-front) .ww-search-modal-input::placeholder {
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-search-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ww-text-secondary);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
    border: none;
    background: none;
}

:where(html.island-front) .ww-search-modal-close:hover {
    background: rgba(0,0,0,0.06);
    color: var(--ww-text);
}

:where(html.island-front) .ww-search-modal-body {
    padding: 16px 24px 24px;
    overflow-y: auto;
    flex: 1;
}

/* Search tabs & results */
:where(html.island-front) .ws-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--ww-border);
    padding-bottom: 8px;
}

:where(html.island-front) .ws-tab {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ww-text-secondary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    border: none;
    font-family: inherit;
}

:where(html.island-front) .ws-tab:hover {
    color: var(--ww-text);
}

:where(html.island-front) .ws-tab.active {
    background: var(--ww-primary);
    color: #fff;
}

:where(html.island-front) .ws-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: var(--ww-radius-sm);
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}

:where(html.island-front) .ws-item:hover {
    background: var(--ww-bg);
    color: inherit;
}

:where(html.island-front) .ws-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--ww-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ws-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-front) .ws-item-icon svg {
    width: 20px;
    height: 20px;
}

:where(html.island-front) .ws-item-info {
    flex: 1;
    min-width: 0;
}

:where(html.island-front) .ws-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ww-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(html.island-front) .ws-item-desc {
    font-size: 12px;
    color: var(--ww-text-secondary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(html.island-front) .ws-empty {
    text-align: center;
    padding: 24px;
    color: var(--ww-text-secondary);
    font-size: 14px;
}

/* 搜索弹窗底部：带着当前选中的类型进整页结果 */
:where(html.island-front) .ws-more {
    display: block;
    text-align: center;
    padding: 10px 0 2px;
    font-size: 13px;
    color: var(--ww-text-secondary);
    text-decoration: none;
    border-top: 1px solid var(--ww-border);
    margin-top: 6px;
}

:where(html.island-front) .ws-more:hover {
    color: var(--ww-primary);
}

/* ============================================
   回到顶部
   ============================================ */

:where(html.island-front) .ww-back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    box-shadow: var(--ww-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ww-text-secondary);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--ww-transition);
    z-index: 100;
}

:where(html.island-front) .ww-back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

:where(html.island-front) .ww-back-top:hover {
    color: var(--ww-primary);
    border-color: var(--ww-primary);
}

/* ============================================
   Header 透明 → 非首页适配
   ============================================ */

:where(html.island-front) .ww-header-transparent {
    background: transparent;
}

:where(html.island-front) .ww-header-transparent .ww-nav-link,
:where(html.island-front) .ww-header-transparent .ww-header-search,
:where(html.island-front) .ww-header-transparent .ww-header-user,
:where(html.island-front) .ww-header-transparent .ww-header-username {
    color: #fff;
}

:where(html.island-front) .ww-header-transparent .ww-header-user {
    border-color: rgba(255,255,255,0.3);
}

:where(html.island-front) .ww-header-transparent .ww-header-user:hover {
    border-color: rgba(255,255,255,0.6);
}

/* ============================================
   额外响应式
   ============================================ */

@media (max-width: 768px) {
    :where(html.island-front) .ww-search-modal-dialog {
        width: 95%;
    }
    :where(html.island-front) .ww-search-modal-header {
        padding: 16px 16px 0;
    }
    :where(html.island-front) .ww-search-modal-body {
        padding: 12px 16px 16px;
    }
}

/* ============================================
   收藏集页面
   ============================================ */

:where(html.island-front) .ww-coll-section {
    padding: 110px 0 60px;
    min-height: 60vh;
}

:where(html.island-front) .ww-coll-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

:where(html.island-front) .ww-coll-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

:where(html.island-front) .ww-coll-back-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary, #999);
    text-decoration: none;
    transition: color 0.15s;
}
:where(html.island-front) .ww-coll-back-link:hover { color: var(--theme-primary, #e74c3c); }

:where(html.island-front) .ww-coll-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary, #333);
    margin: 0;
}

:where(html.island-front) .ww-coll-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

:where(html.island-front) .ww-coll-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    line-height: 1.4;
}
:where(html.island-front) .ww-coll-btn-primary {
    background: var(--theme-primary, #e74c3c);
    color: #fff;
}
:where(html.island-front) .ww-coll-btn-primary:hover { opacity: 0.9; }
:where(html.island-front) .ww-coll-btn-outline {
    background: #fff;
    color: var(--text-primary, #333);
    border: 1px solid var(--border-color, #e0e0e0);
}
:where(html.island-front) .ww-coll-btn-outline:hover { border-color: var(--theme-primary, #e74c3c); color: var(--theme-primary, #e74c3c); }

:where(html.island-front) .ww-coll-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}
:where(html.island-front) .ww-coll-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary, #666);
    text-decoration: none;
    background: var(--bg-secondary, #f5f5f5);
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
:where(html.island-front) .ww-coll-tab:hover { color: var(--text-primary, #333); }
:where(html.island-front) .ww-coll-tab.active {
    background: var(--theme-primary, #e74c3c);
    color: #fff;
}
:where(html.island-front) .ww-coll-tab-count {
    font-size: 11px;
    opacity: 0.7;
}

:where(html.island-front) .ww-coll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

:where(html.island-front) .ww-coll-card {
    background: #fff;
    border: 1px solid var(--border-color, #eee);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s, opacity 0.3s;
}
:where(html.island-front) .ww-coll-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

:where(html.island-front) .ww-coll-card-top { padding: 12px 14px 0; }

:where(html.island-front) .ww-coll-type-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}
:where(html.island-front) .ww-coll-type-url { background: #dbeafe; color: #2563eb; }
:where(html.island-front) .ww-coll-type-text { background: #fef3c7; color: #d97706; }
:where(html.island-front) .ww-coll-type-image { background: #d1fae5; color: #059669; }
:where(html.island-front) .ww-coll-type-file { background: #ede9fe; color: #7c3aed; }

:where(html.island-front) .ww-coll-card-preview {
    margin: 10px 14px 0;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
}
:where(html.island-front) .ww-coll-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
:where(html.island-front) .ww-coll-card-preview-url,
:where(html.island-front) .ww-coll-card-preview-text,
:where(html.island-front) .ww-coll-card-preview-file {
    color: var(--text-secondary, #ccc);
}
:where(html.island-front) .ww-coll-text-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    user-select: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 20px;
}
:where(html.island-front) .ww-coll-text-cover.type-url { background: #dbeafe; color: #2563eb; }
:where(html.island-front) .ww-coll-text-cover.type-text { background: #fef3c7; color: #d97706; }
:where(html.island-front) .ww-coll-text-cover.type-image { background: #d1fae5; color: #059669; }
:where(html.island-front) .ww-coll-text-cover.type-file { background: #ede9fe; color: #7c3aed; }

:where(html.island-front) .ww-coll-card-body { padding: 12px 14px 8px; }
:where(html.island-front) .ww-coll-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #333);
    margin: 0 0 4px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
:where(html.island-front) .ww-coll-card-title a {
    color: inherit;
    text-decoration: none;
}
:where(html.island-front) .ww-coll-card-title a:hover { color: var(--theme-primary, #e74c3c); }
:where(html.island-front) .ww-coll-card-desc,
:where(html.island-front) .ww-coll-card-content,
:where(html.island-front) .ww-coll-card-url,
:where(html.island-front) .ww-coll-card-file {
    font-size: 12px;
    color: var(--text-secondary, #999);
    margin: 0 0 4px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
:where(html.island-front) .ww-coll-card-url {
    font-family: monospace;
    font-size: 11px;
    color: var(--text-secondary, #bbb);
}

:where(html.island-front) .ww-coll-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 12px;
}
:where(html.island-front) .ww-coll-card-date {
    font-size: 11px;
    color: var(--text-secondary, #bbb);
}
:where(html.island-front) .ww-coll-card-actions {
    display: flex;
    gap: 4px;
}
:where(html.island-front) .ww-coll-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    border: none;
    background: none;
    color: var(--text-secondary, #999);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
:where(html.island-front) .ww-coll-card-action:hover {
    background: var(--bg-secondary, #f5f5f5);
    color: var(--theme-primary, #e74c3c);
}

:where(html.island-front) .ww-coll-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary, #ccc);
    gap: 12px;
}
:where(html.island-front) .ww-coll-empty p {
    font-size: 14px;
    margin: 0;
}

/* Category management */
:where(html.island-front) .ww-coll-cat-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
:where(html.island-front) .ww-coll-cat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.15s;
    position: relative;
}
:where(html.island-front) .ww-coll-cat-item:hover { background: var(--bg-hover, #f9f9f9); }
:where(html.island-front) .ww-coll-cat-drag {
    cursor: grab;
    color: var(--text-secondary, #ccc);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
:where(html.island-front) .ww-coll-cat-drag:active { cursor: grabbing; }
:where(html.island-front) .ww-coll-cat-cover {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-secondary, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    color: var(--text-secondary, #999);
}
:where(html.island-front) .ww-coll-cat-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
:where(html.island-front) .ww-coll-cat-info { flex: 1; min-width: 0; }
:where(html.island-front) .ww-coll-cat-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #333);
}
:where(html.island-front) .ww-coll-cat-desc {
    font-size: 12px;
    color: var(--text-secondary, #999);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
:where(html.island-front) .ww-coll-cat-count {
    font-size: 12px;
    color: var(--text-secondary, #999);
    flex-shrink: 0;
}
:where(html.island-front) .ww-coll-cat-actions {
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
:where(html.island-front) .ww-coll-cat-item:hover .ww-coll-cat-actions { opacity: 1; }

:where(html.island-front) .ww-coll-btn-sm {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid var(--border-color, #e0e0e0);
    background: #fff;
    cursor: pointer;
    color: var(--text-primary, #333);
    transition: border-color 0.15s, color 0.15s;
}
:where(html.island-front) .ww-coll-btn-sm:hover { border-color: var(--theme-primary, #e74c3c); color: var(--theme-primary, #e74c3c); }
:where(html.island-front) .ww-coll-btn-del:hover { border-color: #e74c3c; color: #e74c3c; }

:where(html.island-front) .ww-coll-dragging { opacity: 0.4; }
:where(html.island-front) .ww-coll-drag-over { background: var(--bg-hover, #f0f0f0); }

/* Modal */
:where(html.island-front) .ww-coll-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
:where(html.island-front) .ww-coll-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}
:where(html.island-front) .ww-coll-modal-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
:where(html.island-front) .ww-coll-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #eee);
}
:where(html.island-front) .ww-coll-modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary, #333);
}
:where(html.island-front) .ww-coll-modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    font-size: 20px;
    color: var(--text-secondary, #999);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
:where(html.island-front) .ww-coll-modal-close:hover { background: var(--bg-secondary, #f5f5f5); }
:where(html.island-front) .ww-coll-modal-body { padding: 20px; }
:where(html.island-front) .ww-coll-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--border-color, #eee);
}

/* Form */
:where(html.island-front) .ww-coll-form-card {
    background: #fff;
    border: 1px solid var(--border-color, #eee);
    border-radius: 12px;
    padding: 24px;
}
:where(html.island-front) .ww-coll-form-row {
    margin-bottom: 18px;
}
:where(html.island-front) .ww-coll-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #333);
    margin-bottom: 6px;
}
:where(html.island-front) .ww-coll-form-label em {
    color: #e74c3c;
    font-style: normal;
}
:where(html.island-front) .ww-coll-form-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-primary, #333);
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
:where(html.island-front) .ww-coll-form-input:focus { border-color: var(--theme-primary, #e74c3c); }
:where(html.island-front) textarea.ww-coll-form-input { resize: vertical; font-family: inherit; }

:where(html.island-front) .ww-coll-form-msg {
    font-size: 13px;
    margin: 8px 0;
    min-height: 20px;
}
:where(html.island-front) .ww-coll-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

/* Visibility options */
:where(html.island-front) .ww-coll-visibility-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
:where(html.island-front) .ww-coll-vis-opt {
    cursor: pointer;
    display: inline-flex;
}
:where(html.island-front) .ww-coll-vis-opt input[type="radio"] {
    display: none;
}
:where(html.island-front) .ww-coll-vis-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary, #666);
    transition: all 0.15s;
    background: #fff;
}
:where(html.island-front) .ww-coll-vis-label:hover {
    border-color: var(--theme-primary, #e74c3c);
    color: var(--theme-primary, #e74c3c);
}
:where(html.island-front) .ww-coll-vis-opt input[type="radio"]:checked + .ww-coll-vis-label {
    border-color: var(--theme-primary, #e74c3c);
    background: var(--theme-primary, #e74c3c);
    color: #fff;
}

/* Visibility badges */
:where(html.island-front) .ww-coll-card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
:where(html.island-front) .ww-coll-vis-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}
:where(html.island-front) .ww-coll-vis-private {
    background: #fff3e0;
    color: #f57c00;
}
:where(html.island-front) .ww-coll-vis-password {
    background: #e8eaf6;
    color: #3f51b5;
}

/* Type tabs */
:where(html.island-front) .ww-coll-type-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #eee);
    padding-bottom: 12px;
}
:where(html.island-front) .ww-coll-type-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary, #666);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
:where(html.island-front) .ww-coll-type-tab:hover { background: var(--bg-secondary, #f5f5f5); }
:where(html.island-front) .ww-coll-type-tab.active {
    background: var(--theme-primary, #e74c3c);
    color: #fff;
}

:where(html.island-front) .ww-coll-type-panel { display: none; }
:where(html.island-front) .ww-coll-type-panel.active { display: block; }

/* Upload area */
:where(html.island-front) .ww-coll-upload-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
:where(html.island-front) .ww-coll-upload-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px dashed var(--border-color, #ddd);
    border-radius: 8px;
    background: none;
    cursor: pointer;
    color: var(--text-secondary, #666);
    font-size: 13px;
    transition: border-color 0.15s, color 0.15s;
}
:where(html.island-front) .ww-coll-upload-btn:hover { border-color: var(--theme-primary, #e74c3c); color: var(--theme-primary, #e74c3c); }

:where(html.island-front) .ww-coll-upload-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color, #e8e8e8);
}
:where(html.island-front) .ww-coll-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
:where(html.island-front) .ww-coll-upload-rm {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

:where(html.island-front) .ww-coll-file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-secondary, #f5f5f5);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-primary, #333);
}
:where(html.island-front) .ww-coll-file-size {
    font-size: 12px;
    color: var(--text-secondary, #999);
}

/* Cover upload in category modal */
:where(html.island-front) .ww-coll-cover-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
:where(html.island-front) .ww-coll-cover-preview {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color, #e8e8e8);
}
:where(html.island-front) .ww-coll-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
:where(html.island-front) .ww-coll-cover-rm {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}
:where(html.island-front) .ww-coll-cover-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px dashed var(--border-color, #ddd);
    border-radius: 8px;
    background: none;
    cursor: pointer;
    color: var(--text-secondary, #666);
    font-size: 13px;
    transition: border-color 0.15s;
}
:where(html.island-front) .ww-coll-cover-btn:hover { border-color: var(--theme-primary, #e74c3c); color: var(--theme-primary, #e74c3c); }

/* Import page */
:where(html.island-front) .ww-coll-import-step {
    max-width: 600px;
}
:where(html.island-front) .ww-coll-import-desc {
    margin-bottom: 20px;
}
:where(html.island-front) .ww-coll-import-desc p {
    font-size: 14px;
    color: var(--text-primary, #333);
    margin: 0 0 16px;
}
:where(html.island-front) .ww-coll-import-help {
    background: var(--bg-secondary, #f9f9f9);
    border-radius: 8px;
    padding: 14px 16px;
}
:where(html.island-front) .ww-coll-import-help h4 {
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 8px;
    color: var(--text-primary, #333);
}
:where(html.island-front) .ww-coll-import-help ul {
    margin: 0;
    padding: 0 0 0 18px;
    font-size: 12px;
    color: var(--text-secondary, #666);
    line-height: 1.8;
}

:where(html.island-front) .ww-coll-import-upload {
    position: relative;
}
:where(html.island-front) .ww-coll-import-file {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}
:where(html.island-front) .ww-coll-import-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px;
    border: 2px dashed var(--border-color, #ddd);
    border-radius: 10px;
    color: var(--text-secondary, #999);
    font-size: 13px;
    transition: border-color 0.15s;
}
:where(html.island-front) .ww-coll-import-file-label:hover { border-color: var(--theme-primary, #e74c3c); }

:where(html.island-front) .ww-coll-import-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
:where(html.island-front) .ww-coll-import-result-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}
:where(html.island-front) .ww-coll-import-count {
    font-size: 13px;
    color: var(--text-secondary, #999);
}

:where(html.island-front) .ww-coll-import-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 16px;
}
:where(html.island-front) .ww-coll-import-actions-bottom {
    margin-top: 16px;
    margin-bottom: 0;
}

:where(html.island-front) .ww-coll-import-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color, #eee);
    border-radius: 8px;
}
:where(html.island-front) .ww-coll-import-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color, #f0f0f0);
    cursor: pointer;
    transition: background 0.1s;
}
:where(html.island-front) .ww-coll-import-item:last-child { border-bottom: none; }
:where(html.island-front) .ww-coll-import-item:hover { background: var(--bg-hover, #fafafa); }
:where(html.island-front) .ww-coll-import-check {
    margin-top: 3px;
    flex-shrink: 0;
}
:where(html.island-front) .ww-coll-import-item-info { flex: 1; min-width: 0; }
:where(html.island-front) .ww-coll-import-item-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #333);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
:where(html.island-front) .ww-coll-import-item-url {
    font-size: 11px;
    color: var(--text-secondary, #bbb);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: monospace;
}

@media (max-width: 768px) {
    :where(html.island-front) .ww-coll-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }
    :where(html.island-front) .ww-coll-header {
        flex-direction: column;
        align-items: flex-start;
    }
    :where(html.island-front) .ww-coll-form-card {
        padding: 16px;
    }
    :where(html.island-front) .ww-coll-cat-actions { opacity: 1; }
}

/* ── Memo ── */
:where(html.island-front) .ww-stream-card-pin {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    background: #ef4444;
}
:where(html.island-front) .ww-detail-pin-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #ef4444;
    background: rgba(239,68,68,0.1);
    vertical-align: middle;
    margin-left: 8px;
}
:where(html.island-front) .ww-memo-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 20px 0;
}
:where(html.island-front) .ww-memo-img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    max-height: 300px;
}
@media (max-width: 768px) {
    :where(html.island-front) .ww-memo-images {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }
    :where(html.island-front) .ww-memo-img {
        max-height: 200px;
    }
}

/* ---------- Pager (分页) ---------- */
:where(html.island-front) .ww-pager {
    display: flex;
    justify-content: center;
    padding: 44px 0 8px;
}
:where(html.island-front) .ww-pager ul.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}
:where(html.island-front) .ww-pager ul.pagination li a,
:where(html.island-front) .ww-pager ul.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--ww-radius-sm);
    border: 1px solid var(--ww-border);
    color: var(--ww-text);
    background: var(--ww-card);
    font-size: 14px;
    text-decoration: none;
    transition: border-color var(--ww-transition), background var(--ww-transition), color var(--ww-transition);
}
:where(html.island-front) .ww-pager ul.pagination li a:hover {
    border-color: var(--ww-dark);
    color: var(--ww-dark);
}
:where(html.island-front) .ww-pager ul.pagination li.active span {
    background: var(--ww-dark);
    border-color: var(--ww-dark);
    color: #fff;
}
:where(html.island-front) .ww-pager ul.pagination li.disabled span {
    opacity: .4;
    cursor: not-allowed;
}

/* ---------- User Home 分类 Tab ---------- */
:where(html.island-front) .ww-uh-cattabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 22px;
}
:where(html.island-front) .ww-uh-cattab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--ww-border);
    background: var(--ww-card);
    color: var(--ww-text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: border-color var(--ww-transition), color var(--ww-transition);
}
:where(html.island-front) .ww-uh-cattab span {
    font-size: 12px;
    opacity: .75;
}
:where(html.island-front) .ww-uh-cattab:hover {
    border-color: var(--ww-dark);
    color: var(--ww-text);
}
:where(html.island-front) .ww-uh-cattab.active {
    background: var(--ww-dark);
    border-color: var(--ww-dark);
    color: #fff;
}

/* ---------- Tags Page ---------- */
:where(html.island-front) .ww-tags-head {
    text-align: center;
    padding: 40px 0 32px;
}

:where(html.island-front) .ww-tags-head h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--ww-text-primary, #1a1a1a);
    margin-bottom: 8px;
}

:where(html.island-front) .ww-tags-head p {
    font-size: 14px;
    color: var(--ww-text-secondary, #888888);
}

:where(html.island-front) .ww-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding-bottom: 40px;
}

:where(html.island-front) .ww-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    font-size: 14px;
    color: var(--ww-text-primary, #1a1a1a);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

:where(html.island-front) .ww-tag-chip:hover {
    border-color: var(--ww-text-primary, #1a1a1a);
}

:where(html.island-front) .ww-tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

:where(html.island-front) .ww-tag-count {
    font-size: 12px;
    color: var(--ww-text-secondary, #888888);
    background: #f5f5f5;
    border-radius: 999px;
    padding: 1px 8px;
}

:where(html.island-front) .ww-tag-chip.active .ww-tag-count {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
}

:where(html.island-front) .ww-tag-notes {
    padding-bottom: 80px;
}

:where(html.island-front) .ww-tag-notes-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding-top: 10px;
    border-top: 1px solid #eeeeee;
}

:where(html.island-front) .ww-tag-notes-head h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ww-text-primary, #1a1a1a);
}

:where(html.island-front) .ww-tag-notes-count {
    font-size: 13px;
    color: var(--ww-text-secondary, #888888);
}

/* ---------- Mobile: User Home category scroll ---------- */
@media (max-width: 768px) {
    :where(html.island-front) .ww-uh-cattabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    :where(html.island-front) .ww-uh-cattabs::-webkit-scrollbar {
        display: none;
    }
    :where(html.island-front) .ww-uh-cattab {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* ---------- Mobile: Detail actions one row ---------- */
@media (max-width: 768px) {
    :where(html.island-front) .ww-cd-actions-row {
        flex-wrap: nowrap;
        width: 100%;
    }
    :where(html.island-front) .ww-cd-action-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 13px;
    }
    :where(html.island-front) .ww-cd-action-btn span:not(.ww-cd-action-count) {
        display: inline;
    }
    :where(html.island-front) .ww-cd-action-count {
        display: none;
    }
}

/* ---------- Static Pages (Contact, Privacy, Terms, etc.) ---------- */
:where(html.island-front) .ww-static-page {
    padding: 60px 0 80px;
    min-height: 100vh;
    background: var(--ww-bg);
}
:where(html.island-front) .ww-static-header {
    text-align: center;
    margin-bottom: 48px;
}
:where(html.island-front) .ww-static-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--ww-text);
    margin-bottom: 12px;
}
:where(html.island-front) .ww-static-header p {
    font-size: 15px;
    color: var(--ww-text-light);
}
:where(html.island-front) .ww-static-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Contact Page */
:where(html.island-front) .ww-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}
:where(html.island-front) .ww-contact-info h3,
:where(html.island-front) .ww-contact-form h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--ww-text);
}
:where(html.island-front) .ww-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}
:where(html.island-front) .ww-contact-item svg {
    flex-shrink: 0;
    color: var(--ww-primary);
}
:where(html.island-front) .ww-contact-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ww-text);
    margin-bottom: 4px;
}
:where(html.island-front) .ww-contact-item p {
    font-size: 14px;
    color: var(--ww-text-secondary);
    margin: 0;
}
:where(html.island-front) .ww-contact-qr {
    margin-top: 32px;
    text-align: center;
}
:where(html.island-front) .ww-contact-qr h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ww-text);
}
:where(html.island-front) .ww-contact-qr img {
    width: 150px;
    height: 150px;
    border: 1px solid var(--ww-border);
    border-radius: 8px;
}
:where(html.island-front) .ww-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
:where(html.island-front) .ww-form-group {
    margin-bottom: 16px;
}
:where(html.island-front) .ww-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ww-text);
    margin-bottom: 6px;
}
:where(html.island-front) .ww-form-group input,
:where(html.island-front) .ww-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--ww-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--ww-card);
    color: var(--ww-text);
    transition: border-color var(--ww-transition);
}
:where(html.island-front) .ww-form-group input:focus,
:where(html.island-front) .ww-form-group textarea:focus {
    outline: none;
    border-color: var(--ww-primary);
}
:where(html.island-front) .ww-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--ww-dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--ww-transition);
}
:where(html.island-front) .ww-btn-primary:hover {
    background: var(--ww-text);
}
:where(html.island-front) .ww-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--ww-card);
    color: var(--ww-text);
    border: 1px solid var(--ww-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--ww-transition);
}
:where(html.island-front) .ww-btn-secondary:hover {
    border-color: var(--ww-dark);
}

/* Join Us Page */
:where(html.island-front) .ww-join-section {
    margin-bottom: 48px;
}
:where(html.island-front) .ww-join-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--ww-text);
}
:where(html.island-front) .ww-join-section > p {
    font-size: 15px;
    color: var(--ww-text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}
:where(html.island-front) .ww-join-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
:where(html.island-front) .ww-benefit-item {
    text-align: center;
    padding: 32px 20px;
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: 12px;
}
:where(html.island-front) .ww-benefit-item svg {
    color: var(--ww-primary);
    margin-bottom: 16px;
}
:where(html.island-front) .ww-benefit-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ww-text);
}
:where(html.island-front) .ww-benefit-item p {
    font-size: 14px;
    color: var(--ww-text-secondary);
    margin: 0;
}
:where(html.island-front) .ww-join-positions h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--ww-text);
}
:where(html.island-front) .ww-position-item {
    padding: 24px;
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: 12px;
    margin-bottom: 20px;
}
:where(html.island-front) .ww-position-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ww-text);
}
:where(html.island-front) .ww-position-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
:where(html.island-front) .ww-position-tags span {
    padding: 4px 12px;
    background: var(--ww-bg);
    border: 1px solid var(--ww-border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--ww-text-secondary);
}
:where(html.island-front) .ww-position-item p {
    font-size: 14px;
    color: var(--ww-text-secondary);
    margin-bottom: 8px;
}
:where(html.island-front) .ww-position-item ul {
    margin: 8px 0 16px 20px;
    font-size: 14px;
    color: var(--ww-text-secondary);
    line-height: 1.7;
}
:where(html.island-front) .ww-join-cta {
    text-align: center;
    padding: 40px;
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: 12px;
    margin-top: 40px;
}
:where(html.island-front) .ww-join-cta h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ww-text);
}
:where(html.island-front) .ww-join-cta p {
    font-size: 15px;
    color: var(--ww-text-secondary);
    margin: 0;
}
:where(html.island-front) .ww-join-cta a {
    color: var(--ww-primary);
    text-decoration: none;
}

/* Legal Content (Privacy, Terms, Complaint) */
:where(html.island-front) .ww-legal-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--ww-text);
}
:where(html.island-front) .ww-legal-content h2:first-child {
    margin-top: 0;
}
:where(html.island-front) .ww-legal-content p {
    font-size: 15px;
    color: var(--ww-text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}
:where(html.island-front) .ww-legal-content ul,
:where(html.island-front) .ww-legal-content ol {
    margin: 12px 0 16px 24px;
    font-size: 15px;
    color: var(--ww-text-secondary);
    line-height: 1.8;
}
:where(html.island-front) .ww-legal-content li {
    margin-bottom: 8px;
}
:where(html.island-front) .ww-notice-box {
    margin-top: 32px;
    padding: 16px 20px;
    background: var(--ww-bg);
    border-left: 3px solid var(--ww-primary);
    border-radius: 8px;
    font-size: 14px;
    color: var(--ww-text-secondary);
}

/* Qualification Page */
:where(html.island-front) .ww-qualification-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
:where(html.island-front) .ww-qualification-item {
    padding: 32px 24px;
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: 12px;
    text-align: center;
}
:where(html.island-front) .ww-qualification-icon {
    color: var(--ww-primary);
    margin-bottom: 16px;
}
:where(html.island-front) .ww-qualification-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ww-text);
}
:where(html.island-front) .ww-qualification-item p {
    font-size: 14px;
    color: var(--ww-text-secondary);
    margin: 0;
}
:where(html.island-front) .ww-qualification-code {
    margin-top: 8px;
    font-size: 13px;
    color: var(--ww-text-light);
}
:where(html.island-front) .ww-qualification-info {
    margin-bottom: 48px;
}
:where(html.island-front) .ww-qualification-info h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--ww-text);
}
:where(html.island-front) .ww-info-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: 12px;
    overflow: hidden;
}
:where(html.island-front) .ww-info-table th,
:where(html.island-front) .ww-info-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--ww-border);
}
:where(html.island-front) .ww-info-table th {
    width: 160px;
    font-weight: 600;
    color: var(--ww-text);
    background: var(--ww-bg);
}
:where(html.island-front) .ww-info-table td {
    color: var(--ww-text-secondary);
}
:where(html.island-front) .ww-info-table tr:last-child th,
:where(html.island-front) .ww-info-table tr:last-child td {
    border-bottom: none;
}
:where(html.island-front) .ww-qualification-notice {
    padding: 24px;
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: 12px;
}
:where(html.island-front) .ww-qualification-notice h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ww-text);
}
:where(html.island-front) .ww-qualification-notice p {
    font-size: 15px;
    color: var(--ww-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Documentation Page */
:where(html.island-front) .ww-docs-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--ww-border);
    padding-bottom: 12px;
}
:where(html.island-front) .ww-docs-nav-item {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--ww-text-secondary);
    text-decoration: none;
    transition: background var(--ww-transition), color var(--ww-transition);
}
:where(html.island-front) .ww-docs-nav-item:hover {
    background: var(--ww-bg);
    color: var(--ww-text);
}
:where(html.island-front) .ww-docs-nav-item.active {
    background: var(--ww-dark);
    color: #fff;
}
:where(html.island-front) .ww-docs-content section {
    margin-bottom: 48px;
}
:where(html.island-front) .ww-docs-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--ww-text);
}
:where(html.island-front) .ww-docs-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--ww-text);
}
:where(html.island-front) .ww-docs-content p {
    font-size: 15px;
    color: var(--ww-text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}
:where(html.island-front) .ww-docs-content ul {
    margin: 12px 0 16px 24px;
    font-size: 15px;
    color: var(--ww-text-secondary);
    line-height: 1.7;
}
:where(html.island-front) .ww-faq-item {
    padding: 20px;
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: 12px;
    margin-bottom: 16px;
}
:where(html.island-front) .ww-faq-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--ww-text);
}
:where(html.island-front) .ww-faq-item p {
    font-size: 14px;
    color: var(--ww-text-secondary);
    margin: 0;
}
:where(html.island-front) .ww-docs-footer {
    text-align: center;
    padding: 32px;
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: 12px;
    margin-top: 48px;
}
:where(html.island-front) .ww-docs-footer p {
    font-size: 14px;
    color: var(--ww-text-secondary);
    margin: 0;
}

/* Plugin Guide Page */
:where(html.island-front) .ww-plg-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0 8px;
}
:where(html.island-front) .ww-plg-step {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: 12px;
}
:where(html.island-front) .ww-plg-step-no {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ww-dark);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
:where(html.island-front) .ww-plg-step-main {
    flex: 1;
    min-width: 0;
}
:where(html.island-front) .ww-plg-step-main h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 3px 0 8px;
    color: var(--ww-text);
}
:where(html.island-front) .ww-plg-step-main p {
    margin-bottom: 12px;
}
:where(html.island-front) .ww-plg-addr-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
:where(html.island-front) .ww-plg-addr {
    display: inline-flex;
    align-items: stretch;
    max-width: 100%;
    border: 1px solid var(--ww-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--ww-bg);
}
:where(html.island-front) .ww-plg-code {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    font-family: Consolas, Monaco, monospace;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ww-text);
    user-select: all;
    word-break: break-all;
}
:where(html.island-front) .ww-plg-inline-code {
    padding: 1px 5px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    color: var(--ww-text);
    background: var(--ww-bg);
    border: 1px solid var(--ww-border);
    border-radius: 4px;
}
:where(html.island-front) .ww-plg-act {
    flex-shrink: 0;
    padding: 6px 12px;
    border: none;
    border-left: 1px solid var(--ww-border);
    background: var(--ww-card);
    font-family: inherit;
    font-size: 12.5px;
    color: var(--ww-text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--ww-transition), color var(--ww-transition);
}
:where(html.island-front) .ww-plg-act:hover {
    background: var(--ww-dark);
    color: #fff;
}
:where(html.island-front) .ww-plg-table {
    margin: 20px 0 8px;
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: 12px;
    overflow: hidden;
}
:where(html.island-front) .ww-plg-table table {
    width: 100%;
    border-collapse: collapse;
}
:where(html.island-front) .ww-plg-table th,
:where(html.island-front) .ww-plg-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--ww-border);
}
:where(html.island-front) .ww-plg-table th {
    background: var(--ww-bg);
    font-weight: 600;
    color: var(--ww-text);
}
:where(html.island-front) .ww-plg-table td {
    color: var(--ww-text-secondary);
}
:where(html.island-front) .ww-plg-table th:first-child,
:where(html.island-front) .ww-plg-table td:first-child {
    width: 110px;
    color: var(--ww-text);
    font-weight: 500;
}
:where(html.island-front) .ww-plg-table tr:last-child th,
:where(html.island-front) .ww-plg-table tr:last-child td {
    border-bottom: none;
}
:where(html.island-front) .ww-plg-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}
@media (max-width: 768px) {
    :where(html.island-front) .ww-plg-table th:first-child,
    :where(html.island-front) .ww-plg-table td:first-child {
        width: auto;
    }
    :where(html.island-front) .ww-plg-table th,
    :where(html.island-front) .ww-plg-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    :where(html.island-front) .ww-plg-addr {
        width: 100%;
    }
}

/* App Download Page */
:where(html.island-front) .ww-download-platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
:where(html.island-front) .ww-download-card {
    padding: 32px 24px;
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: 12px;
    text-align: center;
}
:where(html.island-front) .ww-download-icon {
    color: var(--ww-primary);
    margin-bottom: 16px;
}
:where(html.island-front) .ww-download-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ww-text);
}
:where(html.island-front) .ww-download-version {
    font-size: 14px;
    color: var(--ww-text-secondary);
    margin-bottom: 4px;
}
:where(html.island-front) .ww-download-size {
    font-size: 13px;
    color: var(--ww-text-light);
    margin-bottom: 20px;
}
:where(html.island-front) .ww-download-qr {
    margin-bottom: 20px;
}
:where(html.island-front) .ww-download-qr img {
    width: 150px;
    height: 150px;
    border: 1px solid var(--ww-border);
    border-radius: 8px;
}
:where(html.island-front) .ww-download-btn {
    width: 100%;
}
:where(html.island-front) .ww-download-features {
    margin-bottom: 48px;
}
:where(html.island-front) .ww-download-features h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--ww-text);
    text-align: center;
}
:where(html.island-front) .ww-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
:where(html.island-front) .ww-feature-item {
    text-align: center;
    padding: 24px 16px;
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: 12px;
}
:where(html.island-front) .ww-feature-item svg {
    color: var(--ww-primary);
    margin-bottom: 12px;
}
:where(html.island-front) .ww-feature-item h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ww-text);
}
:where(html.island-front) .ww-feature-item p {
    font-size: 13px;
    color: var(--ww-text-secondary);
    margin: 0;
}
:where(html.island-front) .ww-download-notice {
    padding: 24px;
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: 12px;
    margin-bottom: 24px;
}
:where(html.island-front) .ww-download-notice h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ww-text);
}
:where(html.island-front) .ww-download-notice ul {
    margin: 0 0 0 24px;
    font-size: 14px;
    color: var(--ww-text-secondary);
    line-height: 1.7;
}
:where(html.island-front) .ww-download-contact {
    text-align: center;
    font-size: 14px;
    color: var(--ww-text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    :where(html.island-front) .ww-static-page {
        padding: 40px 0 60px;
    }
    :where(html.island-front) .ww-static-header h1 {
        font-size: 24px;
    }
    :where(html.island-front) .ww-contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    :where(html.island-front) .ww-form-row {
        grid-template-columns: 1fr;
    }
    :where(html.island-front) .ww-join-benefits {
        grid-template-columns: 1fr;
    }
    :where(html.island-front) .ww-qualification-grid {
        grid-template-columns: 1fr;
    }
    :where(html.island-front) .ww-download-platforms {
        grid-template-columns: 1fr;
    }
    :where(html.island-front) .ww-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    :where(html.island-front) .ww-docs-nav {
        flex-wrap: wrap;
    }
}

/* ---------- Mobile Bottom Navigation ---------- */
:where(html.island-front) .ww-mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    :where(html.island-front) .ww-mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: var(--ww-card);
        border-top: 1px solid var(--ww-border);
        z-index: 1000;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    :where(html.island-front) .ww-mobile-bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-decoration: none;
        color: var(--ww-text-light);
        font-size: 11px;
        transition: color var(--ww-transition);
    }

    :where(html.island-front) .ww-mobile-bottom-nav-item.active {
        color: var(--ww-primary);
    }

    :where(html.island-front) .ww-mobile-bottom-nav-item svg {
        flex-shrink: 0;
    }

    /* Add bottom padding to content to account for fixed nav */
    :where(html.island-front) body {
        padding-bottom: 60px;
    }

    /* Mobile hide rules */
    :where(html.island-front) .ww-mobile-nav-user { display: none !important; }
    :where(html.island-front) .ww-header-username { display: none !important; }
    :where(html.island-front) .ww-footer { display: none !important; }
}

/* ---------- Image Placeholder Loading ---------- */
@keyframes ww-img-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

:where(html.island-front) .ww-hero-card-img,
:where(html.island-front) .ww-masonry-img-wrap,
:where(html.island-front) .ww-moment-card,
:where(html.island-front) .ww-join-card,
:where(html.island-front) .ww-mcard-img,
:where(html.island-front) .ww-search-card-img,
:where(html.island-front) .ww-stream-card-img,
:where(html.island-front) .ww-uh-card-img {
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: ww-img-shimmer 1.5s ease infinite;
    overflow: hidden;
}

:where(html.island-front) .ww-hero-card-img img,
:where(html.island-front) .ww-masonry-img-wrap img,
:where(html.island-front) .ww-moment-card > img,
:where(html.island-front) .ww-join-card > img,
:where(html.island-front) .ww-mcard-img img,
:where(html.island-front) .ww-search-card-img img,
:where(html.island-front) .ww-stream-card-img img,
:where(html.island-front) .ww-uh-card-img img {
    opacity: 0;
    transition: opacity 0.4s ease;
}

:where(html.island-front) .ww-hero-card-img img.ww-img-loaded,
:where(html.island-front) .ww-masonry-img-wrap img.ww-img-loaded,
:where(html.island-front) .ww-moment-card > img.ww-img-loaded,
:where(html.island-front) .ww-join-card > img.ww-img-loaded,
:where(html.island-front) .ww-mcard-img img.ww-img-loaded,
:where(html.island-front) .ww-search-card-img img.ww-img-loaded,
:where(html.island-front) .ww-stream-card-img img.ww-img-loaded,
:where(html.island-front) .ww-uh-card-img img.ww-img-loaded {
    opacity: 1;
}

:where(html.island-front) .ww-hero-card-img img.ww-img-loaded ~ *,
:where(html.island-front) .ww-masonry-img-wrap img.ww-img-loaded ~ *,
:where(html.island-front) .ww-moment-card > img.ww-img-loaded ~ *,
:where(html.island-front) .ww-join-card > img.ww-img-loaded ~ *,
:where(html.island-front) .ww-mcard-img img.ww-img-loaded ~ *,
:where(html.island-front) .ww-search-card-img img.ww-img-loaded ~ *,
:where(html.island-front) .ww-stream-card-img img.ww-img-loaded ~ *,
:where(html.island-front) .ww-uh-card-img img.ww-img-loaded ~ * {
    animation: none;
    background: transparent;
}

/* ===== Purchase Modals ===== */
:where(html.island-front) .ww-purchase-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.45);
    align-items: center;
    justify-content: center;
}
:where(html.island-front) .ww-purchase-overlay.show { display: flex; }
:where(html.island-front) .ww-purchase-modal {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 92%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px 24px 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
:where(html.island-front) .ww-purchase-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
:where(html.island-front) .ww-purchase-close:hover { color: #333; }
:where(html.island-front) .ww-purchase-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 16px;
}
:where(html.island-front) .ww-purchase-product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 16px;
}
:where(html.island-front) .ww-purchase-product-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
:where(html.island-front) .ww-purchase-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
}
:where(html.island-front) .ww-purchase-section-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}
:where(html.island-front) .ww-purchase-addr-list {
    min-height: 60px;
}
:where(html.island-front) .ww-purchase-addr-loading,
:where(html.island-front) .ww-purchase-addr-empty {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 18px 0;
}
:where(html.island-front) .ww-purchase-addr-item {
    padding: 12px 14px;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
:where(html.island-front) .ww-purchase-addr-item:hover { border-color: #ccc; }
:where(html.island-front) .ww-purchase-addr-item.selected {
    border-color: #4a90d9;
    background: #f0f6ff;
}
:where(html.island-front) .ww-purchase-addr-main {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
:where(html.island-front) .ww-purchase-addr-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
:where(html.island-front) .ww-purchase-addr-phone {
    font-size: 13px;
    color: #888;
}
:where(html.island-front) .ww-purchase-addr-default {
    font-size: 11px;
    color: #4a90d9;
    border: 1px solid #4a90d9;
    border-radius: 3px;
    padding: 0 4px;
    line-height: 18px;
}
:where(html.island-front) .ww-purchase-addr-detail {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}
:where(html.island-front) .ww-purchase-addr-email {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
:where(html.island-front) .ww-purchase-addr-actions {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}
:where(html.island-front) .ww-purchase-addr-actions button {
    background: none;
    border: none;
    font-size: 12px;
    color: #888;
    cursor: pointer;
    padding: 0;
}
:where(html.island-front) .ww-purchase-addr-actions button:hover { color: #4a90d9; }
:where(html.island-front) .ww-purchase-addr-actions .addr-delete-btn:hover { color: #e74c3c; }
:where(html.island-front) .ww-purchase-add-addr-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 10px;
    border: 1.5px dashed #ddd;
    border-radius: 8px;
    background: none;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    margin-top: 4px;
}
:where(html.island-front) .ww-purchase-add-addr-btn:hover { border-color: #4a90d9; color: #4a90d9; }
:where(html.island-front) .ww-purchase-addr-form {
    margin-top: 12px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 8px;
}
:where(html.island-front) .ww-purchase-form-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
:where(html.island-front) .ww-purchase-input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    outline: none;
    transition: border-color .2s;
}
:where(html.island-front) .ww-purchase-input:focus { border-color: #4a90d9; }
:where(html.island-front) .ww-purchase-input-full { width: 100%; margin-bottom: 8px; }
:where(html.island-front) .ww-purchase-email-tip {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
    margin: -2px 0 8px;
}
:where(html.island-front) .ww-purchase-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}
:where(html.island-front) .ww-purchase-btn-secondary {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}
:where(html.island-front) .ww-purchase-btn-secondary:hover { background: #f5f5f5; }
:where(html.island-front) .ww-purchase-btn-primary {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: #4a90d9;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
}
:where(html.island-front) .ww-purchase-btn-primary:hover { background: #3a7fc8; }
:where(html.island-front) .ww-purchase-btn-primary:disabled { background: #b0c4de; cursor: not-allowed; }
:where(html.island-front) .ww-purchase-pay-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}
:where(html.island-front) .ww-purchase-pay-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    transition: border-color .2s, background .2s;
}
:where(html.island-front) .ww-purchase-pay-item:hover { border-color: #ccc; }
:where(html.island-front) .ww-purchase-pay-item.active {
    border-color: #4a90d9;
    background: #f0f6ff;
    color: #4a90d9;
    font-weight: 500;
}
:where(html.island-front) .ww-purchase-pay-item img { width: 20px; height: 20px; }
:where(html.island-front) .ww-purchase-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #4a90d9;
    font-size: 15px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
:where(html.island-front) .ww-purchase-submit:hover { background: #3a7fc8; }
:where(html.island-front) .ww-purchase-submit:disabled { background: #b0c4de; cursor: not-allowed; }

/* QR Modal */
:where(html.island-front) .ww-purchase-qr-modal { max-width: 380px; text-align: center; }
:where(html.island-front) .ww-purchase-qr-wrap {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}
:where(html.island-front) .ww-purchase-qr-box {
    width: 200px;
    height: 200px;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
:where(html.island-front) .ww-purchase-qr-box img { width: 100%; height: 100%; object-fit: contain; }
:where(html.island-front) .ww-purchase-qr-placeholder {
    font-size: 13px;
    color: #bbb;
}
:where(html.island-front) .ww-purchase-qr-tip {
    font-size: 13px;
    color: #666;
    margin: 0 0 6px;
}
:where(html.island-front) .ww-purchase-qr-amount {
    font-size: 14px;
    color: #333;
    margin: 0 0 10px;
}
:where(html.island-front) .ww-purchase-qr-amount strong { color: #e74c3c; font-size: 16px; }
:where(html.island-front) .ww-purchase-qr-status {
    font-size: 12px;
    color: #999;
    margin: 0;
}
:where(html.island-front) .ww-purchase-qr-status.is-paid { color: #e07a5f; }

/* Success Modal */
:where(html.island-front) .ww-purchase-success-modal {
    max-width: 360px;
    text-align: center;
    padding: 36px 24px 28px;
}
:where(html.island-front) .ww-purchase-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #52c41a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
:where(html.island-front) .ww-purchase-success-icon svg { width: 28px; height: 28px; }
:where(html.island-front) .ww-purchase-success-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px;
}
:where(html.island-front) .ww-purchase-success-tip {
    font-size: 13px;
    color: #888;
    margin: 0 0 20px;
}

/* Purchased badge & content */
:where(html.island-front) .ww-cd-purchased-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #f0f6ff;
    color: #4a90d9;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    margin-bottom: 8px;
}
:where(html.island-front) .ww-cd-purchased-badge svg { width: 14px; height: 14px; }
:where(html.island-front) .ww-cd-expired-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    margin-left: auto;
}
:where(html.island-front) .ww-cd-expired-badge svg { width: 14px; height: 14px; }
:where(html.island-front) .ww-cd-paid-content {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}
:where(html.island-front) .ww-cd-paid-content img { max-width: 100%; border-radius: 4px; }

:where(html.island-front) .ww-cd-paid-section {
    padding: 0 0 24px;
}
:where(html.island-front) .ww-cd-paid-module {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}
:where(html.island-front) .ww-cd-paid-module-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}
:where(html.island-front) .ww-cd-paid-module-header svg {
    color: #999;
}
:where(html.island-front) .ww-cd-paid-module-header .ww-cd-purchased-badge {
    margin-left: 0;
    margin-bottom: 0;
}
:where(html.island-front) .ww-cd-paid-module-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}
:where(html.island-front) .ww-cd-paid-module-body p { margin: 0 0 12px; }
:where(html.island-front) .ww-cd-paid-module-body p:last-child { margin-bottom: 0; }
:where(html.island-front) .ww-cd-paid-module-body ul,
:where(html.island-front) .ww-cd-paid-module-body ol { padding-left: 20px; margin: 0 0 12px; }
:where(html.island-front) .ww-cd-paid-module-body img { max-width: 100%; border-radius: 8px; }
:where(html.island-front) .ww-cd-paid-module-body a { color: #e63228; text-decoration: none; }
:where(html.island-front) .ww-cd-paid-module-body a:hover { text-decoration: underline; }

/* ── Detail Preview Modal ──────────────────────────────────── */
:where(html.island-front) .ww-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
:where(html.island-front) .ww-detail-modal.active {
    display: flex;
}
:where(html.island-front) .ww-detail-modal-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}
@keyframes wwDmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
:where(html.island-front) .ww-detail-modal-box {
    position: relative;
    width: 90vw;
    max-width: 960px;
    height: 88vh;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
@keyframes wwDmSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
:where(html.island-front) .ww-detail-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border: none;
    background: rgb(0 0 0 / 43%);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.2s;
}
:where(html.island-front) .ww-detail-modal-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #333;
}
:where(html.island-front) .ww-detail-modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
    border-radius: 16px;
}
:where(html.island-front) .ww-detail-modal-gallery {
    flex: 0 0 420px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
:where(html.island-front) .ww-detail-modal-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}
:where(html.island-front) .ww-detail-modal-carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}
:where(html.island-front) .ww-detail-modal-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px 16px 0 0;
}
:where(html.island-front) .ww-detail-modal-carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}
:where(html.island-front) .ww-detail-modal-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: object-fit 1s ease;
}
:where(html.island-front) .ww-detail-modal-carousel:hover .ww-detail-modal-carousel-slide img {
    object-fit: contain;
}
/* ---------- 站点偏好：浏览图显示方式（详情页轮播 + 弹窗详情） ---------- */
:where(html.island-front) body.ww-img-contain .ww-cd-carousel-slide img,
:where(html.island-front) body.ww-img-contain .ww-cd-carousel:hover .ww-cd-carousel-slide img,
:where(html.island-front) body.ww-img-contain .ww-detail-modal-carousel-slide img,
:where(html.island-front) body.ww-img-contain .ww-detail-modal-carousel:hover .ww-detail-modal-carousel-slide img {
    object-fit: contain;
}
:where(html.island-front) body.ww-img-cover .ww-cd-carousel-slide img,
:where(html.island-front) body.ww-img-cover .ww-cd-carousel:hover .ww-cd-carousel-slide img,
:where(html.island-front) body.ww-img-cover .ww-detail-modal-carousel-slide img,
:where(html.island-front) body.ww-img-cover .ww-detail-modal-carousel:hover .ww-detail-modal-carousel-slide img {
    object-fit: cover;
}
:where(html.island-front) .ww-detail-modal-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    z-index: 5;
    color: #333;
}
:where(html.island-front) .ww-detail-modal-carousel-btn:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
:where(html.island-front) .ww-detail-modal-carousel-prev {
    left: 12px;
}
:where(html.island-front) .ww-detail-modal-carousel-next {
    right: 12px;
}
:where(html.island-front) .ww-detail-modal-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}
:where(html.island-front) .ww-detail-modal-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}
:where(html.island-front) .ww-detail-modal-carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
}
:where(html.island-front) .ww-detail-modal-carousel-counter {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    z-index: 5;
}
:where(html.island-front) .ww-detail-modal-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ccc;
    border-radius: 16px 16px 0 0;
}
:where(html.island-front) .ww-detail-modal-no-img svg {
    width: 64px;
    height: 64px;
    opacity: 0.4;
}
:where(html.island-front) .ww-detail-modal-info {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    min-width: 0;
    border-radius: 0 0 16px 16px;
    background: #fff;
}
:where(html.island-front) .ww-detail-modal-cat {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}
:where(html.island-front) .ww-detail-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 16px;
}
:where(html.island-front) .ww-detail-modal-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
:where(html.island-front) .ww-detail-modal-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
:where(html.island-front) .ww-detail-modal-author-avatar-ph {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}
:where(html.island-front) .ww-detail-modal-author-info {
    display: flex;
    flex-direction: column;
}
:where(html.island-front) .ww-detail-modal-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
:where(html.island-front) .ww-detail-modal-author-time {
    font-size: 12px;
    color: #999;
}
:where(html.island-front) .ww-detail-modal-likes {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #999;
    font-size: 13px;
}
:where(html.island-front) .ww-detail-modal-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 16px 0;
}
:where(html.island-front) .ww-detail-modal-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 16px;
    word-break: break-word;
    white-space: pre-wrap;
}
:where(html.island-front) .ww-detail-modal-extra {
    margin-bottom: 16px;
}
:where(html.island-front) .ww-detail-modal-extra-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}
:where(html.island-front) .ww-detail-modal-extra-key {
    flex: 0 0 80px;
    color: #999;
}
:where(html.island-front) .ww-detail-modal-extra-val {
    flex: 1;
    color: #333;
}
:where(html.island-front) .ww-detail-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
:where(html.island-front) .ww-detail-modal-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
}
:where(html.island-front) .ww-detail-modal-action-btn:hover {
    border-color: #ccc;
    background: #f8f8f8;
}
:where(html.island-front) .ww-detail-modal-action-btn.active {
    color: var(--ww-primary);
    border-color: var(--ww-primary);
    background: #fff5f5;
}
:where(html.island-front) .ww-detail-modal-action-btn svg {
    width: 16px;
    height: 16px;
}
:where(html.island-front) .ww-detail-modal-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: 20px;
}
:where(html.island-front) .ww-detail-modal-detail-btn:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #333;
}
:where(html.island-front) .ww-detail-modal-detail-btn svg {
    width: 16px;
    height: 16px;
}
:where(html.island-front) .ww-detail-modal-author-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
:where(html.island-front) .ww-detail-modal-author-link:hover .ww-detail-modal-author-name {
    color: var(--ww-primary);
}

/* ── Modal Tabs (badge style) ──────────────────────────── */
:where(html.island-front) .ww-detail-modal-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
:where(html.island-front) .ww-detail-modal-tab {
    padding: 4px 12px;
    border: none;
    border-radius: 12px;
    background: #f0f0f0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}
:where(html.island-front) .ww-detail-modal-tab:hover {
    background: #e8e8e8;
    color: #666;
}
:where(html.island-front) .ww-detail-modal-tab.active {
    background: var(--ww-primary, #e63228);
    color: #fff;
}
:where(html.island-front) .ww-detail-modal-tab svg {
    width: 14px;
    height: 14px;
}
:where(html.island-front) .ww-detail-modal-tab-count {
    font-size: 11px;
    background: rgba(255,255,255,0.3);
    padding: 1px 6px;
    border-radius: 10px;
    color: inherit;
}
:where(html.island-front) .ww-detail-modal-tab.active .ww-detail-modal-tab-count {
    background: rgba(255,255,255,0.3);
    color: #fff;
}
:where(html.island-front) .ww-detail-modal-tab-panel {
    display: none;
    padding: 16px 0 0;
}
:where(html.island-front) .ww-detail-modal-tab-panel.active {
    display: block;
}

/* ── Link Copy/Open Buttons ──────────────────────────────────── */
:where(html.island-front) .ww-link-btns {
    display: inline;
    white-space: nowrap;
}
:where(html.island-front) .ww-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: none;
    background: rgba(0,0,0,0.06);
    border-radius: 3px;
    cursor: pointer;
    color: #bbb;
    vertical-align: middle;
    margin-left: 2px;
    padding: 0;
    transition: all 0.15s;
}
:where(html.island-front) .ww-link-btn:hover {
    background: rgba(0,0,0,0.12);
    color: #666;
}
:where(html.island-front) .ww-body-link-wrap .ww-link-btns {
    display: none;
}
:where(html.island-front) .ww-body-link-wrap:hover .ww-link-btns {
    display: inline;
}
:where(html.island-front) .ww-detail-modal-desc p {
    margin-bottom: 0.8em;
}
:where(html.island-front) .ww-detail-modal-desc a {
    color: var(--ww-primary, #e63228);
    text-decoration: none;
}
:where(html.island-front) .ww-detail-modal-desc a:hover {
    text-decoration: underline;
}
:where(html.island-front) .ww-detail-modal-desc img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 6px 0;
}
:where(html.island-front) .ww-detail-modal-desc ul, :where(html.island-front) .ww-detail-modal-desc ol {
    padding-left: 1.5em;
    margin-bottom: 0.8em;
}

/* ── Modal Comments ──────────────────────────────────── */
:where(html.island-front) .ww-detail-modal-comment-form {
    margin-bottom: 16px;
}
:where(html.island-front) .ww-detail-modal-comment-form textarea {
    width: 100%;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    resize: none;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
    min-height: 60px;
    box-sizing: border-box;
}
:where(html.island-front) .ww-detail-modal-comment-form textarea:focus {
    border-color: var(--ww-primary);
}
:where(html.island-front) .ww-detail-modal-comment-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}
:where(html.island-front) .ww-detail-modal-comment-form-actions button {
    padding: 6px 16px;
    background: var(--ww-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
:where(html.island-front) .ww-detail-modal-comment-form-actions button:hover {
    background: var(--ww-primary-dark);
}
:where(html.island-front) .ww-detail-modal-comment {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}
:where(html.island-front) .ww-detail-modal-comment:last-child {
    border-bottom: none;
}
:where(html.island-front) .ww-detail-modal-comment-avatar {
    flex: 0 0 32px;
}
:where(html.island-front) .ww-detail-modal-comment-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
:where(html.island-front) .ww-detail-modal-comment-avatar svg {
    width: 32px;
    height: 32px;
    color: #ccc;
}
:where(html.island-front) .ww-detail-modal-comment-body {
    flex: 1;
    min-width: 0;
}
:where(html.island-front) .ww-detail-modal-comment-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
:where(html.island-front) .ww-detail-modal-comment-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}
:where(html.island-front) .ww-detail-modal-comment-name:hover {
    color: var(--ww-primary);
}
:where(html.island-front) .ww-detail-modal-comment-time {
    font-size: 11px;
    color: #bbb;
}
:where(html.island-front) .ww-detail-modal-comment-text {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    word-break: break-word;
}
:where(html.island-front) .ww-detail-modal-comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}
:where(html.island-front) .ww-detail-modal-comment-act {
    display: flex;
    align-items: center;
    gap: 3px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 11px;
    color: #bbb;
    padding: 0;
    transition: color 0.2s;
}
:where(html.island-front) .ww-detail-modal-comment-act:hover {
    color: #666;
}
:where(html.island-front) .ww-detail-modal-comment-act.active {
    color: var(--ww-primary);
}
:where(html.island-front) .ww-detail-modal-comment-act svg {
    width: 12px;
    height: 12px;
}
:where(html.island-front) .ww-detail-modal-no-data {
    text-align: center;
    padding: 30px 0;
    color: #ccc;
    font-size: 13px;
}

/* 未登录时的笔记 / 溯源占位 */
:where(html.island-front) .ww-detail-modal-lock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 0;
    color: #bbb;
    font-size: 13px;
    text-align: center;
}
:where(html.island-front) .ww-detail-modal-lock p {
    margin: 0;
}
:where(html.island-front) .ww-detail-modal-lock svg {
    opacity: 0.45;
}

/* ── Modal Notes ──────────────────────────────────── */
:where(html.island-front) .ww-detail-modal-note {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}
:where(html.island-front) .ww-detail-modal-note:last-child {
    border-bottom: none;
}
:where(html.island-front) .ww-detail-modal-note-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
:where(html.island-front) .ww-detail-modal-note-content {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}
:where(html.island-front) .ww-detail-modal-note-time {
    font-size: 11px;
    color: #bbb;
    margin-top: 6px;
}
:where(html.island-front) .ww-detail-modal-note-imgs {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}
:where(html.island-front) .ww-detail-modal-note-imgs img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

/* ── Modal Trace ──────────────────────────────────── */
:where(html.island-front) .ww-detail-modal-trace-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}
:where(html.island-front) .ww-detail-modal-trace-item:last-child {
    border-bottom: none;
}
:where(html.island-front) .ww-detail-modal-trace-dot {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ww-primary);
    margin-top: 5px;
    position: relative;
}
:where(html.island-front) .ww-detail-modal-trace-dot::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 4px;
    width: 2px;
    height: calc(100% + 14px);
    background: #f0f0f0;
}
:where(html.island-front) .ww-detail-modal-trace-item:last-child .ww-detail-modal-trace-dot::after {
    display: none;
}
:where(html.island-front) .ww-detail-modal-trace-body {
    flex: 1;
    min-width: 0;
}
:where(html.island-front) .ww-detail-modal-trace-date {
    font-size: 11px;
    color: #bbb;
    margin-bottom: 4px;
}
:where(html.island-front) .ww-detail-modal-trace-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
:where(html.island-front) .ww-detail-modal-trace-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}
:where(html.island-front) .ww-detail-modal-trace-imgs {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}
:where(html.island-front) .ww-detail-modal-trace-imgs img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

/* ── Modal Property ──────────────────────────────────── */
:where(html.island-front) .ww-detail-modal-property-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}
:where(html.island-front) .ww-detail-modal-property-row:last-child {
    border-bottom: none;
}
:where(html.island-front) .ww-detail-modal-property-key {
    flex: 0 0 90px;
    color: #999;
}
:where(html.island-front) .ww-detail-modal-property-val {
    flex: 1;
    color: #333;
}

/* ── Modal Share ──────────────────────────────────── */
:where(html.island-front) .ww-detail-modal-share {
    text-align: center;
    padding: 20px 0;
}
:where(html.island-front) .ww-detail-modal-share-qr {
    margin: 12px auto;
    width: 180px;
    height: 180px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
:where(html.island-front) .ww-detail-modal-share-qr img {
    width: 180px;
    height: 180px;
    border-radius: 8px;
}
:where(html.island-front) .ww-detail-modal-share-url {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
:where(html.island-front) .ww-detail-modal-share-url input {
    flex: 1;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    outline: none;
    color: #666;
}
:where(html.island-front) .ww-detail-modal-share-url button {
    padding: 6px 14px;
    background: var(--ww-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

/* ── Modal Zoom Animation ──────────────────────────────────── */
:where(html.island-front) .ww-detail-zoom-clone {
    position: fixed;
    z-index: 10001;
    object-fit: cover;
    top: var(--zoom-top, 0);
    left: var(--zoom-left, 0);
    width: var(--zoom-w, 0);
    height: var(--zoom-h, 0);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
:where(html.island-front) .ww-detail-zoom-clone.is-gallery-head { border-radius: 16px 16px 0 0; }
:where(html.island-front) .ww-detail-zoom-clone.is-gallery { border-radius: 0; }
:where(html.island-front) .ww-detail-zoom-clone.is-fading { opacity: 0; }
:where(html.island-front) .ww-detail-zoom-clone.is-instant { transition: none; }
:where(html.island-front) .ww-detail-modal.ww-detail-modal-zooming-in .ww-detail-modal-box {
    opacity: 0;
    transform: scale(0.85);
    transition: none;
    animation: none;
}
:where(html.island-front) .ww-detail-modal.ww-detail-modal-zooming-in .ww-detail-modal-box.is-measuring {
    transform: none;
}
:where(html.island-front) .ww-detail-modal.ww-detail-modal-zooming-in .ww-detail-modal-mask {
    opacity: 0;
    animation: none;
}
:where(html.island-front) .ww-detail-modal.ww-detail-modal-zooming-complete .ww-detail-modal-box {
    animation: wwDmZoomSettle 0.3s ease forwards;
}
:where(html.island-front) .ww-detail-modal.ww-detail-modal-zooming-complete .ww-detail-modal-mask {
    animation: wwDmFadeIn 0.3s ease forwards;
}
@keyframes wwDmZoomSettle {
    from { opacity: 0.7; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
:where(html.island-front) .ww-detail-modal.ww-detail-modal-zooming-out .ww-detail-modal-box {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
:where(html.island-front) .ww-detail-modal.ww-detail-modal-zooming-out .ww-detail-modal-mask {
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
:where(html.island-front) .ww-detail-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 300px;
    color: #999;
}
:where(html.island-front) .ww-detail-modal-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--ww-primary);
    border-radius: 50%;
    animation: wwSpin 0.6s linear infinite;
}

/* ── Modal Footer (detail btn only, fixed bottom-right) ──────────────────── */
:where(html.island-front) .ww-detail-modal-info {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
:where(html.island-front) .ww-detail-modal-tab-panels {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
:where(html.island-front) .ww-detail-modal-footer {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    padding: 8px 0 0;
}
:where(html.island-front) .ww-detail-modal-footer .ww-detail-modal-detail-btn {
    margin-top: 0;
}

/* ── Modal Reply Form ──────────────────────────────────── */
:where(html.island-front) .ww-detail-modal-reply-form {
    display: none;
    margin-top: 8px;
    margin-bottom: 4px;
}
:where(html.island-front) .ww-detail-modal-reply-form.show {
    display: block;
}
:where(html.island-front) .ww-detail-modal-reply-textarea {
    width: 100%;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    resize: none;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}
:where(html.island-front) .ww-detail-modal-reply-textarea:focus {
    border-color: var(--ww-primary);
}
:where(html.island-front) .ww-detail-modal-reply-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}
:where(html.island-front) .ww-detail-modal-reply-cancel {
    padding: 4px 12px;
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    color: #999;
}
:where(html.island-front) .ww-detail-modal-reply-cancel:hover {
    border-color: #ccc;
    color: #666;
}
:where(html.island-front) .ww-detail-modal-reply-submit {
    padding: 4px 12px;
    background: var(--ww-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}
:where(html.island-front) .ww-detail-modal-reply-submit:hover {
    background: var(--ww-primary-dark);
}

/* ── Modal Share Popup ──────────────────────────────────── */
:where(html.island-front) .ww-detail-modal-share-popup {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}
:where(html.island-front) .ww-detail-modal-share-popup-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}
:where(html.island-front) .ww-detail-modal-share-popup-box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    min-width: 300px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1;
}
:where(html.island-front) .ww-detail-modal-share-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.2s;
}
:where(html.island-front) .ww-detail-modal-share-popup-close:hover {
    background: #e0e0e0;
    color: #333;
}
:where(html.island-front) .ww-detail-modal-share-popup-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px;
}
:where(html.island-front) .ww-detail-modal-share-popup-qr {
    margin: 0 auto 12px;
    width: 180px;
    height: 180px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
:where(html.island-front) .ww-detail-modal-share-popup-qr img {
    width: 180px;
    height: 180px;
    border-radius: 8px;
}
:where(html.island-front) .ww-detail-modal-share-popup-name {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px;
    word-break: break-all;
}
:where(html.island-front) .ww-detail-modal-share-popup-url {
    display: flex;
    gap: 8px;
}
:where(html.island-front) .ww-detail-modal-share-popup-url input {
    flex: 1;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    outline: none;
    color: #666;
}
:where(html.island-front) .ww-detail-modal-share-popup-url button {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--ww-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}
:where(html.island-front) .ww-detail-modal-share-popup-url button:hover {
    background: var(--ww-primary-dark);
}

/* ── Modal Video Player ──────────────────────────────────── */
:where(html.island-front) .ww-detail-modal-video-player {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #000;
}
:where(html.island-front) .ww-detail-modal-video-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}
:where(html.island-front) .ww-detail-modal-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
:where(html.island-front) .ww-detail-modal-video-bigplay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s;
}
:where(html.island-front) .ww-detail-modal-video-bigplay:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) scale(1.08);
}
:where(html.island-front) .ww-detail-modal-video-controls {
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 12px;
}
:where(html.island-front) .ww-detail-modal-video-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 8px;
}
:where(html.island-front) .ww-detail-modal-video-progress-fill {
    height: 100%;
    background: var(--ww-primary);
    border-radius: 2px;
    width: 0;
    transition: width 0.1s;
}
:where(html.island-front) .ww-detail-modal-video-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
:where(html.island-front) .ww-detail-modal-video-controls-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
:where(html.island-front) .ww-detail-modal-video-controls-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
:where(html.island-front) .ww-detail-modal-video-volume {
    width: 60px;
}
:where(html.island-front) .ww-detail-modal-video-volume input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
:where(html.island-front) .ww-detail-modal-video-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}
:where(html.island-front) .ww-detail-modal-video-btn {
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
}
:where(html.island-front) .ww-detail-modal-video-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

/* ── Modal URL Jump Button ──────────────────────────────── */
:where(html.island-front) .ww-detail-modal-url-action {
    margin: 12px 0;
}
:where(html.island-front) .ww-detail-modal-url-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--ww-primary, #e07a5f);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}
:where(html.island-front) .ww-detail-modal-url-btn:hover {
    opacity: 0.85;
    color: #fff;
}

/* ── Modal Music Player ──────────────────────────────────── */
:where(html.island-front) .ww-detail-modal-music-player {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}
:where(html.island-front) .ww-detail-modal-music-disc {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: #1a1a1a;
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
:where(html.island-front) .ww-detail-modal-music-disc-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}
:where(html.island-front) .ww-detail-modal-music-disc-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
:where(html.island-front) .ww-detail-modal-music-disc-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #666;
}
:where(html.island-front) .ww-detail-modal-music-disc-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.2s;
    z-index: 2;
}
:where(html.island-front) .ww-detail-modal-music-disc-play:hover {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.08);
}
:where(html.island-front) .ww-detail-modal-music-disc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
}
:where(html.island-front) .ww-detail-modal-music-disc::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    right: 15%;
    bottom: 15%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.08);
    z-index: 1;
}
:where(html.island-front) .ww-detail-modal-music-disc-spinning {
    animation: ww-disc-spin 8s linear infinite;
}
@keyframes ww-disc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── Modal Audio Controls (in detail panel) ──────────────── */
:where(html.island-front) .ww-detail-modal-audio-ctrl {
    margin-top: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
}
:where(html.island-front) .ww-detail-modal-audio-progress {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 10px;
}
:where(html.island-front) .ww-detail-modal-audio-progress-fill {
    height: 100%;
    background: var(--ww-primary);
    border-radius: 2px;
    width: 0;
    transition: width 0.1s;
}
:where(html.island-front) .ww-detail-modal-audio-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
:where(html.island-front) .ww-detail-modal-audio-time {
    font-size: 12px;
    color: #999;
}
:where(html.island-front) .ww-detail-modal-audio-play {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--ww-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.2s;
}
:where(html.island-front) .ww-detail-modal-audio-play:hover {
    background: #d42a20;
}

/* ── Modal Lightbox ──────────────────────────────────────── */
:where(html.island-front) .ww-dm-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
:where(html.island-front) .ww-dm-lightbox.active {
    display: flex;
}
:where(html.island-front) .ww-dm-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 2;
    background: none;
    border: none;
}
:where(html.island-front) .ww-dm-lightbox-close:hover {
    opacity: 1;
}
:where(html.island-front) .ww-dm-lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
}
:where(html.island-front) .ww-dm-lightbox-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
}
:where(html.island-front) .ww-dm-lightbox-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
:where(html.island-front) .ww-dm-lightbox-btn:hover {
    background: rgba(255,255,255,0.2);
}
:where(html.island-front) .ww-dm-lightbox-counter {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* ── Tags Row (modal + detail page) ─────────────────────── */
:where(html.island-front) .ww-detail-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0 4px;
}
:where(html.island-front) .ww-detail-modal-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    color: #666;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    background: #f5f5f5;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border: none;
    line-height: 1.4;
}
:where(html.island-front) .ww-detail-modal-tag:hover {
    background: #eee;
    color: #333;
}
:where(html.island-front) .ww-cd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0 4px;
}
:where(html.island-front) .ww-cd-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    color: #666;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    background: #f5f5f5;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border: none;
    line-height: 1.4;
}
:where(html.island-front) .ww-cd-tag:hover {
    background: #eee;
    color: #333;
}

@media (max-width: 768px) {
    :where(html.island-front) .ww-detail-modal-box {
        width: 95vw;
        height: 96vh;
        max-height: none;
    }
    :where(html.island-front) .ww-detail-modal-body {
        flex-direction: column;
    }
    :where(html.island-front) .ww-detail-modal-gallery {
        flex: 0 0 38vh;
    }
    :where(html.island-front) .ww-detail-modal-info {
        padding: 20px;
    }
    :where(html.island-front) .ww-detail-modal-title {
        font-size: 18px;
    }
}

/* ── Tip / Reward ──────────────────────────────────────── */
:where(html.island-front) .ww-tip-amounts {
    display: flex;
    gap: 12px;
    margin: 20px 0 16px;
}
:where(html.island-front) .ww-tip-amount-btn {
    flex: 1;
    padding: 12px 0;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}
:where(html.island-front) .ww-tip-amount-btn:hover {
    border-color: #e63228;
    color: #e63228;
}
:where(html.island-front) .ww-tip-amount-btn.active {
    border-color: #e63228;
    background: #fef2f2;
    color: #e63228;
}
:where(html.island-front) .ww-tip-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 16px;
}
:where(html.island-front) .ww-tip-custom span {
    font-size: 16px;
    font-weight: 600;
    color: #999;
}
:where(html.island-front) .ww-tip-custom input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #333;
    background: transparent;
}
:where(html.island-front) .ww-tip-custom input::placeholder {
    color: #ccc;
}
:where(html.island-front) .ww-tip-pay-methods {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
:where(html.island-front) .ww-tip-pay-method {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}
:where(html.island-front) .ww-tip-pay-method input {
    display: none;
}
:where(html.island-front) .ww-tip-pay-method:hover {
    border-color: #ccc;
}
:where(html.island-front) .ww-tip-pay-method.active {
    border-color: #e63228;
    color: #e63228;
    background: #fef2f2;
}

/* ── Modal: purchase bar & paid content ────────────── */
:where(html.island-front) .ww-detail-modal-purchase-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin: 12px 0;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}
:where(html.island-front) .ww-detail-modal-purchase-price {
    font-size: 20px;
    font-weight: 700;
    color: #e63228;
}
:where(html.island-front) .ww-detail-modal-purchase-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: #e63228;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
:where(html.island-front) .ww-detail-modal-purchase-btn:hover {
    background: #cc2a22;
    color: #fff;
}
:where(html.island-front) .ww-detail-modal-purchase-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #52c41a;
    font-weight: 600;
}
:where(html.island-front) .ww-detail-modal-paid-content {
    margin: 16px 0;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}
:where(html.island-front) .ww-detail-modal-paid-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #e63228;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
:where(html.island-front) .ww-detail-modal-paid-body {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    word-break: break-word;
}
:where(html.island-front) .ww-paid-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    padding: 3px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    background: #fff;
    color: #888;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
}
:where(html.island-front) .ww-paid-copy-btn:hover {
    border-color: #e63228;
    color: #e63228;
}
:where(html.island-front) .ww-paid-copy-btn.copied {
    border-color: #52c41a;
    color: #52c41a;
}

/* ---------- 碎碎念：朋友圈式左右布局 ---------- */
:where(html.island-front) .ww-memo-main {
    padding: 110px 0 80px;
    background: var(--ww-bg);
    min-height: 100vh;
}

:where(html.island-front) .ww-memo-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

:where(html.island-front) .ww-memo-feed {
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: var(--ww-radius);
    padding: 28px 32px 20px;
}

:where(html.island-front) .ww-memo-feed-head {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-memo-feed-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

:where(html.island-front) .ww-memo-feed-sub {
    margin-top: 6px;
    font-size: 13px;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-moments {
    display: flex;
    flex-direction: column;
}

:where(html.island-front) .ww-moments-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-moments-item:last-child {
    border-bottom: none;
}

:where(html.island-front) .ww-moments-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--ww-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ww-text-secondary);
    flex-shrink: 0;
}

:where(html.island-front) .ww-moments-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

:where(html.island-front) .ww-moments-avatar-ph {
    opacity: 0.45;
}

:where(html.island-front) .ww-moments-main {
    min-width: 0;
}

:where(html.island-front) .ww-moments-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

:where(html.island-front) .ww-moments-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ww-primary);
}

:where(html.island-front) .ww-moments-name:hover {
    color: var(--ww-primary-dark);
}

:where(html.island-front) .ww-moments-pin {
    padding: 1px 7px;
    border: 1px solid var(--ww-border);
    border-radius: 4px;
    font-size: 11px;
    color: var(--ww-text-secondary);
    background: var(--ww-bg);
}

:where(html.island-front) .ww-moments-bubble {
    display: block;
    position: relative;
    padding: 2px 0;
    background: none;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ww-text);
    text-decoration: none;
    word-break: break-word;
    white-space: normal;
}

:where(html.island-front) .ww-memo-grid {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    max-width: 330px;
}

:where(html.island-front) .ww-moments-col-1 {
    grid-template-columns: 1fr;
    max-width: 100%;
    width: 100%;
}

:where(html.island-front) .ww-moments-col-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 220px;
}

:where(html.island-front) .ww-moments-col-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 330px;
}

:where(html.island-front) .ww-moments-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    background: var(--ww-bg);
    cursor: zoom-in;
}

:where(html.island-front) .ww-moments-col-1 .ww-moments-cell {
    aspect-ratio: auto;
    display: flex;
    /* justify-content: center; */
    background: none;
}

:where(html.island-front) .ww-moments-col-1 .ww-moments-cell img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

:where(html.island-front) .ww-moments-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

:where(html.island-front) .ww-moments-cell-more {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 2px 8px;
    background: rgba(45, 52, 54, 0.72);
    color: #fff;
    font-size: 12px;
    border-radius: 4px 0 4px 0;
}

:where(html.island-front) .ww-moments-foot {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 9px;
    font-size: 12.5px;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-moments-ip {
    padding-left: 10px;
    border-left: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-moments-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

:where(html.island-front) .ww-moments-act {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border: 1px solid var(--ww-border);
    border-radius: 4px;
    background: var(--ww-card);
    color: var(--ww-text-secondary);
    font-size: 12.5px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

:where(html.island-front) .ww-moments-act:hover {
    color: var(--ww-text);
    border-color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-moments-act.ww-on {
    color: var(--ww-error);
    border-color: var(--ww-error);
}

:where(html.island-front) .ww-memo-feed .ww-pager {
    margin-top: 8px;
}

/* ---------- 右侧模块 ---------- */
:where(html.island-front) .ww-memo-side {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

:where(html.island-front) .ww-memo-card {
    background: var(--ww-card);
    border: 1px solid var(--ww-border);
    border-radius: var(--ww-radius);
    padding: 18px 20px;
}

:where(html.island-front) .ww-memo-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

:where(html.island-front) .ww-qp-top {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
}

:where(html.island-front) .ww-qp-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--ww-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-qp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

:where(html.island-front) .ww-qp-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--ww-border);
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ww-text);
    background: transparent;
    padding: 8px 0;
    min-height: 62px;
}

:where(html.island-front) .ww-qp-input:focus {
    outline: none;
    border-bottom-color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-qp-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

:where(html.island-front) .ww-qp-preview:empty {
    display: none;
}

:where(html.island-front) .ww-qp-thumb {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-qp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

:where(html.island-front) .ww-qp-del {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: rgba(45, 52, 54, 0.75);
    color: #fff;
    font-size: 13px;
    line-height: 15px;
    text-align: center;
    cursor: pointer;
    border-radius: 0 0 0 4px;
}

:where(html.island-front) .ww-qp-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

:where(html.island-front) .ww-qp-tool {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid var(--ww-border);
    border-radius: 4px;
    background: var(--ww-card);
    color: var(--ww-text-secondary);
    font-size: 12.5px;
    cursor: pointer;
    font-family: inherit;
}

:where(html.island-front) .ww-qp-tool:hover {
    color: var(--ww-text);
    border-color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-qp-tip {
    font-size: 12px;
    color: var(--ww-text-secondary);
    margin-left: auto;
}

:where(html.island-front) .ww-qp-submit {
    padding: 5px 18px;
    border: none;
    border-radius: 4px;
    background: var(--ww-dark);
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--ww-transition);
}

:where(html.island-front) .ww-qp-submit:hover {
    background: #1f2527;
}

:where(html.island-front) .ww-qp-submit:disabled {
    opacity: 0.55;
    cursor: default;
}

:where(html.island-front) .ww-qp-guest {
    font-size: 13px;
    color: var(--ww-text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

:where(html.island-front) .ww-memo-side .ww-btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

:where(html.island-front) .ww-tip-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--ww-border);
}

:where(html.island-front) .ww-tip-today {
    font-size: 17px;
    font-weight: 700;
}

:where(html.island-front) .ww-tip-label {
    font-size: 12px;
    color: var(--ww-text-secondary);
    letter-spacing: 1px;
}

:where(html.island-front) .ww-tip-list {
    display: flex;
    flex-direction: column;
}

:where(html.island-front) .ww-tip-row {
    display: grid;
    grid-template-columns: 8px 62px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--ww-border);
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

:where(html.island-front) .ww-tip-row:last-child {
    border-bottom: none;
}

:where(html.island-front) .ww-tip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ww-border);
}

:where(html.island-front) .ww-tip-row:hover .ww-tip-dot {
    background: var(--ww-primary);
}

:where(html.island-front) .ww-tip-when {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

:where(html.island-front) .ww-tip-when b {
    font-size: 13px;
    font-weight: 600;
}

:where(html.island-front) .ww-tip-when i {
    font-style: normal;
    font-size: 10.5px;
    color: var(--ww-text-secondary);
}

:where(html.island-front) .ww-tip-text {
    font-size: 12.5px;
    color: var(--ww-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(html.island-front) .ww-tip-ip {
    font-size: 11.5px;
    color: var(--ww-text-secondary);
    padding: 1px 7px;
    border: 1px solid var(--ww-border);
    border-radius: 10px;
    background: var(--ww-bg);
}

:where(html.island-front) .ww-tip-empty {
    padding: 14px 0 4px;
    font-size: 13px;
    color: var(--ww-text-secondary);
    text-align: center;
}

:where(html.island-front) .ww-memo-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--ww-border);
    border: 1px solid var(--ww-border);
    border-radius: var(--ww-radius-sm);
    overflow: hidden;
}

:where(html.island-front) .ww-memo-stat {
    background: var(--ww-card);
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

:where(html.island-front) .ww-memo-stat-num {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

:where(html.island-front) .ww-memo-stat-label {
    font-size: 12px;
    color: var(--ww-text-secondary);
}

@media (max-width: 1024px) {
    :where(html.island-front) .ww-memo-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    :where(html.island-front) .ww-memo-feed {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    :where(html.island-front) .ww-memo-main {
        padding: 90px 0 60px;
    }
    :where(html.island-front) .ww-memo-layout {
        grid-template-columns: 1fr;
    }
    :where(html.island-front) .ww-memo-side {
        position: static;
    }
    :where(html.island-front) .ww-memo-feed {
        padding: 16px;
    }
    :where(html.island-front) .ww-moments-item {
        grid-template-columns: 38px 1fr;
        gap: 10px;
    }
    :where(html.island-front) .ww-moments-avatar {
        width: 38px;
        height: 38px;
    }
    :where(html.island-front) .ww-moments-col-3 {
        max-width: 240px;
    }
}

/* ============================================================
   以下为用户控制台样式（原 dashboard.css 全量并入）
   作用域 :where(html.island-console)  与前台样式互不干扰
   ============================================================ */

/* ============================================
 * 控制台（Dashboard）样式
 * 应用于：/user/* 下所有页面
 * 风格：左侧菜单 + 右侧内容，主题色 #e07a5f
 * ============================================ */

/* ========== 重置 ========== */
:where(html.island-console),:where(html.island-console) * { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
:where(html.island-console), :where(html.island-console) body { height: 100%; }
:where(html.island-console) body.dashboard-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f0f2f5;
    --bg-input: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #eef1f5;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --sidebar-bg: #ffffff;
    --header-bg: #ffffff;
    --menu-hover: color-mix(in srgb, var(--theme-primary) 8%, transparent);
    --menu-active: color-mix(in srgb, var(--theme-primary) 12%, transparent);
    --theme-primary: #e07a5f;
    --theme-bg: none;
    --theme-bg-opacity: 1;
    --theme-bg-blur: 0px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* 工作台背景层 */
:where(html.island-console) body.dashboard-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1000;
    background-image: var(--theme-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--theme-bg-opacity);
    filter: blur(var(--theme-bg-blur));
    pointer-events: none;
    transition: opacity 0.3s ease;
}
:where(html.island-console) a { color: inherit; text-decoration: none; outline: none; -webkit-tap-highlight-color: transparent; }
:where(html.island-console) a:focus { outline: none; }
:where(html.island-console) ul { list-style: none; }
:where(html.island-console) button { font: inherit; cursor: pointer; border: none; background: none; outline: none; -webkit-tap-highlight-color: transparent; }
:where(html.island-console) button:focus { outline: none; }
:where(html.island-console) img { max-width: 100%; display: block; }

/* ========== 全局滚动条 ========== */
:where(html.island-console),:where(html.island-console) * {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.12) transparent;
}
:where(html.island-console)::-webkit-scrollbar,:where(html.island-console) *::-webkit-scrollbar { width: 5px; height: 5px; }
:where(html.island-console)::-webkit-scrollbar-track,:where(html.island-console) *::-webkit-scrollbar-track { background: transparent; }
:where(html.island-console)::-webkit-scrollbar-thumb,:where(html.island-console) *::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 3px; }
:where(html.island-console)::-webkit-scrollbar-thumb:hover,:where(html.island-console) *::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.22); }

/* ========== 布局容器 ========== */
:where(html.island-console) .dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* ========== 左侧边栏 ========== */
:where(html.island-console) .dashboard-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    transition: width 0.3s ease;
}

/* ========== 侧边栏折叠状态 ========== */
:where(html.island-console) .dashboard-sidebar.collapsed {
    width: 64px;
    overflow: hidden;
}

:where(html.island-console) .dashboard-sidebar.collapsed .sidebar-logo {
    justify-content: center;
    padding: 0;
}
:where(html.island-console) .dashboard-sidebar.collapsed .sidebar-shortcuts{
    display: none;
}

:where(html.island-console) .dashboard-sidebar.collapsed .sidebar-logo-link {
    justify-content: center;
    padding: 0;
}

:where(html.island-console) .dashboard-sidebar.collapsed .sidebar-logo-img {
    height: 32px;
    width: 32px;
}

:where(html.island-console) .dashboard-sidebar.collapsed .sidebar-menu {
    padding: 12px 0;
}

:where(html.island-console) .dashboard-sidebar.collapsed .menu-item {
    padding: 0 8px;
}

:where(html.island-console) .dashboard-sidebar.collapsed .menu-link {
    justify-content: center;
    padding: 10px 0;
    border-radius: 8px;
    position: relative;
}

:where(html.island-console) .dashboard-sidebar.collapsed .menu-text {
    display: none;
}

:where(html.island-console) .dashboard-sidebar.collapsed .menu-arrow {
    display: none;
}

:where(html.island-console) .dashboard-sidebar.collapsed .menu-sub {
    display: none !important;
}

:where(html.island-console) .dashboard-sidebar.collapsed .menu-item.active .menu-link::before {
    left: -8px;
}

/* 折叠时tooltip */
:where(html.island-console) .dashboard-sidebar.collapsed .menu-link .menu-text {
    display: none;
}

:where(html.island-console) .dashboard-sidebar.collapsed .menu-link:hover::after {
    content: attr(data-title);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 10px;
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 200;
    pointer-events: none;
}

:where(html.island-console) .dashboard-sidebar.collapsed .sidebar-footer {
    padding: 12px 8px;
}

:where(html.island-console) .dashboard-sidebar.collapsed .sidebar-logout {
    justify-content: center;
    padding: 8px;
}

:where(html.island-console) .dashboard-sidebar.collapsed .sidebar-logout span {
    display: none;
}

/* 折叠时隐藏头像 */
:where(html.island-console) .dashboard-sidebar.collapsed .sidebar-avatar {
    display: none;
}

:where(html.island-console) .dashboard-sidebar.collapsed .sidebar-shortcuts {
    padding: 8px 0;
    gap: 4px;
}

:where(html.island-console) .dashboard-sidebar.collapsed .shortcut-btn {
    justify-content: center;
    padding: 8px;
    gap: 0;
}

:where(html.island-console) .dashboard-sidebar.collapsed .shortcut-btn span {
    display: none;
}

:where(html.island-console) .dashboard-sidebar.collapsed .shortcut-btn:hover {
    transform: none;
}

:where(html.island-console) .dashboard-main {
    flex: 1;
    margin-left: 220px;
    transition: margin-left 0.3s ease;
    position: relative;
}

:where(html.island-console) .dashboard-sidebar.collapsed ~ .sidebar-overlay ~ .dashboard-main,
:where(html.island-console) body:has(.dashboard-sidebar.collapsed) .dashboard-main {
    margin-left: 64px;
}

:where(html.island-console) .sidebar-logo {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #eef1f5;
    position: relative;
}

:where(html.island-console) .sidebar-collapse-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e8ecf2;
    color: #8891a4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 101;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

:where(html.island-console) .sidebar-collapse-btn:hover {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #fff;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

:where(html.island-console) .dashboard-sidebar.collapsed .sidebar-collapse-btn svg {
    transform: rotate(180deg);
}

:where(html.island-console) .dashboard-sidebar.collapsed .sidebar-collapse-btn {
    right: 12px;
    padding: 18px;
    background: url(/favicon.ico);
    background-size: contain;
    opacity: 0;
}

:where(html.island-console) .sidebar-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

:where(html.island-console) .sidebar-logo-img {
    /* width: 32px; */
    height: 32px;
    object-fit: contain;
}

:where(html.island-console) .sidebar-logo-text {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== 侧边栏快捷按钮 ========== */
:where(html.island-console) .sidebar-shortcuts {
    padding: 3px 12px;
    /* border-bottom: 1px solid #eef1f5; */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

:where(html.island-console) .dashboard-sidebar:hover .sidebar-shortcuts {
    opacity: 1;
    visibility: visible;
    max-height: 100px;
    margin-top: 8px;
}

:where(html.island-console) .shortcut-btn {
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 4px;
    border-radius: 8px;
    color: #5a6378;
    font-size: 11px;
    transition: all 0.2s ease;
    background: #f8f9fa;
    text-align: center;
}

:where(html.island-console) .shortcut-btn:hover {
    background: #e8f8f5;
    color: var(--theme-primary);
    transform: translateY(-2px);
}

:where(html.island-console) .shortcut-btn svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

:where(html.island-console) .shortcut-btn:hover svg {
    transform: scale(1.1);
}

:where(html.island-console) .shortcut-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

:where(html.island-console) .sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

:where(html.island-console) .menu-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

:where(html.island-console) .menu-item {
    padding: 0 12px;
}

/* 菜单分隔线 */
:where(html.island-console) .menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 12px 12px;
    padding: 0;
}

:where(html.island-console) .menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #5a6378;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
}

:where(html.island-console) .menu-link:hover {
    background: var(--menu-hover);
    color: var(--theme-primary);
}

:where(html.island-console) .menu-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

:where(html.island-console) .menu-item.active .menu-icon {
    color: var(--theme-primary);
}

:where(html.island-console) .menu-link:hover .menu-icon {
    color: var(--theme-primary);
}

:where(html.island-console) .menu-item.active .menu-link {
    background: color-mix(in srgb, var(--theme-primary) 12%, transparent);
    color: var(--theme-primary);
    font-weight: 500;
}

:where(html.island-console) .menu-item.active .menu-icon {
    color: var(--theme-primary);
}

:where(html.island-console) .menu-item.active .menu-link::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: var(--theme-primary);
    border-radius: 0 3px 3px 0;
}

/* 二级菜单父级 */
:where(html.island-console) .menu-parent {
    cursor: pointer;
}

:where(html.island-console) .menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #5a6378;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
}

:where(html.island-console) .menu-parent .menu-link {
    justify-content: space-between;
}

:where(html.island-console) .menu-icon {
    flex-shrink: 0;
}

:where(html.island-console) .menu-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
}

:where(html.island-console) .menu-item.active .menu-arrow {
    transform: rotate(45deg);
}

/* 二级菜单容器 */
:where(html.island-console) .menu-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    list-style: none;
    margin: 0;
    padding: 0;
}

:where(html.island-console) .menu-item.active .menu-sub {
    max-height: 500px;
}

/* 二级菜单项 */
:where(html.island-console) .menu-sub-item {
    padding: 0;
}

:where(html.island-console) .menu-sub-link {
    display: block;
    padding: 8px 14px 8px 48px;
    color: #6b7280;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    margin: 2px 0;
}

:where(html.island-console) .menu-sub-link:hover {
    color: var(--theme-primary);
    background: color-mix(in srgb, var(--theme-primary) 5%, transparent);
    border-left-color: var(--theme-primary);
}

:where(html.island-console) .menu-sub-item.active .menu-sub-link {
    color: var(--theme-primary);
    font-weight: 500;
    background: color-mix(in srgb, var(--theme-primary) 8%, transparent);
    border-left-color: var(--theme-primary);
}

:where(html.island-console) .menu-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

:where(html.island-console) .menu-disabled:hover {
    background: transparent;
    color: #5a6378;
}

:where(html.island-console) .sidebar-footer {
    padding: 12px 20px;
    border-top: 1px solid #eef1f5;
}

:where(html.island-console) .sidebar-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #8891a4;
    font-size: 13px;
    transition: all 0.2s ease;
}

:where(html.island-console) .sidebar-logout:hover {
    background: rgba(231, 76, 60, 0.08);
    color: #e74c3c;
}

/* 侧边栏头像 */
:where(html.island-console) .sidebar-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ========== 遮罩 ========== */
:where(html.island-console) .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

:where(html.island-console) .sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ========== 主区域 ========== */
:where(html.island-console) .dashboard-main {
    flex: 1;
    margin-left: 220px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin-left 0.3s ease;
}

/* 侧边栏折叠时主区域自适应 */
:where(html.island-console) .dashboard-sidebar.collapsed + .sidebar-overlay + .dashboard-main,
:where(html.island-console) .dashboard-sidebar.collapsed ~ .dashboard-main {
    margin-left: 64px;
}

/* ========== 顶部栏 ========== */
:where(html.island-console) .dashboard-header {
    height: 60px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

:where(html.island-console) .dashboard-header .header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

:where(html.island-console) .sidebar-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #5a6378;
    align-items: center;
    justify-content: center;
}

:where(html.island-console) .sidebar-toggle:hover {
    background: var(--menu-hover);
}

:where(html.island-console) .header-page-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

:where(html.island-console) .dashboard-header .header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

:where(html.island-console) .header-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
:where(html.island-console) .header-search-field {
    position: relative;
    max-width: 36px;
    overflow: visible;
    transition: max-width 0.35s ease;
}
:where(html.island-console) .header-search-wrap.expanded .header-search-field { max-width: 260px; }
:where(html.island-console) .header-search-btn {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #8891a4;
    cursor: pointer;
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 2;
    transition: color 0.2s;
}
:where(html.island-console) .header-search-btn:hover { color: #4f6ef7; }
:where(html.island-console) .header-search-wrap.expanded .header-search-btn { color: #4f6ef7; }
:where(html.island-console) .header-search-input {
    width: 260px;
    height: 36px;
    padding: 0 14px 0 36px;
    border: 1px solid #e8ecf2;
    border-radius: 20px;
    background: #f5f7fa;
    font-size: 13px;
    outline: none;
    color: #333;
    opacity: 0;
    transition: opacity 0.2s ease 0.1s, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
:where(html.island-console) .header-search-wrap.expanded .header-search-input { opacity: 1; }
:where(html.island-console) .header-search-input:focus {
    border-color: var(--theme-primary);
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 10%, transparent);
}

:where(html.island-console) .header-icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #5a6378;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

:where(html.island-console) .header-icon-btn:hover {
    background: var(--menu-hover);
    color: var(--theme-primary);
}

:where(html.island-console) .icon-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 8px;
    height: 8px;
    padding: 0 4px;
    background: #FF6B8A;
    border-radius: 10px;
    border: 2px solid #fff;
    font-size: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 600;
}

/* 用户下拉菜单 */
:where(html.island-console) .header-user-dropdown {
    position: relative;
    display: inline-block;
}

:where(html.island-console) .header-user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 20px;
    background: #f5f7fa;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

:where(html.island-console) .header-user-trigger:hover {
    background: #e8ecf2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

:where(html.island-console) .header-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    /* background: linear-gradient(135deg, #e07a5f 0%, #00B894 100%); */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

:where(html.island-console) .header-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-console) .header-user-name {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:where(html.island-console) .header-user-arrow {
    color: #8891a4;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

:where(html.island-console) .header-user-dropdown.open .header-user-arrow {
    transform: rotate(180deg);
    color: var(--theme-primary);
}

/* 下拉面板 */
:where(html.island-console) .header-user-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 1000;
    padding: 8px 0;
    overflow: hidden;
}

:where(html.island-console) .header-user-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    transform: rotate(45deg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

:where(html.island-console) .header-user-dropdown.open .header-user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 菜单头部 */
:where(html.island-console) .header-user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    /* padding: 14px 18px 10px; */
}

:where(html.island-console) .header-user-menu-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    /* background: linear-gradient(135deg, #e07a5f 0%, #00B894 100%); */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 10px;
}

:where(html.island-console) .header-user-menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-console) .header-user-menu-info {
    flex: 1;
    min-width: 0;
}

:where(html.island-console) .header-user-menu-nickname {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:where(html.island-console) .header-user-menu-account {
    font-size: 12px;
    color: #8891a4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:where(html.island-console) .header-user-menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 4px 0;
}

/* 菜单列表 */
:where(html.island-console) .header-user-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

:where(html.island-console) .header-user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    transition: all 0.2s ease;
}

:where(html.island-console) .header-user-menu-item svg {
    color: #8891a4;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

:where(html.island-console) .header-user-menu-item:hover {
    background: color-mix(in srgb, var(--theme-primary) 8%, transparent);
    color: var(--theme-primary);
}

:where(html.island-console) .header-user-menu-item:hover svg {
    color: var(--theme-primary);
}

:where(html.island-console) .header-user-menu-logout {
    color: #e74c3c;
}

:where(html.island-console) .header-user-menu-logout svg {
    color: #e74c3c;
}

:where(html.island-console) .header-user-menu-logout:hover {
    background: rgba(231, 76, 60, 0.08);
    color: #c0392b;
}

:where(html.island-console) .header-user-menu-logout:hover svg {
    color: #c0392b;
}

/* ========== 内容区 ========== */
:where(html.island-console) .dashboard-content {
    flex: 1;
    padding: 20px 24px;
    overflow-x: hidden;
}

/* ========== 卡片通用 ========== */
:where(html.island-console) .dash-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef1f5;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

:where(html.island-console) .dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

:where(html.island-console) .dash-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    position: relative;
    padding-left: 12px;
}

:where(html.island-console) .dash-card-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 14px;
    background: linear-gradient(180deg, var(--theme-primary) 0%, #6B8EFF 100%);
    border-radius: 2px;
}

:where(html.island-console) .dash-card-subtitle {
    font-size: 12px;
    color: #8891a4;
}

:where(html.island-console) .dash-card-link {
    font-size: 13px;
    color: var(--theme-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

:where(html.island-console) .dash-card-link:hover {
    color: var(--theme-primary);
    text-decoration: underline;
}

/* ========== 顶部横幅 ========== */
:where(html.island-console) .dash-banner {
    background: var(--theme-primary);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 16px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

:where(html.island-console) .dash-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

:where(html.island-console) .dash-banner-content {
    position: relative;
    z-index: 2;
}

:where(html.island-console) .dash-banner-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

:where(html.island-console) .dash-banner-subtitle {
    font-size: 15px;
    margin-bottom: 8px;
    opacity: 0.95;
}

:where(html.island-console) .dash-banner-desc {
    font-size: 13px;
    opacity: 0.85;
    max-width: 600px;
}

:where(html.island-console) .dash-banner-decor {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* ========== 统计卡片网格 ========== */
:where(html.island-console) .dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

:where(html.island-console) .dash-stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef1f5;
    transition: all 0.25s ease;
}

:where(html.island-console) .dash-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

:where(html.island-console) .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

:where(html.island-console) .stat-content {
    flex: 1;
}

:where(html.island-console) .stat-label {
    font-size: 13px;
    color: #8891a4;
    margin-bottom: 6px;
}

:where(html.island-console) .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

:where(html.island-console) .stat-trend {
    font-size: 12px;
    color: #8891a4;
    margin-top: 4px;
}

/* ========== 双栏布局 ========== */
:where(html.island-console) .dash-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* ========== 最近列表 ========== */
:where(html.island-console) .recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:where(html.island-console) .recent-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.2s ease;
}

:where(html.island-console) .recent-item:hover {
    background: #f0f4f8;
}

:where(html.island-console) .recent-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

:where(html.island-console) .recent-item-content {
    flex: 1;
    min-width: 0;
}

:where(html.island-console) .recent-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:where(html.island-console) .recent-item-meta {
    font-size: 12px;
    color: #8891a4;
    display: flex;
    align-items: center;
    gap: 4px;
}

:where(html.island-console) .meta-dot {
    margin: 0 2px;
}

/* 最近内容改成可点的链接 */
:where(html.island-console) a.recent-item {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

:where(html.island-console) .recent-item-go {
    align-self: center;
    flex-shrink: 0;
    color: #c3cad4;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

:where(html.island-console) .recent-item:hover .recent-item-go {
    color: var(--theme-primary);
    transform: translateX(2px);
}

:where(html.island-console) .recent-item:hover .recent-item-name {
    color: var(--theme-primary);
}

/* ========== 工作台图表 ========== */
:where(html.island-console) .dash-chart-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

:where(html.island-console) .dash-chart-row > .dash-card {
    margin-bottom: 0;
}

:where(html.island-console) .dash-chart {
    width: 100%;
    height: 220px;
}

:where(html.island-console) .dash-chart-legend {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

:where(html.island-console) .dash-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #8891a4;
}

:where(html.island-console) .dash-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

:where(html.island-console) .dash-chart-empty {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #8891a4;
}

:where(html.island-console) .dash-chart-empty a {
    color: var(--theme-primary);
    margin-left: 4px;
}

/* 收藏去向：按桶的横向条 */
:where(html.island-console) .dash-bucket {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 6px;
}

:where(html.island-console) .dash-bucket-row {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #8891a4;
}

:where(html.island-console) .dash-bucket-track {
    height: 7px;
    border-radius: 4px;
    background: #f0f2f5;
    overflow: hidden;
}

:where(html.island-console) .dash-bucket-fill {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: var(--theme-primary);
}

:where(html.island-console) .dash-bucket-num {
    text-align: right;
    color: #1a1a1a;
    font-weight: 600;
}

:where(html.island-console) .dash-bucket-tip {
    margin: 14px 0 0;
    font-size: 12px;
    color: #a8b0bd;
}

@media (max-width: 1180px) {
    :where(html.island-console) .dash-chart-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :where(html.island-console) .dash-chart,
    :where(html.island-console) .dash-chart-empty {
        height: 180px;
    }
}

/* ========== 空状态 ========== */
:where(html.island-console) .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #8891a4;
}

:where(html.island-console) .empty-state svg {
    margin-bottom: 12px;
    opacity: 0.3;
}

:where(html.island-console) .empty-state p {
    font-size: 14px;
    margin: 0;
}

:where(html.island-console) .empty-state a {
    color: var(--theme-primary);
    text-decoration: none;
    font-weight: 500;
}

:where(html.island-console) .empty-state a:hover {
    text-decoration: underline;
}

:where(html.island-console) .empty-state a.btn-primary {
    color: #fff;
}

:where(html.island-console) .empty-state a.btn-primary:hover {
    text-decoration: none;
    opacity: 0.9;
}

/* ========== 响应式 ========== */

/* 折叠按钮和折叠样式仅大屏（>1000px）生效 */
@media (max-width: 1000px) {
    :where(html.island-console) .sidebar-collapse-btn {
        display: none !important;
    }

    :where(html.island-console) .dashboard-sidebar.collapsed {
        width: 220px !important;
    }

    :where(html.island-console) .dashboard-sidebar.collapsed .sidebar-logo {
        justify-content: flex-start;
        padding: 0 20px;
    }

    :where(html.island-console) .dashboard-sidebar.collapsed .sidebar-logo-img {
        height: 36px;
        width: auto;
    }

    :where(html.island-console) .dashboard-sidebar.collapsed .menu-text,
    :where(html.island-console) .dashboard-sidebar.collapsed .menu-arrow {
        display: inline !important;
    }

    :where(html.island-console) .dashboard-sidebar.collapsed .sidebar-logout span {
        display: inline !important;
    }

    :where(html.island-console) .dashboard-sidebar.collapsed ~ .sidebar-overlay ~ .dashboard-main,
    :where(html.island-console) body:has(.dashboard-sidebar.collapsed) .dashboard-main {
        margin-left: 220px !important;
    }
}

@media (max-width: 1200px) {
    :where(html.island-console) .dash-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :where(html.island-console) .dash-stats-grid {
        grid-template-columns: 1fr;
    }
    
    :where(html.island-console) .dash-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ========== 四大中心 ========== */
:where(html.island-console) .dash-center-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

:where(html.island-console) .dash-center-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef1f5;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

:where(html.island-console) .dash-center-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

:where(html.island-console) .dash-center-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.1;
}

:where(html.island-console) .dash-center-1::before { background: var(--theme-primary); }
:where(html.island-console) .dash-center-2::before { background: #FFB547; }
:where(html.island-console) .dash-center-3::before { background: #6B8EFF; }
:where(html.island-console) .dash-center-4::before { background: #FF6B8A; }

:where(html.island-console) .center-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

:where(html.island-console) .dash-center-1 .center-icon { background: linear-gradient(135deg, var(--theme-primary) 0%, color-mix(in srgb, var(--theme-primary) 80%, black) 100%); }
:where(html.island-console) .dash-center-2 .center-icon { background: linear-gradient(135deg, #FFB547 0%, #FF8F47 100%); }
:where(html.island-console) .dash-center-3 .center-icon { background: linear-gradient(135deg, #6B8EFF 0%, #8F6BFF 100%); }
:where(html.island-console) .dash-center-4 .center-icon { background: linear-gradient(135deg, #FF6B8A 0%, #FF4757 100%); }

:where(html.island-console) .center-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

:where(html.island-console) .center-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

:where(html.island-console) .center-desc {
    font-size: 12px;
    color: #8891a4;
}

/* ========== 数据统计 ========== */
:where(html.island-console) .dash-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #eef1f5;
    margin-bottom: 16px;
}

:where(html.island-console) .dash-stats-row-sm {
    grid-template-columns: repeat(6, 1fr);
    padding-bottom: 0;
    border-bottom: 0;
    margin-bottom: 0;
}

:where(html.island-console) .stat-cell {
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 10px;
}

:where(html.island-console) .stat-label {
    font-size: 13px;
    color: #8891a4;
    margin-bottom: 6px;
}

:where(html.island-console) .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

:where(html.island-console) .stat-trend {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
}

:where(html.island-console) .stat-trend.up {
    color: var(--theme-primary);
    background: color-mix(in srgb, var(--theme-primary) 10%, transparent);
}

:where(html.island-console) .stat-trend.down {
    color: #FF6B8A;
    background: rgba(255, 107, 138, 0.1);
}

:where(html.island-console) .stat-cell-sm {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

:where(html.island-console) .stat-label-sm {
    font-size: 12px;
    color: #8891a4;
}

:where(html.island-console) .stat-value-sm {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

/* ========== 双栏 / 三栏 ========== */
:where(html.island-console) .dash-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

:where(html.island-console) .dash-card-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

:where(html.island-console) .dash-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ========== 环形图 ========== */
:where(html.island-console) .dash-donut-wrap {
    display: flex;
    align-items: center;
    gap: 28px;
}

:where(html.island-console) .donut-chart {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}

:where(html.island-console) .donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

:where(html.island-console) .donut-num {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
}

:where(html.island-console) .donut-text {
    font-size: 12px;
    color: #8891a4;
    margin-top: 2px;
}

:where(html.island-console) .donut-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:where(html.island-console) .donut-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

:where(html.island-console) .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

:where(html.island-console) .legend-label {
    flex: 1;
    color: #5a6378;
}

:where(html.island-console) .legend-value {
    color: #1a1a1a;
    font-weight: 600;
}

/* ========== 进度条列表 ========== */
:where(html.island-console) .bar-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 8px 0;
}

:where(html.island-console) .bar-list li {
    display: flex;
    align-items: center;
    gap: 14px;
}

:where(html.island-console) .bar-label {
    width: 60px;
    font-size: 13px;
    color: #5a6378;
    flex-shrink: 0;
}

:where(html.island-console) .bar-track {
    flex: 1;
    height: 10px;
    background: #f0f3f7;
    border-radius: 5px;
    overflow: hidden;
}

:where(html.island-console) .bar-fill {
    display: block;
    height: 100%;
    border-radius: 5px;
    transition: width 0.6s ease;
}

:where(html.island-console) .bar-value {
    width: 50px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    flex-shrink: 0;
}

/* ========== 个人中心专属 ========== */
:where(html.island-console) .profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

:where(html.island-console) .profile-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    /* background: linear-gradient(135deg, #e07a5f 0%, #00B894 100%); */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

:where(html.island-console) .profile-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-console) .profile-info {
    flex: 1;
}

:where(html.island-console) .profile-nickname {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

:where(html.island-console) .profile-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

:where(html.island-console) .profile-tag {
    padding: 3px 10px;
    background: #f5f7fa;
    border-radius: 12px;
    font-size: 12px;
    color: #5a6378;
}

:where(html.island-console) .info-list {
    display: flex;
    flex-direction: column;
}

:where(html.island-console) .info-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eef1f5;
    font-size: 13px;
}

:where(html.island-console) .info-list li:last-child { border-bottom: 0; }

:where(html.island-console) .info-label { color: #8891a4; }
:where(html.island-console) .info-value { color: #1a1a1a; font-weight: 500; }

:where(html.island-console) .security-list {
    display: flex;
    flex-direction: column;
}

:where(html.island-console) .security-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #eef1f5;
}

:where(html.island-console) .security-list li:last-child { border-bottom: 0; }

:where(html.island-console) .security-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 3px;
}

:where(html.island-console) .security-desc {
    font-size: 12px;
    color: #8891a4;
}

:where(html.island-console) .btn-link {
    color: var(--theme-primary);
    font-size: 13px;
    font-weight: 500;
}

:where(html.island-console) .btn-link:hover { text-decoration: underline; }

:where(html.island-console) .shortcut-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

:where(html.island-console) .shortcut-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: #f8fafc;
    border-radius: 10px;
    color: #5a6378;
    font-size: 13px;
    transition: all 0.2s ease;
}

:where(html.island-console) .shortcut-cell:hover {
    background: color-mix(in srgb, var(--theme-primary) 8%, transparent);
    color: var(--theme-primary);
    transform: translateY(-2px);
}

:where(html.island-console) .shortcut-cell.shortcut-danger:hover {
    background: rgba(231, 76, 60, 0.08);
    color: #e74c3c;
}

/* ========== 订单页 ========== */
:where(html.island-console) .order-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef1f5;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

:where(html.island-console) .filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

:where(html.island-console) .filter-tab {
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 13px;
    color: #5a6378;
    text-decoration: none;
    transition: all 0.2s ease;
}

:where(html.island-console) .filter-tab:hover { color: var(--theme-primary); }

:where(html.island-console) .filter-tab.active {
    background: var(--theme-primary);
    color: #fff;
}

:where(html.island-console) .filter-search {
    position: relative;
    width: 220px;
}

:where(html.island-console) .filter-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8891a4;
}

:where(html.island-console) .filter-search-input {
    width: 100%;
    height: 34px;
    padding: 0 14px 0 34px;
    border: 1px solid #e8ecf2;
    border-radius: 17px;
    background: #f8fafc;
    font-size: 13px;
    outline: none;
}

:where(html.island-console) .filter-search-input:focus {
    border-color: var(--theme-primary);
    background: #fff;
}

:where(html.island-console) .order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:where(html.island-console) .order-card {
    border: 1px solid #eef1f5;
    border-radius: 10px;
    overflow: hidden;
}

:where(html.island-console) .order-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    background: #f8fafc;
    font-size: 13px;
    color: #5a6378;
}

:where(html.island-console) .order-no { font-weight: 500; }
:where(html.island-console) .order-time { color: #8891a4; flex: 1; }

:where(html.island-console) .order-status {
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

:where(html.island-console) .order-status-0 { background: rgba(255, 181, 71, 0.15); color: #FFB547; }
:where(html.island-console) .order-status-1 { background: rgba(107, 142, 255, 0.15); color: #6B8EFF; }
:where(html.island-console) .order-status-2 { background: color-mix(in srgb, var(--theme-primary) 15%, transparent); color: var(--theme-primary); }
:where(html.island-console) .order-status-3 { background: rgba(136, 145, 164, 0.15); color: #8891a4; }

:where(html.island-console) .order-card-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
}

:where(html.island-console) .order-product {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

:where(html.island-console) .order-product img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

:where(html.island-console) .order-product-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 4px;
}

:where(html.island-console) .order-product-info p {
    font-size: 12px;
    color: #8891a4;
}

:where(html.island-console) .order-meta {
    text-align: right;
    flex-shrink: 0;
}

:where(html.island-console) .order-price {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

:where(html.island-console) .order-qty {
    font-size: 12px;
    color: #8891a4;
}

:where(html.island-console) .order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #fafbfd;
    border-top: 1px dashed #eef1f5;
}

:where(html.island-console) .order-total { font-size: 13px; color: #5a6378; }
:where(html.island-console) .order-total b { color: #FF6B8A; font-size: 16px; }

:where(html.island-console) .order-actions { display: flex; gap: 8px; }

/* ========== 空状态 ========== */
:where(html.island-console) .empty-state {
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

:where(html.island-console) .empty-text {
    font-size: 14px;
    color: #8891a4;
}

/* ========== 设置页 / 表单 ========== */
:where(html.island-console) .setting-panel {
    display: none;
}

:where(html.island-console) .setting-panel.active {
    display: block;
}

:where(html.island-console) .setting-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

:where(html.island-console) .form-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

:where(html.island-console) .form-label {
    width: 80px;
    flex-shrink: 0;
    font-size: 13px;
    color: #5a6378;
    text-align: right;
}

:where(html.island-console) .form-label-req::after {
    content: '*';
    color: #ff4d4f;
    margin-left: 2px;
}

:where(html.island-console) .form-control {
    flex: 1;
    min-width: 0;
}

:where(html.island-console) .form-input {
    width: 100%;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #e8ecf2;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    color: #1a1a1a;
    outline: none;
    transition: all 0.2s ease;
}

:where(html.island-console) .form-input:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 10%, transparent);
}

:where(html.island-console) .form-input:disabled {
    background: #f5f7fa;
    color: #8891a4;
    cursor: not-allowed;
}

:where(html.island-console) .form-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #8891a4;
}

:where(html.island-console) .form-row-btn { align-items: center; }

:where(html.island-console) .avatar-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:where(html.island-console) .avatar-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

:where(html.island-console) .avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-console) .avatar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

:where(html.island-console) .btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary) 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

:where(html.island-console) .btn-upload:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

:where(html.island-console) .btn-upload:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

:where(html.island-console) .btn-upload svg {
    flex-shrink: 0;
}

:where(html.island-console) .avatar-or {
    color: #8891a4;
    font-size: 12px;
    user-select: none;
}

:where(html.island-console) .form-input-sm {
    height: 34px;
    font-size: 12px;
    flex: 1;
    min-width: 180px;
}

/* 旋转动画（上传loading） */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

:where(html.island-console) .spin {
    animation: spin 1s linear infinite;
}

:where(html.island-console) .form-msg {
    padding: 0 0 0 96px;
    font-size: 12px;
    min-height: 16px;
}

:where(html.island-console) .form-msg.success { color: var(--theme-primary); }
:where(html.island-console) .form-msg.error   { color: #e74c3c; }

:where(html.island-console) .switch-group {
    display: flex;
    gap: 16px;
}

:where(html.island-console) .switch-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
}

:where(html.island-console) .switch-item input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

:where(html.island-console) .switch-label {
    color: #1a1a1a;
}

:where(html.island-console) .radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

:where(html.island-console) .radio-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
}

:where(html.island-console) .radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

:where(html.island-console) .form-select {
    width: 100%;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #e8ecf2;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    color: #1a1a1a;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

:where(html.island-console) .form-select:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 10%, transparent);
}

:where(html.island-console) .form-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e8ecf2;
    outline: none;
    -webkit-appearance: none;
}

:where(html.island-console) .form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--theme-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

:where(html.island-console) .form-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

:where(html.island-console) .form-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--theme-primary);
    cursor: pointer;
    border: none;
}

:where(html.island-console) .range-value {
    display: inline-block;
    margin-left: 8px;
    font-size: 13px;
    color: var(--theme-primary);
    font-weight: 500;
    min-width: 40px;
}

:where(html.island-console) .color-picker-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

:where(html.island-console) .form-color {
    width: 40px;
    height: 38px;
    padding: 2px;
    border: 1px solid #e8ecf2;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
}

:where(html.island-console) .form-color::-webkit-color-swatch-wrapper {
    padding: 0;
}

:where(html.island-console) .form-color::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

/* ========== 背景图设置 ========== */
:where(html.island-console) .bg-preview {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #eef1f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

:where(html.island-console) .bg-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-console) .bg-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #999;
}

:where(html.island-console) .bg-placeholder svg {
    opacity: 0.3;
}

:where(html.island-console) .bg-placeholder p {
    font-size: 13px;
    color: #999;
}

:where(html.island-console) .bg-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:where(html.island-console) .bg-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

:where(html.island-console) .bg-upload-hint {
    font-size: 11px;
    color: var(--theme-primary);
    background: color-mix(in srgb, var(--theme-primary) 10%, transparent);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

:where(html.island-console) .bg-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8891a4;
    font-size: 12px;
}

:where(html.island-console) .bg-divider::before,
:where(html.island-console) .bg-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eef1f5;
}

/* ========== 预设头像 / 预设背景 ========== */
:where(html.island-console) .preset-label {
    font-size: 12px;
    color: #8891a4;
    margin-top: 2px;
}

:where(html.island-console) .preset-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* .form-control 为普通块级容器，需要自行补充间距 */
:where(html.island-console) .form-control > .preset-label { margin-top: 14px; }
:where(html.island-console) .form-control > .preset-strip { margin-top: 8px; }

:where(html.island-console) .preset-item {
    padding: 0;
    border: 2px solid #eef1f5;
    background-color: #f8fafc;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

:where(html.island-console) .preset-item:hover {
    transform: translateY(-2px);
}

:where(html.island-console) .preset-item.active {
    border-color: var(--theme-primary);
}

:where(html.island-console) .preset-item-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

:where(html.island-console) .preset-item-bg {
    width: 86px;
    height: 48px;
    border-radius: 8px;
}

@media (max-width: 640px) {
    :where(html.island-console) .preset-item-avatar { width: 40px; height: 40px; }
    :where(html.island-console) .preset-item-bg { width: 72px; height: 42px; }
}

/* ========== 第三方账号绑定 ========== */
:where(html.island-console) .tp-bindings {
    padding: 20px;
}

:where(html.island-console) .tp-loading {
    text-align: center;
    color: #999;
    padding: 20px;
}

:where(html.island-console) .tp-error {
    text-align: center;
    color: #e74c3c;
    padding: 20px;
}

:where(html.island-console) .tp-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

:where(html.island-console) .tp-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s;
}

:where(html.island-console) .tp-item:hover {
    background: #f0f7ff;
}

:where(html.island-console) .tp-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

:where(html.island-console) .tp-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

:where(html.island-console) .tp-item-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

:where(html.island-console) .tp-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

:where(html.island-console) .tp-item-status {
    font-size: 12px;
}

:where(html.island-console) .tp-item-status.bound {
    color: var(--theme-primary);
}

:where(html.island-console) .tp-item-status.unbound {
    color: #999;
}

:where(html.island-console) .tp-bind-btn,
:where(html.island-console) .tp-unbind-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
}

:where(html.island-console) .tp-bind-btn {
    background: var(--theme-primary);
    color: #fff;
}

:where(html.island-console) .tp-bind-btn:hover {
    background: var(--theme-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

:where(html.island-console) .tp-unbind-btn {
    background: #fee2e2;
    color: #dc2626;
}

:where(html.island-console) .tp-unbind-btn:hover {
    background: #fecaca;
}

/* ========== 第三方账号绑定页面 ========== */
:where(html.island-console) .bind-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 24px;
}

:where(html.island-console) .bind-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

:where(html.island-console) .bind-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-console) .bind-platform {
    font-size: 14px;
    color: #666;
}

:where(html.island-console) .bind-nickname {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-top: 4px;
}

:where(html.island-console) .bind-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

:where(html.island-console) .bind-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

:where(html.island-console) .bind-tab.active {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #fff;
}

:where(html.island-console) .bind-form {
    display: none;
}

:where(html.island-console) .bind-form.active {
    display: block;
}

/* ========== 按钮 ========== */
:where(html.island-console) .btn-primary {
    padding: 8px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary) 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

:where(html.island-console) .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

:where(html.island-console) .btn-outline {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #e8ecf2;
    background: #fff;
    color: #5a6378;
    font-size: 12px;
    transition: all 0.2s ease;
}

:where(html.island-console) .btn-outline:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    :where(html.island-console) .dash-center-grid { grid-template-columns: repeat(2, 1fr); }
    :where(html.island-console) .dash-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
    :where(html.island-console) .dashboard-sidebar {
        transform: translateX(-100%);
    }
    :where(html.island-console) .dashboard-sidebar.open {
        transform: translateX(0);
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    }
    :where(html.island-console) .dashboard-main { margin-left: 0; }
    :where(html.island-console) .sidebar-toggle { display: flex; }
    :where(html.island-console) .header-search { width: 180px; }
}

@media (max-width: 768px) {
    :where(html.island-console) .dashboard-content { padding: 14px; }
    :where(html.island-console) .dashboard-header { padding: 0 14px; }
    :where(html.island-console) .header-search { display: none; }
    :where(html.island-console) .header-user-name { display: none; }
    :where(html.island-console) .header-user-trigger { padding: 4px; }
    :where(html.island-console) .header-user-menu { min-width: 200px; right: -8px; }
    :where(html.island-console) .dash-banner {
        flex-direction: column;
        text-align: center;
        padding: 22px;
    }
    :where(html.island-console) .dash-banner-decor svg { width: 100px; height: 100px; }
    :where(html.island-console) .dash-banner-title { font-size: 20px; }
    :where(html.island-console) .dash-center-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    :where(html.island-console) .dash-stats-row { grid-template-columns: 1fr 1fr; }
    :where(html.island-console) .dash-stats-row-sm { grid-template-columns: repeat(3, 1fr); }
    :where(html.island-console) .dash-grid-2,
    :where(html.island-console) .dash-grid-3 { grid-template-columns: 1fr; }
    :where(html.island-console) .dash-donut-wrap { flex-direction: column; align-items: center; }
    :where(html.island-console) .profile-header { flex-direction: column; text-align: center; }
    :where(html.island-console) .profile-meta { justify-content: center; }
    :where(html.island-console) .order-filter { flex-direction: column; align-items: stretch; }
    :where(html.island-console) .filter-search { width: 100%; }
    :where(html.island-console) .filter-tabs { overflow-x: auto; flex-wrap: nowrap; }
    :where(html.island-console) .order-card-body { flex-direction: column; align-items: flex-start; }
    :where(html.island-console) .order-product img { width: 48px; height: 48px; }
    :where(html.island-console) .form-row { flex-direction: column; gap: 8px; }
    :where(html.island-console) .form-label { width: 100%; text-align: left; padding-top: 0; }
    :where(html.island-console) .form-msg { padding-left: 0; }
}

@media (max-width: 480px) {
    :where(html.island-console) .dash-center-grid { grid-template-columns: 1fr; }
    :where(html.island-console) .dash-stats-row { grid-template-columns: 1fr 1fr; }
    :where(html.island-console) .dash-stats-row-sm { grid-template-columns: 1fr 1fr; }
    :where(html.island-console) .stat-value { font-size: 20px; }
    :where(html.island-console) .shortcut-grid { grid-template-columns: 1fr 1fr; }
    :where(html.island-console) .sidebar-logo-text { font-size: 14px; }
}

/* ============================================
   物品管理模块样式
   ============================================ */

/* 统计卡片 */
:where(html.island-console) .dash-stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

:where(html.island-console) .stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eef1f5;
    display: flex;
    align-items: center;
    gap: 16px;
}

:where(html.island-console) .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

:where(html.island-console) .stat-icon-primary { background: #E8F5E9; color: var(--theme-primary); }
:where(html.island-console) .stat-icon-success { background: #E3F2FD; color: #6B8EFF; }
:where(html.island-console) .stat-icon-warning { background: #FFF3E0; color: #FFB547; }
:where(html.island-console) .stat-icon-info { background: #FCE4EC; color: #FF6B8A; }

:where(html.island-console) .stat-info { flex: 1; }

:where(html.island-console) .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

:where(html.island-console) .stat-label {
    font-size: 13px;
    color: #8891a4;
}

/* 分类列表 */
:where(html.island-console) .category-list, :where(html.island-console) .status-list {
    padding: 16px 0;
}

:where(html.island-console) .category-item {
    margin-bottom: 16px;
}

:where(html.island-console) .category-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

:where(html.island-console) .category-name {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
}

:where(html.island-console) .category-count {
    font-size: 12px;
    color: #8891a4;
}

:where(html.island-console) .category-bar {
    height: 8px;
    background: #f5f7fa;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

:where(html.island-console) .category-bar-fill {
    height: 100%;
    background: var(--theme-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

:where(html.island-console) .category-value {
    font-size: 12px;
    color: #5a6378;
}

/* 状态列表 */
:where(html.island-console) .status-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f7fa;
}

:where(html.island-console) .status-item:last-child { border-bottom: none; }

:where(html.island-console) .status-name {
    font-size: 14px;
    color: #1a1a1a;
}

:where(html.island-console) .status-count {
    font-size: 13px;
    color: #8891a4;
}

/* 物品网格 */
:where(html.island-console) .items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 16px 0;
}

:where(html.island-console) .item-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef1f5;
    cursor: pointer;
    transition: all 0.2s ease;
}

:where(html.island-console) .item-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

:where(html.island-console) .item-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f5f7fa;
}

:where(html.island-console) .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-console) .item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b8c8;
}

:where(html.island-console) .item-content {
    padding: 12px;
}

:where(html.island-console) .item-name {
    font-size: 14px;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:where(html.island-console) .item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

:where(html.island-console) .item-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--theme-primary);
}

:where(html.island-console) .item-days {
    font-size: 12px;
    color: #8891a4;
}

:where(html.island-console) .loading-text, :where(html.island-console) .empty-text {
    text-align: center;
    padding: 40px 20px;
    color: #8891a4;
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 992px) {
    :where(html.island-console) .dash-stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :where(html.island-console) .dash-stats-overview {
        grid-template-columns: 1fr;
    }
    
    :where(html.island-console) .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    :where(html.island-console) .items-grid {
        grid-template-columns: 1fr;
    }
    
    :where(html.island-console) .category-manage-grid,
    :where(html.island-console) .tag-manage-grid {
        grid-template-columns: 1fr;
    }
}

/* 筛选栏 */
:where(html.island-console) .filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
}

:where(html.island-console) .filter-group {
    display: flex;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}

:where(html.island-console) .filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

:where(html.island-console) .filter-input, :where(html.island-console) .filter-select {
    padding: 8px 12px;
    border: 1px solid #e0e4e8;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

:where(html.island-console) .filter-input {
    min-width: 200px;
}

:where(html.island-console) .filter-input:focus, :where(html.island-console) .filter-select:focus {
    border-color: var(--theme-primary);
}

/* 物品卡片增强 */
:where(html.island-console) .item-card {
    position: relative;
}

:where(html.island-console) .item-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
}

:where(html.island-console) .item-actions-card {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

:where(html.island-console) .btn-edit-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e0e4e8;
    border-radius: 6px;
    color: #55606f;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

:where(html.island-console) .btn-edit-card:hover {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #ffffff;
    box-shadow: 0 2px 6px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

:where(html.island-console) .btn-delete-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e0e4e8;
    border-radius: 6px;
    color: #55606f;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

:where(html.island-console) .btn-delete-card:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

/* 视图切换 */
:where(html.island-console) .view-toggle {
    display: inline-flex;
    border: 1px solid #e0e4e8;
    border-radius: 6px;
    overflow: hidden;
}

:where(html.island-console) .view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    background: #ffffff;
    border: none;
    color: #8891a4;
    cursor: pointer;
    transition: all 0.2s ease;
}

:where(html.island-console) .view-btn + .view-btn {
    border-left: 1px solid #e0e4e8;
}

:where(html.island-console) .view-btn.active {
    background: var(--theme-primary);
    color: #ffffff;
}

:where(html.island-console) .view-btn:hover:not(.active) {
    background: #f5f7fa;
    color: #1a1a1a;
}

/* 确认对话框 */
:where(html.island-console) .confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

:where(html.island-console) .confirm-dialog {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: confirmFadeIn 0.3s ease;
}

@keyframes confirmFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

:where(html.island-console) .confirm-icon {
    margin-bottom: 16px;
    color: #ff9800;
}

:where(html.island-console) .confirm-icon svg {
    width: 48px;
    height: 48px;
}

:where(html.island-console) .confirm-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 24px;
    line-height: 1.5;
}

:where(html.island-console) .confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

:where(html.island-console) .confirm-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-width: 80px;
}

:where(html.island-console) .confirm-btn.cancel-btn {
    background: #f5f7fa;
    color: #666;
}

:where(html.island-console) .confirm-btn.cancel-btn:hover {
    background: #eef1f5;
}

:where(html.island-console) .confirm-btn.confirm-btn {
    background: var(--theme-primary);
    color: #fff;
}

:where(html.island-console) .confirm-btn.confirm-btn:hover {
    background: #00b894;
    transform: translateY(-1px);
}

/* 列表视图 */
:where(html.island-console) .items-list-view {
    border: 1px solid #eef1f5;
    border-radius: 8px;
    overflow: hidden;
}

:where(html.island-console) .items-list-header {
    display: grid;
    grid-template-columns: 2fr 100px 120px 80px 100px 180px;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fb;
    font-size: 13px;
    font-weight: 600;
    color: #55606f;
    border-bottom: 1px solid #eef1f5;
}

:where(html.island-console) .items-list-row {
    display: grid;
    grid-template-columns: 2fr 100px 120px 80px 100px 180px;
    gap: 12px;
    padding: 12px 16px;
    align-items: center;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.15s ease;
}

:where(html.island-console) .items-list-row:last-child {
    border-bottom: none;
}

:where(html.island-console) .items-list-row:hover {
    background: #f8f9fb;
}

:where(html.island-console) .items-list-col-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #1a1a1a;
    overflow: hidden;
}

:where(html.island-console) .items-list-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

:where(html.island-console) .items-list-link:hover {
    color: var(--theme-primary);
}

:where(html.island-console) .items-list-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f7fa;
}

:where(html.island-console) .items-list-col-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:where(html.island-console) .items-list-col-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-primary);
}

:where(html.island-console) .items-list-col-category {
    font-size: 13px;
    color: #8891a4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:where(html.island-console) .items-list-col-status {
    display: flex;
    justify-content: center;
}

:where(html.island-console) .items-list-col-days {
    font-size: 13px;
    color: #8891a4;
    text-align: center;
}

:where(html.island-console) .items-list-col-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

:where(html.island-console) .btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f5f7fa;
    color: #666;
}

:where(html.island-console) .btn-icon:hover {
    transform: scale(1.1);
}

:where(html.island-console) .btn-icon.btn-view:hover {
    background: #e8f8f5;
    color: var(--theme-primary);
}

:where(html.island-console) .btn-icon.btn-edit:hover {
    background: #fff3e0;
    color: #ff9800;
}

:where(html.island-console) .btn-icon.btn-delete:hover {
    background: #ffebee;
    color: #f44336;
}

:where(html.island-console) .btn-xs {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
}

@media (max-width: 992px) {
    :where(html.island-console) .items-list-header,
    :where(html.island-console) .items-list-row {
        grid-template-columns: 2fr 80px 100px 70px 160px;
    }
    :where(html.island-console) .items-list-col-category {
        display: none;
    }
}

@media (max-width: 768px) {
    :where(html.island-console) .items-list-header,
    :where(html.island-console) .items-list-row {
        grid-template-columns: 1fr 80px 140px;
        gap: 8px;
        padding: 10px 12px;
    }
    :where(html.island-console) .items-list-col-price,
    :where(html.island-console) .items-list-col-category,
    :where(html.island-console) .items-list-col-days {
        display: none;
    }
    :where(html.island-console) .items-list-col-status {
        display: none;
    }
    :where(html.island-console) .items-list-col-actions {
        justify-content: flex-start;
    }
}

/* 分类卡片可点击 */
:where(html.island-console) .category-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

:where(html.island-console) .category-clickable:hover {
    border-color: var(--theme-primary);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 15%, transparent);
    transform: translateY(-2px);
}

/* 分类详情页 */
:where(html.island-console) .category-detail-header {
    margin-bottom: 20px;
}

:where(html.island-console) .category-detail-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

:where(html.island-console) .category-detail-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary) 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

:where(html.island-console) .category-detail-icon svg {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
}

:where(html.island-console) .category-detail-meta {
    flex: 1;
    min-width: 0;
}

:where(html.island-console) .category-detail-name {
    font-size: 24px;
    font-weight: 600;
    color: #1a1f26;
    margin: 0 0 12px 0;
}

:where(html.island-console) .category-detail-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

:where(html.island-console) .cd-stat {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}

:where(html.island-console) .cd-stat-label {
    font-size: 12px;
    color: #8792a2;
}

:where(html.island-console) .cd-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #1a1f26;
}

:where(html.island-console) .category-detail-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    :where(html.island-console) .category-detail-info {
        gap: 12px;
    }
    :where(html.island-console) .category-detail-icon {
        width: 56px;
        height: 56px;
    }
    :where(html.island-console) .category-detail-icon svg {
        width: 32px;
        height: 32px;
    }
    :where(html.island-console) .category-detail-name {
        font-size: 18px;
    }
    :where(html.island-console) .cd-stat-value {
        font-size: 16px;
    }
}

:where(html.island-console) .item-check {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

:where(html.island-console) .item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

:where(html.island-console) .item-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 6px;
}

:where(html.island-console) .status-1 { background: #E8F5E9; color: #2E7D32; }
:where(html.island-console) .status-2 { background: #E3F2FD; color: #1565C0; }
:where(html.island-console) .status-3 { background: #FFF3E0; color: #E65100; }
:where(html.island-console) .status-4 { background: #FCE4EC; color: #C2185B; }
:where(html.island-console) .status-5 { background: #F3E5F5; color: #7B1FA2; }
:where(html.island-console) .status-6 { background: #FFF9C4; color: #F57F17; }
:where(html.island-console) .status-7 { background: #F5F5F5; color: #616161; }

/* 分页 */
:where(html.island-console) .pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #f5f7fa;
    margin-top: 16px;
}

:where(html.island-console) .pagination-info {
    font-size: 14px;
    color: #5a6378;
}

:where(html.island-console) .pagination-btns {
    display: flex;
    gap: 8px;
}

:where(html.island-console) .page-btn {
    padding: 6px 14px;
    border: 1px solid #e0e4e8;
    border-radius: 6px;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

:where(html.island-console) .page-btn:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

:where(html.island-console) .page-info {
    font-size: 13px;
    color: #8891a4;
}

/* 表单样式 */
:where(html.island-console) .item-form {
    max-width: 900px;
}

:where(html.island-console) .form-row {
    margin-bottom: 20px;
}

:where(html.island-console) .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

:where(html.island-console) .form-label {
    display: block;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 500;
}

:where(html.island-console) .form-control {
    width: 100%;
}

:where(html.island-console) .form-input, :where(html.island-console) .form-select, :where(html.island-console) .form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

:where(html.island-console) .form-input:focus, :where(html.island-console) .form-select:focus, :where(html.island-console) .form-textarea:focus {
    border-color: var(--theme-primary);
}

:where(html.island-console) .form-textarea {
    resize: vertical;
    min-height: 100px;
}

:where(html.island-console) .required {
    color: #ff4d4f;
}

:where(html.island-console) .form-row-btn {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

/* 标签选择器 */
:where(html.island-console) .tag-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

:where(html.island-console) .tag-item {
    cursor: pointer;
}

:where(html.island-console) .tag-item input[type="checkbox"] {
    display: none;
}

:where(html.island-console) .tag-label {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

:where(html.island-console) .tag-item input[type="checkbox"]:checked + .tag-label {
    border-color: var(--theme-primary);
    font-weight: 600;
}

/* 图片上传 */
:where(html.island-console) .image-uploader {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

:where(html.island-console) .image-preview {
    width: 120px;
    height: 120px;
    border: 2px dashed #e0e4e8;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease;
    color: #b0b8c8;
}

:where(html.island-console) .image-preview:hover {
    border-color: var(--theme-primary);
}

:where(html.island-console) .image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

:where(html.island-console) .detail-images {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

:where(html.island-console) .detail-image-item {
    position: relative;
    width: 100px;
    height: 100px;
}

:where(html.island-console) .detail-image-item.is-cover {
    border: 3px solid var(--theme-primary);
    border-radius: 8px;
}

:where(html.island-console) .cover-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--theme-primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 2;
}

:where(html.island-console) .detail-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

:where(html.island-console) .remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff4d4f;
    color: #ffffff;
    border: none;
    font-size: 18px;
    line-height: 24px;
    cursor: pointer;
    padding: 0;
}

:where(html.island-console) .add-image {
    background: #f5f7fa;
}

/* 编辑页封面上传区域 */
:where(html.island-console) .image-upload-area {
    width: 140px;
    height: 140px;
    border: 2px dashed #e0e4e8;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease;
    overflow: hidden;
}
:where(html.island-console) .image-upload-area:hover {
    border-color: var(--theme-primary);
}
:where(html.island-console) .uploaded-preview {
    width: 100%;
    height: 100%;
    position: relative;
}
:where(html.island-console) .uploaded-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
:where(html.island-console) .remove-cover {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 77, 79, 0.9);
    color: #fff;
    border: none;
    font-size: 20px;
    line-height: 26px;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}
:where(html.island-console) .remove-cover:hover {
    background: #ff4d4f;
}
:where(html.island-console) .upload-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #b0b8c8;
    gap: 8px;
}
:where(html.island-console) .upload-placeholder svg {
    opacity: 0.5;
}
:where(html.island-console) .upload-placeholder p {
    font-size: 12px;
    margin: 0;
}

/* 表单操作区 */
:where(html.island-console) .form-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f0f2f5;
    margin-top: 20px;
}

:where(html.island-console) .btn-secondary {
    padding: 10px 24px;
    background: #f5f7fa;
    color: #5a6378;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

:where(html.island-console) .btn-secondary:hover {
    background: #e8ecf2;
}

/* 表单行三列布局 */
:where(html.island-console) .form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Tab导航 */
:where(html.island-console) .item-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #eef1f5;
    margin-bottom: 20px;
}

:where(html.island-console) .item-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: none;
    border: none;
    color: #8891a4;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

:where(html.island-console) .item-tab:hover {
    color: var(--theme-primary);
}

:where(html.island-console) .item-tab.active {
    color: var(--theme-primary);
    border-bottom-color: var(--theme-primary);
}

:where(html.island-console) .item-tab svg {
    width: 16px;
    height: 16px;
}

/* 更多设置按钮 */
:where(html.island-console) .btn-more-settings {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f5f7fa;
    color: var(--theme-primary);
    border: 1px solid #e8ecf2;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

:where(html.island-console) .btn-more-settings:hover {
    background: #e8f5f0;
    border-color: var(--theme-primary);
}

:where(html.island-console) .btn-more-settings:active {
    transform: scale(0.98);
}

:where(html.island-console) .btn-more-settings svg:first-child {
    width: 16px;
    height: 16px;
}

:where(html.island-console) .btn-more-settings .arrow-icon {
    margin-left: 4px;
    transition: transform 0.3s ease;
}

:where(html.island-console) .btn-more-settings svg:last-child {
    width: 14px;
    height: 14px;
}

/* 开关按钮行 */
:where(html.island-console) .switch-row {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0fdf9 0%, #e8f5e9 100%);
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--theme-primary) 15%, transparent);
}

:where(html.island-console) .switch-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

:where(html.island-console) .switch-item .form-label {
    width: auto;
    flex-shrink: 0;
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
    text-align: left;
    padding-top: 0;
    margin-bottom: 0;
}

/* Tab面板 */
:where(html.island-console) .item-tab-panel {
    display: none;
}

:where(html.island-console) .item-tab-panel.active {
    display: block;
}

/* 表单区块标题 */
:where(html.island-console) .form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef1f5;
}

:where(html.island-console) .form-section-title svg {
    color: var(--theme-primary);
}

/* 开关滑块 */
:where(html.island-console) .switch-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

:where(html.island-console) .switch-label input[type="checkbox"] {
    display: none;
}

:where(html.island-console) .switch-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #e0e4e8;
    border-radius: 12px;
    transition: all 0.3s ease;
}

:where(html.island-console) .switch-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

:where(html.island-console) .switch-label input[type="checkbox"]:checked + .switch-slider {
    background: var(--theme-primary);
}

:where(html.island-console) .switch-label input[type="checkbox"]:checked + .switch-slider::before {
    transform: translateX(20px);
}

/* 表单提示 */
:where(html.island-console) .form-hint {
    display: block;
    font-size: 12px;
    color: #8891a4;
    margin-top: 6px;
}

/* 添加编码按钮 */
:where(html.island-console) .add-code-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: #f5f7fa;
    color: var(--theme-primary);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    transition: all 0.2s ease;
}

:where(html.island-console) .add-code-btn:hover {
    background: color-mix(in srgb, var(--theme-primary) 10%, transparent);
}

:where(html.island-console) .btn-remove-code {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ff4d4f;
    color: #fff;
    border: none;
    font-size: 18px;
    line-height: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
}

:where(html.island-console) .btn-remove-code:hover {
    background: #e63946;
}

/* 额外编码项 */
:where(html.island-console) .extra-code-item {
    margin-bottom: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

/* 图片预览网格 */
:where(html.island-console) .image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

:where(html.island-console) .image-preview-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #eef1f5;
}

:where(html.island-console) .image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 扩展设置折叠 */
:where(html.island-console) .form-section-toggle {
    user-select: none;
}
:where(html.island-console) .form-section-toggle svg {
    transition: transform 0.2s ease;
}
:where(html.island-console) .form-section-advanced {
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    margin-top: 8px;
}

/* 表单 select 增强 */
:where(html.island-console) .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6378' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}
:where(html.island-console) .form-select option {
    padding: 8px;
}

/* textarea 增强 */
:where(html.island-console) .form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    line-height: 1.5;
}

/* 品牌建议 */
:where(html.island-console) .suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

:where(html.island-console) .suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
}

:where(html.island-console) .suggestion-item:hover {
    background: #f5f7fa;
}

/* 分类管理列表 */
:where(html.island-console) .category-manage-list {
    padding: 16px 0;
}

:where(html.island-console) .category-manage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f7fa;
}

:where(html.island-console) .category-manage-item:last-child {
    border-bottom: none;
}

/* 分类管理网格（兼容旧class）与标签一致 */
:where(html.island-console) .category-manage-grid,
:where(html.island-console) .tag-manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    padding: 16px 0;
}

:where(html.island-console) .category-manage-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #eef1f5;
    border-radius: 10px;
    transition: all 0.2s ease;
}

:where(html.island-console) .category-manage-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

:where(html.island-console) .category-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

:where(html.island-console) .category-card-name {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 600;
}

:where(html.island-console) .category-card-actions {
    display: flex;
    gap: 8px;
}

:where(html.island-console) .category-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #f5f7fa;
    color: #8891a4;
    font-size: 11px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1.6;
}

/* 分类图标块 */
:where(html.island-console) .category-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f5f7fa;
    color: var(--theme-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

:where(html.island-console) .category-icon svg {
    width: 22px;
    height: 22px;
    max-width: 32px;
    max-height: 32px;
    display: block;
}

/* 图标选择器：表格/网格布局 */
:where(html.island-console) .icon-grid,
:where(html.island-console) .icon-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 6px;
    padding: 8px;
    border: 1px solid #eef1f5;
    border-radius: 8px;
    background: #fafbfc;
}

:where(html.island-console) .icon-option {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    background: #ffffff;
    border: 2px solid transparent;
    color: #55606f;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    padding: 0;
    overflow: hidden;
}

:where(html.island-console) .icon-option:hover {
    background: #f0f2f5;
    color: var(--theme-primary);
}

:where(html.island-console) .icon-option.selected {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    background: #E8F7F3;
}

:where(html.island-console) .icon-option svg {
    width: 20px;
    height: 20px;
    max-width: 32px;
    max-height: 32px;
    display: block;
}

/* 标签管理网格的 grid-template-columns 已合并到上方公共规则（.category-manage-grid, .tag-manage-grid） */

:where(html.island-console) .tag-manage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #eef1f5;
    border-radius: 10px;
    transition: all 0.2s ease;
}

:where(html.island-console) .tag-manage-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

:where(html.island-console) .tag-color {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}

:where(html.island-console) .tag-info {
    flex: 1;
}

:where(html.island-console) .tag-name {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
    margin-bottom: 4px;
}

:where(html.island-console) .tag-count {
    font-size: 12px;
    color: #8891a4;
}

/* 颜色选择器 */
:where(html.island-console) .color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

:where(html.island-console) .color-option {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

:where(html.island-console) .color-option.selected {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--theme-primary);
}

/* 弹窗样式 */
:where(html.island-console) .modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

:where(html.island-console) .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

:where(html.island-console) .modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10000;
}

:where(html.island-console) .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f5f7fa;
    position: relative;
    z-index: 2;
}

:where(html.island-console) .modal-title {
    font-size: 16px;
    color: #1a1a1a;
    margin: 0;
    padding-right: 40px;
}

:where(html.island-console) .modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #8891a4;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 10001;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

:where(html.island-console) .modal-close:hover {
    color: #ef4444;
    background: #f5f7fa;
}

:where(html.island-console) .modal-body {
    padding: 20px;
}

:where(html.island-console) .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #f5f7fa;
}

/* 按钮样式 */
:where(html.island-console) .btn-primary, :where(html.island-console) .btn-default, :where(html.island-console) .btn-danger {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

:where(html.island-console) .btn-primary {
    background: var(--theme-primary);
    color: #ffffff;
}

:where(html.island-console) .btn-primary:hover {
    background: #00c49a;
}

:where(html.island-console) .btn-default {
    background: #f5f7fa;
    color: #5a6378;
}

:where(html.island-console) .btn-default:hover {
    background: #eef1f5;
}

:where(html.island-console) .btn-danger {
    background: #ff4d4f;
    color: #ffffff;
}

:where(html.island-console) .btn-danger:hover {
    background: #e63c3e;
}

:where(html.island-console) .btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

:where(html.island-console) .btn-text {
    background: none;
    border: none;
    color: #5a6378;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}
:where(html.island-console) .btn-text:hover {
    color: var(--theme-primary);
}

:where(html.island-console) .btn-delete {
    background: none;
    border: none;
    color: #ff4d4f;
    cursor: pointer;
    font-size: 20px;
    padding: 4px 8px;
}

:where(html.island-console) .btn-delete:hover {
    background: #fee;
    border-radius: 4px;
}

:where(html.island-console) .btn-edit {
    background: none;
    border: none;
    color: var(--theme-primary);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 12px;
    margin-right: 4px;
}

:where(html.island-console) .btn-edit:hover {
    background: #e8f5e9;
    border-radius: 4px;
}

:where(html.island-console) .category-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

:where(html.island-console) .tag-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* 消息提示 */
:where(html.island-console) .form-msg {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 12px;
}

:where(html.island-console) .form-msg.success {
    background: #E8F5E9;
    color: #2E7D32;
}

:where(html.island-console) .form-msg.error {
    background: #FFEBEE;
    color: #C62828;
}

/* 响应式增强 */
@media (max-width: 768px) {
    :where(html.island-console) .filter-bar {
        flex-direction: column;
    }
    
    :where(html.island-console) .filter-group {
        width: 100%;
    }
    
    :where(html.island-console) .filter-input {
        width: 100%;
        min-width: auto;
    }
    
    :where(html.island-console) .form-row-2 {
        grid-template-columns: 1fr;
    }
    
    :where(html.island-console) .tag-manage-grid,
    :where(html.island-console) .category-manage-grid {
        grid-template-columns: 1fr;
    }
}

/* 物品详情页 */
:where(html.island-console) .item-detail-gallery {
    padding: 16px 0;
}

:where(html.island-console) .main-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f7fa;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

:where(html.island-console) .main-image:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

:where(html.island-console) .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

:where(html.island-console) .detail-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    padding: 4px 0;
}

@media (min-width: 600px) {
    :where(html.island-console) .detail-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

@media (min-width: 900px) {
    :where(html.island-console) .detail-thumbs {
        grid-template-columns: repeat(6, 1fr);
    }
}

:where(html.island-console) .thumb-item {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

:where(html.island-console) .thumb-item:hover {
    border-color: var(--theme-primary);
    transform: scale(1.05);
}

:where(html.island-console) .thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

:where(html.island-console) .item-detail-title {
    font-size: 24px;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

:where(html.island-console) .item-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

:where(html.island-console) .detail-stat-item {
    text-align: center;
    padding: 16px;
    background: #f5f7fa;
    border-radius: 10px;
}

:where(html.island-console) .detail-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--theme-primary);
    margin-bottom: 6px;
}

:where(html.island-console) .detail-stat-label {
    font-size: 13px;
    color: #8891a4;
}

:where(html.island-console) .item-detail-info {
    margin-bottom: 20px;
}

:where(html.island-console) .info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f5f7fa;
}

:where(html.island-console) .info-row:last-child {
    border-bottom: none;
}

:where(html.island-console) .info-label {
    width: 100px;
    font-size: 14px;
    color: #8891a4;
    flex-shrink: 0;
}

:where(html.island-console) .info-value {
    flex: 1;
    font-size: 14px;
    color: #1a1a1a;
}

:where(html.island-console) .item-detail-tags, :where(html.island-console) .item-detail-desc {
    margin-bottom: 20px;
}

:where(html.island-console) .detail-section-title {
    font-size: 14px;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    font-weight: 600;
}

:where(html.island-console) .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

:where(html.island-console) .tag-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
}

:where(html.island-console) .item-detail-desc p {
    font-size: 14px;
    color: #5a6378;
    line-height: 1.6;
    margin: 0;
}

:where(html.island-console) .item-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* 状态时间线 */
:where(html.island-console) .status-timeline {
    padding: 16px 0;
}

:where(html.island-console) .timeline-list {
    position: relative;
    padding-left: 30px;
}

:where(html.island-console) .timeline-list::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #eef1f5;
}

:where(html.island-console) .timeline-item {
    position: relative;
    padding-bottom: 24px;
}

:where(html.island-console) .timeline-item:last-child {
    padding-bottom: 0;
}

:where(html.island-console) .timeline-dot {
    position: absolute;
    left: -26px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--theme-primary);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px var(--theme-primary);
}

:where(html.island-console) .timeline-content {
    padding: 12px 16px;
    background: #f5f7fa;
    border-radius: 8px;
}

:where(html.island-console) .timeline-time {
    font-size: 12px;
    color: #8891a4;
    margin-bottom: 6px;
}

:where(html.island-console) .timeline-title {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
    margin-bottom: 6px;
}

:where(html.island-console) .timeline-remark {
    font-size: 13px;
    color: #5a6378;
    line-height: 1.5;
}

/* 响应式 - 详情页 */
@media (max-width: 992px) {
    :where(html.island-console) .item-detail-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :where(html.island-console) .main-image {
        height: 300px;
    }
    
    :where(html.island-console) .item-detail-title {
        font-size: 20px;
    }
    
    :where(html.island-console) .detail-stat-value {
        font-size: 20px;
    }
}

/* ========== 账户绑定页面 ========== */
/* 顶部主切换卡 */
:where(html.island-console) .bind-main-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 0;
}

:where(html.island-console) .bind-main-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: #5a6378;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

:where(html.island-console) .bind-main-tab:hover {
    color: var(--theme-primary);
    text-decoration: none;
}

:where(html.island-console) .bind-main-tab.active {
    color: var(--theme-primary);
    border-bottom-color: var(--theme-primary);
}

:where(html.island-console) .bind-main-tab .bind-pending-badge {
    margin-left: 4px;
}

/* 绑定模式切换（弹窗内） */
:where(html.island-console) .bind-mode-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f2f5;
}

:where(html.island-console) .bind-mode-tab {
    padding: 8px 16px;
    cursor: pointer;
    color: #5a6378;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    background: #f5f7fa;
    transition: all 0.2s ease;
}

:where(html.island-console) .bind-mode-tab:hover {
    background: #e8ecf2;
}

:where(html.island-console) .bind-mode-tab.active {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary) 100%);
    color: #fff;
}

:where(html.island-console) .bind-header-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

:where(html.island-console) .bind-header-info {
    flex: 1;
    min-width: 280px;
}

:where(html.island-console) .bind-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

:where(html.island-console) .bind-header-title h3 {
    margin: 0;
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 600;
}

:where(html.island-console) .bind-header-desc {
    margin: 0;
    color: #5a6378;
    font-size: 13px;
    line-height: 1.6;
}

:where(html.island-console) .bind-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

:where(html.island-console) .bind-pending-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: #fff;
    font-size: 12px;
    border-radius: 12px;
    font-weight: 500;
}

/* 账户身份徽章 */
:where(html.island-console) .account-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 10px;
    font-weight: 500;
    white-space: nowrap;
}

:where(html.island-console) .account-enterprise {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

:where(html.island-console) .account-personal {
    background: #f5f7fa;
    color: #5a6378;
    border: 1px solid #e8ecf2;
}

/* Tab 切换 */
:where(html.island-console) .bind-tabs {
    display: flex;
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 16px;
    gap: 4px;
    overflow-x: auto;
}

:where(html.island-console) .bind-tab {
    padding: 10px 18px;
    cursor: pointer;
    color: #5a6378;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

:where(html.island-console) .bind-tab:hover {
    color: var(--theme-primary);
}

:where(html.island-console) .bind-tab.active {
    color: var(--theme-primary);
    border-bottom-color: var(--theme-primary);
}

:where(html.island-console) .bind-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ff6b6b;
    color: #fff;
    font-size: 11px;
    border-radius: 9px;
    font-weight: 500;
}

:where(html.island-console) .bind-tab-content {
    display: none;
}

:where(html.island-console) .bind-tab-content.active {
    display: block;
}

/* 绑定列表 */
:where(html.island-console) .bind-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

:where(html.island-console) .bind-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #fafbfc;
    border: 1px solid #f0f2f5;
    border-radius: 10px;
    transition: all 0.2s ease;
    gap: 12px;
}

:where(html.island-console) .bind-item:hover {
    background: #fff;
    border-color: #e0e6ed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

:where(html.island-console) .bind-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

:where(html.island-console) .bind-avatar,
:where(html.island-console) .bind-avatar-default {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

:where(html.island-console) .bind-avatar-default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary) 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

:where(html.island-console) .bind-meta {
    flex: 1;
    min-width: 0;
}

:where(html.island-console) .bind-name {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

:where(html.island-console) .bind-original {
    color: #8a94a6;
    font-size: 12px;
    font-weight: normal;
}

:where(html.island-console) .bind-info {
    font-size: 12px;
    color: #5a6378;
    line-height: 1.6;
    margin-bottom: 2px;
    word-break: break-all;
}

:where(html.island-console) .bind-role {
    color: var(--theme-primary);
    font-weight: 500;
}

:where(html.island-console) .bind-msg {
    font-size: 12px;
    color: #5a6378;
    background: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    margin: 4px 0;
    border-left: 3px solid var(--theme-primary);
    word-break: break-all;
}

:where(html.island-console) .bind-time {
    font-size: 11px;
    color: #8a94a6;
    margin-top: 2px;
}

:where(html.island-console) .bind-item-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

:where(html.island-console) .bind-status {
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 10px;
    font-weight: 500;
}

:where(html.island-console) .bind-status.status-0 { background: #fff7e6; color: #f59e0b; }
:where(html.island-console) .bind-status.status-1 { background: #e6fffa; color: var(--theme-primary); }
:where(html.island-console) .bind-status.status-2 { background: #fff1f0; color: #ef4444; }
:where(html.island-console) .bind-status.status-3 { background: #f5f7fa; color: #8a94a6; }
:where(html.island-console) .bind-status.status-4 { background: #fff1f0; color: #c0392b; }

/* 申请剩余时间 */
:where(html.island-console) .bind-expire {
    color: var(--theme-primary);
    font-weight: 500;
}

:where(html.island-console) .bind-expire .expire-soon,
:where(html.island-console) .expire-soon {
    color: #ef4444;
    font-weight: 600;
}

/* 按钮-小号/次级/危险 */
:where(html.island-console) .btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 6px;
}

:where(html.island-console) .btn-default {
    padding: 8px 16px;
    border-radius: 8px;
    background: #f5f7fa;
    color: #5a6378;
    font-size: 13px;
    border: 1px solid #e8ecf2;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

:where(html.island-console) .btn-default:hover {
    background: #fff;
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

:where(html.island-console) .btn-danger {
    padding: 8px 16px;
    border-radius: 8px;
    background: #fff1f0;
    color: #ef4444;
    font-size: 13px;
    border: 1px solid #ffccc7;
    transition: all 0.2s ease;
    cursor: pointer;
}

:where(html.island-console) .btn-danger:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

/* 用户预览卡 */
:where(html.island-console) .user-preview {
    margin-top: 10px;
    padding: 10px 12px;
    background: #fafbfc;
    border: 1px solid #f0f2f5;
    border-radius: 8px;
}

:where(html.island-console) .user-preview-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

:where(html.island-console) .user-preview-avatar,
:where(html.island-console) .user-preview-avatar-default {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

:where(html.island-console) .user-preview-avatar-default {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary) 100%);
}

:where(html.island-console) .user-preview-info {
    flex: 1;
}

:where(html.island-console) .user-preview-name {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
}

:where(html.island-console) .user-preview-id {
    font-size: 12px;
    color: #8a94a6;
    margin-top: 2px;
}

:where(html.island-console) .user-preview-empty {
    font-size: 12px;
    color: #8a94a6;
    text-align: center;
    padding: 8px 0;
}

/* 日志列表 */
:where(html.island-console) .log-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

:where(html.island-console) .log-item {
    display: grid;
    grid-template-columns: 140px 90px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    background: #fafbfc;
    border-radius: 8px;
    font-size: 13px;
}

:where(html.island-console) .log-time {
    color: #8a94a6;
    font-size: 12px;
}

:where(html.island-console) .log-action {
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    background: #f5f7fa;
    color: #5a6378;
}

:where(html.island-console) .log-action-request { background: #fff7e6; color: #f59e0b; }
:where(html.island-console) .log-action-accept  { background: #e6fffa; color: var(--theme-primary); }
:where(html.island-console) .log-action-reject  { background: #fff1f0; color: #ef4444; }
:where(html.island-console) .log-action-cancel  { background: #f5f7fa; color: #8a94a6; }
:where(html.island-console) .log-action-unbind  { background: #fff1f0; color: #ef4444; }
:where(html.island-console) .log-action-expire  { background: #fff1f0; color: #c0392b; }

:where(html.island-console) .log-detail {
    color: #1a1a1a;
    word-break: break-all;
}

:where(html.island-console) .log-user {
    color: #1a1a1a;
    font-weight: 500;
}

:where(html.island-console) .log-arrow {
    color: #8a94a6;
    margin: 0 4px;
}

:where(html.island-console) .log-remark {
    color: #8a94a6;
    font-size: 12px;
    margin-left: 6px;
}

/* 申请详情弹窗 */
:where(html.island-console) .req-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:where(html.island-console) .req-detail-row {
    display: flex;
    font-size: 13px;
    line-height: 1.6;
    color: #1a1a1a;
    flex-wrap: wrap;
}

:where(html.island-console) .req-detail-label {
    color: #8a94a6;
    min-width: 100px;
}

:where(html.island-console) .req-detail-msg {
    flex: 1;
    background: #fafbfc;
    padding: 8px 10px;
    border-radius: 6px;
    border-left: 3px solid var(--theme-primary);
    margin-top: 4px;
    word-break: break-all;
}

/* 响应式 - 绑定页 */
@media (max-width: 768px) {
    :where(html.island-console) .bind-header-card {
        flex-direction: column;
    }
    
    :where(html.island-console) .bind-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    :where(html.island-console) .bind-item-right {
        justify-content: flex-start;
        margin-top: 8px;
    }
    
    :where(html.island-console) .log-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    :where(html.island-console) .log-action {
        justify-self: start;
    }
}

/* ============================================
   物品详情 Tab 切换
   ============================================ */
:where(html.island-console) .detail-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #f0f2f5;
    margin-bottom: 16px;
    overflow-x: auto;
    overflow-y: hidden;
}

:where(html.island-console) .detail-tab {
    padding: 10px 18px;
    cursor: pointer;
    color: #5a6378;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

:where(html.island-console) .detail-tab:hover {
    color: var(--theme-primary);
}

:where(html.island-console) .detail-tab.active {
    color: var(--theme-primary);
    border-bottom-color: var(--theme-primary);
}

:where(html.island-console) .query-type-select {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #5a6378;
    transition: all 0.2s ease;
    min-width: 120px;
}

:where(html.island-console) .query-type-select:hover {
    border-color: var(--theme-primary);
}

:where(html.island-console) .query-type-select:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-primary) 10%, transparent);
}

:where(html.island-console) .query-type-filter {
    padding: 4px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

:where(html.island-console) .query-type-filter:hover {
    border-color: var(--theme-primary);
    background: #f0fdf9;
}

:where(html.island-console) .query-type-filter.active {
    background: var(--theme-primary);
    color: #fff !important;
    border-color: var(--theme-primary);
}

:where(html.island-console) .tab-panel {
    display: none;
}

:where(html.island-console) .tab-panel.active {
    display: block;
}

/* ============================================
   数据表格
   ============================================ */
:where(html.island-console) .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

:where(html.island-console) .data-table thead th {
    padding: 10px 14px;
    background: #f8fafc;
    color: #5a6378;
    font-weight: 500;
    text-align: left;
    border-bottom: 1px solid #eef1f5;
    white-space: nowrap;
}

:where(html.island-console) .data-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #f5f7fa;
    color: #1a1a1a;
}

:where(html.island-console) .data-table tbody tr:hover {
    background: #fafbfc;
}

:where(html.island-console) .data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   弹窗覆盖层（兼容 modal-overlay + modal-box 写法）
   ============================================ */
/* .modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
} */

:where(html.island-console) .modal-box {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

:where(html.island-console) .modal-box .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f5f7fa;
    position: relative;
}

:where(html.island-console) .modal-box .modal-header h3 {
    font-size: 16px;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
}

:where(html.island-console) .modal-box .modal-body {
    padding: 20px;
}

:where(html.island-console) .modal-box .modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #8891a4;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s ease;
}

:where(html.island-console) .modal-box .modal-close:hover {
    color: #ef4444;
}

/* ============================================
   开关标签（Toggle Switch）
   ============================================ */
:where(html.island-console) .switch-label {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

:where(html.island-console) .switch-label input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

:where(html.island-console) .switch-slider {
    position: absolute;
    inset: 0;
    background: #d0d5dc;
    border-radius: 12px;
    transition: background 0.25s ease;
}

:where(html.island-console) .switch-slider::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

:where(html.island-console) .switch-label:hover .switch-slider {
    background: #b8bcc2;
}

:where(html.island-console) .switch-label input:checked + .switch-slider {
    background: var(--theme-primary);
}

:where(html.island-console) .switch-label input:checked + .switch-slider::before {
    transform: translateX(20px);
}

:where(html.island-console) .switch-label:hover input:checked + .switch-slider {
    background: #00a888;
}

/* ============================================
   可折叠扩展设置区域
   ============================================ */
:where(html.island-console) .expand-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    cursor: pointer;
    user-select: none;
    color: #5a6378;
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

:where(html.island-console) .expand-toggle:hover {
    color: var(--theme-primary);
}

:where(html.island-console) .expand-toggle .expand-arrow {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

:where(html.island-console) .expand-toggle.open .expand-arrow {
    transform: rotate(90deg);
}

:where(html.island-console) .expand-section {
    display: none;
    padding: 16px 0;
}

:where(html.island-console) .expand-section.open {
    display: block;
}

/* ============================================
   功能开关卡片
   ============================================ */
:where(html.island-console) .feature-toggle-card {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

:where(html.island-console) .feature-toggle-card .ftc-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

:where(html.island-console) .feature-toggle-card .ftc-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

:where(html.island-console) .feature-toggle-card .ftc-desc {
    font-size: 12px;
    color: #5a6378;
    margin-top: 2px;
}

/* 多编码动态列表 */
:where(html.island-console) .extra-code-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

:where(html.island-console) .extra-code-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

:where(html.island-console) .extra-code-row select,
:where(html.island-console) .extra-code-row input {
    flex: 1;
    min-width: 0;
}

:where(html.island-console) .extra-code-row .btn-remove {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #fff1f0;
    color: #ef4444;
    border: 1px solid #ffccc7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    transition: all 0.2s;
}

:where(html.island-console) .extra-code-row .btn-remove:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

/* 响应式 - 新增组件 */
@media (max-width: 768px) {
    :where(html.island-console) .detail-tabs {
        gap: 2px;
        padding-bottom: 6px;
    }
    :where(html.island-console) .detail-tab {
        padding: 8px 12px;
        font-size: 13px;
    }
    :where(html.island-console) .data-table {
        font-size: 12px;
    }
    :where(html.island-console) .data-table thead th,
    :where(html.island-console) .data-table tbody td {
        padding: 8px 10px;
    }
    :where(html.island-console) .extra-code-row {
        flex-wrap: wrap;
    }
}

/* ============================================
   页面级 Tab 切换（物品管理三模式）
   ============================================ */
:where(html.island-console) .page-tabs {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
:where(html.island-console) .page-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #5a6378;
    border-radius: 10px;
    transition: all .2s ease;
}
:where(html.island-console) .page-tab:hover { color: var(--theme-primary); background: color-mix(in srgb, var(--theme-primary) 6%, transparent); }
:where(html.island-console) .page-tab.active { color: #fff; background: var(--theme-primary); box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-primary) 25%, transparent); }
:where(html.island-console) .page-tab svg { width: 16px; height: 16px; fill: currentColor; }

/* 统计小卡片 */
:where(html.island-console) .stat-mini { text-align: center; padding: 20px 12px; }
:where(html.island-console) .stat-val { font-size: 28px; font-weight: 700; color: var(--theme-primary); }
:where(html.island-console) .stat-label { font-size: 12px; color: #8891a4; margin-top: 4px; }
:where(html.island-console) .card-title { font-size: 15px; font-weight: 600; color: #1a1d26; margin-bottom: 14px; }

/* 4列网格 */
:where(html.island-console) .dash-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* 溯源时间线 */
:where(html.island-console) .trace-timeline { position: relative; padding-left: 20px; }
:where(html.island-console) .trace-tl-item { position: relative; padding-bottom: 16px; }
:where(html.island-console) .trace-tl-item:last-child { padding-bottom: 0; }
:where(html.island-console) .trace-tl-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 8px;
    bottom: -8px;
    width: 2px;
    background: #e5e7eb;
}
:where(html.island-console) .trace-tl-item:last-child::before { display: none; }
:where(html.island-console) .trace-tl-dot {
    position: absolute;
    left: -24px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--theme-primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--theme-primary);
}
:where(html.island-console) .trace-tl-content { padding-left: 4px; }
:where(html.island-console) .trace-tl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
:where(html.island-console) .trace-tl-title { display: flex; align-items: center; gap: 8px; flex: 1; }
:where(html.island-console) .trace-tl-action { font-weight: 600; color: #1a1d26; font-size: 14px; }
:where(html.island-console) .trace-tl-time { font-size: 12px; color: #8891a4; }
:where(html.island-console) .trace-tl-detail { font-size: 13px; color: #5a6378; }

/* 溯源记录操作按钮 */
:where(html.island-console) .trace-tl-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

:where(html.island-console) .trace-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: #8891a4;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

:where(html.island-console) .trace-action-btn:hover {
    background: #f3f4f6;
    color: var(--theme-primary);
}

/* 图片缩略图 */
:where(html.island-console) .trace-tl-images {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

:where(html.island-console) .trace-thumb-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

:where(html.island-console) .trace-thumb-img:hover {
    transform: scale(1.05);
}

:where(html.island-console) .trace-thumb-more {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

:where(html.island-console) .trace-thumb-more:hover {
    background: #e5e7eb;
    color: var(--theme-primary);
}

/* 编辑按钮区域 */
:where(html.island-console) .trace-tl-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f2f5;
}

/* 详情展开区域 */
:where(html.island-console) .trace-tl-detail {
    margin-top: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eef1f5;
}

:where(html.island-console) .trace-detail-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

:where(html.island-console) .trace-detail-row {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    color: #5a6378;
}

:where(html.island-console) .trace-detail-label {
    color: #8891a4;
    min-width: 70px;
    flex-shrink: 0;
}

:where(html.island-console) .trace-detail-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

/* 展开按钮激活状态 */
:where(html.island-console) .trace-action-btn.active {
    background: color-mix(in srgb, var(--theme-primary) 13%, transparent);
    color: var(--theme-primary);
}

/* 图片查看器 */
:where(html.island-console) .trace-image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

:where(html.island-console) .trace-image-viewer .viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
}

:where(html.island-console) .trace-image-viewer .viewer-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
}

:where(html.island-console) .trace-image-viewer .viewer-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

:where(html.island-console) .trace-image-viewer .viewer-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

:where(html.island-console) .trace-image-viewer .viewer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

:where(html.island-console) .trace-image-viewer .viewer-prev,
:where(html.island-console) .trace-image-viewer .viewer-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

:where(html.island-console) .trace-image-viewer .viewer-prev:hover,
:where(html.island-console) .trace-image-viewer .viewer-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

:where(html.island-console) .trace-image-viewer .viewer-prev {
    left: -60px;
}

:where(html.island-console) .trace-image-viewer .viewer-next {
    right: -60px;
}

:where(html.island-console) .trace-image-viewer .viewer-counter {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 16px;
    border-radius: 20px;
}

/* 弹窗补充 */
:where(html.island-console) .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; position: relative; z-index: 2; }
:where(html.island-console) .modal-header h3 { font-size: 16px; font-weight: 600; color: #1a1d26; margin: 0; padding-right: 40px; }
:where(html.island-console) .modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 24px; color: #8891a4; cursor: pointer; padding: 0; line-height: 1; z-index: 10001; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; transition: all 0.2s ease; flex-shrink: 0; }
:where(html.island-console) .modal-close:hover { color: #ef4444; }
:where(html.island-console) .modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0f2f5; }

/* 响应式 */
@media (max-width: 768px) {
    :where(html.island-console) .page-tabs { border-radius: 8px; }
    :where(html.island-console) .page-tab { padding: 10px 8px; font-size: 13px; gap: 4px; }
    :where(html.island-console) .page-tab svg { width: 14px; height: 14px; }
    :where(html.island-console) .dash-grid-4 { grid-template-columns: repeat(2, 1fr); }
    :where(html.island-console) .trace-timeline { padding-left: 16px; }
    :where(html.island-console) .trace-tl-dot { left: -20px; }
    :where(html.island-console) .trace-tl-item::before { left: -16px; }
    
    /* 表单移动端适配 */
    :where(html.island-console) .form-row-2 { grid-template-columns: 1fr; gap: 16px; }
    :where(html.island-console) .image-upload-area { width: 120px; height: 120px; }
    :where(html.island-console) .form-actions { flex-direction: column; }
    :where(html.island-console) .form-actions .btn-primary,
    :where(html.island-console) .form-actions .btn-default { width: 100%; justify-content: center; }
}

/* ============================================
 * 物品添加/编辑页面样式
 * 应用于：/items/add, /items/edit
 * ============================================ */

/* Tab导航 */
:where(html.island-console) .item-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
    background: #fff;
    border-radius: 8px 8px 0 0;
    overflow-x: auto;
}

:where(html.island-console) .item-tab {
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

:where(html.island-console) .item-tab:hover {
    color: var(--theme-primary);
    background: #f0fdf9;
}

:where(html.island-console) .item-tab.active {
    color: var(--theme-primary);
    border-bottom-color: var(--theme-primary);
    background: #fff;
}

:where(html.island-console) .item-tab svg {
    width: 18px;
    height: 18px;
}

/* Tab内容区 */
:where(html.island-console) .item-tab-panel {
    display: none;
}

:where(html.island-console) .item-tab-panel.active {
    display: block;
    animation: itemFadeIn 0.3s ease;
}

@keyframes itemFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 表单区块标题 */
:where(html.island-console) .form-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
}

:where(html.island-console) .form-section-title svg {
    width: 20px;
    height: 20px;
    color: var(--theme-primary);
}

/* 三列布局（快捷开关） */
:where(html.island-console) .form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f0fdf9 0%, #e8f5e9 100%);
    border-radius: 8px;
    border: 2px solid color-mix(in srgb, var(--theme-primary) 12%, transparent);
}

/* 溯源设置、对外展示、财产信息已统一使用 switch-row 样式 */

/* 添加编码按钮 */
:where(html.island-console) .btn-text.add-code-btn {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

:where(html.island-console) .btn-text.add-code-btn svg {
    vertical-align: -2px;
}

/* 提交按钮区 */
:where(html.island-console) .form-submit-area {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* 链接文字 */
:where(html.island-console) .link-text {
    font-size: 12px;
}

:where(html.island-console) .link-text-wrapper {
    margin-top: 8px;
}

/* 隐藏文件输入 */
:where(html.island-console) .file-input-hidden {
    display: none;
}

/* 隐藏元素 */
:where(html.island-console) .element-hidden {
    display: none;
}

/* 响应式 */
@media (max-width: 768px) {
    :where(html.island-console) .form-row-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    :where(html.island-console) .item-tab {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    :where(html.island-console) .item-tab svg {
        width: 16px;
        height: 16px;
    }
    
    :where(html.island-console) .form-submit-area {
        flex-direction: column;
    }
    
    :where(html.island-console) .form-submit-area .btn-secondary,
    :where(html.island-console) .form-submit-area .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* ========== 深色模式 ========== */
:where(html.island-console) body.dashboard-dark {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #1e2a3a;
    --bg-hover: #2a3a4a;
    --bg-input: #2a3a4a;
    --text-primary: #e8e8e8;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --border-color: #2d3748;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --sidebar-bg: #0f172a;
    --header-bg: #1a2332;
    --menu-hover: color-mix(in srgb, var(--theme-primary) 10%, transparent);
    --menu-active: color-mix(in srgb, var(--theme-primary) 15%, transparent);
}

:where(html.island-console) body.dashboard-dark {
    background: var(--bg-primary);
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark a {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .dashboard-sidebar {
    background: var(--sidebar-bg);
    border-right-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .sidebar-logo {
    border-bottom-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .menu-link {
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .menu-link:hover {
    background: var(--menu-hover);
    color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .menu-item.active .menu-link {
    background: var(--menu-active);
    color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .menu-item.active .menu-link::before {
    background: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .menu-sub-link {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .menu-sub-link:hover {
    color: var(--theme-primary);
    background: var(--menu-hover);
    border-left-color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .sidebar-logout {
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .sidebar-logout:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* 暗黑模式 - 溯源记录 */
:where(html.island-console) body.dashboard-dark .trace-action-btn {
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .trace-action-btn:hover {
    background: var(--menu-hover);
    color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .trace-thumb-more {
    background: var(--bg-card);
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .trace-thumb-more:hover {
    background: var(--menu-hover);
    color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .trace-tl-footer {
    border-top-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .sidebar-shortcuts {
    border-bottom-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .shortcut-btn {
    background: var(--bg-card);
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .shortcut-btn:hover {
    background: var(--menu-hover);
    color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .dashboard-main {
    background: var(--bg-primary);
}

@media (min-width: 1001px) {
    :where(html.island-console) body.dashboard-dark .dashboard-main {
        background: var(--bg-primary);
    }
}

:where(html.island-console) body.dashboard-dark .dashboard-header {
    background: var(--header-bg);
    border-bottom-color: var(--border-color);
    box-shadow: 0 1px 3px var(--shadow-color);
}

:where(html.island-console) body.dashboard-dark .header-page-title {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .search-input {
    background: var(--bg-input);
    border-color: var(--border-color);
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .search-input:focus {
    background: var(--bg-card);
    border-color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .search-input::placeholder {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .header-icon-btn {
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .header-icon-btn:hover {
    background: var(--bg-hover);
    color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .header-user-trigger {
    background: var(--bg-card);
    border-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .header-user-trigger:hover {
    background: var(--bg-hover);
    border-color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .header-user-name {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .header-user-dropdown:hover .header-user-menu,
:where(html.island-console) body.dashboard-dark .header-user-dropdown.active .header-user-menu {
    background: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: 0 10px 40px var(--shadow-color);
}

:where(html.island-console) body.dashboard-dark .header-user-menu-header {
    background: var(--bg-hover);
}

:where(html.island-console) body.dashboard-dark .header-user-menu-nickname {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .header-user-menu-account {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .header-user-menu-divider {
    background: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .header-user-menu-item {
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .header-user-menu-item:hover {
    background: var(--menu-hover);
    color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .header-user-menu-logout {
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .header-user-menu-logout:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

:where(html.island-console) body.dashboard-dark .sidebar-overlay {
    background: rgba(0, 0, 0, 0.6);
}

:where(html.island-console) body.dashboard-dark .dash-stat-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .dash-stat-card:hover {
    box-shadow: 0 8px 24px var(--shadow-color);
}

:where(html.island-console) body.dashboard-dark .stat-label {
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .stat-value {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .dash-center-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .dash-center-card:hover {
    box-shadow: 0 8px 24px var(--shadow-color);
}

:where(html.island-console) body.dashboard-dark .center-label {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .center-desc {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .dash-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .dash-card-header {
    border-bottom-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .dash-card-title {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .dash-card-body {
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .dash-empty {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .dash-empty-icon {
    color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .dash-tag {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .dash-tag-success {
    background: color-mix(in srgb, var(--theme-primary) 15%, transparent);
    color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .dash-tag-warning {
    background: rgba(255, 181, 71, 0.15);
    color: #FFB547;
}

:where(html.island-console) body.dashboard-dark .dash-tag-danger {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

:where(html.island-console) body.dashboard-dark .dash-tag-info {
    background: rgba(107, 142, 255, 0.15);
    color: #6B8EFF;
}

:where(html.island-console) body.dashboard-dark .dash-table {
    color: var(--text-secondary);
}

/* ========== 工作台主题模块 ========== */
:where(html.island-console) .theme-colors {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

:where(html.island-console) .theme-color-item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

:where(html.island-console) .theme-color-item:hover {
    transform: scale(1.15);
}

:where(html.island-console) .theme-color-item.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--text-primary);
}

:where(html.island-console) .theme-bgs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

:where(html.island-console) .theme-bg-item {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    background-size: cover;
    background-position: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

:where(html.island-console) .theme-bg-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--shadow-color);
}

:where(html.island-console) .theme-bg-item.active {
    border-color: var(--theme-primary);
}

:where(html.island-console) .theme-bg-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

/* 自定义背景模块 */
:where(html.island-console) .custom-bg-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:where(html.island-console) .custom-bg-input-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

:where(html.island-console) .custom-bg-input-wrap .form-input {
    flex: 1;
}

:where(html.island-console) .custom-bg-upload-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

:where(html.island-console) .btn-upload-bg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    background: var(--theme-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

:where(html.island-console) .btn-upload-bg:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

:where(html.island-console) .btn-upload-bg.is-uploading { pointer-events: none; }

:where(html.island-console) .btn-upload-bg.disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    pointer-events: none;
}

:where(html.island-console) .custom-bg-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 8px;
    border: 1px solid #eef1f5;
    border-radius: 8px;
    background: #f9fafb;
}

:where(html.island-console) .custom-bg-preview-img {
    width: 120px;
    height: 68px;
    border-radius: 6px;
    background-image: var(--bg-img, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #e5e7eb;
}

:where(html.island-console) .custom-bg-clear {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    border: none;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

:where(html.island-console) .custom-bg-clear:hover {
    background: #dc2626;
    transform: scale(1.1);
}

:where(html.island-console) .slider-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

:where(html.island-console) .theme-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

:where(html.island-console) .theme-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--theme-primary);
    cursor: pointer;
    border: 2px solid var(--bg-card);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

:where(html.island-console) .theme-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--theme-primary);
    cursor: pointer;
    border: 2px solid var(--bg-card);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

:where(html.island-console) .slider-value {
    min-width: 50px;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

/* 暗黑模式主题模块 */
:where(html.island-console) body.dashboard-dark .theme-bg-placeholder {
    background: var(--menu-hover);
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .dash-table th {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .dash-table td {
    border-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .dash-table tr:hover td {
    background: var(--menu-hover);
}

:where(html.island-console) body.dashboard-dark .btn-primary {
    background: var(--theme-primary);
    color: #fff;
}

:where(html.island-console) body.dashboard-dark .btn-primary:hover {
    background: #00b894;
}

:where(html.island-console) body.dashboard-dark .btn-secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .form-input,
:where(html.island-console) body.dashboard-dark .form-textarea,
:where(html.island-console) body.dashboard-dark .form-select {
    background: var(--bg-input);
    border-color: var(--border-color);
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .form-input:focus,
:where(html.island-console) body.dashboard-dark .form-textarea:focus,
:where(html.island-console) body.dashboard-dark .form-select:focus {
    border-color: var(--theme-primary);
    background: var(--bg-card);
}

:where(html.island-console) body.dashboard-dark .form-label {
    color: var(--text-primary);
}

/* ========== 消息通知页面 ========== */
:where(html.island-console) .notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #eef1f5;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

:where(html.island-console) .notification-header .filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

:where(html.island-console) .notification-actions {
    display: flex;
    gap: 8px;
}

:where(html.island-console) .btn-mark-all-read,
:where(html.island-console) .btn-batch-delete {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e8ecf2;
    background: #fff;
    color: #5a6378;
    text-decoration: none;
}

:where(html.island-console) .btn-mark-all-read:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

:where(html.island-console) .btn-batch-delete:hover {
    border-color: #FF6B8A;
    color: #FF6B8A;
}

:where(html.island-console) .notification-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:where(html.island-console) .notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

:where(html.island-console) .notification-item:hover {
    border-color: var(--theme-primary);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-primary) 10%, transparent);
}

:where(html.island-console) .notification-item.unread {
    background: #f8fafc;
    border-color: #e0e7ff;
}

:where(html.island-console) .notification-item.unread:hover {
    border-color: #6B8EFF;
    box-shadow: 0 2px 8px rgba(107, 142, 255, 0.15);
}

:where(html.island-console) .notification-checkbox {
    flex-shrink: 0;
    padding-top: 4px;
}

:where(html.island-console) .notif-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--theme-primary);
}

:where(html.island-console) .notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

:where(html.island-console) .notification-content {
    flex: 1;
    min-width: 0;
}

:where(html.island-console) .notification-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

:where(html.island-console) .notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:where(html.island-console) .unread-badge {
    padding: 2px 8px;
    background: #FF6B8A;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    flex-shrink: 0;
}

:where(html.island-console) .notification-preview {
    font-size: 13px;
    color: #8891a4;
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:where(html.island-console) .notification-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

:where(html.island-console) .notif-type-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

:where(html.island-console) .meta-dot {
    color: #d0d6df;
}

:where(html.island-console) .notification-time {
    color: #8891a4;
}

:where(html.island-console) .notification-actions-item {
    flex-shrink: 0;
    padding-top: 4px;
}

/* 网站消息 / 私信消息 一级切换 */
:where(html.island-console) .notif-source-tabs {
    margin-bottom: 16px;
}

:where(html.island-console) .notif-source-tabs .filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    font-size: 14px;
}

:where(html.island-console) .notif-tab-count {
    min-width: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #FF6B8A;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

:where(html.island-console) .filter-tab.active .notif-tab-count {
    background: rgba(255, 255, 255, 0.28);
}

:where(html.island-console) .notif-panel { display: none; }
:where(html.island-console) .notif-panel.active { display: block; }

:where(html.island-console) .notif-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 18px;
}

:where(html.island-console) .notif-pager-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eef1f5;
    border-radius: 8px;
    background: #fff;
    color: #5a6378;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

:where(html.island-console) .notif-pager-btn:hover {
    color: var(--theme-primary);
    border-color: var(--theme-primary);
}

:where(html.island-console) .notif-pager-btn.active {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #fff;
}

/* 私信列表行 */
:where(html.island-console) .pm-item {
    align-items: center;
    color: inherit;
    text-decoration: none;
}

:where(html.island-console) .pm-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef1f5;
    color: #8891a4;
}

:where(html.island-console) .pm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-console) .pm-tag {
    --tc-bg: rgba(107, 142, 255, 0.12);
    --tc-fg: #6B8EFF;
}

:where(html.island-console) .pm-reply {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-top: 0;
    font-size: 12px;
    color: #8891a4;
}

:where(html.island-console) .pm-item:hover .pm-reply {
    color: var(--theme-primary);
}

/* 消息详情 */
:where(html.island-console) .detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef1f5;
}

:where(html.island-console) .detail-type-tag {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

:where(html.island-console) .detail-time {
    font-size: 12px;
    color: #8891a4;
}

:where(html.island-console) .detail-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

:where(html.island-console) .detail-content {
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 16px;
}

:where(html.island-console) .detail-read-time {
    font-size: 12px;
    color: #8891a4;
    padding-top: 12px;
    border-top: 1px solid #eef1f5;
}

:where(html.island-console) .detail-link-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eef1f5;
}

:where(html.island-console) .detail-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: color-mix(in srgb, var(--theme-primary) 8%, transparent);
    color: var(--theme-primary);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

:where(html.island-console) .detail-link-btn:hover {
    background: color-mix(in srgb, var(--theme-primary) 15%, transparent);
}

:where(html.island-console) .loading-text {
    text-align: center;
    padding: 40px 0;
    color: #8891a4;
    font-size: 14px;
}

:where(html.island-console) .error-text {
    text-align: center;
    padding: 40px 0;
    color: #FF6B8A;
    font-size: 14px;
}

/* 深色模式 - 消息通知 */
:where(html.island-console) body.dashboard-dark .notification-item {
    background: var(--bg-card);
    border-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .notification-item:hover {
    border-color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .notification-item.unread {
    background: rgba(107, 142, 255, 0.05);
    border-color: rgba(107, 142, 255, 0.3);
}

:where(html.island-console) body.dashboard-dark .notification-title {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .notification-preview {
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .notification-time {
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .btn-mark-all-read,
:where(html.island-console) body.dashboard-dark .btn-batch-delete {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .detail-title {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .detail-content {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .detail-header {
    border-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .detail-read-time {
    border-color: var(--border-color);
}

@media (max-width: 768px) {
    :where(html.island-console) .notification-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    :where(html.island-console) .notification-actions {
        width: 100%;
    }
    
    :where(html.island-console) .btn-mark-all-read,
    :where(html.island-console) .btn-batch-delete {
        flex: 1;
        text-align: center;
    }
    
    :where(html.island-console) .notification-item {
        padding: 12px;
    }
    
    :where(html.island-console) .notification-icon {
        width: 36px;
        height: 36px;
    }
}

:where(html.island-console) body.dashboard-dark .form-hint {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .breadcrumb-item a {
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .breadcrumb-item.active {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .breadcrumb-separator {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .theme-icon-light {
    display: none;
}

:where(html.island-console) body.dashboard-dark .theme-icon-dark {
    display: block !important;
}

:where(html.island-console) body.dashboard-dark .dash-banner {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    border-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .dash-banner-title {
    color: #ffffff;
}

:where(html.island-console) body.dashboard-dark .dash-banner-desc,
:where(html.island-console) body.dashboard-dark .dash-banner-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

:where(html.island-console) body.dashboard-dark .dash-card-link {
    color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .dash-card-link:hover {
    color: #00b894;
}

:where(html.island-console) body.dashboard-dark .recent-item-name {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .recent-item-meta {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .meta-dot {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .recent-item {
    border-bottom-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .recent-item:hover {
    background: var(--bg-hover);
}

:where(html.island-console) body.dashboard-dark .empty-state {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .empty-state a {
    color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .stat-trend {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .dash-section-title {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .dash-desc {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .quick-action-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .quick-action-card:hover {
    background: var(--bg-hover);
    border-color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .quick-action-title {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .quick-action-desc {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .activity-item {
    border-bottom-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .activity-title {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .activity-desc {
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .activity-time {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .progress-bar-bg {
    background: var(--bg-hover);
}

:where(html.island-console) body.dashboard-dark .list-item {
    border-bottom-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .list-item:hover {
    background: var(--bg-hover);
}

:where(html.island-console) body.dashboard-dark .list-item-title {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .list-item-desc {
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .list-item-meta {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .badge {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .badge-primary {
    background: color-mix(in srgb, var(--theme-primary) 15%, transparent);
    color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .badge-success {
    background: color-mix(in srgb, var(--theme-primary) 15%, transparent);
    color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .badge-warning {
    background: rgba(255, 181, 71, 0.15);
    color: #FFB547;
}

:where(html.island-console) body.dashboard-dark .badge-danger {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

:where(html.island-console) body.dashboard-dark .modal-content {
    background: var(--bg-card);
    border-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .modal-header {
    border-bottom-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .modal-title {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .modal-footer {
    border-top-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .tooltip-content {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .divider {
    background: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .text-muted {
    color: var(--text-muted) !important;
}

:where(html.island-console) body.dashboard-dark .text-secondary {
    color: var(--text-secondary) !important;
}

:where(html.island-console) body.dashboard-dark .text-primary {
    color: var(--text-primary) !important;
}

:where(html.island-console) body.dashboard-dark .bg-light {
    background: var(--bg-card) !important;
}

:where(html.island-console) body.dashboard-dark .notification-badge {
    background: #e74c3c;
    color: #ffffff;
}

:where(html.island-console) body.dashboard-dark .icon-badge {
    background: #e74c3c;
    color: #ffffff;
}

:where(html.island-console) body.dashboard-dark .sidebar-toggle {
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .sidebar-toggle:hover {
    color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .sidebar-collapse-btn {
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .sidebar-collapse-btn:hover {
    color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .sidebar-logo-text {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .stat-cell {
    background: var(--bg-hover);
}

:where(html.island-console) body.dashboard-dark .stat-trend.up {
    background: color-mix(in srgb, var(--theme-primary) 15%, transparent);
    color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .stat-trend.down {
    background: rgba(255, 107, 138, 0.15);
    color: #FF6B8A;
}

:where(html.island-console) body.dashboard-dark .stat-label-sm {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .dash-banner-content {
    color: #ffffff;
}

:where(html.island-console) body.dashboard-dark .recent-item-icon svg {
    color: inherit;
}

:where(html.island-console) body.dashboard-dark .header-user-menu {
    background: var(--bg-card);
}

:where(html.island-console) body.dashboard-dark .header-user-menu-avatar svg {
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .header-user-trigger svg {
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .header-user-avatar svg {
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .dash-card-header {
    border-bottom-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .dash-card-body {
    background: transparent;
}

:where(html.island-console) body.dashboard-dark .recent-list {
    background: transparent;
}

:where(html.island-console) body.dashboard-dark .empty-state svg {
    color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .empty-state p {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .dash-stats-grid {
    background: transparent;
}

/* ========== 我的会员页面 ========== */

/* 会员头部 */
:where(html.island-console) .vip-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

:where(html.island-console) .vip-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 15%, transparent) 0%, rgba(107, 142, 255, 0.15) 100%);
    color: var(--theme-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

:where(html.island-console) .vip-info {
    flex: 1;
}

:where(html.island-console) .vip-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

:where(html.island-console) .vip-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

:where(html.island-console) .vip-expire {
    font-size: 13px;
    color: #8891a4;
}

:where(html.island-console) .vip-badge {
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary) 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* 会员权益列表 */
:where(html.island-console) .vip-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:where(html.island-console) .benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.2s ease;
}

:where(html.island-console) .benefit-item:hover {
    background: #f0f4f8;
}

:where(html.island-console) .benefit-icon {
    flex-shrink: 0;
}

:where(html.island-console) .benefit-item:first-child .benefit-icon,
:where(html.island-console) .benefit-item:nth-child(2) .benefit-icon,
:where(html.island-console) .benefit-item:nth-child(3) .benefit-icon {
    color: var(--theme-primary);
}

:where(html.island-console) .benefit-item:not(:first-child):not(:nth-child(2)):not(:nth-child(3)) .benefit-icon {
    color: #8891a4;
    opacity: 0.5;
}

:where(html.island-console) .benefit-name {
    font-size: 14px;
    color: #333;
}

/* 会员等级列表 */
:where(html.island-console) .vip-levels {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:where(html.island-console) .level-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.2s ease;
}

:where(html.island-console) .level-item.current {
    background: color-mix(in srgb, var(--theme-primary) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--theme-primary) 20%, transparent);
}

:where(html.island-console) .level-item:hover {
    background: #f0f4f8;
}

:where(html.island-console) .level-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

:where(html.island-console) .level-info {
    flex: 1;
}

:where(html.island-console) .level-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

:where(html.island-console) .level-price {
    font-size: 13px;
    color: #8891a4;
}

:where(html.island-console) .level-badge {
    padding: 4px 12px;
    background: var(--theme-primary);
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

:where(html.island-console) .btn-small {
    padding: 6px 16px;
    background: var(--theme-primary);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

:where(html.island-console) .btn-small:hover {
    background: var(--theme-primary);
}

/* 会员记录列表 */
:where(html.island-console) .vip-records-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 252px;
    overflow-y: auto;
}

:where(html.island-console) .record-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.2s ease;
}

:where(html.island-console) .record-item:hover {
    background: #f0f4f8;
}

:where(html.island-console) .record-info {
    flex: 1;
}

:where(html.island-console) .record-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 4px;
}

:where(html.island-console) .record-meta {
    font-size: 12px;
    color: #8891a4;
}

:where(html.island-console) .record-amount {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

/* ========== 会员中心页面 ========== */

:where(html.island-console) .vip-current-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

:where(html.island-console) .vip-current-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

:where(html.island-console) .vip-badge-current {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 24px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    width: fit-content;
}

:where(html.island-console) .vip-current-desc {
    font-size: 14px;
    color: #666;
}

:where(html.island-console) .vip-expire-time {
    font-size: 13px;
    color: #8891a4;
}

:where(html.island-console) .btn-vip-upgrade {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary) 100%);
    color: #fff;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

:where(html.island-console) .btn-vip-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

:where(html.island-console) .vip-active-badge {
    padding: 8px 16px;
    background: color-mix(in srgb, var(--theme-primary) 10%, transparent);
    color: var(--theme-primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

:where(html.island-console) .vip-plan-brief {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:where(html.island-console) .vip-plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

:where(html.island-console) .price-amount {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
}

:where(html.island-console) .price-period {
    font-size: 13px;
    color: #8891a4;
}

:where(html.island-console) .vip-plan-tagline {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

:where(html.island-console) .vip-plan-perks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

:where(html.island-console) .vip-plan-perks li {
    position: relative;
    padding-left: 14px;
    font-size: 13px;
    color: #4b5563;
}

:where(html.island-console) .vip-plan-perks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--theme-primary);
}

:where(html.island-console) .plan-action {
    margin-top: 16px;
}

:where(html.island-console) .btn-plan-upgrade {
    width: 100%;
    padding: 11px 20px;
    background: var(--theme-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

:where(html.island-console) .btn-plan-upgrade:hover {
    filter: brightness(0.94);
}

:where(html.island-console) .btn-plan-current {
    width: 100%;
    padding: 11px 20px;
    background: #f5f5f5;
    color: #8891a4;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
}

:where(html.island-console) .redeem-section {
    padding: 8px 0;
}

:where(html.island-console) .redeem-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

:where(html.island-console) .redeem-input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

:where(html.island-console) .redeem-input-group .form-input {
    flex: 1 1 150px;
    min-width: 0;
}

:where(html.island-console) .btn-redeem {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

:where(html.island-console) .btn-redeem:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

:where(html.island-console) .btn-redeem:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

:where(html.island-console) .record-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

:where(html.island-console) .record-status.active {
    background: color-mix(in srgb, var(--theme-primary) 10%, transparent);
    color: var(--theme-primary);
}

:where(html.island-console) .record-status.expired {
    background: rgba(136, 145, 164, 0.1);
    color: #8891a4;
}

:where(html.island-console) .record-status.redeemed {
    background: rgba(107, 142, 255, 0.1);
    color: #6B8EFF;
}

/* ========== 我的钱包页面 ========== */

/* 钱包头部 */
:where(html.island-console) .wallet-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

:where(html.island-console) .wallet-balance {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

:where(html.island-console) .balance-label {
    font-size: 14px;
    color: #8891a4;
}

:where(html.island-console) .balance-amount {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
}

:where(html.island-console) .balance-actions {
    display: flex;
    gap: 12px;
}

:where(html.island-console) .balance-actions .btn-primary {
    padding: 10px 24px;
    background: var(--theme-primary);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

:where(html.island-console) .balance-actions .btn-primary:hover {
    background: var(--theme-primary);
}

:where(html.island-console) .balance-actions .btn-outline {
    padding: 10px 24px;
    background: transparent;
    color: var(--theme-primary);
    border: 1px solid var(--theme-primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

:where(html.island-console) .balance-actions .btn-outline:hover {
    background: color-mix(in srgb, var(--theme-primary) 8%, transparent);
}

/* 钱包统计 */
:where(html.island-console) .wallet-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #eef1f5;
}

:where(html.island-console) .wallet-stat {
    text-align: center;
}

:where(html.island-console) .wallet-stat-label {
    font-size: 13px;
    color: #8891a4;
    margin-bottom: 8px;
}

:where(html.island-console) .wallet-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

/* 交易记录列表 */
:where(html.island-console) .transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:where(html.island-console) .transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.2s ease;
}

:where(html.island-console) .transaction-item:hover {
    background: #f0f4f8;
}

:where(html.island-console) .transaction-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

:where(html.island-console) .transaction-content {
    flex: 1;
    min-width: 0;
}

:where(html.island-console) .transaction-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 4px;
}

:where(html.island-console) .transaction-meta {
    font-size: 12px;
    color: #8891a4;
    display: flex;
    align-items: center;
    gap: 4px;
}

:where(html.island-console) .transaction-amount {
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
}

:where(html.island-console) .transaction-amount.income {
    color: var(--theme-primary);
}

:where(html.island-console) .transaction-amount.expense {
    color: #FF6B8A;
}

/* 钱没到账就别用收入色 */
:where(html.island-console) .transaction-amount.pending {
    color: #8891a4;
}

:where(html.island-console) .tx-status {
    color: #64748b;
}

:where(html.island-console) .tx-status.bad {
    color: #FF6B8A;
}

:where(html.island-console) body.dashboard-dark .transaction-amount.pending {
    color: var(--text-muted);
}

/* 快捷操作网格 */
:where(html.island-console) .shortcut-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

:where(html.island-console) .shortcut-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    color: #5a6378;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

:where(html.island-console) .shortcut-cell:hover {
    background: #e8f8f5;
    color: var(--theme-primary);
    transform: translateY(-2px);
}

:where(html.island-console) .shortcut-cell svg {
    color: #8891a4;
    transition: color 0.2s ease;
}

:where(html.island-console) .shortcut-cell:hover svg {
    color: var(--theme-primary);
}

:where(html.island-console) .shortcut-danger:hover {
    background: rgba(231, 76, 60, 0.08);
    color: #e74c3c;
}

:where(html.island-console) .shortcut-danger:hover svg {
    color: #e74c3c;
}

/* ========== 深色模式适配 ========== */

:where(html.island-console) body.dashboard-dark .vip-header {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .vip-icon {
    background: color-mix(in srgb, var(--theme-primary) 15%, transparent);
}

:where(html.island-console) body.dashboard-dark .vip-title {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .vip-desc {
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .vip-expire {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .benefit-item {
    background: var(--bg-hover);
}

:where(html.island-console) body.dashboard-dark .benefit-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

:where(html.island-console) body.dashboard-dark .benefit-name {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .level-item {
    background: var(--bg-hover);
}

:where(html.island-console) body.dashboard-dark .level-item.current {
    background: color-mix(in srgb, var(--theme-primary) 12%, transparent);
    border-color: color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

:where(html.island-console) body.dashboard-dark .level-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

:where(html.island-console) body.dashboard-dark .level-name {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .level-price {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .record-item {
    background: var(--bg-hover);
}

:where(html.island-console) body.dashboard-dark .record-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

:where(html.island-console) body.dashboard-dark .record-title {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .record-meta {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .record-amount {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .price-amount {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .vip-plan-tagline {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .redeem-desc {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .vip-plan-perks li {
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .btn-plan-current {
    background: var(--bg-hover);
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .balance-label {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .balance-amount {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .wallet-stats {
    border-top-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .wallet-stat-label {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .wallet-stat-value {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .transaction-item {
    background: var(--bg-hover);
}

:where(html.island-console) body.dashboard-dark .transaction-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

:where(html.island-console) body.dashboard-dark .transaction-title {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .transaction-meta {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .shortcut-cell {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .shortcut-cell:hover {
    background: color-mix(in srgb, var(--theme-primary) 12%, transparent);
    color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .shortcut-cell svg {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .shortcut-cell:hover svg {
    color: var(--theme-primary);
}

/* ========== 响应式 ========== */

@media (max-width: 992px) {
    :where(html.island-console) .vip-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    :where(html.island-console) .vip-badge {
        align-self: flex-start;
    }
    
    :where(html.island-console) .wallet-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :where(html.island-console) .vip-icon {
        width: 48px;
        height: 48px;
    }
    
    :where(html.island-console) .vip-title {
        font-size: 18px;
    }
    
    :where(html.island-console) .vip-current-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    :where(html.island-console) .balance-amount {
        font-size: 28px;
    }
    
    :where(html.island-console) .wallet-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    :where(html.island-console) .wallet-stat {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        background: var(--bg-hover, #f8fafc);
        border-radius: 8px;
    }
    
    :where(html.island-console) .wallet-stat-label {
        margin-bottom: 0;
    }
    
    :where(html.island-console) .shortcut-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    :where(html.island-console) .vip-header {
        gap: 14px;
    }
    
    :where(html.island-console) .vip-icon {
        width: 40px;
        height: 40px;
    }
    
    :where(html.island-console) .vip-title {
        font-size: 16px;
    }
    
    :where(html.island-console) .balance-amount {
        font-size: 24px;
    }
    
    :where(html.island-console) .balance-actions {
        flex-direction: column;
    }
    
    :where(html.island-console) .balance-actions .btn-primary,
    :where(html.island-console) .balance-actions .btn-outline {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   钱包充值和提现弹窗
   前缀: .amount-, .pay-method-, .preset-, .qr-, .withdraw-balance-info
   ============================================ */

/* 提现余额信息 */
:where(html.island-console) .withdraw-balance-info {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary) 100%);
    border-radius: 8px;
    margin-bottom: 24px;
    color: #fff;
}

:where(html.island-console) .withdraw-balance-info span {
    font-size: 14px;
    opacity: 0.9;
    display: block;
    margin-bottom: 4px;
}

:where(html.island-console) .withdraw-balance-info strong {
    font-size: 28px;
    font-weight: 700;
}

/* 表单组 */
:where(html.island-console) .form-group {
    margin-bottom: 24px;
}

:where(html.island-console) .form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #5a6378;
    margin-bottom: 8px;
}

/* 金额输入 */
:where(html.island-console) .amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #eef1f5;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.2s;
}

:where(html.island-console) .amount-input-wrapper:focus-within {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 10%, transparent);
}

:where(html.island-console) .currency-symbol {
    font-size: 24px;
    font-weight: 600;
    color: var(--theme-primary);
    margin-right: 8px;
}

:where(html.island-console) .amount-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    background: transparent;
}

:where(html.island-console) .amount-input::placeholder {
    color: #c0c7d0;
    font-weight: 400;
}

/* 预设金额按钮 */
:where(html.island-console) .amount-presets,
:where(html.island-console) .withdraw-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

:where(html.island-console) .preset-btn {
    padding: 8px 16px;
    border: 1px solid #eef1f5;
    background: #fff;
    border-radius: 6px;
    font-size: 14px;
    color: #5a6378;
    cursor: pointer;
    transition: all 0.2s;
}

:where(html.island-console) .preset-btn:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

:where(html.island-console) .preset-btn.active {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #fff;
}

/* 支付方式选择 */
:where(html.island-console) .pay-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

:where(html.island-console) .pay-method-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: #fff;
    border: 2px solid #eef1f5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

:where(html.island-console) .pay-method-item:hover {
    border-color: var(--theme-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 15%, transparent);
}

:where(html.island-console) .pay-method-item.selected {
    border-color: var(--theme-primary);
    background: color-mix(in srgb, var(--theme-primary) 5%, transparent);
}

:where(html.island-console) .pay-method-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    color: var(--theme-primary);
}

:where(html.island-console) .pay-method-item.selected .pay-method-icon {
    background: color-mix(in srgb, var(--theme-primary) 10%, transparent);
}

:where(html.island-console) .pay-method-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

:where(html.island-console) .pay-method-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--theme-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    display: none;
    align-items: center;
    justify-content: center;
}

:where(html.island-console) .pay-method-item.selected .pay-method-check {
    display: flex;
}

/* 表单操作按钮 */
:where(html.island-console) .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

:where(html.island-console) .form-actions .btn-primary {
    flex: 1;
    padding: 12px 24px;
    text-align: center;
}

:where(html.island-console) .btn-recharge,
:where(html.island-console) .btn-withdraw {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
}

:where(html.island-console) .btn-recharge:disabled,
:where(html.island-console) .btn-withdraw:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 二维码容器 */
:where(html.island-console) .qr-code-container {
    margin: 20px auto;
}

:where(html.island-console) .qr-tip {
    font-size: 14px;
    color: #666;
    margin: 16px 0 8px;
}

:where(html.island-console) .qr-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--theme-primary);
    margin-bottom: 12px;
}

:where(html.island-console) .qr-status {
    font-size: 14px;
    color: #999;
    padding: 8px 16px;
    background: #f8fafc;
    border-radius: 6px;
}

/* 深色模式适配 */
:where(html.island-console) body.dashboard-dark .amount-input-wrapper {
    background: var(--bg-input);
    border-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .amount-input {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .currency-symbol {
    color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .preset-btn {
    background: var(--bg-input);
    border-color: var(--border-color);
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .pay-method-item {
    background: var(--bg-card);
    border-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .pay-method-name {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .pay-method-icon {
    background: var(--bg-hover);
}

:where(html.island-console) body.dashboard-dark .form-label {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .qr-status {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

:where(html.island-console) body .qr-status.is-success { color: #16a34a; }
:where(html.island-console) body .qr-status.is-theme { color: var(--theme-primary); }

/* 响应式 */
@media (max-width: 768px) {
    :where(html.island-console) .pay-methods {
        grid-template-columns: 1fr;
    }
    
    :where(html.island-console) .amount-presets,
    :where(html.island-console) .withdraw-presets {
        justify-content: center;
    }
    
    :where(html.island-console) .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    :where(html.island-console) .withdraw-balance-info {
        padding: 16px;
    }
    
    :where(html.island-console) .withdraw-balance-info strong {
        font-size: 24px;
    }
    
    :where(html.island-console) .amount-input {
        font-size: 20px;
    }
    
    :where(html.island-console) .currency-symbol {
        font-size: 20px;
    }
}

/* ============================================
 * 认领记录页面样式
 * 应用于：/user/claim-records
 * ============================================ */

:where(html.island-console) .dash-stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

:where(html.island-console) .claim-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

:where(html.island-console) .claim-card {
    background: #ffffff;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

:where(html.island-console) .claim-card:hover {
    border-color: var(--theme-primary);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 10%, transparent);
}

:where(html.island-console) .claim-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f2f5;
}

:where(html.island-console) .claim-code {
    font-size: 13px;
    color: #8a94a6;
    font-family: 'Courier New', monospace;
}

:where(html.island-console) .claim-time {
    font-size: 12px;
    color: #8a94a6;
}

:where(html.island-console) .claim-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

:where(html.island-console) .claim-status.status-pending {
    background: #fff7e6;
    color: #f59e0b;
}

:where(html.island-console) .claim-status.status-success {
    background: #e6fffa;
    color: var(--theme-primary);
}

:where(html.island-console) .claim-status.status-rejected {
    background: #fff1f0;
    color: #ef4444;
}

:where(html.island-console) .claim-status.status-default {
    background: #f5f7fa;
    color: #8a94a6;
}

:where(html.island-console) .claim-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

:where(html.island-console) .claim-item-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1d26;
    margin: 0 0 4px 0;
}

:where(html.island-console) .claim-item-info p {
    font-size: 13px;
    color: #8a94a6;
    margin: 0;
}

:where(html.island-console) .claim-actions {
    flex-shrink: 0;
}

:where(html.island-console) .claim-reject-reason {
    margin-top: 12px;
    padding: 12px;
    background: #fff1f0;
    border-radius: 8px;
    border-left: 3px solid #ef4444;
}

:where(html.island-console) .reason-label {
    font-size: 12px;
    color: #ef4444;
    font-weight: 600;
}

:where(html.island-console) .reason-text {
    font-size: 13px;
    color: #c0392b;
}

/* 弹窗样式 */
:where(html.island-console) .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

:where(html.island-console) .modal-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

:where(html.island-console) .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eef1f5;
}

:where(html.island-console) .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1d26;
    margin: 0;
}

:where(html.island-console) .modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #8a94a6;
    transition: color 0.2s ease;
}

:where(html.island-console) .modal-close:hover {
    color: #ef4444;
}

:where(html.island-console) .modal-body {
    padding: 24px;
}

:where(html.island-console) .loading-text {
    text-align: center;
    padding: 40px;
    color: #8a94a6;
    font-size: 14px;
}

:where(html.island-console) .error-text {
    text-align: center;
    padding: 40px;
    color: #ef4444;
    font-size: 14px;
}

:where(html.island-console) .detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

:where(html.island-console) .detail-item {
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

:where(html.island-console) .detail-label {
    display: block;
    font-size: 12px;
    color: #8a94a6;
    margin-bottom: 4px;
}

:where(html.island-console) .detail-value {
    font-size: 14px;
    color: #1a1d26;
    font-weight: 500;
    margin: 0;
}

:where(html.island-console) .detail-value.status-pending {
    color: #f59e0b;
}

:where(html.island-console) .detail-value.status-success {
    color: var(--theme-primary);
}

:where(html.island-console) .detail-value.status-rejected {
    color: #ef4444;
}

:where(html.island-console) .detail-section {
    margin-bottom: 20px;
}

:where(html.island-console) .detail-section .detail-label {
    display: block;
    font-size: 13px;
    color: #8a94a6;
    margin-bottom: 8px;
    font-weight: 600;
}

:where(html.island-console) .detail-desc {
    font-size: 14px;
    color: #5a6378;
    line-height: 1.6;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin: 0;
}

:where(html.island-console) .detail-desc.reject-reason {
    background: #fff1f0;
    color: #c0392b;
    border-left: 3px solid #ef4444;
}

:where(html.island-console) .video-wrapper {
    margin-top: 8px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

:where(html.island-console) .detail-video {
    width: 100%;
    max-height: 300px;
    display: block;
}

/* 深色模式适配 */
:where(html.island-console) body.dashboard-dark .claim-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .claim-card:hover {
    border-color: var(--theme-primary);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 15%, transparent);
}

:where(html.island-console) body.dashboard-dark .claim-card-header {
    border-bottom-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .claim-code,
:where(html.island-console) body.dashboard-dark .claim-time {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .claim-item-info h4 {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .claim-item-info p {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .claim-reject-reason {
    background: rgba(239, 68, 68, 0.1);
}

:where(html.island-console) body.dashboard-dark .modal-content {
    background: var(--bg-card);
}

:where(html.island-console) body.dashboard-dark .modal-header {
    border-bottom-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .modal-title {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .modal-close {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .modal-close:hover {
    color: #ef4444;
    background: rgba(255, 255, 255, 0.05);
}

:where(html.island-console) body.dashboard-dark .loading-text {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .error-text {
    color: #ef4444;
}

:where(html.island-console) body.dashboard-dark .detail-item {
    background: var(--bg-hover);
}

:where(html.island-console) body.dashboard-dark .detail-label {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .detail-value {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .detail-section .detail-label {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .detail-desc {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .detail-desc.reject-reason {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* 响应式 */
@media (max-width: 1024px) {
    :where(html.island-console) .dash-stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :where(html.island-console) .dash-stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    :where(html.island-console) .claim-card {
        padding: 16px;
    }
    
    :where(html.island-console) .claim-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    :where(html.island-console) .claim-card-body {
        flex-direction: column;
        align-items: flex-start;
    }
    
    :where(html.island-console) .claim-actions {
        width: 100%;
    }
    
    :where(html.island-console) .claim-actions .btn-outline {
        width: 100%;
    }
    
    :where(html.island-console) .detail-grid {
        grid-template-columns: 1fr;
    }
    
    :where(html.island-console) .modal-content {
        max-height: 95vh;
    }
    
    :where(html.island-console) .modal-header,
    :where(html.island-console) .modal-body {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    :where(html.island-console) .dash-stats-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ========== 搜索下拉结果 ========== */
:where(html.island-console) .header-search {
    position: relative;
}

:where(html.island-console) .search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 1000;
    display: none;
}

:where(html.island-console) .search-results.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

:where(html.island-console) .search-results-header {
    padding: 12px 16px 8px;
    font-size: 12px;
    color: #8891a4;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

:where(html.island-console) .search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #444;
}

:where(html.island-console) .search-result-item:hover {
    background: color-mix(in srgb, var(--theme-primary) 8%, transparent);
    color: var(--theme-primary);
}

:where(html.island-console) .search-result-item svg {
    flex-shrink: 0;
    color: #8891a4;
    transition: color 0.2s ease;
}

:where(html.island-console) .search-result-item:hover svg {
    color: var(--theme-primary);
}

:where(html.island-console) .search-result-content {
    flex: 1;
    min-width: 0;
}

:where(html.island-console) .search-result-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:where(html.island-console) .search-result-path {
    font-size: 12px;
    color: #8891a4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:where(html.island-console) .search-result-item:hover .search-result-path {
    color: var(--theme-primary);
}

:where(html.island-console) .search-result-empty {
    padding: 24px 16px;
    text-align: center;
    color: #8891a4;
    font-size: 13px;
}

:where(html.island-console) .search-result-empty svg {
    margin-bottom: 8px;
    opacity: 0.3;
}

:where(html.island-console) .search-result-highlight {
    color: var(--theme-primary);
    font-weight: 600;
}

/* ========== SPA单页应用样式 ========== */
:where(html.island-console) .spa-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

:where(html.island-console) .spa-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid color-mix(in srgb, var(--theme-primary) 10%, transparent);
    border-top-color: var(--theme-primary);
    border-radius: 50%;
    animation: spa-spin 0.8s linear infinite;
}

@keyframes spa-spin {
    to { transform: rotate(360deg); }
}

:where(html.island-console) .spa-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 20px;
}

:where(html.island-console) .spa-error-content {
    text-align: center;
    color: #8891a4;
}

:where(html.island-console) .spa-error-content svg {
    margin-bottom: 16px;
    opacity: 0.3;
    color: #e74c3c;
}

:where(html.island-console) .spa-error-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

:where(html.island-console) .spa-error-content p {
    font-size: 14px;
    margin-bottom: 20px;
}

:where(html.island-console) .spa-error-content button {
    padding: 10px 24px;
    background: var(--theme-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

:where(html.island-console) .spa-error-content button:hover {
    background: var(--theme-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

:where(html.island-console) .dashboard-content {
    position: relative;
    min-height: 400px;
}

/* ========== 物品笔记列表 ========== */
:where(html.island-console) .notes-list,
:where(html.island-console) .note-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

:where(html.island-console) .note-item-card,
:where(html.island-console) .note-item {
    padding: 0;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    transition: all 0.2s ease;
    overflow: hidden;
}

:where(html.island-console) .note-item-card:hover,
:where(html.island-console) .note-item:hover {
    border-color: var(--theme-primary);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 15%, transparent);
    transform: translateY(-2px);
}

:where(html.island-console) .note-item.draft {
    opacity: 0.7;
}

:where(html.island-console) .note-item-card a {
    text-decoration: none;
}

:where(html.island-console) .note-item-card a:hover {
    text-decoration: underline;
}

/* 笔记头部 */
:where(html.island-console) .note-item-header {
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
}

/* 笔记封面 */
:where(html.island-console) .note-item-cover {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
    margin-bottom: 0;
}

/* 标题区域 */
:where(html.island-console) .note-item-title-section {
    margin-top: 16px;
}

:where(html.island-console) .note-item-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
}

:where(html.island-console) .note-item-title a {
    color: #2d3436;
    transition: color 0.2s;
}

:where(html.island-console) .note-item-title a:hover {
    color: var(--theme-primary);
    text-decoration: none;
}

/* 状态标签 */
:where(html.island-console) .note-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

:where(html.island-console) .note-public-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
}

/* 元信息 */
:where(html.island-console) .note-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    font-size: 14px;
    color: #6b7280;
}

:where(html.island-console) .note-item-meta span {
    display: flex;
    align-items: center;
}

/* 笔记内容区域（默认展开） */
:where(html.island-console) .note-item-content {
    padding: 24px;
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

:where(html.island-console) .note-item-content p {
    margin-bottom: 16px;
}

:where(html.island-console) .note-item-content p:last-child {
    margin-bottom: 0;
}

:where(html.island-console) .note-item-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

:where(html.island-console) .note-item-content h1,
:where(html.island-console) .note-item-content h2,
:where(html.island-console) .note-item-content h3,
:where(html.island-console) .note-item-content h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #1f2937;
}

:where(html.island-console) .note-item-content h1 { font-size: 24px; }
:where(html.island-console) .note-item-content h2 { font-size: 22px; }
:where(html.island-console) .note-item-content h3 { font-size: 20px; }
:where(html.island-console) .note-item-content h4 { font-size: 18px; }

:where(html.island-console) .note-item-content ul,
:where(html.island-console) .note-item-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

:where(html.island-console) .note-item-content li {
    margin-bottom: 8px;
}

:where(html.island-console) .note-item-content blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    background: #f9fafb;
    border-left: 4px solid var(--theme-primary);
    color: #6b7280;
}

:where(html.island-console) .note-item-content code {
    padding: 2px 6px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

:where(html.island-console) .note-item-content pre {
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

:where(html.island-console) .note-item-content pre code {
    padding: 0;
    background: none;
}

:where(html.island-console) .note-checkbox {
    flex-shrink: 0;
    padding-top: 4px;
}

:where(html.island-console) .note-checkbox-input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

:where(html.island-console) .note-cover {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

:where(html.island-console) .note-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

:where(html.island-console) .note-content {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

:where(html.island-console) .note-item-header,
:where(html.island-console) .note-header {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

:where(html.island-console) .note-item-title,
:where(html.island-console) .note-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

:where(html.island-console) .note-status-badge,
:where(html.island-console) .note-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    flex-shrink: 0;
}

:where(html.island-console) .note-status {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

:where(html.island-console) .note-item-meta,
:where(html.island-console) .note-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #8891a4;
    margin-top: 8px;
}

:where(html.island-console) .meta-dot {
    color: #d1d5db;
}

:where(html.island-console) .note-item-preview,
:where(html.island-console) .note-preview {
    font-size: 13px;
    color: #5a6378;
    line-height: 1.6;
    margin-top: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

:where(html.island-console) .note-update-time {
    color: #8891a4;
}

:where(html.island-console) .note-views {
    color: #8891a4;
}

:where(html.island-console) .note-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 4px;
}

:where(html.island-console) .btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #8891a4;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

:where(html.island-console) .btn-icon:hover {
    background: #f3f4f6;
    color: #1f2937;
}

:where(html.island-console) .btn-icon[title="删除"]:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* 物品详情页笔记tab专用样式 */
:where(html.island-console) #panel-notes .btn-sm {
    padding: 6px 14px;
    background: var(--theme-primary);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

:where(html.island-console) #panel-notes .btn-sm:hover {
    background: #00b894;
}

:where(html.island-console) #panel-notes .note-item-card {
    border: 1px solid #eef1f5;
}

:where(html.island-console) #panel-notes .note-item-header {
    padding: 20px;
}

:where(html.island-console) #panel-notes .note-item-title {
    font-size: 18px;
}

:where(html.island-console) #panel-notes .note-item-title a {
    color: #2d3436;
    font-weight: 600;
}

:where(html.island-console) #panel-notes .note-item-title a:hover {
    color: var(--theme-primary);
    text-decoration: none;
}

:where(html.island-console) #panel-notes .note-item-content {
    padding: 20px;
}

:where(html.island-console) body.dashboard-dark .note-item-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .note-item-card:hover {
    border-color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .note-item-header {
    border-bottom-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .note-item-title {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .note-item-title a {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .note-item-title a:hover {
    color: var(--theme-primary);
}

:where(html.island-console) body.dashboard-dark .note-item-meta {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .note-item-content {
    color: var(--text-secondary);
}

:where(html.island-console) body.dashboard-dark .note-item-content h1,
:where(html.island-console) body.dashboard-dark .note-item-content h2,
:where(html.island-console) body.dashboard-dark .note-item-content h3,
:where(html.island-console) body.dashboard-dark .note-item-content h4 {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .note-item-content blockquote {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .note-item-content code {
    background: var(--bg-secondary);
}

:where(html.island-console) body.dashboard-dark .note-item-content pre {
    background: var(--bg-secondary);
}

@media (max-width: 768px) {
    :where(html.island-console) .note-item-card,
    :where(html.island-console) .note-item {
        flex-direction: column;
    }
    
    :where(html.island-console) .note-item-header {
        padding: 16px;
    }
    
    :where(html.island-console) .note-item-content {
        padding: 16px;
    }
    
    :where(html.island-console) .note-item-title {
        font-size: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    :where(html.island-console) .note-item-cover {
        width: 100%;
        max-height: 200px;
    }
    
    :where(html.island-console) .note-item-meta {
        gap: 12px;
        font-size: 13px;
    }
    
    :where(html.island-console) .note-actions {
        align-self: flex-end;
    }
}
    :where(html.island-console) .form-row-3 {
        grid-template-columns: 1fr;
    }

/* ============================================================
   笔记表单页面 (note_add.html, note_edit.html)
   ============================================================ */
:where(html.island-console) .note-form-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 16px;
}

:where(html.island-console) .note-form-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

:where(html.island-console) .form-group {
    margin-bottom: 16px;
}

:where(html.island-console) .form-group:last-child {
    margin-bottom: 0;
}

:where(html.island-console) .form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

:where(html.island-console) .form-label .required {
    color: #ef4444;
    margin-left: 4px;
}

:where(html.island-console) .form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    transition: all 0.2s;
}

:where(html.island-console) .form-input:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 10%, transparent);
}

:where(html.island-console) .form-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    cursor: pointer;
}

:where(html.island-console) .form-select:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 10%, transparent);
}

:where(html.island-console) .form-hint {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

:where(html.island-console) .cover-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    max-width: 200px;
}

:where(html.island-console) .cover-upload-area:hover {
    border-color: var(--theme-primary);
    background: color-mix(in srgb, var(--theme-primary) 2%, transparent);
}

:where(html.island-console) .cover-upload-area.has-cover {
    padding: 0;
    border-style: solid;
}

:where(html.island-console) .cover-preview {
    position: relative;
    display: inline-block;
}

:where(html.island-console) .cover-preview img {
    max-width: 100%;
    max-height: 120px;
    border-radius: 6px;
}

:where(html.island-console) .cover-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

:where(html.island-console) .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

:where(html.island-console) .btn-submit {
    padding: 8px 20px;
    background: var(--theme-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

:where(html.island-console) .btn-submit:hover {
    background: #00b894;
}

:where(html.island-console) .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

:where(html.island-console) .btn-cancel {
    padding: 8px 20px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

:where(html.island-console) .btn-cancel:hover {
    background: #e5e7eb;
}

:where(html.island-console) #noteContent {
    min-height: 400px;
    background: #fff;
}

:where(html.island-console) .ql-toolbar.ql-snow {
    border-radius: 8px 8px 0 0;
}

:where(html.island-console) .ql-container.ql-snow {
    border-radius: 0 0 8px 8px;
    font-size: 14px;
}

/* ============================================================
   笔记详情页面 (note_detail.html)
   ============================================================ */
:where(html.island-console) .note-detail-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

:where(html.island-console) .note-detail-header {
    padding: 32px;
    border-bottom: 1px solid #e5e7eb;
}

:where(html.island-console) .note-detail-cover {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 24px;
}

:where(html.island-console) .note-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    line-height: 1.4;
}

:where(html.island-console) .note-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    font-size: 14px;
    color: #6b7280;
}

:where(html.island-console) .note-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

:where(html.island-console) .note-detail-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

:where(html.island-console) .note-detail-body {
    padding: 32px;
}

:where(html.island-console) .note-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

:where(html.island-console) .note-detail-content h1,
:where(html.island-console) .note-detail-content h2,
:where(html.island-console) .note-detail-content h3,
:where(html.island-console) .note-detail-content h4 {
    margin: 24px 0 12px;
    font-weight: 600;
    color: #1f2937;
}

:where(html.island-console) .note-detail-content h2 {
    font-size: 24px;
}

:where(html.island-console) .note-detail-content h3 {
    font-size: 20px;
}

:where(html.island-console) .note-detail-content h4 {
    font-size: 18px;
}

:where(html.island-console) .note-detail-content p {
    margin: 12px 0;
}

:where(html.island-console) .note-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

:where(html.island-console) .note-detail-content blockquote {
    border-left: 4px solid var(--theme-primary);
    margin: 16px 0;
    padding: 12px 20px;
    background: #f0fdf9;
    color: #374151;
}

:where(html.island-console) .note-detail-content ul,
:where(html.island-console) .note-detail-content ol {
    padding-left: 24px;
    margin: 12px 0;
}

:where(html.island-console) .note-detail-content a {
    color: var(--theme-primary);
    text-decoration: underline;
}

:where(html.island-console) .note-detail-footer {
    padding: 24px 32px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

:where(html.island-console) .note-detail-actions {
    display: flex;
    gap: 12px;
}

:where(html.island-console) .btn-back {
    padding: 8px 16px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

:where(html.island-console) .btn-back:hover {
    background: #e5e7eb;
}

:where(html.island-console) .btn-edit {
    padding: 8px 16px;
    background: var(--theme-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

:where(html.island-console) .btn-edit:hover {
    background: #00b894;
}

:where(html.island-console) .note-related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    margin-top: 16px;
}

:where(html.island-console) .note-related-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

:where(html.island-console) .note-related-item-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

:where(html.island-console) .note-related-item-info a {
    font-size: 13px;
    color: var(--theme-primary);
    text-decoration: none;
}

:where(html.island-console) .note-related-item-info a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    :where(html.island-console) .note-detail-header {
        padding: 20px;
    }
    
    :where(html.island-console) .note-detail-title {
        font-size: 22px;
    }
    
    :where(html.island-console) .note-detail-body {
        padding: 20px;
    }
    
    :where(html.island-console) .note-detail-footer {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }
    
    :where(html.island-console) .note-detail-actions {
        width: 100%;
    }
    
    :where(html.island-console) .note-detail-actions a {
        flex: 1;
        text-align: center;
    }
}

/* ============================================================
   收藏列表页面 (favorite_index.html)
   ============================================================ */
:where(html.island-console) .dash-stats-grid-1 {
    grid-template-columns: repeat(1, 1fr);
}
:where(html.island-console) .dash-stats-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1200px) {
    :where(html.island-console) .dash-stats-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    :where(html.island-console) .dash-stats-grid-3 {
        grid-template-columns: 1fr;
    }
}

:where(html.island-console) .favorite-filter {
    margin-bottom: 20px;
}

:where(html.island-console) .favorite-search-form {
    display: flex;
    gap: 12px;
}

:where(html.island-console) .favorite-search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    transition: all 0.2s;
}

:where(html.island-console) .favorite-search-input:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 10%, transparent);
}

:where(html.island-console) .favorite-search-btn {
    padding: 10px 16px;
    background: var(--theme-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

:where(html.island-console) .favorite-search-btn:hover {
    background: #00b894;
}

:where(html.island-console) .favorite-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:where(html.island-console) .favorite-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s;
}

:where(html.island-console) .favorite-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

:where(html.island-console) .favorite-cover {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

:where(html.island-console) .favorite-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

:where(html.island-console) .favorite-cover a:hover img {
    transform: scale(1.05);
}

:where(html.island-console) .favorite-content {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

:where(html.island-console) .favorite-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

:where(html.island-console) .favorite-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:where(html.island-console) .favorite-status {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
}

:where(html.island-console) .favorite-category,
:where(html.island-console) .favorite-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}

:where(html.island-console) .favorite-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #9ca3af;
}

:where(html.island-console) .favorite-time,
:where(html.island-console) .favorite-days,
:where(html.island-console) .favorite-price {
    color: #6b7280;
}

:where(html.island-console) .meta-dot {
    color: #d1d5db;
}

:where(html.island-console) .favorite-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

:where(html.island-console) .btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

:where(html.island-console) .btn-icon:hover {
    background: #e5e7eb;
    color: #374151;
}

/* ============================================================
   收藏按钮样式 (stream_detail.html, detail.html)
   ============================================================ */
:where(html.island-console) .item-detail-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

:where(html.island-console) .item-detail-actions-row {
    margin-bottom: 12px;
}

:where(html.island-console) .btn-favorite {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

:where(html.island-console) .btn-favorite:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    background: rgba(255,107,107,0.05);
}

:where(html.island-console) .btn-favorite.favorited {
    background: rgba(255,107,107,0.1);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

:where(html.island-console) .btn-favorite:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   响应式 - 收藏页面
   ============================================================ */
@media (max-width: 768px) {
    :where(html.island-console) .favorite-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    :where(html.island-console) .favorite-cover {
        width: 100%;
        height: 120px;
    }
    
    :where(html.island-console) .favorite-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    :where(html.island-console) .favorite-search-form {
        flex-direction: column;
    }
    
    :where(html.island-console) .item-detail-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   用户设置页面新增样式
   ============================================================ */

/* 单选按钮组 */
:where(html.island-console) .radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

:where(html.island-console) .radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    background: #ffffff;
}

:where(html.island-console) .radio-item:hover {
    border-color: var(--theme-primary);
    background: color-mix(in srgb, var(--theme-primary) 5%, transparent);
}

:where(html.island-console) .radio-item input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

:where(html.island-console) .radio-item input[type="radio"]:checked {
    border-color: var(--theme-primary);
    background: var(--theme-primary);
}

:where(html.island-console) .radio-item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

:where(html.island-console) .radio-item input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 10%, transparent);
}

:where(html.island-console) .radio-item span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

:where(html.island-console) .radio-item input[type="radio"]:checked + span {
    color: var(--theme-primary);
}

/* 个人签名显示 */
:where(html.island-console) .profile-signature {
    font-size: 14px;
    color: #666;
    margin: 8px 0 0 0;
    font-style: italic;
    line-height: 1.6;
}

/* 信息列表 */
:where(html.island-console) .info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

:where(html.island-console) .info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

:where(html.island-console) .info-list li:last-child {
    border-bottom: none;
}

:where(html.island-console) .info-list .info-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

:where(html.island-console) .info-list .info-value {
    font-size: 14px;
    color: #333;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

/* 安全列表 */
:where(html.island-console) .security-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

:where(html.island-console) .security-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

:where(html.island-console) .security-list li:last-child {
    border-bottom: none;
}

:where(html.island-console) .security-info .security-title {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    margin-bottom: 4px;
}

:where(html.island-console) .security-info .security-desc {
    font-size: 13px;
    color: #999;
}

/* 快捷方式网格 */
:where(html.island-console) .shortcut-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

:where(html.island-console) .shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    text-decoration: none;
}

:where(html.island-console) .shortcut-item:hover {
    border-color: var(--theme-primary);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 15%, transparent);
    transform: translateY(-2px);
}

:where(html.island-console) .shortcut-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary) 100%);
    color: #ffffff;
}

:where(html.island-console) .shortcut-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 表单提示消息 */
:where(html.island-console) .form-msg {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

:where(html.island-console) .form-msg.success {
    display: block;
    background: color-mix(in srgb, var(--theme-primary) 10%, transparent);
    color: var(--theme-primary);
    border: 1px solid color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

:where(html.island-console) .form-msg.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 按钮行 */
:where(html.island-console) .form-row-btn {
    margin-top: 8px;
}

:where(html.island-console) .form-row-btn .btn-primary {
    padding: 12px 32px;
    background: var(--theme-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

:where(html.island-console) .form-row-btn .btn-primary:hover {
    background: var(--theme-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

:where(html.island-console) .form-row-btn .btn-primary:active {
    transform: translateY(0);
}

/* 深色模式适配 */
:where(html.island-console) body.dashboard-dark .radio-item {
    background: var(--bg-card);
    border-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .radio-item:hover {
    border-color: var(--theme-primary);
    background: color-mix(in srgb, var(--theme-primary) 10%, transparent);
}

:where(html.island-console) body.dashboard-dark .radio-item span {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .info-list li {
    border-bottom-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .info-list .info-label {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .info-list .info-value {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .security-list li {
    border-bottom-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .security-info .security-title {
    color: var(--text-primary);
}

:where(html.island-console) body.dashboard-dark .security-info .security-desc {
    color: var(--text-muted);
}

:where(html.island-console) body.dashboard-dark .shortcut-item {
    background: var(--bg-card);
    border-color: var(--border-color);
}

:where(html.island-console) body.dashboard-dark .shortcut-text {
    color: var(--text-primary);
}

/* 响应式 */
@media (max-width: 768px) {
    :where(html.island-console) .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    :where(html.island-console) .radio-item {
        width: 100%;
    }
    
    :where(html.island-console) .shortcut-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    :where(html.island-console) .info-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    :where(html.island-console) .info-list .info-value {
        text-align: left;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    :where(html.island-console) .shortcut-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    :where(html.island-console) .shortcut-item {
        padding: 16px;
    }
    
    :where(html.island-console) .shortcut-icon {
        width: 40px;
        height: 40px;
    }
}

/* ============================================================
   第三方账号绑定样式
   ============================================================ */

:where(html.island-console) .tp-bindings {
    padding: 16px 0;
}

:where(html.island-console) .tp-loading,
:where(html.island-console) .tp-empty {
    text-align: center;
    padding: 32px 0;
    color: #999;
    font-size: 14px;
}

:where(html.island-console) .tp-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:where(html.island-console) .tp-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

:where(html.island-console) .tp-item:hover {
    border-color: var(--theme-primary);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-primary) 10%, transparent);
}

:where(html.island-console) .tp-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

:where(html.island-console) .tp-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    flex-shrink: 0;
}

:where(html.island-console) .tp-icon.qq {
    background: linear-gradient(135deg, #12B7F5 0%, #0EA5E9 100%);
}

:where(html.island-console) .tp-icon.wechat {
    background: linear-gradient(135deg, #07C160 0%, #10B981 100%);
}

:where(html.island-console) .tp-icon.alipay {
    background: linear-gradient(135deg, #1677FF 0%, #3B82F6 100%);
}

:where(html.island-console) .tp-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

:where(html.island-console) .tp-nickname {
    font-size: 13px;
    color: #666;
    padding: 2px 8px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

:where(html.island-console) .tp-item-actions {
    flex-shrink: 0;
}

:where(html.island-console) .btn-tp-bind,
:where(html.island-console) .btn-tp-unbind {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

:where(html.island-console) .btn-tp-bind {
    background: var(--theme-primary);
    color: #ffffff;
}

:where(html.island-console) .btn-tp-bind:hover {
    background: var(--theme-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

:where(html.island-console) .btn-tp-unbind {
    background: #ffffff;
    color: #ef4444;
    border: 1px solid #ef4444;
}

:where(html.island-console) .btn-tp-unbind:hover {
    background: #fef2f2;
    transform: translateY(-2px);
}

/* ============================================================
   发现宝贝页面样式
   ============================================================ */

:where(html.island-console) .discover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

:where(html.island-console) .discover-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

:where(html.island-console) .discover-subtitle {
    font-size: 14px;
    color: #888;
}

:where(html.island-console) .discover-sort {
    display: flex;
    gap: 8px;
}

:where(html.island-console) .sort-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    background: #fff;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    transition: all 0.2s ease;
}

:where(html.island-console) .sort-btn:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

:where(html.island-console) .sort-btn.active {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #fff;
}

/* 瀑布流布局 */
:where(html.island-console) .discover-waterfall {
    column-count: 4;
    column-gap: 16px;
}

:where(html.island-console) .waterfall-card {
    break-inside: avoid;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

:where(html.island-console) .waterfall-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

:where(html.island-console) .waterfall-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

:where(html.island-console) .waterfall-card-image {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    min-height: 120px;
    position: relative;
}

:where(html.island-console) .waterfall-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    display: flex;
    justify-content: flex-end;
}

:where(html.island-console) .waterfall-card-view {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 12px;
}

:where(html.island-console) .waterfall-card-content {
    padding: 12px;
}

:where(html.island-console) .waterfall-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:where(html.island-console) .waterfall-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

:where(html.island-console) .waterfall-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

:where(html.island-console) .waterfall-card-category {
    font-size: 12px;
    color: var(--theme-primary);
    background: color-mix(in srgb, var(--theme-primary) 8%, transparent);
    padding: 2px 8px;
    border-radius: 4px;
}

:where(html.island-console) .waterfall-card-time {
    font-size: 12px;
    color: #999;
}

:where(html.island-console) .waterfall-card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #888;
}

:where(html.island-console) .waterfall-card-location svg {
    flex-shrink: 0;
}

/* 加载更多 */
:where(html.island-console) .discover-load-more {
    text-align: center;
    padding: 32px 0;
}

:where(html.island-console) .load-more-btn {
    padding: 12px 48px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: var(--theme-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

:where(html.island-console) .load-more-btn:hover {
    background: var(--theme-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

:where(html.island-console) .load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 空状态 */
:where(html.island-console) .discover-empty {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    column-span: all;
}

:where(html.island-console) .discover-empty svg {
    color: #ddd;
    margin-bottom: 16px;
}

:where(html.island-console) .discover-empty p {
    font-size: 16px;
}

/* 响应式 */
@media (max-width: 1200px) {
    :where(html.island-console) .discover-waterfall {
        column-count: 3;
    }
}

@media (max-width: 900px) {
    :where(html.island-console) .discover-waterfall {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    :where(html.island-console) .discover-waterfall {
        column-count: 1;
    }

    :where(html.island-console) .discover-header {
        flex-direction: column;
        align-items: flex-start;
    }

    :where(html.island-console) .discover-sort {
        width: 100%;
    }

    :where(html.island-console) .sort-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ============================================================
   工作台物品详情页面样式
   ============================================================ */

:where(html.island-console) .item-detail-back {
    margin-bottom: 20px;
}

:where(html.island-console) .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    background: #fff;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

:where(html.island-console) .back-btn:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

:where(html.island-console) .item-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

:where(html.island-console) .item-detail-images {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

:where(html.island-console) .item-main-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f5f5f5;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

:where(html.island-console) .item-main-image img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

:where(html.island-console) .item-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

:where(html.island-console) .item-thumb {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

:where(html.island-console) .item-thumb.active,
:where(html.island-console) .item-thumb:hover {
    border-color: var(--theme-primary);
}

:where(html.island-console) .item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-console) .item-no-image {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
}

:where(html.island-console) .item-no-image svg {
    margin-bottom: 12px;
}

:where(html.island-console) .item-no-image p {
    font-size: 14px;
}

:where(html.island-console) .item-detail-info {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

:where(html.island-console) .item-d-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.4;
}

:where(html.island-console) .item-d-category {
    display: inline-block;
    font-size: 13px;
    color: var(--theme-primary);
    background: color-mix(in srgb, var(--theme-primary) 8%, transparent);
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

:where(html.island-console) .item-d-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

:where(html.island-console) .d-meta-item {
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
}

:where(html.island-console) .d-meta-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

:where(html.island-console) .d-meta-value {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

:where(html.island-console) .item-d-desc {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

:where(html.island-console) .desc-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

:where(html.island-console) .desc-content {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

:where(html.island-console) .item-d-owner {
    margin-bottom: 0;
}

:where(html.island-console) .owner-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

:where(html.island-console) .owner-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background 0.2s ease;
}

:where(html.island-console) .owner-card:hover {
    background: #f0f2f5;
}

:where(html.island-console) .owner-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    flex-shrink: 0;
}

:where(html.island-console) .owner-info {
    flex: 1;
    min-width: 0;
}

:where(html.island-console) .owner-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

:where(html.island-console) .owner-desc {
    font-size: 12px;
    color: #999;
}

:where(html.island-console) .owner-arrow {
    color: #ccc;
    flex-shrink: 0;
}

/* Tabs */
:where(html.island-console) .item-d-tabs {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

:where(html.island-console) .item-d-tabs .tabs-header {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    overflow-x: auto;
}

:where(html.island-console) .item-d-tabs .tab-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

:where(html.island-console) .item-d-tabs .tab-item:hover {
    color: var(--theme-primary);
}

:where(html.island-console) .item-d-tabs .tab-item.active {
    color: var(--theme-primary);
    border-bottom-color: var(--theme-primary);
}

:where(html.island-console) .item-d-tabs .tabs-content {
    padding: 24px;
}

:where(html.island-console) .item-d-tabs .tab-pane {
    display: none;
}

:where(html.island-console) .item-d-tabs .tab-pane.active {
    display: block;
}

/* Trace timeline */
:where(html.island-console) .trace-timeline {
    position: relative;
    padding-left: 24px;
}

:where(html.island-console) .trace-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e5e5;
}

:where(html.island-console) .trace-item {
    position: relative;
    padding-bottom: 24px;
}

:where(html.island-console) .trace-dot {
    position: absolute;
    left: -21px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--theme-primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--theme-primary);
}

:where(html.island-console) .trace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

:where(html.island-console) .trace-operator {
    display: flex;
    align-items: center;
    gap: 8px;
}

:where(html.island-console) .operator-avatar,
:where(html.island-console) .operator-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

:where(html.island-console) .operator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-console) .operator-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

:where(html.island-console) .trace-time {
    font-size: 12px;
    color: #999;
}

:where(html.island-console) .trace-action {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

:where(html.island-console) .trace-remark {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

:where(html.island-console) .trace-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #888;
}

/* Params table */
:where(html.island-console) .params-table table {
    width: 100%;
    border-collapse: collapse;
}

:where(html.island-console) .params-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

:where(html.island-console) .params-table .param-label {
    width: 120px;
    color: #999;
    background: #f8f9fa;
    font-weight: 500;
}

:where(html.island-console) .params-table .param-value {
    color: #333;
}

/* Authenticity */
:where(html.island-console) .authenticity-content {
    text-align: center;
    padding: 40px 20px;
}

:where(html.island-console) .auth-status svg {
    color: var(--theme-primary);
    margin-bottom: 16px;
}

:where(html.island-console) .auth-status h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

:where(html.island-console) .auth-status p {
    font-size: 14px;
    color: #666;
}

/* Query logs */
:where(html.island-console) .query-log-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 12px;
}

:where(html.island-console) .query-log-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--theme-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

:where(html.island-console) .query-log-time {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

:where(html.island-console) .query-log-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #888;
}

:where(html.island-console) .query-log-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

:where(html.island-console) .query-log-empty {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
}

:where(html.island-console) .query-log-empty svg {
    margin-bottom: 12px;
}

:where(html.island-console) .query-log-empty p {
    font-size: 14px;
}

/* Comments */
:where(html.island-console) .comment-section {
    margin-top: 0;
}

:where(html.island-console) .comment-input-wrapper {
    margin-bottom: 20px;
}

:where(html.island-console) .comment-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease;
}

:where(html.island-console) .comment-input:focus {
    border-color: var(--theme-primary);
    outline: none;
}

:where(html.island-console) .comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

:where(html.island-console) .comment-count {
    font-size: 12px;
    color: #999;
}

:where(html.island-console) .btn-comment-submit {
    padding: 8px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: var(--theme-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

:where(html.island-console) .btn-comment-submit:hover {
    background: var(--theme-primary);
}

:where(html.island-console) .comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

:where(html.island-console) .comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    flex-shrink: 0;
}

:where(html.island-console) .comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-console) .comment-body {
    flex: 1;
    min-width: 0;
}

:where(html.island-console) .comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

:where(html.island-console) .comment-nickname {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

:where(html.island-console) .comment-time {
    font-size: 12px;
    color: #999;
}

:where(html.island-console) .comment-content {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 8px;
}

:where(html.island-console) .comment-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

:where(html.island-console) .comment-reply-btn {
    margin-left: auto;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--theme-primary);
    background: color-mix(in srgb, var(--theme-primary) 8%, transparent);
    cursor: pointer;
    border: none;
}

:where(html.island-console) .comment-reply-btn:hover {
    background: color-mix(in srgb, var(--theme-primary) 15%, transparent);
}

:where(html.island-console) .comment-replies {
    margin-top: 12px;
    padding-left: 12px;
    border-left: 2px solid #f0f0f0;
}

:where(html.island-console) .reply-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
}

:where(html.island-console) .reply-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    flex-shrink: 0;
}

:where(html.island-console) .reply-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-console) .reply-body {
    flex: 1;
    min-width: 0;
}

:where(html.island-console) .reply-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

:where(html.island-console) .reply-nickname {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

:where(html.island-console) .reply-to {
    font-size: 12px;
    color: #999;
}

:where(html.island-console) .reply-to-nickname {
    font-size: 13px;
    color: var(--theme-primary);
}

:where(html.island-console) .reply-time {
    font-size: 11px;
    color: #bbb;
    margin-left: auto;
}

:where(html.island-console) .reply-content {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 6px;
}

:where(html.island-console) .reply-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #bbb;
}

:where(html.island-console) .reply-reply-btn {
    margin-left: auto;
    padding: 1px 8px;
    border-radius: 3px;
    font-size: 11px;
    color: var(--theme-primary);
    background: color-mix(in srgb, var(--theme-primary) 8%, transparent);
    cursor: pointer;
    border: none;
}

:where(html.island-console) .comment-empty {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
}

:where(html.island-console) .comment-empty svg {
    margin-bottom: 12px;
}

:where(html.island-console) .comment-empty p {
    font-size: 14px;
}

:where(html.island-console) .comment-loading {
    text-align: center;
    padding: 40px 20px;
    color: #ccc;
}

:where(html.island-console) .comment-loading-icon {
    animation: spin 1s linear infinite;
    margin-bottom: 8px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Notes */
:where(html.island-console) .notes-section {
    margin-top: 0;
}

:where(html.island-console) .notes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

:where(html.island-console) .notes-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

:where(html.island-console) .btn-add-note {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    color: #fff;
    background: var(--theme-primary);
    transition: all 0.2s ease;
}

:where(html.island-console) .btn-add-note:hover {
    background: var(--theme-primary);
}

:where(html.island-console) .note-item {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 12px;
}

:where(html.island-console) .note-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

:where(html.island-console) .note-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    flex-shrink: 0;
}

:where(html.island-console) .note-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-console) .note-user-info {
    display: flex;
    flex-direction: column;
}

:where(html.island-console) .note-nickname {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

:where(html.island-console) .note-time {
    font-size: 12px;
    color: #999;
}

:where(html.island-console) .note-content {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

:where(html.island-console) .notes-empty {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
}

:where(html.island-console) .notes-empty svg {
    margin-bottom: 12px;
}

:where(html.island-console) .notes-empty p {
    font-size: 14px;
}

:where(html.island-console) .notes-loading {
    text-align: center;
    padding: 40px 20px;
    color: #ccc;
}

:where(html.island-console) .notes-loading svg {
    animation: spin 1s linear infinite;
    margin-bottom: 8px;
}

:where(html.island-console) .notes-loading p {
    font-size: 14px;
}

:where(html.island-console) .tab-empty {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
}

:where(html.island-console) .tab-empty svg {
    margin-bottom: 12px;
}

:where(html.island-console) .tab-empty p {
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 900px) {
    :where(html.island-console) .item-detail-wrapper {
        grid-template-columns: 1fr;
    }

    :where(html.island-console) .item-d-meta {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    :where(html.island-console) .item-d-meta {
        grid-template-columns: 1fr;
    }

    :where(html.island-console) .item-d-tabs .tabs-header {
        overflow-x: auto;
    }

    :where(html.island-console) .item-d-tabs .tab-item {
        padding: 12px 14px;
        font-size: 13px;
    }

    :where(html.island-console) .item-d-tabs .tabs-content {
        padding: 16px;
    }
}

/* 发现宝贝弹窗详情 */
:where(html.island-console) .item-detail-modal {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    background: #f5f5f5;
    overflow-y: auto;
}
:where(html.island-console) .item-detail-modal .modal-content{
    max-width: 100%;
}
:where(html.island-console) .item-detail-modal.active {
    display: block;
}

:where(html.island-console) .modal-content {
    width: 100%;
    min-height: 100%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

:where(html.island-console) .modal-close {
    position: fixed;
    top: 16px;
    right: 24px;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

:where(html.island-console) .modal-close:hover {
    background: #fff;
    color: #333;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

:where(html.island-console) .modal-body {
    min-height: calc(100vh - 60px);
}

:where(html.island-console) .modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #999;
}

:where(html.island-console) .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #eee;
    border-top-color: var(--theme-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

:where(html.island-console) .modal-loading p {
    font-size: 14px;
}

/* 弹窗内的物品详情样式 */
:where(html.island-console) .modal-body .item-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px; 
    background: #fff;
    margin-bottom: 32px;
}

:where(html.island-console) .modal-body .item-detail-images {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

:where(html.island-console) .modal-body .item-main-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

:where(html.island-console) .modal-body .item-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-console) .modal-body .item-thumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

:where(html.island-console) .modal-body .item-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

:where(html.island-console) .modal-body .item-thumb:hover,
:where(html.island-console) .modal-body .item-thumb.active {
    border-color: var(--theme-primary);
}

:where(html.island-console) .modal-body .item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-console) .modal-body .item-detail-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

:where(html.island-console) .modal-body .item-d-name {
    font-size: 24px;
    font-weight: 600;
    color: #2d3436;
    margin: 0;
}

:where(html.island-console) .modal-body .item-d-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

:where(html.island-console) .modal-body .item-d-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

:where(html.island-console) .modal-body .item-d-meta-label {
    font-size: 12px;
    color: #999;
}

:where(html.island-console) .modal-body .item-d-meta-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

:where(html.island-console) .modal-body .item-d-desc {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

:where(html.island-console) .modal-body .item-d-desc h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #666;
}

:where(html.island-console) .modal-body .item-d-desc p {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

/* 弹窗内标签页 */
:where(html.island-console) .modal-body .item-d-tabs {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); 
}

:where(html.island-console) .modal-body .item-d-tabs .tabs-header {
    display: flex;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}

:where(html.island-console) .modal-body .item-d-tabs .tab-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

:where(html.island-console) .modal-body .item-d-tabs .tab-item:hover {
    color: #333;
}

:where(html.island-console) .modal-body .item-d-tabs .tab-item.active {
    color: var(--theme-primary);
    border-bottom-color: var(--theme-primary);
}

:where(html.island-console) .modal-body .item-d-tabs .tabs-content {
    padding: 24px;
}

:where(html.island-console) .modal-body .item-d-tabs .tab-pane {
    display: none;
}

:where(html.island-console) .modal-body .item-d-tabs .tab-pane.active {
    display: block;
}

/* 弹窗响应式 */
@media (max-width: 900px) {
    :where(html.island-console) .modal-body .item-detail-wrapper {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    :where(html.island-console) .modal-body .item-d-meta {
        grid-template-columns: 1fr 1fr;
    }

    :where(html.island-console) .modal-body .item-d-tabs {
        margin: 0 20px 20px 20px;
    }
}

@media (max-width: 600px) {
    :where(html.island-console) .modal-body .item-d-meta {
        grid-template-columns: 1fr;
    }

    :where(html.island-console) .modal-body .item-d-tabs .tabs-header {
        overflow-x: auto;
    }

    :where(html.island-console) .modal-body .item-d-tabs .tab-item {
        padding: 12px 14px;
        font-size: 13px;
    }

    :where(html.island-console) .modal-body .item-d-tabs .tabs-content {
        padding: 16px;
    }

    :where(html.island-console) .modal-header {
        padding: 12px 16px;
    }

    :where(html.island-console) .modal-body .item-detail-wrapper {
        padding: 16px;
    }

    :where(html.island-console) .modal-body .item-d-tabs {
        margin: 0 16px 16px 16px;
    }
}

/* ========== 编码重复弹窗样式 ========== */
:where(html.island-console) .duplicate-item-card {
    display: flex;
    gap: 16px;
    background: #f7fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

:where(html.island-console) .dup-cover-wrapper {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f4f8;
}

:where(html.island-console) .dup-cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(html.island-console) .dup-info-section {
    flex: 1;
    min-width: 0;
}

:where(html.island-console) .dup-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
    line-height: 1.4;
}

:where(html.island-console) .dup-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

:where(html.island-console) .dup-meta-item {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
}

:where(html.island-console) .dup-meta-label {
    font-size: 12px;
    color: #718096;
    margin-bottom: 2px;
}

:where(html.island-console) .dup-meta-value {
    font-size: 13px;
    color: #2d3748;
    font-weight: 500;
}

:where(html.island-console) .dup-actions-section {
    padding: 16px 0;
}

:where(html.island-console) .btn-dup-detail {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #edf2f7;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

:where(html.island-console) .btn-dup-detail:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
}

:where(html.island-console) .dup-question {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    text-align: center;
    margin-bottom: 16px;
}

:where(html.island-console) .duplicate-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

:where(html.island-console) .btn-duplicate {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
}

:where(html.island-console) .btn-secondary-action {
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

:where(html.island-console) .btn-secondary-action:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
}

:where(html.island-console) .btn-primary-action {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary) 100%);
    color: #ffffff;
    border: 1px solid transparent;
}

:where(html.island-console) .btn-primary-action:hover {
    background: linear-gradient(135deg, var(--theme-primary) 0%, color-mix(in srgb, var(--theme-primary) 80%, black) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

:where(html.island-console) .not-owned-content p {
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
}

:where(html.island-console) .not-owned-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

:where(html.island-console) .trace-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========== 编码输入框样式 ========== */
:where(html.island-console) #itemCodeInput {
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s ease;
}

:where(html.island-console) #itemCodeInput:focus {
    border-color: var(--theme-primary);
}

@media (max-width: 600px) {
    :where(html.island-console) .duplicate-item-card {
        flex-direction: column;
    }
    
    :where(html.island-console) .dup-cover-wrapper {
        width: 100%;
        height: 160px;
    }
    
    :where(html.island-console) .dup-meta-grid {
        grid-template-columns: 1fr;
    }
    
    :where(html.island-console) .duplicate-actions {
        flex-direction: column;
    }
    
    :where(html.island-console) .btn-duplicate {
        min-width: auto;
        width: 100%;
    }
}

/* ========== 控制台搜索下拉 ========== */
:where(html.island-console) .dash-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 360px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid #e8ecf2;
    z-index: 1000;
    display: none;
    overflow: hidden;
}
:where(html.island-console) .dash-search-dropdown.open {
    display: block;
}
:where(html.island-console) .dash-search-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}
:where(html.island-console) .dash-search-tab {
    flex: 1;
    padding: 9px 0;
    font-size: 13px;
    color: #666;
    text-align: center;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
:where(html.island-console) .dash-search-tab:hover {
    color: #333;
}
:where(html.island-console) .dash-search-tab.active {
    color: #4f6ef7;
    border-bottom-color: #4f6ef7;
    font-weight: 500;
}
:where(html.island-console) .dash-search-results {
    max-height: 320px;
    overflow-y: auto;
    padding: 6px 0;
}
:where(html.island-console) .dash-search-item {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
:where(html.island-console) .dash-search-item:hover {
    background: #f7f8fa;
}
:where(html.island-console) .dash-search-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
:where(html.island-console) .dash-search-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
:where(html.island-console) .dash-search-item-icon svg {
    width: 16px;
    height: 16px;
    color: #aaa;
}
:where(html.island-console) .dash-search-item-info {
    flex: 1;
    min-width: 0;
}
:where(html.island-console) .dash-search-item-title {
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
:where(html.island-console) .dash-search-item-desc {
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
:where(html.island-console) .dash-search-empty {
    text-align: center;
    padding: 24px 14px;
    color: #aaa;
    font-size: 13px;
}

/* ========== 关注/粉丝列表 ========== */
:where(html.island-console) .follow-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:where(html.island-console) .follow-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s;
}

:where(html.island-console) .follow-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

:where(html.island-console) .follow-avatar-wrap {
    flex-shrink: 0;
    display: block;
    text-decoration: none;
}

:where(html.island-console) .follow-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

:where(html.island-console) .follow-avatar-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    color: #aab3bf;
}

:where(html.island-console) .follow-info {
    flex: 1;
    min-width: 0;
}

:where(html.island-console) .follow-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(html.island-console) .follow-name:hover {
    color: #6366f1;
}

:where(html.island-console) .follow-signature {
    font-size: 13px;
    color: #8891a4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

:where(html.island-console) .follow-time {
    font-size: 12px;
    color: #aab3bf;
}

:where(html.island-console) .follow-actions {
    flex-shrink: 0;
}

:where(html.island-console) .btn-unfollow,
:where(html.island-console) .btn-follow-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #e0e3e8;
    background: #fff;
    color: #555;
    transition: all 0.2s;
}

:where(html.island-console) .btn-unfollow:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    background: #fff5f5;
}

:where(html.island-console) .btn-follow-back {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}

:where(html.island-console) .btn-follow-back:hover {
    background: #4f46e5;
    border-color: #4f46e5;
}

@media (max-width: 768px) {
    :where(html.island-console) .follow-item {
        gap: 12px;
        padding: 12px;
    }

    :where(html.island-console) .follow-avatar {
        width: 44px;
        height: 44px;
    }

    :where(html.island-console) .follow-name {
        font-size: 14px;
    }

    :where(html.island-console) .follow-signature {
        display: none;
    }

    :where(html.island-console) .btn-unfollow,
    :where(html.island-console) .btn-follow-back {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* ============================================
 * 内容管理 - 内容列表 (cl-*)
 * ============================================ */
:where(html.island-console) .cl-wrap { padding: 0; }

:where(html.island-console) .cl-type-tabs {
    display: flex;
    gap: 4px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    flex-wrap: nowrap;
}
:where(html.island-console) .cl-type-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s;
    background: var(--bg-hover);
}
:where(html.island-console) .cl-type-tab:hover { color: var(--text-primary); background: var(--bg-hover); }
:where(html.island-console) .cl-type-tab.active {
    background: var(--menu-active);
    color: var(--theme-primary);
    font-weight: 500;
}
:where(html.island-console) .cl-count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 1px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}
:where(html.island-console) .cl-type-tab.active .cl-count {
    background: color-mix(in srgb, var(--theme-primary) 15%, transparent);
    color: var(--theme-primary);
}

:where(html.island-console) .cl-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 12px;
    flex-wrap: wrap;
}
:where(html.island-console) .cl-toolbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
:where(html.island-console) .cl-toolbar-right { display: flex; align-items: center; gap: 10px; }

:where(html.island-console) .cl-batch-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border: 1px solid #e6e6e6; border-radius: 8px; background: #fafafa; }
:where(html.island-console) .cl-batch-all { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #555; cursor: pointer; user-select: none; }
:where(html.island-console) .cl-batch-count { font-size: 13px; color: #888; }
:where(html.island-console) .cl-batch-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
:where(html.island-console) .cl-batch-btn { height: 32px; padding: 0 14px; border: 1px solid #dcdcdc; border-radius: 6px; background: #fff; color: #555; font-size: 13px; cursor: pointer; transition: all .15s; }
:where(html.island-console) .cl-batch-btn:hover { border-color: #999; color: #333; }
:where(html.island-console) .cl-batch-danger { color: #d63031; border-color: #f0b4b4; }
:where(html.island-console) .cl-batch-danger:hover { border-color: #d63031; color: #c02020; }

:where(html.island-console) .cl-select {
    height: 36px;
    padding: 0 32px 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23999' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}
:where(html.island-console) .cl-select:focus { border-color: var(--theme-primary); }

:where(html.island-console) .cl-input {
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    min-width: 180px;
}
:where(html.island-console) .cl-input:focus { border-color: var(--theme-primary); }
:where(html.island-console) .cl-input::placeholder { color: var(--text-muted); }

:where(html.island-console) .cl-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 36px;
    padding: 0 18px;
    background: var(--theme-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s;
}
:where(html.island-console) .cl-btn-primary:hover { opacity: .85; }

:where(html.island-console) .cl-list { padding: 0 24px; }

:where(html.island-console) .cl-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}
:where(html.island-console) .cl-item:last-child { border-bottom: none; }

:where(html.island-console) .cl-item-check { flex-shrink: 0; }
:where(html.island-console) .cl-check {
    width: 16px;
    height: 16px;
    accent-color: var(--theme-primary);
    cursor: pointer;
}

:where(html.island-console) .cl-item-info {
    flex: 1;
    min-width: 0;
}
:where(html.island-console) .cl-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
:where(html.island-console) .cl-item-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 400px;
}
:where(html.island-console) .cl-item-link:hover { color: var(--theme-primary); }

:where(html.island-console) .cl-item-type {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
}
:where(html.island-console) .cl-type-note { background: #e8f5e9; color: #2e7d32; }
:where(html.island-console) .cl-type-product { background: #fff3e0; color: #e65100; }
:where(html.island-console) .cl-type-url { background: #e3f2fd; color: #1565c0; }
:where(html.island-console) .cl-type-music { background: #f3e5f5; color: #7b1fa2; }
:where(html.island-console) .cl-type-video { background: #fce4ec; color: #c62828; }
:where(html.island-console) .cl-type-document { background: #e0f2f1; color: #00695c; }
:where(html.island-console) .cl-type-asset { background: #fff8e1; color: #f57f17; }
:where(html.island-console) .cl-type-other { background: #f5f5f5; color: #616161; }

:where(html.island-console) .cl-item-status, :where(html.island-console) .cl-item-flag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
}
:where(html.island-console) .cl-status-pending { background: #fff3e0; color: #e65100; }
:where(html.island-console) .cl-flag-featured { background: #fce4ec; color: #c62828; }
:where(html.island-console) .cl-item-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
    background: #e8f5e9;
    color: #2e7d32;
}

:where(html.island-console) .cl-item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}
:where(html.island-console) .cl-item-perm {
    padding: 1px 6px;
    background: var(--bg-hover);
    border-radius: 3px;
    font-size: 11px;
}
:where(html.island-console) .cl-item-cat {
    padding: 1px 8px;
    background: var(--theme-primary-light, #e3f2fd);
    color: var(--theme-primary, #1565c0);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

:where(html.island-console) .cl-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
:where(html.island-console) .cl-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}
:where(html.island-console) .cl-action-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}
:where(html.island-console) .cl-delete-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}
:where(html.island-console) .cl-toggle-display-btn.cl-display-on {
    color: var(--theme-primary);
}
:where(html.island-console) .cl-toggle-display-btn.cl-display-off {
    color: var(--text-muted);
    opacity: .5;
}
:where(html.island-console) .cl-toggle-display-btn:hover {
    background: var(--bg-hover);
}

:where(html.island-console) .cl-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    color: var(--text-muted);
    gap: 12px;
}
:where(html.island-console) .cl-empty p { font-size: 14px; }

:where(html.island-console) .cl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 24px;
}
:where(html.island-console) .cl-page-btn {
    height: 34px;
    padding: 0 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
}
:where(html.island-console) .cl-page-btn:hover:not(:disabled) {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}
:where(html.island-console) .cl-page-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}
:where(html.island-console) .cl-page-info {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    :where(html.island-console) .cl-type-tabs { padding: 12px 16px; }
    :where(html.island-console) .cl-toolbar { padding: 12px 16px; }
    :where(html.island-console) .cl-list { padding: 0 16px; }
    :where(html.island-console) .cl-item-link { max-width: 200px; }
    :where(html.island-console) .cl-item-meta { gap: 8px; flex-wrap: wrap; }
    :where(html.island-console) .cl-input { min-width: 120px; }
}

/* ============================================
 * 内容管理 - 发布表单 (cp-*)
 * ============================================ */
:where(html.island-console) .cp-wrap { padding: 0 24px 24px; }

:where(html.island-console) .cp-type-bar {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}
:where(html.island-console) .cp-type-main {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
:where(html.island-console) .cp-type-btn {
    padding: 7px 18px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
}
:where(html.island-console) .cp-type-btn:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}
:where(html.island-console) .cp-type-btn.active {
    background: var(--menu-active);
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    font-weight: 500;
}

:where(html.island-console) .cp-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

:where(html.island-console) .cp-field { margin-bottom: 18px; }
:where(html.island-console) .cp-field:last-child { margin-bottom: 0; }

:where(html.island-console) .cp-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}
:where(html.island-console) .cp-required { color: #dc2626; margin-left: 2px; }

:where(html.island-console) .cp-input,
:where(html.island-console) .cp-select,
:where(html.island-console) .cp-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    font-family: inherit;
    transition: border-color .2s;
}
:where(html.island-console) .cp-input:focus,
:where(html.island-console) .cp-select:focus,
:where(html.island-console) .cp-textarea:focus { border-color: var(--theme-primary); }
:where(html.island-console) .cp-input::placeholder,
:where(html.island-console) .cp-textarea::placeholder { color: var(--text-muted); }

:where(html.island-console) .cp-select {
    appearance: none;
    padding-right: 32px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23999' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

:where(html.island-console) .cp-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

/* Image upload */
:where(html.island-console) .cp-image-upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
:where(html.island-console) .cp-image-list { display: flex; flex-wrap: wrap; gap: 10px; }
:where(html.island-console) .cp-image-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
:where(html.island-console) .cp-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
:where(html.island-console) .cp-image-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}
:where(html.island-console) .cp-image-remove:hover { background: rgba(220,38,38,.8); }

:where(html.island-console) .cp-image-add {
    width: 80px;
    height: 80px;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 12px;
    transition: all .2s;
}
:where(html.island-console) .cp-image-add:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

/* Tags - manual input */
:where(html.island-console) .cp-tag-input-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-height: 40px;
    background: var(--bg-primary);
    transition: border-color .2s;
}
:where(html.island-console) .cp-tag-input-wrap:focus-within { border-color: var(--theme-primary); }
:where(html.island-console) .cp-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
:where(html.island-console) .cp-tag-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: var(--menu-active);
    border: 1px solid var(--theme-primary);
    border-radius: 14px;
    font-size: 12px;
    color: var(--theme-primary);
}
:where(html.island-console) .cp-tag-remove {
    background: none;
    border: none;
    color: var(--theme-primary);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: .6;
}
:where(html.island-console) .cp-tag-remove:hover { opacity: 1; }
:where(html.island-console) .cp-tag-text-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-primary);
    min-width: 140px;
    flex: 1;
}
:where(html.island-console) .cp-tag-text-input::placeholder { color: var(--text-muted); }

/* Tag history chips (left) + input (right) */
:where(html.island-console) .cp-tag-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
:where(html.island-console) .cp-tag-history { display: flex; flex-wrap: wrap; gap: 6px; }
:where(html.island-console) .cp-tag-history:empty { display: none; }
:where(html.island-console) .cp-history-tag {
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
    font-family: inherit;
}
:where(html.island-console) .cp-history-tag:hover { border-color: var(--theme-primary); color: var(--theme-primary); }
:where(html.island-console) .cp-tag-row .cp-tag-input-wrap { flex: 1; min-width: 200px; }

/* Per-item display select in trace/note items */
:where(html.island-console) .cp-array-head-right { display: flex; align-items: center; gap: 6px; }
:where(html.island-console) .cp-item-display {
    height: 26px;
    padding: 0 4px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
}
:where(html.island-console) .cp-item-display:focus { outline: none; border-color: var(--theme-primary); }

/* Buttons */
:where(html.island-console) .cp-btn-primary {
    height: 38px;
    padding: 0 24px;
    background: var(--theme-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity .2s;
}
:where(html.island-console) .cp-btn-primary:hover { opacity: .85; }
:where(html.island-console) .cp-btn-primary:disabled { opacity: .5; cursor: not-allowed; }

:where(html.island-console) .qp-parse-bar { margin-bottom: 20px; }
:where(html.island-console) .qp-parse-row { display: flex; gap: 10px; }
:where(html.island-console) .qp-parse-input { flex: 1; height: 40px; font-size: 14px; }
:where(html.island-console) .qp-parse-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 20px;
    white-space: nowrap;
}
:where(html.island-console) .qp-parse-btn svg { flex-shrink: 0; }
:where(html.island-console) .qp-parse-hint { margin-top: 8px; font-size: 12px; color: var(--text-muted); }
:where(html.island-console) .qp-parse-status {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}
:where(html.island-console) .qp-parse-status-ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
:where(html.island-console) .qp-parse-status-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

:where(html.island-console) .qp-reparse-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    white-space: nowrap;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
:where(html.island-console) .qp-reparse-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
:where(html.island-console) .qp-reparse-btn svg { flex-shrink: 0; }

:where(html.island-console) .qp-download-progress {
    margin-top: 12px;
    padding: 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}
:where(html.island-console) .qp-dl-title { font-size: 14px; font-weight: 500; color: #991b1b; margin-bottom: 10px; }
:where(html.island-console) .qp-dl-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
:where(html.island-console) .qp-dl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 13px;
}
:where(html.island-console) .qp-dl-item.qp-dl-success { background: #f0fdf4; border-color: #bbf7d0; }
:where(html.island-console) .qp-dl-name { flex: 1; color: var(--text-primary); }
:where(html.island-console) .qp-dl-status { font-size: 12px; color: #991b1b; min-width: 50px; text-align: center; }
:where(html.island-console) .qp-dl-success .qp-dl-status { color: #166534; }
:where(html.island-console) .qp-dl-retry-btn {
    padding: 4px 12px;
    font-size: 12px;
    background: #fff;
    border: 1px solid #fca5a5;
    color: #991b1b;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
:where(html.island-console) .qp-dl-retry-btn:hover:not(:disabled) { background: #991b1b; color: #fff; border-color: #991b1b; }
:where(html.island-console) .qp-dl-retry-btn:disabled { opacity: 0.5; cursor: not-allowed; }
:where(html.island-console) .qp-dl-retry-all {
    width: 100%;
    padding: 8px;
    font-size: 13px;
}

:where(html.island-console) .qp-cookie-section {
    margin-top: 12px;
    padding: 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
}
:where(html.island-console) .qp-cookie-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
:where(html.island-console) .qp-cookie-label { font-size: 14px; font-weight: 500; color: #92400e; }
:where(html.island-console) .qp-cookie-toggle { font-size: 12px; color: #d97706; cursor: pointer; text-decoration: underline; }
:where(html.island-console) .qp-cookie-help {
    font-size: 12px;
    color: #78716c;
    line-height: 1.6;
    margin-bottom: 10px;
    padding: 8px;
    background: #fef3c7;
    border-radius: 4px;
}
:where(html.island-console) .qp-cookie-help p { margin: 2px 0; }
:where(html.island-console) .qp-cookie-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #fde68a;
    border-radius: 6px;
    font-size: 13px;
    font-family: monospace;
    resize: vertical;
    background: #fff;
    box-sizing: border-box;
}
:where(html.island-console) .qp-cookie-input:focus { outline: none; border-color: #f59e0b; }
:where(html.island-console) .qp-cookie-actions { margin-top: 10px; text-align: right; }
:where(html.island-console) .qp-cookie-save-btn { padding: 6px 16px; font-size: 13px; }

:where(html.island-console) .qp-platform-wrap { position: relative; flex-shrink: 0; }
:where(html.island-console) .qp-platform-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    min-width: 100px;
}
:where(html.island-console) .qp-platform-trigger.selected { color: var(--text-color); border-color: var(--primary-color); }
:where(html.island-console) .qp-platform-trigger:hover { border-color: var(--primary-color); }
:where(html.island-console) .qp-platform-trigger svg { transition: transform .2s; }
:where(html.island-console) .qp-platform-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 360px;
    max-height: 400px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    z-index: 100;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
:where(html.island-console) .qp-platform-search { padding: 10px; border-bottom: 1px solid var(--border-light, #f0f0f0); }
:where(html.island-console) .qp-platform-search input { height: 34px; font-size: 13px; }
:where(html.island-console) .qp-platform-groups { overflow-y: auto; max-height: 340px; padding: 6px 0; }
:where(html.island-console) .qp-platform-group-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    user-select: none;
}
:where(html.island-console) .qp-platform-group-header:hover { background: #f8f8f8; }
:where(html.island-console) .qp-group-arrow { transition: transform .2s; flex-shrink: 0; }
:where(html.island-console) .qp-group-arrow.open { transform: rotate(90deg); }
:where(html.island-console) .qp-platform-group-count { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--text-muted); background: #f0f0f0; padding: 1px 6px; border-radius: 8px; }
:where(html.island-console) .qp-platform-group-items { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 10px; }
:where(html.island-console) .qp-platform-item {
    padding: 4px 12px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 12px;
    background: #fff;
    color: var(--text-color);
    cursor: pointer;
    transition: all .15s;
}
:where(html.island-console) .qp-platform-item:hover { border-color: var(--primary-color); color: var(--primary-color); }
:where(html.island-console) .qp-platform-item.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

:where(html.island-console) .cp-btn-secondary {
    height: 34px;
    padding: 0 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
}
:where(html.island-console) .cp-btn-secondary:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}
:where(html.island-console) .cp-btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }

:where(html.island-console) .cp-btn-cancel {
    height: 38px;
    padding: 0 24px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
}
:where(html.island-console) .cp-btn-cancel:hover { border-color: var(--text-muted); color: var(--text-primary); }

:where(html.island-console) .cp-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
}

/* Permission group */
:where(html.island-console) .cp-permission-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
:where(html.island-console) .cp-radio-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .2s;
    user-select: none;
}
:where(html.island-console) .cp-radio-item input { display: none; }
:where(html.island-console) .cp-radio-item:hover { border-color: var(--theme-primary); }
:where(html.island-console) .cp-radio-item:has(input:checked) {
    border-color: var(--theme-primary);
    background: var(--menu-active);
    color: var(--theme-primary);
}

:where(html.island-console) .cp-cond-field { margin-top: 12px; }

:where(html.island-console) .cp-checkbox-label {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
:where(html.island-console) .cp-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--theme-primary);
}

/* Checkbox row with right-side control */
:where(html.island-console) .cp-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
:where(html.island-console) .cp-field-head .cp-label { margin-bottom: 0; }
:where(html.island-console) .cp-select-sm { max-width: 150px; }

/* More toggle */
:where(html.island-console) .cp-more-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    transition: color .2s;
    background: none;
    border: none;
    font-family: inherit;
    text-align: left;
}
:where(html.island-console) .cp-more-toggle:hover { color: var(--theme-primary); }
:where(html.island-console) .cp-more-toggle svg { transition: transform .2s; }
:where(html.island-console) .cp-more-toggle.open svg { transform: rotate(180deg); }

:where(html.island-console) .cp-more-panel { padding-top: 12px; }

/* Row / half width */
:where(html.island-console) .cp-row {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}
:where(html.island-console) .cp-half { flex: 1; }

/* File upload */
:where(html.island-console) .cp-file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
:where(html.island-console) .cp-file-name {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
:where(html.island-console) .cp-hint { font-size: 12px; color: var(--text-muted); }

/* Bookmark import */
:where(html.island-console) .cp-bookmark-import {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Bookmark confirm panel */
:where(html.island-console) .cp-bm-confirm {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    background: #fafafa;
}
:where(html.island-console) .cp-bm-confirm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
:where(html.island-console) .cp-bm-confirm-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}
:where(html.island-console) .cp-bm-confirm-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
:where(html.island-console) .cp-bm-select-all {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    cursor: pointer;
}
:where(html.island-console) .cp-bm-count {
    font-size: 13px;
    color: #999;
}
:where(html.island-console) .cp-bm-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 400px;
    overflow-y: auto;
}
:where(html.island-console) .cp-bm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
}
:where(html.island-console) .cp-bm-item:hover {
    background: #f0f0f0;
}
:where(html.island-console) .cp-bm-item input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}
:where(html.island-console) .cp-bm-item-info {
    flex: 1;
    min-width: 0;
}
:where(html.island-console) .cp-bm-item-title {
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
:where(html.island-console) .cp-bm-item-url {
    font-size: 11px;
    color: #bbb;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}
:where(html.island-console) .cp-bm-confirm-footer {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: flex-end;
}
:where(html.island-console) .cp-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: #fff;
    color: #333;
}
:where(html.island-console) .cp-btn-sm.cp-btn-primary {
    background: var(--ww-primary, #e07a5f);
    color: #fff;
    border-color: var(--ww-primary, #e07a5f);
}
:where(html.island-console) .cp-btn-sm:hover {
    opacity: 0.85;
}

/* Array list (trace/note) */
:where(html.island-console) .cp-array-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 10px; }
:where(html.island-console) .cp-array-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    background: var(--bg-primary);
}
:where(html.island-console) .cp-array-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
:where(html.island-console) .cp-array-header span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}
:where(html.island-console) .cp-array-remove {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
:where(html.island-console) .cp-array-remove:hover { background: #fef2f2; color: #dc2626; }

/* Property panel */
:where(html.island-console) .cp-property-panel {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
}

/* Type sections */
:where(html.island-console) .cp-type-section { margin-top: 0; }

/* Radio group */
:where(html.island-console) .cp-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Virtual/paid content field */
:where(html.island-console) .cp-virtual-field {
    margin-top: 16px;
}

/* Key-value pairs */
:where(html.island-console) .cp-kv-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}
:where(html.island-console) .cp-kv-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
:where(html.island-console) .cp-kv-key,
:where(html.island-console) .cp-kv-value {
    flex: 1;
}
:where(html.island-console) .cp-kv-remove {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all .2s;
    flex-shrink: 0;
}
:where(html.island-console) .cp-kv-remove:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Trace section */
:where(html.island-console) .cp-trace-section {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
}

@media (max-width: 768px) {
    :where(html.island-console) .cp-wrap { padding: 0 16px 16px; }
    :where(html.island-console) .cp-section { padding: 16px; }
    :where(html.island-console) .cp-row { flex-direction: column; gap: 0; }
    :where(html.island-console) .cp-half { margin-bottom: 18px; }
    :where(html.island-console) .cp-type-main { gap: 6px; }
    :where(html.island-console) .cp-type-btn { padding: 6px 14px; font-size: 12px; }
    :where(html.island-console) .cp-image-thumb { width: 64px; height: 64px; }
    :where(html.island-console) .cp-image-add { width: 64px; height: 64px; }
    :where(html.island-console) .cp-permission-group { flex-direction: column; }
    :where(html.island-console) .cp-actions { flex-wrap: wrap; }
}

/* Color marking */
:where(html.island-console) .cp-color-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
:where(html.island-console) .cp-color-swatches {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
:where(html.island-console) .cp-color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    transition: transform .15s, border-color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    padding: 0;
    background-clip: content-box;
}
:where(html.island-console) .cp-color-swatch:hover { transform: scale(1.15); }
:where(html.island-console) .cp-color-swatch.active {
    border-color: var(--theme-primary, #3b82f6);
    box-shadow: 0 0 0 2px rgba(59,130,246,.25);
}
:where(html.island-console) .cp-color-note-input { flex: 1; max-width: 200px; }

:where(html.island-console) .cp-expire-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
:where(html.island-console) .cp-expire-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}
:where(html.island-console) .cp-expire-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--theme-primary, #3b82f6);
}
:where(html.island-console) .cp-expire-select {
    width: 120px;
    font-size: 13px;
}

/* ── 文字封面海报弹窗（发布无图时） ───────────────── */
:where(html.island-console) .cp-poster-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: rgba(18, 18, 18, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
:where(html.island-console) .cp-poster-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 620px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}
:where(html.island-console) .cp-poster-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 12px;
    border-bottom: 1px solid #eceef1;
}
:where(html.island-console) .cp-poster-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1d26;
}
:where(html.island-console) .cp-poster-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #8891a4;
    cursor: pointer;
    width: 32px;
    height: 32px;
}
:where(html.island-console) .cp-poster-close:hover { color: #e74c3c; }
:where(html.island-console) .cp-poster-body {
    padding: 16px 20px;
    overflow-y: auto;
}
:where(html.island-console) .cp-poster-text {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e3e5ea;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.6;
    min-height: 64px;
    resize: vertical;
}
:where(html.island-console) .cp-poster-text:focus {
    outline: none;
    border-color: #2d3436;
}
:where(html.island-console) .cp-poster-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
:where(html.island-console) .cp-poster-tip {
    font-size: 12px;
    color: #8a8f99;
    margin-right: auto;
}
:where(html.island-console) .cp-poster-btn {
    border: 1px solid #d8dbe0;
    background: #fff;
    color: #2d3436;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
}
:where(html.island-console) .cp-poster-btn:hover:not(:disabled) { border-color: #2d3436; }
:where(html.island-console) .cp-poster-btn:disabled { opacity: .45; cursor: not-allowed; }
:where(html.island-console) .cp-poster-btn-ghost { color: #5b6270; }
:where(html.island-console) .cp-poster-btn-primary {
    background: #2d3436;
    border-color: #2d3436;
    color: #fff;
}
:where(html.island-console) .cp-poster-btn-primary:hover:not(:disabled) { background: #1f2425; }
:where(html.island-console) .cp-poster-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}
:where(html.island-console) .cp-poster-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #8a8f99;
    font-size: 13px;
    padding: 24px 0;
}
:where(html.island-console) .cp-poster-item {
    position: relative;
    padding: 0;
    border: 2px solid #eceef1;
    background: #f7f8fa;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3 / 4;
}
:where(html.island-console) .cp-poster-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
:where(html.island-console) .cp-poster-item:hover { border-color: #c3c8d1; }
:where(html.island-console) .cp-poster-item.cp-on { border-color: #e07a5f; }
:where(html.island-console) .cp-poster-item.cp-on::after {
    content: '✓';
    position: absolute;
    right: 6px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e07a5f;
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}
:where(html.island-console) .cp-poster-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 18px;
    border-top: 1px solid #eceef1;
}
@media (max-width: 640px) {
    :where(html.island-console) .cp-poster-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 页内样式（原 content/403.html 的 style 块） ---------- */

:where(body.pg-content-403) .ce-error { max-width: 500px; margin: 0 auto; padding: 160px 20px 100px; text-align: center; }
:where(body.pg-content-403) .ce-error-icon { width: 80px; height: 80px; margin: 0 auto 24px; color: #ddd; }
:where(body.pg-content-403) .ce-error h2 { font-size: 22px; font-weight: 700; color: #1a1a1a; margin-bottom: 12px; }
:where(body.pg-content-403) .ce-error p { font-size: 15px; color: #888; line-height: 1.6; margin-bottom: 28px; }
:where(body.pg-content-403) .ce-error-btn { display: inline-block; padding: 10px 28px; background: var(--ww-primary); color: #fff; border-radius: 8px; text-decoration: none; font-size: 14px; transition: opacity 0.2s; }
:where(body.pg-content-403) .ce-error-btn:hover { opacity: 0.85; }

/* ---------- 页内样式（原 content/404.html 的 style 块） ---------- */

:where(body.pg-content-404) .ce-404 {
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 80px;
}
:where(body.pg-content-404) .ce-404-inner {
    text-align: center;
    max-width: 480px;
}
:where(body.pg-content-404) .ce-404-code {
    font-size: 120px;
    font-weight: 800;
    color: var(--ww-primary);
    line-height: 1;
    letter-spacing: -4px;
    margin-bottom: 8px;
    opacity: 0.15;
}
:where(body.pg-content-404) .ce-404-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: var(--ww-primary);
    opacity: 0.6;
}
:where(body.pg-content-404) .ce-404-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}
:where(body.pg-content-404) .ce-404-desc {
    font-size: 15px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 32px;
}
:where(body.pg-content-404) .ce-404-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
:where(body.pg-content-404) .ce-404-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
:where(body.pg-content-404) .ce-404-btn-primary {
    background: var(--ww-primary);
    color: #fff !important;
}
 
:where(body.pg-content-404) .ce-404-btn-primary:hover {
    opacity: 0.85;
}
:where(body.pg-content-404) .ce-404-btn-outline {
    background: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
}
:where(body.pg-content-404) .ce-404-btn-outline:hover {
    border-color: var(--ww-primary);
    color: var(--ww-primary);
}
@media (max-width: 768px) {
    :where(body.pg-content-404) .ce-404 { padding: 60px 16px 60px; }
    :where(body.pg-content-404) .ce-404-code { font-size: 80px; }
    :where(body.pg-content-404) .ce-404-title { font-size: 18px; }
}

/* ---------- 页内样式（原 content/detail.html 的 style 块） ---------- */

:where(body.pg-content-detail) .cd-wrap { max-width: 800px; margin: 0 auto; padding: 100px 20px 60px; }
:where(body.pg-content-detail) .cd-header { margin-bottom: 32px; }
:where(body.pg-content-detail) .cd-type-badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 12px; background: var(--ww-primary); color: #fff; margin-bottom: 12px; }
:where(body.pg-content-detail) .cd-title { font-size: 28px; font-weight: 700; color: #1a1a1a; line-height: 1.4; margin-bottom: 12px; }
:where(body.pg-content-detail) .cd-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #888; }
:where(body.pg-content-detail) .cd-meta span { display: flex; align-items: center; gap: 4px; }
:where(body.pg-content-detail) .cd-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 24px; }
:where(body.pg-content-detail) .cd-images img { width: 100%; border-radius: 8px; aspect-ratio: 1; object-fit: cover; cursor: pointer; transition: transform 0.2s; }
:where(body.pg-content-detail) .cd-images img:hover { transform: scale(1.02); }
:where(body.pg-content-detail) .cd-body { font-size: 15px; line-height: 1.8; color: #333; margin-bottom: 32px; }
:where(body.pg-content-detail) .cd-body p { margin-bottom: 16px; }
:where(body.pg-content-detail) .cd-url-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--ww-primary); color: #fff; border-radius: 8px; text-decoration: none; margin-bottom: 24px; transition: opacity 0.2s; }
:where(body.pg-content-detail) .cd-url-link:hover { opacity: 0.85; }
:where(body.pg-content-detail) .cd-product-price { font-size: 24px; font-weight: 700; color: var(--ww-primary); margin-bottom: 16px; }
:where(body.pg-content-detail) .cd-music-player { background: #f5f5f5; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
:where(body.pg-content-detail) .cd-music-player audio { width: 100%; }
:where(body.pg-content-detail) .cd-video-player { margin-bottom: 24px; }
:where(body.pg-content-detail) .cd-video-player video { width: 100%; border-radius: 12px; }
:where(body.pg-content-detail) .cd-doc-download { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 2px solid var(--ww-primary); color: var(--ww-primary); border-radius: 8px; text-decoration: none; margin-bottom: 24px; transition: all 0.2s; }
:where(body.pg-content-detail) .cd-doc-download:hover { background: var(--ww-primary); color: #fff; }
:where(body.pg-content-detail) .cd-asset-info { background: #f9f9f9; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
:where(body.pg-content-detail) .cd-asset-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eee; }
:where(body.pg-content-detail) .cd-asset-row:last-child { border-bottom: none; }
:where(body.pg-content-detail) .cd-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
:where(body.pg-content-detail) .cd-tag { padding: 4px 12px; background: #f0f0f0; border-radius: 20px; font-size: 13px; color: #555; }
:where(body.pg-content-detail) .cd-trace-list { margin-bottom: 24px; }
:where(body.pg-content-detail) .cd-trace-item { padding: 16px; background: #f9f9f9; border-radius: 8px; margin-bottom: 8px; }
:where(body.pg-content-detail) .cd-trace-item h4 { font-size: 15px; margin-bottom: 4px; }
:where(body.pg-content-detail) .cd-trace-item .cd-trace-time { font-size: 12px; color: #999; }
:where(body.pg-content-detail) .cd-note-list { margin-bottom: 24px; }
:where(body.pg-content-detail) .cd-note-item { padding: 16px; background: #fffef5; border-radius: 8px; margin-bottom: 8px; border: 1px solid #f0edd5; }
:where(body.pg-content-detail) .cd-note-item h4 { font-size: 15px; margin-bottom: 8px; }

/* 密码查看 */
:where(body.pg-content-detail) .cd-password-gate { text-align: center; padding: 60px 20px; }
:where(body.pg-content-detail) .cd-password-gate h3 { font-size: 20px; margin-bottom: 16px; color: #333; }
:where(body.pg-content-detail) .cd-password-gate input { padding: 10px 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; width: 240px; margin-right: 8px; }
:where(body.pg-content-detail) .cd-password-gate button { padding: 10px 24px; background: var(--ww-primary); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; }

/* 付费查看 */
:where(body.pg-content-detail) .cd-paid-gate { text-align: center; padding: 60px 20px; }
:where(body.pg-content-detail) .cd-paid-gate .cd-paid-price { font-size: 36px; font-weight: 700; color: var(--ww-primary); margin-bottom: 16px; }
:where(body.pg-content-detail) .cd-paid-gate button { padding: 12px 32px; background: var(--ww-primary); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 16px; }

/* 评论 */
:where(body.pg-content-detail) .cd-comments { border-top: 1px solid #eee; padding-top: 32px; }
:where(body.pg-content-detail) .cd-comments h3 { font-size: 18px; margin-bottom: 20px; }
:where(body.pg-content-detail) .cd-comment-form { margin-bottom: 24px; }
:where(body.pg-content-detail) .cd-comment-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; resize: vertical; min-height: 80px; font-size: 14px; }
:where(body.pg-content-detail) .cd-comment-form button { margin-top: 8px; padding: 8px 20px; background: var(--ww-primary); color: #fff; border: none; border-radius: 6px; cursor: pointer; }
:where(body.pg-content-detail) .cd-comment-item { padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
:where(body.pg-content-detail) .cd-comment-user { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
:where(body.pg-content-detail) .cd-comment-time { font-size: 12px; color: #999; margin-bottom: 8px; }
:where(body.pg-content-detail) .cd-comment-text { font-size: 14px; line-height: 1.6; color: #333; }
:where(body.pg-content-detail) .cd-comment-reply { margin-top: 8px; }
:where(body.pg-content-detail) .cd-comment-reply .cd-comment-item { margin-left: 32px; padding: 12px 0; border-bottom: none; background: #f9f9f9; padding-left: 12px; border-radius: 8px; }

/* ---------- 页内样式（原 dashboard/coll_import.html 的 style 块） ---------- */

:where(body.pg-dashboard-coll-import) .coll-import-help { background:var(--dash-bg-secondary, #f9f9f9); border-radius:8px; padding:16px 20px; margin-bottom:24px; }
:where(body.pg-dashboard-coll-import) .coll-import-help h4 { font-size:14px; font-weight:600; margin:0 0 10px; color:var(--dash-text, #333); }
:where(body.pg-dashboard-coll-import) .coll-import-help ul { margin:0; padding-left:20px; }
:where(body.pg-dashboard-coll-import) .coll-import-help li { font-size:13px; color:var(--dash-text-secondary, #666); line-height:1.8; }

:where(body.pg-dashboard-coll-import) .coll-import-upload { display:flex; align-items:center; gap:12px; }
:where(body.pg-dashboard-coll-import) .coll-import-filename { font-size:13px; color:var(--dash-text-secondary, #666); }

:where(body.pg-dashboard-coll-import) .coll-import-result-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
:where(body.pg-dashboard-coll-import) .coll-import-result-header h3 { font-size:16px; font-weight:600; margin:0; color:var(--dash-text, #333); }
:where(body.pg-dashboard-coll-import) .coll-import-count { font-size:13px; color:var(--dash-text-secondary, #999); }

:where(body.pg-dashboard-coll-import) .coll-import-btns { display:flex; gap:12px; margin-bottom:16px; }

:where(body.pg-dashboard-coll-import) .coll-import-list { display:flex; flex-direction:column; gap:6px; max-height:500px; overflow-y:auto; }
:where(body.pg-dashboard-coll-import) .coll-import-item { display:flex; align-items:center; gap:12px; padding:10px 14px; border:1px solid var(--dash-border, #e8e8e8); border-radius:6px; cursor:pointer; transition:background .15s; }
:where(body.pg-dashboard-coll-import) .coll-import-item:hover { background:var(--dash-bg-secondary, #f9f9f9); }
:where(body.pg-dashboard-coll-import) .coll-import-item input[type="checkbox"] { flex-shrink:0; width:16px; height:16px; }
:where(body.pg-dashboard-coll-import) .coll-import-item-info { flex:1; min-width:0; }
:where(body.pg-dashboard-coll-import) .coll-import-item-title { font-size:13px; font-weight:500; color:var(--dash-text, #333); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
:where(body.pg-dashboard-coll-import) .coll-import-item-url { font-size:11px; color:var(--dash-text-secondary, #bbb); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:2px; }

:where(body.pg-dashboard-coll-import) .coll-form-msg { font-size:13px; margin-top:12px; }
:where(body.pg-dashboard-coll-import) .coll-form-msg.error { color:#e74c3c; }

:where(body.pg-dashboard-coll-import) .btn-outline { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border-radius:6px; font-size:14px; cursor:pointer; border:1px solid var(--dash-border, #d9d9d9); background:var(--dash-card-bg, #fff); color:var(--dash-text, #333); text-decoration:none; }
:where(body.pg-dashboard-coll-import) .btn-outline:hover { border-color:var(--theme-primary); color:var(--theme-primary); }
:where(body.pg-dashboard-coll-import) .dash-form-actions { margin-top:20px; }

/* ---------- 页内样式（原 dashboard/coll_navigation.html 的 style 块） ---------- */

:where(body.pg-dashboard-coll-navigation) .nav-settings{max-width:600px;}
:where(body.pg-dashboard-coll-navigation) .nav-settings .dash-form-group{margin-bottom:20px;}
:where(body.pg-dashboard-coll-navigation) .nav-preview-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;}
:where(body.pg-dashboard-coll-navigation) .nav-layout-option{padding:8px 20px;border-radius:6px;border:1px solid #e0e0e0;background:#fff;cursor:pointer;font-size:13px;color:#555;transition:all .15s;}
:where(body.pg-dashboard-coll-navigation) .nav-layout-option:hover{border-color:#aaa;}
:where(body.pg-dashboard-coll-navigation) .nav-layout-option.active{border-color:#e07a5f;background:#fdf0ed;color:#e07a5f;}
:where(body.pg-dashboard-coll-navigation) .nav-toggle{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:13px;color:#555;}
:where(body.pg-dashboard-coll-navigation) .nav-toggle input{width:16px;height:16px;accent-color:#e07a5f;}
:where(body.pg-dashboard-coll-navigation) .nav-bg-preview{width:120px;height:80px;border-radius:8px;object-fit:cover;border:1px solid #e0e0e0;background:#f5f5f5;}
:where(body.pg-dashboard-coll-navigation) .nav-bg-placeholder{width:120px;height:80px;border-radius:8px;border:1px dashed #ccc;display:flex;align-items:center;justify-content:center;color:#aaa;font-size:12px;background:#fafafa;}
:where(body.pg-dashboard-coll-navigation) .nav-opacity-slider{width:200px;accent-color:#e07a5f;}
:where(body.pg-dashboard-coll-navigation) .nav-save-msg{font-size:13px;margin-left:12px;display:none;color:var(--msg-color,#27ae60);}
:where(body.pg-dashboard-coll-navigation) .nav-save-msg.show{display:inline;}
:where(body.pg-dashboard-coll-navigation) .nav-engine-manage{max-width:100%;margin-top:8px;}
:where(body.pg-dashboard-coll-navigation) .nav-engine-section{margin-bottom:12px;}
:where(body.pg-dashboard-coll-navigation) .nav-engine-section-header{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;background:#f8f8f8;border-radius:7px;margin-bottom:6px;font-size:13px;color:#555;font-weight:500;}
:where(body.pg-dashboard-coll-navigation) .nav-engine-section-count{font-size:11px;color:#aaa;font-weight:400;}
:where(body.pg-dashboard-coll-navigation) .nav-engine-row{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;transition:background .1s;}
:where(body.pg-dashboard-coll-navigation) .nav-engine-row:hover{background:#f8f8f8;}
:where(body.pg-dashboard-coll-navigation) .nav-engine-row-name{flex:1;font-size:13px;color:#333;}
:where(body.pg-dashboard-coll-navigation) .nav-engine-row-cat{font-size:11px;color:#aaa;margin-left:4px;}
:where(body.pg-dashboard-coll-navigation) .nav-engine-arrows{display:flex;gap:2px;}
:where(body.pg-dashboard-coll-navigation) .nav-engine-arrow-btn{width:24px;height:24px;border:1px solid #e0e0e0;background:#fff;border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:10px;color:#999;transition:all .1s;}
:where(body.pg-dashboard-coll-navigation) .nav-engine-arrow-btn:hover{border-color:#aaa;color:#333;}
:where(body.pg-dashboard-coll-navigation) .nav-engine-action-btn{width:24px;height:24px;border:1px solid #e0e0e0;background:#fff;border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:13px;color:#999;transition:all .1s;}
:where(body.pg-dashboard-coll-navigation) .nav-engine-action-btn:hover{border-color:#aaa;color:#333;}
:where(body.pg-dashboard-coll-navigation) .nav-engine-collapse-header{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:7px;cursor:pointer;user-select:none;transition:background .1s;font-size:13px;color:#555;font-weight:500;border:1px solid #eee;}
:where(body.pg-dashboard-coll-navigation) .nav-engine-collapse-header:hover{background:#f8f8f8;}
:where(body.pg-dashboard-coll-navigation) .nav-engine-collapse-arrow{font-size:10px;color:#999;transition:transform .2s;}
:where(body.pg-dashboard-coll-navigation) .nav-engine-collapse-arrow.collapsed{transform:rotate(-90deg);}
:where(body.pg-dashboard-coll-navigation) .nav-engine-collapse-body{overflow:hidden;transition:max-height .25s ease;}
:where(body.pg-dashboard-coll-navigation) .nav-engine-collapse-body.collapsed{max-height:0 !important;}

/* ---------- 页内样式（原 dashboard/content_category.html 的 style 块） ---------- */

:where(body.pg-dashboard-content-category) .cat-wrap { padding: 20px 24px; }
:where(body.pg-dashboard-content-category) .cat-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
:where(body.pg-dashboard-content-category) .cat-toolbar-left { display: flex; align-items: center; gap: 14px; color: var(--text-secondary, #666); font-size: 13px; flex-wrap: wrap; }
:where(body.pg-dashboard-content-category) .cat-toolbar-left b { color: var(--text-primary, #333); font-weight: 600; margin: 0 2px; }
:where(body.pg-dashboard-content-category) .cat-tabs { display: inline-flex; gap: 4px; background: var(--bg-hover, #f3f4f6); padding: 3px; border-radius: 8px; }
:where(body.pg-dashboard-content-category) .cat-tab { padding: 5px 14px; border: none; background: transparent; border-radius: 6px; font-size: 13px; color: var(--text-secondary, #666); cursor: pointer; }
:where(body.pg-dashboard-content-category) .cat-tab:hover { color: var(--text-primary, #333); }
:where(body.pg-dashboard-content-category) .cat-tab.active { background: var(--bg-card, #fff); color: var(--text-primary, #333); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
:where(body.pg-dashboard-content-category) .cat-btn-primary { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border-radius: 6px; border: none; background: var(--theme-primary, #5a7dff); color: #fff; font-size: 13px; cursor: pointer; font-weight: 500; }
:where(body.pg-dashboard-content-category) .cat-btn-primary:hover { opacity: 0.9; }
:where(body.pg-dashboard-content-category) .cat-btn-secondary { padding: 7px 14px; border-radius: 6px; border: 1px solid var(--border-color, #e5e7eb); background: #fff; color: var(--text-primary, #333); font-size: 13px; cursor: pointer; }
:where(body.pg-dashboard-content-category) .cat-btn-secondary:hover { background: var(--bg-hover, #f5f5f5); }
:where(body.pg-dashboard-content-category) .cat-loading { padding: 40px; text-align: center; color: var(--text-secondary, #999); }
:where(body.pg-dashboard-content-category) .cat-empty { padding: 60px 20px; text-align: center; color: var(--text-secondary, #999); }

/* 树列表 */
:where(body.pg-dashboard-content-category) .cat-tree { border: 1px solid var(--border-color, #e5e7eb); border-radius: 8px; background: var(--bg-card, #fff); }
:where(body.pg-dashboard-content-category) .cat-node { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border-color, #f0f0f0); transition: background 0.15s, opacity 0.15s; }
:where(body.pg-dashboard-content-category) .cat-node:last-child { border-bottom: none; }
:where(body.pg-dashboard-content-category) .cat-node.cat-child { background: var(--bg-hover, #fafafa); padding-left: 48px; }
:where(body.pg-dashboard-content-category) .cat-node.cat-child .cat-name { font-weight: 500; }
:where(body.pg-dashboard-content-category) .cat-drag-handle { cursor: grab; color: var(--text-secondary, #bbb); display: inline-flex; align-items: center; flex-shrink: 0; padding: 2px; }
:where(body.pg-dashboard-content-category) .cat-drag-handle:active { cursor: grabbing; }
:where(body.pg-dashboard-content-category) .cat-node.cat-dragging { opacity: 0.4; }
:where(body.pg-dashboard-content-category) .cat-node.cat-drag-over { box-shadow: inset 0 -2px 0 0 var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-content-category) .cat-cover-thumb { width: 40px; height: 40px; border-radius: 6px; background: var(--bg-hover, #f5f5f5); display: flex; align-items: center; justify-content: center; color: var(--text-secondary, #999); overflow: hidden; flex-shrink: 0; }
:where(body.pg-dashboard-content-category) .cat-cover-thumb img { width: 100%; height: 100%; object-fit: cover; }
:where(body.pg-dashboard-content-category) .cat-node-info { flex: 1; min-width: 0; }
:where(body.pg-dashboard-content-category) .cat-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
:where(body.pg-dashboard-content-category) .cat-name { font-size: 14px; font-weight: 600; color: var(--text-primary, #333); }
:where(body.pg-dashboard-content-category) .cat-badge { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 500; }
:where(body.pg-dashboard-content-category) .cat-badge-count { background: rgba(90,125,255,0.1); color: #5a7dff; }
:where(body.pg-dashboard-content-category) .cat-badge-disabled { background: rgba(156,163,175,0.15); color: #9ca3af; }
:where(body.pg-dashboard-content-category) .cat-badge-menu { background: rgba(16,185,129,0.1); color: #10b981; }
:where(body.pg-dashboard-content-category) .cat-badge-scope { background: var(--bg-hover, #f3f4f6); color: var(--text-secondary, #555); border: 1px solid var(--border-color, #e5e7eb); }
:where(body.pg-dashboard-content-category) .cat-meta-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; color: var(--text-secondary, #999); font-size: 12px; flex-wrap: wrap; }
:where(body.pg-dashboard-content-category) .cat-meta-row .cat-kw { color: var(--text-secondary, #888); max-width: 400px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(body.pg-dashboard-content-category) .cat-node-actions { display: flex; gap: 4px; flex-shrink: 0; }
:where(body.pg-dashboard-content-category) .cat-icon-btn { width: 30px; height: 30px; border-radius: 6px; border: none; background: transparent; color: var(--text-secondary, #666); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
:where(body.pg-dashboard-content-category) .cat-icon-btn:hover { background: var(--bg-hover, #f5f5f5); color: var(--text-primary, #333); }
:where(body.pg-dashboard-content-category) .cat-icon-btn.active { color: #10b981; }
:where(body.pg-dashboard-content-category) .cat-icon-btn.menu-off { color: var(--text-secondary, #bbb); }

/* 弹窗 */
:where(body.pg-dashboard-content-category) .cat-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
:where(body.pg-dashboard-content-category) .cat-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
:where(body.pg-dashboard-content-category) .cat-modal-body { position: relative; background: #fff; border-radius: 12px; width: 560px; max-width: 92vw; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
:where(body.pg-dashboard-content-category) .cat-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-color, #eee); }
:where(body.pg-dashboard-content-category) .cat-modal-header h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--text-primary, #333); }
:where(body.pg-dashboard-content-category) .cat-modal-close { background: none; border: none; cursor: pointer; color: var(--text-secondary, #999); padding: 4px; border-radius: 4px; }
:where(body.pg-dashboard-content-category) .cat-modal-close:hover { background: var(--bg-hover, #f5f5f5); color: var(--text-primary, #333); }

:where(body.pg-dashboard-content-category) .cat-form { padding: 20px; }
:where(body.pg-dashboard-content-category) .cat-field { margin-bottom: 16px; }
:where(body.pg-dashboard-content-category) .cat-label { display: block; font-size: 13px; color: var(--text-primary, #333); margin-bottom: 6px; font-weight: 500; }
:where(body.pg-dashboard-content-category) .cat-required { color: #ef4444; }
:where(body.pg-dashboard-content-category) .cat-input { width: 100%; padding: 8px 10px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; font-size: 13px; background: #fff; color: var(--text-primary, #333); box-sizing: border-box; }
:where(body.pg-dashboard-content-category) .cat-input:focus { outline: none; border-color: var(--theme-primary, #5a7dff); box-shadow: 0 0 0 2px rgba(90,125,255,0.15); }
:where(body.pg-dashboard-content-category) .cat-textarea { min-height: 70px; resize: vertical; font-family: inherit; }
:where(body.pg-dashboard-content-category) .cat-hint { font-size: 12px; color: var(--text-secondary, #999); margin-top: 4px; }
:where(body.pg-dashboard-content-category) .cat-scopes { display: flex; gap: 8px; flex-wrap: wrap; }
:where(body.pg-dashboard-content-category) .cat-scope-item { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; font-size: 13px; color: var(--text-primary, #333); cursor: pointer; user-select: none; }
:where(body.pg-dashboard-content-category) .cat-scope-item:hover { border-color: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-content-category) .cat-scope-item input { margin: 0; cursor: pointer; }
:where(body.pg-dashboard-content-category) .cat-scope-item.checked { border-color: var(--theme-primary, #5a7dff); background: rgba(90,125,255,0.06); }
:where(body.pg-dashboard-content-category) .cat-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
:where(body.pg-dashboard-content-category) .cat-cover-row { display: flex; gap: 12px; align-items: center; }
:where(body.pg-dashboard-content-category) .cat-cover-preview { width: 60px; height: 60px; border-radius: 6px; background: var(--bg-hover, #f5f5f5); display: flex; align-items: center; justify-content: center; color: var(--text-secondary, #ccc); overflow: hidden; flex-shrink: 0; }
:where(body.pg-dashboard-content-category) .cat-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
:where(body.pg-dashboard-content-category) .cat-cover-input-wrap { flex: 1; display: flex; flex-direction: column; gap: 6px; }

:where(body.pg-dashboard-content-category) .cat-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
:where(body.pg-dashboard-content-category) .cat-switch input { display: none; }
:where(body.pg-dashboard-content-category) .cat-switch-slider { width: 34px; height: 20px; background: #d1d5db; border-radius: 10px; position: relative; transition: background 0.2s; }
:where(body.pg-dashboard-content-category) .cat-switch-slider::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform 0.2s; }
:where(body.pg-dashboard-content-category) .cat-switch input:checked + .cat-switch-slider { background: #10b981; }
:where(body.pg-dashboard-content-category) .cat-switch input:checked + .cat-switch-slider::after { transform: translateX(14px); }
:where(body.pg-dashboard-content-category) .cat-switch-text { font-size: 13px; color: var(--text-primary, #333); }

:where(body.pg-dashboard-content-category) .cat-form-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-color, #eee); }

@media (max-width: 640px) {
    :where(body.pg-dashboard-content-category) .cat-wrap { padding: 12px; }
    :where(body.pg-dashboard-content-category) .cat-node { padding: 10px 12px; gap: 10px; }
    :where(body.pg-dashboard-content-category) .cat-node.cat-child { padding-left: 28px; }
    :where(body.pg-dashboard-content-category) .cat-cover-thumb { width: 34px; height: 34px; }
    :where(body.pg-dashboard-content-category) .cat-row-2 { grid-template-columns: 1fr; }
}

/* ---------- 页内样式（原 dashboard/content_index.html 的 style 块） ---------- */

:where(html.island-console) .cl-color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
    flex-shrink: 0;
    position: relative;
}
:where(body.pg-dashboard-content-index) .cl-color-dot { cursor: pointer; }
:where(body.pg-dashboard-content-index) .cl-color-picker-popup {
    position: fixed;
    top: var(--pick-top, 0px);
    left: var(--pick-left, 0px);
    z-index: 9999;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    display: none;
}
:where(body.pg-dashboard-content-index) .cl-color-picker-popup.show { display: block; }
:where(body.pg-dashboard-content-index) .cl-color-picker-row {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}
:where(body.pg-dashboard-content-index) .cl-color-picker-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s;
}
:where(body.pg-dashboard-content-index) .cl-color-picker-dot:hover { transform: scale(1.2); }
:where(body.pg-dashboard-content-index) .cl-color-picker-dot.active { border-color: #3b82f6; }
:where(body.pg-dashboard-content-index) .cl-color-picker-note {
    margin-top: 6px;
    display: flex;
    gap: 4px;
    align-items: center;
}
:where(body.pg-dashboard-content-index) .cl-color-picker-note input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    outline: none;
    min-width: 100px;
}
:where(body.pg-dashboard-content-index) .cl-color-picker-note button {
    padding: 4px 10px;
    border-radius: 6px;
    border: none;
    background: #3b82f6;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

/* ---------- 页内样式（原 dashboard/favorite_index.html 的 style 块） ---------- */

:where(body.pg-dashboard-favorite-index) .fav-panel { display: none; }
:where(body.pg-dashboard-favorite-index) .fav-panel.active { display: block; }

/* 内容收藏 / 收藏海 来源切换 */
:where(body.pg-dashboard-favorite-index) .fav-src-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
:where(body.pg-dashboard-favorite-index) .fav-src-tab {
    padding: 7px 20px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s;
}
:where(body.pg-dashboard-favorite-index) .fav-src-tab:hover { color: #ff6b6b; border-color: #ff6b6b; }
:where(body.pg-dashboard-favorite-index) .fav-src-tab.active { background: #ff6b6b; border-color: #ff6b6b; color: #fff; }
:where(body.pg-dashboard-favorite-index) .fav-sea-excerpt {
    margin-top: 6px;
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 合集筛选 */
:where(body.pg-dashboard-favorite-index) .fav-col-bar {
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
:where(body.pg-dashboard-favorite-index) .fav-col-bar-sub {
    padding: 12px 20px 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
:where(body.pg-dashboard-favorite-index) .fav-col-tab {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.04);
    color: #666;
    transition: all .2s;
}
:where(body.pg-dashboard-favorite-index) .fav-col-tab.active { background: #ff6b6b; color: #fff; }
:where(body.pg-dashboard-favorite-index) .fav-col-tab-wrap { position: relative; display: inline-flex; align-items: center; }
:where(body.pg-dashboard-favorite-index) .fav-col-tab-wrap > button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    color: #999;
}
:where(body.pg-dashboard-favorite-index) .fav-col-tab-wrap > button:hover { color: #ff6b6b; }
:where(body.pg-dashboard-favorite-index) .fav-col-tab-wrap .active + button { color: #fff; }
:where(body.pg-dashboard-favorite-index) .fav-col-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    min-width: 120px;
    padding: 4px 0;
    margin-top: 4px;
}
:where(body.pg-dashboard-favorite-index) .fav-col-menu.show { display: block; }
:where(body.pg-dashboard-favorite-index) .fav-col-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}
:where(body.pg-dashboard-favorite-index) .fav-col-menu button.danger { color: #ff4757; }
:where(body.pg-dashboard-favorite-index) .fav-col-add {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px dashed #ccc;
    background: none;
    cursor: pointer;
    color: #999;
    transition: all .2s;
}
:where(body.pg-dashboard-favorite-index) .fav-col-add:hover { border-color: #ff6b6b; color: #ff6b6b; }

/* 分页 */
:where(body.pg-dashboard-favorite-index) .fav-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 18px 0 4px;
    flex-wrap: wrap;
}
:where(body.pg-dashboard-favorite-index) .fav-pager-btn {
    min-width: 32px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    color: #5a6378;
    background: rgba(0, 0, 0, 0.04);
    transition: all .2s;
}
:where(body.pg-dashboard-favorite-index) .fav-pager-btn:hover { color: #ff6b6b; }
:where(body.pg-dashboard-favorite-index) .fav-pager-btn.active { background: #ff6b6b; color: #fff; }

/* 浏览记录 */
:where(body.pg-dashboard-favorite-index) .vh-clear-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    transition: all .2s;
}
:where(body.pg-dashboard-favorite-index) .vh-clear-btn:hover { border-color: #ff6b6b; color: #ff6b6b; }
:where(body.pg-dashboard-favorite-index) .vh-list { display: flex; flex-direction: column; }
:where(body.pg-dashboard-favorite-index) .vh-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
:where(body.pg-dashboard-favorite-index) .vh-item:last-child { border-bottom: none; }
:where(body.pg-dashboard-favorite-index) .vh-content { flex: 1; min-width: 0; }
:where(body.pg-dashboard-favorite-index) .vh-title {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
:where(body.pg-dashboard-favorite-index) .vh-title:hover { color: #ff6b6b; }
:where(body.pg-dashboard-favorite-index) .vh-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #999;
}
:where(body.pg-dashboard-favorite-index) .vh-kind {
    padding: 1px 7px;
    border-radius: 4px;
    background: rgba(78, 115, 223, .1);
    color: #4e73df;
}
:where(body.pg-dashboard-favorite-index) .vh-delete-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all .2s;
}
:where(body.pg-dashboard-favorite-index) .vh-delete-btn:hover { color: #ff6b6b; background: rgba(255, 107, 107, 0.08); }
:where(body.pg-dashboard-favorite-index) .vh-empty { text-align: center; padding: 60px 20px; color: #ccc; }
:where(body.pg-dashboard-favorite-index) .vh-empty p { margin: 12px 0; font-size: 14px; }
:where(body.pg-dashboard-favorite-index) .vh-empty-link {
    display: inline-block;
    padding: 8px 20px;
    background: #ff6b6b;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}
@media (max-width: 768px) {
    :where(body.pg-dashboard-favorite-index) .vh-title { font-size: 14px; }
    :where(body.pg-dashboard-favorite-index) .vh-meta { gap: 8px; }
    :where(body.pg-dashboard-favorite-index) .fav-col-bar { padding: 12px 14px; }
    :where(body.pg-dashboard-favorite-index) .fav-col-bar-sub { padding: 12px 14px; }
}

/* ---------- 页内样式（原 dashboard/material_list.html 的 style 块） ---------- */

:where(body.pg-dashboard-material-list) .ml-wrap { padding: 20px 24px; }
:where(body.pg-dashboard-material-list) .ml-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
:where(body.pg-dashboard-material-list) .ml-toolbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
:where(body.pg-dashboard-material-list) .ml-select, :where(body.pg-dashboard-material-list) .ml-input { padding: 7px 10px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; font-size: 13px; background: #fff; color: var(--text-primary, #333); }
:where(body.pg-dashboard-material-list) .ml-select { min-width: 100px; }
:where(body.pg-dashboard-material-list) .ml-input { width: 180px; }
:where(body.pg-dashboard-material-list) .ml-select:focus, :where(body.pg-dashboard-material-list) .ml-input:focus { outline: none; border-color: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-material-list) .ml-btn-primary { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border-radius: 6px; border: none; background: var(--theme-primary, #5a7dff); color: #fff; font-size: 13px; cursor: pointer; font-weight: 500; }
:where(body.pg-dashboard-material-list) .ml-btn-primary:hover { opacity: 0.9; }
:where(body.pg-dashboard-material-list) .ml-btn-secondary { padding: 7px 14px; border-radius: 6px; border: 1px solid var(--border-color, #e5e7eb); background: #fff; color: var(--text-primary, #333); font-size: 13px; cursor: pointer; }
:where(body.pg-dashboard-material-list) .ml-btn-secondary:hover { background: var(--bg-hover, #f5f5f5); }
:where(body.pg-dashboard-material-list) .ml-table-wrap { border: 1px solid var(--border-color, #e5e7eb); border-radius: 8px; background: var(--bg-card, #fff); overflow: auto; }
:where(body.pg-dashboard-material-list) .ml-table { width: 100%; border-collapse: collapse; font-size: 13px; }
:where(body.pg-dashboard-material-list) .ml-table th { padding: 10px 12px; text-align: left; font-weight: 600; color: var(--text-secondary, #666); background: var(--bg-hover, #fafafa); border-bottom: 1px solid var(--border-color, #e5e7eb); white-space: nowrap; }
:where(body.pg-dashboard-material-list) .ml-table td { padding: 12px; border-bottom: 1px solid var(--border-color, #f0f0f0); color: var(--text-primary, #333); }
:where(body.pg-dashboard-material-list) .ml-table tr:last-child td { border-bottom: none; }
:where(body.pg-dashboard-material-list) .ml-table tr:hover td { background: var(--bg-hover, #fafafa); }
:where(body.pg-dashboard-material-list) .ml-empty { text-align: center; padding: 40px 20px; color: var(--text-secondary, #999); }
:where(body.pg-dashboard-material-list) .ml-title-cell { font-weight: 500; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(body.pg-dashboard-material-list) .ml-status-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; }
:where(body.pg-dashboard-material-list) .ml-status-on { background: rgba(16,185,129,0.1); color: #10b981; }
:where(body.pg-dashboard-material-list) .ml-status-off { background: rgba(156,163,175,0.15); color: #9ca3af; }
:where(body.pg-dashboard-material-list) .ml-actions { display: flex; gap: 4px; }
:where(body.pg-dashboard-material-list) .ml-icon-btn { width: 28px; height: 28px; border-radius: 5px; border: none; background: transparent; color: var(--text-secondary, #666); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
:where(body.pg-dashboard-material-list) .ml-icon-btn:hover { background: var(--bg-hover, #f5f5f5); color: var(--text-primary, #333); }
:where(body.pg-dashboard-material-list) .ml-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
:where(body.pg-dashboard-material-list) .ml-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
:where(body.pg-dashboard-material-list) .ml-modal-body { position: relative; background: #fff; border-radius: 12px; width: 600px; max-width: 92vw; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
:where(body.pg-dashboard-material-list) .ml-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-color, #eee); }
:where(body.pg-dashboard-material-list) .ml-modal-header h3 { margin: 0; font-size: 16px; font-weight: 600; }
:where(body.pg-dashboard-material-list) .ml-modal-close { background: none; border: none; cursor: pointer; color: var(--text-secondary, #999); font-size: 22px; padding: 4px 8px; border-radius: 4px; line-height: 1; }
:where(body.pg-dashboard-material-list) .ml-modal-close:hover { background: var(--bg-hover, #f5f5f5); }
:where(body.pg-dashboard-material-list) .ml-form { padding: 20px; }
:where(body.pg-dashboard-material-list) .ml-field { margin-bottom: 16px; }
:where(body.pg-dashboard-material-list) .ml-label { display: block; font-size: 13px; color: var(--text-primary, #333); margin-bottom: 6px; font-weight: 500; }
:where(body.pg-dashboard-material-list) .ml-required { color: #ef4444; }
:where(body.pg-dashboard-material-list) .ml-input { width: 100%; padding: 8px 10px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; font-size: 13px; background: #fff; color: var(--text-primary, #333); box-sizing: border-box; }
:where(body.pg-dashboard-material-list) .ml-input:focus { outline: none; border-color: var(--theme-primary, #5a7dff); box-shadow: 0 0 0 2px rgba(90,125,255,0.15); }
:where(body.pg-dashboard-material-list) .ml-textarea { min-height: 100px; resize: vertical; font-family: inherit; }
:where(body.pg-dashboard-material-list) .ml-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
:where(body.pg-dashboard-material-list) .ml-thumb-row { display: flex; gap: 12px; align-items: center; }
:where(body.pg-dashboard-material-list) .ml-thumb-preview { width: 50px; height: 50px; border-radius: 6px; background: var(--bg-hover, #f5f5f5); display: flex; align-items: center; justify-content: center; color: var(--text-secondary, #ccc); overflow: hidden; flex-shrink: 0; }
:where(body.pg-dashboard-material-list) .ml-thumb-preview img { width: 100%; height: 100%; object-fit: cover; }
:where(body.pg-dashboard-material-list) .ml-thumb-input-wrap { flex: 1; display: flex; flex-direction: column; gap: 6px; }
:where(body.pg-dashboard-material-list) .ml-form-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-color, #eee); }
:where(body.pg-dashboard-material-list) .ml-notice { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 16px; border-radius: 6px; background: var(--bg-hover, #f5f7fa); border: 1px solid var(--border-color, #e5e7eb); font-size: 13px; color: var(--text-secondary, #666); }
:where(body.pg-dashboard-material-list) .ml-notice-link { color: var(--theme-primary, #5a7dff); text-decoration: none; white-space: nowrap; font-weight: 500; }
:where(body.pg-dashboard-material-list) .ml-notice-link:hover { opacity: 0.85; }
:where(body.pg-dashboard-material-list) .ml-editor-toolbar { border: 1px solid var(--border-color, #e5e7eb); border-bottom: none; border-radius: 6px 6px 0 0; background: #fafafa; }
:where(body.pg-dashboard-material-list) .ml-editor-box { border: 1px solid var(--border-color, #e5e7eb); border-radius: 0 0 6px 6px; height: 220px; overflow: hidden; background: #fff; }
:where(body.pg-dashboard-material-list) .ml-editor-box .w-e-text-container,
:where(body.pg-dashboard-material-list) .ml-editor-box .w-e-scroll { height: 100% !important; }

/* ---------- 页内样式（原 dashboard/memo_manage.html 的 style 块） ---------- */

:where(body.pg-dashboard-memo-manage) .rm-wrap { padding: 20px 24px; }
:where(body.pg-dashboard-memo-manage) .rm-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
:where(body.pg-dashboard-memo-manage) .rm-toolbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
:where(body.pg-dashboard-memo-manage) .rm-select, :where(body.pg-dashboard-memo-manage) .rm-input { padding: 7px 10px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; font-size: 13px; background: #fff; color: var(--text-primary, #333); }
:where(body.pg-dashboard-memo-manage) .rm-select { min-width: 100px; }
:where(body.pg-dashboard-memo-manage) .rm-input { width: 180px; }
:where(body.pg-dashboard-memo-manage) .rm-select:focus, :where(body.pg-dashboard-memo-manage) .rm-input:focus { outline: none; border-color: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-memo-manage) .rm-btn-primary { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border-radius: 6px; border: none; background: var(--theme-primary, #5a7dff); color: #fff; font-size: 13px; cursor: pointer; font-weight: 500; }
:where(body.pg-dashboard-memo-manage) .rm-btn-primary:hover { opacity: 0.9; }
:where(body.pg-dashboard-memo-manage) .rm-btn-secondary { padding: 7px 14px; border-radius: 6px; border: 1px solid var(--border-color, #e5e7eb); background: #fff; color: var(--text-primary, #333); font-size: 13px; cursor: pointer; }
:where(body.pg-dashboard-memo-manage) .rm-btn-secondary:hover { background: var(--bg-hover, #f5f5f5); }
:where(body.pg-dashboard-memo-manage) .rm-table-wrap { border: 1px solid var(--border-color, #e5e7eb); border-radius: 8px; background: var(--bg-card, #fff); overflow: auto; }
:where(body.pg-dashboard-memo-manage) .rm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
:where(body.pg-dashboard-memo-manage) .rm-table th { padding: 10px 12px; text-align: left; font-weight: 600; color: var(--text-secondary, #666); background: var(--bg-hover, #fafafa); border-bottom: 1px solid var(--border-color, #e5e7eb); white-space: nowrap; }
:where(body.pg-dashboard-memo-manage) .rm-table td { padding: 12px; border-bottom: 1px solid var(--border-color, #f0f0f0); color: var(--text-primary, #333); }
:where(body.pg-dashboard-memo-manage) .rm-table tr:last-child td { border-bottom: none; }
:where(body.pg-dashboard-memo-manage) .rm-table tr:hover td { background: var(--bg-hover, #fafafa); }
:where(body.pg-dashboard-memo-manage) .rm-empty { text-align: center; padding: 40px 20px; color: var(--text-secondary, #999); }
:where(body.pg-dashboard-memo-manage) .rm-title-cell { font-weight: 500; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(body.pg-dashboard-memo-manage) .rm-status-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; }
:where(body.pg-dashboard-memo-manage) .rm-status-on { background: rgba(16,185,129,0.1); color: #10b981; }
:where(body.pg-dashboard-memo-manage) .rm-status-off { background: rgba(156,163,175,0.15); color: #9ca3af; }
:where(body.pg-dashboard-memo-manage) .rm-pin-badge { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 500; background: rgba(245,158,11,0.1); color: #f59e0b; }
:where(body.pg-dashboard-memo-manage) .rm-actions { display: flex; gap: 4px; }
:where(body.pg-dashboard-memo-manage) .rm-icon-btn { width: 28px; height: 28px; border-radius: 5px; border: none; background: transparent; color: var(--text-secondary, #666); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
:where(body.pg-dashboard-memo-manage) .rm-icon-btn:hover { background: var(--bg-hover, #f5f5f5); color: var(--text-primary, #333); }
:where(body.pg-dashboard-memo-manage) .rm-icon-btn.danger:hover { color: #ef4444; }
:where(body.pg-dashboard-memo-manage) .rm-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
:where(body.pg-dashboard-memo-manage) .rm-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
:where(body.pg-dashboard-memo-manage) .rm-modal-body { position: relative; background: #fff; border-radius: 12px; width: 600px; max-width: 92vw; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
:where(body.pg-dashboard-memo-manage) .rm-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-color, #eee); }
:where(body.pg-dashboard-memo-manage) .rm-modal-header h3 { margin: 0; font-size: 16px; font-weight: 600; }
:where(body.pg-dashboard-memo-manage) .rm-modal-close { background: none; border: none; cursor: pointer; color: var(--text-secondary, #999); font-size: 22px; padding: 4px 8px; border-radius: 4px; line-height: 1; }
:where(body.pg-dashboard-memo-manage) .rm-modal-close:hover { background: var(--bg-hover, #f5f5f5); }
:where(body.pg-dashboard-memo-manage) .rm-form { padding: 20px; }
:where(body.pg-dashboard-memo-manage) .rm-field { margin-bottom: 16px; }
:where(body.pg-dashboard-memo-manage) .rm-label { display: block; font-size: 13px; color: var(--text-primary, #333); margin-bottom: 6px; font-weight: 500; }
:where(body.pg-dashboard-memo-manage) .rm-required { color: #ef4444; }
:where(body.pg-dashboard-memo-manage) .rm-input { width: 100%; padding: 8px 10px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; font-size: 13px; background: #fff; color: var(--text-primary, #333); box-sizing: border-box; }
:where(body.pg-dashboard-memo-manage) .rm-input:focus { outline: none; border-color: var(--theme-primary, #5a7dff); box-shadow: 0 0 0 2px rgba(90,125,255,0.15); }
:where(body.pg-dashboard-memo-manage) .rm-textarea { min-height: 100px; resize: vertical; font-family: inherit; }
:where(body.pg-dashboard-memo-manage) .rm-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
:where(body.pg-dashboard-memo-manage) .rm-img-area { display: flex; flex-direction: column; gap: 8px; }
:where(body.pg-dashboard-memo-manage) .rm-img-list { display: flex; flex-wrap: wrap; gap: 8px; }
:where(body.pg-dashboard-memo-manage) .rm-img-thumb { position: relative; width: 60px; height: 60px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border-color, #e5e7eb); }
:where(body.pg-dashboard-memo-manage) .rm-img-thumb img { width: 100%; height: 100%; object-fit: cover; }
:where(body.pg-dashboard-memo-manage) .rm-img-remove { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1; padding: 0; }
:where(body.pg-dashboard-memo-manage) .rm-checkbox { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-primary, #333); cursor: pointer; }
:where(body.pg-dashboard-memo-manage) .rm-checkbox input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
:where(body.pg-dashboard-memo-manage) .rm-form-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-color, #eee); }
:where(body.pg-dashboard-memo-manage) .rm-notice { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 16px; border-radius: 6px; background: var(--bg-hover, #f5f7fa); border: 1px solid var(--border-color, #e5e7eb); font-size: 13px; color: var(--text-secondary, #666); }
:where(body.pg-dashboard-memo-manage) .rm-notice-link { color: var(--theme-primary, #5a7dff); text-decoration: none; white-space: nowrap; font-weight: 500; }
:where(body.pg-dashboard-memo-manage) .rm-notice-link:hover { opacity: 0.85; }

/* ---------- 页内样式（原 dashboard/warehouse_import.html 的 style 块） ---------- */

:where(body.pg-dashboard-warehouse-import) .whd-wrap { padding: 20px 24px 40px; }
:where(body.pg-dashboard-warehouse-import) .whd-rule { border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; background: var(--bg-card, #fff); padding: 14px 18px; margin-bottom: 16px; }
:where(body.pg-dashboard-warehouse-import) .whd-rule-head { font-size: 14px; font-weight: 600; color: var(--text-primary, #333); margin-bottom: 8px; }
:where(body.pg-dashboard-warehouse-import) .whd-rule-list { margin: 0; padding-left: 20px; font-size: 13px; color: var(--text-secondary, #666); line-height: 1.9; }
:where(body.pg-dashboard-warehouse-import) .whd-rule-list b { color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-import) .whd-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
:where(body.pg-dashboard-warehouse-import) .whd-count { font-size: 13px; color: var(--text-secondary, #666); }
:where(body.pg-dashboard-warehouse-import) .whd-count b { color: var(--text-primary, #333); font-size: 15px; }
:where(body.pg-dashboard-warehouse-import) .whd-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
:where(body.pg-dashboard-warehouse-import) .whd-tab { display: inline-flex; align-items: center; gap: 5px; padding: 7px 15px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; background: var(--bg-card, #fff); color: var(--text-secondary, #666); font-size: 13px; cursor: pointer; }
:where(body.pg-dashboard-warehouse-import) .whd-tab:hover { color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-import) .whd-tab.active { border-color: var(--theme-primary, #5a7dff); color: var(--theme-primary, #5a7dff); background: rgba(90,125,255,.08); }
:where(body.pg-dashboard-warehouse-import) .whd-tab b { font-size: 12px; font-weight: 500; color: var(--text-secondary, #999); }
:where(body.pg-dashboard-warehouse-import) .whd-tab.active b { color: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-warehouse-import) .whd-empty { padding: 34px 20px; text-align: center; font-size: 13px; color: var(--text-secondary, #999); border: 1px dashed var(--border-color, #e5e7eb); border-radius: 10px; background: var(--bg-card, #fff); }
:where(body.pg-dashboard-warehouse-import) .whd-btn-primary { display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px; border: none; border-radius: 6px; background: var(--theme-primary, #5a7dff); color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; }
:where(body.pg-dashboard-warehouse-import) .whd-btn-primary:hover { opacity: .9; }
:where(body.pg-dashboard-warehouse-import) .whd-btn-primary:disabled, :where(body.pg-dashboard-warehouse-import) .whd-btn-ghost:disabled, :where(body.pg-dashboard-warehouse-import) .whi-btn:disabled { opacity: .55; cursor: not-allowed; }
:where(body.pg-dashboard-warehouse-import) .whd-btn-ghost { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; background: #fff; color: var(--text-primary, #333); font-size: 13px; cursor: pointer; text-decoration: none; }
:where(body.pg-dashboard-warehouse-import) .whd-btn-ghost:hover { background: var(--bg-hover, #f5f5f5); }
:where(body.pg-dashboard-warehouse-import) .whd-badge { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 11px; background: var(--bg-hover, #f2f3f5); color: var(--text-secondary, #666); }
:where(body.pg-dashboard-warehouse-import) .whd-badge-public { background: rgba(16,185,129,.1); color: #10b981; }
:where(body.pg-dashboard-warehouse-import) .whd-badge-private { background: rgba(156,163,175,.15); color: #9ca3af; }
:where(body.pg-dashboard-warehouse-import) .whd-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
:where(body.pg-dashboard-warehouse-import) .whd-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
:where(body.pg-dashboard-warehouse-import) .whd-modal-box { position: relative; width: 560px; max-width: 92vw; max-height: 90vh; display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
:where(body.pg-dashboard-warehouse-import) .whd-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--border-color, #eee); }
:where(body.pg-dashboard-warehouse-import) .whd-modal-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-import) .whd-modal-close { border: none; background: none; font-size: 22px; line-height: 1; padding: 2px 8px; border-radius: 4px; color: var(--text-secondary, #999); cursor: pointer; }
:where(body.pg-dashboard-warehouse-import) .whd-modal-close:hover { background: var(--bg-hover, #f5f5f5); color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-import) .whd-modal-body { padding: 18px 20px; overflow: auto; }
:where(body.pg-dashboard-warehouse-import) .whd-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border-color, #eee); }
:where(body.pg-dashboard-warehouse-import) .whd-field { margin-bottom: 14px; }
:where(body.pg-dashboard-warehouse-import) .whd-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-primary, #333); margin-bottom: 6px; }
:where(body.pg-dashboard-warehouse-import) .whd-input { width: 100%; padding: 8px 10px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; font-size: 13px; background: #fff; color: var(--text-primary, #333); box-sizing: border-box; font-family: inherit; }
:where(body.pg-dashboard-warehouse-import) .whd-input:focus { outline: none; border-color: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-warehouse-import) .whd-hint { font-size: 12px; color: var(--text-secondary, #999); line-height: 1.8; }

:where(body.pg-dashboard-warehouse-import) .whi-modal-box { width: 620px; }
:where(body.pg-dashboard-warehouse-import) .whi-card { border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; background: var(--bg-card, #fff); padding: 16px 18px; }
:where(body.pg-dashboard-warehouse-import) .whi-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
:where(body.pg-dashboard-warehouse-import) .whi-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
:where(body.pg-dashboard-warehouse-import) .whi-name { font-size: 16px; font-weight: 600; color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-import) .whi-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary, #999); }
:where(body.pg-dashboard-warehouse-import) .whi-state.in { color: #10b981; }
:where(body.pg-dashboard-warehouse-import) .whi-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--bg-hover, #f5f5f5); }
:where(body.pg-dashboard-warehouse-import) .whi-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
:where(body.pg-dashboard-warehouse-import) .whi-hint { font-size: 12.5px; color: var(--text-secondary, #666); background: var(--bg-hover, #fafafa); border-radius: 6px; padding: 9px 12px; line-height: 1.8; margin-bottom: 14px; }
:where(body.pg-dashboard-warehouse-import) .whi-fetch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--border-color, #f0f0f0); }
:where(body.pg-dashboard-warehouse-import) .whi-fetch .whd-input { width: auto; flex: 1 1 260px; min-width: 200px; }
:where(body.pg-dashboard-warehouse-import) .whi-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border: 1px solid var(--theme-primary, #5a7dff); border-radius: 6px; background: #fff; color: var(--theme-primary, #5a7dff); font-size: 13px; cursor: pointer; }
:where(body.pg-dashboard-warehouse-import) .whi-btn:hover { background: rgba(90,125,255,.08); }
:where(body.pg-dashboard-warehouse-import) .whi-perm { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary, #666); margin-top: 12px; flex-wrap: wrap; }
:where(body.pg-dashboard-warehouse-import) .whi-perm select { width: auto; padding: 6px 10px; }
:where(body.pg-dashboard-warehouse-import) .whi-tip { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 9px 12px; border: 1px solid rgba(245,158,11,.35); border-radius: 6px; background: rgba(245,158,11,.08); color: #b45309; font-size: 12px; }

:where(body.pg-dashboard-warehouse-import) .whi-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 6px; font-size: 12.5px; color: var(--text-secondary, #666); }
:where(body.pg-dashboard-warehouse-import) .whi-tools b { color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-import) .whi-tools a { color: var(--theme-primary, #5a7dff); text-decoration: none; cursor: pointer; }
:where(body.pg-dashboard-warehouse-import) .whi-rows { display: flex; flex-direction: column; }
:where(body.pg-dashboard-warehouse-import) .whi-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--border-color, #f0f0f0); }
:where(body.pg-dashboard-warehouse-import) .whi-row:last-child { border-bottom: none; }
:where(body.pg-dashboard-warehouse-import) .whi-row input[type=checkbox] { margin-top: 3px; width: 15px; height: 15px; flex: none; cursor: pointer; }
:where(body.pg-dashboard-warehouse-import) .whi-row-main { min-width: 0; flex: 1; }
:where(body.pg-dashboard-warehouse-import) .whi-row-title { display: block; font-size: 13.5px; color: var(--text-primary, #333); line-height: 1.6; word-break: break-all; }
:where(body.pg-dashboard-warehouse-import) .whi-row-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: 11.5px; color: var(--text-secondary, #999); }
:where(body.pg-dashboard-warehouse-import) .whi-row-meta a { color: var(--text-secondary, #999); text-decoration: none; word-break: break-all; }
:where(body.pg-dashboard-warehouse-import) .whi-row-meta a:hover { color: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-warehouse-import) .whi-row.gone .whi-row-title { color: var(--text-secondary, #999); }
:where(body.pg-dashboard-warehouse-import) .whi-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
:where(body.pg-dashboard-warehouse-import) .whi-foot .whd-hint { flex: 1; }

:where(body.pg-dashboard-warehouse-import) .whi-qr { display: flex; justify-content: center; padding: 6px 0 10px; }
:where(body.pg-dashboard-warehouse-import) .whi-qr img, :where(body.pg-dashboard-warehouse-import) .whi-qr canvas { display: block; border: 1px solid var(--border-color, #eee); border-radius: 8px; padding: 6px; background: #fff; }
:where(body.pg-dashboard-warehouse-import) .whi-qr-status { text-align: center; font-size: 12.5px; color: var(--text-secondary, #666); margin-bottom: 10px; }
:where(body.pg-dashboard-warehouse-import) .whi-sep { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-size: 12px; color: var(--text-secondary, #999); }
:where(body.pg-dashboard-warehouse-import) .whi-sep::before, :where(body.pg-dashboard-warehouse-import) .whi-sep::after { content: ''; flex: 1; height: 1px; background: var(--border-color, #eee); }
:where(body.pg-dashboard-warehouse-import) .whi-textarea { min-height: 180px; resize: vertical; font-family: inherit; }
:where(body.pg-dashboard-warehouse-import) .whi-err { font-size: 12.5px; color: #ef4444; margin-top: 8px; }
:where(body.pg-dashboard-warehouse-import) .whi-ok { font-size: 12.5px; color: #10b981; margin-top: 8px; }

@media (max-width: 900px) {
    :where(body.pg-dashboard-warehouse-import) .whd-wrap { padding: 14px; }
    :where(body.pg-dashboard-warehouse-import) .whi-head, :where(body.pg-dashboard-warehouse-import) .whi-fetch { align-items: stretch; }
    :where(body.pg-dashboard-warehouse-import) .whi-fetch .whd-input { flex: 1 1 100%; }
}

/* ---------- 页内样式（原 dashboard/warehouse_index.html 的 style 块） ---------- */

:where(body.pg-dashboard-warehouse-index) .whd-wrap { padding: 20px 24px 40px; }
:where(body.pg-dashboard-warehouse-index) .whd-tip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; margin-bottom: 14px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 8px; background: var(--bg-card, #fff); font-size: 13px; color: var(--text-secondary, #666); flex-wrap: wrap; }
:where(body.pg-dashboard-warehouse-index) .whd-tip-link { color: var(--theme-primary, #5a7dff); text-decoration: none; font-weight: 500; white-space: nowrap; }
:where(body.pg-dashboard-warehouse-index) .whd-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
:where(body.pg-dashboard-warehouse-index) .whd-stat { background: var(--bg-card, #fff); border: 1px solid var(--border-color, #e5e7eb); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
:where(body.pg-dashboard-warehouse-index) .whd-stat-num { font-size: 20px; font-weight: 600; color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-index) .whd-stat-label { font-size: 12px; color: var(--text-secondary, #999); }
:where(body.pg-dashboard-warehouse-index) .whd-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
:where(body.pg-dashboard-warehouse-index) .whd-col-main, :where(body.pg-dashboard-warehouse-index) .whd-col-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
:where(body.pg-dashboard-warehouse-index) .whd-card { background: var(--bg-card, #fff); border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; padding: 16px 18px; }
:where(body.pg-dashboard-warehouse-index) .whd-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
:where(body.pg-dashboard-warehouse-index) .whd-card-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-index) .whd-card-sub, :where(body.pg-dashboard-warehouse-index) .whd-card-link { font-size: 12px; color: var(--text-secondary, #999); }
:where(body.pg-dashboard-warehouse-index) .whd-card-link { color: var(--theme-primary, #5a7dff); text-decoration: none; }
:where(body.pg-dashboard-warehouse-index) .whd-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
:where(body.pg-dashboard-warehouse-index) .whd-form .whd-field:last-of-type { margin-bottom: 12px; }
:where(body.pg-dashboard-warehouse-index) .whd-field { margin-bottom: 12px; }
:where(body.pg-dashboard-warehouse-index) .whd-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-primary, #333); margin-bottom: 6px; }
:where(body.pg-dashboard-warehouse-index) .whd-req { color: #ef4444; font-weight: 600; }
:where(body.pg-dashboard-warehouse-index) .whd-input { width: 100%; padding: 8px 10px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; font-size: 13px; background: #fff; color: var(--text-primary, #333); box-sizing: border-box; font-family: inherit; }
:where(body.pg-dashboard-warehouse-index) .whd-input:focus { outline: none; border-color: var(--theme-primary, #5a7dff); box-shadow: 0 0 0 2px rgba(90,125,255,0.14); }
:where(body.pg-dashboard-warehouse-index) .whd-textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
:where(body.pg-dashboard-warehouse-index) .whd-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
:where(body.pg-dashboard-warehouse-index) .whd-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
:where(body.pg-dashboard-warehouse-index) .whd-field-btns { display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; margin-bottom: 0; }
:where(body.pg-dashboard-warehouse-index) .whd-btn-primary { display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px; border: none; border-radius: 6px; background: var(--theme-primary, #5a7dff); color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; }
:where(body.pg-dashboard-warehouse-index) .whd-btn-primary:hover { opacity: .9; }
:where(body.pg-dashboard-warehouse-index) .whd-btn-primary:disabled { opacity: .55; cursor: not-allowed; }
:where(body.pg-dashboard-warehouse-index) .whd-btn-ghost { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; background: #fff; color: var(--text-primary, #333); font-size: 13px; cursor: pointer; }
:where(body.pg-dashboard-warehouse-index) .whd-btn-ghost:hover { background: var(--bg-hover, #f5f5f5); }
:where(body.pg-dashboard-warehouse-index) .whd-hint { font-size: 12px; color: var(--text-secondary, #999); }
:where(body.pg-dashboard-warehouse-index) .whd-cover-area { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
:where(body.pg-dashboard-warehouse-index) .whd-cover-box { position: relative; width: 132px; height: 84px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; overflow: hidden; }
:where(body.pg-dashboard-warehouse-index) .whd-cover-box img { width: 100%; height: 100%; object-fit: cover; }
:where(body.pg-dashboard-warehouse-index) .whd-cover-remove { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border: none; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; padding: 0; }
:where(body.pg-dashboard-warehouse-index) .whd-batch-hint { font-size: 12px; color: var(--text-secondary, #666); line-height: 1.8; margin-bottom: 10px; padding: 8px 10px; border-radius: 6px; background: var(--bg-hover, #f7f8fa); }
:where(body.pg-dashboard-warehouse-index) .whd-batch-hint code { font-size: 12px; color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-index) .whd-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-color, #f0f0f0); }
:where(body.pg-dashboard-warehouse-index) .whd-item:last-child { border-bottom: none; }
:where(body.pg-dashboard-warehouse-index) .whd-item-thumb { flex: none; width: 46px; height: 46px; border-radius: 6px; background: var(--bg-hover, #f5f5f5); border: 1px solid var(--border-color, #e5e7eb); object-fit: cover; }
:where(body.pg-dashboard-warehouse-index) .whd-item-main { min-width: 0; flex: 1; }
:where(body.pg-dashboard-warehouse-index) .whd-item-title { display: block; font-size: 13px; color: var(--text-primary, #333); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(body.pg-dashboard-warehouse-index) .whd-item-title:hover { color: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-warehouse-index) .whd-item-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: 11px; color: var(--text-secondary, #999); }
:where(body.pg-dashboard-warehouse-index) .whd-badge { padding: 1px 6px; border-radius: 4px; background: var(--bg-hover, #f2f3f5); color: var(--text-secondary, #666); }
:where(body.pg-dashboard-warehouse-index) .whd-badge-private { background: rgba(156,163,175,.15); color: #9ca3af; }
:where(body.pg-dashboard-warehouse-index) .whd-badge-public { background: rgba(16,185,129,.1); color: #10b981; }
:where(body.pg-dashboard-warehouse-index) .whd-bars { display: flex; flex-direction: column; gap: 8px; }
:where(body.pg-dashboard-warehouse-index) .whd-bar-row { display: grid; grid-template-columns: 46px 1fr 34px; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary, #666); }
:where(body.pg-dashboard-warehouse-index) .whd-bar-track { height: 6px; border-radius: 3px; background: var(--bg-hover, #f2f3f5); overflow: hidden; }
:where(body.pg-dashboard-warehouse-index) .whd-bar-fill { display: block; height: 100%; border-radius: 3px; background: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-warehouse-index) .whd-bar-num { text-align: right; color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-index) .whd-empty { padding: 24px 0; text-align: center; font-size: 13px; color: var(--text-secondary, #999); }
@media (max-width: 1100px) {
    :where(body.pg-dashboard-warehouse-index) .whd-cols { grid-template-columns: 1fr; }
    :where(body.pg-dashboard-warehouse-index) .whd-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    :where(body.pg-dashboard-warehouse-index) .whd-wrap { padding: 14px; }
    :where(body.pg-dashboard-warehouse-index) .whd-stats { grid-template-columns: repeat(2, 1fr); }
    :where(body.pg-dashboard-warehouse-index) .whd-row2, :where(body.pg-dashboard-warehouse-index) .whd-row3 { grid-template-columns: 1fr; }
    :where(body.pg-dashboard-warehouse-index) .whd-field-btns { justify-content: flex-start; }
}

/* ---------- 页内样式（原 dashboard/warehouse_manage.html 的 style 块） ---------- */

:where(body.pg-dashboard-warehouse-manage) .whd-wrap { padding: 20px 24px 40px; }
:where(body.pg-dashboard-warehouse-manage) .whd-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
:where(body.pg-dashboard-warehouse-manage) .whd-tab { display: inline-flex; align-items: center; gap: 5px; padding: 7px 15px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; background: var(--bg-card, #fff); color: var(--text-secondary, #666); font-size: 13px; cursor: pointer; }
:where(body.pg-dashboard-warehouse-manage) .whd-tab:hover { color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-manage) .whd-tab.active { border-color: var(--theme-primary, #5a7dff); color: var(--theme-primary, #5a7dff); background: rgba(90,125,255,.08); }
:where(body.pg-dashboard-warehouse-manage) .whd-tab b { font-size: 12px; font-weight: 500; color: var(--text-secondary, #999); }
:where(body.pg-dashboard-warehouse-manage) .whd-tab.active b { color: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-warehouse-manage) .whd-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
:where(body.pg-dashboard-warehouse-manage) .whd-bar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
:where(body.pg-dashboard-warehouse-manage) .whd-bar-right { display: flex; align-items: center; gap: 8px; }
:where(body.pg-dashboard-warehouse-manage) .whd-input { padding: 8px 10px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; font-size: 13px; background: #fff; color: var(--text-primary, #333); box-sizing: border-box; font-family: inherit; }
:where(body.pg-dashboard-warehouse-manage) .whd-input:focus { outline: none; border-color: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-warehouse-manage) .whd-search { width: 230px; }
:where(body.pg-dashboard-warehouse-manage) .whd-filter { min-width: 106px; }
:where(body.pg-dashboard-warehouse-manage) .whd-batch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 8px; background: var(--bg-hover, #fafafa); }
:where(body.pg-dashboard-warehouse-manage) .whd-batch-num { font-size: 13px; color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-manage) .whd-batch-num b { color: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-warehouse-manage) .whd-batch-sep { width: 1px; height: 18px; background: var(--border-color, #e5e7eb); }
:where(body.pg-dashboard-warehouse-manage) .whd-batch-group { display: flex; align-items: center; gap: 6px; }
:where(body.pg-dashboard-warehouse-manage) .whd-batch-sel { padding: 6px 8px; min-width: 84px; }
:where(body.pg-dashboard-warehouse-manage) .whd-batch .whd-btn-ghost { padding: 6px 11px; }
:where(body.pg-dashboard-warehouse-manage) .whd-batch-danger { color: #ef4444; border-color: rgba(239,68,68,.35); }
:where(body.pg-dashboard-warehouse-manage) .whd-batch-danger:hover { background: rgba(239,68,68,.08); }
:where(body.pg-dashboard-warehouse-manage) .whd-check { width: 15px; height: 15px; margin: 0; cursor: pointer; vertical-align: middle; accent-color: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-warehouse-manage) .whd-table th:first-child, :where(body.pg-dashboard-warehouse-manage) .whd-table td:first-child { text-align: center; padding-right: 0; }
:where(body.pg-dashboard-warehouse-manage) .whd-btn-primary { display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px; border: none; border-radius: 6px; background: var(--theme-primary, #5a7dff); color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; }
:where(body.pg-dashboard-warehouse-manage) .whd-btn-primary:hover { opacity: .9; }
:where(body.pg-dashboard-warehouse-manage) .whd-btn-primary:disabled { opacity: .55; cursor: not-allowed; }
:where(body.pg-dashboard-warehouse-manage) .whd-btn-ghost { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; background: #fff; color: var(--text-primary, #333); font-size: 13px; cursor: pointer; text-decoration: none; }
:where(body.pg-dashboard-warehouse-manage) .whd-btn-ghost:hover { background: var(--bg-hover, #f5f5f5); }
:where(body.pg-dashboard-warehouse-manage) .whd-table-wrap { border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; background: var(--bg-card, #fff); overflow: auto; }
:where(body.pg-dashboard-warehouse-manage) .whd-table { width: 100%; border-collapse: collapse; font-size: 13px; }
:where(body.pg-dashboard-warehouse-manage) .whd-table th { padding: 10px 12px; text-align: left; font-weight: 600; color: var(--text-secondary, #666); background: var(--bg-hover, #fafafa); border-bottom: 1px solid var(--border-color, #e5e7eb); white-space: nowrap; }
:where(body.pg-dashboard-warehouse-manage) .whd-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-color, #f0f0f0); color: var(--text-primary, #333); vertical-align: middle; }
:where(body.pg-dashboard-warehouse-manage) .whd-table tr:last-child td { border-bottom: none; }
:where(body.pg-dashboard-warehouse-manage) .whd-table tr:hover td { background: var(--bg-hover, #fafafa); }
:where(body.pg-dashboard-warehouse-manage) .whd-thumb { width: 46px; height: 34px; border-radius: 5px; object-fit: cover; display: block; background: var(--bg-hover, #f5f5f5); cursor: pointer; }
:where(body.pg-dashboard-warehouse-manage) .whd-cell-title { max-width: 320px; }
:where(body.pg-dashboard-warehouse-manage) .whd-cell-title a { display: block; color: var(--text-primary, #333); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(body.pg-dashboard-warehouse-manage) .whd-cell-title a:hover { color: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-warehouse-manage) .whd-cell-title span { display: block; font-size: 11px; color: var(--text-secondary, #999); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
:where(body.pg-dashboard-warehouse-manage) .whd-badge { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 11px; background: var(--bg-hover, #f2f3f5); color: var(--text-secondary, #666); }
:where(body.pg-dashboard-warehouse-manage) .whd-badge-public { background: rgba(16,185,129,.1); color: #10b981; cursor: pointer; }
:where(body.pg-dashboard-warehouse-manage) .whd-badge-private { background: rgba(156,163,175,.15); color: #9ca3af; cursor: pointer; }
:where(body.pg-dashboard-warehouse-manage) .whd-badge-off { background: rgba(239,68,68,.1); color: #ef4444; }
:where(body.pg-dashboard-warehouse-manage) .whd-acts { display: flex; gap: 4px; }
:where(body.pg-dashboard-warehouse-manage) .whd-act { width: 28px; height: 28px; border: none; border-radius: 5px; background: transparent; color: var(--text-secondary, #666); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
:where(body.pg-dashboard-warehouse-manage) .whd-act:hover { background: var(--bg-hover, #f0f1f3); color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-manage) .whd-act.danger:hover { color: #ef4444; }
:where(body.pg-dashboard-warehouse-manage) .whd-act.censor-on { color: #ef4444; }
:where(body.pg-dashboard-warehouse-manage) .whd-empty { text-align: center; padding: 40px 20px; color: var(--text-secondary, #999); }
:where(body.pg-dashboard-warehouse-manage) .whd-pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
:where(body.pg-dashboard-warehouse-manage) .whd-page-btn { min-width: 32px; padding: 6px 10px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; background: #fff; color: var(--text-primary, #333); font-size: 13px; cursor: pointer; }
:where(body.pg-dashboard-warehouse-manage) .whd-page-btn:hover { background: var(--bg-hover, #f5f5f5); }
:where(body.pg-dashboard-warehouse-manage) .whd-page-btn.on { background: var(--theme-primary, #5a7dff); border-color: var(--theme-primary, #5a7dff); color: #fff; }
:where(body.pg-dashboard-warehouse-manage) .whd-page-btn:disabled { opacity: .5; cursor: not-allowed; }
:where(body.pg-dashboard-warehouse-manage) .whd-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
:where(body.pg-dashboard-warehouse-manage) .whd-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
:where(body.pg-dashboard-warehouse-manage) .whd-modal-box { position: relative; width: 620px; max-width: 92vw; max-height: 90vh; display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
:where(body.pg-dashboard-warehouse-manage) .whd-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--border-color, #eee); }
:where(body.pg-dashboard-warehouse-manage) .whd-modal-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-manage) .whd-modal-close { border: none; background: none; font-size: 22px; line-height: 1; padding: 2px 8px; border-radius: 4px; color: var(--text-secondary, #999); cursor: pointer; }
:where(body.pg-dashboard-warehouse-manage) .whd-modal-close:hover { background: var(--bg-hover, #f5f5f5); color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-manage) .whd-modal-body { padding: 18px 20px; overflow: auto; }
:where(body.pg-dashboard-warehouse-manage) .whd-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border-color, #eee); }
:where(body.pg-dashboard-warehouse-manage) .whd-field { margin-bottom: 13px; }
:where(body.pg-dashboard-warehouse-manage) .whd-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-primary, #333); margin-bottom: 6px; }
:where(body.pg-dashboard-warehouse-manage) .whd-req { color: #ef4444; }
:where(body.pg-dashboard-warehouse-manage) .whd-modal-body .whd-input { width: 100%; }
:where(body.pg-dashboard-warehouse-manage) .whd-textarea { min-height: 84px; resize: vertical; line-height: 1.6; }
:where(body.pg-dashboard-warehouse-manage) .whd-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
:where(body.pg-dashboard-warehouse-manage) .whd-checkbox { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-primary, #333); cursor: pointer; }
:where(body.pg-dashboard-warehouse-manage) .whd-checkbox input { width: 16px; height: 16px; cursor: pointer; }
:where(body.pg-dashboard-warehouse-manage) .whd-cover-area { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
:where(body.pg-dashboard-warehouse-manage) .whd-cover-box { position: relative; width: 120px; height: 76px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; overflow: hidden; }
:where(body.pg-dashboard-warehouse-manage) .whd-cover-box img { width: 100%; height: 100%; object-fit: cover; }
:where(body.pg-dashboard-warehouse-manage) .whd-cover-remove { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border: none; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; padding: 0; }
:where(body.pg-dashboard-warehouse-manage) .whd-hint { font-size: 12px; color: var(--text-secondary, #999); }
:where(body.pg-dashboard-warehouse-manage) .whd-badge-copy { background: rgba(90,125,255,.12); color: var(--theme-primary, #5a7dff); flex: 0 0 auto; }
:where(body.pg-dashboard-warehouse-manage) .whd-badge-note { background: rgba(16,185,129,.12); color: #10b981; flex: 0 0 auto; }
:where(body.pg-dashboard-warehouse-manage) .whd-titlerow { display: flex; align-items: center; gap: 6px; }
:where(body.pg-dashboard-warehouse-manage) .whd-titlerow a { flex: 1 1 auto; min-width: 0; }
:where(body.pg-dashboard-warehouse-manage) .whd-act.copy-on { color: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-warehouse-manage) .whd-copy-box { width: 780px; }
:where(body.pg-dashboard-warehouse-manage) .whd-narrow-box { width: 460px; }
:where(body.pg-dashboard-warehouse-manage) .whd-copy-tip { display: flex; align-items: center; gap: 6px; padding: 9px 12px; margin-bottom: 14px; border: 1px solid rgba(245,158,11,.35); border-radius: 6px; background: rgba(245,158,11,.08); color: #b45309; font-size: 12px; }
:where(body.pg-dashboard-warehouse-manage) .whd-copy-meta { font-size: 12px; color: var(--text-secondary, #999); margin-bottom: 12px; }
:where(body.pg-dashboard-warehouse-manage) .whd-copy-meta b { color: var(--text-primary, #333); font-weight: 500; }
:where(body.pg-dashboard-warehouse-manage) .whd-copy-title { font-size: 16px; font-weight: 600; color: var(--text-primary, #333); line-height: 1.5; margin-bottom: 8px; }
:where(body.pg-dashboard-warehouse-manage) .whd-copy-video { width: 100%; max-height: 400px; border-radius: 8px; background: #000; display: block; margin-bottom: 14px; }
:where(body.pg-dashboard-warehouse-manage) .whd-copy-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
:where(body.pg-dashboard-warehouse-manage) .whd-copy-imgs img { width: 100%; height: 150px; object-fit: cover; border-radius: 6px; display: block; cursor: zoom-in; background: var(--bg-hover, #f5f5f5); }
:where(body.pg-dashboard-warehouse-manage) .whd-copy-text { font-size: 13px; line-height: 1.75; color: var(--text-primary, #333); white-space: pre-wrap; word-break: break-word; }
:where(body.pg-dashboard-warehouse-manage) .whd-copy-text.empty { color: var(--text-secondary, #999); }
:where(body.pg-dashboard-warehouse-manage) .whd-other-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-color, #f0f0f0); }
:where(body.pg-dashboard-warehouse-manage) .whd-other-item:last-child { border-bottom: none; }
:where(body.pg-dashboard-warehouse-manage) .whd-other-item img { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; background: var(--bg-hover, #f5f5f5); flex: 0 0 auto; }
:where(body.pg-dashboard-warehouse-manage) .whd-other-info { flex: 1 1 auto; min-width: 0; }
:where(body.pg-dashboard-warehouse-manage) .whd-other-info b { display: block; font-size: 13px; font-weight: 500; color: var(--text-primary, #333); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(body.pg-dashboard-warehouse-manage) .whd-other-info span { display: block; font-size: 12px; color: var(--text-secondary, #999); margin-top: 3px; }
:where(body.pg-dashboard-warehouse-manage) .whd-img-view { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.82); }
:where(body.pg-dashboard-warehouse-manage) .whd-img-view img { max-width: 92vw; max-height: 88vh; border-radius: 6px; }
:where(body.pg-dashboard-warehouse-manage) .whd-img-view .whd-modal-close { position: absolute; top: 18px; right: 24px; color: #fff; font-size: 30px; }
@media (max-width: 900px) {
    :where(body.pg-dashboard-warehouse-manage) .whd-wrap { padding: 14px; }
    :where(body.pg-dashboard-warehouse-manage) .whd-search { width: 100%; }
    :where(body.pg-dashboard-warehouse-manage) .whd-row2 { grid-template-columns: 1fr; }
    :where(body.pg-dashboard-warehouse-manage) .whd-copy-imgs { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 页内样式（原 dashboard/warehouse_plugin.html 的 style 块） ---------- */

:where(body.pg-dashboard-warehouse-plugin) .whd-wrap { padding: 20px 24px 40px; user-select: text; }
:where(body.pg-dashboard-warehouse-plugin) .whd-rule { border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; background: var(--bg-card, #fff); padding: 14px 18px; margin-bottom: 16px; }
:where(body.pg-dashboard-warehouse-plugin) .whd-rule-head { font-size: 14px; font-weight: 600; color: var(--text-primary, #333); margin-bottom: 8px; }
:where(body.pg-dashboard-warehouse-plugin) .whd-rule-list { margin: 0; padding-left: 20px; font-size: 13px; color: var(--text-secondary, #666); line-height: 1.9; }
:where(body.pg-dashboard-warehouse-plugin) .whd-rule-list b { color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-plugin) .whd-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
:where(body.pg-dashboard-warehouse-plugin) .whd-count { font-size: 13px; color: var(--text-secondary, #666); }
:where(body.pg-dashboard-warehouse-plugin) .whd-count b { color: var(--text-primary, #333); font-size: 15px; }
:where(body.pg-dashboard-warehouse-plugin) .whd-bar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
:where(body.pg-dashboard-warehouse-plugin) .whd-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
:where(body.pg-dashboard-warehouse-plugin) .whd-tab { display: inline-flex; align-items: center; padding: 7px 15px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; background: var(--bg-card, #fff); color: var(--text-secondary, #666); font-size: 13px; cursor: pointer; }
:where(body.pg-dashboard-warehouse-plugin) .whd-tab:hover { color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-plugin) .whd-tab.active { border-color: var(--theme-primary, #5a7dff); color: var(--theme-primary, #5a7dff); background: rgba(90,125,255,.08); }
:where(body.pg-dashboard-warehouse-plugin) .whd-empty { padding: 24px 20px; text-align: center; font-size: 13px; color: var(--text-secondary, #999); }
:where(body.pg-dashboard-warehouse-plugin) .whd-badge { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 12px; background: var(--bg-hover, #f2f3f5); color: var(--text-secondary, #666); }
:where(body.pg-dashboard-warehouse-plugin) .whd-badge b { color: var(--text-primary, #333); font-weight: 500; }
:where(body.pg-dashboard-warehouse-plugin) .whd-btn-primary { display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px; border: none; border-radius: 6px; background: var(--theme-primary, #5a7dff); color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; }
:where(body.pg-dashboard-warehouse-plugin) .whd-btn-primary:hover { opacity: .9; }
:where(body.pg-dashboard-warehouse-plugin) .whd-btn-primary:disabled { opacity: .55; cursor: not-allowed; }
:where(body.pg-dashboard-warehouse-plugin) .whd-btn-ghost { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; background: #fff; color: var(--text-primary, #333); font-size: 13px; cursor: pointer; text-decoration: none; }
:where(body.pg-dashboard-warehouse-plugin) .whd-btn-ghost:hover { background: var(--bg-hover, #f5f5f5); }
:where(body.pg-dashboard-warehouse-plugin) .whd-hint { font-size: 12px; color: var(--text-secondary, #999); line-height: 1.8; }
:where(body.pg-dashboard-warehouse-plugin) .whd-field { margin-bottom: 14px; }
:where(body.pg-dashboard-warehouse-plugin) .whd-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-primary, #333); margin-bottom: 6px; }
:where(body.pg-dashboard-warehouse-plugin) .whd-input { width: 100%; padding: 8px 10px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; font-size: 13px; background: #fff; color: var(--text-primary, #333); box-sizing: border-box; font-family: inherit; }
:where(body.pg-dashboard-warehouse-plugin) .whd-input:focus { outline: none; border-color: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-warehouse-plugin) .whd-err { font-size: 12.5px; color: #ef4444; margin-top: 8px; }
:where(body.pg-dashboard-warehouse-plugin) .whd-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
:where(body.pg-dashboard-warehouse-plugin) .whd-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
:where(body.pg-dashboard-warehouse-plugin) .whd-modal-box { position: relative; width: 460px; max-width: 92vw; background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
:where(body.pg-dashboard-warehouse-plugin) .whd-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--border-color, #eee); }
:where(body.pg-dashboard-warehouse-plugin) .whd-modal-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-plugin) .whd-modal-close { border: none; background: none; font-size: 22px; line-height: 1; padding: 2px 8px; border-radius: 4px; color: var(--text-secondary, #999); cursor: pointer; }
:where(body.pg-dashboard-warehouse-plugin) .whd-modal-close:hover { background: var(--bg-hover, #f5f5f5); color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-plugin) .whd-modal-body { padding: 18px 20px; }
:where(body.pg-dashboard-warehouse-plugin) .whd-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border-color, #eee); }

:where(body.pg-dashboard-warehouse-plugin) .whi-card { border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; background: var(--bg-card, #fff); padding: 16px 18px; margin-bottom: 16px; }
:where(body.pg-dashboard-warehouse-plugin) .whi-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
:where(body.pg-dashboard-warehouse-plugin) .whi-name { font-size: 15px; font-weight: 600; color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-plugin) .whi-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
:where(body.pg-dashboard-warehouse-plugin) .whi-hint { font-size: 12.5px; color: var(--text-secondary, #666); background: var(--bg-hover, #fafafa); border-radius: 6px; padding: 9px 12px; line-height: 1.8; margin-bottom: 12px; }
:where(body.pg-dashboard-warehouse-plugin) .whi-hint b { color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-plugin) .whi-tip { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 9px 12px; border: 1px solid rgba(245,158,11,.35); border-radius: 6px; background: rgba(245,158,11,.08); color: #b45309; font-size: 12px; line-height: 1.7; }
:where(body.pg-dashboard-warehouse-plugin) .whi-btn { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border: 1px solid var(--theme-primary, #5a7dff); border-radius: 6px; background: #fff; color: var(--theme-primary, #5a7dff); font-size: 13px; cursor: pointer; text-decoration: none; flex-shrink: 0; }
:where(body.pg-dashboard-warehouse-plugin) .whi-btn:hover { background: rgba(90,125,255,.08); }

:where(body.pg-dashboard-warehouse-plugin) .wpx-pane { display: none; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-pane.on { display: block; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-steps { margin: 0 0 12px; padding-left: 20px; font-size: 13px; color: var(--text-secondary, #666); line-height: 2; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-steps b { color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-plugin) .wpx-steps code { font-size: 12.5px; color: var(--text-primary, #333); background: var(--bg-hover, #f2f3f5); padding: 1px 5px; border-radius: 4px; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-dl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-beta-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--border-color, #e5e7eb); }
:where(body.pg-dashboard-warehouse-plugin) .wpx-beta-text { flex: 1 1 auto; font-size: 12.5px; color: var(--text-secondary, #666); line-height: 1.8; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-beta-text > b { display: block; font-size: 13.5px; color: var(--text-primary, #333); margin-bottom: 2px; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-beta-item a { flex: 0 0 auto; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-beta-text b { color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-plugin) .wpx-addr { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; max-width: 100%; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-addr-list { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-addr-block { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-addr-block .whd-input { flex: 1 1 260px; min-width: 0; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-addr-block .wpx-code { flex: 1 1 260px; min-width: 0; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-code { font-size: 12.5px; color: var(--text-primary, #333); background: var(--bg-hover, #f2f3f5); padding: 3px 6px; border-radius: 4px; cursor: text; user-select: all; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-act { flex-shrink: 0; display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 4px; background: #fff; color: var(--text-secondary, #666); font-size: 11.5px; line-height: 1.7; cursor: pointer; text-decoration: none; font-family: inherit; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-act:hover { border-color: var(--theme-primary, #5a7dff); color: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-warehouse-plugin) .wpx-secret { font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-seg { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-seg-btn { padding: 6px 16px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; background: var(--bg-card, #fff); color: var(--text-secondary, #666); font-size: 13px; cursor: pointer; font-family: inherit; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-seg-btn:hover { color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-plugin) .wpx-seg-btn.on { border-color: var(--theme-primary, #5a7dff); color: var(--theme-primary, #5a7dff); background: rgba(90,125,255,.08); }
:where(body.pg-dashboard-warehouse-plugin) .wpx-seg-btn:disabled { opacity: .55; cursor: progress; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-expire { font-size: 12.5px; color: var(--text-secondary, #666); line-height: 1.8; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-expire b { color: var(--text-primary, #333); font-weight: 500; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px; margin-bottom: 12px; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-cell { border: 1px solid var(--border-color, #e5e7eb); border-radius: 8px; padding: 11px 13px; display: flex; flex-direction: column; gap: 3px; background: var(--bg-card, #fff); }
:where(body.pg-dashboard-warehouse-plugin) .wpx-cell-num { font-size: 19px; font-weight: 600; color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-plugin) .wpx-cell-label { font-size: 12px; color: var(--text-secondary, #999); }
:where(body.pg-dashboard-warehouse-plugin) .wpx-last { font-size: 12.5px; color: var(--text-secondary, #666); margin-bottom: 10px; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-sw-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-sw { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; user-select: none; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-sw:hover { background: var(--bg-hover, #f7f8fa); }
:where(body.pg-dashboard-warehouse-plugin) .wpx-sw input { display: none; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-sw-slider { width: 34px; height: 20px; background: #d1d5db; border-radius: 10px; position: relative; flex: none; transition: background .2s; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-sw-slider::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .2s; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-sw input:checked + .wpx-sw-slider { background: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-warehouse-plugin) .wpx-sw input:checked + .wpx-sw-slider::after { transform: translateX(14px); }
:where(body.pg-dashboard-warehouse-plugin) .wpx-sw-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-sw-text { font-size: 13px; font-weight: 500; color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-plugin) .wpx-sw-note { font-size: 12px; color: var(--text-secondary, #999); line-height: 1.7; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-table { width: 100%; border-collapse: collapse; font-size: 13px; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-table th { text-align: left; padding: 9px 10px; background: var(--bg-hover, #f7f8fa); color: var(--text-secondary, #666); font-weight: 500; border-bottom: 1px solid var(--border-color, #e5e7eb); }
:where(body.pg-dashboard-warehouse-plugin) .wpx-table td { padding: 9px 10px; border-bottom: 1px solid var(--border-color, #f0f0f0); color: var(--text-secondary, #666); vertical-align: top; line-height: 1.7; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-table tr:last-child td { border-bottom: none; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-td-name { color: var(--text-primary, #333); font-weight: 500; white-space: nowrap; }
:where(body.pg-dashboard-warehouse-plugin) .wpx-td-method { white-space: nowrap; }

@media (max-width: 900px) {
    :where(body.pg-dashboard-warehouse-plugin) .whd-wrap { padding: 14px; }
    :where(body.pg-dashboard-warehouse-plugin) .wpx-grid { grid-template-columns: repeat(2, 1fr); }
    :where(body.pg-dashboard-warehouse-plugin) .wpx-table th:nth-child(3), :where(body.pg-dashboard-warehouse-plugin) .wpx-td-method { display: none; }
    :where(body.pg-dashboard-warehouse-plugin) .wpx-beta-item { flex-direction: column; align-items: flex-start; gap: 9px; }
}

/* ---------- 页内样式（原 dashboard/warehouse_stats.html 的 style 块） ---------- */

:where(body.pg-dashboard-warehouse-stats) .whd-wrap { padding: 20px 24px 40px; }
:where(body.pg-dashboard-warehouse-stats) .whd-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
:where(body.pg-dashboard-warehouse-stats) .whd-count { font-size: 13px; color: var(--text-secondary, #666); }
:where(body.pg-dashboard-warehouse-stats) .whd-count b { color: var(--text-primary, #333); font-size: 15px; }
:where(body.pg-dashboard-warehouse-stats) .whd-btn-ghost { display: inline-flex; align-items: center; padding: 7px 12px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; background: #fff; color: var(--text-primary, #333); font-size: 13px; cursor: pointer; text-decoration: none; }
:where(body.pg-dashboard-warehouse-stats) .whd-btn-ghost:hover { background: var(--bg-hover, #f5f5f5); }
:where(body.pg-dashboard-warehouse-stats) .whd-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
:where(body.pg-dashboard-warehouse-stats) .whd-stat { background: var(--bg-card, #fff); border: 1px solid var(--border-color, #e5e7eb); border-radius: 8px; padding: 13px 14px; display: flex; flex-direction: column; gap: 4px; }
:where(body.pg-dashboard-warehouse-stats) .whd-stat-num { font-size: 21px; font-weight: 600; color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-stats) .whd-stat-label { font-size: 12px; color: var(--text-secondary, #999); }
:where(body.pg-dashboard-warehouse-stats) .whd-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
:where(body.pg-dashboard-warehouse-stats) .whd-col-main, :where(body.pg-dashboard-warehouse-stats) .whd-col-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
:where(body.pg-dashboard-warehouse-stats) .whd-card { background: var(--bg-card, #fff); border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; padding: 16px 18px; }
:where(body.pg-dashboard-warehouse-stats) .whd-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
:where(body.pg-dashboard-warehouse-stats) .whd-card-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-stats) .whd-card-link { font-size: 12px; color: var(--theme-primary, #5a7dff); text-decoration: none; }
:where(body.pg-dashboard-warehouse-stats) .whd-chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 6px; }
:where(body.pg-dashboard-warehouse-stats) .whd-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; min-width: 0; }
:where(body.pg-dashboard-warehouse-stats) .whd-chart-bar { width: 100%; max-width: 26px; border-radius: 3px 3px 0 0; background: var(--theme-primary, #5a7dff); min-height: 2px; }
:where(body.pg-dashboard-warehouse-stats) .whd-chart-bar.zero { background: var(--bg-hover, #f0f1f3); min-height: 3px; }
:where(body.pg-dashboard-warehouse-stats) .whd-chart-val { font-size: 11px; color: var(--text-secondary, #666); }
:where(body.pg-dashboard-warehouse-stats) .whd-chart-date { font-size: 10px; color: var(--text-secondary, #999); white-space: nowrap; }
:where(body.pg-dashboard-warehouse-stats) .whd-bars { display: flex; flex-direction: column; gap: 9px; }
:where(body.pg-dashboard-warehouse-stats) .whd-bar-row { display: grid; grid-template-columns: 54px 1fr 42px; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary, #666); }
:where(body.pg-dashboard-warehouse-stats) .whd-bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(body.pg-dashboard-warehouse-stats) .whd-bar-track { height: 7px; border-radius: 4px; background: var(--bg-hover, #f2f3f5); overflow: hidden; }
:where(body.pg-dashboard-warehouse-stats) .whd-bar-fill { display: block; height: 100%; border-radius: 4px; background: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-warehouse-stats) .whd-bar-num { text-align: right; color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-stats) .whd-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-color, #f0f0f0); }
:where(body.pg-dashboard-warehouse-stats) .whd-item:last-child { border-bottom: none; }
:where(body.pg-dashboard-warehouse-stats) .whd-item-rank { flex: none; width: 20px; text-align: center; font-size: 12px; color: var(--text-secondary, #999); }
:where(body.pg-dashboard-warehouse-stats) .whd-item-main { min-width: 0; flex: 1; }
:where(body.pg-dashboard-warehouse-stats) .whd-item-title { display: block; font-size: 13px; color: var(--text-primary, #333); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(body.pg-dashboard-warehouse-stats) .whd-item-title:hover { color: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-warehouse-stats) .whd-item-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; font-size: 11px; color: var(--text-secondary, #999); }
:where(body.pg-dashboard-warehouse-stats) .whd-item-views { flex: none; font-size: 12px; color: var(--text-secondary, #666); }
:where(body.pg-dashboard-warehouse-stats) .whd-badge { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 11px; background: var(--bg-hover, #f2f3f5); color: var(--text-secondary, #666); }
:where(body.pg-dashboard-warehouse-stats) .whd-empty { padding: 22px 0; text-align: center; font-size: 13px; color: var(--text-secondary, #999); }
@media (max-width: 1100px) {
    :where(body.pg-dashboard-warehouse-stats) .whd-cols { grid-template-columns: 1fr; }
    :where(body.pg-dashboard-warehouse-stats) .whd-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    :where(body.pg-dashboard-warehouse-stats) .whd-wrap { padding: 14px; }
    :where(body.pg-dashboard-warehouse-stats) .whd-stats { grid-template-columns: repeat(2, 1fr); }
    :where(body.pg-dashboard-warehouse-stats) .whd-chart { height: 120px; }
    :where(body.pg-dashboard-warehouse-stats) .whd-chart-date { display: none; }
}

/* ---------- 页内样式（原 dashboard/warehouse_sync.html 的 style 块） ---------- */

:where(body.pg-dashboard-warehouse-sync) .whd-wrap { padding: 20px 24px 40px; }
:where(body.pg-dashboard-warehouse-sync) .whd-rule { border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; background: var(--bg-card, #fff); padding: 14px 18px; margin-bottom: 16px; }
:where(body.pg-dashboard-warehouse-sync) .whd-rule-head { font-size: 14px; font-weight: 600; color: var(--text-primary, #333); margin-bottom: 8px; }
:where(body.pg-dashboard-warehouse-sync) .whd-rule-list { margin: 0; padding-left: 20px; font-size: 13px; color: var(--text-secondary, #666); line-height: 1.9; }
:where(body.pg-dashboard-warehouse-sync) .whd-rule-list b { color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-sync) .whd-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
:where(body.pg-dashboard-warehouse-sync) .whd-count { font-size: 13px; color: var(--text-secondary, #666); }
:where(body.pg-dashboard-warehouse-sync) .whd-count b { color: var(--text-primary, #333); font-size: 15px; }
:where(body.pg-dashboard-warehouse-sync) .whd-list { display: flex; flex-direction: column; gap: 10px; }
:where(body.pg-dashboard-warehouse-sync) .whd-src { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; background: var(--bg-card, #fff); flex-wrap: wrap; }
:where(body.pg-dashboard-warehouse-sync) .whd-src-main { min-width: 0; flex: 1; }
:where(body.pg-dashboard-warehouse-sync) .whd-src-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
:where(body.pg-dashboard-warehouse-sync) .whd-src-url { font-size: 13px; color: var(--text-primary, #333); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
:where(body.pg-dashboard-warehouse-sync) .whd-src-url:hover { color: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-warehouse-sync) .whd-src-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary, #999); }
:where(body.pg-dashboard-warehouse-sync) .whd-src-meta b { color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-sync) .whd-src-result { color: var(--text-secondary, #666); }
:where(body.pg-dashboard-warehouse-sync) .whd-src-acts { display: flex; align-items: center; gap: 6px; flex: none; }
:where(body.pg-dashboard-warehouse-sync) .whd-badge { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 11px; background: var(--bg-hover, #f2f3f5); color: var(--text-secondary, #666); }
:where(body.pg-dashboard-warehouse-sync) .whd-badge-public { background: rgba(16,185,129,.1); color: #10b981; }
:where(body.pg-dashboard-warehouse-sync) .whd-badge-private { background: rgba(156,163,175,.15); color: #9ca3af; }
:where(body.pg-dashboard-warehouse-sync) .whd-btn-primary { display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px; border: none; border-radius: 6px; background: var(--theme-primary, #5a7dff); color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; }
:where(body.pg-dashboard-warehouse-sync) .whd-btn-primary:hover { opacity: .9; }
:where(body.pg-dashboard-warehouse-sync) .whd-btn-primary:disabled, :where(body.pg-dashboard-warehouse-sync) .whd-btn-sync:disabled { opacity: .55; cursor: not-allowed; }
:where(body.pg-dashboard-warehouse-sync) .whd-btn-ghost { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; background: #fff; color: var(--text-primary, #333); font-size: 13px; cursor: pointer; text-decoration: none; }
:where(body.pg-dashboard-warehouse-sync) .whd-btn-ghost:hover { background: var(--bg-hover, #f5f5f5); }
:where(body.pg-dashboard-warehouse-sync) .whd-btn-sync { padding: 7px 14px; border: 1px solid var(--theme-primary, #5a7dff); border-radius: 6px; background: #fff; color: var(--theme-primary, #5a7dff); font-size: 13px; cursor: pointer; }
:where(body.pg-dashboard-warehouse-sync) .whd-btn-sync:hover { background: rgba(90,125,255,.08); }
:where(body.pg-dashboard-warehouse-sync) .whd-act { width: 30px; height: 30px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; background: #fff; color: var(--text-secondary, #666); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
:where(body.pg-dashboard-warehouse-sync) .whd-act:hover { background: var(--bg-hover, #f5f5f5); color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-sync) .whd-act.danger:hover { color: #ef4444; }
:where(body.pg-dashboard-warehouse-sync) .whd-empty { padding: 34px 20px; text-align: center; font-size: 13px; color: var(--text-secondary, #999); border: 1px dashed var(--border-color, #e5e7eb); border-radius: 10px; background: var(--bg-card, #fff); }
:where(body.pg-dashboard-warehouse-sync) .whd-card { border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; background: var(--bg-card, #fff); padding: 16px 18px; }
:where(body.pg-dashboard-warehouse-sync) .whd-card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
:where(body.pg-dashboard-warehouse-sync) .whd-card-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-sync) .whd-card-link { font-size: 12px; color: var(--theme-primary, #5a7dff); text-decoration: none; }
:where(body.pg-dashboard-warehouse-sync) .whd-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-color, #f0f0f0); }
:where(body.pg-dashboard-warehouse-sync) .whd-item:last-child { border-bottom: none; }
:where(body.pg-dashboard-warehouse-sync) .whd-item-thumb { flex: none; width: 44px; height: 44px; border-radius: 6px; background: var(--bg-hover, #f5f5f5); border: 1px solid var(--border-color, #e5e7eb); object-fit: cover; }
:where(body.pg-dashboard-warehouse-sync) .whd-item-main { min-width: 0; flex: 1; }
:where(body.pg-dashboard-warehouse-sync) .whd-item-title { display: block; font-size: 13px; color: var(--text-primary, #333); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(body.pg-dashboard-warehouse-sync) .whd-item-title:hover { color: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-warehouse-sync) .whd-item-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: 11px; color: var(--text-secondary, #999); }
:where(body.pg-dashboard-warehouse-sync) .whd-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
:where(body.pg-dashboard-warehouse-sync) .whd-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
:where(body.pg-dashboard-warehouse-sync) .whd-modal-box { position: relative; width: 560px; max-width: 92vw; max-height: 90vh; display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
:where(body.pg-dashboard-warehouse-sync) .whd-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--border-color, #eee); }
:where(body.pg-dashboard-warehouse-sync) .whd-modal-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-sync) .whd-modal-close { border: none; background: none; font-size: 22px; line-height: 1; padding: 2px 8px; border-radius: 4px; color: var(--text-secondary, #999); cursor: pointer; }
:where(body.pg-dashboard-warehouse-sync) .whd-modal-close:hover { background: var(--bg-hover, #f5f5f5); color: var(--text-primary, #333); }
:where(body.pg-dashboard-warehouse-sync) .whd-modal-body { padding: 18px 20px; overflow: auto; }
:where(body.pg-dashboard-warehouse-sync) .whd-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border-color, #eee); }
:where(body.pg-dashboard-warehouse-sync) .whd-field { margin-bottom: 14px; }
:where(body.pg-dashboard-warehouse-sync) .whd-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-primary, #333); margin-bottom: 6px; }
:where(body.pg-dashboard-warehouse-sync) .whd-req { color: #ef4444; }
:where(body.pg-dashboard-warehouse-sync) .whd-input { width: 100%; padding: 8px 10px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 6px; font-size: 13px; background: #fff; color: var(--text-primary, #333); box-sizing: border-box; font-family: inherit; }
:where(body.pg-dashboard-warehouse-sync) .whd-input:focus { outline: none; border-color: var(--theme-primary, #5a7dff); }
:where(body.pg-dashboard-warehouse-sync) .whd-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
:where(body.pg-dashboard-warehouse-sync) .whd-hint { font-size: 12px; color: var(--text-secondary, #999); }
@media (max-width: 900px) {
    :where(body.pg-dashboard-warehouse-sync) .whd-wrap { padding: 14px; }
    :where(body.pg-dashboard-warehouse-sync) .whd-row2 { grid-template-columns: 1fr; }
    :where(body.pg-dashboard-warehouse-sync) .whd-src { flex-direction: column; align-items: flex-start; }
}

/* ---------- 页内样式（原 explore.html 的 style 块） ---------- */

/* 精选横幅 */
:where(body.pg-explore) .ce-featured { margin-bottom: 40px; }
:where(body.pg-explore) .ce-featured-title { font-size: 20px; font-weight: 700; color: #1a1a1a; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
:where(body.pg-explore) .ce-featured-title svg { color: var(--ww-primary); }
:where(body.pg-explore) .ce-featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
:where(body.pg-explore) .ce-featured-card { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; cursor: pointer; }
:where(body.pg-explore) .ce-featured-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
:where(body.pg-explore) .ce-featured-card:hover img { transform: scale(1.05); }
:where(body.pg-explore) .ce-featured-card-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); }
:where(body.pg-explore) .ce-featured-card-overlay h3 { font-size: 15px; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 类型标签栏 */
:where(body.pg-explore) .ce-type-bar { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
:where(body.pg-explore) .ce-type-btn { padding: 6px 16px; border-radius: 20px; font-size: 13px; border: 1px solid #e0e0e0; background: #fff; color: #555; cursor: pointer; text-decoration: none; transition: all 0.2s; }
:where(body.pg-explore) .ce-type-btn:hover { border-color: var(--ww-primary); color: var(--ww-primary); }
:where(body.pg-explore) .ce-type-btn.active { background: var(--ww-primary); color: #fff; border-color: var(--ww-primary); }

/* 内容列表 */
:where(body.pg-explore) .ce-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
:where(body.pg-explore) .ce-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #f0f0f0; transition: box-shadow 0.2s, transform 0.2s; cursor: pointer; text-decoration: none; color: inherit; display: block; }
:where(body.pg-explore) .ce-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
:where(body.pg-explore) .ce-card-cover { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #f5f5f5; }
:where(body.pg-explore) .ce-card-cover img { width: 100%; height: 100%; object-fit: cover; }
:where(body.pg-explore) .ce-card-cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #ccc; }
:where(body.pg-explore) .ce-card-cover-placeholder svg { width: 40px; height: 40px; }
:where(body.pg-explore) .ce-card-body { padding: 14px 16px; }
:where(body.pg-explore) .ce-card-type { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; background: var(--ww-primary); color: #fff; margin-bottom: 8px; }
:where(body.pg-explore) .ce-card-title { font-size: 15px; font-weight: 600; color: #1a1a1a; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:where(body.pg-explore) .ce-card-desc { font-size: 13px; color: #888; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
:where(body.pg-explore) .ce-card-meta { display: flex; gap: 12px; font-size: 12px; color: #aaa; }
:where(body.pg-explore) .ce-card-meta span { display: flex; align-items: center; gap: 3px; }

/* 热门侧栏 */
:where(body.pg-explore) .ce-layout { display: flex; gap: 32px; }
:where(body.pg-explore) .ce-main { flex: 1; min-width: 0; }
:where(body.pg-explore) .ce-side { width: 260px; flex-shrink: 0; }
:where(body.pg-explore) .ce-hot { background: #f9f9f9; border-radius: 12px; padding: 20px; position: sticky; top: 100px; }
:where(body.pg-explore) .ce-hot h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: #1a1a1a; display: flex; align-items: center; gap: 6px; }
:where(body.pg-explore) .ce-hot h3 svg { color: #ff6b35; }
:where(body.pg-explore) .ce-hot-list { list-style: none; padding: 0; margin: 0; }
:where(body.pg-explore) .ce-hot-item { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px solid #eee; }
:where(body.pg-explore) .ce-hot-item:last-child { border-bottom: none; }
:where(body.pg-explore) .ce-hot-item a { flex: 1; min-width: 0; font-size: 13px; color: #333; text-decoration: none; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:where(body.pg-explore) .ce-hot-item a:hover { color: var(--ww-primary); }
:where(body.pg-explore) .ce-hot-item-rank { flex-shrink: 0; width: 18px; height: 18px; border-radius: 4px; background: #e0e0e0; color: #fff; font-size: 11px; text-align: center; line-height: 18px; }
:where(body.pg-explore) .ce-hot-item:nth-child(1) .ce-hot-item-rank { background: #ff4757; }
:where(body.pg-explore) .ce-hot-item:nth-child(2) .ce-hot-item-rank { background: #ff6b35; }
:where(body.pg-explore) .ce-hot-item:nth-child(3) .ce-hot-item-rank { background: #ffa502; }

/* 空状态 */
:where(body.pg-explore) .ce-empty { text-align: center; padding: 60px 20px; color: #999; }
:where(body.pg-explore) .ce-empty svg { width: 64px; height: 64px; color: #ddd; margin-bottom: 16px; }
:where(body.pg-explore) .ce-empty p { font-size: 15px; }

/* 分页 */
:where(body.pg-explore) .ce-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
:where(body.pg-explore) .ce-pagination a, :where(body.pg-explore) .ce-pagination span { padding: 6px 14px; border-radius: 6px; font-size: 13px; border: 1px solid #e0e0e0; color: #555; text-decoration: none; }
:where(body.pg-explore) .ce-pagination a:hover { border-color: var(--ww-primary); color: var(--ww-primary); }
:where(body.pg-explore) .ce-pagination .current { background: var(--ww-primary); color: #fff; border-color: var(--ww-primary); }
:where(body.pg-explore) .ce-pagination .dots { border: none; cursor: default; }

@media (max-width: 1024px) {
    :where(body.pg-explore) .ce-featured-grid { grid-template-columns: repeat(2, 1fr); }
    :where(body.pg-explore) .ce-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :where(body.pg-explore) .ce-featured-grid { grid-template-columns: 1fr; }
    :where(body.pg-explore) .ce-layout { flex-direction: column; }
    :where(body.pg-explore) .ce-side { width: 100%; }
    :where(body.pg-explore) .ce-hot { position: static; }
    :where(body.pg-explore) .ce-list { grid-template-columns: 1fr; }
}

/* ---------- 页内样式（原 features.html 的 style 块） ---------- */

/* 功能介绍页：这一页专用样式，不影响其它静态页 */
:where(body.pg-features) .ww-fx-page { padding-bottom: 40px; }
:where(body.pg-features) .ww-fx-wrap { max-width: 1120px; margin-top: 104px; }

:where(body.pg-features) .ww-fx-eyebrow {
    display: inline-block; padding: 4px 10px; margin-bottom: 14px;
    border: 1px solid var(--ww-border); border-radius: 20px;
    background: var(--ww-card);
    font-size: 12.5px; color: var(--ww-text-secondary);
}
:where(body.pg-features) .ww-fx-more { color: var(--ww-primary); font-size: 14px; text-decoration: none; }
:where(body.pg-features) .ww-fx-more:hover { text-decoration: underline; }

/* ── 顶部：文字 + 窗口示意 ─────────────────── */
:where(body.pg-features) .ww-fx-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; margin-bottom: 36px; }
:where(body.pg-features) .ww-fx-hero h1 { font-size: 34px; font-weight: 700; color: var(--ww-text); margin: 0 0 14px; line-height: 1.35; }
:where(body.pg-features) .ww-fx-lead { font-size: 15.5px; color: var(--ww-text-secondary); line-height: 1.8; margin: 0; max-width: 480px; }
:where(body.pg-features) .ww-fx-hero-btns { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
:where(body.pg-features) .ww-fx-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
:where(body.pg-features) .ww-fx-stat {
    display: flex; align-items: baseline; gap: 6px;
    padding: 8px 14px; background: var(--ww-card);
    border: 1px solid var(--ww-border); border-radius: 10px;
}
:where(body.pg-features) .ww-fx-stat b { font-size: 18px; font-weight: 700; color: var(--ww-primary); }
:where(body.pg-features) .ww-fx-stat span { font-size: 12.5px; color: var(--ww-text-secondary); }

:where(body.pg-features) .ww-fx-win {
    background: var(--ww-card); border: 1px solid var(--ww-border);
    border-radius: var(--ww-radius); box-shadow: var(--ww-shadow); overflow: hidden;
}
:where(body.pg-features) .ww-fx-win-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--ww-border); background: var(--ww-bg); }
:where(body.pg-features) .ww-fx-win-bar i { width: 8px; height: 8px; border-radius: 50%; background: #e2ded6; }
:where(body.pg-features) .ww-fx-win-addr { margin-left: 8px; font-size: 12px; color: var(--ww-text-secondary); }
:where(body.pg-features) .ww-fx-win-body { position: relative; padding: 18px 18px 60px; min-height: 268px; }
:where(body.pg-features) .ww-fx-fake { display: flex; flex-direction: column; gap: 10px; }
:where(body.pg-features) .ww-fx-ln { display: block; height: 10px; border-radius: 5px; background: #efece6; }
:where(body.pg-features) .ww-fx-ln.w72 { width: 72%; } :where(body.pg-features) .ww-fx-ln.w64 { width: 64%; }
:where(body.pg-features) .ww-fx-ln.w54 { width: 54%; } :where(body.pg-features) .ww-fx-ln.w38 { width: 38%; }
:where(body.pg-features) .ww-fx-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0; }
:where(body.pg-features) .ww-fx-tiles i { height: 40px; border-radius: 8px; background: #f4f1ec; border: 1px solid var(--ww-border); }
:where(body.pg-features) .ww-fx-fpanel {
    position: absolute; right: 16px; bottom: 16px; width: 208px;
    background: var(--ww-card); border: 1px solid var(--ww-border);
    border-radius: 10px; box-shadow: 0 10px 26px rgba(20, 25, 35, .12); padding: 10px 12px 12px;
}
:where(body.pg-features) .ww-fx-fpanel-hd { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ww-text); margin-bottom: 8px; }
:where(body.pg-features) .ww-fx-fpanel-hd span { color: var(--ww-text-secondary); font-size: 14px; line-height: 1; }
:where(body.pg-features) .ww-fx-fpanel-seg { display: flex; gap: 4px; margin-bottom: 10px; }
:where(body.pg-features) .ww-fx-fpanel-seg em {
    flex: 1; text-align: center; font-style: normal; font-size: 10.5px;
    padding: 4px 0; border-radius: 5px; background: var(--ww-bg); color: var(--ww-text-secondary);
}
:where(body.pg-features) .ww-fx-fpanel-seg em.on { background: var(--ww-dark); color: #fff; }
:where(body.pg-features) .ww-fx-fpanel-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 11px; color: var(--ww-text-secondary); }
:where(body.pg-features) .ww-fx-fpanel-row span { flex: none; width: 30px; }
:where(body.pg-features) .ww-fx-fpanel-row i { flex: 1; height: 8px; border-radius: 4px; background: #efece6; }
:where(body.pg-features) .ww-fx-fpanel-row i.sm { flex: none; width: 56px; }
:where(body.pg-features) .ww-fx-fpanel-btn {
    margin-top: 2px; padding: 6px 0; border-radius: 6px; text-align: center;
    background: var(--ww-primary); color: #fff; font-size: 11.5px;
}
:where(body.pg-features) .ww-fx-fball {
    position: absolute; right: 22px; bottom: 214px; width: 34px; height: 34px;
    border-radius: 50%; background: var(--ww-dark); border: 1px solid var(--ww-border);
    box-shadow: 0 4px 12px rgba(20, 25, 35, .18);
}
:where(body.pg-features) .ww-fx-fbadge {
    position: absolute; top: -7px; right: -7px; min-width: 16px; height: 16px; padding: 0 3px;
    border: 2px solid #fff; border-radius: 9px; background: #ef4444; color: #fff;
    font-size: 9.5px; font-weight: 700; line-height: 12px; text-align: center;
}
:where(body.pg-features) .ww-fx-art-cap { margin: 10px 0 0; font-size: 12.5px; color: var(--ww-text-secondary); text-align: center; }

/* ── 三步流程 ─────────────────── */
:where(body.pg-features) .ww-fx-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 12px; margin-bottom: 34px; }
:where(body.pg-features) .ww-fx-flow-item {
    display: block; text-align: left; padding: 18px 20px; cursor: pointer;
    background: var(--ww-card); border: 1px solid var(--ww-border); border-radius: var(--ww-radius);
    font-family: inherit; transition: border-color var(--ww-transition), box-shadow var(--ww-transition);
}
:where(body.pg-features) .ww-fx-flow-item:hover { border-color: var(--ww-primary); box-shadow: var(--ww-shadow); }
:where(body.pg-features) .ww-fx-flow-no {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; margin-bottom: 10px; border-radius: 50%;
    background: var(--ww-dark); color: #fff; font-size: 12px; font-weight: 600;
}
:where(body.pg-features) .ww-fx-flow-item b { display: block; font-size: 16px; font-weight: 600; color: var(--ww-text); margin-bottom: 6px; }
:where(body.pg-features) .ww-fx-flow-tip { display: block; font-size: 13px; color: var(--ww-text-secondary); line-height: 1.65; }
:where(body.pg-features) .ww-fx-flow-arrow { align-self: center; width: 16px; height: 2px; background: var(--ww-border); position: relative; }
:where(body.pg-features) .ww-fx-flow-arrow::after {
    content: ""; position: absolute; right: -1px; top: -3px;
    border-left: 6px solid var(--ww-border);
    border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}

/* ── tab ─────────────────── */
:where(body.pg-features) .ww-fx-tabs {
    position: sticky; top: 62px; z-index: 20;
    display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 0;
    background: var(--ww-bg); border-bottom: 1px solid var(--ww-border); margin-bottom: 26px;
}
:where(body.pg-features) .ww-fx-tab {
    padding: 7px 16px; border: 1px solid var(--ww-border); border-radius: 20px;
    background: var(--ww-card); color: var(--ww-text-secondary);
    font-size: 14px; font-family: inherit; cursor: pointer;
    transition: background var(--ww-transition), color var(--ww-transition), border-color var(--ww-transition);
}
:where(body.pg-features) .ww-fx-tab:hover { color: var(--ww-text); border-color: var(--ww-text-secondary); }
:where(body.pg-features) .ww-fx-tab.on { background: var(--ww-dark); border-color: var(--ww-dark); color: #fff; }
/* 脚本没跑就整篇平铺，跑了才按 tab 收起 */
:where(body.pg-features) .ww-fx-body.has-tabs > section { display: none; }
:where(body.pg-features) .ww-fx-body.has-tabs > section.on { display: block; }
:where(body.pg-features) .ww-fx-body > section { margin-bottom: 44px; }
:where(body.pg-features) .ww-fx-body h2 { font-size: 23px; font-weight: 600; color: var(--ww-text); margin: 0 0 10px; }
:where(body.pg-features) .ww-fx-seclead { font-size: 15px; color: var(--ww-text-secondary); line-height: 1.75; margin: 0 0 4px; max-width: 760px; }

/* ── 卡片 ─────────────────── */
:where(body.pg-features) .ww-fx-cards { display: grid; gap: 16px; margin: 20px 0 4px; }
:where(body.pg-features) .ww-fx-cards.cols3 { grid-template-columns: repeat(3, 1fr); }
:where(body.pg-features) .ww-fx-cards.cols2 { grid-template-columns: repeat(2, 1fr); }
:where(body.pg-features) .ww-fx-cards.cols1 { grid-template-columns: 1fr; }
:where(body.pg-features) .ww-fx-card {
    padding: 20px; background: var(--ww-card);
    border: 1px solid var(--ww-border); border-radius: var(--ww-radius);
}
:where(body.pg-features) .ww-fx-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
:where(body.pg-features) .ww-fx-card-head h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--ww-text); }
:where(body.pg-features) .ww-fx-icon {
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 34px; height: 34px; border-radius: 9px;
    background: #f6efe9; color: var(--ww-primary);
}
:where(body.pg-features) .ww-fx-points { list-style: none; margin: 0; padding: 0; }
:where(body.pg-features) .ww-fx-points li {
    position: relative; padding-left: 15px; margin-bottom: 8px;
    font-size: 13px; color: var(--ww-text-secondary); line-height: 1.65;
}
:where(body.pg-features) .ww-fx-points li:last-child { margin-bottom: 0; }
:where(body.pg-features) .ww-fx-points li::before {
    content: ""; position: absolute; left: 0; top: 8px;
    width: 5px; height: 5px; border-radius: 50%; background: var(--ww-warm);
}
:where(body.pg-features) .ww-fx-note {
    margin-top: 16px; padding: 14px 18px;
    background: var(--ww-card); border: 1px solid var(--ww-border); border-radius: var(--ww-radius);
}
:where(body.pg-features) .ww-fx-note p { margin: 0; font-size: 14px; color: var(--ww-text-secondary); line-height: 1.75; }

/* ── 平台 / 入口 chips ─────────────────── */
:where(body.pg-features) .ww-fx-chipbox { display: flex; align-items: flex-start; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
:where(body.pg-features) .ww-fx-chipbox-lab { flex: none; padding-top: 5px; font-size: 13px; color: var(--ww-text-secondary); }
:where(body.pg-features) .ww-fx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
:where(body.pg-features) .ww-fx-chip {
    padding: 5px 12px; border-radius: 20px; font-size: 13px;
    background: var(--ww-card); border: 1px solid var(--ww-border); color: var(--ww-text-secondary);
    text-decoration: none; transition: border-color var(--ww-transition), color var(--ww-transition);
}
:where(body.pg-features) .ww-fx-chip.link:hover, :where(body.pg-features) .ww-fx-chip.link { border-color: var(--ww-primary); color: var(--ww-primary); }

/* ── 导航示意 ─────────────────── */
:where(body.pg-features) .ww-fx-nav { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; align-items: start; }
:where(body.pg-features) .ww-fx-navmain {
    padding: 24px 20px; background: var(--ww-card);
    border: 1px solid var(--ww-border); border-radius: var(--ww-radius);
}
:where(body.pg-features) .ww-fx-clock { text-align: center; margin-bottom: 20px; }
:where(body.pg-features) .ww-fx-clock b { display: block; font-size: 34px; font-weight: 600; letter-spacing: 1px; color: var(--ww-dark); }
:where(body.pg-features) .ww-fx-clock span { font-size: 12.5px; color: var(--ww-text-secondary); }
:where(body.pg-features) .ww-fx-navtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
:where(body.pg-features) .ww-fx-navtile { display: flex; flex-direction: column; align-items: center; gap: 6px; }
:where(body.pg-features) .ww-fx-navtile i {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px; font-style: normal;
    background: var(--ww-bg); border: 1px solid var(--ww-border);
    color: var(--ww-dark); font-size: 14px; font-weight: 600;
}
:where(body.pg-features) .ww-fx-navtile em { font-style: normal; font-size: 12px; color: var(--ww-text-secondary); }

/* ── 表格 ─────────────────── */
:where(body.pg-features) .ww-fx-table { margin-top: 18px; background: var(--ww-card); border: 1px solid var(--ww-border); border-radius: var(--ww-radius); overflow: hidden; }
:where(body.pg-features) .ww-fx-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
:where(body.pg-features) .ww-fx-table th, :where(body.pg-features) .ww-fx-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--ww-border); }
:where(body.pg-features) .ww-fx-table th { background: var(--ww-bg); color: var(--ww-text); font-weight: 600; width: 108px; }
:where(body.pg-features) .ww-fx-table td { color: var(--ww-text-secondary); }
:where(body.pg-features) .ww-fx-table tr:last-child th, :where(body.pg-features) .ww-fx-table tr:last-child td { border-bottom: 0; }

/* ── 内容预览 ─────────────────── */
:where(body.pg-features) .ww-fx-shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
:where(body.pg-features) .ww-fx-shot {
    display: block; overflow: hidden; text-decoration: none;
    background: var(--ww-card); border: 1px solid var(--ww-border); border-radius: var(--ww-radius);
    transition: transform var(--ww-transition), box-shadow var(--ww-transition);
}
:where(body.pg-features) .ww-fx-shot:hover { transform: translateY(-2px); box-shadow: var(--ww-shadow); }
:where(body.pg-features) .ww-fx-shot-img { position: relative; height: 126px; background: var(--ww-bg); }
:where(body.pg-features) .ww-fx-shot-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
:where(body.pg-features) .ww-fx-shot-type {
    position: absolute; right: 8px; bottom: 8px; padding: 2px 8px;
    border-radius: 10px; background: rgba(45, 52, 54, .72); color: #fff; font-size: 11px;
}
:where(body.pg-features) .ww-fx-shot-title {
    display: block; padding: 11px 13px; font-size: 13.5px; color: var(--ww-text); line-height: 1.5;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── FAQ ─────────────────── */
:where(body.pg-features) .ww-fx-faq { margin-top: 12px; background: var(--ww-card); border: 1px solid var(--ww-border); border-radius: var(--ww-radius); padding: 0 20px; }
:where(body.pg-features) .ww-fx-faq-item { border-bottom: 1px solid var(--ww-border); }
:where(body.pg-features) .ww-fx-faq-item:last-child { border-bottom: 0; }
:where(body.pg-features) .ww-fx-faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 17px 0; background: none; border: 0; cursor: pointer;
    font-size: 15px; font-weight: 600; color: var(--ww-text); text-align: left; font-family: inherit;
    transition: color var(--ww-transition);
}
:where(body.pg-features) .ww-fx-faq-q:hover { color: var(--ww-primary); }
:where(body.pg-features) .ww-fx-faq-ico { position: relative; flex: none; width: 14px; height: 14px; }
:where(body.pg-features) .ww-fx-faq-ico::before, :where(body.pg-features) .ww-fx-faq-ico::after {
    content: ""; position: absolute; background: var(--ww-text-secondary); border-radius: 1px;
    transition: transform var(--ww-transition), background var(--ww-transition);
}
:where(body.pg-features) .ww-fx-faq-ico::before { left: 0; top: 6px; width: 14px; height: 2px; }
:where(body.pg-features) .ww-fx-faq-ico::after { left: 6px; top: 0; width: 2px; height: 14px; }
:where(body.pg-features) .ww-fx-faq-item.open .ww-fx-faq-ico::after { transform: rotate(90deg); }
:where(body.pg-features) .ww-fx-faq-item.open .ww-fx-faq-ico::before, :where(body.pg-features) .ww-fx-faq-item.open .ww-fx-faq-ico::after { background: var(--ww-primary); }
:where(body.pg-features) .ww-fx-faq-a { max-height: var(--faq-h, 0px); overflow: hidden; transition: max-height .3s ease; }
:where(body.pg-features) .ww-fx-faq-a p { margin: 0; padding-bottom: 18px; font-size: 14px; color: var(--ww-text-secondary); line-height: 1.8; }

:where(body.pg-features) .ww-fx-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 0; }

@media (max-width: 1080px) {
    :where(body.pg-features) .ww-fx-hero { grid-template-columns: 1fr; }
    :where(body.pg-features) .ww-fx-lead { max-width: none; }
    :where(body.pg-features) .ww-fx-cards.cols3 { grid-template-columns: 1fr; }
    :where(body.pg-features) .ww-fx-nav { grid-template-columns: 1fr; }
    :where(body.pg-features) .ww-fx-shots { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
    :where(body.pg-features) .ww-fx-wrap { margin-top: 88px; }
    :where(body.pg-features) .ww-fx-hero h1 { font-size: 26px; }
    :where(body.pg-features) .ww-fx-flow { grid-template-columns: 1fr; }
    :where(body.pg-features) .ww-fx-flow-arrow { display: none; }
    :where(body.pg-features) .ww-fx-cards.cols2 { grid-template-columns: 1fr; }
    :where(body.pg-features) .ww-fx-shots { grid-template-columns: repeat(2, 1fr); }
    :where(body.pg-features) .ww-fx-tabs { top: 56px; }
    :where(body.pg-features) .ww-fx-stat { flex: 1 1 45%; justify-content: center; }
    :where(body.pg-features) .ww-fx-cta { flex-direction: column; }
    :where(body.pg-features) .ww-fx-table th, :where(body.pg-features) .ww-fx-table td { padding: 10px 12px; font-size: 13px; }
}
@media (max-width: 480px) {
    :where(body.pg-features) .ww-fx-shots { grid-template-columns: 1fr; }
}

/* ---------- 页内样式（原 nav_intro.html 的 style 块） ---------- */

:where(body.pg-nav-intro) .ww-nav-cta-top { display: flex; justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
/* 只有 JS 生效时才按 tab 收起，脚本没跑就整篇平铺 */
:where(body.pg-nav-intro) .ww-docs-content.nv-tabs > section { display: none; }
:where(body.pg-nav-intro) .ww-docs-content.nv-tabs > section.on { display: block; }

/* ---------- 页内样式（原 nav_page.html 的 style 块） ---------- */

    :where(html.island-nav),:where(html.island-nav) *{margin:0;padding:0;box-sizing:border-box;}
    :where(html.island-nav) body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;min-height:100vh;overflow-x:hidden;background:#1e1e2e;color:#fff;}
    :where(html.island-nav) .nav-page{position:relative;min-height:100vh;display:flex;flex-direction:column;justify-content:center;}
    :where(html.island-nav) .nav-bg{position:fixed;top:0;left:0;width:100%;height:100%;background-size:cover;background-position:center;z-index:0;}
    :where(html.island-nav) .nav-overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;background:rgba(0,0,0,.5);}
    :where(html.island-nav) .nav-content{position:relative;z-index:2;padding:20px 24px 40px;max-width:1400px;width:100%;margin:0 auto;}

    :where(html.island-nav) .nav-settings-btn{position:fixed;top:16px;right:16px;z-index:50;width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);color:rgba(255,255,255,.5);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;}
    :where(html.island-nav) .nav-settings-btn:hover{background:rgba(255,255,255,.1);color:#fff;}
    :where(html.island-nav) .nav-settings-btn svg{width:18px;height:18px;}
    :where(html.island-nav) .nav-login-btn{position:fixed;top:16px;right:16px;z-index:50;height:36px;padding:0 18px;border-radius:18px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:rgba(255,255,255,.78);cursor:pointer;display:flex;align-items:center;font-size:13px;text-decoration:none;transition:all .2s;}
    :where(html.island-nav) .nav-login-btn:hover{background:rgba(255,255,255,.18);color:#fff;}

    :where(html.island-nav) .nav-logo{display:flex;align-items:center;justify-content:center;margin-bottom:20px;}
    :where(html.island-nav) .nav-logo img{height:40px;max-width:200px;object-fit:contain;filter:brightness(0) invert(1);opacity:.7;transition:opacity .2s;}
    :where(html.island-nav) .nav-logo img:hover{opacity:1;}
    :where(html.island-nav) .nav-logo-bottom{margin-top:30px;margin-bottom:0;}

    :where(html.island-nav) .nav-time{text-align:center;padding:20px 0 30px;color:#fff;cursor:default;user-select:none;-webkit-user-select:none;}
    :where(html.island-nav) .nav-time-hour{font-size:88px;font-weight:inherit;letter-spacing:6px;line-height:1;color:#fff;cursor:default;}
    :where(html.island-nav) .nav-time-date{font-size:15px;margin-top:12px;color:rgba(255,255,255,.5);letter-spacing:1px;font-weight:inherit;cursor:default;}

    :where(html.island-nav) .nav-search{max-width:580px;margin:0 auto 36px;position:relative;}
    :where(html.island-nav) .nav-search-bar{display:flex;align-items:center;background:rgba(30,30,40,.8);border:1px solid rgba(255,255,255,.08);border-radius:28px;padding:0 6px 0 0;transition:all .2s;}
    :where(html.island-nav) .nav-search-bar:focus-within{background:rgba(30,30,40,.95);border-color:rgba(255,255,255,.15);}
    :where(html.island-nav) .nav-search-engine{width:44px;height:44px;border:none;background:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.5);flex-shrink:0;border-radius:50%;transition:all .15s;}
    :where(html.island-nav) .nav-search-engine:hover{color:#fff;background:rgba(255,255,255,.06);}
    :where(html.island-nav) .nav-search-engine svg{width:20px;height:20px;}
    :where(html.island-nav) .nav-search-input{flex:1;background:none;border:none;outline:none;color:#fff;font-size:15px;padding:12px 10px;min-width:0;}
    :where(html.island-nav) .nav-search-input::placeholder{color:rgba(255,255,255,.35);}
    :where(html.island-nav) .nav-search-submit{width:38px;height:38px;border:none;background:rgba(255,255,255,.08);cursor:pointer;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.5);border-radius:50%;transition:all .15s;flex-shrink:0;}
    :where(html.island-nav) .nav-search-submit:hover{background:rgba(255,255,255,.15);color:#fff;}
    :where(html.island-nav) .nav-search-submit svg{width:18px;height:18px;}

    :where(html.island-nav) .nav-search-engines{position:absolute;top:52px;left:0;background:rgba(25,25,35,.98);border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:8px 0;display:none;z-index:50;min-width:180px;box-shadow:0 10px 40px rgba(0,0,0,.6);}
    :where(html.island-nav) .nav-search-engines.show{display:block;}
    :where(html.island-nav) .nav-search-engine-opt{display:flex;align-items:center;gap:12px;padding:10px 18px;cursor:pointer;color:rgba(255,255,255,.65);font-size:14px;transition:background .1s;}
    :where(html.island-nav) .nav-search-engine-opt:hover{background:rgba(255,255,255,.06);}
    :where(html.island-nav) .nav-search-engine-opt.active{color:#fff;background:rgba(255,255,255,.08);}
    :where(html.island-nav) .nav-search-engine-opt svg{width:18px;height:18px;flex-shrink:0;opacity:.6;}

    :where(html.island-nav) .nav-search-history{position:absolute;top:52px;left:0;right:0;background:rgba(25,25,35,.98);border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:8px 0;display:none;z-index:49;max-height:280px;overflow-y:auto;box-shadow:0 10px 40px rgba(0,0,0,.6);}
    :where(html.island-nav) .nav-search-history.show{display:block;}
    :where(html.island-nav) .nav-search-history-header{display:flex;justify-content:space-between;align-items:center;padding:8px 18px 6px;color:rgba(255,255,255,.35);font-size:12px;}
    :where(html.island-nav) .nav-search-history-clear{cursor:pointer;color:rgba(255,255,255,.35);font-size:12px;border:none;background:none;padding:0;}
    :where(html.island-nav) .nav-search-history-clear:hover{color:rgba(255,255,255,.6);}
    :where(html.island-nav) .nav-search-history-item{display:flex;align-items:center;gap:12px;padding:9px 18px;cursor:pointer;color:rgba(255,255,255,.55);font-size:14px;transition:background .1s;}
    :where(html.island-nav) .nav-search-history-item:hover{background:rgba(255,255,255,.05);color:#fff;}
    :where(html.island-nav) .nav-search-history-item svg{width:16px;height:16px;flex-shrink:0;opacity:.4;}
    :where(html.island-nav) .nav-search-engine-name{font-size:12px;color:rgba(255,255,255,.25);margin-left:auto;padding-left:10px;}

    :where(html.island-nav) .nav-tabs{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-bottom:16px;}
    :where(html.island-nav) .nav-tab{padding:6px 18px;border-radius:18px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);color:rgba(255,255,255,.55);font-size:13px;cursor:pointer;transition:all .2s;}
    :where(html.island-nav) .nav-tab:hover{background:rgba(255,255,255,.08);color:rgba(255,255,255,.75);}
    :where(html.island-nav) .nav-tab.active{background:rgba(255,255,255,.85);color:#2d3436;border-color:transparent;font-weight:500;}

    :where(html.island-nav) .nav-icon{display:grid;gap:20px;}
    :where(html.island-nav) .nav-item{display:flex;flex-direction:column;align-items:center;padding:16px 10px 12px;border-radius:14px;cursor:pointer;transition:all .2s;text-decoration:none;color:#fff;background:transparent;border:none;}
    :where(html.island-nav) .nav-item:hover{background:rgba(255,255,255,.05);transform:translateY(-3px);}
    :where(html.island-nav) .nav-item-icon{width:60px;height:60px;margin-bottom:10px;object-fit:contain;background:#fff;padding:6px;border-radius:12px;}
    :where(html.island-nav) .nav-item-icon-fallback{width:60px;height:60px;margin-bottom:10px;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:600;color:#fff;border-radius:12px;}
    :where(html.island-nav) .nav-item-name{font-size:13px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:60px;color:rgba(255,255,255,.7);}
    :where(html.island-nav) .nav-item-url{font-size:11px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:60px;margin-top:3px;color:rgba(255,255,255,.25);}
    :where(html.island-nav) .nav-item-desc{font-size:11px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:60px;margin-top:3px;color:rgba(255,255,255,.25);}

    :where(html.island-nav) .nav-list{display:flex;flex-direction:column;gap:6px;}
    :where(html.island-nav) .nav-list .nav-item{flex-direction:row;padding:12px 16px;border-radius:10px;gap:14px;}
    :where(html.island-nav) .nav-list .nav-item:hover{transform:none;background:rgba(255,255,255,.05);}
    :where(html.island-nav) .nav-list .nav-item-icon,:where(html.island-nav) .nav-list .nav-item-icon-fallback{width:32px;height:32px;margin-bottom:0;flex-shrink:0;border-radius:7px;padding:4px;}
    :where(html.island-nav) .nav-list .nav-item-name{text-align:left;font-size:14px;flex:1;max-width:none;color:rgba(255,255,255,.75);}
    :where(html.island-nav) .nav-list .nav-item-url{font-size:12px;color:rgba(255,255,255,.3);max-width:320px;text-align:left;margin-top:0;}
    :where(html.island-nav) .nav-list .nav-item-desc{display:none;}

    :where(html.island-nav) .nav-cat-group{margin-bottom:20px;}
    :where(html.island-nav) .nav-cat-header{display:flex;align-items:center;gap:8px;margin-bottom:12px;padding:4px 0;cursor:pointer;user-select:none;}
    :where(html.island-nav) .nav-cat-title{color:rgba(255,255,255,.4);font-size:13px;font-weight:400;letter-spacing:1px;}
    :where(html.island-nav) .nav-cat-count{color:rgba(255,255,255,.2);font-size:12px;}
    :where(html.island-nav) .nav-cat-arrow{color:rgba(255,255,255,.25);font-size:11px;transition:transform .2s;}
    :where(html.island-nav) .nav-cat-arrow.collapsed{transform:rotate(-90deg);}
    :where(html.island-nav) .nav-cat-body{overflow:hidden;transition:max-height .25s ease;}
    :where(html.island-nav) .nav-cat-body.collapsed{max-height:0 !important;}
    :where(html.island-nav) .nav-empty{text-align:center;color:rgba(255,255,255,.3);padding:80px 0;font-size:15px;}

    :where(html.island-nav) .nav-modal-mask{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.6);z-index:100;display:none;align-items:center;justify-content:center;}
    :where(html.island-nav) .nav-modal-mask.show{display:flex;}
    :where(html.island-nav) .nav-modal{background:#fff;border-radius:16px;width:420px;max-width:92vw;max-height:85vh;overflow-y:auto;box-shadow:0 16px 50px rgba(0,0,0,.5);}
    :where(html.island-nav) .nav-modal-header{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid #f0f0f0;}
    :where(html.island-nav) .nav-modal-header h3{font-size:16px;font-weight:600;color:#333;}
    :where(html.island-nav) .nav-modal-close{width:30px;height:30px;border:none;background:none;cursor:pointer;font-size:20px;color:#999;display:flex;align-items:center;justify-content:center;border-radius:5px;}
    :where(html.island-nav) .nav-modal-close:hover{background:#f5f5f5;color:#333;}
    :where(html.island-nav) .nav-modal-body{padding:20px 22px;}
    :where(html.island-nav) .nav-modal-group{margin-bottom:18px;}
    :where(html.island-nav) .nav-modal-group:last-child{margin-bottom:0;}
    :where(html.island-nav) .nav-modal-label{font-size:14px;color:#666;margin-bottom:10px;display:block;}
    :where(html.island-nav) .nav-modal-btns{display:flex;gap:8px;flex-wrap:wrap;}
    :where(html.island-nav) .nav-modal-btn{padding:7px 18px;border-radius:7px;border:1px solid #e0e0e0;background:#fff;cursor:pointer;font-size:14px;color:#555;transition:all .15s;}
    :where(html.island-nav) .nav-modal-btn:hover{border-color:#aaa;}
    :where(html.island-nav) .nav-modal-btn.active{border-color:#e07a5f;background:#fdf5f2;color:#e07a5f;}
    :where(html.island-nav) .nav-modal-toggle{display:flex;align-items:center;gap:12px;cursor:pointer;font-size:14px;color:#555;}
    :where(html.island-nav) .nav-modal-toggle input{width:17px;height:17px;accent-color:#e07a5f;}
    :where(html.island-nav) .nav-modal-range{width:100%;accent-color:#e07a5f;}
    :where(html.island-nav) .nav-modal-select{background:#f8f8f8;border:1px solid #e0e0e0;color:#333;font-size:14px;padding:7px 12px;border-radius:7px;outline:none;width:100%;}
    :where(html.island-nav) .nav-modal-footer{padding:14px 22px;border-top:1px solid #f0f0f0;display:flex;justify-content:flex-end;gap:10px;}
    :where(html.island-nav) .nav-modal-save{padding:9px 26px;border-radius:9px;border:none;background:#e07a5f;color:#fff;font-size:14px;cursor:pointer;transition:background .15s;}
    :where(html.island-nav) .nav-modal-save:hover{background:#c4624a;}

    :where(html.island-nav) .nav-export-btns{display:flex;gap:10px;flex-wrap:wrap;}
    :where(html.island-nav) .nav-export-btn{padding:8px 18px;border-radius:7px;border:1px solid #e0e0e0;background:#fff;cursor:pointer;font-size:13px;color:#555;transition:all .15s;display:flex;align-items:center;gap:8px;}
    :where(html.island-nav) .nav-export-btn:hover{border-color:#e07a5f;color:#e07a5f;}
    :where(html.island-nav) .nav-export-btn svg{width:16px;height:16px;}

    :where(html.island-nav) .nav-modal-bg-preview{width:100px;height:66px;border-radius:8px;object-fit:cover;border:1px solid #e0e0e0;background:#f5f5f5;}
    :where(html.island-nav) .nav-modal-bg-placeholder{width:100px;height:66px;border-radius:8px;border:1px dashed #ccc;display:flex;align-items:center;justify-content:center;color:#aaa;font-size:11px;background:#fafafa;}

    :where(html.island-nav),:where(html.island-nav) *{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.15) transparent;}
    :where(html.island-nav)::-webkit-scrollbar,:where(html.island-nav) *::-webkit-scrollbar{width:5px;height:5px;}
    :where(html.island-nav)::-webkit-scrollbar-track,:where(html.island-nav) *::-webkit-scrollbar-track{background:transparent;}
    :where(html.island-nav)::-webkit-scrollbar-thumb,:where(html.island-nav) *::-webkit-scrollbar-thumb{background:rgba(255,255,255,.15);border-radius:3px;}
    :where(html.island-nav)::-webkit-scrollbar-thumb:hover,:where(html.island-nav) *::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.25);}
    :where(html.island-nav) .nav-modal *{scrollbar-color:rgba(0,0,0,.15) transparent;}
    :where(html.island-nav) .nav-modal *::-webkit-scrollbar-thumb{background:rgba(0,0,0,.15);}
    :where(html.island-nav) .nav-modal *::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.25);}

    :where(html.island-nav) .nav-engine-manage{max-height:400px;overflow-y:auto;}
    :where(html.island-nav) .nav-engine-section{margin-bottom:12px;}
    :where(html.island-nav) .nav-engine-section-header{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;background:#f8f8f8;border-radius:7px;margin-bottom:6px;font-size:13px;color:#666;font-weight:500;}
    :where(html.island-nav) .nav-engine-section-count{font-size:11px;color:#aaa;font-weight:400;}
    :where(html.island-nav) .nav-engine-row{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:7px;transition:background .1s;}
    :where(html.island-nav) .nav-engine-row:hover{background:#f5f5f5;}
    :where(html.island-nav) .nav-engine-row-name{flex:1;font-size:14px;color:#333;}
    :where(html.island-nav) .nav-engine-row-cat{font-size:11px;color:#aaa;margin-left:4px;}
    :where(html.island-nav) .nav-engine-arrows{display:flex;gap:3px;}
    :where(html.island-nav) .nav-engine-arrow-btn{width:24px;height:24px;border:1px solid #e0e0e0;background:#fff;border-radius:5px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:11px;color:#999;transition:all .1s;}
    :where(html.island-nav) .nav-engine-arrow-btn:hover{border-color:#aaa;color:#333;}
    :where(html.island-nav) .nav-engine-action-btn{width:24px;height:24px;border:1px solid #e0e0e0;background:#fff;border-radius:5px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:13px;color:#999;transition:all .1s;}
    :where(html.island-nav) .nav-engine-action-btn:hover{border-color:#aaa;color:#333;}
    :where(html.island-nav) .nav-engine-toggle{width:17px;height:17px;accent-color:#e07a5f;cursor:pointer;}
    :where(html.island-nav) .nav-engine-collapse-header{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:7px;cursor:pointer;user-select:none;transition:background .1s;font-size:13px;color:#666;font-weight:500;}
    :where(html.island-nav) .nav-engine-collapse-header:hover{background:#f5f5f5;}
    :where(html.island-nav) .nav-engine-collapse-arrow{font-size:10px;color:#999;transition:transform .2s;}
    :where(html.island-nav) .nav-engine-collapse-arrow.collapsed{transform:rotate(-90deg);}
    :where(html.island-nav) .nav-engine-collapse-body{overflow:hidden;transition:max-height .25s ease;}
    :where(html.island-nav) .nav-engine-collapse-body.collapsed{max-height:0 !important;}

    @media(max-width:768px){
        :where(html.island-nav) .nav-content{padding:16px 18px 30px;}
        :where(html.island-nav) .nav-time-hour{font-size:64px;letter-spacing:4px;}
        :where(html.island-nav) .nav-time-date{font-size:14px;}
        :where(html.island-nav) .nav-icon{gap:14px;}
        :where(html.island-nav) .nav-item-icon,:where(html.island-nav) .nav-item-icon-fallback{width:50px;height:50px;}
        :where(html.island-nav) .nav-item-name{max-width:50px;font-size:12px;}
        :where(html.island-nav) .nav-search{max-width:100%;}
    }
    @media(max-width:480px){
        :where(html.island-nav) .nav-time-hour{font-size:52px;letter-spacing:3px;}
        :where(html.island-nav) .nav-time{padding:16px 0 20px;}
        :where(html.island-nav) .nav-item-icon,:where(html.island-nav) .nav-item-icon-fallback{width:44px;height:44px;}
        :where(html.island-nav) .nav-item-name{max-width:44px;font-size:11px;}
        :where(html.island-nav) .nav-tabs{gap:6px;}
        :where(html.island-nav) .nav-tab{padding:5px 14px;font-size:12px;}
    }
    

/* ---------- 页内样式（原 plugin.html 的 style 块） ---------- */

:where(body.pg-plugin) .ww-plg-top-cta { display: flex; justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
:where(body.pg-plugin) .ww-plg-ver { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--ww-text-secondary); }
/* 只有 JS 生效时才按 tab 收起，脚本没跑就整篇平铺 */
:where(body.pg-plugin) .ww-docs-content.plg-tabs > section { display: none; }
:where(body.pg-plugin) .ww-docs-content.plg-tabs > section.on { display: block; }

/* ---------- 页内样式（原 search.html 的 style 块） ---------- */

:where(body.pg-search) .ww-stabs { display: flex; gap: 8px; margin: 0 0 24px; border-bottom: 1px solid #ececec; padding-bottom: 0; }
:where(body.pg-search) .ww-stab { padding: 10px 20px; font-size: 15px; color: #666; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
:where(body.pg-search) .ww-stab:hover { color: #111; }
:where(body.pg-search) .ww-stab.active { color: #111; font-weight: 600; border-bottom-color: #111; }
:where(body.pg-search) .ww-user-list { display: flex; flex-direction: column; gap: 12px; }
:where(body.pg-search) .ww-user-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #fff; border: 1px solid #ececec; border-radius: 10px; text-decoration: none; color: inherit; }
:where(body.pg-search) .ww-user-row:hover { border-color: #ccc; }
:where(body.pg-search) .ww-user-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: #f2f2f2; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #bbb; }
:where(body.pg-search) .ww-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
:where(body.pg-search) .ww-user-info { flex: 1; min-width: 0; }
:where(body.pg-search) .ww-user-name { font-size: 15px; font-weight: 600; color: #111; margin: 0 0 2px; }
:where(body.pg-search) .ww-user-sig { font-size: 13px; color: #999; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(body.pg-search) .ww-grid2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
:where(body.pg-search) .ww-mcard { display: block; background: #fff; border: 1px solid #ececec; border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; }
:where(body.pg-search) .ww-mcard:hover { border-color: #ccc; }
:where(body.pg-search) .ww-mcard-img { width: 100%; aspect-ratio: 4 / 3; background: #f5f5f5; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #ccc; }
:where(body.pg-search) .ww-mcard-img img { width: 100%; height: 100%; object-fit: cover; }
:where(body.pg-search) .ww-mcard-body { padding: 12px 14px; }
:where(body.pg-search) .ww-mcard-title { font-size: 14px; font-weight: 600; color: #111; margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(body.pg-search) .ww-mcard-desc { font-size: 12px; color: #999; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 768px) {
    :where(body.pg-search) .ww-grid2 { grid-template-columns: repeat(2, 1fr); }
    :where(body.pg-search) .ww-stabs { overflow-x: auto; }
}

/* ---------- 页内样式（原 square.html 的 style 块） ---------- */

/* 收藏海 —— 沿用首页 / 精选的卡片语言 */
:where(body.pg-square) .ww-sea-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
:where(body.pg-square) .ww-sea-head-main { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
:where(body.pg-square) .ww-sea-title { font-size: 26px; font-weight: 700; letter-spacing: -.3px; color: var(--ww-text); line-height: 1.25; }
:where(body.pg-square) .ww-sea-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
:where(body.pg-square) .ww-sea-seg { margin-bottom: 0; gap: 2px; padding: 3px; border-radius: 9px; }
:where(body.pg-square) .ww-sea-seg a.ww-hot-tab { padding: 6px 16px; font-size: 13px; border-radius: 7px; text-decoration: none; }
:where(body.pg-square) .ww-sea-side { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
:where(body.pg-square) .ww-sea-stats { display: flex; align-items: baseline; gap: 16px; font-size: 13px; color: var(--ww-text-secondary); }
:where(body.pg-square) .ww-sea-stats b { font-size: 17px; font-weight: 700; color: var(--ww-text); margin-right: 4px; font-variant-numeric: tabular-nums; }
:where(body.pg-square) .ww-sea-import { padding: 9px 18px; font-size: 13px; border-radius: var(--ww-radius-sm); font-weight: 500; }

/* 分类 tab + 布局按钮 */
:where(body.pg-square) .ww-sea-tools { position: relative; display: flex; align-items: center; gap: 4px; margin-left: 16px; flex-shrink: 0; }
:where(body.pg-square) .ww-sea-tab .ww-sea-tab-num { font-style: normal; font-size: 11px; opacity: .55; margin-left: 4px; }
:where(body.pg-square) .ww-sea-tab.active .ww-sea-tab-num { opacity: .8; }

/* 分类筛选条 */
:where(body.pg-square) .ww-sea-cats.is-empty { display: none; }

/* 卡片流 */
:where(body.pg-square) .ww-sea-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; transition: opacity var(--ww-transition); }
:where(body.pg-square) .ww-sea-grid.is-loading { opacity: .4; }
:where(body.pg-square) .ww-sea-card { position: relative; display: flex; flex-direction: column; background: var(--ww-card); border: 1px solid var(--ww-border); border-radius: var(--ww-radius); overflow: hidden; cursor: pointer; transition: transform var(--ww-transition), box-shadow var(--ww-transition), border-color var(--ww-transition); }
:where(body.pg-square) .ww-sea-card:hover { transform: translateY(-3px); box-shadow: var(--ww-shadow-hover); border-color: transparent; }
:where(body.pg-square) .ww-sea-card[data-type="social"] { --sea-accent: var(--ww-primary); --sea-soft: rgba(224, 122, 95, .10); --sea-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d3436' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E"); }
:where(body.pg-square) .ww-sea-card[data-type="media"] { --sea-accent: var(--ww-sage); --sea-soft: rgba(129, 178, 154, .13); --sea-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d3436' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M6 4v16M18 4v16M2 9h4M2 15h4M18 9h4M18 15h4'/%3E%3C/svg%3E"); }
:where(body.pg-square) .ww-sea-card[data-type="ecommerce"] { --sea-accent: var(--ww-warm); --sea-soft: rgba(242, 204, 143, .20); --sea-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d3436' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); }
:where(body.pg-square) .ww-sea-card[data-type="url"] { --sea-accent: #90a4c4; --sea-soft: rgba(144, 164, 196, .15); --sea-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d3436' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E"); }
:where(body.pg-square) .ww-sea-card[data-type="tool"] { --sea-accent: var(--ww-primary-light); --sea-soft: rgba(244, 169, 141, .16); --sea-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d3436' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E"); }
:where(body.pg-square) .ww-sea-card[data-type="news"] { --sea-accent: var(--ww-dark); --sea-soft: rgba(45, 52, 54, .07); --sea-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d3436' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2z'/%3E%3Cpath d='M4 11h4M4 15h4'/%3E%3Cpath d='M12 8h6M12 12h6M12 16h6'/%3E%3C/svg%3E"); }
:where(body.pg-square) .ww-sea-card[data-type="other"] { --sea-accent: var(--ww-text-secondary); --sea-soft: rgba(124, 138, 151, .11); --sea-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d3436' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }

:where(body.pg-square) .ww-sea-cover { position: relative; aspect-ratio: 16 / 10; background: var(--ww-bg); overflow: hidden; }
:where(body.pg-square) .ww-sea-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
:where(body.pg-square) .ww-sea-card:hover .ww-sea-cover img { transform: scale(1.04); }
:where(body.pg-square) .ww-sea-tag { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 20px; font-size: 11px; color: #fff; background: var(--sea-accent, var(--ww-text-secondary)); }

/* 无封面时用标题当封面：居中排版 + 类型底色与水印 */
:where(body.pg-square) .ww-sea-cover-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 18px 20px; text-align: center; background: var(--sea-soft, var(--ww-bg)); }
:where(body.pg-square) .ww-sea-cover-text::before { content: ''; position: absolute; right: 10px; bottom: 8px; width: 88px; height: 88px; background: var(--sea-mark) center / 80px 80px no-repeat; opacity: .13; }
:where(body.pg-square) .ww-sea-kicker { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ww-text-secondary); }
:where(body.pg-square) .ww-sea-kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--sea-accent, var(--ww-text-secondary)); }
:where(body.pg-square) .ww-sea-cover-title { position: relative; font-size: 17px; font-weight: 700; line-height: 1.55; color: var(--ww-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

:where(body.pg-square) .ww-sea-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 12px 14px 13px; }
:where(body.pg-square) .ww-sea-card-title { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ww-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:where(body.pg-square) .ww-sea-card-text { font-size: 12.5px; line-height: 1.6; color: var(--ww-text-secondary); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:where(body.pg-square) .ww-sea-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 11px; border-top: 1px solid var(--ww-border); font-size: 11.5px; color: var(--ww-text-secondary); }
:where(body.pg-square) .ww-sea-foot span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
:where(body.pg-square) .ww-sea-src { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 4px; }
:where(body.pg-square) .ww-sea-src b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(body.pg-square) .ww-sea-src svg { flex-shrink: 0; color: var(--sea-accent, var(--ww-text-secondary)); }
:where(body.pg-square) .ww-sea-detail { width: 26px; height: 26px; flex-shrink: 0; margin-left: auto; border-radius: 6px; border: 1px solid var(--ww-border); display: inline-flex; align-items: center; justify-content: center; color: var(--ww-text-secondary); background: var(--ww-card); }
:where(body.pg-square) .ww-sea-detail:hover { border-color: var(--ww-primary); color: var(--ww-primary); }

/* 无封面布局 */
:where(body.pg-square) .ww-sea-grid.is-plain { grid-template-columns: 1fr; gap: 10px; }
:where(body.pg-square) .ww-sea-grid.is-plain .ww-sea-card { flex-direction: row; align-items: center; gap: 18px; padding: 14px 16px; border-radius: var(--ww-radius-sm); }
:where(body.pg-square) .ww-sea-grid.is-plain .ww-sea-cover { display: none; }
:where(body.pg-square) .ww-sea-grid.is-plain .ww-sea-body { flex-direction: row; align-items: center; gap: 18px; padding: 0; flex: 1; }
:where(body.pg-square) .ww-sea-grid.is-plain .ww-sea-card-title { flex: 0 1 32%; min-width: 0; -webkit-line-clamp: 1; }
:where(body.pg-square) .ww-sea-grid.is-plain .ww-sea-card-text { flex: 1; min-width: 0; margin-top: 0; -webkit-line-clamp: 1; }
:where(body.pg-square) .ww-sea-grid.is-plain .ww-sea-foot { margin-top: 0; padding-top: 0; border-top: none; flex-shrink: 0; gap: 10px; }
:where(body.pg-square) .ww-sea-grid.is-plain .ww-sea-src { display: none !important; }

:where(body.pg-square) .ww-sea-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 72px 20px; color: var(--ww-text-secondary); }
:where(body.pg-square) .ww-sea-empty svg { opacity: .2; margin-bottom: 16px; }
:where(body.pg-square) .ww-sea-empty p { font-size: 15px; }
:where(body.pg-square) .ww-sea-pager:empty { display: none; }

/* 预览弹窗 */
:where(body.pg-square) .ww-sea-modal { display: none; position: fixed; inset: 0; z-index: 2600; }
:where(body.pg-square) .ww-sea-modal.active { display: block; }
:where(body.pg-square) .ww-sea-modal-mask { position: absolute; inset: 0; background: rgba(45, 52, 54, .45); }
:where(body.pg-square) .ww-sea-modal-box { position: relative; width: min(880px, 92vw); max-height: 86vh; margin: 7vh auto 0; background: var(--ww-card); border: 1px solid var(--ww-border); border-radius: var(--ww-radius); display: flex; flex-direction: column; overflow: hidden; }
:where(body.pg-square) .ww-sea-modal-box.is-s { width: min(620px, 94vw); max-height: 72vh; margin-top: 12vh; }
:where(body.pg-square) .ww-sea-modal-box.is-l { width: min(1240px, 96vw); max-height: 92vh; margin-top: 4vh; }
:where(body.pg-square) .ww-sea-modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--ww-border); }
:where(body.pg-square) .ww-sea-modal-title { font-size: 17px; font-weight: 600; color: var(--ww-text); line-height: 1.45; flex: 1; min-width: 0; }
:where(body.pg-square) .ww-sea-modal-sizes { display: inline-flex; gap: 4px; flex-shrink: 0; }
:where(body.pg-square) .ww-sea-size-btn { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--ww-border); background: var(--ww-card); color: var(--ww-text-secondary); font-size: 12px; font-weight: 600; line-height: 1; cursor: pointer; }
:where(body.pg-square) .ww-sea-size-btn:hover { border-color: var(--ww-dark); color: var(--ww-dark); }
:where(body.pg-square) .ww-sea-size-btn.active { background: var(--ww-dark); border-color: var(--ww-dark); color: #fff; }
:where(body.pg-square) .ww-sea-modal-close { flex-shrink: 0; width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--ww-border); background: var(--ww-card); color: var(--ww-text-secondary); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
:where(body.pg-square) .ww-sea-modal-close:hover { border-color: var(--ww-primary); color: var(--ww-primary); }
:where(body.pg-square) .ww-sea-modal-body { padding: 16px 20px 20px; overflow-y: auto; }
:where(body.pg-square) .ww-sea-modal-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--ww-text-secondary); margin-bottom: 12px; }
:where(body.pg-square) .ww-sea-modal-meta span { display: inline-flex; align-items: center; gap: 4px; }
:where(body.pg-square) .ww-sea-modal-foot { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--ww-border); background: var(--ww-bg); }
:where(body.pg-square) .ww-sea-modal-cover { width: 100%; max-height: 300px; object-fit: contain; background: var(--ww-bg); border-radius: var(--ww-radius-sm); margin-bottom: 12px; }
:where(body.pg-square) .ww-sea-modal-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
:where(body.pg-square) .ww-sea-modal-pics a { display: block; overflow: hidden; background: var(--ww-bg); border: 1px solid var(--ww-border); border-radius: 6px; }
:where(body.pg-square) .ww-sea-modal-pics img { display: block; width: 100%; height: 110px; object-fit: cover; }
:where(body.pg-square) .ww-sea-modal-text { font-size: 14px; line-height: 1.75; color: var(--ww-text); white-space: pre-wrap; word-break: break-word; margin-bottom: 14px; }
:where(body.pg-square) .ww-sea-modal-loading { padding: 48px; text-align: center; color: var(--ww-text-secondary); font-size: 13px; }

/* 第三方提示条 —— 弹窗与详情页共用 */
:where(body.pg-square) .ww-sea-notice { display: flex; align-items: center; gap: 8px; background: var(--ww-bg); border: 1px solid var(--ww-border); border-radius: var(--ww-radius-sm); padding: 9px 12px; font-size: 12.5px; color: var(--ww-text-secondary); margin-bottom: 14px; }
:where(body.pg-square) .ww-sea-notice svg { flex-shrink: 0; color: var(--ww-dark); }
:where(body.pg-square) .ww-sea-notice-text { flex: 1; min-width: 0; }
:where(body.pg-square) .ww-sea-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 6px; font-size: 12.5px; border: 1px solid var(--ww-dark); background: var(--ww-dark); color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap; }
:where(body.pg-square) .ww-sea-btn:hover { background: var(--ww-text); border-color: var(--ww-text); color: #fff; }
:where(body.pg-square) .ww-sea-btn-ghost { background: var(--ww-card); color: var(--ww-text-secondary); border-color: var(--ww-border); }
:where(body.pg-square) .ww-sea-btn-ghost:hover { color: var(--ww-dark); border-color: var(--ww-dark); background: var(--ww-card); }

/* iframe 预览 */
:where(body.pg-square) .ww-sea-frame { border: 1px solid var(--ww-border); border-radius: var(--ww-radius-sm); overflow: hidden; margin-bottom: 8px; }
:where(body.pg-square) .ww-sea-frame-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--ww-bg); border-bottom: 1px solid var(--ww-border); font-size: 12px; color: var(--ww-text-secondary); }
:where(body.pg-square) .ww-sea-frame-bar b { color: var(--ww-text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 460px; }
:where(body.pg-square) .ww-sea-frame-bar .ww-sea-frame-toggle { margin-left: auto; background: none; border: 1px solid var(--ww-border); border-radius: 5px; padding: 3px 10px; font-size: 12px; color: var(--ww-text-secondary); cursor: pointer; }
:where(body.pg-square) .ww-sea-frame-bar .ww-sea-frame-toggle:hover { border-color: var(--ww-dark); color: var(--ww-dark); }
:where(body.pg-square) .ww-sea-frame-bar .ww-sea-frame-full { flex-shrink: 0; width: 27px; height: 25px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 1px solid var(--ww-border); border-radius: 5px; color: var(--ww-text-secondary); cursor: pointer; }
:where(body.pg-square) .ww-sea-frame-bar .ww-sea-frame-full:hover { border-color: var(--ww-dark); color: var(--ww-dark); }
:where(body.pg-square) .ww-sea-frame iframe { display: block; width: 100%; height: 460px; border: 0; background: #fff; }
:where(body.pg-square) .ww-sea-frame.collapsed iframe { display: none; }
:where(body.pg-square) .ww-sea-modal-box.is-s .ww-sea-frame iframe { height: 300px; }
:where(body.pg-square) .ww-sea-modal-box.is-l .ww-sea-frame iframe { height: 720px; }
/* 全屏预览：整块预览（含顶部条）铺满屏幕 */
:where(body.pg-square) .ww-sea-frame:fullscreen,
:where(body.pg-warehouse-detail) .wh-frame:fullscreen { display: flex; flex-direction: column; margin: 0; border: 0; border-radius: 0; background: #fff; }
:where(body.pg-square) .ww-sea-frame:fullscreen iframe,
:where(body.pg-warehouse-detail) .wh-frame:fullscreen iframe { flex: 1; height: auto; min-height: 0; }
:where(body.pg-square) .ww-sea-frame-tip { font-size: 11.5px; color: var(--ww-text-secondary); margin-bottom: 12px; }

@media (max-width: 1200px) { :where(body.pg-square) .ww-sea-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { :where(body.pg-square) .ww-sea-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    :where(body.pg-square) .ww-sea-head { align-items: flex-start; gap: 12px; margin-bottom: 14px; }
    :where(body.pg-square) .ww-sea-title { font-size: 22px; }
    :where(body.pg-square) .ww-sea-head-main { gap: 9px; }
    :where(body.pg-square) .ww-sea-side { gap: 14px; }
    :where(body.pg-square) .ww-sea-filters { gap: 8px; }
    :where(body.pg-square) .ww-sea-seg a.ww-hot-tab { padding: 5px 12px; font-size: 12.5px; }
    :where(body.pg-square) .ww-sea-tools { margin-left: 0; }
    :where(body.pg-square) .ww-sea-frame iframe { height: 320px; }
    :where(body.pg-square) .ww-sea-modal-box { width: 94vw; max-height: 90vh; margin-top: 5vh; }
    :where(body.pg-square) .ww-sea-modal-box.is-s,
    :where(body.pg-square) .ww-sea-modal-box.is-l { width: 94vw; max-height: 90vh; margin-top: 5vh; }
    :where(body.pg-square) .ww-sea-modal-box.is-s .ww-sea-frame iframe,
    :where(body.pg-square) .ww-sea-modal-box.is-l .ww-sea-frame iframe { height: 320px; }
    :where(body.pg-square) .ww-sea-grid.is-plain .ww-sea-card { flex-direction: column; align-items: stretch; gap: 8px; }
    :where(body.pg-square) .ww-sea-grid.is-plain .ww-sea-body { flex-direction: column; align-items: stretch; gap: 8px; }
    :where(body.pg-square) .ww-sea-grid.is-plain .ww-sea-card-title { flex: none; -webkit-line-clamp: 2; }
    :where(body.pg-square) .ww-sea-grid.is-plain .ww-sea-foot { padding-top: 8px; border-top: 1px solid var(--ww-border); }
}
@media (max-width: 560px) { :where(body.pg-square) .ww-sea-grid { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- 页内样式（原 tags.html 的 style 块） ---------- */

:where(body.pg-tags) .ww-tags-top-tabs {
    display: flex;
    gap: 0;
    justify-content: flex-start;
    margin-bottom: 28px;
    border-bottom: 2px solid #f0f0f0;
}
:where(body.pg-tags) .ww-tags-top-tab {
    padding: 10px 32px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 15px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
}
:where(body.pg-tags) .ww-tags-top-tab.active {
    color: #333;
    border-bottom-color: #e63228;
}
:where(body.pg-tags) .ww-tags-top-tab:hover {
    color: #333;
}
:where(body.pg-tags) .ww-tags-refresh {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: center;
    margin-left: auto;
    padding: 7px 14px;
    background: none;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
:where(body.pg-tags) .ww-tags-refresh:hover {
    color: #333;
    border-color: #ccc;
}
:where(body.pg-tags) .ww-tags-refresh.is-loading {
    color: #bbb;
    cursor: default;
}
:where(body.pg-tags) .ww-tags-refresh.is-loading .ww-tags-refresh-icon {
    animation: ww-tags-spin 0.9s linear infinite;
}
@keyframes ww-tags-spin {
    to { transform: rotate(360deg); }
}
:where(body.pg-tags) .ww-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    padding: 0 0 32px;
}
:where(body.pg-tags) .ww-tags-bubble {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 24px;
    border: 1px solid #e8e8e8;
    background: #fff;
    cursor: pointer;
    color: #555;
    transition: all 0.25s;
    line-height: 1.4;
}
:where(body.pg-tags) .ww-tags-bubble:hover {
    border-color: var(--bubble-color, #5B8C85);
    color: var(--bubble-color, #5B8C85);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
:where(body.pg-tags) .ww-tags-bubble.active {
    background: var(--bubble-color, #5B8C85);
    border-color: var(--bubble-color, #5B8C85);
    color: #fff;
}
:where(body.pg-tags) .ww-tags-bubble.active .ww-tags-bubble-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
:where(body.pg-tags) .ww-tags-bubble.row-hidden {
    display: none;
}
:where(body.pg-tags) .ww-tags-bubble-cat {
}
:where(body.pg-tags) .ww-tags-bubble-name {
    font-weight: 500;
}
:where(body.pg-tags) .ww-tags-bubble-count {
    font-size: 11px;
    background: #f0f0f0;
    color: #999;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 600;
}
:where(body.pg-tags) .ww-tags-result {
    padding: 0 0 40px;
}
:where(body.pg-tags) .ww-tags-result-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}
:where(body.pg-tags) .ww-tags-result-head h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}
:where(body.pg-tags) .ww-tags-result-count {
    font-size: 13px;
    color: #999;
}
@media (max-width: 768px) {
    :where(body.pg-tags) .ww-tags-cloud {
        gap: 8px;
    }
    :where(body.pg-tags) .ww-tags-bubble {
        padding: 6px 14px;
    }
    :where(body.pg-tags) .ww-tags-top-tab {
        padding: 10px 18px;
    }
    :where(body.pg-tags) .ww-tags-refresh {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* ---------- 页内样式（原 warehouse_detail.html 的 style 块） ---------- */

/* 第三方提示条 */
:where(body.pg-warehouse-detail) .wh-notice { display: flex; align-items: center; gap: 8px; background: var(--ww-bg); border: 1px solid var(--ww-border); border-radius: var(--ww-radius-sm); padding: 10px 13px; font-size: 13px; color: var(--ww-text-secondary); margin: 14px 0; }
:where(body.pg-warehouse-detail) .wh-notice svg { flex-shrink: 0; color: var(--ww-dark); }
:where(body.pg-warehouse-detail) .wh-notice-text { flex: 1; min-width: 0; }
:where(body.pg-warehouse-detail) .wh-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 6px; font-size: 12.5px; border: 1px solid var(--ww-dark); background: var(--ww-dark); color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap; }
:where(body.pg-warehouse-detail) .wh-btn:hover { background: var(--ww-text); border-color: var(--ww-text); color: #fff; }
:where(body.pg-warehouse-detail) .wh-btn-ghost { background: var(--ww-card); color: var(--ww-text-secondary); border-color: var(--ww-border); }
:where(body.pg-warehouse-detail) .wh-btn-ghost:hover { color: var(--ww-dark); border-color: var(--ww-dark); background: var(--ww-card); }

/* 内嵌预览 */
:where(body.pg-warehouse-detail) .wh-frame { border: 1px solid var(--ww-border); border-radius: var(--ww-radius-sm); overflow: hidden; margin-bottom: 8px; background: var(--ww-card); }
:where(body.pg-warehouse-detail) .wh-frame-bar { display: flex; align-items: center; gap: 8px; padding: 9px 13px; background: var(--ww-bg); border-bottom: 1px solid var(--ww-border); font-size: 12.5px; color: var(--ww-text-secondary); }
:where(body.pg-warehouse-detail) .wh-frame-bar b { color: var(--ww-text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
:where(body.pg-warehouse-detail) .wh-frame-toggle { margin-left: auto; background: var(--ww-card); border: 1px solid var(--ww-border); border-radius: 5px; padding: 3px 11px; font-size: 12px; color: var(--ww-text-secondary); cursor: pointer; }
:where(body.pg-warehouse-detail) .wh-frame-toggle:hover { border-color: var(--ww-dark); color: var(--ww-dark); }
:where(body.pg-warehouse-detail) .wh-frame-full { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; background: var(--ww-card); border: 1px solid var(--ww-border); border-radius: 5px; padding: 3px 10px; font-size: 12px; color: var(--ww-text-secondary); cursor: pointer; }
:where(body.pg-warehouse-detail) .wh-frame-full:hover { border-color: var(--ww-dark); color: var(--ww-dark); }
:where(body.pg-warehouse-detail) .wh-frame iframe { display: block; width: 100%; height: 620px; border: 0; background: #fff; }
:where(body.pg-warehouse-detail) .wh-frame.collapsed iframe { display: none; }
:where(body.pg-warehouse-detail) .wh-frame-tip { font-size: 12px; color: var(--ww-text-secondary); margin-bottom: 18px; }

:where(body.pg-warehouse-detail) .wh-detail-title { font-size: 22px; font-weight: 700; line-height: 1.45; color: var(--ww-text); margin: 6px 0 10px; }
:where(body.pg-warehouse-detail) .wh-cover { width: 100%; max-height: 340px; object-fit: contain; background: var(--ww-bg); border: 1px solid var(--ww-border); border-radius: var(--ww-radius-sm); margin: 6px 0 16px; }
:where(body.pg-warehouse-detail) .wh-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 16px; }
:where(body.pg-warehouse-detail) .wh-pics.single { grid-template-columns: 1fr; }
:where(body.pg-warehouse-detail) .wh-pics a { position: relative; display: block; overflow: hidden; background: var(--ww-bg); border: 1px solid var(--ww-border); border-radius: var(--ww-radius-sm); }
:where(body.pg-warehouse-detail) .wh-pics img { display: block; width: 100%; height: 190px; object-fit: cover; }
:where(body.pg-warehouse-detail) .wh-pics.single img { height: auto; max-height: 340px; object-fit: contain; }
:where(body.pg-warehouse-detail) .wh-pics-no { position: absolute; right: 6px; bottom: 6px; padding: 1px 7px; border-radius: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; }
:where(body.pg-warehouse-detail) .wh-body { font-size: 15px; line-height: 1.85; color: var(--ww-text); word-break: break-word; margin-bottom: 20px; }
:where(body.pg-warehouse-detail) .wh-side-src { display: block; font-size: 12.5px; color: var(--ww-text); text-align: right; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(body.pg-warehouse-detail) .wh-side-acts { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 7px; }
:where(body.pg-warehouse-detail) .wh-side-open { display: inline-block; padding: 2px 9px; border: 1px solid var(--ww-dark); border-radius: 5px; font-size: 11.5px; color: var(--ww-dark); background: var(--ww-card); text-decoration: none; }
:where(body.pg-warehouse-detail) .wh-side-open:hover { background: var(--ww-dark); color: #fff; }
:where(body.pg-warehouse-detail) .wh-side-copy { background: none; border: 1px solid var(--ww-border); border-radius: 5px; padding: 2px 9px; font-size: 11.5px; color: var(--ww-text-secondary); cursor: pointer; }
:where(body.pg-warehouse-detail) .wh-side-copy:hover { border-color: var(--ww-dark); color: var(--ww-dark); }

/* 本地副本 */
:where(body.pg-warehouse-detail) .wh-copy { border: 1px solid var(--ww-border); border-radius: var(--ww-radius-sm); background: var(--ww-card); padding: 16px 18px; margin: 4px 0 20px; }
:where(body.pg-warehouse-detail) .wh-copy-head { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ww-dark); }
:where(body.pg-warehouse-detail) .wh-copy-head svg { flex-shrink: 0; }
:where(body.pg-warehouse-detail) .wh-copy-sub { font-weight: 400; font-size: 12px; color: var(--ww-text-secondary); }
:where(body.pg-warehouse-detail) .wh-copy-title { font-size: 16px; font-weight: 600; line-height: 1.6; color: var(--ww-text); margin: 12px 0 6px; word-break: break-word; }
:where(body.pg-warehouse-detail) .wh-copy-meta { font-size: 12px; color: var(--ww-text-secondary); margin-bottom: 12px; }
:where(body.pg-warehouse-detail) .wh-copy-video { display: block; width: 100%; max-height: 440px; background: #000; border-radius: var(--ww-radius-sm); margin: 12px 0; }
:where(body.pg-warehouse-detail) .wh-copy-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
:where(body.pg-warehouse-detail) .wh-copy-imgs a { display: block; border-radius: 6px; overflow: hidden; background: var(--ww-bg); border: 1px solid var(--ww-border); }
:where(body.pg-warehouse-detail) .wh-copy-imgs img { display: block; width: 100%; height: 168px; object-fit: cover; }
:where(body.pg-warehouse-detail) .wh-copy-text { font-size: 14px; line-height: 1.85; color: var(--ww-text-secondary); word-break: break-word; white-space: normal; }
:where(body.pg-warehouse-detail) .wh-copy-note { font-size: 12.5px; color: var(--ww-text-secondary); background: var(--ww-bg); border: 1px solid var(--ww-border); border-radius: 6px; padding: 8px 12px; margin: 12px 0; }

/* 已标记过期的内容：正文整块收起，只留提示和底部两个按钮 */
:where(body.pg-warehouse-detail) .wh-expired { display: flex; align-items: center; gap: 8px; background: var(--ww-bg); border: 1px solid var(--ww-border); border-radius: var(--ww-radius-sm); padding: 14px 16px; font-size: 14px; color: var(--ww-text-secondary); margin: 14px 0; }
:where(body.pg-warehouse-detail) .wh-expired svg { flex-shrink: 0; color: var(--ww-dark); }
:where(body.pg-warehouse-detail) .wh-fold.folded { display: none; }
:where(body.pg-warehouse-detail) .wh-expired-acts { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 20px; }

@media (max-width: 768px) {
    :where(body.pg-warehouse-detail) .wh-frame iframe { height: 380px; }
    :where(body.pg-warehouse-detail) .wh-frame-bar b { max-width: 130px; }
    :where(body.pg-warehouse-detail) .wh-detail-title { font-size: 19px; }
    :where(body.pg-warehouse-detail) .wh-copy { padding: 13px 14px; }
    :where(body.pg-warehouse-detail) .wh-copy-imgs { grid-template-columns: repeat(2, 1fr); }
    :where(body.pg-warehouse-detail) .wh-copy-imgs img { height: 132px; }
    :where(body.pg-warehouse-detail) .wh-pics { grid-template-columns: repeat(2, 1fr); }
    :where(body.pg-warehouse-detail) .wh-pics.single { grid-template-columns: 1fr; }
    :where(body.pg-warehouse-detail) .wh-pics img { height: 148px; }
}
/* ==================================================================
   合并原 big-data.css（大数据统计页）
   ================================================================== */
/* ============================================
   大数据统计页面 - 深色科技风格
   ============================================ */
:where(body.pg-dashboard-big-data) .big-data-container {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 50%, #0a1628 100%);
    color: #fff;
    padding: 0;
    overflow: hidden;
    position: relative;
}

/* 背景网格 */
:where(body.pg-dashboard-big-data) .big-data-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* 顶部标题栏 */
:where(body.pg-dashboard-big-data) .bd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: linear-gradient(180deg, rgba(0, 212, 170, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid rgba(0, 212, 170, 0.2);
    position: relative;
    z-index: 10;
}

:where(body.pg-dashboard-big-data) .bd-header-left {
    flex: 1;
}

:where(body.pg-dashboard-big-data) .bd-time {
    font-size: 18px;
    color: #00d4aa;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 212, 170, 0.5), 0 0 20px rgba(0, 212, 170, 0.3);
    position: relative;
    padding: 6px 12px;
    background: rgba(0, 212, 170, 0.05);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 4px;
    display: inline-block;
}

:where(body.pg-dashboard-big-data) .bd-time::before,
:where(body.pg-dashboard-big-data) .bd-time::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid rgba(0, 212, 170, 0.5);
}

:where(body.pg-dashboard-big-data) .bd-time::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
    border-radius: 2px 0 0 0;
}

:where(body.pg-dashboard-big-data) .bd-time::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 2px 0;
}

:where(body.pg-dashboard-big-data) .bd-header-center {
    flex: 2;
    text-align: center;
}

:where(body.pg-dashboard-big-data) .bd-title {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(90deg, #00d4aa, #4ee5c5, #00d4aa);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bdTitleShine 3s linear infinite;
    margin: 0;
    letter-spacing: 4px;
}

@keyframes bdTitleShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

:where(body.pg-dashboard-big-data) .bd-header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

:where(body.pg-dashboard-big-data) .bd-fullscreen-btn {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    color: #00d4aa;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: all 0.3s;
}

:where(body.pg-dashboard-big-data) .bd-fullscreen-btn:hover {
    background: rgba(0, 212, 170, 0.2);
    border-color: #00d4aa;
}

/* 三栏布局 */
:where(body.pg-dashboard-big-data) .bd-layout {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    gap: 15px;
    padding: 15px;
    height: calc(100vh - 70px);
    position: relative;
    z-index: 1;
}

:where(body.pg-dashboard-big-data) .bd-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

:where(body.pg-dashboard-big-data) .bd-col::-webkit-scrollbar {
    width: 4px;
}

:where(body.pg-dashboard-big-data) .bd-col::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

:where(body.pg-dashboard-big-data) .bd-col::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 170, 0.3);
    border-radius: 2px;
}

/* 卡片样式 */
:where(body.pg-dashboard-big-data) .bd-card {
    background: rgba(10, 30, 60, 0.6);
    border: 1px solid rgba(0, 212, 170, 0.15);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

:where(body.pg-dashboard-big-data) .bd-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4aa, transparent);
}

:where(body.pg-dashboard-big-data) .bd-card-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

:where(body.pg-dashboard-big-data) .bd-card-title-icon {
    width: 8px;
    height: 8px;
    background: #00d4aa;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 212, 170, 0.5);
    animation: bdPulse 2s ease-in-out infinite;
}

@keyframes bdPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* 统计卡片网格 */
:where(body.pg-dashboard-big-data) .bd-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

:where(body.pg-dashboard-big-data) .bd-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

:where(body.pg-dashboard-big-data) .bd-stat-item:hover {
    background: rgba(0, 212, 170, 0.05);
    border-color: rgba(0, 212, 170, 0.2);
    transform: translateY(-2px);
}

:where(body.pg-dashboard-big-data) .bd-stat-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    flex-shrink: 0;
    color: #00d4aa;
}

:where(body.pg-dashboard-big-data) .bd-stat-info {
    flex: 1;
    min-width: 0;
}

:where(body.pg-dashboard-big-data) .bd-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
}

:where(body.pg-dashboard-big-data) .bd-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-family: 'Courier New', monospace;
}

/* 图表容器 */
:where(body.pg-dashboard-big-data) .bd-chart-container {
    height: 180px;
    position: relative;
}

/* 列表样式 */
:where(body.pg-dashboard-big-data) .bd-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

:where(body.pg-dashboard-big-data) .bd-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    transition: all 0.3s;
}

:where(body.pg-dashboard-big-data) .bd-list-item:hover {
    background: rgba(0, 212, 170, 0.05);
}

:where(body.pg-dashboard-big-data) .bd-list-rank {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

:where(body.pg-dashboard-big-data) .bd-list-name {
    flex: 1;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(body.pg-dashboard-big-data) .bd-list-value {
    font-size: 12px;
    color: #00d4aa;
    font-family: 'Courier New', monospace;
    flex-shrink: 0;
}

/* 地图容器 */
:where(body.pg-dashboard-big-data) .bd-map-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

:where(body.pg-dashboard-big-data) .bd-map-container {
    flex: 1;
    position: relative;
    min-height: 300px;
    background: #050e1a;
    border-radius: 8px;
    overflow: hidden;
}

:where(body.pg-dashboard-big-data) .bd-map-switch {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

:where(body.pg-dashboard-big-data) .bd-map-switch-btn {
    padding: 4px 12px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

:where(body.pg-dashboard-big-data) .bd-map-switch-btn:hover {
    background: rgba(0, 212, 170, 0.2);
    color: #fff;
}

:where(body.pg-dashboard-big-data) .bd-map-switch-btn.active {
    background: rgba(0, 212, 170, 0.3);
    border-color: #00d4aa;
    color: #00d4aa;
    font-weight: 600;
}

/* 状态分布 */
:where(body.pg-dashboard-big-data) .bd-status-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

:where(body.pg-dashboard-big-data) .bd-status-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

:where(body.pg-dashboard-big-data) .bd-status-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

:where(body.pg-dashboard-big-data) .bd-status-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4aa, #4ee5c5);
    border-radius: 3px;
    transition: width 1s ease;
}

:where(body.pg-dashboard-big-data) .bd-status-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

:where(body.pg-dashboard-big-data) .bd-status-name {
    color: rgba(255, 255, 255, 0.6);
}

:where(body.pg-dashboard-big-data) .bd-status-count {
    color: #00d4aa;
    font-family: 'Courier New', monospace;
}

/* 环形图 */
:where(body.pg-dashboard-big-data) .bd-ring-chart {
    position: relative;
    height: 180px;
    margin-bottom: 10px;
}

:where(body.pg-dashboard-big-data) .bd-ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

:where(body.pg-dashboard-big-data) .bd-ring-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    font-family: 'Courier New', monospace;
}

:where(body.pg-dashboard-big-data) .bd-ring-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

:where(body.pg-dashboard-big-data) .bd-ring-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 120px;
    overflow-y: auto;
}

:where(body.pg-dashboard-big-data) .bd-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

:where(body.pg-dashboard-big-data) .bd-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

:where(body.pg-dashboard-big-data) .bd-legend-name {
    flex: 1;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(body.pg-dashboard-big-data) .bd-legend-value {
    color: #00d4aa;
    font-family: 'Courier New', monospace;
    flex-shrink: 0;
}

/* 地点列表 */
:where(body.pg-dashboard-big-data) .bd-location-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

:where(body.pg-dashboard-big-data) .bd-location-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

:where(body.pg-dashboard-big-data) .bd-location-name {
    width: 70px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(body.pg-dashboard-big-data) .bd-location-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

:where(body.pg-dashboard-big-data) .bd-location-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4aa, #4ee5c5);
    border-radius: 2px;
    transition: width 1s ease;
}

:where(body.pg-dashboard-big-data) .bd-location-count {
    width: 30px;
    text-align: right;
    font-size: 11px;
    color: #00d4aa;
    font-family: 'Courier New', monospace;
    flex-shrink: 0;
}

/* 实时数据 */
:where(body.pg-dashboard-big-data) .bd-realtime-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

:where(body.pg-dashboard-big-data) .bd-realtime-item {
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

:where(body.pg-dashboard-big-data) .bd-realtime-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

:where(body.pg-dashboard-big-data) .bd-realtime-value {
    font-size: 16px;
    font-weight: 600;
    color: #00d4aa;
    font-family: 'Courier New', monospace;
}

/* 全屏样式 */
:where(body.pg-dashboard-big-data) .big-data-container:fullscreen {
    padding: 0;
}

:where(body.pg-dashboard-big-data) .big-data-container:fullscreen .bd-layout {
    height: calc(100vh - 70px);
}

/* 响应式 - 平板横屏 */
@media (max-width: 1400px) {
:where(body.pg-dashboard-big-data) .bd-layout {
        grid-template-columns: 280px 1fr 280px;
        gap: 10px;
        padding: 10px;
    }

:where(body.pg-dashboard-big-data) .bd-stat-value {
        font-size: 18px;
    }

:where(body.pg-dashboard-big-data) .bd-ring-value {
        font-size: 24px;
    }

}

/* 响应式 - 平板竖屏 */
@media (max-width: 1200px) {
:where(body.pg-dashboard-big-data) .bd-layout {
        grid-template-columns: 1fr;
        height: auto;
        gap: 12px;
        padding: 12px;
    }

:where(body.pg-dashboard-big-data) .bd-col {
        overflow-y: visible;
    }

:where(body.pg-dashboard-big-data) .bd-map-container {
        min-height: 450px;
    }

:where(body.pg-dashboard-big-data) .bd-title {
        font-size: 20px;
        letter-spacing: 3px;
    }

:where(body.pg-dashboard-big-data) .bd-time {
        font-size: 16px;
    }

:where(body.pg-dashboard-big-data) .bd-stat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

:where(body.pg-dashboard-big-data) .bd-realtime-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

/* 响应式 - 手机横屏 */
@media (max-width: 992px) {
:where(body.pg-dashboard-big-data) .bd-header {
        padding: 12px 20px;
    }

:where(body.pg-dashboard-big-data) .bd-layout {
        padding: 10px;
        gap: 10px;
    }

:where(body.pg-dashboard-big-data) .bd-card {
        padding: 12px;
    }

:where(body.pg-dashboard-big-data) .bd-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

:where(body.pg-dashboard-big-data) .bd-realtime-grid {
        grid-template-columns: repeat(2, 1fr);
    }

:where(body.pg-dashboard-big-data) .bd-map-container {
        min-height: 400px;
    }

}

/* 响应式 - 手机竖屏 */
@media (max-width: 768px) {
:where(body.pg-dashboard-big-data) .bd-header {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 8px;
    }

:where(body.pg-dashboard-big-data) .bd-header-left {
        flex: 1;
        order: 2;
    }

:where(body.pg-dashboard-big-data) .bd-header-right {
        flex: none;
        order: 3;
    }

:where(body.pg-dashboard-big-data) .bd-header-center {
        flex: 1 1 100%;
        order: 1;
        margin-bottom: 5px;
    }

:where(body.pg-dashboard-big-data) .bd-title {
        font-size: 18px;
        letter-spacing: 2px;
    }

:where(body.pg-dashboard-big-data) .bd-time {
        font-size: 14px;
        padding: 4px 10px;
    }

:where(body.pg-dashboard-big-data) .bd-time::before,
:where(body.pg-dashboard-big-data) .bd-time::after {
        width: 6px;
        height: 6px;
    }

:where(body.pg-dashboard-big-data) .bd-layout {
        padding: 8px;
        gap: 8px;
    }

:where(body.pg-dashboard-big-data) .bd-card {
        padding: 10px;
        border-radius: 8px;
    }

:where(body.pg-dashboard-big-data) .bd-card-title {
        font-size: 13px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

:where(body.pg-dashboard-big-data) .bd-stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

:where(body.pg-dashboard-big-data) .bd-stat-item {
        padding: 8px;
    }

:where(body.pg-dashboard-big-data) .bd-stat-icon {
        width: 32px;
        height: 32px;
    }

:where(body.pg-dashboard-big-data) .bd-stat-label {
        font-size: 10px;
    }

:where(body.pg-dashboard-big-data) .bd-stat-value {
        font-size: 16px;
    }

:where(body.pg-dashboard-big-data) .bd-chart-container {
        height: 150px;
    }

:where(body.pg-dashboard-big-data) .bd-map-container {
        min-height: 350px;
    }

:where(body.pg-dashboard-big-data) .bd-map-switch {
        flex-direction: row;
        gap: 6px;
    }

:where(body.pg-dashboard-big-data) .bd-map-switch-btn {
        padding: 3px 10px;
        font-size: 11px;
    }

:where(body.pg-dashboard-big-data) .bd-ring-chart {
        height: 150px;
    }

:where(body.pg-dashboard-big-data) .bd-ring-value {
        font-size: 22px;
    }

:where(body.pg-dashboard-big-data) .bd-ring-label {
        font-size: 10px;
    }

:where(body.pg-dashboard-big-data) .bd-legend-item {
        font-size: 10px;
    }

:where(body.pg-dashboard-big-data) .bd-location-name {
        width: 60px;
        font-size: 10px;
    }

:where(body.pg-dashboard-big-data) .bd-location-count {
        width: 25px;
        font-size: 10px;
    }

:where(body.pg-dashboard-big-data) .bd-realtime-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

:where(body.pg-dashboard-big-data) .bd-realtime-item {
        padding: 8px;
    }

:where(body.pg-dashboard-big-data) .bd-realtime-label {
        font-size: 10px;
    }

:where(body.pg-dashboard-big-data) .bd-realtime-value {
        font-size: 14px;
    }

:where(body.pg-dashboard-big-data) .bd-list-item {
        padding: 6px 8px;
    }

:where(body.pg-dashboard-big-data) .bd-list-rank {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

:where(body.pg-dashboard-big-data) .bd-list-name {
        font-size: 11px;
    }

:where(body.pg-dashboard-big-data) .bd-list-value {
        font-size: 11px;
    }

:where(body.pg-dashboard-big-data) .bd-status-info {
        font-size: 10px;
    }

:where(body.pg-dashboard-big-data) .bd-fullscreen-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

}

/* 响应式 - 小屏手机 */
@media (max-width: 480px) {
:where(body.pg-dashboard-big-data) .bd-header {
        padding: 8px 12px;
    }

:where(body.pg-dashboard-big-data) .bd-title {
        font-size: 16px;
        letter-spacing: 1px;
    }

:where(body.pg-dashboard-big-data) .bd-time {
        font-size: 12px;
        padding: 3px 8px;
        letter-spacing: 1px;
    }

:where(body.pg-dashboard-big-data) .bd-time::before,
:where(body.pg-dashboard-big-data) .bd-time::after {
        width: 5px;
        height: 5px;
    }

:where(body.pg-dashboard-big-data) .bd-layout {
        padding: 6px;
        gap: 6px;
    }

:where(body.pg-dashboard-big-data) .bd-card {
        padding: 8px;
        border-radius: 6px;
    }

:where(body.pg-dashboard-big-data) .bd-card-title {
        font-size: 12px;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

:where(body.pg-dashboard-big-data) .bd-card-title-icon {
        width: 6px;
        height: 6px;
    }

:where(body.pg-dashboard-big-data) .bd-stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

:where(body.pg-dashboard-big-data) .bd-stat-item {
        padding: 6px;
        gap: 8px;
    }

:where(body.pg-dashboard-big-data) .bd-stat-icon {
        width: 28px;
        height: 28px;
    }

:where(body.pg-dashboard-big-data) .bd-stat-icon svg {
        width: 18px;
        height: 18px;
    }

:where(body.pg-dashboard-big-data) .bd-stat-label {
        font-size: 9px;
    }

:where(body.pg-dashboard-big-data) .bd-stat-value {
        font-size: 14px;
    }

:where(body.pg-dashboard-big-data) .bd-chart-container {
        height: 120px;
    }

:where(body.pg-dashboard-big-data) .bd-map-container {
        min-height: 280px;
    }

:where(body.pg-dashboard-big-data) .bd-map-switch-btn {
        padding: 2px 8px;
        font-size: 10px;
    }

:where(body.pg-dashboard-big-data) .bd-ring-chart {
        height: 130px;
    }

:where(body.pg-dashboard-big-data) .bd-ring-value {
        font-size: 18px;
    }

:where(body.pg-dashboard-big-data) .bd-ring-label {
        font-size: 9px;
    }

:where(body.pg-dashboard-big-data) .bd-legend-item {
        font-size: 9px;
        gap: 6px;
    }

:where(body.pg-dashboard-big-data) .bd-legend-dot {
        width: 6px;
        height: 6px;
    }

:where(body.pg-dashboard-big-data) .bd-location-name {
        width: 50px;
        font-size: 9px;
    }

:where(body.pg-dashboard-big-data) .bd-location-count {
        width: 22px;
        font-size: 9px;
    }

:where(body.pg-dashboard-big-data) .bd-realtime-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

:where(body.pg-dashboard-big-data) .bd-realtime-item {
        padding: 6px;
    }

:where(body.pg-dashboard-big-data) .bd-realtime-label {
        font-size: 9px;
    }

:where(body.pg-dashboard-big-data) .bd-realtime-value {
        font-size: 12px;
    }

:where(body.pg-dashboard-big-data) .bd-list-item {
        padding: 5px 6px;
        gap: 8px;
    }

:where(body.pg-dashboard-big-data) .bd-list-rank {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }

:where(body.pg-dashboard-big-data) .bd-list-name {
        font-size: 10px;
    }

:where(body.pg-dashboard-big-data) .bd-list-value {
        font-size: 10px;
    }

:where(body.pg-dashboard-big-data) .bd-status-bar {
        height: 4px;
    }

:where(body.pg-dashboard-big-data) .bd-status-info {
        font-size: 9px;
    }

:where(body.pg-dashboard-big-data) .bd-fullscreen-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

:where(body.pg-dashboard-big-data) .bd-fullscreen-btn svg {
        width: 14px;
        height: 14px;
    }

}


/* ==================================================================
   合并原 chat.css（私信页）
   ================================================================== */
:where(body.pg-dashboard-chat-index) .chat-wrapper {
    display: flex;
    height: calc(100vh - 130px);
    background: var(--bg-card, #fff);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color, #e8e8e8);
}

:where(body.pg-dashboard-chat-index) .chat-sidebar {
    width: 300px;
    border-right: 1px solid var(--border-color, #e8e8e8);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

:where(body.pg-dashboard-chat-index) .chat-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color, #e8e8e8);
}

:where(body.pg-dashboard-chat-index) .chat-sidebar-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #333);
}

:where(body.pg-dashboard-chat-index) .chat-new-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--theme-primary, #e74c3c);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

:where(body.pg-dashboard-chat-index) .chat-new-btn:hover {
    opacity: 0.85;
}

:where(body.pg-dashboard-chat-index) .chat-conv-list {
    flex: 1;
    overflow-y: auto;
}

:where(body.pg-dashboard-chat-index) .chat-loading {
    padding: 40px 16px;
    text-align: center;
    color: var(--text-muted, #999);
    font-size: 14px;
}

:where(body.pg-dashboard-chat-index) .chat-conv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light, #f0f0f0);
    transition: background 0.15s;
}

:where(body.pg-dashboard-chat-index) .chat-conv-item:hover {
    background: var(--bg-hover, #f8f8f8);
}

:where(body.pg-dashboard-chat-index) .chat-conv-item.active {
    background: var(--bg-active, #f0f7ff);
}

:where(body.pg-dashboard-chat-index) .chat-conv-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-muted, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #999);
}

:where(body.pg-dashboard-chat-index) .chat-conv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(body.pg-dashboard-chat-index) .chat-conv-info {
    flex: 1;
    min-width: 0;
}

:where(body.pg-dashboard-chat-index) .chat-conv-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

:where(body.pg-dashboard-chat-index) .chat-conv-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #333);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(body.pg-dashboard-chat-index) .chat-conv-time {
    font-size: 12px;
    color: var(--text-muted, #999);
    flex-shrink: 0;
}

:where(body.pg-dashboard-chat-index) .chat-conv-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}

:where(body.pg-dashboard-chat-index) .chat-conv-msg {
    font-size: 13px;
    color: var(--text-secondary, #666);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

:where(body.pg-dashboard-chat-index) .chat-conv-unread {
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--theme-primary, #e74c3c);
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    flex-shrink: 0;
}

:where(body.pg-dashboard-chat-index) .chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

:where(body.pg-dashboard-chat-index) .chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #999);
    gap: 16px;
}

:where(body.pg-dashboard-chat-index) .chat-empty p {
    margin: 0;
    font-size: 15px;
}

:where(body.pg-dashboard-chat-index) .chat-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

:where(body.pg-dashboard-chat-index) .chat-view-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color, #e8e8e8);
    cursor: pointer;
}

:where(body.pg-dashboard-chat-index) .chat-back-btn {
    display: none;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-primary, #333);
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

:where(body.pg-dashboard-chat-index) .chat-back-btn:hover {
    background: var(--bg-hover, #f0f0f0);
}

:where(body.pg-dashboard-chat-index) .chat-view-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-muted, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #999);
    flex-shrink: 0;
}

:where(body.pg-dashboard-chat-index) .chat-view-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(body.pg-dashboard-chat-index) .chat-view-info {
    flex: 1;
    min-width: 0;
}

:where(body.pg-dashboard-chat-index) .chat-view-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #333);
}

:where(body.pg-dashboard-chat-index) .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:where(body.pg-dashboard-chat-index) .chat-load-more {
    align-self: center;
    padding: 6px 16px;
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 16px;
    background: var(--bg-card, #fff);
    color: var(--text-secondary, #666);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}

:where(body.pg-dashboard-chat-index) .chat-load-more:hover {
    background: var(--bg-hover, #f0f0f0);
}

:where(body.pg-dashboard-chat-index) .chat-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 75%;
}

:where(body.pg-dashboard-chat-index) .chat-msg-mine {
    align-self: flex-end;
    flex-direction: row-reverse;
}

:where(body.pg-dashboard-chat-index) .chat-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-muted, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #999);
}

:where(body.pg-dashboard-chat-index) .chat-msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(body.pg-dashboard-chat-index) .chat-msg-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

:where(body.pg-dashboard-chat-index) .chat-msg-mine .chat-msg-body {
    align-items: flex-end;
}

:where(body.pg-dashboard-chat-index) .chat-msg-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    background: var(--bg-muted, #f0f0f0);
    color: var(--text-primary, #333);
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    max-width: 100%;
}

:where(body.pg-dashboard-chat-index) .chat-msg-mine .chat-msg-bubble {
    background: var(--theme-primary, #e74c3c);
    color: #fff;
    border-bottom-right-radius: 4px;
}

:where(body.pg-dashboard-chat-index) .chat-msg:not(.chat-msg-mine) .chat-msg-bubble {
    border-bottom-left-radius: 4px;
}

:where(body.pg-dashboard-chat-index) .chat-msg-text {
    white-space: pre-wrap;
}

:where(body.pg-dashboard-chat-index) .chat-msg-text a {
    color: inherit;
    text-decoration: underline;
    opacity: 0.85;
}

:where(body.pg-dashboard-chat-index) .chat-msg-image {
    max-width: 240px;
    max-height: 240px;
    border-radius: 8px;
    cursor: pointer;
    display: block;
}

:where(body.pg-dashboard-chat-index) .chat-msg-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    min-width: 180px;
}

:where(body.pg-dashboard-chat-index) .chat-msg-file-info {
    flex: 1;
    min-width: 0;
}

:where(body.pg-dashboard-chat-index) .chat-msg-file-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

:where(body.pg-dashboard-chat-index) .chat-msg-file-size {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 2px;
}

:where(body.pg-dashboard-chat-index) .chat-msg-time {
    font-size: 11px;
    color: var(--text-muted, #999);
    padding: 0 4px;
}

:where(body.pg-dashboard-chat-index) .chat-input-area {
    border-top: 1px solid var(--border-color, #e8e8e8);
    padding: 8px 16px 12px;
    flex-shrink: 0;
}

:where(body.pg-dashboard-chat-index) .chat-toolbar {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

:where(body.pg-dashboard-chat-index) .chat-tool-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    color: var(--text-secondary, #666);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

:where(body.pg-dashboard-chat-index) .chat-tool-btn:hover {
    background: var(--bg-hover, #f0f0f0);
    color: var(--text-primary, #333);
}

:where(body.pg-dashboard-chat-index) .chat-emoji-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 8px;
    margin-bottom: 8px;
    max-height: 150px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

:where(body.pg-dashboard-chat-index) .chat-emoji-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
}

:where(body.pg-dashboard-chat-index) .chat-emoji-item:hover {
    background: var(--bg-hover, #f0f0f0);
}

:where(body.pg-dashboard-chat-index) .chat-input-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

:where(body.pg-dashboard-chat-index) .chat-input {
    flex: 1;
    height: var(--ta-h, auto);
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    outline: none;
    font-family: inherit;
    background: var(--bg-input, #f8f8f8);
    color: var(--text-primary, #333);
    transition: border-color 0.15s;
}

:where(body.pg-dashboard-chat-index) .chat-input:focus {
    border-color: var(--theme-primary, #e74c3c);
}

:where(body.pg-dashboard-chat-index) .chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--theme-primary, #e74c3c);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

:where(body.pg-dashboard-chat-index) .chat-send-btn:hover {
    opacity: 0.85;
}

:where(body.pg-dashboard-chat-index) .chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

:where(body.pg-dashboard-chat-index) .chat-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

:where(body.pg-dashboard-chat-index) .chat-modal {
    background: var(--bg-card, #fff);
    border-radius: 12px;
    width: 400px;
    max-width: 90vw;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

:where(body.pg-dashboard-chat-index) .chat-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color, #e8e8e8);
}

:where(body.pg-dashboard-chat-index) .chat-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #333);
}

:where(body.pg-dashboard-chat-index) .chat-modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-muted, #999);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

:where(body.pg-dashboard-chat-index) .chat-modal-close:hover {
    background: var(--bg-hover, #f0f0f0);
}

:where(body.pg-dashboard-chat-index) .chat-modal-body {
    padding: 16px;
    overflow-y: auto;
}

:where(body.pg-dashboard-chat-index) .chat-modal-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: var(--bg-input, #f8f8f8);
    color: var(--text-primary, #333);
}

:where(body.pg-dashboard-chat-index) .chat-modal-input:focus {
    border-color: var(--theme-primary, #e74c3c);
}

:where(body.pg-dashboard-chat-index) .chat-search-results {
    margin-top: 12px;
}

:where(body.pg-dashboard-chat-index) .chat-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

:where(body.pg-dashboard-chat-index) .chat-search-item:hover {
    background: var(--bg-hover, #f0f0f0);
}

:where(body.pg-dashboard-chat-index) .chat-search-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-muted, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #999);
    flex-shrink: 0;
}

:where(body.pg-dashboard-chat-index) .chat-search-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(body.pg-dashboard-chat-index) .chat-search-name {
    font-size: 14px;
    color: var(--text-primary, #333);
}

:where(body.pg-dashboard-chat-index) .chat-search-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-muted, #999);
    font-size: 14px;
}

:where(body.pg-dashboard-chat-index) .chat-msg audio {
    max-width: 220px;
    height: 36px;
}

@media (max-width: 768px) {
:where(body.pg-dashboard-chat-index) .chat-wrapper {
        height: calc(100vh - 120px);
    }

:where(body.pg-dashboard-chat-index) .chat-sidebar {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        background: var(--bg-card, #fff);
    }

:where(body.pg-dashboard-chat-index) .chat-sidebar.hidden-mobile {
        display: none;
    }

:where(body.pg-dashboard-chat-index) .chat-back-btn {
        display: flex;
    }

:where(body.pg-dashboard-chat-index) .chat-msg {
        max-width: 85%;
    }

:where(body.pg-dashboard-chat-index) .chat-msg-image {
        max-width: 180px;
        max-height: 180px;
    }

}


/* ==================================================================
   合并原 login-page.css（登录/找回密码页）
   ================================================================== */
/* ============================================
   Auth Page — Login / Register (Standalone)
   ============================================ */
:where(html.island-auth) * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.island-auth,
:where(html.island-auth) body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    overflow: hidden;
}

:where(html.island-auth) .auth-page {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

:where(html.island-auth) .auth-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(224, 122, 95, 0.3) 0%, rgba(129, 178, 154, 0.3) 100%),
        url('/public/upload/background/login.jpg') center/cover no-repeat;
    background-color: #81b29a;
    z-index: 0;
    opacity: 1;
}

:where(html.island-auth) .auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

:where(html.island-auth) .auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    padding: 10px;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

:where(html.island-auth) .auth-container::-webkit-scrollbar {
    display: none;
}

:where(html.island-auth) .auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px 28px;
}

:where(html.island-auth) .auth-header {
    text-align: center;
    margin-bottom: 20px;
}

:where(html.island-auth) .auth-logo-link {
    display: block;
    width: 100%;
    max-width: 120px;
    margin: 0 auto 12px;
}

:where(html.island-auth) .auth-logo {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: contain;
    display: block;
}

:where(html.island-auth) .auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 8px;
}

:where(html.island-auth) .auth-subtitle {
    font-size: 14px;
    color: #7c8a97;
}

:where(html.island-auth) .auth-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
}

:where(html.island-auth) .auth-msg-error {
    background: #fef2f2;
    color: #e74c3c;
    border: 1px solid #fecaca;
}

:where(html.island-auth) .auth-msg-success {
    background: #f0fdf4;
    color: #4caf50;
    border: 1px solid #bbf7d0;
}

:where(html.island-auth) .auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #e8e6e1;
}

:where(html.island-auth) .auth-tab {
    flex: 1;
    padding: 12px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 15px;
    font-weight: 500;
    color: #7c8a97;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
}

:where(html.island-auth) .auth-tab:hover {
    color: #2d3436;
}

:where(html.island-auth) .auth-tab.active {
    color: #e07a5f;
    border-bottom-color: #e07a5f;
}

:where(html.island-auth) .auth-form {
    display: none;
    flex-direction: column;
    gap: 12px;
}

:where(html.island-auth) .auth-form.is-active {
    display: flex;
}

:where(html.island-auth) .auth-field {
    display: flex;
    flex-direction: column;
}

:where(html.island-auth) .auth-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    color: #2d3436;
    background: #faf9f6;
    border: 1px solid #e8e6e1;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
}

:where(html.island-auth) .auth-input:focus {
    border-color: #e07a5f;
}

:where(html.island-auth) .auth-input::placeholder {
    color: #b0b8c1;
}

:where(html.island-auth) .auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

:where(html.island-auth) .auth-input-wrap .auth-input {
    padding-right: 44px;
}

:where(html.island-auth) .auth-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #7c8a97;
    display: flex;
    align-items: center;
    justify-content: center;
}

:where(html.island-auth) .auth-eye:hover {
    color: #2d3436;
}

:where(html.island-auth) .auth-code-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #e07a5f;
    background: none;
    border: 1px solid #e07a5f;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease, color 0.3s ease;
}

:where(html.island-auth) .auth-code-btn:hover {
    background: #e07a5f;
    color: #fff;
}

:where(html.island-auth) .auth-code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

:where(html.island-auth) .auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

:where(html.island-auth) .auth-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #7c8a97;
    cursor: pointer;
}

:where(html.island-auth) .auth-check input[type="checkbox"] {
    accent-color: #e07a5f;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

:where(html.island-auth) .auth-check a {
    color: #e07a5f;
    text-decoration: none;
}

:where(html.island-auth) .auth-check a:hover {
    text-decoration: underline;
}

:where(html.island-auth) .auth-check-agree {
    font-size: 12px;
    margin-top: 4px;
}

:where(html.island-auth) .auth-link {
    font-size: 13px;
    color: #e07a5f;
    text-decoration: none;
}

:where(html.island-auth) .auth-link:hover {
    text-decoration: underline;
}

:where(html.island-auth) .auth-btn {
    width: 100%;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #e07a5f;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 8px;
}

:where(html.island-auth) .auth-btn:hover {
    background: #c4624a;
}

:where(html.island-auth) .auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 20px;
    color: #7c8a97;
    font-size: 12px;
}

:where(html.island-auth) .auth-divider::before,
:where(html.island-auth) .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e6e1;
}

:where(html.island-auth) .auth-oauth {
    display: flex;
    justify-content: center;
    gap: 16px;
}

:where(html.island-auth) .auth-oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e8e6e1;
    border-radius: 8px;
    text-decoration: none;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

:where(html.island-auth) .auth-oauth-btn:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

:where(html.island-auth) .auth-oauth-qq:hover {
    border-color: #faad08;
}

:where(html.island-auth) .auth-oauth-alipay:hover {
    border-color: #079adf;
}

:where(html.island-auth) .auth-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 10px 24px;
    background: #2d3436;
    color: #fff;
    font-size: 14px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10000;
    pointer-events: none;
}

:where(html.island-auth) .auth-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
:where(html.island-auth) .auth-card {
        padding: 28px 20px;
    }

:where(html.island-auth) .auth-title {
        font-size: 22px;
    }

:where(html.island-auth) .auth-oauth {
        gap: 12px;
    }

}


/* ==================================================================
   动态值变量（模板只输出 style="--变量:值"，此处消费）
   ================================================================== */

:where(html.island-console) .cl-color-dot { background: var(--dot-color, transparent); }
:where(html.island-console) .favorite-status { background: var(--sc-bg, transparent); color: var(--sc-fg, inherit); }
:where(html.island-console) .notification-icon { background: var(--tc-bg, transparent); color: var(--tc-fg, inherit); }
:where(html.island-console) .notif-type-tag { background: var(--tc-bg, transparent); color: var(--tc-fg, inherit); }
:where(html.island-console) .transaction-icon { background: var(--tx-bg, transparent); color: var(--tx-fg, inherit); }
:where(html.island-console) .vip-badge-current { background: var(--badge-bg, #8891a4); }
:where(body.pg-dashboard-warehouse-index, body.pg-dashboard-warehouse-stats) .whd-bar-fill { width: var(--bar-w, 0%); }
:where(html.island-console) .cl-color-picker-dot { background: var(--dot-color, transparent); }
:where(body.pg-dashboard-big-data) .bd-legend-dot { background: var(--dot-color, transparent); }
:where(html.island-console) .detail-type-tag { background: var(--tc-bg, transparent); color: var(--tc-fg, inherit); }
:where(html.island-console) .dash-bucket-fill { width: var(--bucket-w, 0%); }
:where(body.pg-dashboard-warehouse-stats) .whd-chart-bar { height: var(--bar-h, 3px); }
:where(html.island-nav) .nav-bg { background-image: var(--nav-bg, none); }
:where(html.island-nav) .nav-time { font-weight: var(--nav-weight, 600); }
:where(html.island-front) .ww-uh-banner { background-image: var(--uh-bg, url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&q=80')); }
:where(html.island-front) .ww-uh-card-color,
:where(html.island-front) .ww-comm-card-color { background: var(--dot-color, transparent); }
:where(body.pg-tags) .ww-tags-bubble { font-size: calc(var(--bubble-scale, 1) * 1em); }
:where(body.pg-dashboard-big-data) .bd-list-rank { background: var(--rank-bg, rgba(255,255,255,0.1)); }
:where(body.pg-dashboard-big-data) .bd-status-fill,
:where(body.pg-dashboard-big-data) .bd-location-fill { width: var(--fill-w, 0%); }


/* ==================================================================
   JS 动态样式（原 JS 拼接标记里的内联样式迁移）
   ================================================================== */

/* ---------- 全局确认框 ---------- */
:where(html.island-console) .confirm-dialog-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 99999; }
:where(html.island-console) .confirm-dialog-box { background: #fff; border-radius: 12px; padding: 32px; max-width: 400px; width: 90%; text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,0.15); animation: confirmFadeIn 0.3s ease; }
:where(html.island-console) .confirm-dialog-icon { margin-bottom: 16px; color: #ff9800; }
:where(html.island-console) .confirm-dialog-msg { font-size: 16px; color: #333; margin-bottom: 24px; line-height: 1.5; }
:where(html.island-console) .confirm-dialog-actions { display: flex; gap: 12px; justify-content: center; }
:where(html.island-console) .confirm-cancel-btn,
:where(html.island-console) .confirm-ok-btn { padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; border: none; min-width: 80px; }
:where(html.island-console) .confirm-cancel-btn { background: #f5f7fa; color: #666; }
:where(html.island-console) .confirm-ok-btn { background: var(--theme-primary); color: #fff; }

/* ---------- 收藏合集移动菜单 ---------- */
:where(html.island-console) .move-menu-btn { display: block; width: 100%; text-align: left; padding: 8px 16px; border: none; background: none; cursor: pointer; font-size: 13px; color: #333; }
:where(html.island-console) .fav-move-menu { top: var(--menu-top, 0px); left: var(--menu-left, 0px); }
:where(html.island-console) .move-menu-new { color: #ff6b6b; }
:where(html.island-console) .move-menu-divider { border-top: 1px solid #eee; margin: 4px 0; }

/* ---------- 剪贴板兼容用的隐藏输入框 ---------- */
.clip-helper { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* ---------- 轮播切页方向态 ---------- */
:where(html.island-front) .ww-cd-carousel-slide.sl-out-next,
:where(html.island-front) .ww-detail-modal-carousel-slide.sl-out-next { transform: translateX(-100%); opacity: 0; }
:where(html.island-front) .ww-cd-carousel-slide.sl-out-prev,
:where(html.island-front) .ww-detail-modal-carousel-slide.sl-out-prev { transform: translateX(100%); opacity: 0; }
:where(html.island-front) .ww-cd-carousel-slide.sl-pre-next,
:where(html.island-front) .ww-detail-modal-carousel-slide.sl-pre-next { transition: none; transform: translateX(100%); opacity: 0; }
:where(html.island-front) .ww-cd-carousel-slide.sl-pre-prev,
:where(html.island-front) .ww-detail-modal-carousel-slide.sl-pre-prev { transition: none; transform: translateX(-100%); opacity: 0; }

/* ---------- 卡片封面换图淡入 ---------- */
:where(html.island-front) .img-fade { transition: opacity 0.5s ease; }
:where(html.island-front) .img-fade.img-out { opacity: 0; }

/* ---------- 播放进度条 ---------- */
:where(html.island-front) .ww-cd-video-progress-fill,
:where(html.island-front) .ww-cd-music-ctrl-fill,
:where(html.island-front) .ww-detail-modal-video-progress-fill,
:where(html.island-front) .ww-detail-modal-audio-progress-fill { width: var(--progress, 0); }

/* ---------- 控制台支付二维码 ---------- */
:where(html.island-console) .qr-ph { width: 200px; height: 200px; margin: 0 auto; background: #f5f5f5; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #8891a4; }
:where(html.island-console) .qr-ph-error { color: #ef4444; }
:where(html.island-console) .qr-frame { width: 200px; height: 200px; margin: 0 auto; background: #fff; padding: 10px; border-radius: 8px; }
:where(html.island-console) .qr-frame img { width: 100%; height: 100%; }
:where(html.island-console) .qr-frame-ph { width: 100%; height: 100%; background: #f5f5f5; display: flex; align-items: center; justify-content: center; color: #999; }

/* ---------- 搜索引擎管理 ---------- */
:where(html.island-console, html.island-nav) .nav-engine-arrow-btn:disabled,
:where(html.island-console, html.island-nav) .nav-engine-action-btn:disabled { opacity: .3; pointer-events: none; }
:where(html.island-console, html.island-nav) .nav-engine-collapse-header .nav-engine-section-count { margin-left: auto; }
:where(html.island-console, html.island-nav) .nav-engine-action-btn[data-action="show"] { color: #4caf50; }
:where(html.island-console, html.island-nav) .nav-engine-action-btn[data-action="show"]:hover { border-color: #aaa; color: #333; }
:where(html.island-nav) .nav-engine-empty { padding: 12px 10px; color: #aaa; font-size: 13px; }
:where(html.island-console) .nav-engine-empty { padding: 12px 8px; color: #aaa; font-size: 13px; }
:where(html.island-nav) .nav-search-engine-empty { padding: 14px 18px; color: rgba(255,255,255,.35); font-size: 14px; }

/* ---------- 折叠容器（展开高度由 JS 写入 --cat-h；默认 none 保证折叠动画从实测高度开始） ---------- */
:where(html.island-nav) .nav-cat-body { max-height: var(--cat-h, none); }
:where(html.island-console, html.island-nav) .nav-engine-collapse-body { max-height: var(--cat-h, none); }

/* ---------- 列数滑杆禁用态（原 JS style.opacity 写入） ---------- */
:where(html.island-nav) .nav-modal-range:disabled,
:where(html.island-console) .nav-opacity-slider:disabled { opacity: .4; }

/* ---------- 工作台趋势图图例点（原 JS style.background 写入） ---------- */
:where(html.island-console) .dash-legend-dot[data-k="content"] { background: var(--theme-primary, #e07a5f); }
:where(html.island-console) .dash-legend-dot[data-k="warehouse"] { background: #8ea3b8; }

/* ---------- 大数据页数字滚动高亮（原 JS style.color/textShadow 写入） ---------- */
:where(body.pg-dashboard-big-data) .bd-realtime-value.bd-num-anim {
    color: var(--theme-primary, #e07a5f);
    text-shadow: 0 0 10px color-mix(in srgb, var(--theme-primary, #e07a5f) 50%, transparent);
}

/* ---------- 主题切换图标（原 JS style.display 写入，显隐改由 dashboard-dark 类控制） ---------- */
:where(html.island-console) .theme-icon-light { display: block; }

/* ---------- 导航站点图标与网格 ---------- */
:where(html.island-nav) .nav-item-icon,
:where(html.island-nav) .nav-item-icon-fallback { border-radius: var(--icon-radius, 12px); }
:where(html.island-nav) .nav-item-icon-fallback { background: var(--icon-bg, transparent); }
:where(html.island-nav) .nav-list .nav-item-icon,
:where(html.island-nav) .nav-list .nav-item-icon-fallback { border-radius: var(--icon-radius, 7px); }
:where(html.island-nav) .nav-layout { grid-template-columns: var(--grid-cols, none); max-width: var(--grid-max-w, none); margin: 0 auto; }

/* ---------- 分类权限标记 ---------- */
:where(body.pg-dashboard-content-category) .cat-badge-private { background: rgba(255,152,0,0.08); color: #e67e00; }

/* ---------- 收藏仓库一键导入 ---------- */
:where(body.pg-dashboard-warehouse-import) .whi-empty-remote { margin-top: 14px; }
:where(body.pg-dashboard-warehouse-import) .whi-qr-loading { padding: 20px; }
:where(body.pg-dashboard-warehouse-import) .whi-qr-actions { text-align: center; }
:where(body.pg-dashboard-warehouse-import) .whi-hint-block { margin-bottom: 10px; }
:where(body.pg-dashboard-warehouse-import) .whi-open-row { margin-bottom: 12px; }
:where(body.pg-dashboard-warehouse-import) .whi-open-hint { margin-left: 8px; }
:where(body.pg-dashboard-warehouse-import) .whi-save-row { margin-top: 10px; }

/* ---------- 详情弹窗动态标记 ---------- */
:where(html.island-front) .ww-detail-modal-loading-sm { height: 100px; }
:where(html.island-front) .ww-detail-modal-carousel-slide img,
:where(html.island-front) .ww-detail-modal-note-imgs img,
:where(html.island-front) .ww-detail-modal-trace-imgs img { cursor: zoom-in; }
:where(html.island-front) .ww-detail-modal-comment-reply { margin-left: 20px; padding: 8px 0; border-bottom: 1px solid #f8f8f8; }
:where(html.island-front) .ww-detail-modal-reply-to { font-size: 11px; color: #ccc; }

/* ---------- 头部滚动阴影（原 script.js style.boxShadow 写入） ---------- */
:where(html.island-front) .ww-header.is-rest { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06); }
:where(html.island-front) .ww-header.is-stuck { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); }

/* ---------- 汉堡按钮展开态（原 script.js style.transform/opacity 写入） ---------- */
:where(html.island-front) .mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
:where(html.island-front) .mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
:where(html.island-front) .mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* ---------- 滚动入场卡片（原 script.js style.opacity/transform/transition 写入） ---------- */
:where(html.island-front) .feature-card { opacity: 0; transform: translateY(30px); transition: all 0.6s ease var(--fade-delay, 0s); }
:where(html.island-front) .feature-card.revealed { opacity: 1; transform: translateY(0); }


/* ==================================================================
   内联样式工具类（原模板 style="…" 属性迁移，勿手动复用）
   ================================================================== */
.u-align-items-center.u-align-items-center.u-align-items-center{align-items:center}
.u-align-items-flex-end.u-align-items-flex-end.u-align-items-flex-end{align-items:flex-end}
.u-align-self-flex-start.u-align-self-flex-start.u-align-self-flex-start{align-self:flex-start}
.u-background-007bff.u-background-007bff.u-background-007bff{background:#007BFF}
.u-background-10b981.u-background-10b981.u-background-10b981{background:#10B981}
.u-background-10b981-2.u-background-10b981-2.u-background-10b981-2{background:#10b981}
.u-background-111827.u-background-111827.u-background-111827{background:#111827}
.u-background-3b82f6.u-background-3b82f6.u-background-3b82f6{background:#3B82F6}
.u-background-6b7280.u-background-6b7280.u-background-6b7280{background:#6B7280}
.u-background-6b8eff.u-background-6b8eff.u-background-6b8eff{background:#6B8EFF}
.u-background-8b5cf6.u-background-8b5cf6.u-background-8b5cf6{background:#8B5CF6}
.u-background-8b5cf6-2.u-background-8b5cf6-2.u-background-8b5cf6-2{background:#8b5cf6}
.u-background-color-mix-in-srgb-var-them-x8l8a.u-background-color-mix-in-srgb-var-them-x8l8a.u-background-color-mix-in-srgb-var-them-x8l8a{background:color-mix(in srgb, var(--theme-primary) 10%, transparent)}
.u-background-conic-gradient-red-yellow--17psv.u-background-conic-gradient-red-yellow--17psv.u-background-conic-gradient-red-yellow--17psv{background:conic-gradient(red,yellow,lime,aqua,blue,magenta,red)}
.u-background-e07a5f.u-background-e07a5f.u-background-e07a5f{background:#e07a5f}
.u-background-e2e8f0.u-background-e2e8f0.u-background-e2e8f0{background:#e2e8f0}
.u-background-e74c3c.u-background-e74c3c.u-background-e74c3c{background:#e74c3c}
.u-background-ec4899.u-background-ec4899.u-background-ec4899{background:#EC4899}
.u-background-ef4444.u-background-ef4444.u-background-ef4444{background:#EF4444}
.u-background-ef4444-2.u-background-ef4444-2.u-background-ef4444-2{background:#ef4444}
.u-background-f0f0f0.u-background-f0f0f0.u-background-f0f0f0{background:#f0f0f0}
.u-background-f59e0b.u-background-f59e0b.u-background-f59e0b{background:#F59E0B}
.u-background-ff6b6b.u-background-ff6b6b.u-background-ff6b6b{background:#ff6b6b}
.u-background-ff6b8a.u-background-ff6b8a.u-background-ff6b8a{background:#FF6B8A}
.u-background-ffb547.u-background-ffb547.u-background-ffb547{background:#FFB547}
.u-background-fff.u-background-fff.u-background-fff{background:#fff}
.u-background-ffffff.u-background-ffffff.u-background-ffffff{background:#ffffff}
.u-background-image-url-public-template-island-12sp3.u-background-image-url-public-template-island-12sp3.u-background-image-url-public-template-island-12sp3{background-image:url('/public/template/island/assets/image/nav-bg-4.jpg')}
.u-background-image-url-public-template-island-1a7w4.u-background-image-url-public-template-island-1a7w4.u-background-image-url-public-template-island-1a7w4{background-image:url('/public/template/island/assets/image/nav-bg-5.jpg')}
.u-background-image-url-public-template-island-1mwx2.u-background-image-url-public-template-island-1mwx2.u-background-image-url-public-template-island-1mwx2{background-image:url('/public/template/island/assets/image/nav-bg-3.jpg')}
.u-background-image-url-public-template-island-bcbqu.u-background-image-url-public-template-island-bcbqu.u-background-image-url-public-template-island-bcbqu{background-image:url('/public/template/island/assets/image/nav-bg-1.jpg')}
.u-background-image-url-public-template-island-lnw9v.u-background-image-url-public-template-island-lnw9v.u-background-image-url-public-template-island-lnw9v{background-image:url('/public/template/island/assets/image/nav-bg-2.jpg')}
.u-background-image-url-public-upload-avatar-1pjpg.u-background-image-url-public-upload-avatar-1pjpg.u-background-image-url-public-upload-avatar-1pjpg{background-image:url('/public/upload/avatar/1.jpg')}
.u-background-image-url-public-upload-avatar-2pjpg.u-background-image-url-public-upload-avatar-2pjpg.u-background-image-url-public-upload-avatar-2pjpg{background-image:url('/public/upload/avatar/2.jpg')}
.u-background-image-url-public-upload-avatar-4pjpg.u-background-image-url-public-upload-avatar-4pjpg.u-background-image-url-public-upload-avatar-4pjpg{background-image:url('/public/upload/avatar/4.jpg')}
.u-background-image-url-public-upload-avatar-5pjpg.u-background-image-url-public-upload-avatar-5pjpg.u-background-image-url-public-upload-avatar-5pjpg{background-image:url('/public/upload/avatar/5.jpg')}
.u-background-image-url-public-upload-avatar-6pjpg.u-background-image-url-public-upload-avatar-6pjpg.u-background-image-url-public-upload-avatar-6pjpg{background-image:url('/public/upload/avatar/6.jpg')}
.u-background-image-url-public-upload-avatar-7pjpg.u-background-image-url-public-upload-avatar-7pjpg.u-background-image-url-public-upload-avatar-7pjpg{background-image:url('/public/upload/avatar/7.jpg')}
.u-background-image-url-public-upload-avatar-8pjpg.u-background-image-url-public-upload-avatar-8pjpg.u-background-image-url-public-upload-avatar-8pjpg{background-image:url('/public/upload/avatar/8.jpg')}
.u-background-image-url-public-upload-avatar-9pjpg.u-background-image-url-public-upload-avatar-9pjpg.u-background-image-url-public-upload-avatar-9pjpg{background-image:url('/public/upload/avatar/9.jpg')}
.u-background-none.u-background-none.u-background-none{background:none}
.u-background-rgba-0-0-0-0p4.u-background-rgba-0-0-0-0p4.u-background-rgba-0-0-0-0p4{background:rgba(0,0,0,0.4)}
.u-background-rgba-107-142-255-0p1.u-background-rgba-107-142-255-0p1.u-background-rgba-107-142-255-0p1{background:rgba(107,142,255,0.1)}
.u-background-rgba-16-185-129-0p1.u-background-rgba-16-185-129-0p1.u-background-rgba-16-185-129-0p1{background:rgba(16,185,129,0.1)}
.u-background-rgba-255-107-107-0p1.u-background-rgba-255-107-107-0p1.u-background-rgba-255-107-107-0p1{background:rgba(255,107,107,0.1)}
.u-background-rgba-255-107-138-0p1.u-background-rgba-255-107-138-0p1.u-background-rgba-255-107-138-0p1{background:rgba(255,107,138,0.1)}
.u-background-rgba-255-181-71-0p1.u-background-rgba-255-181-71-0p1.u-background-rgba-255-181-71-0p1{background:rgba(255,181,71,0.1)}
.u-background-rgba-28-182-119-0p1.u-background-rgba-28-182-119-0p1.u-background-rgba-28-182-119-0p1{background:rgba(28,182,119,0.1)}
.u-background-rgba-76-175-80-0p1.u-background-rgba-76-175-80-0p1.u-background-rgba-76-175-80-0p1{background:rgba(76,175,80,0.1)}
.u-background-rgba-78-115-223-0p1.u-background-rgba-78-115-223-0p1.u-background-rgba-78-115-223-0p1{background:rgba(78,115,223,0.1)}
.u-background-rgba-99-102-241-0p1.u-background-rgba-99-102-241-0p1.u-background-rgba-99-102-241-0p1{background:rgba(99,102,241,0.1)}
.u-border-1px-dashed-cbd5e1.u-border-1px-dashed-cbd5e1.u-border-1px-dashed-cbd5e1{border:1px dashed #cbd5e1}
.u-border-1px-solid-ddd.u-border-1px-solid-ddd.u-border-1px-solid-ddd{border:1px solid #ddd}
.u-border-none.u-border-none.u-border-none{border:none}
.u-border-radius-12px.u-border-radius-12px.u-border-radius-12px{border-radius:12px}
.u-border-radius-50pct.u-border-radius-50pct.u-border-radius-50pct{border-radius:50%}
.u-border-radius-8px.u-border-radius-8px.u-border-radius-8px{border-radius:8px}
.u-border-top-1px-solid-eee.u-border-top-1px-solid-eee.u-border-top-1px-solid-eee{border-top:1px solid #eee}
.u-box-shadow-0-4px-16px-rgba-0-0-0-0p15.u-box-shadow-0-4px-16px-rgba-0-0-0-0p15.u-box-shadow-0-4px-16px-rgba-0-0-0-0p15{box-shadow:0 4px 16px rgba(0,0,0,0.15)}
.u-box-sizing-border-box.u-box-sizing-border-box.u-box-sizing-border-box{box-sizing:border-box}
.u-color-10b981.u-color-10b981.u-color-10b981{color:#10b981}
.u-color-1a1d26.u-color-1a1d26.u-color-1a1d26{color:#1a1d26}
.u-color-1cb677.u-color-1cb677.u-color-1cb677{color:#1cb677}
.u-color-333.u-color-333.u-color-333{color:#333}
.u-color-4caf50.u-color-4caf50.u-color-4caf50{color:#4CAF50}
.u-color-4e73df.u-color-4e73df.u-color-4e73df{color:#4e73df}
.u-color-555.u-color-555.u-color-555{color:#555}
.u-color-6366f1.u-color-6366f1.u-color-6366f1{color:#6366f1}
.u-color-666.u-color-666.u-color-666{color:#666}
.u-color-6b7280.u-color-6b7280.u-color-6b7280{color:#6b7280}
.u-color-6b8eff.u-color-6b8eff.u-color-6b8eff{color:#6B8EFF}
.u-color-8891a4.u-color-8891a4.u-color-8891a4{color:#8891a4}
.u-color-8b5cf6.u-color-8b5cf6.u-color-8b5cf6{color:#8b5cf6}
.u-color-999.u-color-999.u-color-999{color:#999}
.u-color-ccc.u-color-ccc.u-color-ccc{color:#ccc}
.u-color-d0d6df.u-color-d0d6df.u-color-d0d6df{color:#d0d6df}
.u-color-e07a5f.u-color-e07a5f.u-color-e07a5f{color:#e07a5f}
.u-color-ec4899.u-color-ec4899.u-color-ec4899{color:#ec4899}
.u-color-f59e0b.u-color-f59e0b.u-color-f59e0b{color:#f59e0b}
.u-color-ff6b6b.u-color-ff6b6b.u-color-ff6b6b{color:#ff6b6b}
.u-color-ff6b8a.u-color-ff6b8a.u-color-ff6b8a{color:#FF6B8A}
.u-color-ffb547.u-color-ffb547.u-color-ffb547{color:#FFB547}
.u-color-fff.u-color-fff.u-color-fff{color:#fff}
.u-color-inherit.u-color-inherit.u-color-inherit{color:inherit}
.u-color-var-theme-primary.u-color-var-theme-primary.u-color-var-theme-primary{color:var(--theme-primary)}
.u-color-var-ww-primary.u-color-var-ww-primary.u-color-var-ww-primary{color:var(--ww-primary)}
.u-cursor-pointer.u-cursor-pointer.u-cursor-pointer{cursor:pointer}
.u-cursor-zoom-in.u-cursor-zoom-in.u-cursor-zoom-in{cursor:zoom-in}
.u-display-block.u-display-block.u-display-block{display:block}
.u-display-flex.u-display-flex.u-display-flex{display:flex}
.u-display-grid.u-display-grid.u-display-grid{display:grid}
.u-display-inline-block.u-display-inline-block.u-display-inline-block{display:inline-block}
.u-display-none.u-display-none.u-display-none{display:none}
.u-flex-1.u-flex-1.u-flex-1{flex:1}
.u-flex-direction-column.u-flex-direction-column.u-flex-direction-column{flex-direction:column}
.u-flex-wrap-wrap.u-flex-wrap-wrap.u-flex-wrap-wrap{flex-wrap:wrap}
.u-font-size-10px.u-font-size-10px.u-font-size-10px{font-size:10px}
.u-font-size-12px.u-font-size-12px.u-font-size-12px{font-size:12px}
.u-font-size-13px.u-font-size-13px.u-font-size-13px{font-size:13px}
.u-font-size-14px.u-font-size-14px.u-font-size-14px{font-size:14px}
.u-font-size-16px.u-font-size-16px.u-font-size-16px{font-size:16px}
.u-font-size-18px.u-font-size-18px.u-font-size-18px{font-size:18px}
.u-gap-10px.u-gap-10px.u-gap-10px{gap:10px}
.u-gap-12px.u-gap-12px.u-gap-12px{gap:12px}
.u-gap-16px.u-gap-16px.u-gap-16px{gap:16px}
.u-gap-2px.u-gap-2px.u-gap-2px{gap:2px}
.u-gap-6px.u-gap-6px.u-gap-6px{gap:6px}
.u-gap-8px.u-gap-8px.u-gap-8px{gap:8px}
.u-grid-column-1-1.u-grid-column-1-1.u-grid-column-1-1{grid-column:1 / -1}
.u-grid-template-columns-1fr-1fr.u-grid-template-columns-1fr-1fr.u-grid-template-columns-1fr-1fr{grid-template-columns:1fr 1fr}
.u-height-100pct.u-height-100pct.u-height-100pct{height:100%}
.u-height-14px.u-height-14px.u-height-14px{height:14px}
.u-height-16px.u-height-16px.u-height-16px{height:16px}
.u-height-36px.u-height-36px.u-height-36px{height:36px}
.u-justify-content-center.u-justify-content-center.u-justify-content-center{justify-content:center}
.u-justify-content-flex-end.u-justify-content-flex-end.u-justify-content-flex-end{justify-content:flex-end}
.u-left-0.u-left-0.u-left-0{left:0}
.u-line-height-16px.u-line-height-16px.u-line-height-16px{line-height:16px}
.u-line-height-1p6.u-line-height-1p6.u-line-height-1p6{line-height:1.6}
.u-line-height-1p7.u-line-height-1p7.u-line-height-1p7{line-height:1.7}
.u-margin-0-0-16px.u-margin-0-0-16px.u-margin-0-0-16px{margin:0 0 16px}
.u-margin-0-6px.u-margin-0-6px.u-margin-0-6px{margin:0 6px}
.u-margin-0-auto.u-margin-0-auto.u-margin-0-auto{margin:0 auto}
.u-margin-4px-0.u-margin-4px-0.u-margin-4px-0{margin:4px 0}
.u-margin-8px-0-16px.u-margin-8px-0-16px.u-margin-8px-0-16px{margin:-8px 0 16px}
.u-margin-bottom-12px.u-margin-bottom-12px.u-margin-bottom-12px{margin-bottom:12px}
.u-margin-bottom-16px.u-margin-bottom-16px.u-margin-bottom-16px{margin-bottom:16px}
.u-margin-bottom-20px.u-margin-bottom-20px.u-margin-bottom-20px{margin-bottom:20px}
.u-margin-bottom-8px.u-margin-bottom-8px.u-margin-bottom-8px{margin-bottom:8px}
.u-margin-top-0p5rem.u-margin-top-0p5rem.u-margin-top-0p5rem{margin-top:0.5rem}
.u-margin-top-110px.u-margin-top-110px.u-margin-top-110px{margin-top:110px}
.u-margin-top-12px.u-margin-top-12px.u-margin-top-12px{margin-top:12px}
.u-margin-top-16px.u-margin-top-16px.u-margin-top-16px{margin-top:16px}
.u-margin-top-20px.u-margin-top-20px.u-margin-top-20px{margin-top:20px}
.u-margin-top-22px.u-margin-top-22px.u-margin-top-22px{margin-top:22px}
.u-margin-top-4px.u-margin-top-4px.u-margin-top-4px{margin-top:4px}
.u-margin-top-5px.u-margin-top-5px.u-margin-top-5px{margin-top:5px}
.u-margin-top-6px.u-margin-top-6px.u-margin-top-6px{margin-top:6px}
.u-margin-top-8px.u-margin-top-8px.u-margin-top-8px{margin-top:8px}
.u-max-width-200px.u-max-width-200px.u-max-width-200px{max-width:200px}
.u-max-width-300px.u-max-width-300px.u-max-width-300px{max-width:300px}
.u-max-width-400px.u-max-width-400px.u-max-width-400px{max-width:400px}
.u-max-width-420px.u-max-width-420px.u-max-width-420px{max-width:420px}
.u-max-width-480px.u-max-width-480px.u-max-width-480px{max-width:480px}
.u-max-width-520px.u-max-width-520px.u-max-width-520px{max-width:520px}
.u-max-width-90pct.u-max-width-90pct.u-max-width-90pct{max-width:90%}
.u-min-height-120px.u-min-height-120px.u-min-height-120px{min-height:120px}
.u-min-width-160px.u-min-width-160px.u-min-width-160px{min-width:160px}
.u-min-width-16px.u-min-width-16px.u-min-width-16px{min-width:16px}
.u-opacity-0.u-opacity-0.u-opacity-0{opacity:0}
.u-opacity-0p7.u-opacity-0p7.u-opacity-0p7{opacity:0.7}
.u-outline-none.u-outline-none.u-outline-none{outline:none}
.u-padding-0-4px.u-padding-0-4px.u-padding-0-4px{padding:0 4px}
.u-padding-0px-10px.u-padding-0px-10px.u-padding-0px-10px{padding:0px 10px}
.u-padding-10px-12px.u-padding-10px-12px.u-padding-10px-12px{padding:10px 12px}
.u-padding-12px.u-padding-12px.u-padding-12px{padding:12px}
.u-padding-24px.u-padding-24px.u-padding-24px{padding:24px}
.u-padding-4px-0.u-padding-4px-0.u-padding-4px-0{padding:4px 0}
.u-padding-6px-16px.u-padding-6px-16px.u-padding-6px-16px{padding:6px 16px}
.u-padding-8px-20px.u-padding-8px-20px.u-padding-8px-20px{padding:8px 20px}
.u-padding-top-16px.u-padding-top-16px.u-padding-top-16px{padding-top:16px}
.u-padding-top-8px.u-padding-top-8px.u-padding-top-8px{padding-top:8px}
.u-position-absolute.u-position-absolute.u-position-absolute{position:absolute}
.u-position-fixed.u-position-fixed.u-position-fixed{position:fixed}
.u-position-relative.u-position-relative.u-position-relative{position:relative}
.u-resize-vertical.u-resize-vertical.u-resize-vertical{resize:vertical}
.u-right-12px.u-right-12px.u-right-12px{right:12px}
.u-right-2px.u-right-2px.u-right-2px{right:2px}
.u-text-align-center.u-text-align-center.u-text-align-center{text-align:center}
.u-text-decoration-none.u-text-decoration-none.u-text-decoration-none{text-decoration:none}
.u-text-decoration-underline.u-text-decoration-underline.u-text-decoration-underline{text-decoration:underline}
.u-top-0.u-top-0.u-top-0{top:0}
.u-top-12px.u-top-12px.u-top-12px{top:12px}
.u-top-2px.u-top-2px.u-top-2px{top:2px}
.u-width-100pct.u-width-100pct.u-width-100pct{width:100%}
.u-width-100px.u-width-100px.u-width-100px{width:100px}
.u-width-110px.u-width-110px.u-width-110px{width:110px}
.u-width-120px.u-width-120px.u-width-120px{width:120px}
.u-width-14px.u-width-14px.u-width-14px{width:14px}
.u-width-196px.u-width-196px.u-width-196px{width:196px}
.u-width-200px.u-width-200px.u-width-200px{width:200px}
.u-width-34px.u-width-34px.u-width-34px{width:34px}
.u-width-360px.u-width-360px.u-width-360px{width:360px}
.u-width-36px.u-width-36px.u-width-36px{width:36px}
.u-width-40px.u-width-40px.u-width-40px{width:40px}
.u-width-50px.u-width-50px.u-width-50px{width:50px}
.u-width-52px.u-width-52px.u-width-52px{width:52px}
.u-width-56px.u-width-56px.u-width-56px{width:56px}
.u-width-60px.u-width-60px.u-width-60px{width:60px}
.u-width-64px.u-width-64px.u-width-64px{width:64px}
.u-width-70px.u-width-70px.u-width-70px{width:70px}
.u-width-80px.u-width-80px.u-width-80px{width:80px}
.u-z-index-10001.u-z-index-10001.u-z-index-10001{z-index:10001}
.u-z-index-10002.u-z-index-10002.u-z-index-10002{z-index:10002}
.u-z-index-9998.u-z-index-9998.u-z-index-9998{z-index:9998}
.u-z-index-9999.u-z-index-9999.u-z-index-9999{z-index:9999}
