/* ==================================================================
   Win11 - Windows 11 资源管理器风格模板
   Mica 半透明材质 / 圆角窗口 / Fluent 控件 / 明暗主题
   ================================================================== */

/* ---------- 设计变量 ---------- */
:root {
    --accent: #0067c0;
    --accent-hover: #005ba8;
    --accent-soft: rgba(0, 103, 192, .12);

    --text: #1b1b1b;
    --text-2: #454545;
    --text-3: #797979;

    --win-bg: rgba(249, 249, 249, .74);
    --win-border: rgba(255, 255, 255, .70);
    --menu-bg: rgba(249, 249, 249, .92);
    --field-bg: rgba(255, 255, 255, .70);
    --card-bg: rgba(255, 255, 255, .55);
    --code-bg: rgba(0, 0, 0, .045);

    --line: rgba(0, 0, 0, .07);
    --line-2: rgba(0, 0, 0, .11);
    --hover: rgba(0, 0, 0, .045);
    --press: rgba(0, 0, 0, .075);

    --radius-win: 10px;
    --radius-card: 8px;
    --radius-ctl: 4px;

    --shadow-win: 0 28px 56px rgba(0, 0, 0, .16), 0 2px 8px rgba(0, 0, 0, .10);
    --shadow-fly: 0 8px 22px rgba(0, 0, 0, .16);

    --wallpaper:
        radial-gradient(1100px 620px at 6% -12%, #d5e7fb 0%, rgba(213, 231, 251, 0) 62%),
        radial-gradient(900px 520px at 98% -6%, #e6dff7 0%, rgba(230, 223, 247, 0) 58%),
        radial-gradient(1000px 700px at 50% 118%, #d7ecf6 0%, rgba(215, 236, 246, 0) 62%),
        #eef0f4;

    --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

/* 深色（手动指定） */
html[data-theme="dark"] {
    --text: #f3f3f3;
    --text-2: #cfcfcf;
    --text-3: #9b9b9b;

    --win-bg: rgba(32, 32, 32, .78);
    --win-border: rgba(255, 255, 255, .09);
    --menu-bg: rgba(43, 43, 43, .96);
    --field-bg: rgba(255, 255, 255, .055);
    --card-bg: rgba(255, 255, 255, .045);
    --code-bg: rgba(255, 255, 255, .07);

    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .12);
    --hover: rgba(255, 255, 255, .06);
    --press: rgba(255, 255, 255, .09);

    --shadow-win: 0 28px 56px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .40);
    --shadow-fly: 0 8px 22px rgba(0, 0, 0, .50);

    --wallpaper:
        radial-gradient(1100px 620px at 4% -12%, #1c2b45 0%, rgba(28, 43, 69, 0) 62%),
        radial-gradient(900px 520px at 98% -8%, #2c2340 0%, rgba(44, 35, 64, 0) 58%),
        radial-gradient(1000px 700px at 50% 120%, #17252f 0%, rgba(23, 37, 47, 0) 62%),
        #141414;
}

/* 深色（跟随系统） */
@media (prefers-color-scheme: dark) {
    html[data-theme="auto"] {
        --text: #f3f3f3;
        --text-2: #cfcfcf;
        --text-3: #9b9b9b;

        --win-bg: rgba(32, 32, 32, .78);
        --win-border: rgba(255, 255, 255, .09);
        --menu-bg: rgba(43, 43, 43, .96);
        --field-bg: rgba(255, 255, 255, .055);
        --card-bg: rgba(255, 255, 255, .045);
        --code-bg: rgba(255, 255, 255, .07);

        --line: rgba(255, 255, 255, .08);
        --line-2: rgba(255, 255, 255, .12);
        --hover: rgba(255, 255, 255, .06);
        --press: rgba(255, 255, 255, .09);

        --shadow-win: 0 28px 56px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .40);
        --shadow-fly: 0 8px 22px rgba(0, 0, 0, .50);

        --wallpaper:
            radial-gradient(1100px 620px at 4% -12%, #1c2b45 0%, rgba(28, 43, 69, 0) 62%),
            radial-gradient(900px 520px at 98% -8%, #2c2340 0%, rgba(44, 35, 64, 0) 58%),
            radial-gradient(1000px 700px at 50% 120%, #17252f 0%, rgba(23, 37, 47, 0) 62%),
            #141414;
    }
}

/* ---------- 基础 ---------- */
* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--wallpaper);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

img {
    border: 0;
}

::selection {
    background: var(--accent-soft);
}

/* 细滚动条 */
.win-list,
.post-content,
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(128, 128, 128, .45) transparent;
}

.win-list::-webkit-scrollbar,
.post-content::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.win-list::-webkit-scrollbar-thumb,
.post-content::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, .40);
    border-radius: 4px;
}

/* ---------- 窗口 ---------- */
#main {
    position: relative;
    width: 1160px;
    max-width: calc(100% - 48px);
    margin: 28px auto 40px;
    padding: 0;
    background: var(--win-bg);
    -webkit-backdrop-filter: blur(32px) saturate(165%);
    backdrop-filter: blur(32px) saturate(165%);
    border: 1px solid var(--win-border);
    border-radius: var(--radius-win);
    box-shadow: var(--shadow-win);
    overflow: hidden;
}

#main.is-max {
    max-width: none;
    width: auto;
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
}

/* 标题栏 */
.win-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 42px;
    padding: 0 0 0 14px;
    user-select: none;
    border-bottom: 1px solid var(--line);
}

