@charset "UTF-8";
/* Juwo 主题 — 视觉参考 hifast.cn / OneNav，不依赖 Layui */

:root {
    /* 对齐 hifast / OneNav io-black-mode */
    --jw-accent: #f1404b;
    --jw-main: #f1404b;
    --jw-link: #4c9aff;
    --jw-bg: #1b1d1f;
    --jw-panel: #2c2e2f;
    --jw-card: rgba(0, 0, 0, .1);
    --jw-card-hover: rgba(255, 255, 255, .06);
    --jw-text: #c6c9cf;
    --jw-title: #c6c9cf;
    --jw-muted: #888888;
    --jw-line: rgba(255, 255, 255, .06);
    --jw-side: 220px;
    --jw-side-bg: #2c2e2f;
    --jw-radius: 8px;
    --jw-radius-sm: 7px;
    --jw-top: 50px;
    --jw-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --jw-shadow: 0 4px 16px rgba(0, 0, 0, .22);
}

/* 浅色模式（主题按钮切换） */
html.light-mode {
    --jw-bg: #f9f9f9;
    --jw-panel: #ffffff;
    --jw-card: #f2f3f5;
    --jw-card-hover: #e8ebee;
    --jw-text: #555555;
    --jw-title: #333333;
    --jw-muted: #888888;
    --jw-line: rgba(0, 0, 0, .06);
    --jw-side-bg: #ffffff;
    --jw-main: #f1404b;
    --jw-shadow: 0 2px 10px rgba(41, 48, 66, .06);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--jw-bg);
    color: var(--jw-text);
    font: 14px/1.5 var(--jw-font);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--jw-text); text-decoration: none; transition: color .15s ease, background .15s ease; }
a:hover { color: var(--jw-accent); }
img { max-width: 100%; border: 0; vertical-align: middle; }
button, input { font: inherit; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; color: var(--jw-title); font-weight: 500; }

.ellipsis1 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.flex { display: flex; align-items: center; flex-wrap: wrap; }

/* —— App shell —— */
.jw-app {
    min-height: 100vh;
    display: flex;
    background: var(--jw-bg);
    overflow-x: hidden;
}

.jw-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: var(--jw-side);
    height: 100vh;
    background: var(--jw-side-bg);
    box-shadow: 2px 0 12px rgba(0, 0, 0, .18);
    border-right: 0;
    display: flex;
    flex-direction: column;
}

.jw-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 74px;
    padding: 0 16px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--jw-line);
    position: relative;
}

.jw-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.jw-brand span {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .02em;
}
html.light-mode .jw-brand span { color: #333; }

.jw-side-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0 24px;
}

.jw-side-scroll::-webkit-scrollbar { width: 3px; }
.jw-side-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .12);
    border-radius: 4px;
}
html.light-mode .jw-side-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .12);
}

.jw-side-nav { display: flex; flex-direction: column; gap: 0; }

.jw-side-item { position: relative; }

.jw-side-row {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 8px;
}

.jw-side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border-radius: 0;
    color: var(--jw-text);
    font-size: 14px;
    font-weight: 400;
    transition: color .15s ease, background .15s ease;
}

.jw-side-link .jw-ico {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

/* 简洁几何图标 */
.jw-ico-home::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 6px solid currentColor;
    position: absolute;
    top: 1px;
}
.jw-ico-home::after {
    content: "";
    position: absolute;
    bottom: 1px;
    width: 10px;
    height: 8px;
    border: 1.5px solid currentColor;
    border-top: 0;
    border-radius: 0 0 2px 2px;
    box-sizing: border-box;
}
.jw-ico-dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .5;
}

.jw-side-link .jw-ico { color: var(--jw-muted); }

.jw-side-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--jw-muted);
    cursor: pointer;
    position: relative;
    transition: transform .18s ease, color .15s ease, background .15s ease;
}
.jw-side-toggle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    margin: -4px 0 0 -5px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(-45deg);
}

.jw-side-toggle:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--jw-title);
}

.jw-side-item.is-open > .jw-side-row > .jw-side-toggle {
    transform: rotate(90deg);
    color: var(--jw-accent);
}

.jw-side-item:hover > .jw-side-row > .jw-side-link {
    background: rgba(0, 0, 0, .1);
    color: #fff;
    border-radius: 5px;
}
.jw-side-item.is-active > .jw-side-row > .jw-side-link {
    background: transparent;
    color: #ff6666;
    border-radius: 5px;
}

.jw-side-item:hover > .jw-side-row > .jw-side-link .jw-ico {
    color: #fff;
}
.jw-side-item.is-active > .jw-side-row > .jw-side-link .jw-ico {
    color: #ff6666;
}
.jw-side-item.is-active > .jw-side-row > .jw-side-link .jw-ico-dot::before {
    opacity: 1;
    background: var(--jw-accent);
}

.jw-subnav {
    display: none;
    flex-direction: column;
    gap: 1px;
    margin: 2px 0 6px;
    padding: 4px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .18);
}
html.light-mode .jw-subnav { background: rgba(0, 0, 0, .04); }

.jw-side-item.is-open > .jw-subnav { display: flex; }

.jw-sub-link {
    display: block;
    padding: 8px 12px 8px 36px;
    border-radius: 6px;
    color: var(--jw-muted);
    font-size: 13px;
    line-height: 1.3;
}

.jw-sub-link:hover {
    color: var(--jw-title);
    background: rgba(255, 255, 255, .05);
}

.jw-sub-link.is-active {
    color: var(--jw-accent);
    font-weight: 500;
    background: rgba(241, 64, 75, .1);
}

/* —— Main —— */
.jw-main {
    flex: 1;
    margin-left: var(--jw-side);
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--jw-bg);
}

.jw-topbar {
    position: sticky;
    top: 0;
    z-index: 90;
    height: var(--jw-top);
    background: rgba(27, 29, 31, .72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--jw-line);
}
html.light-mode .jw-topbar {
    background: rgba(255, 255, 255, .82);
}

.jw-top-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 100%;
}

.jw-top-item { position: relative; height: 100%; display: flex; align-items: center; }

.jw-top-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 14px;
    height: var(--jw-top);
    color: var(--jw-text);
    font-weight: 400;
    font-size: 14px;
}

.jw-top-link:hover,
.jw-top-item:hover > .jw-top-link {
    color: #fff;
}
.jw-top-item.is-active > .jw-top-link {
    color: #fff;
    font-weight: 500;
}
html.light-mode .jw-top-link:hover,
html.light-mode .jw-top-item:hover > .jw-top-link,
html.light-mode .jw-top-item.is-active > .jw-top-link {
    color: var(--jw-accent);
}

.jw-top-drop {
    display: none;
    position: absolute;
    top: var(--jw-top);
    left: 0;
    min-width: 148px;
    padding: 8px;
    background: var(--jw-panel);
    border: 1px solid var(--jw-line);
    border-radius: var(--jw-radius-sm);
    box-shadow: var(--jw-shadow);
    z-index: 95;
}

.jw-top-item:hover > .jw-top-drop,
.jw-top-item.is-open > .jw-top-drop { display: block; }

.jw-top-drop a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--jw-text);
}

.jw-top-drop a:hover {
    background: rgba(241, 64, 75, .1);
    color: var(--jw-accent);
}

