:root {
    --gt-body-bg: #f5f7fa;
    --gt-card-bg: #ffffff;
    --gt-bg-fa: #fafbfc;
    --gt-bg-f5: #f5f7fa;
    --gt-header-bg: rgba(255, 255, 255, 0.92);
    --gt-footer-bg: #ffffff;
    --gt-text-secondary: rgba(44, 62, 80, 0.72);
    --gt-text-muted: rgba(44, 62, 80, 0.52);
    --gt-text-light: rgba(44, 62, 80, 0.36);
    --gt-border-color: rgba(44, 62, 80, 0.08);
    --gt-border-light: rgba(44, 62, 80, 0.06);
    --gt-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    --gt-box-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
    --gt-box-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
    --gt-header-shadow: 0 1px 0 var(--gt-border-color), 0 2px 8px rgba(0, 0, 0, 0.03);
    --gt-main-radius: 12px;
    --gt-card-radius: 12px;
    --gt-sm-radius: 8px;
    --gt-transition: all 0.2s ease;
    --gt-font-color: #1f2328;
    --gt-main-max-width: 1280px;
    --gt-z-header: 500;
    --gt-z-modal: 1000;
}

[data-theme="dark"]:root,
html[data-theme="dark"] :root {
    --gt-body-bg: #0d1117;
    --gt-card-bg: #161b22;
    --gt-bg-fa: #131820;
    --gt-bg-f5: #0f1419;
    --gt-header-bg: rgba(22, 27, 34, 0.92);
    --gt-footer-bg: #161b22;
    --gt-text-secondary: rgba(201, 209, 217, 0.72);
    --gt-text-muted: rgba(201, 209, 217, 0.48);
    --gt-text-light: rgba(201, 209, 217, 0.3);
    --gt-border-color: rgba(201, 209, 217, 0.1);
    --gt-border-light: rgba(201, 209, 217, 0.06);
    --gt-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --gt-font-color: #e6edf3;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--gt-font-color);
    background: var(--gt-body-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    margin: 0;
    padding: 0;
}

a {
    color: var(--gt-main-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--gt-main-color-88);
}

img {
    max-width: 100%;
    height: auto;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header 重构 */
.gt-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header, 500);
    height: 64px;
    background: var(--gt-header-bg);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--gt-border-color);
    box-shadow: var(--gt-header-shadow);
    transition: var(--gt-transition);
}

.gt-header > section {
    max-width: var(--gt-main-max-width, 1280px);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.gt-header .home,
.gt-header .site-logo {
    flex: 0 0 auto;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.gt-header .home a,
.gt-header .site-logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gt-font-color);
}

.gt-logo-img {
    max-height: 32px;
    width: auto;
    object-fit: contain;
}

.gt-logo-text {
    background: linear-gradient(135deg, var(--gt-main-color) 0%, var(--gt-main-color-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-center {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gt-text-secondary);
    border-radius: 999px;
    transition: var(--gt-transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
    color: var(--gt-main-color);
    background: var(--gt-main-color-10);
}

.nav-menu .sub-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    padding: 0.5rem;
    background: var(--gt-card-bg);
    border: 1px solid var(--gt-border-color);
    border-radius: 12px;
    box-shadow: var(--gt-box-shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--gt-transition);
    list-style: none;
}

.nav-menu > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    top: 100%;
}

.nav-menu .sub-menu a {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: var(--gt-text-secondary);
    border-radius: 8px;
    transition: var(--gt-transition);
}

.nav-menu .sub-menu a:hover {
    color: var(--gt-main-color);
    background: var(--gt-main-color-10);
}

.nav-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-right .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: var(--gt-text-secondary);
    font-size: 1.125rem;
    transition: var(--gt-transition);
}

.nav-right .nav-link:hover {
    color: var(--gt-main-color);
    background: var(--gt-main-color-10);
}

/* 主内容区 */
.main {
    padding-top: calc(64px + 1.5rem);
    padding-bottom: 2rem;
}

.main-inner {
    max-width: var(--gt-main-max-width, 1280px);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr var(--gt-aside-width, 320px);
    gap: 1.5rem;
    align-items: start;
}

.main-inner.aside-left {
    grid-template-columns: var(--gt-aside-width, 320px) 1fr;
}

.main-inner.no-aside {
    grid-template-columns: 1fr;
}

.main-inner-content {
    min-width: 0;
}

@media (max-width: 991px) {
    .main-inner,
    .main-inner.aside-left {
        grid-template-columns: 1fr;
    }
    
    .gt-aside {
        display: none;
    }
}

/* 文章列表 - 单列水平卡片布局（参考 sukuy.com） */
.article-list-main {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.gt-cms-title-h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gt-font-color);
    margin: 0;
    padding: 0;
}

/* 首页 Tab 菜单 */
.article-tabs-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.article-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.article-tabs::-webkit-scrollbar {
    display: none;
}

.article-tabs a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    background: transparent;
    color: var(--gt-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.article-tabs a:hover {
    color: var(--gt-main-color);
    background: var(--gt-main-color-10);
}

.article-tabs a.active {
    color: var(--gt-main-color);
    background: var(--gt-main-color-10);
    font-weight: 600;
}

.mirai-home-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.125rem;
}

.mirai-home-tabs::-webkit-scrollbar {
    display: none;
}

.mirai-home-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    background: transparent;
    border: none;
    color: var(--gt-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.mirai-home-tab:hover {
    color: var(--gt-main-color);
    background: var(--gt-main-color-10);
}

.mirai-home-tab.active {
    background: var(--gt-main-color-10);
    color: var(--gt-main-color);
    font-weight: 600;
}

/* 文章列表 - 单列水平卡片 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.article-list[data-grid="2"] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.article-list[data-grid="3"] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.article-list.single-column {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

@media (max-width: 1199px) {
    .article-list[data-grid="3"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .article-list[data-grid="2"],
    .article-list[data-grid="3"] {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* 文章卡片 - 水平布局（左图右文，参考 sukuy.com） */
.gt-article-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: var(--gt-card-bg);
    border: 1px solid var(--gt-border-color);
    border-radius: var(--gt-card-radius);
    overflow: hidden;
    box-shadow: var(--gt-box-shadow-sm);
    transition: all 0.2s ease;
}

.gt-article-item:hover {
    border-color: rgba(44, 62, 80, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.gt-article-banner {
    position: relative;
    flex: 0 0 220px;
    width: 220px;
    aspect-ratio: auto;
    overflow: hidden;
    background: var(--gt-bg-f5);
}

.gt-article-banner a {
    display: block;
    width: 100%;
    height: 100%;
}

.gt-article-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gt-article-item:hover .gt-article-cover {
    transform: scale(1.04);
}

.gt-article-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 1.125rem 1.25rem;
    min-width: 0;
}

.gt-article-item header {
    padding: 0;
    margin-bottom: 0.5rem;
}

.gt-article-item .title {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    color: var(--gt-font-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.gt-article-item .title a {
    color: var(--gt-font-color);
}

.gt-article-item:hover .title a {
    color: var(--gt-main-color);
}

.gt-article-excerpt {
    padding: 0;
    font-size: 0.875rem;
    color: var(--gt-text-secondary);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.gt-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0;
    margin-bottom: 0.625rem;
}

.gt-article-tag {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gt-text-secondary);
    background: var(--gt-bg-fa);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.gt-article-tag:hover {
    color: var(--gt-main-color);
    background: var(--gt-main-color-10);
}

/* 文章元信息行：作者头像 + 名称 + 日期 + 浏览 + 点赞 + 评论 */
.gt-article-taglist {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.625rem;
    padding: 0;
    margin-top: auto;
    font-size: 0.8125rem;
    color: var(--gt-text-muted);
}

.gt-article-taglist > * {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.gt-article-taglist .gt-article-author {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--gt-text-secondary);
    font-weight: 500;
}

.gt-article-taglist .gt-article-author a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--gt-text-secondary);
    transition: color 0.2s ease;
}

.gt-article-taglist .gt-article-author a:hover {
    color: var(--gt-main-color);
}

.gt-author-mini-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.gt-article-taglist .gt-article-views,
.gt-article-taglist .gt-article-likes,
.gt-article-taglist .gt-article-comments {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.gt-article-taglist i {
    font-size: 1rem;
}

/* 2列网格下的文章卡片 */
.article-list[data-grid="2"] .gt-article-banner {
    flex: 0 0 180px;
    width: 180px;
}

.article-list[data-grid="2"] .gt-article-content {
    padding: 0.875rem 1rem;
}

.article-list[data-grid="2"] .gt-article-item .title {
    font-size: 1rem;
}

/* 3列网格下的文章卡片 - 垂直布局 */
.article-list[data-grid="3"] .gt-article-item {
    flex-direction: column;
}

.article-list[data-grid="3"] .gt-article-banner {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 10;
}

.article-list[data-grid="3"] .gt-article-content {
    padding: 0.875rem 1rem 1rem;
}

.article-list[data-grid="3"] .gt-article-item .title {
    font-size: 0.9375rem;
}

.article-list[data-grid="3"] .gt-article-excerpt {
    font-size: 0.8125rem;
}

/* 单列模式下保持水平布局 */
.article-list.single-column .gt-article-item {
    flex-direction: row;
}

.article-list.single-column .gt-article-banner {
    flex: 0 0 240px;
    width: 240px;
    aspect-ratio: auto;
}

/* 移动端响应式：小屏幕下切换为垂直布局（上图下文） */
@media (max-width: 767px) {
    .gt-article-item {
        flex-direction: column;
    }

    .gt-article-banner {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .gt-article-content {
        padding: 0.875rem 1rem 1rem;
    }

    .gt-article-item .title {
        font-size: 0.9375rem;
    }

    .gt-article-excerpt {
        font-size: 0.8125rem;
    }

    .article-list.single-column .gt-article-banner {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}

/* 分页 */
.nav-links,
.p-wrap {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.nav-links .page-numbers,
.p-wrap .page-numbers,
.p-wrap a,
.p-wrap span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gt-text-secondary);
    background: var(--gt-card-bg);
    border: 1px solid var(--gt-border-color);
    border-radius: 10px;
    transition: var(--gt-transition);
}

.nav-links .page-numbers.current,
.p-wrap .page-numbers.current,
.p-wrap span.current {
    color: #fff;
    background: var(--gt-main-color);
    border-color: var(--gt-main-color);
}

.nav-links .page-numbers:hover,
.p-wrap a:hover {
    color: var(--gt-main-color);
    border-color: var(--gt-main-color-10);
    background: var(--gt-main-color-10);
}

/* 侧边栏重构 */
.gt-aside {
    position: relative;
}

.sticky-aside {
    position: sticky;
    top: calc(64px + 1.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.gt-aside-item {
    background: var(--gt-card-bg);
    border: 1px solid var(--gt-border-color);
    border-radius: var(--gt-card-radius);
    padding: 1.25rem;
    box-shadow: var(--gt-box-shadow-sm);
}

.gt-aside-item .sky-h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gt-font-color);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gt-border-light);
}

.gt-aside-item .sky-h3 i {
    color: var(--gt-main-color);
    margin-right: 0.375rem;
}

.gt-aside-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 3px solid var(--gt-bg-fa);
    box-shadow: var(--gt-box-shadow-sm);
}

.gt-aside-author {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gt-font-color);
}