.win-titlebar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.win-title-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.win-app {
    max-width: 200px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
    color: var(--text-3);
    text-decoration: none;
    flex: 0 1 auto;
}

.win-app:hover {
    color: var(--accent);
}

.win-title {
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
}

.win-subtitle {
    font-size: 12px;
    color: var(--text-3);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.win-chevron {
    width: 5px;
    height: 5px;
    border-right: 1.4px solid var(--text-3);
    border-bottom: 1.4px solid var(--text-3);
    transform: rotate(-45deg);
    flex: 0 0 auto;
    margin-top: -3px;
}

.win-caption {
    display: flex;
    align-items: stretch;
    height: 42px;
    flex: 0 0 auto;
}

.win-cap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-2);
    font-size: 12px;
    cursor: pointer;
    transition: background-color .12s ease, color .12s ease;
}

.win-cap:hover {
    background: var(--hover);
    color: var(--text);
}

.win-cap-close {
    color: var(--text-2);
    text-decoration: none;
}

.win-cap-close:hover {
    background: #c42b1c;
    color: #fff;
}

/* 导航栏（命令栏） */
.win-navbar {
    padding: 2px 8px 4px;
    border-bottom: 1px solid var(--line);
}

.win-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 2px 2px;
    list-style: none;
    flex-wrap: wrap;
}

.win-nav > li {
    position: relative;
    flex: 0 0 auto;
    line-height: 1;
}

.win-nav > li > a {
    display: block;
    padding: 6px 10px;
    border-radius: var(--radius-ctl);
    font-size: 12.5px;
    color: var(--text-2);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .12s ease, color .12s ease;
}

.win-nav > li > a:hover {
    background: var(--hover);
    color: var(--text);
}

.win-nav > li.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-left: 6px;
    margin-bottom: 2px;
    border-right: 1.3px solid currentColor;
    border-bottom: 1.3px solid currentColor;
    transform: rotate(45deg);
    opacity: .7;
}

.sub-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 999;
    display: none;
    min-width: 150px;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: var(--menu-bg);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    backdrop-filter: blur(30px) saturate(160%);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-fly);
}

.sub-menu li {
    padding: 0;
}

.sub-menu li a {
    display: block;
    padding: 7px 10px;
    border-radius: var(--radius-ctl);
    font-size: 12.5px;
    color: var(--text-2);
}

.sub-menu li a:hover {
    background: var(--hover);
    color: var(--text);
}

.menu-item-has-children:hover .sub-menu,
.menu-item-has-children:focus-within .sub-menu {
    display: block;
}

/* 地址栏 */
.win-addressbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 8px;
    border-bottom: 1px solid var(--line);
}

.win-navbtns {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
}

.win-navbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-ctl);
    background: transparent;
    color: var(--text-2);
    font-size: 12px;
    cursor: pointer;
    transition: background-color .12s ease;
}

.win-navbtn:hover {
    background: var(--hover);
    color: var(--text);
}

.win-address {
    display: flex;
    align-items: center;
    gap: 1px;
    flex: 1 1 auto;
    min-width: 0;
    height: 30px;
    padding: 0 8px;
    background: var(--field-bg);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-ctl);
    font-size: 12.5px;
    overflow: hidden;
    white-space: nowrap;
}

