/* 基础变量（不随主题变） */
:root {
    --color-accent: #d47e74;
    --color-accent-dark: #e08a80;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --gap-sm: 8px;
    --gap-md: 15px;
    --gap-lg: 20px;
    --line-height-lg: 1.8;
    --line-height-base: 1.6;
    --line-height-tight: 1.4;
    --footer-max-height: 136px;
    /* 基准字号（对应1rem=10px，以下数值为rem值） */
    --font-size-xs: 1.2rem;
    --font-size-sm: 1.3rem;
    --font-size-md: 1.4rem;
    --font-size-lg: 1.6rem;
    --font-size-xl: 1.7rem;
    --font-size-xxl: 1.8rem;
    --font-size-xxxl: 2rem;
    --nav-height: 60px;
}

/* 白色主题 */
.light {
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --bg-nav: #ffffff;
    --bg-hover: #f5f0ef;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-tertiary: #6c757d;
    --border-color: #dee2e6;
    --scrollbar-track: #f1f3f5;
    --scrollbar-thumb: #adb5bd;
    --scrollbar-thumb-hover: var(--color-accent);
    --header-bg: url("/static/imgs/header-bg-48e78de42ea1fdacd66737807a46a1b4.jpg");
    --content-bg: url("/static/imgs/theme/light-content-bg-4498abf83c3a0615f6b1a4369d623fa8.jpg");
    /*--poem-bg: url("/static/imgs/theme/light-poem-bg-2689e08f729568c12de83f9b5ee85e0c.jpg");*/
}

/* 暗黑主题 */
.dark {
    --bg-body: #0f0f0f;
    --bg-card: #1a1a1a;
    --bg-nav: #1a1a1a;
    --bg-hover: #282828;
    --bg-active: #303030;
    --text-primary: #f8f8f8;
    --text-secondary: #e5e5e5;
    --text-tertiary: #d0d0d0;
    --border-color: #404040;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.4);
    --scrollbar-track: #1a1a1a;
    --scrollbar-thumb: #505050;
    --scrollbar-thumb-hover: var(--color-accent-dark);
    --header-bg: url("/static/imgs/header-bg-dark-baf27c99976197ca3d4a48b651812c3f.jpg");
    --content-bg: url("/static/imgs/theme/dark-content-bg-4cf5cd84ad2d0e8d0d592cf604191a1e.jpg");
    /*--poem-bg: url("/static/imgs/theme/dark-poem-bg-5d255c3b7971d17c31d9bdb0ce01cf71.jpg");*/
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; /* 主题切换过渡 */
}

/* 设置rem基准：1rem = 10px（62.5% * 16px = 10px），方便计算 */
html {
    font-size: 62.5%;
    *font-size: 10px;
}

body {
    line-height: 1.5;
    font-size: var(--font-size-md, 14px);
}

h1, h2 {
    font-size: var(--font-size-xxxl, 20px);
}

h3, h4 {
    font-size: var(--font-size-xxl, 18px);
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none !important;
    /*color: inherit;*/
}

button {
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

/* 文字溢出省略（通用工具类） */
.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-ellipsis-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================
   3. 顶部导航（模块化，可复用）
   ========================================== */
.header-nav {
    background-image: var(--header-bg);
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--bg-nav);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-nav .site-logo {
    height: 100px;
    border-radius: var(--radius-md);
}

.header-nav__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: var(--nav-height, 60px); /* 固定导航高度，提升稳定性 */
}

/* 移动端汉堡菜单 */
.header-nav__toggle {
    display: none;
    font-size: var(--font-size-xxl, 18px);
    color: var(--text-primary); /* 确保汉堡菜单使用主文字色 */
    padding: 10px;
}

/* 主题切换按钮 */
.theme-switch {
    font-size: var(--font-size-xxl, 18px);
    color: var(--text-primary); /* 确保主题按钮使用主文字色 */
    padding: 10px;
    transition: color 0.2s ease;
}

.theme-switch:hover {
    color: var(--color-accent-dark, var(--color-accent));
}

.search-form {
    flex: 1; /* 新增：占据剩余空间 */
    max-width: 400px; /* 新增：限制最大宽度 */
}

