
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* 用户管理表格样式 */
.user-table-container {
    position: relative;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 70vh;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    width: 100%;
}

.user-table-container .table {
    margin-bottom: 0;
    white-space: nowrap;
    width: auto;
    min-width: 100%;
}

.user-management-table {
    position: relative;
    margin-bottom: 0;
}

/* 固定列样式 */
.user-management-table th.fixed-column,
.user-management-table td.fixed-column {
    position: sticky;
    background-color: #fff;
    z-index: 20;
    border-right: 2px solid #dee2e6;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.user-management-table thead th {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10;
}

.user-management-table thead th.fixed-column {
    z-index: 30;
}

.user-management-table th.fixed-id,
.user-management-table td.fixed-id {
    left: 0 !important;
    min-width: 80px;
    width: 80px;
    max-width: 80px;
    background-color: #fff;
}

.user-management-table th.fixed-username,
.user-management-table td.fixed-username {
    left: 80px !important;
    min-width: 200px;
    width: 200px;
    max-width: 200px;
    background-color: #fff;
}

/* 表格行悬浮和选中效果 */
.user-table-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.user-table-row:hover {
    background-color: #e3f2fd !important;
}

.user-table-row:hover td {
    background-color: #e3f2fd !important;
}

.user-table-row:hover td.fixed-column {
    background-color: #e3f2fd !important;
}

.user-table-row.selected {
    background-color: #9c27b0 !important;
    color: white;
}

.user-table-row.selected td {
    background-color: #9c27b0 !important;
    color: white;
}

.user-table-row.selected td.fixed-column {
    background-color: #9c27b0 !important;
    color: white;
}

.user-table-row.selected .badge {
    color: #333 !important;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand img {
    height: 40px;
}

/* 轮播图样式 */
.carousel {
    margin-bottom: 0;
}

.carousel-bg {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.carousel-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.carousel-bg .container {
    position: relative;
    z-index: 2;
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.min-vh-50 {
    min-height: 50vh;
}

/* 用户反馈区域样式 */
.feedback-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

/* 整齐的3x3网格布局 */
.feedback-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feedback-item {
    position: relative;
    transition: all 0.3s ease;
    width: 100%; /* 确保宽度占满网格单元格 */
}

/* 移除所有垂直偏移，实现整齐布局 */
.feedback-item {
    transform: none;
}

/* 卡片高度由内容决定，宽度固定 */
.feedback-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: auto; /* 高度由内容决定 */
    width: 100%; /* 宽度固定，占满父容器 */
    position: relative;
    display: flex;
    flex-direction: column;
}

.feedback-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107, #dc3545);
    opacity: 0.8;
}

.feedback-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feedback-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%; /* 确保宽度占满 */
}

.feedback-card .card-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
    flex: 1; /* 让文本区域占据剩余空间 */
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%; /* 确保宽度占满 */
    max-width: 100%; /* 防止超出容器 */
    white-space: normal; /* 允许换行 */
}

.feedback-card .fab.fa-twitter {
    font-size: 1.1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.feedback-card:hover .fab.fa-twitter {
    opacity: 1;
}

.feedback-card .fas.fa-heart {
    font-size: 0.85rem;
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-shrink: 0; /* 防止用户信息区域被压缩 */
    width: 100%; /* 确保宽度占满 */
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    flex-shrink: 0; /* 防止头像被压缩 */
}

.feedback-card:hover .user-avatar {
    transform: scale(1.05);
}

.user-details {
    flex-grow: 1;
    margin-left: 10px;
    min-width: 0; /* 允许文本收缩 */
}

.user-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.user-twitter {
    color: #6c757d;
    font-size: 0.8rem;
}

/* 反馈内容样式 */
.feedback-content {
    position: relative;
    padding-left: 12px;
    border-left: 2px solid #e9ecef;
    margin: 12px 0;
    flex: 1; /* 让内容区域占据剩余空间 */
    display: flex;
    flex-direction: column;
}

.feedback-content::before {
    content: '"';
    position: absolute;
    left: -8px;
    top: -3px;
    font-size: 1.5rem;
    color: #007bff;
    font-family: serif;
}

/* 底部信息样式 */
.feedback-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0; /* 防止底部信息区域被压缩 */
}

.feedback-time {
    color: #6c757d;
    font-size: 0.75rem;
}