.gt-aside-bio {
    font-size: 0.8125rem;
    color: var(--gt-text-secondary);
    text-align: center;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.gt-aside-articles {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.gt-aside-article-item {
    display: flex;
    gap: 0.875rem;
    padding: 0.625rem;
    border-radius: 12px;
    transition: var(--gt-transition);
}

.gt-aside-article-item:hover {
    background: var(--gt-bg-fa);
}

.gt-aside-article-cover {
    width: 72px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex: 0 0 auto;
    background: var(--gt-bg-f5);
}

.gt-aside-article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gt-aside-article-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gt-aside-article-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gt-font-color);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--gt-transition);
}

.gt-aside-article-item:hover .gt-aside-article-title {
    color: var(--gt-main-color);
}

.gt-aside-article-meta {
    font-size: 0.75rem;
    color: var(--gt-text-muted);
    margin-top: 0.25rem;
}

.gt-aside-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gt-aside-tags a {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--gt-text-secondary);
    background: var(--gt-bg-fa);
    border-radius: 8px;
    transition: var(--gt-transition);
}

.gt-aside-tags a:hover {
    color: var(--gt-main-color);
    background: var(--gt-main-color-10);
}

.gt-aside-comments {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.gt-aside-comment-item {
    display: flex;
    gap: 0.75rem;
}

.gt-aside-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.gt-aside-comment-content {
    flex: 1 1 auto;
    min-width: 0;
}

.gt-aside-comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.gt-aside-comment-author {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gt-font-color);
}

.gt-aside-comment-time {
    font-size: 0.75rem;
    color: var(--gt-text-muted);
}

.gt-aside-comment-text {
    font-size: 0.8125rem;
    color: var(--gt-text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer 重构 */
.gt-footer {
    background: var(--gt-footer-bg);
    border-top: 1px solid var(--gt-border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.gt-footer-main {
    max-width: var(--gt-main-max-width, 1280px);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gt-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 991px) {
    .gt-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.gt-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gt-footer-logo {
    display: inline-flex;
}

.gt-footer-logo-img {
    max-height: 32px;
    width: auto;
}

.gt-footer-desc {
    font-size: 0.875rem;
    color: var(--gt-text-secondary);
    line-height: 1.7;
}

.gt-footer-center {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gt-footer-custom {
    font-size: 0.875rem;
    color: var(--gt-text-secondary);
    line-height: 1.7;
}

.gt-footer-bottom {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--gt-border-light);
}

.footer-copyright,
.footer-beian {
    font-size: 0.8125rem;
    color: var(--gt-text-muted);
    margin: 0;
}

.footer-copyright a,
.footer-beian a {
    color: var(--gt-text-secondary);
}

.footer-copyright a:hover,
.footer-beian a:hover {
    color: var(--gt-main-color);
}

.gt-footer-qrcodes {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.gt-footer-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.gt-footer-qrcode-img {
    border-radius: 8px;
    border: 1px solid var(--gt-border-color);
}

.gt-footer-qrcode-text {
    font-size: 0.75rem;
    color: var(--gt-text-muted);
}

/* 移动端底部导航 */
.mobile-bottom-tab {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-mobile-sidebar, 900);
    display: none;
    background: var(--gt-card-bg);
    border-top: 1px solid var(--gt-border-color);
    padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
}

@media (max-width: 991px) {
    .mobile-bottom-tab {
        display: flex;
    }
}

/* 用户中心布局微调 */
.mirai-user-center {
    padding-top: 1rem;
}

.user-center-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 991px) {
    .user-center-layout {
        grid-template-columns: 1fr;
    }
}

.user-sidebar {
    background: var(--gt-card-bg);
    border: 1px solid var(--gt-border-color);
    border-radius: var(--gt-card-radius);
    padding: 1.25rem;
    box-shadow: var(--gt-box-shadow-sm);
}

.user-info-card {
    margin-bottom: 1rem;
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gt-bg-fa);
}

.user-info-main {
    min-width: 0;
}

.user-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gt-font-color);
    margin-bottom: 0.25rem;
}

.user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gt-text-secondary);
    background: var(--gt-bg-fa);
    border-radius: 6px;
}

.user-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gt-text-secondary);
    border-radius: 10px;
    transition: var(--gt-transition);
    cursor: pointer;
}

.menu-item:hover,
.menu-item.active {
    color: var(--gt-main-color);
    background: var(--gt-main-color-10);
}

.menu-item i:first-child {
    font-size: 1.0625rem;
}

.menu-item.logout {
    margin-top: 0.5rem;
    color: var(--gt-error);
}

.menu-item.logout:hover {
    background: var(--gt-error-hover);
}

.user-content .user-module {
    background: var(--gt-card-bg);
    border: 1px solid var(--gt-border-color);
    border-radius: var(--gt-card-radius);
    padding: 1.5rem;
    box-shadow: var(--gt-box-shadow-sm);
}

.module-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--gt-border-light);
}

.module-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gt-font-color);
}

/* Hero 区域美化 */
.mirai-hero {
    border-radius: var(--gt-card-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--gt-box-shadow);
}

.mirai-hero-slide {
    border-radius: var(--gt-card-radius);
    overflow: hidden;
}

.mirai-hero-content {
    text-align: center;
    padding: 2rem;
}

.mirai-hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.mirai-hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.25rem;
}

.mirai-hero-search-form {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    padding: 0.375rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.mirai-hero-search-input {
    flex: 1 1 auto;
    border: none;
    background: transparent;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    outline: none;
}

.mirai-hero-search-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--gt-main-color);
    color: #fff;
    cursor: pointer;
    transition: var(--gt-transition);
}

.mirai-hero-search-btn:hover {
    background: var(--gt-main-color-88);
}

/* 通用按钮和表单 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--gt-transition);
}

.btn-primary {
    color: #fff;
    background: var(--gt-main-color);
    border-color: var(--gt-main-color);
}

.btn-primary:hover {
    background: var(--gt-main-color-88);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-radius: 8px;
}

/* 空状态 */
.gt-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--gt-text-muted);
}

.gt-empty img {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gt-article-item {
    animation: fadeInUp 0.5s ease forwards;
}

/* 面包屑 */
.mirai-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.875rem 1.125rem;
    margin-bottom: 1.25rem;
    background: var(--gt-card-bg);
    border: 1px solid var(--gt-border-color);
    border-radius: 12px;
    font-size: 0.875rem;
}

.mirai-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.mirai-breadcrumb a {
    color: var(--gt-text-secondary);
    transition: var(--gt-transition);
}

.mirai-breadcrumb a:hover {
    color: var(--gt-main-color);
}

.mirai-breadcrumb .separator {
    color: var(--gt-text-muted);
}

/* ==========================================================================
   强制覆盖旧样式（确保布局刷新生效）
   以下规则使用更高优先级或 !important，防止 mirai.css 等旧样式覆盖。
   ========================================================================== */

html body {
    background: var(--gt-body-bg) !important;
    color: var(--gt-font-color) !important;
}

.main {
    padding-top: calc(64px + 1.5rem) !important;
}

.main-inner,
.main-inner.aside-left,
.main-inner.aside-right {
    display: grid !important;
    grid-template-columns: 1fr var(--gt-aside-width, 320px) !important;
    gap: 1.5rem !important;
    align-items: start !important;
    max-width: var(--gt-main-max-width, 1280px) !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
}

.main-inner.aside-left {
    grid-template-columns: var(--gt-aside-width, 320px) 1fr !important;
}

.main-inner.no-aside {
    grid-template-columns: 1fr !important;
}

.article-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.875rem !important;
}

.article-list[data-grid="2"] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
}

.article-list[data-grid="3"] {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
}

.article-list[data-grid="1"],
.article-list.single-column {
    display: flex !important;
    flex-direction: column !important;
}

.gt-article-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    background: var(--gt-card-bg) !important;
    border: 1px solid var(--gt-border-color) !important;
    border-radius: var(--gt-card-radius) !important;
    overflow: hidden !important;
    box-shadow: var(--gt-box-shadow-sm) !important;
}

.gt-article-banner {
    position: relative !important;
    flex: 0 0 220px !important;
    width: 220px !important;
    overflow: hidden !important;
    background: var(--gt-bg-f5) !important;
    aspect-ratio: auto !important;
}

