/**
 * 金牛奇迹 - 统一主题样式
 * 深蓝色背景主题
 */

/* ==================== 主题变量 ==================== */
:root {
    --primary-color: #C2B59B;
    --primary-hover: #a8997d;
    --bg-dark: #0a1628;
    --bg-darker: #070f1a;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --border-color: rgba(194, 181, 155, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gradient-bg: linear-gradient(135deg, #0a1628 0%, #0d1d33 50%, #0f2440 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.98) 100%);
}

/* ==================== 基础样式 ==================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--gradient-bg);
    min-height: 100vh;
    color: #333;
}

/* ==================== 认证页面样式 (登录/注册/找回密码) ==================== */
.auth-page {
    background: var(--gradient-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.auth-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top, rgba(194, 181, 155, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(15, 52, 96, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.auth-box {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 480px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.auth-logo h1 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.auth-logo p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: var(--primary-hover);
}

.auth-page-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.auth-page-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.auth-page-footer a:hover {
    color: var(--primary-color);
}

/* ==================== 表单样式 ==================== */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(194, 181, 155, 0.15);
    background: #fff;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.form-label i {
    color: var(--primary-color);
    margin-right: 6px;
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(194, 181, 155, 0.15);
}

/* ==================== 按钮样式 ==================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(194, 181, 155, 0.4);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 12px;
    padding: 10px 22px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    border-radius: 12px;
    padding: 10px 22px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ==================== 卡片样式 ==================== */
.card {
    background: var(--bg-card);
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(194, 181, 155, 0.2);
    padding: 20px 24px;
    font-weight: 600;
}

.card-header h5,
.card-header h6 {
    color: #333;
    font-weight: 600;
    margin: 0;
}

.card-header h5 i,
.card-header h6 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.card-body {
    padding: 24px;
}

/* ==================== 导航栏样式 ==================== */
.main-header {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(194, 181, 155, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .navbar {
    padding: 15px 0;
}

.main-header .navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 1.5rem;
}

.main-header .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 10px 18px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 3px;
}

.main-header .nav-link:hover {
    color: var(--text-light) !important;
    background: rgba(194, 181, 155, 0.1);
}

.main-header .nav-link i {
    color: var(--primary-color);
}

/* 下拉菜单样式 */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(194, 181, 155, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    padding: 8px !important;
}

.dropdown-item {
    color: #495057 !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.dropdown-item:hover {
    background: rgba(194, 181, 155, 0.1) !important;
    color: var(--primary-color) !important;
}

.dropdown-divider {
    border-color: rgba(194, 181, 155, 0.2) !important;
    margin: 8px !important;
}

/* ==================== 主内容区域 ==================== */
.main-content {
    background: var(--gradient-bg);
    min-height: calc(100vh - 200px);
    padding: 40px 0;
    position: relative;
}

.main-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top right, rgba(194, 181, 155, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at bottom left, rgba(15, 52, 96, 0.2) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.main-content .container {
    position: relative;
    z-index: 1;
}

/* ==================== 侧边栏样式 ==================== */
.sidebar-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sidebar-card .list-group-item {
    border: none;
    padding: 15px 20px;
    color: #495057 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sidebar-card .list-group-item:hover {
    background: rgba(194, 181, 155, 0.1) !important;
    color: var(--primary-color) !important;
    border-left-color: var(--primary-color);
    padding-left: 25px;
}

.sidebar-card .list-group-item.active {
    background: rgba(194, 181, 155, 0.15) !important;
    color: var(--primary-color) !important;
    border-left-color: var(--primary-color);
}

.sidebar-card .list-group-item i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* ==================== 页脚样式 ==================== */
.main-footer {
    background: rgba(7, 15, 26, 0.95);
    border-top: 1px solid rgba(194, 181, 155, 0.1);
    padding: 40px 0 20px;
    color: var(--text-muted);
}

.main-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.main-footer a:hover {
    color: var(--primary-color);
}

/* ==================== 徽章样式 ==================== */
.badge-soft {
    background: rgba(194, 181, 155, 0.15);
    color: var(--primary-color);
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
}

/* ==================== 警告框样式 ==================== */
.alert {
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.alert-info {
    background: rgba(194, 181, 155, 0.1);
    color: var(--primary-hover);
}

/* ==================== 表格样式 ==================== */
.table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    background: rgba(194, 181, 155, 0.1);
    color: #495057;
    font-weight: 600;
    border: none;
    padding: 15px;
}

.table tbody td {
    padding: 15px;
    border-color: rgba(0,0,0,0.05);
}

.table-hover tbody tr:hover {
    background: rgba(194, 181, 155, 0.05);
}

/* ==================== 模态框样式 ==================== */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid rgba(194, 181, 155, 0.2);
    padding: 20px 24px;
}

.modal-header h5 i {
    color: var(--primary-color);
}

.modal-footer {
    border-top: 1px solid rgba(194, 181, 155, 0.2);
    padding: 20px 24px;
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 768px) {
    .auth-box {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .card {
        margin-bottom: 20px;
    }
}

/* ==================== 动画效果 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-box {
    animation: fadeInUp 0.6s ease;
}

/* ==================== 特殊组件 ==================== */
.info-box {
    background: rgba(194, 181, 155, 0.05);
    border: 1px solid rgba(194, 181, 155, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(194, 181, 155, 0.1);
    border: 2px solid rgba(194, 181, 155, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}