.likes-section {
    display: flex;
    align-items: center;
    gap: 4px;
}

.likes-count {
    color: #dc3545;
    font-weight: 600;
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .feedback-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .feedback-card .card-body {
        padding: 1.2rem;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .feedback-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* YouTube风格的布局 */
.youtube-layout {
    display: flex;
    height: 100vh;
    padding-top: 56px; /* 为固定导航栏留出空间 */
}

/* 固定侧边栏 */
.sidebar-fixed {
    position: fixed;
    left: 0;
    top: 56px; /* 导航栏高度 */
    width: 240px;
    height: calc(100vh - 56px);
    background-color: #ffffff;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-content {
    padding: 16px 0;
}

.sidebar-fixed .nav-link {
    color: #333;
    padding: 12px 24px;
    border-radius: 0;
    margin-bottom: 0;
    font-size: 0.9rem;
    text-align: left;
    white-space: nowrap;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.sidebar-fixed .nav-link:hover, .sidebar-fixed .nav-link.active {
    background-color: #f8f9fa;
    color: #007bff;
}

.sidebar-fixed .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 12px;
}

/* 主内容区域 */
.main-content-fixed {
    flex: 1;
    margin-left: 240px; /* 与侧边栏宽度相同 */
    background-color: #fafafa;
    min-height: calc(100vh - 56px);
    width: calc(100% - 240px); /* 确保主内容区域充分利用剩余宽度 */
}

.content-wrapper {
    padding: 24px;
    max-width: none; /* 移除最大宽度限制 */
    margin: 0;
    width: 100%;
}

.content-section {
    margin-bottom: 32px;
}

.content-section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    font-size: 1.5rem;
    font-weight: 600;
}

.content-card {
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    border: 1px solid #f0f0f0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .youtube-layout {
        flex-direction: column;
    }
    
    .sidebar-fixed {
        position: relative;
        top: 0;
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    
    .main-content-fixed {
        margin-left: 0;
    }
    
    .content-wrapper {
        padding: 16px;
    }
}

/* 滚动条样式 */
.sidebar-fixed::-webkit-scrollbar {
    width: 6px;
}

.sidebar-fixed::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar-fixed::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar-fixed::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 表单样式 */
.form-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 卡片样式 */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
.btn {
    border-radius: 5px;
    padding: 8px 20px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* 模态框样式 */
.modal-content {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* 表格样式 */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.table th {
    background-color: #f8f9fa;
    border: none;
    padding: 15px;
}

.table td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* 用户管理表格专用样式 */
#userList .table-responsive {
    width: 100%;
    overflow-x: auto;
}

#userList .table {
    min-width: 1200px; /* 确保表格有足够的最小宽度 */
    width: 100%;
    margin-bottom: 0;
}

#userList .table th,
#userList .table td {
    white-space: nowrap;
    min-width: 100px; /* 每列的最小宽度 */
}

/* 特定列的宽度设置 */
#userList .table th:nth-child(1), /* ID列 */
#userList .table td:nth-child(1) {
    width: 80px;
    min-width: 80px;
}

#userList .table th:nth-child(2), /* 用户信息列 */
#userList .table td:nth-child(2) {
    width: 200px;
    min-width: 200px;
}

#userList .table th:nth-child(3), /* 邮箱列 */
#userList .table td:nth-child(3) {
    width: 180px;
    min-width: 180px;
}

#userList .table th:nth-child(4), /* 电话列 */
#userList .table td:nth-child(4) {
    width: 120px;
    min-width: 120px;
}

#userList .table th:nth-child(5), /* 地址列 */
#userList .table td:nth-child(5) {
    width: 150px;
    min-width: 150px;
}

#userList .table th:nth-child(6), /* 会员等级列 */
#userList .table td:nth-child(6) {
    width: 130px;
    min-width: 130px;
}

#userList .table th:nth-child(7), /* 笃行等级列 */
#userList .table td:nth-child(7) {
    width: 140px;
    min-width: 140px;
}

#userList .table th:nth-child(8), /* 笃行值列 */
#userList .table td:nth-child(8) {
    width: 100px;
    min-width: 100px;
}

#userList .table th:nth-child(9), /* 积分列 */
#userList .table td:nth-child(9) {
    width: 100px;
    min-width: 100px;
}

#userList .table th:nth-child(10), /* 角色列 */
#userList .table td:nth-child(10) {
    width: 80px;
    min-width: 80px;
}