.gt-article-cover {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.gt-article-content {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 1.125rem 1.25rem !important;
    min-width: 0 !important;
}

.gt-article-item header {
    padding: 0 !important;
    margin-bottom: 0.5rem !important;
}

.gt-article-item .title {
    font-size: 1.0625rem !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    margin: 0 !important;
}

.gt-article-excerpt {
    padding: 0 !important;
    font-size: 0.875rem !important;
    color: var(--gt-text-secondary) !important;
    line-height: 1.65 !important;
    margin-bottom: 0.75rem !important;
}

.gt-article-taglist {
    padding: 0 !important;
    margin-top: auto !important;
    font-size: 0.8125rem !important;
    color: var(--gt-text-muted) !important;
}

/* 3列模式下切换为垂直布局 */
.article-list[data-grid="3"] .gt-article-item {
    flex-direction: column !important;
}

.article-list[data-grid="3"] .gt-article-banner {
    flex: 0 0 auto !important;
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
}

.article-list[data-grid="3"] .gt-article-content {
    padding: 0.875rem 1rem 1rem !important;
}

.article-list[data-grid="3"] .gt-article-item .title {
    font-size: 0.9375rem !important;
}

.gt-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 500 !important;
    height: 64px !important;
    background: var(--gt-header-bg) !important;
    backdrop-filter: saturate(180%) blur(12px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(12px) !important;
    border-bottom: 1px solid var(--gt-border-color) !important;
    box-shadow: var(--gt-header-shadow) !important;
}

.gt-header > section {
    max-width: var(--gt-main-max-width, 1280px) !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1.5rem !important;
}

.gt-aside {
    display: block !important;
}

.gt-aside-item {
    background: var(--gt-card-bg) !important;
    border: 1px solid var(--gt-border-color) !important;
    border-radius: var(--gt-card-radius) !important;
    padding: 1.25rem !important;
    box-shadow: var(--gt-box-shadow-sm) !important;
    margin-bottom: 1.25rem !important;
}

.gt-footer {
    background: var(--gt-footer-bg) !important;
    border-top: 1px solid var(--gt-border-color) !important;
    padding: 3rem 0 1.5rem !important;
    margin-top: 2rem !important;
}

@media (max-width: 1199px) {
    .article-list[data-grid="3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 991px) {
    .main-inner,
    .main-inner.aside-left,
    .main-inner.aside-right {
        grid-template-columns: 1fr !important;
    }

    .gt-aside {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .article-list,
    .article-list[data-grid="2"],
    .article-list[data-grid="3"] {
        display: flex !important;
        flex-direction: column !important;
    }

    .gt-article-item {
        flex-direction: column !important;
    }

    .gt-article-banner {
        flex: 0 0 auto !important;
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
    }

    .gt-article-content {
        padding: 0.875rem 1rem 1rem !important;
    }

    .gt-header > section {
        padding: 0 1rem !important;
        gap: 1rem !important;
    }

    .main-inner,
    .main-inner.aside-left,
    .main-inner.aside-right {
        padding: 0 1rem !important;
    }
}

/* ==========================================================================
   Bootstrap 兼容工具类（主题未引入 Bootstrap，但模板大量使用了其类名）
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--gt-main-max-width, 1280px);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col {
    flex: 1 0 0%;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
}

.col-1 { flex: 0 0 auto; width: 8.333333%; }
.col-2 { flex: 0 0 auto; width: 16.666667%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-4 { flex: 0 0 auto; width: 33.333333%; }
.col-5 { flex: 0 0 auto; width: 41.666667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.333333%; }
.col-8 { flex: 0 0 auto; width: 66.666667%; }
.col-9 { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.333333%; }
.col-11 { flex: 0 0 auto; width: 91.666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 768px) {
    .col-md { flex: 1 0 0%; }
    .col-md-auto { flex: 0 0 auto; width: auto; }
    .col-md-1 { flex: 0 0 auto; width: 8.333333%; }
    .col-md-2 { flex: 0 0 auto; width: 16.666667%; }
    .col-md-3 { flex: 0 0 auto; width: 25%; }
    .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-md-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-7 { flex: 0 0 auto; width: 58.333333%; }
    .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-md-9 { flex: 0 0 auto; width: 75%; }
    .col-md-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-md-11 { flex: 0 0 auto; width: 91.666667%; }
    .col-md-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 992px) {
    .col-lg { flex: 1 0 0%; }
    .col-lg-auto { flex: 0 0 auto; width: auto; }
    .col-lg-1 { flex: 0 0 auto; width: 8.333333%; }
    .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
    .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-lg-9 { flex: 0 0 auto; width: 75%; }
    .col-lg-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-lg-11 { flex: 0 0 auto; width: 91.666667%; }
    .col-lg-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 1200px) {
    .col-xl { flex: 1 0 0%; }
    .col-xl-auto { flex: 0 0 auto; width: auto; }
    .col-xl-1 { flex: 0 0 auto; width: 8.333333%; }
    .col-xl-2 { flex: 0 0 auto; width: 16.666667%; }
    .col-xl-3 { flex: 0 0 auto; width: 25%; }
    .col-xl-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-xl-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-xl-6 { flex: 0 0 auto; width: 50%; }
    .col-xl-7 { flex: 0 0 auto; width: 58.333333%; }
    .col-xl-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-xl-9 { flex: 0 0 auto; width: 75%; }
    .col-xl-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-xl-11 { flex: 0 0 auto; width: 91.666667%; }
    .col-xl-12 { flex: 0 0 auto; width: 100%; }
}

/* Display utilities */
.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-inline { display: inline !important; }
    .d-md-inline-block { display: inline-block !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
    .d-md-inline-flex { display: inline-flex !important; }
}

@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-inline { display: inline !important; }
    .d-lg-inline-block { display: inline-block !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
    .d-lg-inline-flex { display: inline-flex !important; }
}

/* Flex utilities */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }

/* Gap utilities */
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 3rem !important; }

@media (min-width: 768px) {
    .g-md-1 { gap: 0.25rem !important; }
    .g-md-2 { gap: 0.5rem !important; }
    .g-md-3 { gap: 1rem !important; }
    .g-md-4 { gap: 1.5rem !important; }
    .g-md-5 { gap: 3rem !important; }
}

/* Spacing utilities (margin/padding) */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.ms-auto { margin-left: auto !important; }
.me-auto { margin-right: auto !important; }

.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.px-1 { padding-right: 0.25rem !important; padding-left: 0.25rem !important; }
.px-2 { padding-right: 0.5rem !important; padding-left: 0.5rem !important; }
.px-3 { padding-right: 1rem !important; padding-left: 1rem !important; }
.px-4 { padding-right: 1.5rem !important; padding-left: 1.5rem !important; }
.px-5 { padding-right: 3rem !important; padding-left: 3rem !important; }

.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* Text utilities */
.text-nowrap { white-space: nowrap !important; }
.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }

/* ==========================================================================
   移动端导航与侧边栏样式
   ========================================================================== */

.menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: transparent;
    border: none;
    color: var(--gt-text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--gt-transition);
}

.menu-btn:hover {
    color: var(--gt-main-color);
    background: var(--gt-main-color-10);
}

@media (max-width: 991px) {
    .menu-btn {
        display: inline-flex !important;
    }

    .nav-center {
        display: none !important;
    }

    .gt-header .site-logo,
    .gt-header .home {
        margin-right: auto;
    }
}

.gt-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 899;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: var(--gt-transition);
}

.gt-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gt-mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 85vw);
    z-index: 900;
    background: var(--gt-card-bg);
    border-right: 1px solid var(--gt-border-color);
    box-shadow: var(--gt-box-shadow);
    transform: translateX(-105%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    overflow-y: auto;
}

.gt-mobile-sidebar.active {
    transform: translateX(0);
}

.gt-mobile-sidebar-header {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--gt-border-color);
}

.gt-mobile-sidebar-header .header-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    border-radius: 10px;
    background: var(--gt-bg-fa);
    color: var(--gt-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--gt-transition);
}

.gt-mobile-sidebar-header .header-item:hover {
    color: var(--gt-main-color);
    background: var(--gt-main-color-10);
}

.gt-mobile-sidebar-header .header-item .item-icon {
    font-size: 1.125rem;
}

.gt-mobile-sidebar-body {
    flex: 1 1 auto;
    padding: 1rem;
}

.gt-mobile-nav-list .mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gt-mobile-nav-list .mobile-nav-menu > li > a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--gt-font-color);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--gt-transition);
}

.gt-mobile-nav-list .mobile-nav-menu > li > a:hover,
.gt-mobile-nav-list .mobile-nav-menu > li.current-menu-item > a {
    color: var(--gt-main-color);
    background: var(--gt-main-color-10);
}

