/**
 * 此刻主题 - Emlog版
 * CSS样式文件
 */

/* ========== 重置样式 ========== */
html, body, div, ol, ul, li, dl, dt, dd, h1, h2, h3, h4, h5, h6, input, button, textarea, p, span, form {
    margin: 0;
    padding: 0;
}

body, input, button, select, textarea {
    font: 14px/1.5 "Microsoft Yahei", "Yuanti SC", "Source Han Sans CN", -apple-system, sans-serif;
    color: #3E4252;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

table { border-collapse: collapse; border-spacing: 0; }
img, a img { border: 0; }
a {
    color: inherit;
    outline: medium none;
    text-decoration: none;
    transition: color .2s linear, background-color .2s linear;
}
a:hover { text-decoration: none; color: #364CC6; }
label { cursor: pointer; }
ul li { list-style: none; }
em, cite, i { font-style: normal; }
input:focus, textarea:focus { outline: none; }
input::-ms-clear { display: none; }
textarea { resize: none; }

/* ========== 基础布局 ========== */
html { height: 100%; width: 100%; }

body {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F6F8FF;
    min-width: 1024px;
}

.light { color: #9DA0B3; }

.hover-scale { transition: opacity .2s ease; }
.hover-scale:hover { opacity: 0.8; }

/* 主容器 - 三栏布局 */
.box-wrap {
    display: flex;
    flex-shrink: 0;
    width: calc(100% - 48px);
    max-width: 1440px;
    margin-top: 24px;
    background-color: #fff;
    border-radius: 46px;
}

/* 左侧导航栏 */
.header {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 168px;
    background: #364CC6;
    border-radius: 30px;
    margin: 24px 0 24px 24px;
    color: #fff;
    height: 768px;
    position: sticky;
    top: 48px;
}

/* 中间主内容区 */
.main {
    flex-grow: 1;
    padding: 38px 56px;
    display: flex;
    flex-direction: column;
    min-width: 380px;
}

/* 右侧边栏 */
.aside {
    width: 360px;
    flex-shrink: 0;
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    padding: 24px 24px 24px 0;
}

/* 底部 */
.footer {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 60px;
    font-size: 13px;
    color: #9DA0B3;
    justify-content: center;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.footer a { margin-left: 6px; }

/* ========== 头部LOGO区域 ========== */
.logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 32px;
}

.logo-img-wrap {
    font-weight: bolder;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-wrap h1, .logo-wrap h2 {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 5px;
}

.logo-wrap a { color: #fff; }

.logo-wrap .sub-title {
    font-size: 12px;
    font-weight: 300;
}

.logo {
    display: block;
    width: 72px;
    height: 72px;
    margin-bottom: 5px;
    border-radius: 18px;
}

/* ========== 导航菜单 ========== */
.menu-header-container {
    flex-grow: 1;
    margin-top: 50px;
}

.menu {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu .menu-item > a {
    display: flex;
    width: 80px;
    height: 80px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    margin-bottom: 20px;
    font-size: 13px;
}

.menu .menu-item.current-menu-item > a {
    background-color: #fff;
    color: #364CC6;
}

.menu .menu-item > a:hover {
    color: #FFD55D;
    background: rgba(255, 255, 255, 0.1);
}

/* ========== 顶部工具栏 ========== */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 首页顶部搜索框 */
.main-top-bar {
    margin-bottom: 20px;
}

.main-top-bar .search-form {
    width: 100%;
    max-width: 100%;
}

/* 顶部海报轮播 */
.top-banner-wrap {
    margin-bottom: 24px;
    border-radius: 24px;
    overflow: hidden;
}

.top-banner-slider {
    border-radius: 24px;
}

.top-banner-slider .pic-cover-item {
    border-radius: 24px;
}

.top-banner-slider .pic-cover-item-img {
    border-radius: 24px;
}

.search-form {
    display: flex;
    width: 460px;
    height: 52px;
    align-items: center;
    background-color: #F6F8FF;
    border-radius: 52px;
    overflow: hidden;
    flex-shrink: 0;
}

.aside-block .search-form {
    width: 100%;
    max-width: 100%;
}

.search-form > .icon-search {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    font-size: 18px;
    margin-left: 10px;
    margin-right: 3px;
    color: #9DA0B3;
    cursor: pointer;
    border: none;
    background-color: transparent;
}

.search-input {
    flex-grow: 1;
    border: none;
    height: 52px;
    background-color: transparent;
}

.search-input::placeholder { color: #9DA0B3; }

/* ========== 文章列表 ========== */
.block-title {
    font-size: 26px;
    color: #313546;
    margin-bottom: 20px;
}

.block-title .icon-right {
    display: inline-block;
    color: #FFD55D;
    font-weight: normal;
    font-size: inherit;
    transition: transform .25s ease;
}

.block-title a:hover .icon-right { transform: translateX(6px); }

.tficon { font-size: inherit; }


.post-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.post-item { margin-top: 26px; }

.main .post-list .post-item { width: calc(50% - 13px); }

.post-item-cover {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
}

.post-item-cover::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.post-item-img {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background-color: #F6F8FF;
    position: relative;
}

.post-item-img img {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
}

.post-item .post-categories {
    position: absolute;
    bottom: -8px;
    text-align: center;
    z-index: 9;
    width: 100%;
    left: 0;
    right: 0;
    padding: 0;
    margin: 0;
}

.post-item .post-categories li {
    display: inline-block !important;
    background-color: #FFD65D !important;
    padding: 6px !important;
    line-height: 1 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    color: #364CC7 !important;
    margin: 0 !important;
    list-style: none !important;
}

.post-item .post-categories li a {
    display: inline-block !important;
    background-color: transparent !important;
    color: #364CC7 !important;
    text-decoration: none !important;
    padding: 0 !important;
}

.post-item-title {
    display: block;
    margin-top: 12px;
    align-self: flex-start;
}

.post-item-title > h3 {
    display: -webkit-box;
    font-size: 18px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.post-item-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 8px;
}

.post-item-meta {
    font-size: 13px;
    color: #9DA0B3;
    flex-shrink: 0;
    margin-left: 5px;
}

.post-item-summary {
    font-size: 14px;
    color: #9DA0B3;
    margin-top: 5px;
    text-align: justify;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.5;
}

/* ========== 标签 ========== */
.tag-wrap {
    flex-grow: 1;
    overflow: hidden;
    white-space: normal;
}

.tag-wrap > a {
    display: inline-flex;
    align-items: center;
    height: 16px;
    color: #C6A549;
    font-size: 12px;
    padding: 0 3px;
    margin-left: 1px;
    background-color: rgba(255, 213, 93, 0.18);
    border-radius: 22px;
}

.tag-wrap > a:hover { text-decoration: underline; }
.tag-wrap > a:first-child { margin-left: 0; }

/* ========== 分页 ========== */
.pagination {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 38px;
    padding: 0;
    flex-wrap: wrap;
    gap: 6px;
}

.pagination a, .pagination span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background-color: #F6F8FF;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 900;
    color: #9DA0B3;
    text-decoration: none;
}

.pagination a:hover {
    color: #364CC6;
    background-color: #E8EBFF;
}

.pagination span.current,
.pagination .current {
    background-color: #364CC6;
    color: #fff;
}

/* ========== 侧边栏 ========== */
.aside-block {
    padding: 45px;
    box-sizing: border-box;
    background: #fff;
    box-shadow: 0px 0px 50px 0px rgba(0, 0, 0, 0.06);
    border-radius: 38px;
}

.sidebar-post-list { margin-top: 20px; }

.sider-post-item {
    display: flex;
    align-items: center;
    margin-top: 26px;
}

.sider-post-item-img {
    flex-shrink: 0;
    width: 128px;
    height: 104px;
    margin-right: 16px;
}

.sider-post-item-img img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
}

.sider-post-item-title {
    flex: 1;
    font-size: 14px;
}

/* 推荐板块 */
.photo-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.photo-item {
    width: calc(50% - 6px);
    display: flex;
    height: 128px;
    align-items: center;
    justify-content: center;
    background-color: #F6F8FF;
    border-radius: 16px;
    margin-top: 12px;
    overflow: hidden;
    position: relative;
}

.photo-item:first-child {
    width: 100%;
    margin-top: 0;
}

.photo-item img, .photo-item-img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
}

.photo-item-inner {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 9;
    display: block;
    padding: 4px 8px;
    font-size: 16px;
    color: #fff;
    border-radius: 8px;
    background: rgba(0, 0, 0, .4);
}

.photo-item-title {
    font-size: 16px;
    font-weight: normal;
    margin: 0;
    line-height: 1.4;
}

/* ========== 文章详情页 ========== */
.crumbs {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.crumbs a { margin-right: 16px; }
.crumbs span { color: #9DA0B3; }

.post-wrap { margin-top: 38px; }

.post-title {
    font-size: 32px;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    height: 50px;
    align-items: center;
    font-size: 14px;
    color: #9DA0B3;
    margin-top: 12px;
    margin-bottom: 12px;
    white-space: nowrap;
    flex-wrap: wrap;
    gap: 10px;
}

.post-meta .post-categories { display: flex; margin: 0; padding: 0; }
.post-meta .post-categories li { margin-right: 10px; list-style: none; }
.post-views { color: #9DA0B3; }

.post-content {
    font-size: 17px;
    line-height: 1.9;
    word-break: break-all;
    text-align: justify;
    padding-bottom: 26px;
    border-bottom: 1px #F6F8FF solid;
    overflow: hidden;
}

.post-content p { margin-top: 22px; margin-bottom: 22px; text-indent: 0; }
.post-content p:first-child { margin-top: 0; }

.post-content img, .post-content video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 22px auto;
    border-radius: 16px;
}

.post-content h2, .post-content h3 {
    font-size: 22px;
    margin-top: 22px;
    font-weight: bolder;
    position: relative;
    z-index: 1;
}

.post-content h2 { font-size: 24px; }

.single-prev-text, .single-next-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin: 0;
    font-weight: normal;
}

/* ========== Markdown样式 ========== */
.markdown {
    overflow-wrap: break-word;
    text-align: justify;
}

.markdown h1 { font-size: 1.8rem !important; margin-top: 1em; margin-bottom: 16px; font-weight: bold; padding-bottom: 5px; border-bottom: 1px solid #eee; }
.markdown h2 { font-size: 1.5rem !important; margin-top: 1em; margin-bottom: 16px; font-weight: bold; padding-bottom: 5px; border-bottom: 1px solid #eee; }
.markdown h3 { font-size: 1.3rem !important; line-height: 1.43; font-weight: bold; }
.markdown h4 { font-size: 1.2em !important; margin-bottom: 16px; font-weight: bold; }
.markdown h5, .markdown h6 { font-size: 1rem !important; margin-top: 1em; margin-bottom: 16px; font-weight: bold; }
.markdown h6 { color: #777; }
.markdown strong { font-weight: bold; }
.markdown del { text-decoration: line-through; }
.markdown a { color: #364CC6; text-decoration: underline; }

.markdown blockquote {
    color: #666;
    border-left: 4px solid #FFD55D;
    padding: 15px 20px;
    margin-left: 0;
    margin-bottom: 16px;
    font-size: 14px;
    font-style: italic;
    background: #F6F8FF;
    border-radius: 0 16px 16px 0;
}

.markdown ul, .markdown ol { padding-left: 2em; margin-bottom: 16px; }
.markdown li { font-size: 15px !important; line-height: 2; }

.markdown hr { height: 1px; border: none; border-top: 1px solid #F6F8FF; background: none; margin: 30px 0; }

.markdown pre {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #E8EBFF;
    background: #F6F8FF;
    overflow: auto;
    margin: 20px 0;
}

.markdown code:not(pre > code) {
    border-radius: 6px;
    font-size: 14px;
    color: #364CC6;
    background: #E8EBFF;
    padding: 2px 6px;
}

.markdown table { display: block; width: 100%; overflow: auto; border-collapse: collapse; margin-bottom: 16px; }
.markdown thead tr { background-color: #F6F8FF; }
.markdown td, .markdown th { padding: 10px 15px; border: 1px solid #E8EBFF; }
.markdown table tr:nth-child(even) { background: #F6F8FF; }
.markdown img { max-width: 100%; height: auto; display: block; margin: 22px auto; border-radius: 16px; }

/* ========== 评论样式 ========== */
.comment-header { margin: 30px 0 20px; padding-bottom: 10px; border-bottom: 1px solid #F6F8FF; }

.comment {
    display: flex;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    align-items: flex-start;
    border: 1px solid #E8EBFF;
}

/* 子评论缩进 */
.comment-reply-level {
    margin-left: 48px;
}

.comment .avatar {
    flex-shrink: 0;
    margin-right: 16px;
}

.comment .avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: block;
}

.comment-infos {
    flex: 1;
    min-width: 0;
    position: relative;
}

.comment-infos .arrow {
    display: none;
}

/* 评论元信息 */
.comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.comment-meta b {
    font-size: 14px;
    font-weight: 600;
    color: #3E4252;
    margin-right: 8px;
}

.comment-time {
    color: #9DA0B3;
    font-size: 12px;
    margin-right: 12px;
}

.comment-os,
.comment-browser {
    color: #9DA0B3;
    font-size: 12px;
    margin-right: 12px;
}

/* 评论内容 */
.comment-content {
    margin-top: 8px;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 14px;
    color: #3E4252;
}

/* 回复按钮 */
.comment-reply {
    margin-top: 12px;
}

.com-reply {
    color: #364CC6;
    cursor: pointer;
    font-size: 13px;
}

.com-reply:hover {
    text-decoration: underline;
}

#comments { margin-top: 40px; }
#comment-post { margin-top: 30px; }

.commentform textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #E8EBFF;
    border-radius: 16px;
    font-size: 15px;
    resize: vertical;
    min-height: 120px;
    margin-bottom: 16px;
}

.commentform textarea:focus { border-color: #364CC6; outline: none; }

.comment-info { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

.comment-info input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid #E8EBFF;
    border-radius: 12px;
    font-size: 14px;
}

.comment-info input:focus { border-color: #364CC6; outline: none; }

.com_submit_p { display: inline-block; }
.com_submit_p .btn {
    background: #364CC6;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
}

.com_submit_p .btn:hover { background: #2a3da8; }

#pagenavi { margin-top: 20px; }

/* ========== 幻灯片样式 ========== */
.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto 30px;
}

.slider { position: relative; }
.slider:before, .slider:after { display: table; content: ' '; }
.slider:after { clear: both; }

.slider__item {
    position: relative;
    float: left;
    margin: 0;
    padding: 0;
    aspect-ratio: 16 / 9;
}

.slider__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.slider__switch {
    position: absolute;
    top: 50%;
    margin-top: -50px;
    padding: 10px 5px;
    cursor: pointer;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, .6);
    opacity: 0;
    transition: opacity .15s ease;
}

.slider-container:hover .slider__switch { opacity: .3; }
.slider-container:hover .slider__switch:hover { opacity: 1; }
.slider__switch--prev { left: 10px; }
.slider__switch--next { right: 10px; }

.slider__switch span { color: #fff; display: block; width: 32px; height: 32px; }

.slider__caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: block;
    max-width: 500px;
    padding: 10px;
    color: #fff;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
}

.pic-cover-item { border-radius: 30px; overflow: hidden; }
.pic-cover-item-title { font-size: 26px; }
.pic-cover-item-img { border-radius: 30px; }

.slider-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 30px;
    z-index: 999;
}

.slider-nav__control {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 3px;
    border-radius: 50%;
    background: #EAEFFE;
    transition: background .5s ease;
}

.slider-nav__control.is-active { background: #ffd55d; }
.slider.has-touch { cursor: move; }

/* ========== 图标 ========== */
.tficon.icon-search::before { content: "🔍"; }
.tficon.icon-right::before { content: "→"; }
.tficon.icon-left::before { content: "←"; }
.tficon.icon-fire-line::before { content: "🔥"; }

/* ========== 侧边栏组件样式 ========== */
.aside-block {
    margin-bottom: 20px;
}

.sidebar-sort-list .sort-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #F6F8FF;
    border-radius: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #3E4252;
    transition: all 0.2s;
}

.sidebar-sort-list .sort-item:hover {
    background: #E8EBFF;
    color: #364CC6;
}

.sidebar-sort-list .sort-count {
    font-size: 12px;
    color: #9DA0B3;
}

.sidebar-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tag-cloud .tag-item {
    display: inline-block;
    padding: 6px 12px;
    background: #F6F8FF;
    border-radius: 20px;
    font-size: 13px;
    color: #3E4252;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-tag-cloud .tag-item:hover {
    background: #364CC6;
    color: #fff;
}

.sidebar-comment-list .comment-item {
    display: flex;
    padding: 12px;
    background: #F6F8FF;
    border-radius: 12px;
    margin-bottom: 10px;
}

.comment-item-avatar {
    flex-shrink: 0;
    margin-right: 12px;
}

.comment-item-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-item-content {
    flex: 1;
    min-width: 0;
}

.comment-item-author {
    font-weight: bold;
    font-size: 14px;
    color: #3E4252;
}

.comment-item-text {
    font-size: 13px;
    color: #9DA0B3;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-post-list .sider-post-item {
    margin-bottom: 12px;
}

.sider-post-item-title h3 {
    font-size: 15px;
    font-weight: normal;
    color: #3E4252;
    line-height: 1.5;
}

.sider-post-item-title:hover h3 {
    color: #364CC6;
}

.blogger-info {
    text-align: center;
    padding: 20px;
}

.blogger-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 12px;
}

.blogger-name {
    font-size: 18px;
    font-weight: bold;
    color: #3E4252;
    margin-bottom: 8px;
}

.blogger-desc {
    font-size: 14px;
    color: #9DA0B3;
    line-height: 1.6;
}

.sidebar-twitter-list .twitter-item {
    padding: 12px;
    background: #F6F8FF;
    border-radius: 12px;
    margin-bottom: 10px;
}

.twitter-item p {
    font-size: 14px;
    color: #3E4252;
    margin-bottom: 8px;
    line-height: 1.6;
}

.twitter-meta {
    font-size: 12px;
    color: #9DA0B3;
}

.archive-select {
    width: 100%;
    padding: 12px 16px;
    background: #F6F8FF;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    color: #3E4252;
    cursor: pointer;
}

.sidebar-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-link-list .link-item {
    padding: 8px 16px;
    background: #F6F8FF;
    border-radius: 20px;
    font-size: 13px;
    color: #3E4252;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-link-list .link-item:hover {
    background: #364CC6;
    color: #fff;
}

.custom-widget-content {
    padding: 16px;
    background: #F6F8FF;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.8;
    color: #3E4252;
}

/* 日历样式 */
#calendar {
    background: #F6F8FF;
    border-radius: 12px;
    padding: 16px;
}

#calendar table {
    width: 100%;
    border-collapse: collapse;
}

#calendar td, #calendar th {
    padding: 8px;
    text-align: center;
    font-size: 13px;
}

#calendar th {
    color: #9DA0B3;
}

#calendar td a {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    border-radius: 50%;
    background: #364CC6;
    color: #fff;
    text-decoration: none;
}

#calendar .today {
    background: #FFD55D;
    color: #364CC6;
    border-radius: 50%;
}

/* ========== 响应式设计 ========== */
/* 汉堡菜单按钮 - 默认隐藏 */
.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: background 0.2s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: #fff;
    transition: transform 0.2s;
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

/* 菜单打开状态 */
.menu-toggle.active .hamburger { background: transparent; }
.menu-toggle.active .hamburger::before { transform: rotate(45deg) translate(4px, 4px); }
.menu-toggle.active .hamburger::after { transform: rotate(-45deg) translate(4px, -4px); }

/* 移动端遮罩层 */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

@media screen and (max-width: 1024px) {
    body { min-width: 0; }
    
    .box-wrap {
        width: 100%;
        margin-top: 0;
        border-radius: 0;
        flex-direction: column;
        padding-bottom: 38px;
    }

    .header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: calc(100% - 32px);
        height: auto;
        top: auto;
        margin: 16px;
        padding: 12px 16px;
        border-radius: 16px;
        min-height: 72px;
        position: relative;
        z-index: 999;
    }

    .logo-wrap {
        margin-top: 0;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex: 1;
    }

    .logo { width: 40px; height: 40px; margin-bottom: 0; border-radius: 10px; }
    .logo-wrap h1 { font-size: 15px; margin-bottom: 0; }
    .logo-wrap .sub-title { display: none; }

    /* 汉堡菜单按钮 */
    .menu-toggle {
        display: flex;
    }

    /* 移动端导航菜单 - 默认隐藏 */
    .menu-header-container {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 8px;
        background: #364CC6;
        border-radius: 16px;
        padding: 12px;
        display: none;
        box-shadow: 0 8px 32px rgba(54, 76, 198, 0.3);
        z-index: 10;
    }

    .menu-header-container.active {
        display: block;
    }

    .menu-header-container { margin-top: 0; flex-grow: 0; }
    .menu { flex-direction: column; align-items: stretch; gap: 4px; }
    .menu .menu-item { margin-bottom: 0; }
    .menu .menu-item > a {
        width: 100%;
        height: auto;
        padding: 14px 16px;
        margin-bottom: 0;
        font-size: 14px;
        border-radius: 12px;
        flex-direction: row;
        justify-content: flex-start;
    }

    .main { padding: 0 16px; min-width: 0; }
    .aside { width: auto; padding: 0 16px; margin-top: 20px; }
    .main .post-list .post-item { width: 100%; }

    .top-bar { flex-wrap: wrap; gap: 12px; }
    .top-bar .search-form { width: 100%; max-width: 100%; height: 44px; }
    .top-bar .search-input { height: 44px; }
    
    /* 移动端首页顶部搜索框 */
    .main-top-bar {
        margin-bottom: 16px;
        margin-top: 16px;
    }
    
    .main-top-bar .search-form {
        width: 100% !important;
        height: 48px !important;
    }
    
    .main-top-bar .search-input {
        height: 48px !important;
        font-size: 16px; /* 防止iOS自动缩放 */
    }

    /* 移动端顶部海报轮播 */
    .top-banner-wrap {
        margin-top: 16px;
        margin-bottom: 16px;
        border-radius: 16px;
    }

    .top-banner-slider {
        border-radius: 16px;
    }

    .top-banner-slider .pic-cover-item {
        border-radius: 16px;
    }

    .top-banner-slider .pic-cover-item-img {
        border-radius: 16px;
    }
}