.jw-user {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: visible;
    flex-shrink: 0;
    align-self: stretch;
    height: 100%;
}
.jw-user #user {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}
.jw-user .jw-top-item {
    height: 100%;
    z-index: 130;
}
.jw-user .jw-top-link {
    height: 100%;
    padding: 0 10px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
.jw-user .jw-top-drop {
    top: 100%;
    left: auto;
    right: 0;
    min-width: 132px;
    z-index: 140;
}
.jw-user .jw-top-drop::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.jw-user a {
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--jw-text);
    font-size: 13px;
}

.jw-user a:hover { color: var(--jw-title); }

.jw-user .jw-login-btn {
    background: var(--jw-accent);
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 6px;
}

.jw-burger,
.jw-theme-btn {
    display: none;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: var(--jw-title);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
html.light-mode .jw-burger,
html.light-mode .jw-theme-btn {
    background: rgba(0, 0, 0, .06);
    color: var(--jw-title);
}

.jw-top-brand {
    display: none;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    color: var(--jw-title);
}
.jw-top-brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.jw-top-brand span {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jw-top-brand:hover { color: var(--jw-title); }

.jw-msg-link {
    display: none;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--jw-title);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}
.jw-msg-link:hover { color: var(--jw-accent); }

.jw-theme-btn {
    display: inline-flex;
    font-size: 16px;
    width: 36px;
    height: 36px;
    padding: 0;
    align-self: center;
    flex-shrink: 0;
    line-height: 1;
}

.jw-content {
    flex: 1;
    width: 100%;
    padding: 0 20px 16px;
    box-sizing: border-box;
}

/* —— Search hero (hifast header-big) —— */
.jw-hero {
    position: relative;
    margin: 0 -20px 28px;
    padding: 72px 24px 48px;
    text-align: center;
    color: #fff;
    background-color: #1a1c1e;
    background-image: url("//cn.bing.com/th?id=OHR.AdelieTeacher_ZH-CN2201820679_1920x1080.jpg");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.jw-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 28, 30, .35) 0%, rgba(26, 28, 30, .72) 100%);
    pointer-events: none;
}

.jw-hero > * { position: relative; z-index: 1; }

.jw-hero-title {
    color: rgba(255, 255, 255, .92);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 18px;
    letter-spacing: .04em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}

.jw-search {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.jw-search-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 18px;
    margin: 0 0 16px;
}

.jw-search-tabs button {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .78);
    padding: 4px 2px;
    cursor: pointer;
    font-size: 15px;
    position: relative;
}

.jw-search-tabs button.is-active {
    color: #fff;
    font-weight: 600;
}

.jw-search-tabs button.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 22px;
    height: 3px;
    margin-left: -11px;
    border-radius: 3px;
    background: #fff;
}

.jw-search-bar {
    display: flex;
    align-items: stretch;
    background: rgba(10, 12, 14, .55);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    overflow: hidden;
    min-height: 48px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

.jw-search-type {
    position: relative;
    flex: 0 0 auto;
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.jw-search-type > button {
    height: 100%;
    min-width: 84px;
    border: 0;
    background: transparent;
    color: #fff;
    font-weight: 500;
    padding: 0 14px;
    cursor: pointer;
}

.jw-search-type-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 120px;
    background: var(--jw-panel);
    border-radius: 10px;
    box-shadow: var(--jw-shadow);
    border: 1px solid var(--jw-line);
    padding: 6px;
    z-index: 20;
    text-align: left;
}

.jw-search-type.open .jw-search-type-menu { display: block; }

.jw-search-type-menu button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--jw-text);
    cursor: pointer;
}

.jw-search-type-menu button:hover,
.jw-search-type-menu button.is-active {
    background: rgba(241, 64, 75, .1);
    color: var(--jw-accent);
}

.jw-search-bar input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 18px;
    color: #fff;
    background: transparent;
    min-width: 0;
    font-size: 16px;
}

.jw-search-bar input::placeholder { color: rgba(255, 255, 255, .45); }

.jw-search-bar .jw-search-go {
    width: 56px;
    border: 0;
    background: rgba(241, 64, 75, .9);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    transition: background .15s ease;
}
.jw-search-bar .jw-search-go:hover { background: #f1404b; }

.jw-hot-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}
.jw-hot-label {
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
}

.jw-hot-tags a,
.jw-engine-tags label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .35);
    color: rgba(255, 255, 255, .88);
    font-size: 12px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .08);
}

.jw-hot-tags a:hover { background: rgba(0, 0, 0, .5); color: #fff; }

.jw-engine-tags { display: none; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.jw-engine-tags.is-show { display: flex; }
.jw-engine-tags input { display: none; }
.jw-engine-tags input:checked + span {
    background: #fff;
    color: #222;
}
.jw-engine-tags span {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .35);
    color: rgba(255, 255, 255, .88);
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
}

/* —— Sections / cards —— */
.jw-section {
    margin-bottom: 28px;
}

.jw-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: nowrap;
}

.jw-section-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--jw-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.jw-section-title a { color: inherit; }
.jw-section-title a:hover { color: var(--jw-accent); }

.jw-section-title .jw-dot {
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: var(--jw-accent);
    display: inline-block;
}

.jw-subtabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.jw-subtabs::-webkit-scrollbar { display: none; }

.jw-subtabs button {
    position: relative;
    flex-shrink: 0;
    white-space: nowrap;
    border: 0;
    background: transparent;
    color: var(--jw-muted);
    border-radius: 0;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    transition: color .15s ease;
}

.jw-subtabs button:hover {
    color: #fff;
    background: transparent;
}
html.light-mode .jw-subtabs button:hover { color: var(--jw-title); }

.jw-subtabs button.is-active {
    background: transparent;
    border-color: transparent;
    color: #fff;
}
html.light-mode .jw-subtabs button.is-active {
    background: transparent;
    color: var(--jw-accent);
}

.jw-subtabs button.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 22px;
    height: 2px;
    margin-left: -11px;
    border-radius: 2px;
    background: var(--jw-accent);
}

.jw-more {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--jw-muted);
    font-size: 13px;
    white-space: nowrap;
}
.jw-more:hover { color: var(--jw-accent); }

/* —— 列表/分类页栏目条 —— */
.jw-catbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 8px 0 22px;
    padding: 14px 16px;
    background: var(--jw-panel);
    border-radius: 10px;
}
.jw-catbar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--jw-title);
    padding-right: 10px;
    margin-right: 4px;
    border-right: 1px solid var(--jw-line);
    line-height: 1.2;
}
.jw-catbar-title:hover { color: var(--jw-accent); }
.jw-catbar-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.jw-catbar-tabs a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    font-size: 13px;
    color: var(--jw-muted);
    border-radius: 6px;
}
.jw-catbar-tabs a:hover {
    color: var(--jw-title);
    background: rgba(255, 255, 255, .06);
}
html.light-mode .jw-catbar-tabs a:hover { background: rgba(0, 0, 0, .04); }
.jw-catbar-tabs a.is-active {
    color: var(--jw-accent);
    font-weight: 600;
    background: rgba(241, 64, 75, .16);
}
.jw-catbar-tabs a.is-active::after { display: none; }
html.light-mode .jw-catbar-tabs a.is-active {
    color: var(--jw-accent);
    background: rgba(241, 64, 75, .12);
}
.jw-catbar-meta {
    margin-left: auto;
    font-size: 12px;
    color: var(--jw-muted);
    white-space: nowrap;
}
.jw-cat-intro {
    margin: 0 0 20px;
    padding: 12px 16px;
    background: var(--jw-panel);
    border-radius: 10px;
    color: var(--jw-muted);
    font-size: 13px;
    line-height: 1.75;
}
.jw-cat-intro p { margin: 0 0 .6em; }
.jw-cat-intro p:last-child { margin-bottom: 0; }
.jw-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 6px 2px 10px;
    color: var(--jw-muted);
    font-size: 13px;
}
.jw-pages { text-align: center; padding: 18px 0 8px; }