.gt-mobile-nav-list .mobile-nav-menu .sub-menu {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gt-mobile-nav-list .mobile-nav-menu .sub-menu a {
    display: block;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    color: var(--gt-text-secondary);
    font-size: 0.875rem;
    transition: var(--gt-transition);
}

.gt-mobile-nav-list .mobile-nav-menu .sub-menu a:hover {
    color: var(--gt-main-color);
    background: var(--gt-main-color-10);
}

/* 移动端底部导航 */
.mobile-bottom-tab {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    display: none;
    background: var(--gt-card-bg);
    border-top: 1px solid var(--gt-border-color);
    padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

@media (max-width: 991px) {
    .mobile-bottom-tab {
        display: flex;
        justify-content: space-around;
    }

    body:has(.mobile-bottom-tab) {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }
}

.mobile-bottom-tab a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.375rem 0;
    color: var(--gt-text-muted);
    font-size: 0.6875rem;
    transition: var(--gt-transition);
}

.mobile-bottom-tab a i {
    font-size: 1.25rem;
}

.mobile-bottom-tab a.active,
.mobile-bottom-tab a:hover {
    color: var(--gt-main-color);
}

/* ==========================================================================
   余额/收益中心
   ========================================================================== */
.wallet-balance {
    background: linear-gradient(135deg, var(--gt-main-color) 0%, #5aa3ff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    color: #fff;
    text-align: center;
}

.wallet-balance .wallet-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.wallet-balance .wallet-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.wallet-recharge-form,
.wallet-withdraw-form {
    background: var(--gt-card-bg, #fff);
    border: 1px solid var(--gt-border-color, #eee);
    border-radius: 12px;
    padding: 1.25rem;
}

.wallet-form-row {
    margin-bottom: 1rem;
}

.wallet-form-row label {
    display: block;
    font-size: 0.875rem;
    color: var(--gt-text-secondary, #666);
    margin-bottom: 0.375rem;
}

.wallet-pay-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.wallet-pay-method {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    border: 1px solid var(--gt-border-color, #eee);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--gt-card-bg, #fff);
}

.wallet-pay-method input {
    display: none;
}

.wallet-pay-method.active,
.wallet-pay-method:hover {
    border-color: var(--gt-main-color);
    color: var(--gt-main-color);
    background: rgba(30, 128, 255, 0.05);
}

.wallet-pay-method i {
    font-size: 1.125rem;
}

.wallet-table-wrap {
    overflow-x: auto;
}

.wallet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.wallet-table th,
.wallet-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gt-border-color, #eee);
}

.wallet-table th {
    color: var(--gt-text-secondary, #666);
    font-weight: 500;
    background: var(--gt-bg-secondary, #f8f9fa);
}

.wallet-table .amount.plus {
    color: #16a34a;
}

.wallet-table .amount.minus {
    color: #dc2626;
}

.wallet-table .status-0 { color: #f59e0b; }
.wallet-table .status-1 { color: #16a34a; }
.wallet-table .status-2 { color: #dc2626; }

.income-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.income-stat-card {
    background: var(--gt-card-bg, #fff);
    border: 1px solid var(--gt-border-color, #eee);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.income-stat-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gt-main-color);
    margin-bottom: 0.25rem;
}

.income-stat-label {
    font-size: 0.8125rem;
    color: var(--gt-text-secondary, #666);
}

@media (max-width: 767px) {
    .income-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .income-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 用户中心移动端适配 */
@media (max-width: 991px) {
    .user-center-layout {
        flex-direction: column !important;
        gap: 1.25rem !important;
    }

    .user-sidebar {
        width: 100% !important;
        padding: 1rem !important;
    }

    .user-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .user-content .user-module {
        padding: 1rem !important;
    }
}

@media (max-width: 767px) {
    .user-menu {
        grid-template-columns: repeat(3, 1fr);
    }

    .user-menu .menu-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.75rem 0.25rem;
        font-size: 0.75rem;
        gap: 0.375rem;
    }

    .user-menu .menu-item i:first-child {
        font-size: 1.25rem;
    }

    .stat-card {
        padding: 1rem !important;
    }

    .stat-value {
        font-size: 1.125rem !important;
    }

    .stat-label {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .user-menu {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   文章详情页响应式
   ========================================================================== */

.gt-article-main {
    background: var(--gt-card-bg);
    border: 1px solid var(--gt-border-color);
    border-radius: var(--gt-card-radius);
    padding: 2rem;
    box-shadow: var(--gt-box-shadow-sm);
    margin-bottom: 1.5rem;
}

.gt-article-main header {
    margin-bottom: 1.5rem;
}

.gt-article-main header h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.35;
    margin: 0 0 1rem;
    color: var(--gt-font-color);
    font-weight: 700;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    color: var(--gt-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.article-author-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-author-avatar {
    display: block;
}

.article-author-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.article-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.article-author-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gt-font-color);
}

.article-author-name:hover {
    color: var(--gt-main-color);
}

.article-publish-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--gt-text-muted);
}

.article-publish-time time {
    color: var(--gt-text-muted);
}

.article-publish-time i {
    font-size: 0.875rem;
}

.article-content-container {
    margin-bottom: 1.5rem;
}

.article-excerpt {
    background: var(--gt-bg-fa);
    border-left: 3px solid var(--gt-main-color);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--gt-main-radius) var(--gt-main-radius) 0;
    margin-bottom: 1.5rem;
}

.article-excerpt-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gt-main-color);
    margin-bottom: 0.5rem;
}

.article-excerpt-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--gt-text-secondary);
}

.article-content {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--gt-font-color);
}

.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin: 2rem 0 1rem;
    font-weight: 700;
    color: var(--gt-font-color);
}

.article-content h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--gt-border-color);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.25rem;
}

.article-content h4 {
    font-size: 1.125rem;
}

.article-content p {
    margin: 0 0 1.25rem;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: var(--gt-bg-fa);
    border-left: 4px solid var(--gt-main-color);
    border-radius: 0 var(--gt-main-radius) var(--gt-main-radius) 0;
    color: var(--gt-text-secondary);
    font-style: italic;
}

.article-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.25rem;
    border-radius: var(--gt-main-radius);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.article-content code {
    background: var(--gt-bg-fa);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'Consolas', 'Monaco', monospace;
}

.article-content pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.article-content img,
.article-content video,
.article-content iframe {
    max-width: 100%;
    height: auto;
    border-radius: var(--gt-main-radius);
    margin: 1.5rem 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.article-content th,
.article-content td {
    border: 1px solid var(--gt-border-color);
    padding: 0.75rem;
    text-align: left;
}

.article-content th {
    background: var(--gt-bg-fa);
    font-weight: 600;
}

.article-content a {
    color: var(--gt-main-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    text-decoration: none;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.tag-list a {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    background: var(--gt-bg-fa);
    border: 1px solid var(--gt-border-color);
    color: var(--gt-text-secondary);
    font-size: 0.8125rem;
    transition: var(--gt-transition);
}

.tag-list a:hover {
    border-color: var(--gt-main-color);
    color: var(--gt-main-color);
    background: var(--gt-main-color-10);
}

.actions-title {
    font-size: 0.9375rem;
    color: var(--gt-text-secondary);
    margin: 1.5rem 0 0.75rem;
    font-weight: 500;
}

.article-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.75rem 0 1.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--gt-border-color);
    border-bottom: 1px solid var(--gt-border-color);
}

.article-actions-bar .action-btn {
    flex: 1 1 auto;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gt-border-color);
    border-radius: 999px;
    background: var(--gt-bg-fa);
    color: var(--gt-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--gt-transition);
}

.article-actions-bar .action-btn:hover,
.article-actions-bar .action-btn.active {
    border-color: var(--gt-main-color);
    color: var(--gt-main-color);
    background: var(--gt-main-color-10);
}

.article-actions-bar .action-btn .btn-icon-wrap {
    font-size: 1.125rem;
}

.article-actions-bar .action-btn .count {
    font-style: normal;
    font-weight: 600;
}

.article-copyright {
    background: var(--gt-bg-fa);
    border: 1px solid var(--gt-border-color);
    border-radius: var(--gt-main-radius);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.copyright-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gt-font-color);
    margin-bottom: 0.75rem;
}

.copyright-header i {
    color: var(--gt-main-color);
}

.copyright-content {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--gt-text-secondary);
}

.copyright-content a {
    color: var(--gt-main-color);
}

.gt-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.gt-post-navigation a {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1rem;
    background: var(--gt-card-bg);
    border: 1px solid var(--gt-border-color);
    border-radius: var(--gt-card-radius);
    color: var(--gt-font-color);
    transition: var(--gt-transition);
}

.gt-post-navigation a:hover {
    border-color: var(--gt-main-color);
    color: var(--gt-main-color);
}

.gt-post-navigation .gt-nav-label {
    font-size: 0.8125rem;
    color: var(--gt-text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.gt-post-navigation .gt-nav-title {
    font-size: 0.9375rem;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767px) {
    .gt-article-main {
        padding: 1.25rem;
    }

    .article-meta {
        font-size: 0.8125rem;
    }

    .article-author-avatar img {
        width: 36px;
        height: 36px;
    }

    .article-actions-bar .action-btn {
        min-width: calc(50% - 0.375rem);
        font-size: 0.8125rem;
        padding: 0.625rem 0.75rem;
    }

    .gt-post-navigation {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-actions-bar .action-btn {
        min-width: 100%;
    }
}

/* ==========================================================================
   相关推荐与分页响应式
   ========================================================================== */

.gt-related-posts {
    margin: 1.5rem 0;
}

.gt-related-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gt-font-color);
    margin-bottom: 1rem;
}

.gt-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gt-related-card {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    color: var(--gt-font-color);
    transition: var(--gt-transition);
}

.gt-related-card:hover {
    color: var(--gt-main-color);
}

.gt-related-thumb {
    aspect-ratio: 16 / 10;
    border-radius: var(--gt-main-radius);
    overflow: hidden;
    background: var(--gt-bg-f5);
}

.gt-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--gt-transition);
}

.gt-related-card:hover .gt-related-thumb img {
    transform: scale(1.05);
}

.gt-related-title {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1199px) {
    .gt-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .gt-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gt-related-grid {
        grid-template-columns: 1fr;
    }
}

/* 分页 */
.nav-links,
.p-wrap .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0 1rem;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.75rem;
    border-radius: 10px;
    background: var(--gt-card-bg);
    border: 1px solid var(--gt-border-color);
    color: var(--gt-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--gt-transition);
}

.nav-links a:hover,
.nav-links span.current {
    border-color: var(--gt-main-color);
    color: var(--gt-main-color);
    background: var(--gt-main-color-10);
}

@media (max-width: 480px) {
    .nav-links a,
    .nav-links span {
        min-width: 34px;
        height: 34px;
        padding: 0 0.5rem;
        font-size: 0.8125rem;
    }
}

/* ==========================================================================
   评论区样式（按原 Mirai Typecho 主题 1:1 复刻）
   ========================================================================== */

.gt-comment {
    margin-top: 1.25rem;
    box-sizing: border-box;
    width: 100%;
    height: max-content;
    border-radius: 0.5rem;
    background-color: var(--gt-card-bg);
    box-shadow: var(--gt-box-shadow);
    overflow: hidden;
}

.gt-comment-header {
    box-sizing: border-box;
    padding: 0.5rem 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--gt-main-color-6);
    border-bottom: 1px solid var(--gt-main-color-6);
}

.gt-comment-title {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--gt-font-color);
}

.gt-comment-title i.comment-title-icon {
    font-size: 1.25rem;
    color: var(--gt-font-color);
}

.gt-comment-count-text {
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    color: var(--gt-font-56);
    margin-left: 0.25rem;
}

.gt-comment-form-wrap {
    box-sizing: border-box;
    padding: 1.5rem;
}

.gt-comment-closed {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--gt-font-56);
    text-align: center;
}

.gt-comment-closed i {
    font-size: 2.5rem;
    color: var(--gt-font-28);
}

.gt-comment-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    background: var(--gt-main-color);
    color: var(--gt-white-color);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.gt-comment-login-btn:hover {
    opacity: 0.88;
}

.gt-comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gt-comment-textarea-wrap {
    position: relative;
    border: 1px solid var(--gt-main-color-16);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.18s ease-in-out;
}

.gt-comment-textarea-wrap:focus-within {
    border-color: var(--gt-main-color);
    box-shadow: 0 0 0 3px var(--gt-main-color-16);
}

.gt-comment-textarea-wrap textarea {
    width: 100%;
    min-height: 140px;
    padding: 1rem;
    border: none;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gt-font-color);
    background-color: transparent;
    resize: vertical;
    outline: none;
}

