/*
#	Project: PHPDisk - 网盘系统
#	This is NOT a freeware, use is subject to license terms.
#	Website: http://www.phpdisk.com
#	Author: PHPDisk Dev Team
#	Copyright (C) 2015-2025 PHPDisk. All Rights Reserved.
*/

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--light-bg);
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 0.4rem 0;
    min-height: auto;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary-color) !important;
    position: relative;
    display: inline-block;
    padding: 0;
}

.navbar-brand span {
    color: var(--accent-color);
}

/* ImgToC LOGO 容器样式 */
.logo-container {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.5rem;
}

/* LOGO图标装饰 */
.logo-icons {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.3rem;
    pointer-events: none;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    animation: logoIconFloat 3s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    line-height: 1;
    vertical-align: middle;
    flex-shrink: 0;
    position: relative;
    text-align: center;
}

/* Boxicons 图标居中 - 确保伪元素在容器中心 */
.logo-icon.bx {
    font-size: 1rem;
}

.logo-icon.bx::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.logo-icon:hover {
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 图标样式 */
/* .icon-image {
    color: #0066ff;
    animation-delay: 0s;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 102, 255, 0.2) 100%);
}

.icon-upload {
    color: #ffd700;
    animation-delay: 0.5s;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.2) 100%);
}

.icon-audio {
    color: #00cc66;
    animation-delay: 1s;
    background: linear-gradient(135deg, rgba(0, 204, 102, 0.1) 0%, rgba(0, 204, 102, 0.2) 100%);
}

.icon-video {
    color: #ff6b6b;
    animation-delay: 1.5s;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 107, 107, 0.2) 100%);
} */

/* 移动端调整 */
@media (max-width: 768px) {
    .logo-icons {
        top: -5px;
        gap: 0.25rem;
    }
    
    .logo-icon {
        width: 1.6rem;
        height: 1.6rem;
        min-width: 1.6rem;
        min-height: 1.6rem;
        font-size: 0.8rem;
    }
    
    .logo-icon.bx {
        font-size: 0.9rem;
    }
    
    .logo-container {
        padding: 0.25rem 0.5rem;
        padding-top: 0.5rem;
    }
}

/* 图标浮动动画 */
@keyframes logoIconFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.1);
    }
}

/* ImgToC LOGO 文字样式 */
.logo-text {
    font-weight: 700;
    font-size: 0;
    letter-spacing: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.logo-img,
.logo-t,
.logo-oc {
    display: inline-block;
    margin: 0;
    padding: 0;
    letter-spacing: 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.logo-img {
    color: #0066ff !important;
    text-shadow: 0 2px 4px rgba(0, 102, 255, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logo-t {
    color: #ff0000 !important;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logo-oc {
    color: #00cc66 !important;
    text-shadow: 0 2px 4px rgba(0, 204, 102, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* LOGO副标题样式 */
.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 500;
    color: #3b82f6;
    letter-spacing: 0.5px;
    margin-top: 2px;
    display: block;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0.85;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.navbar-brand:hover .logo-subtitle {
    opacity: 1;
    color: #2563eb;
}

/* 移动端副标题调整 */
@media (max-width: 768px) {
    .logo-subtitle {
        font-size: 0.55rem;
        margin-top: 1px;
    }
}

/* LOGO悬停效果 */
.navbar-brand:hover .logo-icon {
    opacity: 1;
    animation-duration: 1.5s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navbar-brand:hover .logo-text {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-icons {
    transform: translateX(-50%) translateY(-2px);
    transition: transform 0.3s ease;
}

.navbar-brand:hover .icon-image {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2) 0%, rgba(0, 102, 255, 0.3) 100%);
}

.navbar-brand:hover .icon-upload {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.3) 100%);
}

.navbar-brand:hover .icon-audio {
    background: linear-gradient(135deg, rgba(0, 204, 102, 0.2) 0%, rgba(0, 204, 102, 0.3) 100%);
}

.navbar-brand:hover .icon-video {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 107, 107, 0.3) 100%);
}

/* 版本徽标样式 */
.version-badge {
    position: absolute;
    top: 0px;
    right: -20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    line-height: 1.2;
    box-shadow: 0 2px 8px var(--shadow-color);
    z-index: 10;
    animation: versionPulse 2s ease-in-out infinite;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* 版本徽标动态效果 - 脉冲动画 */
@keyframes versionPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px var(--shadow-color);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px var(--shadow-color);
    }
}

/* 版本徽标悬停效果 */
.navbar-brand:hover .version-badge {
    animation: versionPulseHover 0.6s ease-in-out infinite;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

@keyframes versionPulseHover {
    0%, 100% {
        transform: scale(1.1) rotate(0deg);
    }
    25% {
        transform: scale(1.15) rotate(-3deg);
    }
    75% {
        transform: scale(1.15) rotate(3deg);
    }
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color) !important;
    padding: 0.35rem 1rem !important;
    transition: color 0.2s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #ffffff !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff !important;
}

/* 冒泡背景效果 */
.bubble-bg {
    position: relative;
    overflow: hidden;
}
.bubble-bg .bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.bubble-bg .bubble {
    position: absolute;
    bottom: -50px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: bubble-rise 12s infinite ease-out;
}
.bubble-bg > *:not(.bubbles) {
    position: relative;
    z-index: 1;
}
@keyframes bubble-rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-500px) scale(0.6);
        opacity: 0;
    }
}