.search-form .input-group {
    display: flex;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--bg-body);
    transition: border-color 0.2s ease;
}

.search-form .input-group:focus-within {
    border-color: var(--color-accent-dark, var(--color-accent));
    box-shadow: 0 0 0 2px rgba(212, 126, 116, 0.1);
}

.search-form select,
.search-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 10px;
    background-color: transparent;
    color: var(--text-primary);
    font-size: var(--font-size-md, 14px);
}

.search-form input::placeholder {
    color: var(--text-tertiary);
    font-size: var(--font-size-sm, 13px);
}

.search-form .add-btn {
    flex-shrink: 0;
}

.search-form #search_button {
    padding: 8px 15px;
    color: var(--text-primary);
    background-color: var(--bg-hover);
    transition: all 0.2s ease;
}

.search-form select:hover,
.search-form #search_button:hover {
    background-color: var(--color-accent-dark, var(--color-accent));
    color: white;
}

.search-form select option {
    color: var(--text-primary);
    background-color: var(--bg-hover);
}

.search-form .icon-search {
    font-size: var(--font-size-lg, 16px);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 5px 15px;
    margin-bottom: 10px;
    list-style: none;
    background-color: var(--bg-body);
    opacity: 0.8;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb > li {
    display: inline-block;
}

.breadcrumb > li + li:before {
    padding: 0 5px;
    color: var(--text-secondary);
    content: "/\00a0";
}

.breadcrumb > .active {
    color: var(--color-accent-dark, var(--color-accent));
}

.breadcrumb a {
    color: var(--text-secondary);
}

/* 导航列表 */
.nav-list {
    display: flex;
    width: 100%;
    margin-bottom: 0px;
    flex-wrap: wrap;
}

.nav-list__item {
    flex: 1;
    text-align: center;
    position: relative;
    min-width: 102px;
}

.nav_item a {
    color: #777777;
}

.norm__link,
.nav-list__link {
    display: block;
    padding: 0 10px;
    font-size: var(--font-size-md, 14px);
    border-bottom: 2px solid var(--border-color);
    height: var(--nav-height, 60px); /* 与导航高度一致 */
    line-height: var(--nav-height, 60px);
    color: var(--text-primary); /* 强制导航文字使用主文字色 */
    font-weight: 500; /* 轻微加粗，提升辨识度 */
}

.norm__link {
    border-bottom: 1px dashed var(--border-color);
    overflow: hidden;
}

.nav-list__item.active .nav-list__link {
    color: var(--color-accent-dark, var(--color-accent));
    border-bottom-color: var(--color-accent-dark, var(--color-accent));
    background-color: var(--bg-active); /* Active背景增强 */
}

.norm__link.selected,
.norm__link:hover,
.nav-list__link:hover {
    color: var(--color-accent-dark, var(--color-accent));
    border-bottom-color: var(--color-accent-dark, var(--color-accent));
    background-color: var(--bg-hover);
}

/* ==========================================
   4. 内容区域（面包屑导航+二级导航+三级弹窗+书籍列表）
   ========================================== */
.content-wrapper {
    background-image: var(--content-bg);
    background-size: cover;
    background-color: var(--bg-body);
    min-height: calc(100vh - var(--nav-height));
    padding: var(--gap-md) 0;
}

.content-container {
    display: flex;
    position: relative;
    gap: var(--gap-sm);
}

.nav-secondary__link {
    display: block;
    padding: 12px 15px;
    font-size: var(--font-size-md, 14px);
    position: relative;
    line-height: var(--line-height-tight);
    color: var(--text-primary); /* 强制二级导航文字使用主文字色 */
    font-weight: 500; /* 轻微加粗，提升辨识度 */
}

/* 4.1 左侧二级导航 */
.nav-secondary {
    width: 200px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md); /* 增加圆角 */
    flex: 0 0 200px;
    z-index: 10;
    overflow: hidden; /* 裁剪圆角外内容 */
}

.border-bottom,
.nav-secondary__item {
    border-bottom: 1px dashed var(--border-color);
}

