/* ========================================
   BoboIP Dashboard Redesign - 浅色主题
   现代、精致、专业的UI设计
   ======================================== */

/* 侧边栏 - 浅色玻璃质感 */
.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.08);
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
    border-right: 1px solid rgba(102, 126, 234, 0.1);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 0% 0%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(167, 139, 250, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.sidebar::after {
    display: none;
}

/* Logo区域 */
.logo {
    padding: 36px 32px 32px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.08);
    position: relative;
    z-index: 1;
}

.logo .logo-text {
    font-size: 0;
}

.logo .logo-text::before {
    content: 'BoboIP';
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo:hover {
    transform: none;
}

.logo:hover .logo-text::before {
    color: inherit;
}

/* 菜单区域 */
.menu {
    flex: 1;
    padding: 24px 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.menu-section {
    margin-bottom: 8px;
    padding: 0 20px;
}

.menu-label {
    padding: 16px 16px 12px;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border-radius: 16px;
    margin: 4px 0;
    font-size: 15px;
    font-weight: 500;
}

.menu-item::before {
    display: none;
}

.menu-item:hover {
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(167, 139, 250, 0.05) 100%);
    transform: translateX(4px);
}

.menu-item:hover .menu-icon {
    transform: scale(1.15);
}

.menu-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
    transition: transform 0.3s ease;
}

.menu-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(167, 139, 250, 0.08) 100%);
    color: #667eea;
    border-left: none;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
}

.menu-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 4px 4px 0;
}

/* 退出登录按钮 */
.menu-item.logout-btn {
    color: #f87171 !important;
    margin-top: auto;
}

.menu-item.logout-btn:hover {
    background: rgba(248, 113, 113, 0.08) !important;
    color: #ef4444 !important;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    padding: 48px 56px;
    overflow-y: auto;
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle at 100% 0%, rgba(102, 126, 234, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

/* 套餐页面 */
#page-subscription {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

#page-subscription h2 {
    display: none;
}

#page-subscription .subtitle {
    display: none;
}

/* 套餐卡片容器 */
.plans-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 880px;
    margin: 0 auto;
}

/* 套餐卡片 */
.plan-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 40px 36px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: visible;
    box-shadow: 
        0 4px 24px rgba(102, 126, 234, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04);
}

.plan-card::before {
    display: none;
}

.plan-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 24px 48px rgba(102, 126, 234, 0.12),
        0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: rgba(102, 126, 234, 0.2);
}

/* 推荐卡片 */
.plan-card.featured {
    border: 2px solid rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.95) 100%);
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.plan-card.featured:hover {
    box-shadow: 
        0 28px 56px rgba(102, 126, 234, 0.18),
        0 12px 24px rgba(0, 0, 0, 0.06);
}

/* 徽章 */
.plan-badge {
    position: absolute;
    top: -14px;
    right: 28px;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.plan-badge.recommended {
    background: linear-gradient(135deg, #667eea 0%, #a78bfa 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

/* 卡片标题 */
.plan-card h3 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* 价格 */
.plan-price {
    font-size: 48px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 4px;
    letter-spacing: -1px;
}

.plan-price span {
    font-size: 16px;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0;
}

/* 标签 */
.plan-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: none;
}

.plan-tag.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
}

/* 描述 */
.plan-desc {
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.7;
    font-size: 15px;
}

/* 特性列表 */
.plan-features {
    list-style: none;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 24px 28px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.plan-features li {
    padding: 12px 0;
    color: #475569;
    position: relative;
    padding-left: 36px;
    font-size: 15px;
    font-weight: 500;
}

.plan-features li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #667eea 0%, #a78bfa 100%);
    border-radius: 50%;
}

.plan-features li:after {
    content: '✓';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 11px;
    font-weight: 700;
}

/* 购买按钮 */
.plan-button {
    width: 100%;
    padding: 18px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
}

.plan-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s ease;
}

.plan-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.35);
}

.plan-button:hover::before {
    left: 100%;
}

.plan-button.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 卡片光效 */
.card-shine {
    display: none;
}

/* 响应式调整 */
@media (max-width: 1100px) {
    .main-content {
        padding: 40px 32px;
    }
}

@media (max-width: 900px) {
    .plans-container {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
    
    .sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        padding: 24px 20px;
    }
    
    .plan-card {
        padding: 32px 28px;
        border-radius: 24px;
    }
    
    .plan-price {
        font-size: 40px;
    }
    
    .plans-container {
        gap: 24px;
    }
}
