* {
    cursor: url("../other/sb.cur"), default;
    box-sizing: border-box;
}

/* 优化：只对交互元素添加过渡效果，提升性能 */
a, button, .nav-item, .left-nav-item, .box, .search-bar, .back-button {
    transition: all 0.3s ease-in-out;
}

/* 优化：移除全局 hover 效果，只对特定元素应用 */
.nav-item:hover,
.left-nav-item:hover,
.box:hover,
.search-bar:hover {
    box-shadow: 0px 0px 10px 3px rgba(0, 255, 255, 0.6);
    transform: translateY(-2px);
}

html:hover,
body:hover {
    box-shadow: none;
}

.main-wrapper {
    box-shadow: 0px 0px 30px 8px rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

p {
    margin: 0;
    padding: 0;
}

.html,
body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

body {
    color: whitesmoke;
    font-family: "Source Sans Pro", "Hiragino Sans GB", "Microsoft Yahei", SimSun, Helvetica, Arial, Sans-serif, monospace;
    -webkit-font-smoothing: antialiased;
    background-color: black;
    background-image: url("../img/bg1.jpg");
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

::-webkit-scrollbar {
    width: 12px;
    background: rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 255, 255, 0.7), rgba(255, 105, 180, 0.7));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0, 255, 255, 0.9), rgba(255, 105, 180, 0.9));
}

::selection {
    background-color: rgba(0, 255, 255, 0.3);
    color: white;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: whitesmoke;
}

img {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

img:hover {
    transform: scale(1.02);
    box-shadow: 0px 0px 20px 5px rgba(255, 105, 180, 0.8);
}


/* Public */

.right {
    float: right;
}

.left {
    float: left;
}

.center-title {
    text-align: left;
    font-size: 14px;
    margin: 10px 10px;
    overflow-y: auto;
}

.center-content {
    text-align: center;
    font-size: 11px;
    margin: 10px 10px;
    overflow-y: auto;
}

.introduce {}

.newArticles {
    max-height: 50%;
}

.img-justify {
    padding: 0;
    border: 0;
    width: auto;
    height: auto;
    max-width: calc(100% - 50px);
    max-height: calc(100% - 50px);
    min-width: 50px;
    opacity: 90%;
    border-radius: 5px;
}

.left-space {
    margin-left: 3px;
}

.top-space {
    margin-top: 3px;
}

.top-space-big {
    margin-top: 10px;
}

.space {
    margin: 2px;
}

.pan {
    color: rgb(252, 192, 64);
}

.bold {
    font-weight: bold;
}

.nav-title {
    font-size: 9px;
    text-align: left;
    color: gray;
}

.seperator {
    height: 1px;
    width: 100%;
    background-color: black;
    margin: 10px 0px;
}

.seperator-bottom-space {
    height: 1px;
    width: 100%;
    background-color: rgba(135, 207, 235, 0.6);
    margin: 0px 0px 10px 0px;
}

.seperator-linear {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg,
        rgba(0, 255, 255, 0.8) 0%,
        rgba(255, 105, 180, 0.8) 50%,
        rgba(0, 255, 255, 0.8) 100%);
    margin: 10px 0px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}


/* 进度条 */

progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: white;
    color: pink;
    visibility: hidden;
}

progress::-webkit-progress-bar {
    background: white;
}

progress::-webkit-progress-value {
    background: pink;
}

progress::-moz-progress-bar {
    background: pink;
}


/* 主容器 */

.main-wrapper {
    font-size: 11px;
    height: auto;
    /*margin: 10px 180px;*/
    /*margin: 10px 10px;*/
    transition: 0.3s ease-in-out;
}

.main-wrapper:hover {
    box-shadow: 0px 0px 35px 10px rgba(0, 255, 255, 0.4);
}


/* 顶部导航栏 */