.win-crumb-icon {
    width: 15px;
    height: 15px;
    margin-right: 6px;
    flex: 0 0 auto;
    opacity: .9;
}

.win-crumb {
    overflow: hidden;
    text-overflow: ellipsis;
}

.win-crumb a {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--text-2);
    text-decoration: none;
}

.win-crumb a:hover {
    background: var(--hover);
    color: var(--text);
}

.win-crumb.is-current {
    color: var(--text);
    padding: 1px 4px;
    font-weight: 500;
}

.win-sep {
    margin: 0 2px;
    color: var(--text-3);
    flex: 0 0 auto;
}

.win-searchbar {
    flex: 0 1 210px;
    min-width: 128px;
}

.win-search {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 4px 0 8px;
    background: var(--field-bg);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-ctl);
}

.win-search:focus-within {
    border-color: var(--accent);
    box-shadow: inset 0 -2px 0 -1px var(--accent);
}

.win-search-icon {
    color: var(--text-3);
    font-size: 11px;
    flex: 0 0 auto;
}

.win-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font);
    font-size: 12.5px;
    outline: none;
}

.win-search input::placeholder {
    color: var(--text-3);
}

.win-search-btn {
    flex: 0 0 auto;
    padding: 3px 8px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--text-3);
    font-family: var(--font);
    font-size: 12px;
    cursor: pointer;
}

.win-search-btn:hover {
    background: var(--hover);
    color: var(--text);
}

/* ---------- 内容区 ---------- */
.content {
    margin: 0;
    min-height: 520px;
}

.content::after {
    content: "";
    display: block;
    clear: both;
}

.sidebar {
    padding: 10px 8px 18px;
    border-right: 1px solid var(--line);
    max-height: 680px;
    overflow: auto;
    display: none;
}

.postlist {
    padding: 6px 12px 18px;
    min-height: 520px;
}

/* 列表表头 */
.win-list-head {
    display: flex;
    align-items: center;
    height: 30px;
    padding: 0 8px;
    border-bottom: 1px solid var(--line);
    user-select: none;
}

.post-namelist-title {
    padding: 0 6px;
    font-size: 11.5px;
    color: var(--text-3);
    height: 30px;
    line-height: 30px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.win-list {
    padding: 4px 0 0;
}

.post-list-post {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 8px;
    min-height: 38px;
    border-radius: var(--radius-ctl);
    cursor: default;
    transition: background-color .1s ease;
}

.post-list-post:hover {
    background: var(--hover);
}

.post-list-post > div {
    padding: 6px;
    font-size: 12.5px;
    color: var(--text-2);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.win-list-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.win-list-name a {
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.win-list-name a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.postlist-table-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.win-list-date,
.win-list-views {
    color: var(--text-3) !important;
    font-variant-numeric: tabular-nums;
}

/* 分页 */
.posts-nav {
    padding: 16px 0 6px;
    text-align: center;
}

.posts-nav a,
.posts-nav span {
    display: inline-block;
    min-width: 30px;
    margin: 3px;
    padding: 4px 9px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-ctl);
    background: var(--card-bg);
    color: var(--text-2);
    font-size: 12.5px;
    text-decoration: none;
    transition: background-color .12s ease, border-color .12s ease;
}

.posts-nav a:hover {
    background: var(--hover);
    border-color: var(--line-2);
    color: var(--text);
}

.posts-nav span {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ---------- 文章页 ---------- */
.post-content {
    padding: 22px 28px 30px;
    max-height: none;
}

.win-post-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.win-post-title {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -.2px;
    color: var(--text);
    word-break: break-word;
}

.win-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 12.5px;
    color: var(--text-3);
}

.win-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-3);
    text-decoration: none;
}

a.win-meta-item:hover {
    color: var(--accent);
}

.win-meta-item i {
    font-size: 12px;
    opacity: .85;
}

/* 正文排版 */
.win-prose {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text);
    word-break: break-word;
    min-height: 300px;
}

.win-prose p {
    margin: 0 0 14px;
}

.win-prose h1,
.win-prose h2,
.win-prose h3,
.win-prose h4 {
    margin: 28px 0 12px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text);
}

.win-prose h1 {
    font-size: 24px;
}

.win-prose h2 {
    font-size: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.win-prose h3 {
    font-size: 17px;
}

.win-prose h4 {
    font-size: 15px;
}

.win-prose a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-soft);
    transition: border-color .15s ease;
}

.win-prose a:hover {
    border-bottom-color: var(--accent);
}

