* {
    color: #FFFFFF;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

html,
body {
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
    scroll-behavior: smooth;
}

.main-content {
    margin-left: 80px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    position: relative;
    overflow-y: auto;
    height: 100vh;
}

.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 亚克力效果样式 */
.acrylic-card {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px) saturate(125%);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 16px;
    position: relative;
    overflow: hidden;
}

/* 侧边栏样式 */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80px;
    padding: 20px 0;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.sidebar-nav:hover {
    width: 280px;
}

.nav-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease 0.2s;
}

.sidebar-nav:hover .nav-header {
    opacity: 1;
    transform: translateX(0);
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    line-height: 1.2;
}

.nav-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0 0;
    white-space: nowrap;
    line-height: 1.3;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-category {
    margin-top: 15px;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
}

.menu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.sidebar-nav:hover .submenu {
    max-height: 500px;
    opacity: 1;
}

.submenu-item {
    border-bottom: none;
}

.submenu-link {
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 50px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    cursor: pointer;
}

.submenu-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transform: translateX(5px);
}

.sidebar-nav:hover .submenu-item:nth-child(1) .submenu-link {
    animation: slideInOutBack 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.sidebar-nav:hover .submenu-item:nth-child(2) .submenu-link {
    animation: slideInOutBack 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

.sidebar-nav:hover .submenu-item:nth-child(3) .submenu-link {
    animation: slideInOutBack 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

@keyframes slideInOutBack {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    60% {
        transform: translateX(5px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-nav i {
    font-size: 1.2rem;
    min-width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.menu-text {
    opacity: 0;
    margin-left: 15px;
    transition: opacity 0.3s ease 0.1s;
    font-size: 0.95rem;
}

.sidebar-nav:hover .menu-text {
    opacity: 1;
}

.sidebar-nav:hover .menu-link:hover i {
    transform: scale(1.1);
}

.sidebar-nav:hover~.main-content {
    margin-left: 280px;
    transform: translateX(10px);
}

/* 内容区域样式 - 修改为支持动画 */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: transparent;
    border-radius: 12px;
    box-shadow: none;
    transition: transform 0.4s ease;
    display: none;
    color: #FFFFFF;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateX(100%);
}

.sidebar-nav:hover~.main-content .content-section {
    transform: translateX(calc(100% + 20px));
}

/* 滑入动画 - 从右侧进入 */
@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 滑出动画 - 向左侧退出 */
@keyframes slideOutToLeft {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-100%);
    }
}

/* 应用滑入动画 */
.content-section.slide-in {
    display: block;
    animation: slideInFromRight 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

/* 应用滑出动画 */
.content-section.slide-out {
    animation: slideOutToLeft 0.6s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

/* 元素依次入场动画 */
.animate-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 为不同元素设置不同的延迟时间 */
.animate-item:nth-child(1) {
    animation-delay: 0.1s;
}

.animate-item:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-item:nth-child(3) {
    animation-delay: 0.3s;
}

.animate-item:nth-child(4) {
    animation-delay: 0.4s;
}

.animate-item:nth-child(5) {
    animation-delay: 0.5s;
}

.section-title {
    background-color: transparent !important;
    padding: 20px 0;
    margin: 30px 0 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    scroll-margin-top: 20px;
}

.table-container {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px) saturate(125%);
}

.resource-table {
    width: 100%;
    border-collapse: collapse;
}

.resource-table th,
.resource-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.resource-table th {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.resource-table a {
    color: #4fc3f7;
    text-decoration: none;
    transition: color 0.3s;
}

.resource-table a:hover {
    color: #29b6f6;
    text-decoration: underline;
}

.intro-card {
    margin-bottom: 30px;
    text-align: center;
}

.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px) saturate(125%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 2px solid transparent;
    animation: pulse-border 2s infinite;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-overlay.hiding .modal-content {
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53),
        opacity 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0000, #ff5e5e, #ff0000);
    border-radius: 14px;
    z-index: -1;
    filter: blur(10px);
    opacity: 0.7;
}

.modal-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
}

.modal-text {
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-cancel {
    background: #9e9e9e;
    color: #fff;
}

.btn-cancel:hover {
    background: #bdbdbd;
    transform: translateY(-2px);
}

.btn-confirm {
    background: #4fc3f7;
    color: #fff;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #f44336;
    transition: width 3s cubic-bezier(0.755, 0.05, 0.855, 0.06);
    z-index: 0;
}

.btn-confirm.holding .progress-bar {
    width: 100%;
}

.btn-confirm.holding .progress-bar.canceled {
    width: 0%;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.submenu-link i {
    display: none;
}

/* 修复其他内容区域的动画问题 */
#other-content .animate-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

/* 确保其他内容区域也有动画延迟 */
#other-content .animate-item:nth-child(1) {
    animation-delay: 0.1s;
}

#other-content .animate-item:nth-child(2) {
    animation-delay: 0.2s;
}

#other-content .animate-item:nth-child(3) {
    animation-delay: 0.3s;
}

#other-content .animate-item:nth-child(4) {
    animation-delay: 0.4s;
}

#other-content .animate-item:nth-child(5) {
    animation-delay: 0.5s;
}

@media (max-width: 768px) {
    .sidebar-nav {
        width: 60px;
    }

    .sidebar-nav:hover {
        width: 250px;
    }

    .main-content {
        margin-left: 60px;
        padding: 20px;
    }

    .sidebar-nav:hover~.main-content {
        margin-left: 250px;
    }

    .submenu-link {
        padding: 12px 20px 12px 40px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .modal-buttons {
        flex-direction: column;
    }
}