/**
 * 金翔鸽舍 - 统一配色方案
 * 主色调：黑蓝白，水润通透，五行补水
 * 统一所有页面配色
 */

:root {
    /* 主色调 - 深蓝黑 */
    --primary-dark: #0a0a0a;
    --primary-navy: #1a237e;
    --primary-blue: #0d47a1;
    --primary-light-blue: #1565c0;
    --primary-cyan: #0277bd;
    
    /* 辅助色 */
    --accent-water: #4fc3f7;
    --accent-water-light: #81d4fa;
    --accent-white: #e3f2fd;
    --accent-pure-white: #ffffff;
    
    /* 玻璃态 */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #1a237e 0%, #0d47a1 50%, #01579b 100%);
    --gradient-secondary: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #0277bd 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #1a237e 100%);
    
    /* 文字 */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);
    
    /* 状态色 */
    --status-active: #4caf50;
    --status-retired: #9e9e9e;
    --status-deceased: #78909c;
    --status-race: #2196f3;
    --status-source: #1a237e;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* 水润背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(79, 195, 247, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(79, 195, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 统一按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--accent-water);
    border: 2px solid var(--accent-water);
}

.btn-outline:hover {
    background: var(--accent-water);
    color: var(--primary-dark);
}

/* 统一卡片样式 */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(79, 195, 247, 0.3);
}

/* 统一表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg);
    border-radius: 12px;
    overflow: hidden;
}

.data-table th {
    background: var(--primary-navy);
    color: var(--accent-water);
    padding: 16px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* 统一表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-water);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.2);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* 统一导航样式 */
.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--accent-water);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-water);
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

/* 统一头部样式 */
.header {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    font-size: 1.8em;
    color: var(--accent-water);
    font-weight: 300;
    letter-spacing: 4px;
}

.logo span {
    font-size: 0.7em;
    color: var(--accent-water-light);
    letter-spacing: 2px;
    margin-left: 10px;
}

/* 统一页脚样式 */
.footer {
    background: var(--gradient-dark);
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info h3 {
    color: var(--accent-water);
    margin-bottom: 10px;
}

.footer-info p {
    color: var(--text-muted);
    margin: 5px 0;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-water);
}

/* 统一分区标题 */
.section-title {
    font-size: 2.2rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* 统一容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

/* 后台管理专用样式 */
.admin-container {
    display: flex;
    min-height: 100vh;
    padding-top: 70px;
}

.admin-sidebar {
    width: 260px;
    background: rgba(26, 35, 126, 0.3);
    border-right: 1px solid var(--glass-border);
    padding: 20px 0;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(79, 195, 247, 0.1);
    color: var(--accent-water);
    border-left-color: var(--accent-water);
}

.admin-sidebar a i {
    margin-right: 10px;
    font-size: 1.2em;
}

.admin-content {
    flex: 1;
    padding: 30px;
    background: rgba(10, 10, 10, 0.5);
}

.admin-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.admin-header h2 {
    color: var(--accent-water);
    font-weight: 400;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status-retired {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
}

.status-deceased {
    background: rgba(120, 144, 156, 0.2);
    color: #78909c;
}

.status-race {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.status-source {
    background: rgba(26, 35, 126, 0.3);
    color: #4fc3f7;
}

/* 模态框 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--primary-dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--glass-shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
    color: var(--accent-water);
    font-weight: 400;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-water);
}

/* 响应式 */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        z-index: 100;
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
    }
    
    .admin-sidebar a {
        flex-direction: column;
        padding: 10px;
        font-size: 0.8rem;
        border-left: none;
        border-top: 3px solid transparent;
    }
    
    .admin-sidebar a.active {
        border-left-color: transparent;
        border-top-color: var(--accent-water);
    }
    
    .admin-content {
        padding-bottom: 100px;
    }
}