.border-bottom:last-child,
.nav-secondary__item:last-child {
    border-bottom: none;
}

.nav-secondary-only__link,
.nav-secondary__link {
    display: block;
    padding: 12px 15px;
    font-size: var(--font-size-md, 14px);
    position: relative;
    line-height: var(--line-height-tight);
    color: var(--text-primary); /* 强制二级导航文字使用主文字色 */
    font-weight: 500; /* 轻微加粗，提升辨识度 */
}

.tertiary-col__item.selected .tertiary-col__link,
.nav-secondary__item.selected .nav-secondary-only__link,
.nav-secondary__item.active .nav-secondary-only__link,
.nav-secondary__item.selected .nav-secondary__link,
.nav-secondary__item.active .nav-secondary__link {
    background-color: var(--bg-active); /* Active背景增强 */
    color: var(--color-accent-dark, var(--color-accent));
    padding-left: 15px;
    font-weight: 600;
}

.nav-secondary-only__link:hover,
.nav-secondary__link:hover {
    background-color: var(--bg-hover);
    color: var(--color-accent-dark, var(--color-accent));
    padding-left: 20px;
}

.nav-secondary__link::after {
    content: ">";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary); /* 箭头使用次要文字色，保证可见性 */
    font-size: var(--font-size-xs, 12px);
}

/* 4.2 三级分类弹窗（多列平铺） */
.nav-tertiary-popup {
    position: absolute;
    left: 200px;
    top: 0;
    width: calc(100% - 200px - var(--gap-md)); /* 适配间距 */
    min-height: 600px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md); /* 增加圆角 */
    padding: var(--gap-lg);
    display: none;
    z-index: 999;
    box-shadow: var(--shadow-sm);
    column-count: 3;
    column-gap: var(--gap-lg);
    overflow-y: auto;
    max-height: 600px;
}

/* 三级分类列容器 */
.tertiary-col {
    break-inside: avoid;
    margin-bottom: var(--gap-lg);
}

.tertiary-col__title {
    color: var(--color-accent-dark, var(--color-accent));
    font-size: var(--font-size-lg, 16px);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-hover);
    line-height: var(--line-height-tight);
    font-weight: 600; /* 加粗标题，增强层级 */
}

.tertiary-col__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-sm) var(--gap-md);
}

.tertiary-col__item {
    flex: 0 0 calc(50% - 7.5px);
}

.tertiary-col__link {
    display: block;
    padding: 6px 8px; /* 增加内边距，提升点击体验 */
    font-size: var(--font-size-sm, 13px);
    border-radius: var(--radius-sm);
    line-height: var(--line-height-tight);
    transition: all 0.2s ease; /* 增加过渡 */
    color: var(--text-secondary); /* 三级导航文字使用次要文字色，提升层级 */
    font-weight: 500; /* 轻微加粗 */
}

.tertiary-col__link:hover {
    color: var(--color-accent-dark, var(--color-accent));
    background-color: var(--bg-hover);
    transform: translateX(2px); /* 轻微位移，增强交互反馈 */
}

/* 4.3 右侧书籍列表 */
.book-list-wrapper {
    flex: 1;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--gap-lg);
    margin-bottom: 10px;
    min-height: calc(100vh - 200px - 100px);;
}

.book-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-lg);
    /*justify-content: space-evenly;*/
}