.gt-comment-textarea-wrap textarea::placeholder {
    color: var(--gt-font-28);
}

.gt-comment-textarea-footer {
    padding: 0.5rem 1rem;
    background-color: var(--gt-main-color-6);
    border-top: 1px solid var(--gt-main-color-6);
}

.gt-comment-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gt-comment-field {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--gt-main-color-16);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.18s ease-in-out;
}

.gt-comment-field:focus-within {
    border-color: var(--gt-main-color);
    box-shadow: 0 0 0 3px var(--gt-main-color-16);
}

.gt-comment-field i {
    flex-shrink: 0;
    margin-left: 0.6875rem;
    color: var(--gt-font-56);
    opacity: 0.9;
    font-size: 1.125rem;
}

.gt-comment-field input {
    flex: 1;
    padding: 0.625rem 0.75rem;
    border: none;
    font-size: 0.875rem;
    color: var(--gt-font-color);
    background-color: transparent;
    outline: none;
}

.gt-comment-field input::placeholder {
    color: var(--gt-font-28);
}

.gt-comment-submit-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.gt-comment-submit-wrap button {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    min-height: 2rem;
    box-sizing: border-box;
    font-weight: 500;
    color: var(--gt-white-color);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--gt-main-color);
    border: none;
}

.gt-comment-submit-wrap button:hover {
    background: var(--gt-main-color-dark, var(--gt-main-color));
    transform: translateY(-1px);
}

.gt-comment-submit-wrap .cancel-comment-reply a {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    min-height: 2rem;
    box-sizing: border-box;
    font-weight: 500;
    color: var(--gt-white-color);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    background-color: var(--gt-font-28);
    border: none;
    text-decoration: none;
}

.gt-comment-submit-wrap .cancel-comment-reply a:hover {
    background-color: var(--gt-font-56);
}

.gt-comment-list {
    box-sizing: border-box;
    padding: 0 1.5rem 1.5rem;
}

.gt-comment-replies .gt-comment-list {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.gt-comment-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 1rem;
    color: var(--gt-font-56);
}

.gt-comment-empty i {
    font-size: 3rem;
    color: var(--gt-main-color-16);
}

.gt-comment-item {
    display: flex;
    border-bottom: 1px dashed var(--gt-main-color-16);
    flex-wrap: wrap;
    padding: 1rem 0;
    gap: 0.75rem;
}

.gt-comment-item > .respond {
    width: 100%;
    flex-basis: 100%;
}

.gt-comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gt-comment-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.gt-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gt-comment-master > .gt-comment-avatar {
    position: relative;
    overflow: visible;
}

.gt-comment-master > .gt-comment-avatar img {
    border-radius: 50%;
}

.gt-comment-main {
    flex: 1;
    min-width: 0;
}

.gt-comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.gt-comment-meta-wrapper {
    display: flex;
    flex-direction: column;
}

.gt-comment-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gt-comment-nick {
    position: relative;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gt-font-color);
    text-decoration: none;
    transition: color 0.18s ease-in-out;
}

.gt-comment-nick a {
    color: var(--gt-font-color);
    text-decoration: none;
}

.gt-comment-nick a:hover {
    color: var(--gt-main-color);
}

.gt-comment-master .gt-comment-nick {
    color: #9999ff;
    font-weight: 700;
}

.gt-comment-master .gt-comment-nick a {
    color: #9999ff;
}

.gt-comment-badge {
    display: inline-flex;
    align-items: center;
    padding: 0 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #9999ff;
    border: 1px solid #9999ff;
    border-radius: 4px;
    line-height: 1.4;
}

.gt-comment-time {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--gt-font-66);
    white-space: nowrap;
}

.gt-comment-content {
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--gt-font-66);
    word-break: break-word;
}

.gt-comment-content p {
    margin: 0;
    padding: 0.18rem 0;
}

.gt-comment-content a {
    color: var(--gt-main-color);
    box-shadow: inset 0 -0.12rem var(--gt-main-color);
    transition: box-shadow 0.2s ease-in-out;
}

.gt-comment-content a:hover {
    box-shadow: inset 0 -1.5rem var(--gt-main-color-16);
}

.gt-comment-at {
    color: var(--gt-main-color);
    text-decoration: none;
    font-weight: 500;
}

.gt-comment-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gt-comment-actions {
    display: flex;
    gap: 1rem;
    margin-left: 0.5rem;
}

.gt-comment-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    font-size: 0.75rem;
    color: var(--gt-font-66);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.18s ease-in-out;
}

.gt-comment-actions a:hover {
    color: var(--gt-main-color);
}

.gt-comment-replies {
    width: 100%;
    padding-left: 3.25rem;
}

@media screen and (max-width: 768px) {
    .gt-comment-fields {
        grid-template-columns: 1fr;
    }

    .gt-comment-avatar {
        width: 36px;
        height: 36px;
    }

    .gt-comment-list {
        padding: 0 1rem 1rem;
    }

    .gt-comment-form-wrap {
        padding: 1rem;
    }

    .gt-comment-replies {
        padding-left: 1.5rem;
    }

    .gt-comment-textarea-wrap textarea {
        min-height: 100px;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   页脚响应式
   ========================================================================== */

.gt-footer-main {
    max-width: var(--gt-main-max-width, 1280px);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gt-footer-grid {
    display: grid;
    grid-template-columns: 280px 1fr auto;
    gap: 2rem;
    align-items: start;
}

.gt-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.gt-footer-logo-img {
    max-height: 40px;
    width: auto;
}

.gt-footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--gt-text-secondary);
}

.gt-footer-center {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.gt-footer-custom {
    font-size: 0.875rem;
    color: var(--gt-text-secondary);
}

.gt-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    font-size: 0.8125rem;
    color: var(--gt-text-muted);
}

.gt-footer-bottom a {
    color: var(--gt-text-muted);
}

.gt-footer-bottom a:hover {
    color: var(--gt-main-color);
}

.gt-footer-qrcodes {
    display: flex;
    gap: 1.25rem;
}

.gt-footer-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--gt-text-secondary);
}

.gt-footer-qrcode-img {
    border-radius: var(--gt-main-radius);
}

@media (max-width: 1199px) {
    .gt-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gt-footer-qrcodes {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .gt-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .gt-footer-brand,
    .gt-footer-center {
        align-items: center;
    }

    .gt-footer-bottom {
        justify-content: center;
    }
}

/* ==========================================================================
   首页精选推荐区
   ========================================================================== */

.gt-recommend-section {
    margin-bottom: 1.5rem;
}

.gt-recommend-top {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 1rem;
    height: 320px;
}

.gt-recommend-main,
.gt-recommend-item,
.gt-recommend-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--gt-card-radius);
    background: var(--gt-bg-f5);
    color: #fff;
    box-shadow: var(--gt-box-shadow-sm);
    transition: var(--gt-transition);
}

.gt-recommend-main:hover,
.gt-recommend-item:hover,
.gt-recommend-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--gt-box-shadow);
}

.gt-recommend-main img,
.gt-recommend-item img,
.gt-recommend-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--gt-transition);
}

.gt-recommend-main:hover img,
.gt-recommend-item:hover img,
.gt-recommend-card:hover img {
    transform: scale(1.04);
}

.gt-recommend-main {
    height: 100%;
}

.gt-recommend-main .gt-recommend-overlay {
    padding: 1.5rem;
}

.gt-recommend-main .gt-recommend-overlay h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.5rem 0 0;
}

.gt-recommend-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.gt-recommend-item {
    flex: 1;
    min-height: 0;
}

.gt-recommend-item .gt-recommend-overlay {
    padding: 1rem;
}

.gt-recommend-item .gt-recommend-overlay h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0.375rem 0 0;
}

.gt-recommend-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    z-index: 2;
}

.gt-recommend-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    background: var(--gt-main-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gt-recommend-overlay h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.gt-recommend-bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.gt-recommend-card {
    aspect-ratio: 16 / 10;
}

.gt-recommend-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1199px) {
    .gt-recommend-top {
        height: 280px;
    }

    .gt-recommend-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .gt-recommend-top {
        grid-template-columns: 1fr;
        height: auto;
        gap: 0.75rem;
    }

    .gt-recommend-main,
    .gt-recommend-item,
    .gt-recommend-card {
        aspect-ratio: auto !important;
        height: auto !important;
        min-height: auto !important;
        background: var(--gt-bg-f5) !important;
    }

    .gt-recommend-main img,
    .gt-recommend-item img,
    .gt-recommend-card img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
    }

    .gt-recommend-main .gt-recommend-overlay,
    .gt-recommend-item .gt-recommend-overlay {
        position: relative !important;
        inset: auto !important;
        justify-content: flex-start !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%) !important;
        padding: 0.875rem !important;
        margin-top: -3.5rem !important;
        min-height: 3.5rem !important;
        z-index: 2 !important;
    }

    .gt-recommend-main .gt-recommend-overlay h3,
    .gt-recommend-item .gt-recommend-overlay h3 {
        font-size: 0.9375rem !important;
        margin: 0.25rem 0 0 !important;
    }

    .gt-recommend-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .gt-recommend-bottom {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-top: 0.75rem;
    }

    .gt-recommend-card h3 {
        position: relative !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%) !important;
        margin-top: -3rem !important;
        min-height: 3rem !important;
        padding: 0.75rem !important;
        font-size: 0.8125rem !important;
    }
}