#userList .table th:nth-child(11), /* 状态列 */
#userList .table td:nth-child(11) {
    width: 100px;
    min-width: 100px;
}

#userList .table th:nth-child(12), /* 锁定列 */
#userList .table td:nth-child(12) {
    width: 100px;
    min-width: 100px;
}

#userList .table th:nth-child(13), /* 会员到期列 */
#userList .table td:nth-child(13) {
    width: 120px;
    min-width: 120px;
}

#userList .table th:nth-child(14), /* 注册时间列 */
#userList .table td:nth-child(14) {
    width: 130px;
    min-width: 130px;
}

#userList .table th:nth-child(15), /* 最后登录列 */
#userList .table td:nth-child(15) {
    width: 130px;
    min-width: 130px;
}

#userList .table th:nth-child(16), /* 最后修改列 */
#userList .table td:nth-child(16) {
    width: 130px;
    min-width: 130px;
}

#userList .table th:nth-child(17), /* 操作列 */
#userList .table td:nth-child(17) {
    width: 120px;
    min-width: 120px;
}

/* 确保内容卡片充分利用宽度 */
#userList {
    width: 100%;
    max-width: none;
}

#userList .content-card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px;
}

/* 响应式设计 - 在小屏幕上允许水平滚动 */
@media (max-width: 1400px) {
    #userList .table-responsive {
        overflow-x: auto;
    }
    
    #userList .table {
        min-width: 1200px;
    }
}

/* 进度条样式 */
.progress {
    height: 20px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #007bff;
    border-radius: 10px;
}

/* 徽章样式 */
.badge {
    font-size: 0.8rem;
    padding: 6px 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .carousel-bg {
        min-height: 50vh;
    }
    
    .carousel-bg .display-4 {
        font-size: 2rem;
    }
    
    .carousel-bg .lead {
        font-size: 1rem;
    }
    
    .carousel-bg .fa-8x {
        font-size: 4rem;
    }
    
    .carousel-bg .fa-2x {
        font-size: 1.5rem;
    }
}

/* 首页功能卡片样式 */
.features-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
}

.feature-card {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-card .card-body {
    padding: 2rem;
    text-align: center;
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    width: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.feature-card:hover .feature-icon i {
    color: white !important;
}

.feature-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-card .card-text {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 导航栏白底黑字简洁风格 */
.bg-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e9ecef;
}

.bg-gradient .navbar-brand {
    font-weight: 700;
    color: #2c3e50 !important;
    text-shadow: none;
    letter-spacing: 0.5px;
}

.bg-gradient .navbar-nav .nav-link {
    font-weight: 500;
    color: #2c3e50 !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin: 0 0.25rem;
}

.bg-gradient .navbar-nav .nav-link:hover {
    transform: translateY(-2px);
    color: #1a252f !important;
    background: rgba(44, 62, 80, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bg-gradient .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2c3e50;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.bg-gradient .navbar-nav .nav-link:hover::after {
    width: 80%;
}

.bg-gradient .navbar-toggler {
    border-color: #2c3e50;
    background: rgba(44, 62, 80, 0.1);
}

.bg-gradient .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(44, 62, 80, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 响应式功能卡片 */
@media (max-width: 768px) {
    .features-section {
        padding: 40px 0;
    }
    
    .feature-card .card-body {
        padding: 1.5rem;
    }
    
    .feature-icon {
        height: 60px;
        width: 60px;
    }
    
    .feature-card .card-title {
        font-size: 1.1rem;
    }
}

/* 首页轮播图优化样式 */
.hero-gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-gradient-2 {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-gradient-3 {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* 轮播图按钮样式 */
.hero-btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 轮播图图标样式 */
.hero-icon {
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.hero-feature-icon {
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 轮播图指示器优化 */
.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-indicators button.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* 手机端轮播图指示器优化 */
@media (max-width: 768px) {
    .carousel-indicators button {
        width: 16px;
        height: 16px;
        border: 3px solid rgba(255, 255, 255, 0.8);
        margin: 0 8px;
    }
    
    .carousel-indicators button.active {
        background-color: #ffffff;
        transform: scale(1.3);
    }
}

/* 轮播图控制按钮优化 */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* 手机端轮播图控制按钮优化 */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 60px;
        height: 60px;
        background: rgba(255, 255, 255, 0.4);
        border: 3px solid rgba(255, 255, 255, 0.6);
    }
    
    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background: rgba(255, 255, 255, 0.6);
        border-color: rgba(255, 255, 255, 0.9);
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }
}

/* 用户层级展示样式 */
.pricing-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

.pricing-section h2,
.pricing-section .lead {
    color: white;
}

.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    color: #333;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.pricing-card .card-body {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 480px;
}

.pricing-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.pricing-button {
    margin-top: auto;
    padding-top: 1rem;
}

.pricing-card .card-title {
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    color: #333;
    line-height: 1.3;
}

.pricing-card .price {
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.pricing-card .price .display-6 {
    font-weight: 700;
    font-size: 2.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.pricing-features li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    font-size: 0.99rem;
    color: #555;
    line-height: 1.4;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .fas {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    display: inline-block;
}

.pricing-features .fa-check {
    color: #28a745;
}

.pricing-features .fa-times {
    color: #dc3545;
}

/* 推荐标签样式 */
.pricing-card .badge.bg-warning {
    font-size: 0.8rem;
    font-weight: 600;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #212529;
}

/* VIP会员徽章样式 */
.badge.bg-warning.vip-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    color: #212529;
    background-color: #ffc107 !important;
}

/* 用户详情模态框样式 */
#userDetailsModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#userDetailsModal .modal-header {
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

#userDetailsModal .modal-footer {
    border-radius: 0 0 15px 15px;
    border-top: none;
}

#userDetailsModal .card {
    border-radius: 10px;
    transition: all 0.3s ease;
}

#userDetailsModal .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#userDetailsModal .card-header {
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid #e9ecef;
}

#userDetailsModal .position-relative {
    transition: all 0.3s ease;
}

#userDetailsModal .position-relative:hover {
    transform: scale(1.05);
}

#userDetailsModal .badge.rounded-circle {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#userDetailsModal .text-primary {
    color: #007bff !important;
}

