/* ==========================================
   基础样式模块 - Base Styles
   包含：全局重置、body、容器、头部等基础样式
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Microsoft YaHei', sans-serif;
    background: #0a0a0a;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 144, 0, 0.1) 0%, transparent 70%),
        radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.1) 0%, transparent 70%),
        radial-gradient(circle at 40% 80%, rgba(255, 144, 0, 0.1) 0%, transparent 70%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

/* 应用整体容器 - 侧边栏+主内容布局 */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    max-width: 100%;
}

/* ========== 侧边栏样式 ========== */
.sidebar {
    width: 280px;
    min-width: 280px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
}

/* 侧边栏头部 - Logo和标题 */
.sidebar-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
}

.logo-container {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #ff9000 0%, #000000 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(255, 144, 0, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
    padding: 8px;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* 侧边栏存储信息 */
.sidebar-storage {
    background: rgba(30, 30, 30, 0.6);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-storage .storage-label {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 8px;
}

.sidebar-storage .current-storage-info {
    margin-bottom: 12px;
}

.sidebar-storage .current-storage-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.95rem;
    padding: 8px 0;
}

.sidebar-storage .current-storage-name i {
    color: #ff9000;
}

.sidebar-storage .switch-storage-btn {
    width: 100%;
    padding: 10px 15px;
    background: linear-gradient(135deg, #ff9000 0%, #cc7400 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 144, 0, 0.2);
}

.sidebar-storage .switch-storage-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 144, 0, 0.3);
}

/* 侧边栏导航菜单 */
.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #ccc;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #ff9000 0%, #cc7400 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 144, 0, 0.1);
    color: #fff;
    transform: translateX(5px);
}

.nav-item:hover i {
    color: #ff9000;
}

.nav-item.active {
    background: rgba(255, 144, 0, 0.15);
    color: #fff;
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-item.active i {
    color: #ff9000;
}

/* ========== 主内容区域 ========== */
.main-container {
    flex: 1;
    padding: 30px 40px;
    overflow-y: auto;
    max-width: calc(100vw - 280px);
}

.content-section {
    margin-bottom: 30px;
    scroll-margin-top: 20px;
}

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

/* ========== 移动端顶部导航栏 ========== */
.mobile-header {
    display: none;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mobile-menu-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ff9000 0%, #cc7400 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 144, 0, 0.3);
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 144, 0, 0.4);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.mobile-app-title {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* 侧边栏遮罩层 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.overlay-active {
    opacity: 1;
}

/* 按钮通用样式 */
button {
    position: relative;
    overflow: hidden;
}

button:active {
    transform: translateY(-1px) scale(0.98);
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 144, 0, 0.3);
}

/* GOTOP按钮样式 */
.gotop-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff9000 0%, #000000 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(255, 144, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gotop-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.gotop-btn:hover::before {
    left: 100%;
}

.gotop-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gotop-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(255, 144, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.gotop-btn:active {
    transform: translateY(-1px) scale(0.98);
}

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

::-webkit-scrollbar-track {
    background: rgba(20, 20, 20, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff9000 0%, #000000 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e68100 0%, #333333 100%);
}