/* 链接样式 */
a {
    text-decoration: none;
}
a:hover {
    text-decoration: none;
}

/* 下拉菜单鼠标悬停效果 */
.navbar-nav .nav-item.dropdown .dropdown-menu {
    margin-top: 0;
}
/* 移除下拉菜单的边框 */
.navbar-nav .nav-item.dropdown .dropdown-toggle:focus,
.navbar-nav .nav-item.dropdown .dropdown-toggle:hover,
.navbar-nav .nav-item.dropdown .dropdown-toggle:active,
.navbar-nav .nav-item.dropdown .dropdown-toggle.show {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* 价格方案下拉菜单样式 */
#priceDropdownMenu {
    left: 0 !important;
    right: auto !important;
}
#priceDropdownMenu .dropdown-item {
    border-radius: 4px;
    transition: background-color 0.2s;
}
#priceDropdownMenu .dropdown-item:hover {
    background-color: rgba(var(--primary-rgb), 0.08) !important;
    color: var(--primary-color) !important;
}
#priceDropdownMenu .dropdown-item.active {
    background-color: rgba(var(--primary-rgb), 0.1) !important;
    color: var(--primary-color) !important;
    border-left: 3px solid var(--primary-color);
    font-weight: 600;
}
#priceDropdownMenu .dropdown-item.active:hover {
    background-color: rgba(var(--primary-rgb), 0.15) !important;
    color: var(--primary-dark) !important;
}

/* 开发生态下拉菜单字体样式 */
#ecosystemDropdownMenu {
    padding: 0.75rem 0.5rem !important;
}
#ecosystemDropdownMenu li {
    margin-bottom: 0.25rem;
}
#ecosystemDropdownMenu li:last-child {
    margin-bottom: 0;
}
#ecosystemDropdownMenu .dropdown-item {
    font-size: 0.875rem;
    padding: 0.625rem 1rem !important;
    margin: 0.125rem 0;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}
#ecosystemDropdownMenu .dropdown-item:hover {
    background-color: rgba(var(--primary-rgb), 0.08) !important;
    color: var(--primary-color) !important;
}
#ecosystemDropdownMenu .dropdown-item i {
    font-size: 0.875rem;
    margin-right: 0.5rem;
}
#ecosystemDropdownMenu .dropdown-item.active {
    background-color: rgba(var(--primary-rgb), 0.1) !important;
    color: var(--primary-color) !important;
    font-weight: 600;
}
#ecosystemDropdownMenu .dropdown-item.active,
#ecosystemDropdownMenu .dropdown-item.active:link,
#ecosystemDropdownMenu .dropdown-item.active:visited,
#ecosystemDropdownMenu .dropdown-item.active:focus {
    color: var(--primary-color) !important;
    background-color: rgba(37, 99, 235, 0.1) !important;
}
#ecosystemDropdownMenu .dropdown-item.active i,
#ecosystemDropdownMenu .dropdown-item.active i.text-primary,
#ecosystemDropdownMenu .dropdown-item.active i.text-success,
#ecosystemDropdownMenu .dropdown-item.active i.text-info,
#ecosystemDropdownMenu .dropdown-item.active i.text-warning,
#ecosystemDropdownMenu .dropdown-item.active i.text-secondary {
    color: var(--primary-color) !important;
}
#ecosystemDropdownMenu .dropdown-item.active:hover {
    background-color: rgba(var(--primary-rgb), 0.15) !important;
    color: var(--primary-dark) !important;
}
#ecosystemDropdownMenu .dropdown-item.active:hover,
#ecosystemDropdownMenu .dropdown-item.active:hover:link,
#ecosystemDropdownMenu .dropdown-item.active:hover:visited,
#ecosystemDropdownMenu .dropdown-item.active:hover:focus {
    color: var(--primary-dark) !important;
    background-color: rgba(37, 99, 235, 0.15) !important;
}
#ecosystemDropdownMenu .dropdown-item.active:hover i,
#ecosystemDropdownMenu .dropdown-item.active:hover i.text-primary,
#ecosystemDropdownMenu .dropdown-item.active:hover i.text-success,
#ecosystemDropdownMenu .dropdown-item.active:hover i.text-info,
#ecosystemDropdownMenu .dropdown-item.active:hover i.text-warning,
#ecosystemDropdownMenu .dropdown-item.active:hover i.text-secondary {
    color: var(--primary-dark) !important;
}