#userDetailsModal .bg-light {
    background-color: #f8f9fa !important;
}

#userDetailsModal .shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

/* 响应式优化 */
@media (max-width: 768px) {
    #userDetailsModal .modal-dialog {
        margin: 0.5rem;
    }
    
    #userDetailsModal .col-md-4 {
        margin-bottom: 2rem;
    }
    
    #userDetailsModal .card-body {
        padding: 1rem;
    }
}

/* 按钮样式 */
.pricing-card .btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    font-size: 1rem;
    line-height: 1.4;
    margin-top: 0;
}

.pricing-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.pricing-card .btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

.pricing-card .btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.pricing-card .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.pricing-card .btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

.pricing-card .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.pricing-card .btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* 图标样式 */
.pricing-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    width: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
}

.pricing-card:hover .pricing-icon {
    transform: scale(1.1);
}

/* 软件下载和更新日志版块样式 */
.download-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.download-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.download-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.update-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.update-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.update-log {
    max-height: 300px;
    overflow-y: auto;
}

.update-item {
    padding: 15px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
    border-left: 4px solid #28a745;
    transition: all 0.3s ease;
}

.update-item:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.update-item .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.update-item ul li {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #666;
}

.update-item ul li i {
    font-size: 0.75rem;
}

/* 软件管理布局样式 */
.software-management-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.software-management-container .content-card {
    width: 100%;
    margin-bottom: 0;
}

/* 图片剪切样式 */
.img-container {
    max-height: 400px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.crop-preview {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.preview-container {
    text-align: center;
    margin-bottom: 15px;
}

.preview-wrapper {
    display: inline-block;
    position: relative;
    margin-bottom: 10px;
}

.preview-info {
    text-align: center;
    color: #6c757d;
}

/* 预览图片加载动画 */
.preview-wrapper img {
    transition: all 0.2s ease;
}

.preview-wrapper img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15) !important;
}

/* 剪切器容器样式优化 */
.img-container {
    max-height: 500px;
    min-height: 300px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 400px;
}

/* 确保图片在容器中正确显示 */
.img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* 宽图模式样式 */
.img-container img.wide-image {
    width: 100% !important;
    height: auto !important;
}

/* 高图模式样式 */
.img-container img.tall-image {
    height: 100% !important;
    width: auto !important;
}

