/* 自定义字体定义 */
@font-face {
    font-family: 'CustomFont';
    src: url('../fonts/ldixapcsobg7s-qt7p4hm-y.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* 优化字体加载性能 */
}

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #FFD700;
    --dark-bg: #1a1a1a;
    --darker-bg: #0f0f0f;
    --text-light: #f0f0f0;
    --text-gray: #cccccc;
    --border-color: #444;
    --card-bg: #2a2a2a;
    --hover-color: #A0522D;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'CustomFont', 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
    background-image: url('../images/h1.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #444444;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    background: linear-gradient(180deg, rgba(60, 50, 40, 0.85) 0%, rgba(80, 70, 60, 0.85) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-color);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.header .container {
    position: relative;
    z-index: 1001;
}

.nav {
    position: relative;
    z-index: 1001;
}

.nav-menu {
    position: relative;
    z-index: 1001;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    color: var(--accent-color);
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--accent-color);
    background: rgba(255, 215, 0, 0.2);
}

.nav-menu a.active {
    color: var(--accent-color) !important;
    background: rgba(255, 215, 0, 0.3) !important;
    font-weight: bold;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80% !important;
    height: 2px;
    background: var(--accent-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 80%;
}

.login-section {
    display: flex;
    align-items: center;
}

.btn-login {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-login:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 用户下拉菜单 */
.login-section .dropdown {
    position: relative;
}

.login-section .dropdown-toggle {
    position: relative;
    padding-right: 35px;
}

.login-section .dropdown-toggle::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--text-light);
    transition: transform 0.3s ease;
}

.login-section .dropdown-toggle[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(180deg);
}

.login-section {
    position: relative;
    z-index: 1002;
}

.login-section .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    min-width: 180px;
    background: rgba(60, 50, 40, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1002;
    display: none;
    padding: 5px 0;
}

.login-section .dropdown-menu.show {
    display: block;
}

.login-section .dropdown-item {
    display: block;
    padding: 10px 15px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.login-section .dropdown-item:hover {
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent-color);
}

.login-section .dropdown-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.login-section .dropdown-divider {
    height: 1px;
    margin: 5px 0;
    overflow: hidden;
    background-color: rgba(255, 215, 0, 0.3);
    border: none;
}


/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: all 0.3s ease;
}

/* 标题区域 */
.title-section {
    max-width: 1400px;
    margin: 120px auto 0;
    padding: 0 20px;
    text-align: center;
}

.title-section h1.title {
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 1;
}

.title-section h1.title img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.title-section h2 {
    color: var(--accent-color);
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
}

.title-section p {
    color: var(--text-gray);
    font-size: 18px;
}

/* 主容器：左右分栏 */
.main-wrapper {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0px auto 0;
    width: 100%;
    min-height: calc(100vh - 200px);
    padding: 15px;
    background: 
        linear-gradient(135deg, rgba(245, 245, 220, 0.75) 0%, rgba(255, 248, 220, 0.8) 100%);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.4);
    align-items: flex-start;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* 左侧导航菜单 */