.book-card-sm,
.book-card {
    width: calc(50% - 10px);
    padding: var(--gap-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background-color: var(--bg-card);
    display: flex;
    gap: var(--gap-md);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.book-card-sm {
    width: 172px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.book-card-sm:hover,
.book-card:hover {
    border-color: var(--color-accent-dark, var(--color-accent));
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    background-color: var(--bg-hover);
}

.book-card__img {
    width: 120px;
    height: 160px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.book-card-sm .book-card__img {
    width: 60px;
    height: 80px;
}

.book-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.book-card:hover .book-card__img img {
    transform: scale(1.08);
}

.book-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 左对齐，优化阅读体验 */
    padding: var(--gap-sm) 0; /* 上下内边距 */
}

.highlight,
.norm__link em,
.book-card__info em {
    padding: 0px 2px;
    color: var(--color-accent-dark, var(--color-accent));
    font-style: normal;
    font-weight: bold;
}

.book-card__title {
    font-size: var(--font-size-xxl, 18px);
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-primary);
    line-height: var(--line-height-tight);
}

.book-card-sm .book-card__title {
    font-size: var(--font-size-md, 14px);
    margin: 0px;
}

.book-card__title:hover {
    color: var(--color-accent-dark, var(--color-accent));
}

.book-card__author {
    font-size: var(--font-size-md, 14px);
    color: gray;
    font-weight: 500;
    margin: 0 0 8px 0; /* 调整间距 */
    line-height: var(--line-height-tight);
}

.book-card__desc {
    font-size: var(--font-size-sm, 13px);
    color: var(--text-secondary);
    line-height: var(--line-height-base); /* 优化行高，提升可读性 */
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0; /* 重置margin */
}

.content-box {
    /*margin: 15px auto;*/
    /*padding: 15px;*/
    font-size: var(--font-size-lg, 16px);
    line-height: var(--line-height-lg);
}

.wrap-img {
    float: left;
    margin: 0 20px 10px 0;
    height: auto;
    border-radius: 8px;
    max-width: 220px;
}

.circle-img {
    float: left;
    margin: 0 20px 10px 0;
    border-radius: 50%;
    shape-outside: circle(50%);
    shape-margin: 10px;
    object-fit: cover;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* ==========================================
   5. 滚动条样式（适配主题）
   ========================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* 火狐兼容 */
.nav-tertiary-popup, .book-list-wrapper {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.panel {
    background-color: var(--bg-body);
}

.panel-info {
    border-color: var(--border-color);
}

.panel-info > .panel-heading {
    color: var(--text-secondary);
    border-color: var(--border-color);
    background-color: var(--bg-hover);
}

.panel-info > .panel-body {
    color: var(--text-secondary);
}

.panel-footer {
    border-color: var(--border-color);
    background-color: var(--bg-hover);
}

.panel-heading h2 {
    font-size: var(--font-size-xxxl, 20px);
    font-weight: bold;
    margin: 2px;
}

.book-content,
.main-content {
    margin: 50px 0px;
    font-size: var(--font-size-xxl, 18px);
}

.book-content p,
.other-content p,
.main-content p {
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border-bottom: 1px dashed var(--border-color);
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.book-content p:hover,
.other-content p:hover,
.main-content p:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.book-content p:nth-child(even),
.other-content p:nth-child(even),
.main-content p:nth-child(even) {
    background-color: var(--bg-card);
}

.main-content ruby rt {
    font-size: var(--font-size-xs, 12px);
    color: var(--text-secondary);
    margin: 0px 2px;
    letter-spacing: 0px;
}

.content-title {
    text-align: center;
    font-size: var(--font-size-xl, 17px);
}

/* ==========================================
   6. 响应式适配（移动端优先，重点优化）
   ========================================== */
@media (max-width: 767px) {
    /* 顶部导航适配 */
    .header-nav__toggle {
        display: block;
    }

    .search-form {
        order: 4;
        width: 100%;
        max-width: none;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .search-form input {
        width: 160px;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--bg-nav);
        border-bottom: 1px solid var(--border-color);
        display: none;
        box-shadow: var(--shadow-sm);
    }

    .nav-list.show {
        display: flex;
    }

    .nav-list__item {
        text-align: left;
        border-bottom: 1px dashed var(--border-color);
    }

    .nav-list__link {
        padding: 12px 15px;
        border-bottom: none;
        height: auto;
        line-height: var(--line-height-base);
    }

    /* 内容区域垂直排列 */
    .content-container {
        flex-direction: column;
        gap: var(--gap-md);
    }

    .nav-secondary {
        width: 100%;
        flex: 0 0 auto;
        margin-bottom: 0;
    }

    /* 三级弹窗适配 */
    .nav-tertiary-popup {
        position: static;
        width: 100%;
        min-height: auto;
        margin-bottom: 0;
        box-shadow: none;
        column-count: 1;
        padding: var(--gap-md);
        max-height: 400px;
        border-radius: var(--radius-md);
    }

    .tertiary-col__item {
        flex: 0 0 100%;
    }

    /* 书籍列表移动端核心优化 */
    .book-list-wrapper {
        width: 100%;
        min-height: 400px;
        padding: var(--gap-md);
        border-radius: var(--radius-md);
    }

    .book-list {
        gap: var(--gap-md);
    }

    .book-card {
        width: 100%;
        flex-direction: row;
        gap: var(--gap-md);
        padding: var(--gap-md);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
    }

    /* 书籍图片移动端优化 */
    .book-card__img {
        width: 100%;
        max-width: 160px;
        height: 200px;
        margin: 0 auto;
        border-radius: var(--radius-sm);
    }

    .book-card__img img {
        object-fit: cover;
        min-height: 100%;
    }

    /* 书籍信息移动端优化 */
    .book-card__info {
        padding: 0;
        align-items: flex-start;
        width: 100%;
    }

    .book-card__title {
        font-size: var(--font-size-xl, 17px);
        margin: 0 0 6px 0;
        width: 100%;
        text-align: left;
    }

    .book-card__author {
        font-size: var(--font-size-md, 14px);
        margin: 0 0 8px 0;
        width: 100%;
        text-align: left;
    }

    .book-card__desc {
        font-size: var(--font-size-sm, 13px);
        line-height: var(--line-height-base);
        width: 100%;
        text-align: left;
        -webkit-line-clamp: 4;
    }

    /* 隐藏PC端箭头 */
    .nav-secondary__link::after {
        display: none;
    }
}

/* 超小屏幕适配（480px以下） */
@media (max-width: 480px) {
    .header-nav .site-logo {
        height: 50px;
    }

    .search-form input {
        width: 100px;
    }

    .book-card-sm {
        width: 160px;
    }

    .book-card__img {
        max-width: 140px;
        height: 180px;
    }

    .nav-secondary {
        display: none;
    }

    .nav-tertiary-popup {
        padding: var(--gap-sm);
    }

    .book-card {
        padding: var(--gap-sm);
    }

    .book-card__title {
        font-size: var(--font-size-lg, 16px);
    }

    .book-card__desc {
        font-size: var(--font-size-xs, 12px);
        -webkit-line-clamp: 3;
    }

    .book-content,
    .main-content {
        font-size: var(--font-size-lg, 16px);
    }
}

/* IE兼容（10+） */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .nav-tertiary-popup {
        display: flex;
        flex-wrap: wrap;
        column-count: unset;
    }

    .tertiary-col {
        flex: 0 0 calc(33.333% - 15px);
        margin-right: 15px;
    }

    .tertiary-col:nth-child(3n) {
        margin-right: 0;
    }

    @media (max-width: 767px) {
        .tertiary-col {
            flex: 0 0 100%;
            margin-right: 0;
        }
    }
}

/* 图片加载容错样式 */
.book-card__img img {
    background-color: var(--bg-hover); /* 加载中背景 */
}

.book-card__img img[src=""] {
    opacity: 0; /* 空图片隐藏 */
}

.verifyInput {
    border: 1px solid #ccc;
    height: 38px;
    color: #000;
    padding: 6px 12px;
}

.verifyImage {
    height: 36px;
}

.bg-gray {
    background: linear-gradient(to top, #f1f1f1, transparent);
}

.section-box-shadow {
    box-shadow: -1px -1px 3px #f1f1f1, 1px 1px 3px #f1f1f1;
    border-radius: 5px;
}

.btn-register {
    color: #FFFFFF;
    background-color: #0AB4F7;
    border-color: #F4F7F7;
}

.btn-register:hover, .btn-register:focus, .btn-register:active, .btn-register.active, .open .dropdown-toggle.btn-register {
    color: #FFFFFF;
    background-color: #086DF2;
    border-color: #F4F7F7;
}

.btn-register:active, .btn-register.active, .open .dropdown-toggle.btn-register {
    background-image: none;
}

.btn-register.disabled, .btn-register[disabled], fieldset[disabled] .btn-register, .btn-register.disabled:hover, .btn-register[disabled]:hover, fieldset[disabled] .btn-register:hover, .btn-register.disabled:focus, .btn-register[disabled]:focus, fieldset[disabled] .btn-register:focus, .btn-register.disabled:active, .btn-register[disabled]:active, fieldset[disabled] .btn-register:active, .btn-register.disabled.active, .btn-register[disabled].active, fieldset[disabled] .btn-register.active {
    background-color: #0AB4F7;
    border-color: #F4F7F7;
}

.btn-register .badge {
    color: #0AB4F7;
    background-color: #FFFFFF;
}

/***********************头部的样式***********************/

#login-register {
    position: absolute;
    right: 20px;
}

#login-register .scaling {
    position: relative;
    display: none;
}

@media (min-width: 1120px) {
    #login-register .scaling {
        display: block;
    }
}

/***********************尾部的样式***********************/

#lk_footer {
    width: 100%;
    max-height: var(--footer-max-height);
    background: black;
    -webkit-background-size: cover;
    background-size: cover;
    color: #fff;
    font-size: 14px;
    user-select: none;
}

#lk_footer ul {
    list-style: none;
}