/* 剪切器视图模式优化 */
.cropper-container {
    border-radius: 8px;
    overflow: hidden;
}

.cropper-view-box {
    border-radius: 50%;
    outline: 2px solid #007bff;
    outline-offset: -2px;
}

.cropper-face {
    border-radius: 50%;
    background-color: rgba(0, 123, 255, 0.1);
}

.cropper-container {
    border-radius: 8px;
}

.cropper-view-box {
    border-radius: 50%;
}

.cropper-face {
    border-radius: 50%;
}

.software-list-container {
    max-height: 400px;
    overflow-y: auto;
}

.software-list-container .table {
    margin-bottom: 0;
}

.software-list-container .table th {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 10;
}

.content-card.h-100 {
    display: flex;
    flex-direction: column;
}

.content-card.h-100 .software-list-container {
    flex: 1;
    min-height: 300px;
}

/* 软件版块配置显示样式 */
#sectionConfigDisplay .row {
    margin-bottom: 1rem;
}

#sectionConfigDisplay h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#sectionConfigDisplay p {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.config-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.config-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.config-item h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.config-value {
    margin-bottom: 0;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #007bff;
    font-size: 0.9rem;
    color: #495057;
}

/* 表格样式美化 */
.platform-name {
    font-weight: 600;
    color: #495057;
}

.download-url {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.file-size {
    font-weight: 500;
    color: #6c757d;
}

.release-date {
    font-weight: 500;
    color: #495057;
}

.update-title {
    font-weight: 500;
    color: #495057;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .software-list-container {
        max-height: 300px;
    }
    
    .content-card.h-100 .software-list-container {
        min-height: 250px;
    }
    
    .download-url {
        max-width: 120px;
    }
    
    .update-title {
        max-width: 100px;
    }
}

.version-info {
    padding: 10px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.text-warning{
    color: rgb(255 147 7) !important;

}



/* 响应式调整 */
@media (max-width: 768px) {
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .pricing-section .row {
        margin: 0 -10px;
    }
    
    .pricing-section .col-md-6 {
        padding: 0 10px;
    }
    
    .pricing-card .card-body {
        padding: 1.5rem;
    }
    
    .pricing-icon {
        height: 60px;
        width: 60px;
    }
    
    .pricing-card .card-title {
        font-size: 1.3rem;
    }
    
    .download-card .card-body,
    .update-card .card-body {
        padding: 1.5rem;
    }
    
    .update-log {
        max-height: 250px;
    }
}

/* ===== 模态框美化样式 ===== */

/* 模态框整体样式 */
.modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

.modal-header {
    padding: 2rem 2rem 1.5rem;
}

.modal-body {
    padding: 2rem;
}

/* 登录和注册图标样式 */
.login-icon,
.register-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

/* 表单浮动标签样式 */
.form-floating {
    position: relative;
}

.form-floating .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 1rem 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-floating .form-control:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.form-floating .form-control:focus + label,
.form-floating .form-control:not(:placeholder-shown) + label {
    color: #667eea;
    transform: scale(0.85) translateY(-1rem) translateX(0.15rem);
}

.form-floating label {
    padding: 1rem 1rem 0.5rem;
    color: #6c757d;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* 渐变按钮样式 */
.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient::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.5s;
}

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

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-gradient:active {
    transform: translateY(0);
}

/* 按钮加载状态 */
.btn-loading {
    display: none;
}

.btn-loading.show {
    display: inline-block;
}

.btn-text.hide {
    display: none;
}

/* 模态框动画 */
.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* 输入框焦点动画 */
.form-floating .form-control:focus {
    animation: inputFocus 0.3s ease;
}

@keyframes inputFocus {
    0% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.02) translateY(-2px);
    }
    100% {
        transform: scale(1) translateY(-2px);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .login-icon,
    .register-icon {
        width: 50px;
        height: 50px;
    }
    
    .modal-header h4 {
        font-size: 1.25rem;
    }
    
    .modal-header p {
        font-size: 0.9rem;
    }
}

/* 提示框样式 */
.alert {
    border-radius: 12px;
    border: none;
    font-weight: 500;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-left: 4px solid #c53030;
}

.alert-success {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    border-left: 4px solid #2f855a;
}

.alert-warning {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    color: #2c3e50;
    border-left: 4px solid #f39c12;
}

.alert .btn-close {
    filter: invert(1);
}

