/* iOS 6 经典拟物化风格 */
:root {
    --ios6-blue: #4A90E2;
    --ios6-blue-dark: #357ABD;
    --ios6-gray: #8B8B8B;
    --ios6-silver: #C7C7CC;
    --ios6-gold: #FFD700;
    --ios6-green: #4CD964;
    --ios6-red: #FF3B30;
    --ios6-orange: #FF9500;
}

body {
    background: #c5c5c5 url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGRlZnM+CjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiPgo8cmVjdCB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIGZpbGw9IiNjNWM1YzUiLz4KPHN2ZyB4PSIwIiB5PSIwIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiPgo8Y2lyY2xlIGN4PSIyMCIgY3k9IjIwIiByPSIxLjUiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIvPgo8L3N2Zz4KPC9wYXR0ZXJuPgo8L2RlZnM+CjxyZWN0IHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPgo8L3N2Zz4=');
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    zoom: 0.8;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
}

/* 主卡片 - 金属质感 */
.card {
    background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
    border: 1px solid #b4b4b4;
    border-radius: 8px;
    box-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.8), rgba(255,255,255,0));
}

/* 卡片头部 - 金属导航栏风格 */
.card-header {
    background: linear-gradient(to bottom, #b0b3b6, #8b9096) !important;
    border-bottom: 1px solid #6d7278 !important;
    border-radius: 0 !important;
    color: #fff !important;
    padding: 20px 30px !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5) !important;
    position: relative !important;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.4), rgba(255,255,255,0));
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.3);
}

.card-header h5 {
    font-weight: bold !important;
    font-size: 24px !important;
    margin: 0 !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.7) !important;
}

.card-body {
    background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
    padding: 30px 35px;
    position: relative;
}

/* 选项卡 - iOS 6分段控件 */
.nav-tabs {
    border: none !important;
    background: linear-gradient(to bottom, #f8f8f8, #e0e0e0);
    border: 1px solid #a4a4a4;
    border-radius: 6px;
    padding: 3px;
    margin-bottom: 25px;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.5);
}

.nav-tabs .nav-link {
    border: none !important;
    border-radius: 4px !important;
    color: #555 !important;
    transition: all 0.2s ease !important;
    margin: 0 2px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    padding: 12px 20px !important;
    background: transparent !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
}

.nav-tabs .nav-link:hover {
    background: linear-gradient(to bottom, #f0f0f0, #d8d8d8) !important;
    color: #333 !important;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(to bottom, #4A90E2, #357ABD) !important;
    color: white !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5) !important;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* 表单控件 - 内嵌凹陷效果 */
.form-control, 
.form-select, 
textarea.form-control {
    background: linear-gradient(to bottom, #fff, #f8f8f8);
    border: 1px solid #a4a4a4;
    border-radius: 6px;
    color: #333;
    transition: all 0.2s ease;
    padding: 14px 16px;
    font-size: 16px;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.5);
}

.form-control:focus, 
.form-select:focus, 
textarea.form-control:focus {
    background: linear-gradient(to bottom, #fff, #fcfcfc) !important;
    border-color: var(--ios6-blue) !important;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.1),
        0 0 5px rgba(74, 144, 226, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.5) !important;
    outline: none !important;
}

.form-control::placeholder {
    color: #999;
    opacity: 1;
}

.form-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.mb-3 {
    margin-bottom: 20px !important;
}

/* 按钮 - 经典iOS 6立体按钮 */
.btn {
    border-radius: 8px;
    font-weight: bold;
    padding: 14px 28px;
    transition: all 0.1s ease;
    border: 1px solid;
    font-size: 16px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    position: relative;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    min-height: 48px;
    line-height: 1.4;
}

.btn:active {
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(to bottom, #5ba7f7, #4A90E2) !important;
    border-color: #357ABD !important;
    color: white !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3) !important;
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #4A90E2, #357ABD) !important;
}

.btn-outline-primary {
    background: linear-gradient(to bottom, #f8f8f8, #e0e0e0) !important;
    border-color: var(--ios6-blue) !important;
    color: var(--ios6-blue) !important;
}

.btn-outline-primary:hover {
    background: linear-gradient(to bottom, #5ba7f7, #4A90E2) !important;
    color: white !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3) !important;
}

.btn-outline-success {
    background: linear-gradient(to bottom, #f8f8f8, #e0e0e0) !important;
    border-color: var(--ios6-green) !important;
    color: var(--ios6-green) !important;
}

.btn-outline-success:hover {
    background: linear-gradient(to bottom, #6bdb78, #4CD964) !important;
    color: white !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3) !important;
}

.btn-outline-danger {
    background: linear-gradient(to bottom, #f8f8f8, #e0e0e0) !important;
    border-color: var(--ios6-red) !important;
    color: var(--ios6-red) !important;
}

.btn-outline-danger:hover {
    background: linear-gradient(to bottom, #ff5c4c, #FF3B30) !important;
    color: white !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3) !important;
}

.btn-outline-light {
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0.1)) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: white !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5) !important;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 14px;
    min-height: 40px;
}

/* 表格 - 立体化表格 */
.table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #b4b4b4;
    font-size: 16px;
    margin-bottom: 0;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.table thead th {
    background: linear-gradient(to bottom, #f8f8f8, #e0e0e0);
    border: none;
    border-bottom: 1px solid #b4b4b4;
    color: #333;
    font-weight: bold;
    padding: 18px 20px;
    font-size: 15px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
    position: relative;
}

.table thead th::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0));
}