#lk_footer .logo {
    width: 160px;
}

#lk_footer .one, #lk_footer .two {
    padding: 10px;
    border-right: 1px solid #666;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#lk_footer .split {
    border-top: 1px solid rgba(127, 133, 150, 0.2);
}

#lk_footer .rights {
    color: rgb(127, 133, 150);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

#lk_footer .rights a {
    color: rgb(127, 133, 150);
    text-decoration: none;
}

#lk_footer .friend-link {
    color: rgb(127, 133, 150);
    font-size: 12px;
}

#lk_footer .friend-link a {
    color: rgb(127, 133, 150);
    padding: 0px 10px;
}

#lk_footer .rights a:hover {
    color: rgb(255, 255, 255);
}

#lk_footer .one li {
    line-height: 28px;
}

#lk_footer .one li a {
    color: #fff;
}

#lk_footer .three {
    padding: 10px 50px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

#lk_footer .three a {
    margin-right: 15px;
    text-decoration: none;
}

#lk_footer .foot_img {
    transition: transform .5s;
    width: 218px;
    height: auto;
}

#lk_footer .foot_img:hover {
    transform: scale(1.2);
}

#lk_footer .foot-title {
    width: 76px;
}

#lk_footer .foot-title a {
    color: #FFFFFF;
}