/* 旧列表类名兜底（分类页仍可能用到） */
.catName {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 22px 0 12px;
    padding: 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--jw-muted);
}
.catName::before {
    content: "";
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: var(--jw-accent);
}
.catName a { color: inherit; }
.catName a:hover { color: var(--jw-accent); }
.catName.juwo-bg-gray,
.item-box.juwo-bg-gray,
.juwo-bg-gray { background: transparent; border: 0; }
.cat-about {
    margin: 0 0 20px;
    padding: 12px 16px;
    background: var(--jw-panel);
    border-radius: 10px;
    color: var(--jw-muted);
    font-size: 13px;
    line-height: 1.75;
}
.small {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}
.small a {
    color: var(--jw-muted);
    font-size: 13px;
    padding: 4px 10px;
    background: var(--jw-card);
    border-radius: 6px;
}
.small a.active,
.small a.is-active,
.small a:hover { color: var(--jw-accent); }
.juwo-star { display: none; }

.jw-panel { display: none; }
.jw-panel.is-active { display: block; }

/* 网址卡：对齐 hifast post-min — 无边框、矮卡、圆图标 */
.jw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px 14px;
}
.jw-grid.is-hot {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px 12px;
}

.jw-card {
    position: relative;
    display: block;
    background: var(--jw-card);
    border: 0;
    border-radius: var(--jw-radius-sm);
    padding: 0;
    transition: background .18s ease, transform .18s ease;
    min-height: 0;
    overflow: hidden;
    box-shadow: none;
}

.jw-card:hover {
    background: var(--jw-card-hover);
    border-color: transparent;
    box-shadow: none;
    color: var(--jw-title);
}

html.light-mode .jw-card {
    background: #f2f3f5;
    box-shadow: none;
}
html.light-mode .jw-card:hover {
    background: #e8ebee;
    box-shadow: none;
}

.jw-card.is-closed { filter: grayscale(1); opacity: .65; }

.jw-card-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 10px;
    min-height: 48px;
}

.jw-card-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(128, 128, 128, .12);
}

.jw-card-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.jw-card-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--jw-text);
    line-height: 1.3;
}

.jw-card:hover .jw-card-title { color: var(--jw-accent); }

.jw-card-desc {
    display: block;
    font-size: 12px;
    color: var(--jw-muted);
    line-height: 1.3;
}

.jw-card:hover .jw-card-desc { color: var(--jw-muted); }

.jw-card-foot { display: none; }

.jw-card.is-hot {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 6px 8px;
}
.jw-card.is-hot .jw-card-row {
    padding: 0;
    min-height: 0;
    width: 100%;
}
.jw-card.is-hot .jw-card-icon { width: 20px; height: 20px; border-radius: 50%; }
.jw-card.is-hot .jw-card-title { font-size: 14px; font-weight: 400; }
.jw-card.is-hot .jw-card-foot,
.jw-card.is-hot .jw-card-desc { display: none; }

.jw-badge {
    display: inline-block;
    vertical-align: 1px;
    font-size: 10px;
    color: #fff;
    background: rgba(255, 0, 20, .72);
    border-radius: 100px;
    padding: 1px 5px;
    line-height: 1.35;
    margin-right: 4px;
    font-weight: 500;
}

.jw-badge.is-blue { background: rgba(58, 139, 255, .85); }
.jw-badge.is-gray { background: #777; }
.jw-badge.is-dark { background: #333; }

.jw-child-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.jw-child-links a {
    background: rgba(255, 255, 255, .06);
    color: var(--jw-text);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
}
html.light-mode .jw-child-links a {
    background: #eef5ff;
    color: var(--jw-main);
}

.jw-child-links a:hover,
.jw-child-links a.is-active {
    background: var(--jw-accent);
    color: #fff;
}

/* —— Footer / links（对齐 hifast 大页脚卡片） —— */
.jw-links {
    background: var(--jw-panel);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 0 20px -5px rgba(0, 0, 0, .18);
    padding: 16px 20px 18px;
    margin: 0 20px 16px;
}

.jw-links-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.jw-links-head h3 {
    font-size: 15px;
    margin: 0;
    color: var(--jw-text);
    font-weight: 500;
}

.jw-links-head span {
    font-size: 12px;
    color: var(--jw-muted);
}

.jw-links-body {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.jw-links-body a {
    color: var(--jw-muted);
    font-size: 13px;
}
.jw-links-body a:hover { color: var(--jw-accent); }

.jw-footer {
    background: transparent;
    border: 0;
    padding: 0 20px 24px;
    color: var(--jw-muted);
    font-size: 13px;
}

.jw-footer-card {
    background: var(--jw-panel);
    border-radius: 12px;
    box-shadow: 0 0 20px -5px rgba(0, 0, 0, .18);
    padding: 28px 28px 20px;
}

.jw-footer-top {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding-bottom: 22px;
}

.jw-footer-brand {
    flex: 0 0 280px;
    max-width: 320px;
}

.jw-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--jw-text);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.jw-footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.jw-footer-brand p {
    margin: 0;
    font-size: 13px;
    color: var(--jw-muted);
    line-height: 1.6;
}

.jw-footer-nav {
    flex: 1;
    display: flex;
    gap: 0;
    justify-content: flex-start;
}

.jw-footer-col {
    position: relative;
    min-width: 88px;
    padding: 0 24px;
    text-align: center;
}

.jw-footer-col + .jw-footer-col::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--jw-muted);
    opacity: .35;
}

.jw-footer-col h4 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 400;
    color: var(--jw-muted);
}

.jw-footer-col a {
    display: block;
    margin: 6px 0;
    font-size: 12px;
    color: var(--jw-muted);
}

.jw-footer a:hover,
.jw-footer-col a:hover {
    color: var(--jw-accent);
}

.jw-footer-copy {
    border-top: 1px solid var(--jw-line);
    padding-top: 16px;
    font-size: 12px;
    line-height: 1.8;
    color: var(--jw-muted);
}

.jw-footer-copy a { color: var(--jw-muted); }
.jw-footer-copy a:hover { color: var(--jw-accent); }

html.light-mode .jw-links,
html.light-mode .jw-footer-card {
    box-shadow: 0 0 20px -5px rgba(158, 158, 158, .2);
}

@media (max-width: 900px) {
    .jw-links { margin: 0 12px 14px; }
    .jw-footer { padding: 0 12px 20px; }
    .jw-footer-card { padding: 22px 16px 16px; }
    .jw-footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 22px;
    }
    .jw-footer-brand { flex: none; max-width: none; }
    .jw-footer-nav { justify-content: center; flex-wrap: wrap; }
    .jw-footer-copy { text-align: center; }
}

.jw-toast {
    position: fixed;
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .78);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    z-index: 9999;
    display: none;
}

.jw-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 110;
}

.jw-mask.is-open { display: block; }