@media (max-width: 480px) {
    .gt-recommend-right {
        grid-template-columns: 1fr;
    }

    .gt-recommend-bottom {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   首页排行榜模块（Tab 切换版 - 参考 sukuy.com）
   ========================================================================== */

.mirai-home-ranking {
    margin: 1.5rem 0;
}

.mirai-ranking-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mirai-ranking-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gt-font-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mirai-ranking-title-bar {
    width: 4px;
    height: 1.2em;
    background: var(--gt-main-color);
    border-radius: 2px;
    display: inline-block;
}

.mirai-ranking-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mirai-ranking-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gt-text-secondary);
    text-decoration: none;
    border-radius: 999px;
    background: var(--gt-bg-fa);
    border: 1px solid var(--gt-border-color);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mirai-ranking-tab:hover {
    color: var(--gt-main-color);
    border-color: var(--gt-main-color);
}

.mirai-ranking-tab.active {
    color: #fff;
    font-weight: 600;
    background: var(--gt-main-color);
    border-color: var(--gt-main-color);
}

.mirai-ranking-content {
    background: var(--gt-card-bg);
    border: 1px solid var(--gt-border-color);
    border-radius: var(--gt-card-radius);
    box-shadow: var(--gt-box-shadow);
    padding: 1rem;
}

.mirai-ranking-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.mirai-ranking-grid:has(.mirai-ranking-post-card:only-child) {
    grid-template-columns: 1fr;
}

.mirai-ranking-post-card {
    display: flex;
    gap: 0.875rem;
    padding: 0.875rem;
    border-radius: var(--gt-sm-radius);
    border: 1px solid var(--gt-border-color);
    background: var(--gt-card-bg);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    overflow: hidden;
}

.mirai-ranking-post-card:hover {
    border-color: var(--gt-main-color);
    box-shadow: var(--gt-box-shadow-hover);
    transform: translateY(-1px);
}

.mirai-ranking-post-thumb {
    flex: 0 0 140px;
    width: 140px;
    height: 100px;
    border-radius: var(--gt-sm-radius);
    overflow: hidden;
    position: relative;
    background: var(--gt-bg-f5);
}

.mirai-ranking-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mirai-ranking-post-card:hover .mirai-ranking-post-thumb img {
    transform: scale(1.05);
}

.mirai-ranking-post-cat {
    position: absolute;
    bottom: 0.375rem;
    left: 0.375rem;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    background: var(--gt-main-color);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.3;
}

.mirai-ranking-post-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mirai-ranking-post-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--gt-font-color);
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.mirai-ranking-post-card:hover .mirai-ranking-post-title {
    color: var(--gt-main-color);
}

.mirai-ranking-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.625rem;
    font-size: 0.75rem;
    color: var(--gt-text-muted);
}

.mirai-ranking-post-author {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gt-text-secondary);
}

.mirai-ranking-post-author img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.mirai-ranking-post-meta time,
.mirai-ranking-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.1875rem;
}

.mirai-ranking-post-meta i {
    font-size: 0.875em;
}

.mirai-ranking-empty {
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--gt-text-muted);
}

/* 平板 */
@media (max-width: 1199px) {
    .mirai-ranking-grid {
        grid-template-columns: 1fr;
    }
}

/* 移动端 */
@media (max-width: 767px) {
    .mirai-home-ranking {
        margin: 1rem 0;
    }

    .mirai-ranking-header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 0.875rem;
    }

    .mirai-ranking-title {
        font-size: 1rem;
    }

    .mirai-ranking-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding-bottom: 0.25rem;
    }

    .mirai-ranking-tabs::-webkit-scrollbar {
        display: none;
    }

    .mirai-ranking-tab {
        padding: 0.4375rem 1rem;
        font-size: 0.8125rem;
        flex-shrink: 0;
    }

    .mirai-ranking-content {
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .mirai-ranking-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .mirai-ranking-post-card {
        flex-direction: row;
        gap: 0.75rem;
        padding: 0;
        border: 1px solid var(--gt-border-color);
        border-radius: var(--gt-sm-radius);
        background: var(--gt-card-bg);
        overflow: hidden;
    }

    .mirai-ranking-post-thumb {
        flex: 0 0 110px;
        width: 110px;
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 0;
    }

    .mirai-ranking-post-info {
        padding: 0.625rem 0.75rem 0.625rem 0;
        flex: 1;
        min-width: 0;
    }

    .mirai-ranking-post-title {
        font-size: 0.875rem;
        -webkit-line-clamp: 2;
        margin-bottom: 0.5rem;
    }

    .mirai-ranking-post-meta {
        font-size: 0.6875rem;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .mirai-ranking-post-meta {
        font-size: 0.625rem;
        gap: 0.375rem;
    }

    .mirai-ranking-post-meta time,
    .mirai-ranking-post-meta span {
        gap: 0.125rem;
    }
}

/* ==========================================================================
   移动端细节优化
   ========================================================================== */

/* 文章卡片分类标签改为左上角徽章，避免竖条 */
.gt-article-banner .gt-article-cat,
.gt-article-cat.sky-h6.banner-cat,
.gt-article-cat {
    position: absolute !important;
    top: 0.625rem !important;
    left: 0.625rem !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.25rem 0.625rem !important;
    border-radius: 999px !important;
    background: var(--gt-main-color) !important;
    color: #fff !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18) !important;
    max-width: calc(100% - 1.25rem) !important;
    min-width: auto !important;
    width: auto !important;
    max-height: 1.625rem !important;
    height: auto !important;
    min-height: auto !important;
    aspect-ratio: auto !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
    letter-spacing: 0.01em !important;
    text-align: center !important;
}

.gt-article-cat:hover {
    background: var(--gt-main-color-88) !important;
}

@media (max-width: 767px) {
    .gt-header {
        height: 56px;
    }

    .main {
        padding-top: calc(56px + 1rem) !important;
    }

    .gt-header .site-logo,
    .gt-header .home {
        font-size: 1.125rem;
    }

    .gt-logo-img {
        max-height: 28px;
    }

    /* 移动端文章列表改为横向卡片 */
    .article-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.875rem !important;
    }

    .gt-article-item {
        display: grid !important;
        grid-template-columns: 130px 1fr !important;
        grid-template-rows: auto auto auto !important;
        gap: 0 0.875rem !important;
        padding: 0.875rem !important;
        border-radius: var(--gt-card-radius) !important;
        align-items: start !important;
        height: auto !important;
    }

    .gt-article-banner {
        grid-column: 1 !important;
        grid-row: 1 / -1 !important;
        aspect-ratio: 1 / 1 !important;
        width: 100% !important;
        height: auto !important;
        border-radius: calc(var(--gt-card-radius) - 4px) !important;
        margin: 0 !important;
        position: relative !important;
    }

    .article-list .gt-article-banner .gt-article-cat {
        display: none !important;
    }

    .gt-article-item header {
        grid-column: 2 !important;
        grid-row: 1 !important;
        padding: 0 !important;
    }

    .gt-article-item .title {
        font-size: 0.9375rem !important;
        line-height: 1.45 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        margin: 0 !important;
    }

    .gt-article-excerpt {
        display: none !important;
    }

    .gt-article-tags {
        grid-column: 2 !important;
        grid-row: 2 !important;
        padding: 0.375rem 0 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.375rem !important;
    }

    .gt-article-tag {
        font-size: 0.6875rem !important;
        padding: 0.125rem 0.5rem !important;
        border-radius: 4px !important;
        background: rgba(var(--gt-main-rgb), 0.08) !important;
        color: var(--gt-main-color) !important;
        font-weight: 500 !important;
    }

    .gt-article-taglist {
        grid-column: 2 !important;
        grid-row: 3 !important;
        align-self: end !important;
        padding: 0.375rem 0 0 !important;
        font-size: 0.6875rem !important;
        color: var(--gt-text-muted) !important;
        gap: 0.5rem !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }

    .gt-article-taglist .gt-author-link {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        color: var(--gt-text-secondary);
    }

    .gt-article-taglist .gt-author-mini-avatar {
        width: 16px;
        height: 16px;
        border-radius: 50%;
    }

    .gt-article-taglist time,
    .gt-article-taglist .gt-article-views,
    .gt-article-taglist .gt-article-likes,
    .gt-article-taglist .gt-article-comments {
        display: inline-flex;
        align-items: center;
        gap: 0.125rem;
    }

    .gt-article-taglist .gt-article-likes,
    .gt-article-taglist .gt-article-comments {
        display: none;
    }

    .sky-h3,
    .gt-cms-title-h3,
    .gt-related-header,
    .section-title {
        font-size: 1.125rem;
        margin-bottom: 0.875rem;
    }

    .container,
    .gt-footer-main,
    .main-inner,
    .main-inner.aside-left,
    .main-inner.aside-right {
        padding: 0 1rem !important;
    }

    .gt-empty {
        padding: 2rem 1rem;
    }

    .gt-empty img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .article-list .gt-article-item {
        grid-template-columns: 100px 1fr !important;
        gap: 0 0.625rem !important;
        padding: 0.625rem !important;
    }

    .article-list .gt-article-banner {
        aspect-ratio: 1 / 1 !important;
        border-radius: calc(var(--gt-card-radius) - 4px) !important;
    }

    .gt-article-item .title {
        font-size: 0.875rem !important;
        -webkit-line-clamp: 2 !important;
    }

    .gt-article-taglist time,
    .gt-article-taglist .gt-article-views {
        display: inline-flex !important;
        font-size: 0.625rem !important;
    }

    .gt-article-taglist .gt-article-likes,
    .gt-article-taglist .gt-article-comments {
        display: none !important;
    }
}

/* 移动端可点击元素最小触控区域 */
@media (max-width: 767px) {
    a,
    button,
    input,
    textarea,
    select,
    .menu-btn,
    .nav-link,
    .gt-article-item,
    .gt-related-card,
    .action-btn,
    .gt-mobile-nav-list .mobile-nav-menu > li > a,
    .gt-mobile-sidebar-header .header-item,
    .user-menu .menu-item {
        min-height: 44px;
    }

    .gt-mobile-nav-list .mobile-nav-menu > li > a,
    .gt-mobile-sidebar-header .header-item,
    .user-menu .menu-item {
        display: inline-flex;
        align-items: center;
    }

    /* 表单元素全宽 */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    input[type="number"],
    input[type="tel"],
    textarea,
    select {
        width: 100%;
        max-width: 100%;
    }

    /* 面包屑自动换行 */
    .mirai-breadcrumb {
        flex-wrap: wrap;
        font-size: 0.75rem;
    }

    /* 评论区域 */
    .mirai-comments-area {
        padding: 1rem;
    }

    .gt-comment-form textarea,
    #comment-form textarea {
        min-height: 100px;
    }

    .gt-comment-form .form-submit input,
    #comment-form .form-submit input {
        width: 100%;
        padding: 0.75rem;
    }

    /* 搜索弹窗 */
    .gt-search-modal .gt-search-form {
        padding: 0 1rem;
    }

    .gt-search-modal .gt-search-form input {
        font-size: 16px; /* 防止 iOS 缩放 */
    }
}