.top-nav-bar {
    margin: 0;
    max-height: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.5), rgba(255, 105, 180, 0.5));
    backdrop-filter: blur(15px);
    transition: 0.3s ease-in-out;
    border-radius: 0px;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.4);
    border-bottom: 2px solid rgba(0, 255, 255, 0.6);
}

.top-nav-bar:hover {
    box-shadow: 0px 0px 25px 8px rgba(255, 105, 180, 0.6);
}

.top-nav-bar>ul>li {
    margin: 8px 5px;
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.8), rgba(248, 135, 188, 0.8));
    border-radius: 0px;
    border: 1px solid rgba(255, 105, 180, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.top-nav-bar>ul>li:hover {
    cursor: pointer;
    background: linear-gradient(135deg, rgba(255, 105, 180, 1), rgba(248, 135, 188, 1));
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.6);
    transform: translateY(-2px);
}

.top-nav-bar>ul {
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 0;
}

.top-nav-bar>ul:hover {
    box-shadow: none;
}

.nav-item {
    padding: 8px 16px;
    line-height: 18px;
    font-size: 13px;
    font-weight: 500;
}

.nav-item>input {
    overflow: hidden;
}

.route {
    display: none;
    margin-top: 12px;
    margin-bottom: 12px;
    box-shadow: 0px 0px 3px 3px rgba(135, 207, 235, 0.6);
}


/* 正文Wrapper */

.content-wrapper {
    margin-top: 5px;
    border-radius: 0px;
    display: flex;
    min-height: calc(100vh - 120px);
}

.content-wrapper:hover {
    box-shadow: none;
}

.home-title {
    text-align: center;
    color: pink;
    transition: 0.3s ease-in-out;
}

.home-title:hover {
    transform: scale(1.2, 1.2);
}


/* 侧边栏 */

.left-nav {
    flex: 0 0 15%;
    display: flex;
    flex-direction: column;
    margin: 5px 0px 5px 10px;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(255, 105, 180, 0.3));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 0px;
    transition: 0.3s ease-in-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.left-nav:hover {
    box-shadow: 0px 0px 25px 8px rgba(0, 255, 255, 0.6);
    border-color: rgba(255, 105, 180, 0.6);
}

.left-nav>ul {
    margin: 10px 10px;
    padding: 0;
}

.left-nav>ul>li {
    font-size: 12px;
    line-height: 18px;
    border-radius: 0px;
    background: linear-gradient(135deg, rgba(248, 135, 188, 0.9), rgba(255, 105, 180, 0.9));
    margin: 5px 10px;
    border: 1px solid rgba(255, 105, 180, 0.5);
}

.left-nav>ul>li:hover {
    background: linear-gradient(135deg, rgba(255, 105, 180, 1), rgba(248, 135, 188, 1));
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.6);
}

.left-nav>ul>li>a:hover {
    box-shadow: none;
}

.left-nav-item {
    padding: 10px 5px;
    line-height: 16px;
    font-size: 11px;
    transition: 0.3s ease-in-out;
}

.left-nav-item>input {
    overflow: hidden;
}

.left-nav-item:hover {
    background: rgba(255, 192, 203, 0.9);
    box-shadow: 0px 0px 8px 2px rgba(255, 192, 203, 0.8);
    transform: scale(1.05);
}

.right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 0px;
    margin: 5px 10px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.25), rgba(255, 105, 180, 0.25));
    backdrop-filter: blur(15px);
    overflow-y: auto;
    transition: 0.3s ease-in-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* 主页专用：使用 flex 布局 */
.right-content.home-layout {
    padding: 20px;
}

.right-content:hover {
    box-shadow: 0px 0px 25px 8px rgba(0, 255, 255, 0.5);
    border-color: rgba(255, 105, 180, 0.6);
}

.box-list {
    padding: 15px;
}

.box {
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 0px;
    margin: 0 0 20px 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(255, 105, 180, 0.15));
    backdrop-filter: blur(8px);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.box:last-child {
    margin-bottom: 0;
}

