/* ==========================================
   CrownIP 前端用户页面通用样式
   （首页、登录、注册、用户中心等）
   ========================================== */

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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
}

/* ==========================================
   通用容器
   ========================================== */

.page-container {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ==========================================
   顶部导航栏（前端）
   ========================================== */

.top-navbar {
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.nav-logo img {
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.nav-links a:hover {
    color: #fff;
}

/* ==========================================
   用户中心布局
   ========================================== */

.user-center-container {
    display: flex;
    height: 100vh;
}

/* 侧边栏 */
.user-sidebar {
    width: 240px;
    background: rgba(0, 21, 41, 0.9);
    color: #fff;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.user-sidebar .logo {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.user-sidebar .logo img {
    height: 32px;
}

/* 主内容区 */
.user-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 顶部导航栏 */
.user-header {
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    backdrop-filter: blur(10px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 内容区域 */
.user-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* ==========================================
   卡片样式
   ========================================== */

.card,
.info-card,
.data-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 24px;
}

/* Element UI 卡片覆盖 */
.el-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: none;
}

/* ==========================================
   表格样式
   ========================================== */

.el-table {
    background: transparent;
}

.el-table tr {
    background: transparent !important;
}

.el-table th {
    background: rgba(0, 0, 0, 0.02) !important;
}

.el-table__body-wrapper {
    background: transparent;
}

/* ==========================================
   表单样式
   ========================================== */

.form-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* ==========================================
   登录/注册页面
   ========================================== */

.login-wrap {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ms-login {
    position: absolute;
    left: 25%;
    top: 25%;
    width: 50%;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    height: 50%;
    align-content: center;
    justify-content: space-between;
    display: flex;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ms-title {
    width: 100%;
    line-height: 50px;
    text-align: center;
    font-size: 15px;
    color: #222c37;
    border-bottom: 1px solid #ddd;
    align-content: center;
}

.ms-content {
    padding: 30px 30px;
}

.login-btn {
    text-align: center;
}

.login-btn button {
    width: 100%;
    height: 36px;
    margin-bottom: 10px;
}

.text {
    font-size: 16px;
    text-align: left;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 30px;
    height: 15%;
    align-content: center;
}

.text p {
    font-size: 12px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.item {
    min-width: 200px;
}

.box-card {
    background-color: rgba(255, 255, 255, 0.1);
    height: 100%;
    align-content: center;
    border: none;
}

/* ==========================================
   Element UI 菜单样式（用户中心）
   ========================================== */

.user-sidebar .el-menu {
    border-right: none;
}

.user-sidebar .el-menu-item,
.user-sidebar .el-submenu__title {
    color: rgba(255, 255, 255, 0.65);
}

.user-sidebar .el-menu-item:hover,
.user-sidebar .el-submenu__title:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff;
}

.user-sidebar .el-menu-item.is-active {
    background-color: #667eea !important;
    color: #fff;
}

/* ==========================================
   响应式设计
   ========================================== */

@media (max-width: 768px) {
    .user-sidebar {
        width: 200px;
    }
    
    .ms-login {
        left: 5%;
        width: 90%;
        flex-direction: column;
        height: auto;
        top: 10%;
    }
    
    .left-panel {
        display: none;
    }
}

/* ==========================================
   滚动条美化
   ========================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   通用工具类
   ========================================== */

.text-center {
    text-align: center;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