.win-prose img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 16px auto;
    border-radius: var(--radius-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.win-prose ul,
.win-prose ol {
    margin: 0 0 14px;
    padding-left: 24px;
}

.win-prose li {
    margin: 4px 0;
}

.win-prose blockquote {
    position: relative;
    margin: 18px 0;
    padding: 12px 18px 12px 20px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    color: var(--text-2);
}

.win-prose blockquote p:last-child {
    margin-bottom: 0;
}

.win-prose code {
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--code-bg);
    font-family: Consolas, "Cascadia Code", Menlo, Monaco, monospace;
    font-size: 13px;
}

.win-prose pre {
    margin: 16px 0;
    padding: 14px 16px;
    overflow: auto;
    background: var(--code-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    font-size: 13px;
    line-height: 1.65;
}

.win-prose pre code {
    padding: 0;
    background: transparent;
    font-size: 13px;
}

.win-prose table {
    width: 100%;
    margin: 16px 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-card);
    overflow: hidden;
    font-size: 13.5px;
}

.win-prose th,
.win-prose td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.win-prose thead th {
    background: var(--card-bg);
    font-weight: 600;
    color: var(--text);
}

.win-prose tbody tr:last-child td {
    border-bottom: 0;
}

.win-prose tbody tr:hover {
    background: var(--hover);
}

.win-prose hr {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

/* 文章标签 */
.win-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 22px 0 4px;
    font-size: 12px;
}

.win-post-tags-label {
    color: var(--text-3);
}

.win-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.win-tag:hover {
    background: var(--accent);
    color: #fff;
}

/* ---------- 评论 ---------- */
#comments {
    margin-top: 28px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.comments-title {
    position: relative;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.commentCount {
    color: var(--accent);
}

.commentlist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.commentlist ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment {
    padding: 12px 14px;
    margin: 0 0 10px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
}

.comment .media {
    display: table;
    width: 100%;
}

.comment .media-left {
    display: table-cell;
    width: 52px;
    vertical-align: top;
    padding-right: 10px;
}

.comment .media-left img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--hover);
}

.comment .media-body {
    display: table-cell;
    vertical-align: top;
}

.comment .media-body .author_name {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.comment .media-body .author_name a {
    color: var(--text);
    text-decoration: none;
}

.comment .comment_text {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--text-2);
    word-break: break-word;
}

.comment .comment-metadata {
    margin: 6px 0 0 52px;
    font-size: 12px;
    color: var(--text-3);
}

.comment .comment-metadata span {
    margin-right: 14px;
}

.comment .comment-metadata span.comment-btn-reply a {
    color: var(--text-3);
    text-decoration: none;
}

.comment .comment-metadata span.comment-btn-reply a:hover {
    color: var(--accent);
}

.commentlist .children {
    margin: 10px 0 0;
    padding-left: 24px;
}

.commentlist .children > .comment {
    background: transparent;
}

.comment-empty,
.comment-closed {
    padding: 16px 0;
    color: var(--text-3);
    font-size: 13px;
    list-style: none;
}

/* 评论表单 */
.comment-post {
    margin: 0 0 16px;
}

.form_comment {
    margin: 0;
}

.comment_form_textarea {
    width: 100%;
    height: 96px;
    margin: 10px 0 0;
    padding: 10px 12px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-ctl);
    background: var(--field-bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 13.5px;
    line-height: 1.6;
    outline: none;
    resize: vertical;
    transition: border-color .15s ease;
}

.comment_form_textarea:focus,
.comment_form_input input:focus {
    border-color: var(--accent);
    box-shadow: inset 0 -2px 0 -1px var(--accent);
}

.comment_form_input {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.comment_form_input input {
    flex: 1 1 0;
    min-width: 0;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-ctl);
    background: var(--field-bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
    outline: none;
}

.comment_form_input input::placeholder,
.comment_form_textarea::placeholder {
    color: var(--text-3);
}

.comment_form_verify {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.comment_form_verify .captcha {
    height: 34px;
    width: auto;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-ctl);
    cursor: pointer;
}

.comment_form_verify .captcha_input {
    width: 130px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-ctl);
    background: var(--field-bg);
    color: var(--text);
    font-size: 13px;
    outline: none;
}