/* —— Compat for old templates still using layui class names —— */
.layui-card { background: transparent; box-shadow: none; }
.layui-row, .item-box .layui-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px 10px;
}
.layui-col-space15 { margin: 0 !important; }
.layui-col-xs6,
.layui-col-sm6,
.layui-col-md4,
.layui-col-lg3,
.layui-col-xl2 { width: auto !important; float: none !important; position: static !important; display: block; }
.item-box .item {
    position: relative;
    background: var(--jw-panel);
    border: 0 !important;
    border-radius: var(--jw-radius-sm) !important;
    padding: 8px 10px !important;
    transition: background .2s ease;
}
.item-box .item:hover {
    background: var(--jw-card-hover) !important;
}
.item-box .item .info { display: flex; align-items: center; gap: 10px; }
.item-box .item .info img,
.item-box .item .webicon-img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px;
}
.item-box .item .info .txt { width: auto !important; flex: 1; min-width: 0; font-weight: 600; color: var(--jw-title); font-size: 14px; }
.item-box .item .desc {
    display: block !important;
    margin-top: 4px;
    color: var(--jw-muted) !important;
    font-size: 12px;
}
.item-box { padding: 0 !important; }
.juwo-card { width: auto !important; margin: 0 !important; padding: 0 !important; }
.layui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: rgba(255, 255, 255, .08);
    color: var(--jw-text);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}
.layui-btn:hover { background: var(--jw-accent); color: #fff; }
.layui-btn-xs { padding: 3px 8px; font-size: 12px; }
.layui-tabs-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px !important;
    border: 0 !important;
}
.layui-tabs-header li {
    list-style: none;
    background: var(--jw-card);
    border-radius: 6px;
    padding: 5px 14px;
    cursor: pointer;
    color: var(--jw-text);
    line-height: 1.4 !important;
}
.layui-tabs-header li.layui-this {
    background: rgba(241, 64, 75, .85) !important;
    color: #fff !important;
}
.layui-tabs-header:after,
.layui-tabs-card > .layui-tabs-header .layui-this:after { display: none !important; }
.layui-tabs-item { display: none; }
.layui-tabs-item.layui-show,
.layui-tabs-item.layui-this { display: block; }
.layui-hide-sm { display: none !important; }
.layui-show-xs-inline-block { display: none !important; }
.layui-icon { font-style: normal; }
.layui-icon::before { content: "●"; font-size: 12px; }
.layui-badge {
    display: inline-block;
    background: var(--jw-accent);
    color: #fff;
    border-radius: 100px;
    padding: 0 6px;
    font-size: 12px;
    line-height: 18px;
}
.tips { position: absolute; right: 8px; top: 8px; margin: 0 !important; float: none !important; }
.tips span { margin-left: 4px; }

/* —— Pagination —— */
.layui-card-body {
    padding: 16px 0 8px;
    text-align: center;
}
.pagination {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 12px 0 4px;
    padding: 0;
}
.pagination > li,
.pagination .page-item {
    display: inline-block;
    list-style: none;
}
.pagination > li > a,
.pagination > li > span,
.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    margin: 0;
    border: 1px solid var(--jw-line);
    border-radius: 8px;
    background: var(--jw-panel);
    color: var(--jw-text);
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    transition: .15s ease;
    float: none;
}
.pagination > li > a:hover,
.pagination .page-link:hover {
    border-color: rgba(241, 64, 75, .45);
    color: var(--jw-accent);
    z-index: 1;
}
.pagination > .active > a,
.pagination > .active > span,
.pagination .page-item.active .page-link {
    background: var(--jw-main);
    border-color: var(--jw-main);
    color: #fff;
    cursor: default;
}
.pagination > .disabled > a,
.pagination > .disabled > span,
.pagination .page-item.disabled .page-link {
    color: var(--jw-muted);
    background: transparent;
    border-color: var(--jw-line);
    cursor: default;
    pointer-events: none;
}
.pagination-sm > li > a,
.pagination-sm > li > span,
.pagination-sm .page-link {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 8px;
}

/* responsive */
@media (max-width: 1400px) {
    .jw-grid,
    .layui-row { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}
@media (max-width: 1200px) {
    .jw-grid,
    .layui-row { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 900px) {
    .jw-grid,
    .layui-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .jw-hero { padding: 72px 16px 44px; }
    .jw-catbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin: 16px 0 20px;
        padding: 12px;
    }
    .jw-catbar-title {
        border-right: 0;
        padding: 0 0 8px;
        margin: 0;
        border-bottom: 1px solid var(--jw-line);
    }
    .jw-catbar-tabs {
        flex: none;
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        scrollbar-width: none;
    }
    .jw-catbar-tabs::-webkit-scrollbar { display: none; }
    .jw-catbar-tabs a {
        flex-shrink: 0;
        white-space: nowrap;
        background: rgba(255, 255, 255, .06);
    }
    html.light-mode .jw-catbar-tabs a { background: rgba(0, 0, 0, .05); }
    .jw-catbar-tabs a.is-active,
    html.light-mode .jw-catbar-tabs a.is-active {
        color: var(--jw-accent);
        background: rgba(241, 64, 75, .16);
        font-weight: 600;
    }
    .jw-catbar-meta { margin-left: 0; width: 100%; white-space: normal; }
}
@media (max-width: 767.98px) {
    .jw-sidebar {
        transform: translateX(-105%);
        transition: transform .25s ease;
        box-shadow: none;
        z-index: 120;
        pointer-events: none;
    }
    .jw-sidebar.is-open {
        transform: translateX(0);
        box-shadow: 8px 0 24px rgba(0, 0, 0, .35);
        pointer-events: auto;
    }
    .jw-main { margin-left: 0; }
    .jw-burger { display: inline-flex; }
    .jw-top-nav { display: none; }
    .jw-topbar { padding: 0 10px; position: sticky; }
    .jw-top-brand {
        display: inline-flex;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        flex: none;
        justify-content: center;
        max-width: calc(100% - 160px);
    }
    .jw-top-left { flex-wrap: nowrap; min-width: 0; flex: 1; }
    .jw-msg-link { display: none; }
    .jw-content { padding: 0 12px 28px; }
    .jw-hero {
        margin: 0 -12px 20px;
        padding: 56px 14px 36px;
    }
    .jw-hero-title { font-size: 18px; margin-bottom: 14px; }
    .jw-grid,
    .layui-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .jw-footer-inner { display: none; }
    .jw-footer-m { display: block; }
    .layui-hide-xs { display: none !important; }
    .layui-hide-sm { display: initial !important; }
    .layui-show-xs-inline-block { display: inline-block !important; }

    .jw-liuyan { grid-template-columns: 1fr; }
    .jw-comment-wrap .layui-row,
    .jw-cmt .layui-row {
        display: block !important;
        grid-template-columns: none !important;
    }

    .jw-catbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin: 16px 0 20px;
        padding: 12px;
    }
    .jw-catbar-title {
        border-right: 0;
        padding: 0 0 8px;
        margin: 0;
        width: 100%;
        border-bottom: 1px solid var(--jw-line);
        font-size: 16px;
    }
    .jw-catbar-tabs {
        flex: none;
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        scrollbar-width: none;
    }
    .jw-catbar-tabs::-webkit-scrollbar { display: none; }
    .jw-catbar-tabs a {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 6px 12px;
        background: rgba(255, 255, 255, .06);
        border-radius: 6px;
        font-size: 13px;
        color: var(--jw-muted);
    }
    html.light-mode .jw-catbar-tabs a { background: rgba(0, 0, 0, .05); }
    .jw-catbar-tabs a.is-active,
    html.light-mode .jw-catbar-tabs a.is-active {
        color: var(--jw-accent);
        background: rgba(241, 64, 75, .16);
        font-weight: 600;
    }
    .jw-catbar-meta {
        margin: 0;
        width: 100%;
        white-space: normal;
    }
}

