/* ==================== 基础样式 - 美化版 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary-color: #07c160;
    --primary-dark: #06ad56;
    --primary-light: #e6f7ed;
    --secondary-color: #ff9500;
    --danger-color: #fa5151;
    --info-color: #1989fa;
    --warning-color: #ff976a;
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-primary: #323233;
    --text-secondary: #646566;
    --text-light: #969799;
    --border-color: #ebedf0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --gradient-primary: linear-gradient(135deg, #07c160 0%, #10b981 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-cool: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
.container {
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: 30px;
}
/* ==================== 头部 - 大气渐变 ==================== */
.header {
    background: var(--gradient-primary);
    color: white;
    padding: 40px 20px 35px;
    text-align: center;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.header h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.subtitle {
    font-size: 14px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 400;
}
/* ==================== 导航菜单 - 悬浮卡片 ==================== */
.nav-menu {
    display: flex;
    justify-content: space-around;
    background: var(--card-bg);
    padding: 12px 8px;
    margin: 0 15px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow-x: auto;
    position: sticky;
    top: 10px;
    z-index: 100;
    backdrop-filter: blur(10px);
}
.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 24px;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-item.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}
.nav-item:hover:not(.active) {
    background: var(--primary-light);
    color: var(--primary-color);
}
/* ==================== 卡片样式 - 精致阴影 ==================== */
.card {
    background: var(--card-bg);
    margin: 0 15px 20px;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    box-shadow: var(--shadow-md);
}
.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}
/* ==================== 表单样式 - 现代感 ==================== */
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.required {
    color: var(--danger-color);
}
.hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-light);
}
.input-wrapper {
    position: relative;
}
.form input[type="text"],
.form input[type="date"],
.form input[type="number"],
.form input[type="tel"],
.form select,
.form textarea {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fafbfc;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    color: var(--text-primary);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px var(--primary-light);
}
/* 自动提示框 */
.suggestion-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 240px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: var(--shadow-lg);
}
.suggestion-item {
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}
.suggestion-item:last-child {
    border-bottom: none;
}
.suggestion-item:hover,
.suggestion-item.active {
    background: var(--primary-light);
}
.suggestion-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}
.suggestion-phone {
    font-size: 12px;
    color: var(--text-light);
}
/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 12px;
}
.radio-label {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 16px;
    background: #fafbfc;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}
.radio-label input[type="radio"] {
    display: none;
}
.radio-text {
    font-size: 15px;
    text-align: center;
    width: 100%;
    font-weight: 500;
    color: var(--text-secondary);
}
.radio-label input[type="radio"]:checked + .radio-text {
    color: var(--primary-color);
    font-weight: 600;
}
.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: var(--primary-light);
}
/* 按钮样式 - 立体感 */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}
.btn:active::after {
    width: 200px;
    height: 200px;
}
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    width: 100%;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.4);
}
.btn-large {
    padding: 18px;
    font-size: 17px;
    border-radius: var(--radius-md);
}
.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.btn-danger {
    background: linear-gradient(135deg, #fa5151 0%, #ff6b6b 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(250, 81, 81, 0.3);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}
.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
}
/* ==================== 今日列表 - 精美条目 ==================== */
.today-list {
    max-height: 320px;
    overflow-y: auto;
}
.empty-tip {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
    font-size: 14px;
    background: #fafbfc;
    border-radius: var(--radius-sm);
}
.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}
.record-item:last-child {
    border-bottom: none;
}
.record-item:hover {
    background: #fafbfc;
    border-radius: var(--radius-sm);
}
.record-info {
    flex: 1;
}
.record-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.record-detail {
    font-size: 13px;
    color: var(--text-light);
}
.record-type {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.type-full {
    background: var(--primary-light);
    color: var(--primary-color);
}
.type-half {
    background: #fff7e6;
    color: var(--secondary-color);
}
/* ==================== 底部 - 简洁 ==================== */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-light);
    font-size: 12px;
}
/* ==================== Toast提示 - 优雅 ==================== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 18px 36px;
    border-radius: var(--radius-md);
    font-size: 15px;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    backdrop-filter: blur(10px);
}
.toast.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
/* ==================== 统计卡片 - 渐变美观 ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--gradient-secondary);
    color: white;
    padding: 24px 16px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s;
}
.stat-card:hover {
    transform: translateY(-4px);
}
.stat-card.green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}
.stat-card.orange {
    background: var(--gradient-warm);
}
.stat-card.blue {
    background: var(--gradient-cool);
}
.stat-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.stat-label {
    font-size: 13px;
    opacity: 0.95;
    font-weight: 500;
}
/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.data-table th,
.data-table td {
    padding: 14px 12px;
    text-align: left;
}
.data-table th {
    background: var(--primary-light);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.data-table tr:nth-child(even) {
    background: #fafbfc;
}
.data-table tr:hover {
    background: var(--primary-light);
}
.data-table td {
    border-bottom: 1px solid var(--border-color);
}
/* 标签 */
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.tag-success {
    background: var(--primary-light);
    color: var(--primary-color);
}
.tag-warning {
    background: #fff7e6;
    color: var(--secondary-color);
}
.tag-info {
    background: #e6f2ff;
    color: var(--info-color);
}
/* ==================== 筛选栏 - 现代感 ==================== */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filter-bar input,
.filter-bar select {
    flex: 1;
    min-width: 120px;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: #fafbfc;
    transition: all 0.3s;
}
.filter-bar input:focus,
.filter-bar select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}
/* ==================== 模态框 - 精致 ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}
.modal-content {
    background: white;
    width: 90%;
    max-width: 420px;
    border-radius: var(--radius-lg);
    padding: 28px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}
.close-btn {
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}
.close-btn:hover {
    background: #f5f5f5;
    color: var(--text-primary);
}
/* ==================== 基地选择器 - 突出显示 ==================== */
.base-selector {
    background: var(--gradient-secondary);
    color: white;
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}
.base-selector label {
    display: block;
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 10px;
    font-weight: 500;
}
.base-selector select {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    background: rgba(255,255,255,0.95);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
}
.current-base-info {
    text-align: center;
    padding: 14px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    border: 2px dashed var(--primary-color);
}
/* ==================== 加载动画 ==================== */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* ==================== 打印样式 ==================== */
@media print {
    .nav-menu, .footer, .btn, .filter-bar, .modal {
        display: none !important;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    body {
        background: white;
    }
}
/* ==================== 响应式优化 ==================== */
@media (max-width: 380px) {
    .header h1 {
        font-size: 22px;
    }
    .nav-item {
        font-size: 12px;
        padding: 8px 10px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-value {
        font-size: 28px;
    }
}