:root {
    --primary: #3498db;
    --secondary: #e67e22;
    --tertiary: #9b59b6;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --muted: #7f8c8d;
    --background-color: #f6f6f6;
    --pure-color: #ffffff;
    --card-color: #ffffff;
    --card2-color: #f8fafc;
    --pure-gery-color: #f5f5f5;
    --border-color: #ddd;
    --line-color: #ebebeb;
    --nav-color: #e4e6e7;
    --nav-text-color: #374043;
    --text-color: #333;
    --text2-color: #444;
    --hover-color: #f8f8f8;
}

[data-theme="dark"] {
    --background-color: #1d1f20;
    --pure-color: #f2f2f2;
    --card-color: #2b2b2b;
    --card2-color: #2e2e2e;
    --pure-gery-color: #424242;
    --border-color: #333739;
    --line-color: #363a3c;
    --nav-color: #262a2b;
    --nav-text-color: #c1bcb4;
    --text-color: #c1bcb4;
    --text2-color: #bdb7af;
    --hover-color: #262a2b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-family: "Open Sans", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimSun, sans-serif;
    font-weight: 400;
    background-image: url('/myweb/assets/images/local-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
}

.wrapper {
    position: relative;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.wrapper:before {
    content: " ";
    display: table;
}

.wrapper:after {
    clear: both;
}

.header {
    position: relative;
    float: left;
    width: 100%;
    padding: 20px;
    text-align: center;
    display: flex;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 20;
    min-height: 250px;
    flex-wrap: wrap;
    align-content: flex-start;
    transition: all 0.3s ease;
}

[data-theme="dark"] .header {
    background-color: rgba(43, 43, 43, 0.8);
    border: 1px solid rgba(51, 55, 57, 0.5);
}

.header-item {
    float: none;
    display: table;
    width: auto;
    margin-right: auto;
    margin-left: auto;
}

.header-nav {
    padding-top: 16px;
}

.header-form .form-input {
    margin-bottom: 0;
}

.header-credit {
    display: none;
}

.header-title+.header-nav {
    padding-top: 0;
}

.header-title+.header-nav .nav-item:first-child a:before {
    display: none;
}

@media (min-width:579px) {
    .header {
        position: sticky;
        padding-top: 32px;
        padding-bottom: 16px;
    }

    .header-wrapper {
        max-width: 530px;
    }

    .sidebar-wrapper {
        max-width: 530px;
    }

    .header-nav {
        padding-top: 24px;
    }
}

@media (min-width:769px) {
    .header {
        position: sticky;
        padding-top: 48px;
        padding-right: 48px;
        padding-bottom: 24px;
        padding-left: 48px;
    }

    .header-wrapper {
        max-width: 606px;
    }

    .sidebar-wrapper {
        max-width: 606px;
    }
}

@media (min-width:1183px) {
    .header {
        position: fixed;
        width: 328px;
        padding-top: 50px;
        padding-right: 40px;
        padding-bottom: 40px;
        margin-right: -328px;
    }

    .header-wrapper {
        max-width: 100%;
    }

    .sidebar-wrapper {
        max-width: 100%;
    }

    .header-credit .nav-item,
    .header-item,
    .header-nav .nav-item {
        display: flex;
        width: 100%;
        align-content: center;
        align-items: baseline;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: center;
        margin: 3px 0;
    }

    .header-nav .nav-item:first-child {
        position: relative;
    }

    .header-credit {
        display: block;
        font-size: .666rem;
        margin: 0;
        bottom: -40px;
    }

}

@media (min-width:1503px) {
    .header {
        position: fixed;
        width: 344px;
        padding-right: 50px;
        padding-bottom: 50px;
        margin-right: -344px;
        margin-left: -30px;
    }

    .header-credit {
        bottom: -56px;
    }
}

.main {
    float: left;
    width: 100%;
    padding-top: 12px;
    padding-bottom: 24px;
}

.main-pager {
    padding-top: 24px;
}

.main-pager .nav--pager {
    float: right;
    width: auto;
    margin-bottom: 0;
}

.main-pager .nav-next {
    position: relative;
}

@media (min-width:579px) {
    .main {
        padding-top: 16px;
        padding-bottom: 32px;
    }

    .main-pager {
        padding-top: 32px;
    }

    .main-pager .nav-item {
        margin-right: 16px;
        margin-left: 16px;
    }
}

@media (min-width:769px) {
    .main {
        padding-top: 24px;
        padding-bottom: 48px;
    }

    .main-pager {
        padding-top: 48px;
    }
}

@media (min-width:1183px) {
    .main {
        padding-top: 50px;
        padding-bottom: 112px;
        padding-left: 325px;
    }

    .main-pager {
        padding-top: 112px;
    }
}

@media (min-width:1503px) {
    .main {
        padding-top: 50px;
        padding-bottom: 112px;
        padding-left: 315px;
    }

    .main-pager {
        padding-top: 112px;
    }
}

/* 导航栏美化 */
nav {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 0.75rem;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
    animation: fadeInDown 1s ease-out;
    position: relative;
    z-index: 100;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] nav {
    background-color: rgba(43, 43, 43, 0.6);
}

.header-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 20px;
    max-width: 100%;
    flex: 1;
    min-height: 200px;
    justify-content: space-between;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.top-header .search-container {
    margin-top: 0;
    flex: 1;
    margin-right: 15px;
    max-width: 250px;
}

.top-header .theme-toggle-container {
    margin-top: 0;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.el-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.header-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 100;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    color: transparent;
}

.header-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #ffffff, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-about {
    font-size: 0.875rem;
    margin: 0 0 24px 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

.left-side-custom-code {
    margin-bottom: 24px;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* 确保音乐播放器不被其他元素遮挡 */
.aplayer {
    position: relative;
    z-index: 100;
    margin: 10px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100% !important;
    max-width: 280px;
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
}

/* 垂直导航样式 */
.header-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.nav-item {
    width: 100%;
}

.nav-link {
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 0.4rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--nav-text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--background-color);
    border: 1px solid var(--background-color);
    width: 100%;
    box-sizing: border-box;
}

.nav-link:hover {
    background: var(--nav-color);
    color: var(--nav-text-color);
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.nav-link.active {
    background: var(--nav-color);
    color: var(--nav-text-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.nav-link.about-author {
    background: var(--nav-color);
    color: var(--nav-text-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.nav-link i {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.nav-link:hover i, .nav-link.active i {
    transform: rotate(10deg) scale(1.1);
}

.theme-toggle-container {
    margin-top: 24px;
}

.theme-toggle {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    width: 50px;
    height: 50px;
    background-color: var(--background-color);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    color: var(--nav-text-color);
    justify-content: center;
    cursor: pointer;
}

#theme-icon {
    font-size: 24px;
    color: var(--nav-text-color);
    transition: color 0.3s ease;
}

/* 音乐播放器样式 */
audio {
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

/* APlayer音乐播放器 */
.aplayer {
    z-index: 10 !important;
    bottom: 20px !important;
}

/* 确保背景图显示 */
body {
    background-image: url('/myweb/assets/images/local-background.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

/* 确保其他元素不覆盖背景图 */
*:not(body) {
    background-image: none !important;
}

/* 确保所有元素不覆盖背景图 */
.main,
.wrapper,
.content,
.footer,
.post-container,
.post-inner,
.post-header,
.post-body,
.post-footer {
    background-color: transparent !important;
}

/* 增强卡片透明度 */
.post,
.search-section,
.category-section,
.promo-section,
.license-info-card,
.header {
    background-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(5px) !important;
    background-image: none !important;
}

[data-theme="dark"] .post,
[data-theme="dark"] .search-section,
[data-theme="dark"] .category-section,
[data-theme="dark"] .promo-section,
[data-theme="dark"] .license-info-card,
[data-theme="dark"] .header {
    background-color: rgba(43, 43, 43, 0.6) !important;
    backdrop-filter: blur(5px) !important;
    background-image: none !important;
}

/* 调整音乐播放器位置 */
.aplayer {
    bottom: 20px !important;
    z-index: 999 !important;
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 600px !important;
}

.aplayer.aplayer-fixed {
    bottom: 20px !important;
    z-index: 999 !important;
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 600px !important;
}

/* 响应式音乐播放器 */
@media (max-width: 1183px) {
    .left-side-custom-code {
        display: none;
    }
}

/* 时间显示器 */
.time-display {
    margin: 20px 0;
    padding: 0 20px;
}

.time-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--text-color);
}

.time-date {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.time-clock {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* 截图展示滚筒 */
.screenshot-carousel {
    margin: 20px 0 40px;
    padding: 0 20px;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slides img {
    min-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
    visibility: visible;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

/* 响应式截图展示滚筒 */
@media (max-width: 768px) {
    .carousel-container {
        max-width: 100%;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
}

/* 自定义消息框样式 */
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 99999;
    max-width: 90%;
    width: 400px;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

[data-theme="dark"] .custom-alert {
    background: rgba(43, 43, 43, 0.9);
    border: 1px solid rgba(51, 55, 57, 0.5);
}

.custom-alert-message {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.custom-alert-button {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-alert-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 响应式导航 */
@media (max-width: 1183px) {
    .header {
        min-height: 300px;
    }
    
    .header-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        min-height: 250px;
    }
    
    .header-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        width: auto;
    }
    
    .left-side-custom-code {
        display: none;
    }
    
    .aplayer {
        bottom: 10px !important;
        width: 95% !important;
        max-width: 500px !important;
    }
    
    .aplayer.aplayer-fixed {
        bottom: 10px !important;
        width: 95% !important;
        max-width: 500px !important;
    }
}

/* 标题区域 */
header {
    text-align: center;
    padding: 70px 20px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 0.75rem;
    margin-bottom: 40px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
    animation: fadeInDown 1s ease-out;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] header {
    background-color: rgba(43, 43, 43, 0.6);
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

header#home {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: var(--text-color);
    animation: fadeIn 1.5s ease-out;
    font-family: "Open Sans", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimSun, sans-serif;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    z-index: 100;
    display: inline-block;
    color: transparent;
}

h1::after,
div[data-text]::after,
span[data-text]::after,
strong[data-text]::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #ffffff, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
}

div[data-text],
span[data-text],
strong[data-text] {
    position: relative;
    z-index: 100;
    display: inline-block;
    color: transparent;
}

.subtitle {
    font-size: 1.4rem;
    color: var(--text2-color);
    max-width: 850px;
    margin: 0 auto;
    animation: fadeIn 2s ease-out;
    transition: color 0.3s ease;
}

/* 卡片布局 */
.post-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.post {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.3s ease;
    animation: fadeInUp 1s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .post {
    background-color: rgba(43, 43, 43, 0.6);
    border: 1px solid rgba(51, 55, 57, 0.5);
}

.post:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.post-inner {
    display: flex;
    flex-direction: column;
    border-radius: 0.75rem;
    overflow: hidden;
}

.post-header {
    padding: 16px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.avatar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.avatar-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.post-media {
    margin: 0;
    overflow: hidden;
    width: 100%;
}

.post-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    max-height: 350px;
    transition: transform 0.5s ease;
}

.post:hover .post-media img {
    transform: scale(1.05);
}

.post-body {
    padding: 32px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.post-title {
    font-size: 1.75rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-family: "Open Sans", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimSun, sans-serif;
    font-weight: 400;
    transition: color 0.3s ease;
    color: var(--text-color);
    position: relative;
    z-index: 10;
}

.post-title::after {
    content: "";
    display: block;
    background: var(--primary);
    opacity: .55;
    position: absolute;
    pointer-events: none;
    border-radius: 0.45rem;
    bottom: 5px;
    left: 0;
    width: 58px;
    height: 11px;
    transition: width 0.3s ease;
}

.post-title:hover::after {
    width: 100%;
}

.post-title a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary);
}

.post-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text2-color);
    transition: color 0.3s ease;
}

.post-footer {
    padding: 20px 30px;
    background-color: transparent;
    border-top: 1px solid var(--line-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #767676;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.meta-item:hover {
    color: #999;
}

.icon-ui {
    display: flex;
    align-items: center;
}

.icon-ui:before {
    vertical-align: bottom;
    font-size: 20px;
    margin: 4px;
}

.no-bg {
    background-color: transparent !important;
}

/* 右侧边栏 */
.right-sidebar {
    width: 300px;
    position: fixed;
    right: 20px;
    top: 100px;
    align-self: flex-start;
    z-index: 90;
    transition: right 0.3s ease;
}

/* 侧边栏控制按钮 */
.sidebar-toggle {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 60px;
    background-color: var(--card-color);
    border-radius: 15px 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    border-right: none;
    transition: background-color 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: var(--nav-color);
}

.sidebar-toggle i {
    color: var(--text-color);
    transition: transform 0.3s ease;
}

/* 侧边栏折叠状态 */
.right-sidebar.collapsed {
    right: -280px;
}

.right-sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .right-sidebar {
        position: static;
        width: 100%;
        margin-top: 40px;
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    
    .search-section, .category-section, .promo-section {
        width: 300px;
    }
    
    .sidebar-toggle {
        display: none;
    }
}

/* 侧边栏通用样式 */
.search-section, .category-section, .promo-section {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 0.75rem;
    margin-bottom: 25px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .search-section, [data-theme="dark"] .category-section, [data-theme="dark"] .promo-section {
    background-color: rgba(43, 43, 43, 0.6);
    border: 1px solid rgba(51, 55, 57, 0.5);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line-color);
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.section-body {
    padding: 20px;
}

/* 搜索功能 */
.search-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
    max-width: 300px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
    transition: all 0.3s ease;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, #a8e6cf, #81cfe0);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

/* 分类模块 */
.category-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category {
    background: var(--background-color);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text2-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--background-color);
}

.category:hover {
    background: var(--nav-color);
    color: var(--nav-text-color);
    transform: translateY(-2px);
    border: 1px solid var(--border-color);
}

/* 推广卡片 */
.promo-card {
    display: block;
    background: linear-gradient(135deg, var(--background-color) 0%, var(--card-color) 100%);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.promo-card-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.promo-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.promo-card-desc {
    font-size: 12px;
    color: var(--text2-color);
    line-height: 1.6;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.promo-card-desc p {
    margin: 4px 0;
}

.promo-card-btn {
    display: inline-block;
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
    transition: transform 0.2s ease;
}

.promo-card:hover .promo-card-btn {
    transform: translateX(4px);
}

.promo-card-badge {
    position: absolute;
    top: 10px;
    right: -24px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #fff;
    font-size: 10px;
    padding: 2px 28px;
    transform: rotate(45deg);
    font-weight: 500;
}

/* 暗色模式适配 */
[data-theme="dark"] .promo-card {
    background: linear-gradient(135deg, var(--background-color) 0%, var(--card-color) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .promo-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* 回到顶部按钮 */
.go-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.go-top.show {
    opacity: 1;
    visibility: visible;
}

.go {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.go:hover {
    background: var(--themehovercolor, #2980b9);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.go i {
    font-size: 1.2rem;
}

.version-info {
    background: var(--pure-gery-color);
    padding: 12px 18px;
    border-radius: 10px;
    margin: 18px 0;
    font-size: 1rem;
    color: var(--text2-color);
    display: inline-block;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.note {
    background: var(--pure-gery-color);
    border-left: 4px solid var(--secondary);
    padding: 18px;
    margin: 18px 0;
    font-size: 1rem;
    border-radius: 0 10px 10px 0;
    line-height: 1.6;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    color: var(--text2-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    gap: 8px;
    color: white;
    background-size: 200% auto;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:hover::after {
    transform: scale(100, 100);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.btn-primary {
    background-image: linear-gradient(to right, var(--primary), #2980b9);
}

.btn-secondary {
    background-image: linear-gradient(to right, var(--secondary), #d35400);
}

.btn-tertiary {
    background-image: linear-gradient(to right, var(--tertiary), #8e44ad);
}

.btn-curseforge {
    background-image: linear-gradient(to right, #f39c12, var(--secondary));
}

.btn-github {
    background-image: linear-gradient(to right, #34495e, #2c3e50);
}

.btn-download {
    background-image: linear-gradient(to right, #2ecc71, #27ae60);
}

/* 页脚 */
.main-lastinfo {
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 0.75rem;
    font-size: 0.95rem;
    color: var(--text2-color);
    animation: fadeIn 1s ease-out;
    margin-top: 40px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .main-lastinfo {
    background-color: rgba(43, 43, 43, 0.6);
}

.main-lastinfo::before {
    content: "";
    display: block;
    height: 3px;
    width: 50px;
    background: var(--text2-color);
    margin: 0 auto 10px;
    transition: background 0.3s ease;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.social-link {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    padding: 12px 20px;
    border-radius: 25px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--nav-text-color);
    background: var(--nav-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--border-color);
}

.main-lastinfo p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* 顶部横幅 */
.top-banner {
    background: #3a77f5;
    padding: 10px 24px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 9999;
    box-sizing: border-box;
    animation: fadeInDown 0.5s ease-out;
}

body {
    padding-top: 44px;
    overflow-x: hidden;
}

/* 让滚动条在横幅下方 */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

.top-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    padding: 0 20px;
    text-align: center;
}

.top-banner-logo {
    font-size: 18px;
}

.top-banner-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.top-banner-desc {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    white-space: nowrap;
}

.top-banner-btn {
    background: #fff;
    color: #3b5998;
    padding: 6px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-left: 8px;
}

.top-banner-btn:hover {
    background: #f0f0f0;
}

.top-banner-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
    margin-left: 8px;
}

.top-banner-close:hover {
    color: #fff;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .top-banner-desc {
        display: none;
    }
    .top-banner-content {
        gap: 8px;
    }
}

/* 暗色模式适配 */
[data-theme="dark"] .top-banner {
    background: #2d3748;
}
/* 暗色模式适配 */
[data-theme="dark"] .top-banner-btn {
    background: rgba(255,255,255,0.9);
    color: #2d3748;
}

/** LICENCE 卡片 **/
.license-info-card {
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    max-width: 800px;
    margin: 0 auto;
}

[data-theme="dark"] .license-info-card {
    background-color: rgba(43, 43, 43, 0.8);
    border: 1px solid rgba(51, 55, 57, 0.5);
}

.license-info-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 30px;
    transition: color 0.3s ease;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(to right, var(--text-color), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.license-info-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text2-color);
    gap: 40px;
    margin-bottom: 30px;
    transition: color 0.3s ease;
    flex-wrap: wrap;
}

.license-info-meta div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.license-info-meta div span {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.cc-icon {
    font-family: 'fontello';
    font-size: 12em;
    opacity: .3;
    color: var(--border-color);
    position: absolute;
    right: 40px;
    top: 0;
    pointer-events: none;
    z-index: 0;
    transition: color 0.3s ease;
}

.license-info-card * {
    z-index: 1;
}

.license-info-card h1 {
    color: var(--text-color);
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
    transition: color 0.3s ease;
}

.license-info-card strong {
    display: block;
    text-align: center;
    margin: 0 auto;
}

.license-info-card h2 {
    color: var(--text-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s ease;
}

.license-info-card h3 {
    color: var(--text-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.license-info-card p {
    color: var(--text2-color);
    margin-bottom: 15px;
    line-height: 1.8;
    transition: color 0.3s ease;
    text-align: justify;
}

.license-info-card ul {
    color: var(--text2-color);
    margin-left: 25px;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.license-info-card li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.license-info-card blockquote {
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    margin: 20px 0;
    background-color: var(--card2-color);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.license-info-card hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 30px 0;
}

/* 小尺寸设备样式 */
@media (max-width: 768px) {
    .license-info-card {
        padding: 20px;
        border-radius: 0.5rem;
        font-size: 0.9rem;
    }

    .license-info-title {
        font-size: 1.5em;
    }

    .license-info-meta {
        gap: 20px;
    }

    .license-info-meta div span {
        margin-bottom: 0;
    }

    .cc-icon {
        right: 20px;
        font-size: 8em;
    }

    .license-info-card h1 {
        font-size: 1.3rem;
    }

    .license-info-card h2 {
        font-size: 1.1rem;
    }

    .license-info-card h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .license-info-card {
        padding: 15px;
    }

    .license-info-meta {
        flex-direction: column;
        gap: 10px;
    }

    .cc-icon {
        font-size: 6em;
        right: 10px;
    }
}

/* 响应式 */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }
    
    .right-sidebar {
        width: 100%;
        position: static;
    }
    
    .header-wrapper {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    nav {
        top: 10px;
    }
    
    .header-wrapper {
        padding: 15px 20px;
    }
    
    .nav-links {
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .post-body {
        padding: 20px;
    }
    
    .post-title {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .top-banner-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .top-banner-desc {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .nav-link i {
        width: 20px;
        height: 20px;
        font-size: 0.9rem;
    }
    
    .post-title {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .btn-container {
        flex-direction: column;
    }
    
    .main-content {
        gap: 20px;
    }
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(200,200,200,0.3);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    padding: 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--dark);
}

.close-modal {
    font-size: 1.8rem;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--dark);
}

.modal-body {
    padding: 25px;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.modal-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

.modal-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    text-decoration: none;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.95rem;
}

.modal-btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
}

.modal-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.modal-btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
}

.modal-btn-secondary:hover {
    background: #e9ecef;
}