/* —— 单页 / 留言（对齐 hifast 卡片风） —— */
.jw-page { margin: 12px 0 32px; }

.jw-page-head {
    margin: 4px 0 18px;
    padding: 4px 2px 0;
}
.jw-page-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    color: var(--jw-muted);
    letter-spacing: .04em;
}
.jw-page-head .jw-page-title {
    font-size: 22px;
    margin-bottom: 8px;
}
.jw-page-head .jw-page-desc {
    max-width: 48em;
}

.jw-page-panel {
    background: var(--jw-panel);
    border: 1px solid var(--jw-line);
    border-radius: var(--jw-radius);
    margin: 0 0 14px;
    overflow: hidden;
}
.jw-page-panel-hd {
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--jw-line);
}
.jw-page-panel-hd h2,
.jw-page-panel-hd h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--jw-title);
    display: flex;
    align-items: center;
    gap: 8px;
}
.jw-page-panel-hd h2::before,
.jw-page-panel-hd h3::before {
    content: "";
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(180deg, #ff6b73, var(--jw-accent));
}
.jw-page-panel-hd p {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--jw-muted);
}
.jw-page-panel-bd {
    padding: 14px 16px 16px;
}

.jw-page-prose {
    font-size: 14px;
    line-height: 1.75;
    color: var(--jw-text);
}
.jw-page-prose p { margin: 0 0 12px; }
.jw-page-prose p:last-child { margin-bottom: 0; }
.jw-page-prose a { color: var(--jw-accent); }
.jw-page-mail {
    color: var(--jw-accent);
    font-weight: 600;
}

.jw-page-steps {
    margin: 0;
    padding: 0 0 0 1.2em;
    color: var(--jw-text);
    font-size: 14px;
    line-height: 1.7;
}
.jw-page-steps li { margin: 0 0 12px; }
.jw-page-steps li:last-child { margin-bottom: 0; }
.jw-page-steps a { color: var(--jw-accent); }

.jw-page-rules {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}
.jw-page-rules li {
    padding: 8px 0 8px 12px;
    border-left: 2px solid var(--jw-line);
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--jw-text);
}

.jw-page-faq details {
    border: 1px solid var(--jw-line);
    border-radius: 8px;
    margin: 0 0 8px;
    background: rgba(0, 0, 0, .12);
}
html.light-mode .jw-page-faq details { background: #f4f5f7; }
.jw-page-faq summary {
    cursor: pointer;
    padding: 10px 12px;
    font-weight: 600;
    color: var(--jw-title);
    list-style: none;
}
.jw-page-faq summary::-webkit-details-marker { display: none; }
.jw-page-faq-body {
    padding: 0 12px 12px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--jw-text);
}

.jw-page-cat-block { margin: 0 0 18px; }
.jw-page-cat-block:last-child { margin-bottom: 0; }
.jw-page-cat-block h3 {
    margin: 0 0 10px;
    font-size: 15px;
}
.jw-page-cat-block h3 a { color: var(--jw-title); }
.jw-page-cat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.jw-page-cat-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--jw-line);
    background: rgba(255, 255, 255, .04);
    color: var(--jw-text);
    font-size: 13px;
}
html.light-mode .jw-page-cat-chip { background: #fff; }
.jw-page-cat-chip:hover {
    border-color: var(--jw-accent);
    color: var(--jw-accent);
}

.jw-page-login {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px dashed var(--jw-line);
    color: var(--jw-muted);
    font-size: 13px;
}
.jw-page-login a {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-left: 6px;
}
.jw-page-login a.jw-btn-primary {
    background: var(--jw-accent);
    color: #fff;
}
.jw-page-login a.jw-btn-ghost {
    background: rgba(255, 255, 255, .08);
    color: var(--jw-text);
}
html.light-mode .jw-page-login a.jw-btn-ghost { background: rgba(0, 0, 0, .06); }

.jw-page-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--jw-line);
}
.jw-page-timeline li {
    position: relative;
    padding: 0 0 16px 16px;
    margin: 0;
}
.jw-page-timeline li:last-child { padding-bottom: 0; }
.jw-page-timeline li::before {
    content: "";
    position: absolute;
    left: -5px;
    top: .45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--jw-accent);
    box-shadow: 0 0 0 3px rgba(241, 64, 75, .15);
}
.jw-page-timeline .jw-year {
    font-size: 15px;
    font-weight: 700;
    color: var(--jw-title);
    margin-bottom: 4px;
}
.jw-page-timeline .jw-event {
    font-size: 13px;
    line-height: 1.6;
    color: var(--jw-text);
}

.jw-page-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}
@media (max-width: 1200px) {
    .jw-page-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .jw-page-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .jw-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.jw-liuyan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
    align-items: start;
}
@media (max-width: 900px) {
    .jw-liuyan {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
    }
    .jw-liuyan-main,
    .jw-liuyan-side { width: 100%; max-width: 100%; }
}

.jw-liuyan-head {
    margin-bottom: 14px;
    padding: 4px 2px 0;
}

.jw-page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--jw-title);
    margin: 0 0 6px;
    letter-spacing: .02em;
}

.jw-page-desc {
    margin: 0;
    font-size: 13px;
    color: var(--jw-muted);
    line-height: 1.5;
}

.jw-liuyan-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jw-side-card {
    background: var(--jw-panel);
    border: 1px solid var(--jw-line);
    border-radius: var(--jw-radius);
    padding: 14px 16px 16px;
}

.jw-side-card-head {
    font-size: 14px;
    font-weight: 600;
    color: var(--jw-title);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--jw-line);
    display: flex;
    align-items: center;
    gap: 8px;
}
.jw-side-card-head::before {
    content: "";
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(180deg, #ff6b73, var(--jw-accent));
}

.jw-side-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.jw-side-card li {
    position: relative;
    padding: 0 0 0 12px;
    margin: 0 0 10px;
    color: var(--jw-text);
    font-size: 13px;
    line-height: 1.6;
}
.jw-side-card li:last-child { margin-bottom: 0; }
.jw-side-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--jw-muted);
    opacity: .7;
}
.jw-side-card p {
    margin: 0;
    color: var(--jw-text);
    font-size: 13px;
    line-height: 1.65;
}
.jw-side-card b { color: #ff8a90; font-weight: 600; }

/* —— 留言/评论（不依赖 Layui / embed.css） —— */
.jw-comment-wrap {
    background: var(--jw-panel);
    border: 1px solid var(--jw-line);
    border-radius: 10px;
    padding: 14px 12px 10px;
    overflow: hidden;
}
.jw-cmt,
#ds-reset {
    width: 100%;
    max-width: 100%;
    color: var(--jw-text);
    font-size: 14px;
    line-height: 1.55;
    position: relative;
}
#ds-reset * { box-sizing: border-box; }
#ds-reset ul, #ds-reset li { list-style: none; margin: 0; padding: 0; }
#ds-reset a { color: var(--jw-muted); }
#ds-reset a:hover { color: var(--jw-accent); }