/* ========================
   用户中心 - 创作中心
   ======================== */
.write-form .required {
    color: #ff4d4f;
    margin-left: 2px;
}

.write-tips {
    background: var(--gt-bg-fa);
    border: 1px solid var(--gt-border-color);
    border-radius: var(--gt-sm-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.write-tips h4 {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.write-tips h4 i {
    color: #faad14;
}

.write-tips ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: var(--gt-text-secondary);
    line-height: 1.8;
}

.write-tips strong {
    color: var(--gt-font-color);
}

.form-row-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-two-col .form-col {
    min-width: 0;
}

.category-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    padding: 0.5rem 0;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.checkbox-inline input[type="checkbox"] {
    margin: 0;
}

.mirai-image-field {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.mirai-image-preview {
    width: 160px;
    height: 100px;
    border-radius: var(--gt-sm-radius);
    background: var(--gt-bg-fa);
    border: 1px dashed var(--gt-border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mirai-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.module-posts .module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.posts-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.posts-filter .filter-item {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--gt-text-secondary);
    background: var(--gt-bg-fa);
    border: 1px solid var(--gt-border-color);
    text-decoration: none;
    transition: var(--gt-transition);
}

.posts-filter .filter-item:hover,
.posts-filter .filter-item.active {
    color: #fff;
    background: var(--gt-primary-color, #1e80ff);
    border-color: var(--gt-primary-color, #1e80ff);
}

.posts-table-wrap {
    overflow-x: auto;
}

.posts-table {
    width: 100%;
}

.post-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--gt-sm-radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gt-bg-fa);
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-title-info {
    min-width: 0;
}

.post-title-link {
    display: block;
    font-weight: 500;
    color: var(--gt-font-color);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-title-link:hover {
    color: var(--gt-primary-color, #1e80ff);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: var(--gt-text-muted);
}

.post-cat {
    background: var(--gt-bg-fa);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.status-publish {
    color: #52c41a;
    background: rgba(82, 196, 26, 0.1);
}

.status-pending {
    color: #faad14;
    background: rgba(250, 173, 20, 0.1);
}

.status-draft {
    color: #8c8c8c;
    background: rgba(140, 140, 140, 0.1);
}

.status-future {
    color: #1890ff;
    background: rgba(24, 144, 255, 0.1);
}

.col-actions {
    white-space: nowrap;
}

.col-actions .btn {
    margin-right: 0.5rem;
}

.col-actions .btn-danger {
    color: #ff4d4f;
}

.col-actions .btn-danger:hover {
    color: #ff7875;
}

@media (max-width: 767px) {
    .form-row-two-col {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .post-title-row {
        align-items: flex-start;
    }

    .post-thumb {
        width: 48px;
        height: 48px;
    }

    .col-status,
    .col-date {
        white-space: nowrap;
    }
}

/* 用户中心未登录提示 */
.module-guest .module-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.guest-welcome {
    text-align: center;
    padding: 2rem;
}

.guest-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gt-primary-color, #1e80ff), #3b82f6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    box-shadow: 0 8px 24px rgba(30, 128, 255, 0.25);
}

.guest-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.guest-desc {
    color: var(--gt-text-secondary);
    margin-bottom: 1.75rem;
    font-size: 0.9375rem;
}

.guest-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.guest-actions .btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
}

.guest-actions i {
    margin-right: 0.35rem;
}

@media (max-width: 480px) {
    .guest-actions {
        flex-direction: column;
    }

    .guest-actions .btn {
        width: 100%;
    }
}

/* ---------- Hero 移动端优化覆盖 ---------- */
@media (max-width: 767px) {
    .mirai-hero {
        min-height: 200px !important;
        padding: 1.25rem 1rem 1.75rem !important;
        border-radius: 10px !important;
        margin-bottom: 1rem !important;
    }

    .mirai-hero-title {
        font-size: clamp(1.125rem, 5vw, 1.5rem) !important;
        font-weight: 700 !important;
        margin-bottom: 0.375rem !important;
    }

    .mirai-hero-subtitle {
        font-size: clamp(0.8125rem, 2.5vw, 0.9375rem) !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.4 !important;
    }

    .mirai-hero-content {
        margin-bottom: 0.5rem !important;
    }

    .mirai-hero-search-form {
        padding: 0.1875rem !important;
        max-width: 100% !important;
    }

    .mirai-hero-search-input {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem !important;
    }

    .mirai-hero-search-btn {
        width: 36px !important;
        height: 36px !important;
    }

    .mirai-hero-dots {
        bottom: 0.5rem !important;
        gap: 0.375rem !important;
    }

    .mirai-hero-dot {
        width: 8px !important;
        height: 8px !important;
    }

    .mirai-hero-cards {
        margin-top: 0.75rem !important;
        gap: 0.4375rem !important;
    }

    .mirai-hero-card {
        padding: 0.3125rem 0.625rem !important;
        font-size: 0.75rem !important;
    }

    .mirai-hero-card i {
        font-size: 0.875rem !important;
    }
}

/* =========================================================
 * Mirai WP - UI 美化增强
 * 统一卡片质感、优化间距、增强交互反馈
 * ========================================================= */

/* ---------- 全局质感升级 ---------- */
.gt-card,
.gt-aside-item,
.gt-article-item,
.mirai-hero,
.gt-recommend-section,
.gt-catrec-section,
.user-dashboard-card,
.user-menu-section {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.gt-card:hover,
.gt-aside-item:hover,
.user-dashboard-card:hover,
.user-menu-section:hover {
    box-shadow: var(--gt-box-shadow-hover) !important;
}

/* ---------- 文章卡片美化 ---------- */
.gt-article-item {
    border-radius: var(--gt-card-radius) !important;
    overflow: hidden !important;
    background: var(--gt-card-bg) !important;
    border: 1px solid var(--gt-border-color) !important;
    box-shadow: var(--gt-box-shadow) !important;
}

.gt-article-banner {
    border-radius: 0 !important;
    overflow: hidden !important;
}

.gt-article-banner a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

.gt-article-cover {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.gt-article-item:hover .gt-article-cover {
    transform: scale(1.06) !important;
}

.gt-article-item .title a {
    color: var(--gt-font-color) !important;
    transition: color 0.2s ease !important;
}

.gt-article-item:hover .title a {
    color: var(--gt-main-color) !important;
}

.gt-article-excerpt {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.gt-article-taglist {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
}

.gt-article-taglist > span,
.gt-article-taglist > time,
.gt-article-taglist > a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

.gt-article-taglist i {
    font-size: 0.9375em !important;
    opacity: 0.72 !important;
}

.gt-article-tags {
    gap: 0.5rem !important;
}

.gt-article-tag {
    border-radius: 999px !important;
    padding: 0.25rem 0.625rem !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.gt-article-tag:hover {
    transform: translateY(-1px) !important;
    opacity: 0.85 !important;
}

/* ---------- 侧边栏模块美化 ---------- */
.gt-aside-item {
    position: relative !important;
    padding: 1.25rem !important;
    border-radius: var(--gt-card-radius) !important;
    margin-bottom: 1.25rem !important;
}

.gt-aside-item::before {
    content: "" !important;
    position: absolute !important;
    top: 1.25rem !important;
    left: 0 !important;
    width: 3px !important;
    height: 1.25rem !important;
    background: var(--gt-main-color) !important;
    border-radius: 0 3px 3px 0 !important;
}

.gt-aside-item h3,
.gt-aside-item .gt-aside-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin: 0 0 1rem 0 !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid var(--gt-border-color) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.gt-aside-item h3 i,
.gt-aside-item .gt-aside-title i {
    color: var(--gt-main-color) !important;
    font-size: 1.1em !important;
}

.gt-aside-avatar {
    border: 3px solid var(--gt-card-bg) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.gt-aside-bio {
    font-size: 0.8125rem !important;
    color: var(--gt-text-secondary) !important;
}

/* 侧边栏文章列表 */
.gt-aside-post-item {
    padding: 0.625rem 0 !important;
    border-bottom: 1px solid var(--gt-border-light) !important;
    transition: background 0.2s ease !important;
}

.gt-aside-post-item:last-child {
    border-bottom: none !important;
}

.gt-aside-post-item:hover {
    background: var(--gt-bg-fa) !important;
    border-radius: var(--gt-sm-radius) !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    margin-left: -0.5rem !important;
    margin-right: -0.5rem !important;
}

.gt-aside-post-thumb img {
    border-radius: var(--gt-sm-radius) !important;
    transition: transform 0.3s ease !important;
}

.gt-aside-post-item:hover .gt-aside-post-thumb img {
    transform: scale(1.05) !important;
}

/* 标签云 */
.gt-aside-tag-cloud {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}

.gt-aside-tag-cloud a {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 999px !important;
    background: var(--gt-bg-fa) !important;
    border: 1px solid var(--gt-border-color) !important;
    color: var(--gt-text-secondary) !important;
    font-size: 0.8125rem !important;
    transition: all 0.2s ease !important;
}

.gt-aside-tag-cloud a:hover {
    background: var(--gt-main-color) !important;
    border-color: var(--gt-main-color) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

/* ---------- 首页标题美化 ---------- */
.gt-cms-title-h3 {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    margin: 1.75rem 0 1rem 0 !important;
    padding-left: 0.75rem !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.gt-cms-title-h3::before {
    content: "" !important;
    width: 4px !important;
    height: 1.1em !important;
    background: var(--gt-main-color) !important;
    border-radius: 2px !important;
}

/* ---------- 推荐区域美化 ---------- */
.gt-recommend-section {
    border-radius: var(--gt-card-radius) !important;
    overflow: hidden !important;
    background: var(--gt-card-bg) !important;
    border: 1px solid var(--gt-border-color) !important;
    box-shadow: var(--gt-box-shadow) !important;
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.gt-recommend-main,
.gt-recommend-item,
.gt-recommend-card {
    border-radius: var(--gt-sm-radius) !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.gt-recommend-main:hover,
.gt-recommend-item:hover,
.gt-recommend-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--gt-box-shadow-hover) !important;
}

.gt-recommend-tag {
    background: var(--gt-main-color) !important;
    color: #fff !important;
    border-radius: 4px !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

/* ---------- 分页美化 ---------- */
.nav-links,
.p-wrap {
    display: flex !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    margin: 2rem 0 !important;
}

.nav-links .page-numbers,
.p-wrap .page-numbers,
.p-wrap a,
.p-wrap span.current {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 2.25rem !important;
    height: 2.25rem !important;
    padding: 0 0.75rem !important;
    border-radius: var(--gt-sm-radius) !important;
    background: var(--gt-card-bg) !important;
    border: 1px solid var(--gt-border-color) !important;
    color: var(--gt-text-secondary) !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
}

.nav-links .page-numbers:hover,
.p-wrap a:hover,
.p-wrap span.current {
    background: var(--gt-main-color) !important;
    border-color: var(--gt-main-color) !important;
    color: #fff !important;
}

/* ---------- 用户中心美化 ---------- */
.user-dashboard-card {
    border-radius: var(--gt-card-radius) !important;
    overflow: hidden !important;
    background: var(--gt-card-bg) !important;
    border: 1px solid var(--gt-border-color) !important;
    box-shadow: var(--gt-box-shadow) !important;
}

.user-dashboard-avatar {
    border: 4px solid var(--gt-card-bg) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

.user-menu-item {
    border-radius: var(--gt-sm-radius) !important;
    transition: all 0.2s ease !important;
}

.user-menu-item:hover,
.user-menu-item.active {
    background: var(--gt-main-color-10, rgba(30, 128, 255, 0.08)) !important;
    color: var(--gt-main-color) !important;
}

.user-stats-grid .stat-card {
    border-radius: var(--gt-sm-radius) !important;
    background: linear-gradient(135deg, var(--gt-card-bg) 0%, var(--gt-bg-fa) 100%) !important;
    border: 1px solid var(--gt-border-color) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.user-stats-grid .stat-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--gt-box-shadow-hover) !important;
}

/* ---------- 按钮和表单美化 ---------- */
.btn,
button[type="submit"],
input[type="submit"] {
    border-radius: var(--gt-sm-radius) !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
}

.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    border-radius: var(--gt-sm-radius) !important;
    border: 1px solid var(--gt-border-color) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: var(--gt-main-color) !important;
    box-shadow: 0 0 0 3px var(--gt-main-color-10, rgba(30, 128, 255, 0.1)) !important;
    outline: none !important;
}

/* ---------- 空状态美化 ---------- */
.gt-empty {
    text-align: center !important;
    padding: 3rem 1rem !important;
    color: var(--gt-text-muted) !important;
}

.gt-empty img {
    width: 140px !important;
    height: auto !important;
    margin-bottom: 1rem !important;
    opacity: 0.7 !important;
}

/* ---------- 暗色模式适配 ---------- */
html[data-theme="dark"] .gt-article-item,
html[data-theme="dark"] .gt-aside-item,
html[data-theme="dark"] .gt-recommend-section,
html[data-theme="dark"] .user-dashboard-card {
    border-color: var(--gt-border-color) !important;
}

html[data-theme="dark"] .gt-article-tag {
    opacity: 0.9 !important;
}

/* ---------- 移动端文章卡片优化 ---------- */
@media (max-width: 767px) {
    .gt-article-item {
        border-radius: var(--gt-card-radius) !important;
        margin-bottom: 1rem !important;
    }

    .gt-article-banner {
        border-radius: var(--gt-card-radius) var(--gt-card-radius) 0 0 !important;
    }
}

@media (max-width: 480px) {
    .gt-cms-title-h3 {
        font-size: 1rem !important;
    }

    .gt-article-content {
        padding: 0.875rem !important;
    }

    .gt-article-item .title {
        font-size: 0.9375rem !important;
    }
}

/* =========================================================
 * Mirai WP v1.3.0 - 用户中心增强样式
 * ========================================================= */

.mirai-user-section {
    background: var(--gt-card-bg);
    border: 1px solid var(--gt-border-color);
    border-radius: var(--gt-card-radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--gt-box-shadow);
}

.mirai-user-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--gt-border-color);
}

.mirai-user-section-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mirai-user-section-header h2 i {
    color: var(--gt-main-color);
    font-size: 1.25rem;
}

.mirai-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #fff;
    background: #ef4444;
    border-radius: 999px;
    line-height: 1;
}

.mirai-user-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gt-text-secondary);
}

.mirai-user-empty i {
    font-size: 3.5rem;
    opacity: 0.4;
    display: block;
    margin-bottom: 0.625rem;
}

.mirai-user-empty p {
    margin: 0;
    font-size: 0.9375rem;
}

.mirai-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gt-border-color);
    background: var(--gt-card-bg);
    color: var(--gt-text-color);
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mirai-btn:hover {
    border-color: var(--gt-main-color);
    color: var(--gt-main-color);
}

.mirai-btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.mirai-btn-danger {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.mirai-btn-danger:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

/* 我的收藏 */
.mirai-fav-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mirai-fav-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem;
    border: 1px solid var(--gt-border-color);
    border-radius: 8px;
    background: var(--gt-card-bg);
    transition: all 0.2s ease;
}

.mirai-fav-item:hover {
    border-color: var(--gt-main-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mirai-fav-thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--gt-bg-fa);
    display: block;
}

.mirai-fav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mirai-fav-no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gt-text-secondary);
    font-size: 1.5rem;
}

.mirai-fav-info {
    flex: 1;
    min-width: 0;
}

.mirai-fav-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gt-text-color);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.mirai-fav-title:hover {
    color: var(--gt-main-color);
}

.mirai-fav-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--gt-text-secondary);
}

.mirai-fav-cat {
    color: var(--gt-main-color);
}

.mirai-fav-remove {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--gt-text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.mirai-fav-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* 浏览历史 */
.mirai-history-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.mirai-history-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem;
    border: 1px solid var(--gt-border-color);
    border-radius: 8px;
    background: var(--gt-card-bg);
    text-decoration: none;
    transition: all 0.2s ease;
}

.mirai-history-item:hover {
    border-color: var(--gt-main-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.mirai-history-thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--gt-bg-fa);
}

.mirai-history-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mirai-history-no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gt-text-secondary);
    font-size: 1.5rem;
}

.mirai-history-info {
    flex: 1;
    min-width: 0;
}

.mirai-history-title {
    font-size: 0.875rem;
    color: var(--gt-text-color);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.mirai-history-item:hover .mirai-history-title {
    color: var(--gt-main-color);
}

.mirai-history-info time {
    font-size: 0.75rem;
    color: var(--gt-text-secondary);
}

/* 关注系统 */
.mirai-follow-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--gt-border-color);
}

