/* static/css/style.css */

:root {
    /* MacOS 调色板 */
    --bg-body: #f5f5f7;
    --bg-card: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --brand-blue: #0071e3;
    --brand-yellow: #f5bf42; 
    --danger: #ff3b30;
    --success: #34c759;
    
    /* 圆角与阴影 */
    --radius-xl: 24px;
    --radius-lg: 18px;
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.03);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding-top: 80px; /* 给导航栏留空 */
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-weight: 600;
    letter-spacing: -0.015em;
}

/* --- 🍎 毛玻璃导航栏 --- */
.navbar-mac {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.8rem 0;
}

.navbar-brand span {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    border-radius: 20px;
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-blue) !important;
    background: rgba(0, 113, 227, 0.08);
}

/* --- ☁️ 现代卡片 --- */
.card-mac {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-mac:hover {
    transform: translateY(-4px);
}

.card-header-clean {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.card-body-clean {
    padding: 2rem;
}

/* --- 按钮 --- */
.btn-mac-primary {
    background-color: var(--brand-blue);
    color: white;
    border-radius: 99px;
    padding: 12px 30px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3);
    transition: all 0.2s;
}

.btn-mac-primary:hover {
    background-color: #0077ed;
    transform: scale(1.02);
    color: white;
}

/* --- 表格 --- */
.table-mac {
    margin-bottom: 0;
}
.table-mac thead th {
    background: #fafafa;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}
.table-mac td {
    padding: 1.2rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #f5f5f5;
    color: var(--text-primary);
}

/* --- 进度条 --- */
.progress-mac {
    background-color: #efeff0;
    border-radius: 10px;
    height: 10px;
}
.progress-bar-mac {
    background-color: var(--success);
    border-radius: 10px;
}

/* --- 地图圆角 --- */
#map, #cluster-map {
    border-radius: var(--radius-lg);
}

/* --- 表单控件 --- */
.form-select-mac {
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    padding: 12px;
    font-size: 1rem;
    background-color: #fff;
    cursor: pointer;
}
.form-select-mac:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}