.sidebar {
    width: 320px;
    background: linear-gradient(180deg, rgba(70, 60, 50, 0.85) 0%, rgba(90, 80, 70, 0.85) 100%);
    backdrop-filter: blur(10px);
    border-right: 2px solid var(--accent-color);
    padding: 20px 0;
    height: auto;
    /* min-height: calc(100vh - 150px); */
    max-height: none;
    overflow-y: visible;
    overflow-x: hidden;
    flex-shrink: 0;
    align-self: flex-start;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* PC端：让侧边栏显示全部内容，不限制高度 */
@media (min-width: 769px) {
    .sidebar {
        height: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-left-color 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
    box-sizing: border-box;
    text-decoration: none !important;
    color: inherit;
}

.nav-item:hover {
    background: rgba(100, 90, 80, 0.6);
    border-left-color: var(--accent-color);
}

.nav-item.active {
    background: rgba(255, 215, 0, 0.25) !important;
    border-left-color: var(--accent-color) !important;
    border-left-width: 4px !important;
    border-left-style: solid !important;
    box-shadow: -2px 0 0 0 var(--accent-color) !important;
}

.nav-icon {
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 15px;
    background: rgba(255, 215, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

.nav-item.active .nav-icon {
    background: var(--accent-color) !important;
    color: var(--darker-bg) !important;
    border-color: var(--accent-color) !important;
}

.nav-content {
    flex: 1;
}

.nav-title {
    color: var(--text-light);
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.nav-item.active .nav-title {
    color: var(--accent-color) !important;
}

.nav-subtitle {
    color: var(--text-gray);
    font-size: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
    text-decoration: none !important;
}

.nav-item:hover .nav-title,
.nav-item:focus .nav-title,
.nav-item:active .nav-title {
    text-decoration: none !important;
    color: var(--text-light);
}

.nav-item.active .nav-subtitle {
    color: #ddd !important;
}

/* 右侧主要内容区域 */
.main-content {
    flex: 1;
    background: linear-gradient(135deg, rgba(255, 250, 240, 0.9) 0%, rgba(255, 248, 220, 0.9) 100%);
    backdrop-filter: blur(3px);
    padding: 20px;
    /* min-height: calc(100vh - 80px); */
    position: relative;
    margin-left: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* 无侧边栏时的样式 */
.main-wrapper.no-sidebar {
    flex-direction: column;
}

.main-content.full-width {
    margin-left: 0;
    width: 100%;
}

.content-panel {
    display: none;
    animation: fadeIn 0.5s ease;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.content-panel.active {
    display: block;
}

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

/* 首页内容 */
.welcome-box {
    border: 2px solid var(--accent-color);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(139, 69, 19, 0.1) 100%);
    padding: 15px 20px;
    margin-bottom: 20px;
    text-align: center;
}

.welcome-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.qq-group-btn {
    margin-bottom: 20px;
    text-align: center;
}

.btn-qq {
    background: #4A90E2;
    color: var(--text-light);
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-qq:hover {
    background: #357ABD;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-qq::before {
    content: '🐧';
    font-size: 18px;
}

/* 视频容器 */
.video-container {
    width: 100%;
    max-width: 100%;
    margin: 20px auto 0;
    background: #000;
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 内容区域样式 */
.content-header {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.content-header h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.content-subtitle {
    font-size: 16px;
    color: #666;
}

.content-body {
    padding: 20px 0;
}

.info-section {
    margin-bottom: 30px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #444;
    line-height: 1.8;
}

.info-section ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 12px;
}

.info-section p {
    color: #444;
    line-height: 1.8;
    margin: 10px 0;
}

/* 表格样式 */
.table-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 600px;
    table-layout: auto;
}

.info-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--hover-color) 100%);
}

.info-table th {
    padding: 12px 15px;
    text-align: left;
    color: var(--text-light);
    font-weight: bold;
    font-size: 14px;
    border-bottom: 2px solid var(--hover-color);
}

.info-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    color: #444;
    font-size: 14px;
}

.info-table tbody tr {
    transition: background 0.3s ease;
}

.info-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.15);
}

.info-table tbody tr:last-child td {
    border-bottom: none;
}

/* 页脚 */
.footer {
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--accent-color);
    padding: 25px 20px;
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer p {
    color: var(--text-gray);
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.8;
    font-family: 'CustomFont', 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
}

/* 返回顶部按钮 */
.bottomtotop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.bottomtotop:hover {
    background: var(--hover-color);
    transform: translateY(-5px);
}

.bottomtotop i {
    font-size: 20px;
}

/* 滚动条样式 */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .main-wrapper {
        padding: 0 15px;
    }

    .sidebar {
        width: 280px;
    }

    .main-content {
        padding: 15px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        flex: 0 0 auto;
        order: 1;
    }

    .logo h1 {
        font-size: 18px;
        margin: 0;
    }

    .logo h1 img {
        max-height: 40px;
        width: auto;
    }

    .nav {
        flex: 1;
        order: 2;
        width: auto;
        display: flex;
        justify-content: flex-end;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        display: none;
        gap: 0;
        background: var(--darker-bg);
        border-radius: 5px;
        padding: 10px 0;
        margin-top: 10px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1001;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 12px 20px;
        width: 100%;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 2;
        margin-left: auto;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .login-section {
        order: 3;
        flex: 0 0 auto;
        width: auto;
        justify-content: flex-end;
    }

    .btn-login {
        padding: 8px 15px;
        font-size: 14px;
    }

    .title-section {
        margin: 120px auto 0;
        padding: 0 15px;
    }

    .title-section h1.title {
        margin-bottom: 8px;
    }

    .title-section h1.title img {
        max-width: 100%;
        height: auto;
    }

    .title-section h2 {
        font-size: 24px;
    }

    .title-section p {
        font-size: 16px;
    }

    .main-wrapper {
        flex-direction: column;
        margin-top: 20px;
        padding: 15px;
    }

    .main-content {
        margin-left: 0;
        margin-top: 15px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        max-height: 400px;
        position: relative;
        border-right: none;
        border-bottom: 2px solid var(--accent-color);
        order: 1;
        top: 0;
        margin-bottom: 20px;
    }

    .main-content {
        order: 2;
        padding: 15px;
        min-height: auto;
    }

    .nav-item {
        padding: 12px 15px;
    }

    .nav-icon {
        width: 25px;
        height: 25px;
        font-size: 16px;
        margin-right: 12px;
    }

    .nav-title {
        font-size: 14px;
    }

    .nav-subtitle {
        font-size: 11px;
    }

    .welcome-title {
        font-size: 18px;
    }

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

    .video-container {
        margin-bottom: 20px;
    }

    .table-wrapper {
        margin: 15px -15px;
        padding: 0 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: calc(100% + 30px);
        max-width: 100vw;
    }

    .info-table {
        min-width: 500px;
        font-size: 12px;
        white-space: nowrap;
    }

    .info-table th,
    .info-table td {
        padding: 8px 10px;
        white-space: nowrap;
    }
}

/* 响应式设计 - 小屏手机 */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }

    .sidebar {
        max-height: 300px;
    }

    .nav-item {
        padding: 10px 12px;
    }

    .nav-title {
        font-size: 13px;
    }

    .nav-subtitle {
        font-size: 10px;
    }

    .title-section {
        margin-top: 120px;
    }

    .title-section h1.title img {
        max-width: 100%;
        height: auto;
    }

    .main-wrapper {
        margin-top: 120px;
    }

    .welcome-title {
        font-size: 16px;
    }

    .content-header h2 {
        font-size: 20px;
    }

    .info-section h3 {
        font-size: 18px;
    }

    .table-wrapper {
        margin: 15px -15px;
        padding: 0 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: calc(100% + 30px);
        max-width: 100vw;
    }

    .info-table {
        min-width: 400px;
        font-size: 11px;
        white-space: nowrap;
    }

    .info-table th,
    .info-table td {
        padding: 6px 8px;
        white-space: nowrap;
    }
}

/* 平滑滚动已移除，防止点击导航时跳动 */

/* 选中文本样式 */
::selection {
    background: var(--primary-color);
    color: var(--text-light);
}


/* BOSS系统说明样式 */
.boss-group {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(40, 40, 50, 0.6);
    border-radius: 8px;
    border-top: 3px solid rgba(255, 215, 0, 0.5);
}

.boss-group:not(:last-child) {
    border-bottom: 2px solid rgba(100, 100, 120, 0.5);
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.boss-row {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(80, 80, 100, 0.3);
}

.boss-row:last-child {
    border-bottom: none;
}

.boss-label {
    font-weight: bold;
    color: var(--text-light);
    min-width: 100px;
    flex-shrink: 0;
    margin-right: 15px;
}

.boss-value {
    color: var(--text-light);
    flex: 1;
    line-height: 1.6;
}

.boss-name {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 4px 12px;
    margin-right: 8px;
    margin-bottom: 4px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.5);
}