#ds-reset .ds-replybox {
    position: relative;
    margin: 0 0 16px;
    padding: 0;
    width: 100%;
}
#ds-reset .ds-replybox .ds-avatar,
#ds-reset .ds-avatar-top { display: none; }
#ds-reset .ds_form_post { display: block; width: 100%; }
#ds-reset textarea.J_CmFormField,
#ds-reset .ds-textarea-wrapper textarea {
    display: block;
    width: 100%;
    min-height: 96px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--jw-line);
    border-radius: 8px 8px 0 0;
    background: rgba(0, 0, 0, .18);
    color: var(--jw-title);
    font-size: 14px;
    line-height: 1.55;
    resize: vertical;
    outline: none;
}
html.light-mode #ds-reset textarea.J_CmFormField,
html.light-mode #ds-reset .ds-textarea-wrapper textarea {
    background: #f5f6f8;
}
#ds-reset .ds-post-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--jw-line);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: rgba(0, 0, 0, .12);
    position: static;
}
html.light-mode #ds-reset .ds-post-toolbar { background: #eef0f3; }
#ds-reset .ds-post-options,
#ds-reset .ds-toolbar-buttons { position: static; margin: 0; height: auto; }
#ds-reset .ds-add-emote {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    color: var(--jw-text);
    font-size: 13px;
    width: auto;
    float: none;
}
html.light-mode #ds-reset .ds-add-emote { background: rgba(0, 0, 0, .06); }
#ds-reset .ds-post-button {
    height: 32px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    background: var(--jw-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
#ds-reset .ds-comments-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 12px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--jw-line);
    position: static;
}
#ds-reset .ds-sort {
    display: flex;
    gap: 6px;
    position: static;
    flex-wrap: wrap;
}
#ds-reset .ds-sort a {
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--jw-muted);
    font-size: 12px;
}
#ds-reset .ds-sort a.ds-current {
    color: var(--jw-accent);
    background: rgba(241, 64, 75, .14);
}
#ds-reset .ds-comment-count { color: var(--jw-muted); font-size: 12px; }
#ds-reset .ds-comment-count b { color: var(--jw-accent); }

#ds-reset .ds-comments { width: 100%; }
#ds-reset .ds-post {
    width: 100%;
    overflow: visible;
    clear: none;
    border: 0;
}
#ds-reset .ds-post-self {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--jw-line);
    float: none;
    position: relative;
}
#ds-reset .ds-post-self::after { display: none; }
#ds-reset .ds-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    background: rgba(255, 255, 255, .08);
}
#ds-reset .ds-comment-body {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    float: none;
    width: auto;
}
#ds-reset .ds-comment-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 6px;
}
#ds-reset .ds-user-name { color: var(--jw-title); font-weight: 600; font-size: 13px; }
#ds-reset .ds-time { color: var(--jw-muted); font-size: 12px; }
#ds-reset .ds-comment-body > p {
    margin: 0 0 8px;
    color: var(--jw-text);
    font-size: 14px;
    word-break: break-word;
}
#ds-reset .ds-comment-body > p img { max-width: 28px; vertical-align: middle; }
#ds-reset .ds-comment-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
}
#ds-reset .ds-comment-footer a { color: var(--jw-muted); float: none; }
#ds-reset .ds-children {
    margin: 0 0 8px 12px;
    padding: 0;
    width: auto;
}
#ds-reset .ds-children .ds-post-self {
    padding: 10px 0;
    background: transparent;
    border-bottom: 1px dashed var(--jw-line);
}
#ds-reset .ds-paginator {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 14px 0 4px;
    text-align: center;
}
#ds-reset .ds-paginator a,
#ds-reset .ds-paginator span,
#ds-reset .pagination a,
#ds-reset .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid var(--jw-line);
    color: var(--jw-text);
    font-size: 12px;
}
#ds-reset .ds-paginator .ds-current,
#ds-reset .pagination .active a {
    background: var(--jw-accent);
    border-color: var(--jw-accent);
    color: #fff;
}
#ds-smilies-tooltip {
    position: absolute;
    z-index: 40;
    width: min(320px, calc(100vw - 32px));
    max-height: 220px;
    overflow: auto;
    background: var(--jw-panel);
    border: 1px solid var(--jw-line);
    border-radius: 8px;
    padding: 8px;
    box-shadow: var(--jw-shadow);
}
#ds-smilies-tooltip ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
#ds-smilies-tooltip img { width: 28px; height: 28px; cursor: pointer; }

/* layer 兼容弹层 */
.jw-layer-shade {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 19891014;
}
.jw-layer-box {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 19891015;
    background: var(--jw-panel);
    border: 1px solid var(--jw-line);
    border-radius: 10px;
    box-shadow: var(--jw-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 96vw;
    max-height: 90vh;
}
.jw-layer-title {
    padding: 12px 16px;
    border-bottom: 1px solid var(--jw-line);
    color: var(--jw-title);
    font-weight: 600;
}
.jw-layer-iframe {
    flex: 1;
    width: 100%;
    border: 0;
    background: #fff;
}
.jw-layer-body {
    padding: 16px;
    overflow: auto;
    color: var(--jw-text);
}

/* —— 登录 / 注册（对齐 hifast 卡片表单） —— */
.jw-auth {
    display: flex;
    justify-content: center;
    padding: 28px 0 48px;
}
.jw-auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--jw-panel);
    border-radius: 12px;
    padding: 36px 32px 28px;
    box-shadow: var(--jw-shadow);
}
.jw-auth-card h1 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}
html.light-mode .jw-auth-card h1 { color: #222; }
.jw-auth-sub {
    margin: 0 0 26px;
    font-size: 13px;
    color: var(--jw-muted);
}
.jw-auth-item { margin-bottom: 16px; }
.jw-auth-item input {
    width: 100%;
    height: 42px;
    border: 0;
    border-bottom: 1px solid rgba(136, 136, 136, .28);
    border-radius: 0;
    background: transparent;
    color: var(--jw-title);
    padding: 8px 2px;
    outline: 0;
    font-size: 14px;
}
.jw-auth-item input::placeholder { color: var(--jw-muted); }
.jw-auth-item input:focus { border-bottom-color: var(--jw-accent); }
.jw-auth-code {
    display: flex;
    align-items: center;
    gap: 10px;
}
.jw-auth-code input { flex: 1; min-width: 0; }
.jw-auth-captcha img,
.jw-auth-captcha {
    height: 36px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}
.jw-auth-sms {
    flex-shrink: 0;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--jw-accent);
    border-radius: 6px;
    background: transparent;
    color: var(--jw-accent);
    cursor: pointer;
    font-size: 12px;
}
.jw-auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 20px;
    color: var(--jw-muted);
    font-size: 13px;
    cursor: pointer;
}
.jw-auth-check input {
    accent-color: var(--jw-accent);
    width: 14px;
    height: 14px;
}
.jw-auth-check a { color: var(--jw-accent); }
.jw-auth-actions {
    display: flex;
    gap: 12px;
}
.jw-auth-btn {
    flex: 1;
    height: 40px;
    border: 0;
    border-radius: 6px;
    background: var(--jw-accent);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(241, 64, 75, .28);
}
.jw-auth-btn:hover { color: #fff; background: #e03640; }
.jw-auth-btn.is-ghost {
    background: transparent;
    color: var(--jw-accent);
    border: 1px solid var(--jw-accent);
    box-shadow: none;
}
.jw-auth-btn.is-ghost:hover { background: rgba(241, 64, 75, .1); color: var(--jw-accent); }
.jw-auth-links {
    margin-top: 16px;
    font-size: 13px;
    color: var(--jw-muted);
}
.jw-auth-links a { color: var(--jw-accent); }
.jw-auth-links span { margin: 0 6px; color: var(--jw-line); }
.jw-auth-oauth {
    margin-top: 22px;
    text-align: center;
    color: var(--jw-muted);
    font-size: 12px;
}
.jw-auth-oauth span {
    display: block;
    position: relative;
    margin-bottom: 14px;
}
.jw-auth-oauth span::before,
.jw-auth-oauth span::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 28%;
    height: 1px;
    background: var(--jw-line);
}
.jw-auth-oauth span::before { left: 0; }
.jw-auth-oauth span::after { right: 0; }
.jw-auth-oauth a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    margin: 0 6px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
    align-items: center;
    justify-content: center;
}
.jw-auth-oauth img { width: 22px; height: 22px; }