.table thead th:last-child::after {
    display: none;
}

.table tbody tr {
    border: none;
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background: linear-gradient(to bottom, #f0f8ff, #e8f4ff);
}

.table tbody tr:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

.table tbody td {
    border: none;
    padding: 16px 20px;
    color: #333;
    vertical-align: middle;
    position: relative;
}

.table tbody td::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.05), rgba(0,0,0,0));
}

.table tbody td:last-child::after {
    display: none;
}

/* 分页 - 立体按钮风格 */
.pagination {
    margin-top: 20px;
    justify-content: center;
}

.page-item .page-link {
    background: linear-gradient(to bottom, #f8f8f8, #e0e0e0);
    border: 1px solid #b4b4b4;
    color: #333;
    border-radius: 4px;
    margin: 0 2px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.1s ease;
}

.page-item .page-link:hover {
    background: linear-gradient(to bottom, #e8e8e8, #d0d0d0);
    transform: translateY(-1px);
}

.page-item .page-link:active {
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(1px);
}

.page-item.active .page-link {
    background: linear-gradient(to bottom, #5ba7f7, #4A90E2) !important;
    border-color: #357ABD !important;
    color: white !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3) !important;
}

.page-item.disabled .page-link {
    background: linear-gradient(to bottom, #f0f0f0, #d8d8d8) !important;
    border-color: #ccc !important;
    color: #999 !important;
    box-shadow: none !important;
}

/* 警告框 - 立体效果 */
.alert {
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
}

.alert-info {
    background: linear-gradient(to bottom, #d9edf7, #c4e3f3);
    border-color: #bce8f1;
    color: #31708f;
}

.alert-success {
    background: linear-gradient(to bottom, #dff0d8, #d0e9c6);
    border-color: #d6e9c6;
    color: #3c763d;
}

.alert-warning {
    background: linear-gradient(to bottom, #fcf8e3, #faf2cc);
    border-color: #faebcc;
    color: #8a6d3b;
}

.alert-danger {
    background: linear-gradient(to bottom, #f2dede, #ebcccc);
    border-color: #ebccd1;
    color: #a94442;
}

/* 徽章 - 光泽效果 */
.badge {
    border-radius: 10px;
    font-weight: bold;
    padding: 3px 8px;
    font-size: 11px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
}

.badge::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    border-radius: 8px 8px 0 0;
}

.bg-warning {
    background: linear-gradient(to bottom, #ffc107, #e0a800) !important;
}

.bg-info {
    background: linear-gradient(to bottom, #5ba7f7, #4A90E2) !important;
}

/* 导出按钮容器 */
#export-buttons {
    background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #b4b4b4;
    margin-bottom: 15px;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.5);
}

/* 消息容器 */
#message-container {
    z-index: 1000;
}

#message-container .alert {
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(to right, #e8e8e8, #f0f0f0, #e8e8e8);
    border-radius: 6px;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d0d0d0, #b0b0b0);
    border-radius: 6px;
    border: 1px solid #a0a0a0;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #c0c0c0, #a0a0a0);
}

/* 输入文件样式 */
input[type="file"] {
    font-size: 14px;
    padding: 8px 12px;
    background: linear-gradient(to bottom, #fff, #f8f8f8);
    border: 1px solid #a4a4a4;
    border-radius: 4px;
}

/* 用户管理操作按钮横向排列 */
.table td .d-flex {
    min-width: 400px;
}

.table td .form-select-sm {
    font-size: 14px;
    padding: 6px 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .card-header {
        padding: 10px 15px !important;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .table {
        font-size: 13px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 10px 12px;
    }
    
    .table td .d-flex {
        min-width: auto;
        flex-direction: column;
    }
}

/* 删除一些Bootstrap默认样式 */
.btn:focus {
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 5px rgba(74, 144, 226, 0.4) !important;
}