/***********************尾部的样式***********************/

.error-container {
    display: grid;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    background: rgb(26, 26, 26);
    padding: 50px;
}

.error-msg {
    font-size: 20px;
}

.error-msg img {
    width: 60px;
}

#sh-login-modal {
    color: #000000;
}

#sh-register-modal {
    color: #000000;
}

.login-section {
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
}

.login-flex {
    display: flex;
    flex-direction: row;
    -webkit-box-pack: start;
    justify-content: flex-start;
}

.login-split {
    margin-top: 30px;
    margin-bottom: 20px;
    color: rgb(127, 133, 150);
    font-size: 12px;
    font-weight: 500;
    gap: 10px;
    -webkit-box-align: center;
    align-items: center;
    height: 28px;
}

.login-line {
    height: 1px;
    background-color: rgba(127, 133, 150, 0.5);
    flex: 1 1 0%;
}

.login-item {
    color: rgb(51 122 183);
    font-size: 12px;
    font-weight: 700;
    gap: 5px;
    margin-left: 12px;
    cursor: pointer;
    flex-direction: column;
    display: flex;
    opacity: 0.9;
    -webkit-box-align: center;
    -webkit-box-pack: start;
}

.login-item:hover {
    opacity: 1;
}

.login-item span {
    text-shadow: rgba(0, 0, 0, 0.9) 0px 0px 0px;
}

.login-img {
    width: 44px;
    height: 44px;
    border: 0;
    vertical-align: top;
    display: inline;
    max-width: initial;
}

.logo-title {
    width: 26px;
    height: 26px;
    margin-right: 5px;
}