/* —— 个人中心 —— */
.jw-member {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin: 8px 0 32px;
}
.jw-member-nav {
    background: var(--jw-panel);
    border-radius: 8px;
    padding: 8px 6px 12px;
    position: sticky;
    top: calc(var(--jw-top) + 12px);
}
.jw-member-group {
    color: var(--jw-muted);
    font-size: 12px;
    padding: 14px 12px 4px;
}
.jw-member-link {
    display: block;
    padding: 9px 12px;
    border-radius: 6px;
    color: var(--jw-text);
    font-size: 14px;
}
.jw-member-link:hover {
    background: rgba(255, 255, 255, .05);
    color: #fff;
}
html.light-mode .jw-member-link:hover { color: var(--jw-title); background: rgba(0, 0, 0, .04); }
.jw-member-link.is-active {
    background: rgba(241, 64, 75, .12);
    color: var(--jw-accent);
}
.jw-member-bar {
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--jw-muted);
}
.jw-member-bar a { color: var(--jw-muted); }
.jw-member-bar a:hover { color: var(--jw-accent); }
.jw-member-bar ul { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; }
.jw-member-nav i.fa { display: none; }
.jw-member-toggle { display: none; }

.jw-profile {
    background: var(--jw-panel);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}
.jw-profile-user {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.jw-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
    flex-shrink: 0;
}
.jw-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.jw-profile-meta { flex: 1; min-width: 160px; }
.jw-profile-name { font-size: 18px; font-weight: 600; color: #fff; }
html.light-mode .jw-profile-name { color: #222; }
.jw-profile-extra {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 13px;
    color: var(--jw-muted);
}
.jw-profile-extra a { color: var(--jw-accent); }
.jw-profile-money { text-align: right; margin-left: auto; }
.jw-profile-money-num { font-size: 20px; color: #fff; font-weight: 600; }
html.light-mode .jw-profile-money-num { color: #222; }
.jw-profile-money-num small { font-size: 12px; font-weight: 400; color: var(--jw-muted); }
.jw-profile-money-sub { font-size: 12px; color: var(--jw-muted); margin-top: 4px; }

.jw-member .portlet,
.jw-member .portlet.light {
    background: var(--jw-panel);
    border-radius: 8px;
    padding: 16px 18px 18px;
    margin-bottom: 16px;
    box-shadow: none;
    border: 0;
}
.jw-member .portlet-title {
    border-bottom: 1px solid var(--jw-line);
    padding: 0 0 12px;
    margin: 0 0 16px;
    min-height: 0;
}
.jw-member .caption-subject,
.jw-member .portlet-title .caption {
    color: var(--jw-title);
    font-size: 16px;
    font-weight: 500;
}
.jw-member .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border: 0;
    float: none !important;
    list-style: none;
}
.jw-member .nav-tabs > li > a {
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--jw-muted);
    font-size: 13px;
}
.jw-member .nav-tabs > li.active > a,
.jw-member .nav-tabs > li > a:hover {
    color: var(--jw-accent);
    background: rgba(241, 64, 75, .1);
}
.jw-member .form-horizontal .form-group,
.jw-member .form-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0 0 14px;
}
.jw-member .control-label,
.jw-member .col-md-2 {
    width: 96px;
    flex-shrink: 0;
    color: var(--jw-muted);
    font-size: 13px;
    text-align: left;
    padding: 0;
}
.jw-member .col-md-9,
.jw-member .col-md-10,
.jw-member .col-md-12,
.jw-member .col-md-6 {
    flex: 1;
    min-width: 0;
    width: auto;
    padding: 0;
    float: none;
}
.jw-member .row { margin: 0; }
.jw-member .form-control,
.jw-member input.form-control,
.jw-member .input-large {
    width: 100%;
    max-width: 360px;
    height: 38px;
    border: 1px solid var(--jw-line);
    border-radius: 8px;
    background: rgba(0, 0, 0, .18);
    color: var(--jw-title);
    padding: 0 12px;
}
html.light-mode .jw-member .form-control {
    background: #f5f6f8;
}
.jw-member .form-control-static { color: var(--jw-text); margin: 0; }
.jw-member .form-actions { margin-top: 8px; padding-top: 8px; }
.jw-member .btn,
.jw-member .btn.blue,
.jw-member .btn.green,
.jw-member .btn.red,
.jw-member .btn-xs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: var(--jw-accent);
    color: #fff !important;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    line-height: 1.2;
}
.jw-member .btn-xs { padding: 4px 10px; font-size: 12px; }
.jw-member .btn.red { background: rgba(241, 64, 75, .85); }
.jw-member .table {
    width: 100%;
    border-collapse: collapse;
    color: var(--jw-text);
    font-size: 13px;
}
.jw-member .table th,
.jw-member .table td {
    padding: 10px 8px;
    border: 0;
    border-bottom: 1px solid var(--jw-line);
    text-align: left;
    background: transparent !important;
}
.jw-member .table thead th { color: var(--jw-muted); font-weight: 500; }
.jw-member .table-scrollable { overflow-x: auto; }
.jw-member .table-bordered { border: 0; }
.jw-member .feeds {
    list-style: none;
    margin: 0;
    padding: 0;
}
.jw-member .feeds li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 2px;
    border-bottom: 1px solid var(--jw-line);
}
.jw-member .feeds .col1 { flex: 1; min-width: 0; }
.jw-member .feeds .col2 { flex-shrink: 0; }
.jw-member .feeds .date {
    font-size: 12px;
    color: var(--jw-muted);
    white-space: nowrap;
}
.jw-member .feeds .cont {
    display: flex;
    align-items: center;
    gap: 10px;
}
.jw-member .feeds .cont-col1 { flex-shrink: 0; }
.jw-member .feeds .cont-col2,
.jw-member .feeds .desc {
    flex: 1;
    min-width: 0;
}
.jw-member .feeds .desc {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0 !important;
}
.jw-member .feeds .desc a { color: var(--jw-title); }
.jw-member .feeds a:hover { color: var(--jw-accent); }
.jw-member .mt-checkbox {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 0;
    cursor: pointer;
}
.jw-member .mt-checkbox input[type="checkbox"] {
    position: static !important;
    opacity: 1 !important;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--jw-accent);
}
.jw-member .mt-checkbox > span { display: none !important; }
.jw-member .mt-commets-checkable {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 2px 0 !important;
}
.jw-member .fc-pages { margin-top: 16px; text-align: center; }
.jw-member .text-center { text-align: center; }
.jw-member .label {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    background: rgba(255, 255, 255, .08);
    color: var(--jw-muted);
}
.jw-member .label-success { background: rgba(16, 185, 129, .16); color: #34d399; }
.jw-member .margin-bottom-15 { margin-bottom: 12px; }
.jw-member .margin-top-10 { margin-top: 8px; }
.jw-member select.form-control { width: auto; max-width: 180px; }
.jw-member label { margin: 0; font-weight: 400; display: inline-flex; align-items: center; gap: 6px; }

/* —— 网址内容页（对齐 hifast sites） —— */
.jw-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
    font-size: 13px;
    color: var(--jw-muted);
    margin: 8px 0 16px;
}
.jw-crumb a { color: var(--jw-muted); }
.jw-crumb a:hover { color: var(--jw-accent); }
.jw-crumb a + a::before,
.jw-crumb span::before {
    content: "›";
    margin-right: 8px;
    color: var(--jw-muted);
    opacity: .6;
}