/* 输入框图标样式 */
.form-floating .form-control:focus + label i {
    color: #667eea;
}

/* 模态框阴影效果 */
.modal-content {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* 按钮悬停效果增强 */
.btn-gradient:hover {
    background: linear-gradient(135deg, #5a6fd8, #8b5cf6);
}

/* 表单验证样式 */
.form-control.is-invalid {
    border-color: #dc3545;
    background: #fff5f5;
}

.form-control.is-valid {
    border-color: #28a745;
    background: #f8fff9;
}

/* 加载动画 */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.btn-loading.show {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* ===== 登录模态框简洁美化样式 ===== */

/* 登录模态框特殊样式 */
.login-modal-content {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* 装饰性背景元素 - 简化版 */
.login-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.login-bg-decoration::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
    border-radius: 50%;
    animation: simpleFloat 8s ease-in-out infinite;
}

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

/* 简化浮动形状 */
.floating-shape {
    display: none; /* 隐藏所有浮动形状，保持简洁 */
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: -20px;
    right: -20px;
    animation-delay: 0s;
    background: radial-gradient(circle at 30% 30%, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.1));
}

.shape-2 {
    width: 100px;
    height: 100px;
    bottom: -30px;
    left: -30px;
    animation-delay: 2s;
    background: radial-gradient(circle at 70% 70%, rgba(240, 147, 251, 0.3), rgba(102, 126, 234, 0.1));
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 40px;
    left: 30px;
    animation-delay: 4s;
    background: radial-gradient(circle at 50% 50%, rgba(118, 75, 162, 0.25), rgba(240, 147, 251, 0.1));
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.6;
    }
    33% {
        transform: translateY(-15px) rotate(60deg) scale(1.1);
        opacity: 0.8;
    }
    66% {
        transform: translateY(-8px) rotate(120deg) scale(0.9);
        opacity: 0.7;
    }
}

/* 登录头部样式 - 简化版 */
.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    position: relative;
    z-index: 1;
    padding: 1.5rem 2rem;
}

.login-header::before {
    display: none; /* 移除纹理背景 */
}

/* 图标简化 */
.login-icon {
    position: relative;
    z-index: 2;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-glow {
    display: none; /* 移除发光效果 */
}

@keyframes iconGlow {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.4; 
    }
    33% {
        transform: scale(1.2) rotate(120deg);
        opacity: 0.7;
    }
    66% {
        transform: scale(1.1) rotate(240deg);
        opacity: 0.5;
    }
}

/* 欢迎文字简化 */
.welcome-animation {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-animation::before {
    display: none; /* 移除底部线条 */
}

.welcome-text .char {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
    margin: 0 2px;
    opacity: 1;
    transform: none;
    animation: none; /* 移除动画 */
}

.welcome-text .char:nth-child(1) { animation-delay: 0.1s; }
.welcome-text .char:nth-child(2) { animation-delay: 0.2s; }
.welcome-text .char:nth-child(3) { animation-delay: 0.3s; }
.welcome-text .char:nth-child(4) { animation-delay: 0.4s; }
.welcome-text .char:nth-child(5) { animation-delay: 0.5s; }
.welcome-text .char:nth-child(6) { animation-delay: 0.6s; }
.welcome-text .char:nth-child(7) { animation-delay: 0.7s; }
.welcome-text .char:nth-child(8) { animation-delay: 0.8s; }

@keyframes charAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(90deg) scale(0.5);
    }
    70% {
        transform: translateY(-5px) rotateX(0deg) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
}

/* 输入框简化样式 */
.input-group-animated {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem; /* 增加底部间距 */
}

.input-group-animated::before {
    display: none; /* 移除背景效果 */
}

.input-focus-line {
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #667eea;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.form-floating .form-control:focus ~ .input-focus-line {
    width: calc(100% - 8px);
}