/* 用户下拉菜单字体样式 */
.navbar .dropdown-menu.dropdown-menu-end {
    font-size: 0.875rem;
}
.navbar .dropdown-menu.dropdown-menu-end .dropdown-item {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s, color 0.2s;
}
.navbar .dropdown-menu.dropdown-menu-end .dropdown-item:hover {
    background-color: rgba(37, 99, 235, 0.1) !important;
    color: var(--primary-color) !important;
}
.navbar .dropdown-menu.dropdown-menu-end .dropdown-item:hover i {
    color: var(--primary-color) !important;
}
.navbar .dropdown-menu.dropdown-menu-end .dropdown-item i {
    font-size: 0.875rem;
    margin-right: 0.5rem;
    color: var(--secondary-color);
    transition: color 0.2s;
}

/* 用户信息头部样式（VIP和余额） */
.user-info-header {
    padding: 0.75rem 1rem !important;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    margin-bottom: 0;
}

.user-vip-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.vip-badge-link {
    display: inline-block;
    text-decoration: none !important;
}

.vip-badge-link:hover {
    text-decoration: none !important;
}

.vip-badge-link:focus {
    outline: none;
}

.user-vip-info i {
    color: #ffd700;
    margin-right: 0.5rem;
    font-size: 1.1rem;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6), 0 2px 4px rgba(255, 215, 0, 0.4);
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
}

.vip-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.vip-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.6), 0 0 16px rgba(255, 215, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.vip-badge.vip-active {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 50%, #ff8c00 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5), 0 0 12px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.vip-badge.vip-inactive {
    background: #e5e7eb;
    color: #6b7280;
}

.user-balance-info {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.user-balance-info i {
    color: #2563eb;
    margin-right: 0.5rem;
    font-size: 1.1rem;
    text-shadow: 0 0 8px rgba(37, 99, 235, 0.6), 0 2px 4px rgba(37, 99, 235, 0.4);
    filter: drop-shadow(0 0 4px rgba(37, 99, 235, 0.5));
}

.balance-amount {
    font-weight: 700;
    color: #1d4ed8;
    font-size: 1.1rem;
    margin-right: 0.25rem;
    text-shadow: 0 1px 2px rgba(29, 78, 216, 0.3);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.balance-unit {
    color: #64748b;
    font-size: 0.75rem;
}

/* 移除用户下拉菜单按钮的外框 */
.d-flex.align-items-center .dropdown .dropdown-toggle,
.d-flex.align-items-center .dropdown .dropdown-toggle:hover,
.d-flex.align-items-center .dropdown .dropdown-toggle:focus,
.d-flex.align-items-center .dropdown .dropdown-toggle:active,
.d-flex.align-items-center .dropdown .dropdown-toggle.show {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}
/* 移动端响应式优化 */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .logo-container {
        font-size: 0.9rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }
    
    .logo-icons {
        display: none; /* 移动端隐藏功能图标 */
    }
    
    .navbar-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        font-size: 0.9375rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler-icon {
        width: 1.5em;
        height: 1.5em;
    }
    
    .d-flex.align-items-center {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .d-flex.align-items-center .btn {
        width: 100%;
        margin: 0;
    }

    .d-flex.align-items-center .btn-outline-primary {
        margin-top: 0.5rem;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown-toggle {
        width: 100%;
        text-align: left;
        padding: 0.5rem 0;
    }
    
    .dropdown-menu {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
}