.jw-site-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 16px;
    align-items: start;
    margin-bottom: 32px;
}
.jw-site-head {
    display: flex;
    gap: 20px;
    background: var(--jw-panel);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 22px;
}
.jw-site-body {
    flex: 1 1 auto;
    min-width: 0;
}
.jw-site-cover {
    width: 180px;
    height: 180px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.jw-site-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
}
.jw-site-stats {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}
.jw-site-stats span {
    background: rgba(0, 0, 0, .18);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    color: var(--jw-muted);
}
.jw-site-name {
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.3;
}
html.light-mode .jw-site-name { color: #222; }
.jw-site-help {
    font-size: 13px;
    font-weight: 400;
    color: var(--jw-muted);
    margin-left: 8px;
}
.jw-site-desc {
    margin: 0 0 10px;
    color: var(--jw-text);
    font-size: 14px;
}
.jw-site-tags {
    font-size: 13px;
    color: var(--jw-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}
.jw-site-tags a,
.jw-site-tags span {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .06);
    color: var(--jw-text);
    font-size: 12px;
}
html.light-mode .jw-site-tags a,
html.light-mode .jw-site-tags span { background: #f2f3f5; }
.jw-site-go {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.jw-site-btn {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 6px;
    background: var(--jw-accent);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
}
.jw-site-btn.is-ghost {
    background: transparent;
    border: 1px solid var(--jw-line);
    color: var(--jw-text) !important;
    font-weight: 400;
}
.jw-site-btn.is-ghost:hover { color: var(--jw-accent) !important; border-color: var(--jw-accent); }
.jw-site-urls { margin-top: 4px; width: 100%; }
.jw-site-urls .juwo-url,
#site_url .juwo-url {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}
.jw-site-urls a,
#site_url a,
#site_url .layui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 8px;
    margin: 0 !important;
    border-radius: 6px;
    background: var(--jw-accent);
    color: #fff !important;
    font-size: 13px;
    border: 0;
    box-shadow: none;
    box-sizing: border-box;
}
#site_url .juwo-url a,
#site_url .juwo-url .layui-btn {
    flex: 0 0 calc((100% - 56px) / 8);
    width: calc((100% - 56px) / 8);
    max-width: calc((100% - 56px) / 8);
}
#site_url .juwo-url .juwo-know {
    flex: 1 1 100%;
    width: 100%;
}
@media (max-width: 900px) {
    #site_url .juwo-url a,
    #site_url .juwo-url .layui-btn {
        flex-basis: calc((100% - 40px) / 6);
        width: calc((100% - 40px) / 6);
        max-width: calc((100% - 40px) / 6);
    }
}
@media (max-width: 767.98px) {
    #site_url .juwo-url a,
    #site_url .juwo-url .layui-btn {
        flex-basis: calc((100% - 24px) / 4);
        width: calc((100% - 24px) / 4);
        max-width: calc((100% - 24px) / 4);
    }
}
#site_url .layui-bg-cyan {
    background: #009688 !important;
    color: #fff !important;
}
#site_url .layui-bg-blue {
    background: #1e9fff !important;
    color: #fff !important;
}
#site_url .layui-elem-quote {
    background: rgba(241, 64, 75, .08);
    border: 0;
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--jw-text);
}
.jw-site-intro {
    background: rgba(0, 0, 0, .1);
    border-radius: 8px;
    padding: 16px 18px;
    color: var(--jw-text);
    line-height: 1.75;
    font-size: 14px;
}
html.light-mode .jw-site-intro { background: #f4f5f7; }
.jw-site-intro p { margin: 0 0 10px; }
.jw-site-intro ol { padding-left: 18px; margin: 0; }
.jw-site-intro li { margin: 8px 0; }
.jw-site-intro a { color: var(--jw-accent); }
.jw-site-side .jw-side-card { margin-bottom: 12px; }

@media (max-width: 900px) {
    .jw-member {
        grid-template-columns: 1fr;
    }
    .jw-member-nav {
        position: static;
        display: block;
        padding: 8px;
    }
    .jw-member-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        border: 0;
        background: rgba(255, 255, 255, .06);
        color: var(--jw-title);
        border-radius: 6px;
        padding: 10px 12px;
        font-size: 14px;
        cursor: pointer;
    }
    html.light-mode .jw-member-toggle { background: rgba(0, 0, 0, .05); }
    .jw-member-toggle::after { content: "▾"; color: var(--jw-muted); }
    .jw-member-nav.is-open .jw-member-toggle::after { content: "▴"; }
    .jw-member-nav-body { display: none; padding-top: 6px; }
    .jw-member-nav.is-open .jw-member-nav-body {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    .jw-member-group { width: 100%; padding: 8px 8px 0; }
    .jw-profile-money { text-align: left; margin-left: 0; width: 100%; }
    .jw-auth-card { padding: 28px 18px 22px; }
    .jw-site-layout { grid-template-columns: 1fr; }
    .jw-site-head { flex-direction: column; }
    .jw-site-cover { width: 100%; height: 140px; }
}

/* —— 静态页 Ajax 加载提示 —— */
.jw-ajax-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 6px;
    border: 1px dashed var(--jw-line);
    background: rgba(255, 255, 255, .04);
    color: var(--jw-muted);
    font-size: 13px;
    line-height: 1.4;
}
html.light-mode .jw-ajax-loading { background: rgba(0, 0, 0, .03); }
.jw-ajax-loading.is-compact {
    padding: 0 2px;
    margin: 0;
    border: 0;
    background: transparent;
    font-size: 12px;
    gap: 4px;
}
.jw-ajax-spin {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(241, 64, 75, .25);
    border-top-color: var(--jw-accent);
    border-radius: 50%;
    display: inline-block;
    animation: jw-spin .7s linear infinite;
    flex: 0 0 auto;
}
.jw-ajax-loading.is-compact .jw-ajax-spin {
    width: 10px;
    height: 10px;
}
@keyframes jw-spin {
    to { transform: rotate(360deg); }
}
.jw-ajax-fail {
    color: var(--jw-muted);
    font-size: 13px;
}
#user .jw-ajax-loading,
#new_rand .jw-ajax-loading,
#new_rand2 .jw-ajax-loading {
    padding: 0;
    border: 0;
    background: transparent;
}