/* 输入框简化样式 */
.login-body .form-floating .form-control {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.2rem 1rem 0.6rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-body .form-floating .form-control:focus {
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.login-body .form-floating .form-control:hover {
    border-color: #c0c0c0;
}

.login-body .form-floating label {
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-body .form-floating .form-control:focus + label,
.login-body .form-floating .form-control:not(:placeholder-shown) + label {
    color: #667eea;
    font-weight: 600;
    transform: scale(0.85) translateY(-1rem) translateX(0.15rem);
}

/* 登录按钮简化 */
.login-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-top: 2rem; /* 增加上边距 */
}

/* 登录提示样式 */
.login-tips {
    text-align: center;
    padding: 0.75rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.login-tips small {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.4;
}

.login-tips i {
    color: #667eea;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.btn-content {
    position: relative;
    z-index: 2;
}

.btn-shine {
    display: none; /* 移除闪光效果 */
}

.login-btn:hover .btn-shine {
    left: 120%;
}

/* 底部链接简化 */
.bottom-links {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.5rem 0;
}

.bottom-links::before {
    display: none; /* 移除装饰线 */
}

.register-link {
    color: #667eea !important;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    display: inline-block;
}

.register-link::before {
    display: none; /* 移除背景效果 */
}

.register-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.register-link:hover {
    color: #5a6fd8 !important;
}

.register-link:hover::before {
    display: none;
}

.register-link:hover::after {
    width: 80%;
}

/* 关闭按钮简化 */
.btn-close-animated {
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-animated::before {
    display: none; /* 移除发光效果 */
}

.btn-close-animated:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 模态框进入动画简化 */
.modal.fade .modal-dialog {
    transform: scale(0.9) translateY(-50px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* 响应式优化 */
/* 加载状态增强 */
.login-btn .btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
}

.login-btn .btn-loading.show {
    display: flex;
}

.login-btn .btn-loading .spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.login-btn.loading {
    pointer-events: none;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.6) 0%, 
        rgba(118, 75, 162, 0.6) 50%, 
        rgba(240, 147, 251, 0.6) 100%);
    transform: none;
}

/* 表单验证样式增强 */
.login-body .form-floating .form-control.is-invalid {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1), 0 4px 20px rgba(255, 107, 107, 0.15);
    background: rgba(255, 245, 245, 0.9);
}

.login-body .form-floating .form-control.is-valid {
    border-color: #51cf66;
    box-shadow: 0 0 0 4px rgba(81, 207, 102, 0.1), 0 4px 20px rgba(81, 207, 102, 0.15);
    background: rgba(248, 255, 249, 0.9);
}

/* 密码强度指示器 */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.password-strength.show {
    opacity: 1;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, #ff6b6b 0%, #feca57 50%, #48dbfb 100%);
}

/* ===== 注册模态框简化样式 ===== */

/* 注册模态框特殊样式 */
.register-modal-content {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* 注册头部样式 */
.register-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    position: relative;
    z-index: 1;
    padding: 1.5rem 2rem;
}

.register-header::before {
    display: none; /* 移除纹理背景 */
}

/* 注册图标简化 */
.register-icon {
    position: relative;
    z-index: 2;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-icon::before {
    display: none; /* 移除发光效果 */
}

/* 注册表单简化 */
.register-body .form-floating .form-control {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.2rem 1rem 0.6rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.register-body .form-floating .form-control:focus {
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.register-body .form-floating .form-control:hover {
    border-color: #c0c0c0;
}

.register-body .form-floating label {
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
}

.register-body .form-floating .form-control:focus + label,
.register-body .form-floating .form-control:not(:placeholder-shown) + label {
    color: #667eea;
    font-weight: 600;
    transform: scale(0.85) translateY(-1rem) translateX(0.15rem);
}

/* 注册表单验证样式 */
.register-body .form-floating .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    background: #fff5f5;
}

.register-body .form-floating .form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
    background: #f8fff9;
}

.register-body .invalid-feedback {
    display: block;
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
    border-left: 3px solid #dc3545;
}

.register-body .valid-feedback {
    display: block;
    font-size: 0.8rem;
    color: #28a745;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
    border-left: 3px solid #28a745;
}

/* 注册表单焦点线条 */
.register-body .input-focus-line {
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #667eea;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    display: none; /* 添加这行来隐藏蓝色线条 */
}

.register-body .form-floating .form-control:focus ~ .input-focus-line {
    width: calc(100% - 8px);
    display: none; /* 添加这行来隐藏蓝色线条 */
}

/* 注册按钮简化 */
#registerSubmitBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 2rem; /* 增加上边距 */
}

#registerSubmitBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

#registerSubmitBtn:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

/* 响应式优化 - 简洁版 */
@media (max-width: 768px) {
    .welcome-text .char {
        font-size: 1.1rem;
        margin: 0 1px;
    }
    
    .login-btn, #registerSubmitBtn {
        padding: 0.875rem;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
    
    .login-header, .register-header {
        padding: 1.25rem 1.5rem;
    }
    
    .login-body, .register-body {
        padding: 1.25rem;
    }
    
    .login-icon, .register-icon {
        width: 45px;
        height: 45px;
    }
    
    .input-group-animated {
        margin-bottom: 1.25rem;
    }
    
    .modal-header h4 {
        font-size: 1.1rem;
    }
    
    .modal-header p {
        font-size: 0.85rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* ===== 固定列核心代码 ===== */

/* 1. 表格容器设置 - 支持双向滚动 */
.user-table-container {
    position: relative;
    overflow: auto;                /* 关键：支持横向和纵向滚动 */
    max-height: 70vh;             /* 限制高度触发垂直滚动 */
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

/* 2. 表格设置 - 确保有足够宽度触发横向滚动 */
.user-table-container .table {
    margin-bottom: 0;
    white-space: nowrap;          /* 防止文本换行 */
    min-width: 1600px;           /* 关键：确保表格宽度超过容器，触发横向滚动 */
}

/* 3. 表头固定 - 垂直滚动时固定在顶部 */
.user-management-table thead th {
    position: sticky;             /* 关键：粘性定位 */
    top: 0;                      /* 关键：固定在顶部 */
    background-color: #f8f9fa;   /* 必须：给固定元素背景色 */
    z-index: 10;                 /* 层级：普通表头 */
}

/* 4. 固定列基础样式 */
.user-management-table th.fixed-column,
.user-management-table td.fixed-column {
    position: sticky;             /* 关键：粘性定位 */
    background-color: #ffffff;    /* 必须：给固定元素背景色 */
    z-index: 20;                 /* 层级：固定列 */
    border-right: 2px solid #dee2e6;  /* 视觉分隔线 */
    box-shadow: 2px 0 5px rgba(0,0,0,0.1); /* 阴影效果 */
}

/* 5. 固定列表头的更高层级 */
.user-management-table thead th.fixed-column {
    z-index: 30;                 /* 层级：固定列的表头最高 */
    background-color: #f8f9fa;   /* 保持表头背景色 */
}

/* 6. ID列 - 固定在最左侧 */
.user-management-table th.fixed-id,
.user-management-table td.fixed-id {
    left: 0 !important;          /* 关键：固定在最左侧 */
    min-width: 80px;
    width: 80px;
    max-width: 80px;
    background-color: #fff;       /* 必须：背景色 */
}

/* 7. 用户信息列 - 固定在ID列右侧 */
.user-management-table th.fixed-username,
.user-management-table td.fixed-username {
    left: 80px !important;       /* 关键：精确位置 = ID列宽度 */
    min-width: 200px;
    width: 200px;
    max-width: 200px;
    background-color: #fff;       /* 必须：背景色 */
}

/* 8. 悬停状态 - 确保固定列背景色一致 */
.user-table-row:hover td.fixed-column {
    background-color: #e3f2fd !important;  /* 关键：悬停状态保持一致 */
}

.user-table-row.selected td.fixed-column {
    background-color: #9c27b0 !important;  /* 关键：选中状态保持一致 */
    color: white;
}

/* ===== HTML结构示例 ===== */
/*
<div class="user-table-container">
    <table class="table table-hover user-management-table">
        <thead>
            <tr>
                <th class="fixed-column fixed-id">ID</th>
                <th class="fixed-column fixed-username">用户信息</th>
                <th>邮箱</th>
                <th>电话</th>
                <!-- 更多列... -->
            </tr>
        </thead>
        <tbody>
            <tr class="user-table-row">
                <td class="fixed-column fixed-id">1</td>
                <td class="fixed-column fixed-username">用户名</td>
                <td>email@example.com</td>
                <td>13800138001</td>
                <!-- 更多列... -->
            </tr>
        </tbody>
    </table>
</div>
*/

/* ===== 工作原理 ===== */
/*
1. position: sticky - 使元素在滚动时"粘住"指定位置
2. left: 0 和 left: 80px - 指定固定的横向位置
3. 不设置 top 值（除了表头）- 让固定列可以垂直滚动
4. z-index 层级管理 - 确保显示顺序正确
5. background-color - 必须设置，否则会透明
6. 容器的 overflow: auto - 允许双向滚动
*/