.box:hover {
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.4);
    border-color: rgba(255, 105, 180, 0.6);
}

.box-title {
    background: linear-gradient(135deg, rgba(248, 135, 188, 0.9), rgba(255, 105, 180, 0.9));
    margin: 0;
    padding: 10px;
    font-weight: bold;
    border-radius: 0px;
    transition: all 0.3s ease-in-out;
}

.box:hover .box-title {
    background: linear-gradient(135deg, rgba(255, 105, 180, 1), rgba(248, 135, 188, 1));
}

.box-title:hover {
    /*cursor: pointer;*/
}

.box-title>a {
    margin-left: 5px;
    line-height: 18px;
}

.box-content {
    background: rgba(0, 255, 255, 0.1);
    margin: 0;
    padding: 10px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    text-overflow: ellipsis;
}



/* Article */

.article-wrapper {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.08), rgba(255, 105, 180, 0.08));
    backdrop-filter: blur(8px);
    border: 2px solid rgba(0, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    height: calc(100% - 40px);
    margin: 20px;
}

.article-nav {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.back-button {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(255, 105, 180, 0.3));
    border: 1px solid rgba(0, 255, 255, 0.5);
    color: whitesmoke;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.back-button:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.5), rgba(255, 105, 180, 0.5));
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transform: translateX(-5px);
}

.article-title {
    font-size: 28px;
    font-weight: bold;
    padding: 20px;
    text-align: center;
    color: rgba(0, 255, 255, 1);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(255, 105, 180, 0.05));
}

.article-content {
    color: whitesmoke;
    padding: 30px;
    max-height: none;
    overflow-y: visible;
    line-height: 1.8;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: rgba(255, 105, 180, 1);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.article-content h1 {
    font-size: 24px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.5);
    padding-bottom: 10px;
}

.article-content h2 {
    font-size: 20px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 8px;
}

.article-content h3 {
    font-size: 18px;
}

.article-content h4 {
    font-size: 16px;
}

.article-content p {
    margin: 15px 0;
}

.article-content a {
    color: rgba(0, 255, 255, 1);
    text-decoration: underline;
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: rgba(255, 105, 180, 1);
    text-shadow: 0 0 5px rgba(255, 105, 180, 0.5);
}

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.article-content li {
    margin: 8px 0;
}

.article-content blockquote {
    border-left: 4px solid rgba(0, 255, 255, 0.8);
    padding: 15px 20px;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.15);
    font-style: italic;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border: 2px solid rgba(0, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.article-content video {
    max-width: 100%;
    display: block;
    margin: 20px auto;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-content table th,
.article-content table td {
    border: 1px solid rgba(0, 255, 255, 0.4);
    padding: 10px;
    text-align: left;
}

.article-content table th {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(255, 105, 180, 0.15));
    font-weight: bold;
}

.article-content table tr:hover {
    background: rgba(0, 255, 255, 0.1);
}

.article-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(0, 255, 255, 0.8) 0%,
        rgba(255, 105, 180, 0.8) 50%,
        rgba(0, 255, 255, 0.8) 100%);
    margin: 30px 0;
}


/* Footer */

.footer {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 10px;
    color: rgba(0, 255, 255, 1);
    border-radius: 0px;
    transition: 0.3s ease-in-out;
}

.footer>p {
    margin: 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(255, 105, 180, 0.3));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 0px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.footer:hover {
    transform: translateY(-2px);
}

.footer:hover>p {
    box-shadow: 0px 0px 15px 5px rgba(255, 105, 180, 0.5);
    border-color: rgba(255, 105, 180, 0.6);
}


/* Player */

.player {
    position: fixed;
    bottom: 0px;
    right: 0px;
    height: 30px;
    /*width: calc(100% - 360px);*/
    width: 120px;
}