.icon-hot {
    position: relative;
    display: inline-block;
    width: 9px;
    height: 14px;
    background: url(/static/css/images/hot-4c23e943c3e8401ec88148c4a5178144.gif) no-repeat scroll 0px 0px;
    top: -10px;
}

.red-point {
    position: relative;
}

.red-point::before {
    content: " ";
    border: 3px solid #f73131;
    border-radius: 3px;
    position: absolute;
    z-index: 1000;
    right: 0;
    margin-right: -5px;
    margin-top: -2px;
}

/** 通用标题头 **/
.header-banner {
    position: relative;
    margin-bottom: 20px;
    height: 12vh;
    min-height: 90px;
    background: linear-gradient(135deg, #1a1a1a 0%, #272016 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 动态背景纹理 */
.header-banner::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 20%, transparent 20%), linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.08) 50%, transparent 52%);
    background-size: 3px 3px, 60px 60px;
    animation: header-banner-float 20s linear infinite;
}

/* 半透明遮罩层 */
.header-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.header-banner .banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 1200px;
}

.header-banner .banner-title {
    display: inline-block;
    color: white;
    font-size: 3.5rem;
    font-family: 'Segoe UI', system-ui;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.header-banner .banner-title:hover {
    transform: scale(1.02);
    cursor: default;
}

/* 装饰性元素 */
.header-banner .banner-decoration {
    position: absolute;
    background: #ff7675;
    width: 80px;
    height: 4px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-banner .banner-content .sub-title {
    font-size: 1.5em;
    color: #FFEB3B;
    margin-top: 10px;
}

/* 竖向 Tab 容器：Flex 分栏核心 */
.vertical-tab-container {
    display: flex;
    /*border: 1px solid #ddd;*/
    border-radius: 4px;
    overflow: hidden;
    cursor: default;
}

/* 左侧竖向标签栏 */
.vertical-tab-nav {
    width: 76px;
    border-right: 1px solid #dddddda6;
    padding: 0;
}

/* 标签项竖向排列（覆盖 Bootstrap3 原生横向样式） */
.vertical-tab-nav .nav-tabs {
    border-bottom: none;
    flex-direction: column;
    margin: 0;
}

/* 标签项样式重置 */
.vertical-tab-nav .nav-tabs > li {
    float: none;
    margin-bottom: 0;
}

/* 标签链接样式优化 */
.vertical-tab-nav .nav-tabs > li > a {
    border-radius: 0;
    border: none;
    padding: 10px 15px;
    color: var(--text-primary);
    margin: 0;
    display: block;
    transition: background-color 0.2s ease;
}

.vertical-tab-nav .nav-tabs > li.active > a,
.vertical-tab-nav .nav-tabs > li.active > a:hover,
.vertical-tab-nav .nav-tabs > li.active > a:focus {
    color: var(--color-accent-dark, var(--color-accent));
    background-color: var(--bg-active);
    border: none;
    cursor: pointer;
}

.vertical-tab-nav .nav-tabs > li:not(.active) > a:hover {
    color: var(--color-accent-dark, var(--color-accent));
    background-color: var(--bg-active);
    border: none;
}

/* 右侧内容区 */
.vertical-tab-content {
    flex: 1;
    padding: 20px;
}

@media (max-width: 768px) {
    .header-banner {
        height: 10vh;
        min-height: 90px;
    }

    .header-banner .banner-title {
        font-size: 2.5rem;
    }

    .wrap-img {
        float: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 20px auto;
        display: block;
    }

    .content-box {
        /*padding: 10px;*/
        font-size: var(--font-size-md, 14px);
    }

    .vertical-tab-container {
        flex-direction: column;
    }

    .vertical-tab-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .vertical-tab-nav .nav-tabs {
        flex-direction: row;
    }

    .vertical-tab-nav .nav-tabs > li {
        float: left;
    }
}

@keyframes header-banner-float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-5%, 5%) rotate(2deg);
    }
    50% {
        transform: translate(5%, -3%) rotate(-2deg);
    }
    75% {
        transform: translate(-3%, 4%) rotate(1deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}