:root {
    --ios-blue: #007AFF;
    --ios-green: #34C759;
    --ios-red: #FF3B30;
    --ios-gray: #8E8E93;
    --ios-bg: #F2F2F7;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--ios-bg);
    margin: 0;
    padding: 0;
    color: #000;
}

/* 玻璃拟态卡片 */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* 胶囊按钮 */
.btn {
    padding: 10px 20px;
    border-radius: 25px; /* 胶囊形状 */
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.btn-primary { background-color: var(--ios-blue); color: white; }
.btn-primary:hover { background-color: #0063d1; transform: scale(1.02); }

.btn-success { background-color: var(--ios-green); color: white; }
.btn-danger { background-color: var(--ios-red); color: white; }
.btn-gray { background-color: #E5E5EA; color: #000; }

/* 侧边栏胶囊导航 */
.sidebar {
    width: 260px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    position: fixed;
    border-right: 1px solid var(--glass-border);
    padding: 20px;
    box-sizing: border-box;
}

.menu-item {
    padding: 12px 20px;
    margin-bottom: 8px;
    border-radius: 14px;
    color: #3A3A3C;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
}

.menu-item:hover, .menu-item.active {
    background-color: rgba(0, 122, 255, 0.1);
    color: var(--ios-blue);
    font-weight: 600;
}

.main-content {
    margin-left: 260px;
    padding: 30px;
}

/* 胶囊输入框 */
input, select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 25px; /* 胶囊形状 */
    box-sizing: border-box;
    background: rgba(255,255,255,0.5);
    outline: none;
    transition: border 0.2s;
}

input:focus {
    border-color: var(--ios-blue);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ios-gray);
    font-size: 14px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    text-align: left;
    padding: 12px 16px;
    color: var(--ios-gray);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
}

td {
    padding: 16px;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 15px;
}

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    display: inline-block;
    white-space: nowrap;
    line-height: 1.4;
    vertical-align: middle;
}

/* Toast 动画 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 16px;
    background: rgba(0,0,0,0.8);
    color: white;
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s;
}
.toast.show { opacity: 1; transform: translateY(10px); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--ios-blue);
}

.stat-label {
    font-size: 14px;
    color: var(--ios-gray);
    margin-top: 8px;
}

/* 搜索栏样式 */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    max-width: 500px;
}

.search-bar input {
    margin: 0;
    flex: 1;
}

/* 分页组件 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    align-items: center;
}

.page-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--ios-text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.page-item:hover, .page-item.active {
    background: var(--ios-blue);
    color: white;
    border-color: var(--ios-blue);
}

.page-item.disabled {
    opacity: 0.3;
    pointer-events: none;
}