.mirai-follow-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    color: var(--gt-text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s ease;
}

.mirai-follow-tabs a .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    font-size: 0.6875rem;
    background: var(--gt-bg-fa);
    border-radius: 9px;
}

.mirai-follow-tabs a:hover,
.mirai-follow-tabs a.active {
    color: var(--gt-main-color);
    border-bottom-color: var(--gt-main-color);
}

.mirai-follow-tabs a.active .count {
    background: var(--gt-main-color);
    color: #fff;
}

.mirai-follow-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.mirai-follow-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem;
    border: 1px solid var(--gt-border-color);
    border-radius: 8px;
    background: var(--gt-card-bg);
    transition: all 0.2s ease;
}

.mirai-follow-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mirai-follow-avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
}

.mirai-follow-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mirai-follow-info {
    flex: 1;
    min-width: 0;
}

.mirai-follow-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gt-text-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.125rem;
}

.mirai-follow-name:hover {
    color: var(--gt-main-color);
}

.mirai-follow-info time {
    font-size: 0.75rem;
    color: var(--gt-text-secondary);
}

.mirai-follow-btn {
    flex: 0 0 auto;
}

.mirai-follow-btn.following {
    background: var(--gt-bg-fa);
    color: var(--gt-text-secondary);
}

/* 消息通知 */
.mirai-notif-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mirai-notif-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gt-border-color);
    border-radius: 8px;
    background: var(--gt-card-bg);
    text-decoration: none;
    color: var(--gt-text-color);
    transition: all 0.2s ease;
    position: relative;
}

.mirai-notif-item.unread {
    background: linear-gradient(90deg, rgba(64, 158, 255, 0.04), transparent);
    border-color: rgba(64, 158, 255, 0.2);
}

.mirai-notif-item:hover {
    border-color: var(--gt-main-color);
    transform: translateX(2px);
}

.mirai-notif-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gt-main-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.mirai-notif-body {
    flex: 1;
    min-width: 0;
}

.mirai-notif-content {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--gt-text-color);
    margin-bottom: 0.25rem;
}

.mirai-notif-body time {
    font-size: 0.75rem;
    color: var(--gt-text-secondary);
}

.mirai-notif-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    display: block;
}

/* 分页 */
.mirai-pagination {
    display: flex;
    gap: 0.375rem;
    justify-content: center;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.mirai-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    border: 1px solid var(--gt-border-color);
    border-radius: 6px;
    color: var(--gt-text-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.mirai-pagination a:hover,
.mirai-pagination a.active {
    background: var(--gt-main-color);
    border-color: var(--gt-main-color);
    color: #fff;
}

/* 浮动收藏按钮 */
.mirai-fav-float-btn {
    position: fixed;
    right: 1.5rem;
    bottom: 5rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--gt-text-secondary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    gap: 0.125rem;
}

.mirai-fav-float-btn i {
    font-size: 1.375rem;
}

.mirai-fav-float-btn .mirai-fav-count {
    font-size: 0.6875rem;
    line-height: 1;
}

.mirai-fav-float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.mirai-fav-float-btn.is-favorited {
    color: #ef4444;
}

.mirai-fav-float-btn.is-favorited i {
    color: #ef4444;
}

@media (max-width: 767px) {
    .mirai-fav-item {
        flex-wrap: wrap;
    }

    .mirai-history-list {
        grid-template-columns: 1fr;
    }

    .mirai-history-item {
        padding: 0.5rem;
    }

    .mirai-follow-tabs a {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .mirai-fav-float-btn {
        right: 1rem;
        bottom: 4.5rem;
        width: 48px;
        height: 48px;
    }

    .mirai-fav-float-btn i {
        font-size: 1.125rem;
    }
}