.comment_form_actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.button_submit,
.win-btn {
    display: inline-block;
    padding: 7px 18px;
    border: 1px solid var(--line-2);
    border-bottom-color: var(--line-2);
    border-radius: var(--radius-ctl);
    background: var(--card-bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .12s ease, border-color .12s ease;
}

.button_submit:hover,
.win-btn:hover {
    background: var(--hover);
    color: var(--text);
}

.win-btn-primary,
.button_submit {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.win-btn-primary:hover,
.button_submit:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.comment_form_actions .button_cancel {
    padding: 7px 16px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-ctl);
    background: transparent;
    color: var(--text-2);
    font-family: var(--font);
    font-size: 13px;
    cursor: pointer;
}

.comment_form_actions .button_cancel:hover {
    background: var(--hover);
}

.warning-text {
    color: var(--text-3);
    font-size: 13px;
}

.warning-text a:first-child {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

.comment-navigation {
    padding: 14px 0;
    text-align: center;
}

.comment-navigation a,
.comment-navigation span {
    display: inline-block;
    margin: 3px;
    padding: 4px 10px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-ctl);
    background: var(--card-bg);
    color: var(--text-2);
    font-size: 12.5px;
    text-decoration: none;
}

.comment-navigation a:hover {
    background: var(--hover);
    color: var(--text);
}

/* ---------- 侧边栏（导航窗格） ---------- */
.sidebar-cat.widget {
    padding: 2px 0 8px;
}

.sidebar-cat + .sidebar-cat {
    margin-top: 4px;
}

.sidebar-cat-title {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    margin: 2px 0 2px;
    padding: 0 8px;
    border-radius: var(--radius-ctl);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    cursor: default;
    user-select: none;
}

.sidebar-cat-title:hover {
    background: var(--hover);
}

.sidebar-cat-title img {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.sidebar-cat-list {
    padding: 0 2px;
}

.win10-widget-ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-cat-list .win10-widget-ul li {
    position: relative;
    padding: 6px 8px;
    border-radius: var(--radius-ctl);
    font-size: 12.5px;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color .1s ease;
}

.sidebar-cat-list .win10-widget-ul li:hover {
    background: var(--hover);
}

.sidebar-cat-list .win10-widget-ul li.child {
    padding-left: 24px;
}

.sidebar-cat-list .win10-widget-ul li.child::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 13px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-3);
    opacity: .7;
}

.win10-widget-ul li a {
    display: block;
    color: var(--text-2);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-cat-list .win10-widget-ul li:hover a,
.win10-widget-ul li a:hover {
    color: var(--text);
}

/* 最新评论 */
.sidebar-cat-list .win10-widget-comment li {
    white-space: normal;
}

.win10-widget-comment li a {
    display: -webkit-box;
    color: var(--text-2);
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.win10-widget-comm-name {
    color: var(--accent);
    margin-right: 4px;
}

/* 微语 */
.sidebar-cat-list .win10-widget-twitter li {
    white-space: normal;
    font-size: 12px;
    line-height: 1.65;
    color: var(--text-2);
}

.win10-widget-time {
    display: block;
    margin: 0 0 2px;
    color: var(--text-3);
    font-size: 11.5px;
}

/* 标签云 */
.win10-widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 4px 6px;
}

.win10-widget-tags a {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px !important;
    line-height: 18px;
    border-radius: 999px;
    background: var(--hover);
    color: var(--text-2);
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.win10-widget-tags a:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

/* 博主资料 */
.win10-widget-blogger {
    padding: 8px 4px 6px;
    text-align: center;
}

.win10-widget-blogger-avatar {
    display: inline-block;
}

.win10-widget-blogger img {
    width: 56px;
    height: 56px;
    padding: 2px;
    border-radius: 50%;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .10);
}

.win10-widget-blogger-name {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.win10-widget-blogger-desc {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-3);
    word-break: break-word;
}

/* 日历 */
.win10-widget-calendar {
    padding: 2px 2px 4px;
    font-size: 12px;
}

.win10-widget-calendar .calendartop {
    width: 100%;
    margin: 0 0 6px;
    border-collapse: collapse;
}

.win10-widget-calendar .calendartop td {
    width: 50%;
    padding: 2px 0;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.win10-widget-calendar .calendartop a {
    padding: 0 4px;
    border-radius: 3px;
    color: var(--text-3);
    text-decoration: none;
}

.win10-widget-calendar .calendartop a:hover {
    background: var(--hover);
    color: var(--text);
}

.win10-widget-calendar .calendar {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 1px;
}

.win10-widget-calendar .calendar td {
    width: 14.28%;
    height: 24px;
    padding: 0;
    text-align: center;
    font-size: 11px;
    line-height: 24px;
    color: var(--text-2);
    border-radius: var(--radius-ctl);
}

.win10-widget-calendar .calendar td.week {
    height: 18px;
    line-height: 18px;
    color: var(--text-3);
}

.win10-widget-calendar .calendar td.sun {
    color: #c96a6a;
}

.win10-widget-calendar .calendar td a {
    display: block;
    color: var(--text-2);
    text-decoration: none;
    border-radius: var(--radius-ctl);
}

.win10-widget-calendar .calendar td a:hover {
    background: var(--hover);
    color: var(--text);
}

.win10-widget-calendar .calendar td.day {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.win10-widget-calendar .calendar td.day a {
    color: #fff;
}

.win10-widget-calendar .calendar td.day2 a {
    color: var(--accent);
    font-weight: 600;
}

/* 组件搜索框 */
.win10-widget-search {
    display: flex;
    gap: 6px;
    padding: 4px 4px 6px;
}

.win10-widget-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-ctl);
    background: var(--field-bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 12.5px;
    outline: none;
}

.win10-widget-search input:focus {
    border-color: var(--accent);
    box-shadow: inset 0 -2px 0 -1px var(--accent);
}

.win10-widget-search button {
    flex: 0 0 auto;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-ctl);
    background: var(--card-bg);
    color: var(--text-2);
    font-family: var(--font);
    font-size: 12.5px;
    cursor: pointer;
}

.win10-widget-search button:hover {
    background: var(--hover);
    color: var(--text);
}

/* 自定义文本 */
.win10-widget-custom {
    padding: 4px 6px 8px;
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--text-2);
    word-break: break-word;
}