.player-nav {
    background-color: transparent;
    float: right;
    width: 120px;
    height: 30px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .left-nav {
        display: none;
    }

    .right-content {
        width: calc(100% - 30px);
        margin: 5px;
    }

    .top-nav-bar {
        height: auto;
        max-height: none;
    }

    .nav-item {
        display: block;
        margin: 5px;
    }

    .search-bar {
        width: calc(100% - 20px);
        margin: 5px;
    }

    .content-wrapper {
        height: auto;
        min-height: 400px;
    }

    .main-wrapper {
        font-size: 10px;
    }

    .center-title {
        font-size: 12px;
    }

    .center-content {
        font-size: 10px;
    }

    .nav-item {
        font-size: 11px;
    }

    .left-nav-item {
        font-size: 10px;
    }

    .article-content {
        font-size: 11px;
        padding: 15px;
    }

    .article-content h1 {
        font-size: 18px;
    }

    .article-content h2 {
        font-size: 16px;
    }

    .article-content h3 {
        font-size: 14px;
    }

    .article-content h4 {
        font-size: 13px;
    }
}

/* 搜索框增强 */
.search-bar:focus {
    outline: none;
    box-shadow: 0px 0px 15px 3px rgba(0, 255, 255, 1);
}

/* 文章内容优化 */
.article-content {
    line-height: 1.8;
    letter-spacing: 0.5px;
}

.article-content code {
    background: rgba(0, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 0px;
    font-family: 'Courier New', monospace;
}

.article-content pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 0px;
    overflow-x: auto;
    border-left: 4px solid rgba(255, 105, 180, 0.8);
}

/* 主页样式 - 博客简介区域 */
.home-intro-section {
    margin: 0px 0px 20px 0px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: block;
    width: 100%;
}

.intro-header {
    text-align: center;
    margin-bottom: 20px;
}

.intro-title {
    font-size: 28px;
    font-weight: bold;
    color: rgba(255, 105, 180, 1);
    margin: 0 0 10px 0;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.intro-content-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
}

.intro-text {
    flex: 1;
    text-align: left;
}

.intro-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: whitesmoke;
}

.intro-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 8px 0;
}

.intro-footer {
    font-size: 13px;
    color: rgba(0, 255, 255, 0.9);
    margin-top: 10px;
}

.intro-image {
    flex: 1;
    text-align: center;
    max-width: 300px;
}

.intro-cover {
    max-width: 100%;
    height: auto;
    border: 3px solid rgba(0, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* 主页样式 - 最新文章区域包装器 */
.home-articles-wrapper {
    height: auto;
    min-height: 300px;
    display: inline-block;
    vertical-align: top;
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 0px;
    margin: 5px 10px;
    width: calc(85% - 50px);
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 105, 180, 0.2));
    backdrop-filter: blur(10px);
    overflow-y: auto;
    transition: 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.home-articles-wrapper:hover {
    box-shadow: 0px 0px 20px 5px rgba(0, 255, 255, 0.4);
}

/* 主页样式 - 最新文章区域 */
.home-articles-section {
    margin: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: block;
    width: 100%;
    flex: 1;
}

.articles-header {
    text-align: center;
    margin-bottom: 20px;
}

.articles-title {
    font-size: 24px;
    font-weight: bold;
    color: rgba(0, 255, 255, 1);
    margin: 0 0 10px 0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.articles-content {
    margin-top: 15px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    grid-auto-rows: 1fr;
}

.article-grid > .box {
    height: 100%;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .intro-content-wrapper {
        flex-direction: column;
    }

    .intro-image {
        width: 100%;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .home-intro-section,
    .home-articles-wrapper {
        width: calc(100% - 30px);
        margin: 5px;
    }

    .home-articles-section {
        margin: 0;
        padding: 15px;
    }

    .home-intro-section {
        padding: 15px;
    }

    .intro-title {
        font-size: 24px;
    }

    .articles-title {
        font-size: 20px;
    }
}