/* ---------- 页脚 ---------- */
footer {
    margin: 0;
    padding: 14px 16px 18px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.9;
}

footer a {
    color: var(--text-2);
    text-decoration: none;
}

footer a:hover {
    color: var(--accent);
}

/* ---------- 404 ---------- */
.win10-404 {
    padding: 56px 20px 40px;
    text-align: center;
}

.win10-404-code {
    margin: 0 0 6px;
    font-size: 76px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--accent);
    opacity: .28;
}

.win10-404-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    border: 0;
    padding: 0;
}

.win10-404-desc {
    margin: 0 0 20px;
    font-size: 13.5px;
    color: var(--text-3);
}

.win10-404-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ---------- 响应式 ---------- */
@media (min-width: 992px) {
    .sidebar {
        display: block;
    }
}

@media (max-width: 991px) {
    body {
        background: var(--win-bg);
    }

    #main {
        width: auto;
        max-width: none;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
        background: var(--win-bg);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .win-titlebar {
        height: 46px;
        padding-left: 12px;
    }

    .win-title {
        font-size: 14px;
    }

    .win-caption {
        height: 46px;
    }

    .win-cap {
        width: 42px;
    }

    .win-addressbar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 6px 10px 10px;
    }

    .win-navbtns {
        order: 1;
    }

    .win-searchbar {
        order: 2;
        flex: 1 1 auto;
        min-width: 0;
    }

    .win-search {
        height: 34px;
    }

    .win-address {
        order: 3;
        flex: 1 1 100%;
        height: 34px;
    }

    /* 窗口撑满视口，页脚贴底 */
    #main {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .content {
        flex: 1 1 auto;
    }

    .content {
        min-height: 0;
    }

    .post-content {
        padding: 16px 16px 24px;
        max-height: none;
        overflow: visible;
    }

    .postlist {
        padding: 4px 6px 18px;
        min-height: 0;
    }

    .win-list-head,
    .post-list-post {
        padding: 0 4px;
    }

    .post-list-post > div {
        padding: 8px 4px;
        font-size: 13px;
    }

    .win-post-title {
        font-size: 21px;
    }

    .win-address {
        font-size: 12px;
    }

    .comment_form_input {
        flex-wrap: wrap;
    }

    .comment_form_input input {
        flex: 1 1 100%;
    }

    .win10-404 {
        padding: 40px 12px 32px;
    }
}

@media (max-width: 480px) {
    .win-app {
        max-width: 90px;
    }

    .win-subtitle {
        display: none;
    }

    .win-post-meta {
        gap: 6px 12px;
    }
}

/* 降低动画偏好 */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}
