/* 统一的系统样式
*/

/* 基础样式
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
    font-size: 14px;
    padding-bottom: 60px;
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header h1 {
    font-size: 20px;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    font-size: 14px;
    color: #666;
}

.btn {
    padding: 8px 20px;
    border-radius: 18px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f5f5f7;
    color: #0066cc;
}

.btn:hover {
    background: #e8e8ed;
}

.btn-primary {
    background: #0066cc;
    color: white;
}

.btn-primary:hover {
    background: #0071e3;
}

.btn-danger {
    background: #ff3b30;
    color: white;
}

.btn-danger:hover {
    background: #d63027;
}

.btn-secondary {
    background: #f5f5f7;
    color: #1d1d1f;
}

/* 导航标签 */
.nav-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-tab {
    padding: 8px 20px;
    border-radius: 18px;
    background: transparent;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: #1d1d1f;
    transition: all 0.15s ease;
}

.nav-tab:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-tab.active {
    background: #1d1d1f;
    color: white;
}

/* 移动端底部导航 */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #86868b;
    font-size: 12px;
    flex: 1;
}

.mobile-nav a.active {
    color: #0066cc;
}

/* 容器样式 */
.container {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e0e0e0;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.card-header h2 {
    color: #1d1d1f;
    font-size: 18px;
    font-weight: 600;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
}

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

.table th,
.table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.table th {
    background: #fafafa;
    font-weight: 500;
    color: #666;
}

.table tr:hover {
    background: #f9f9f9;
}

.actions {
    display: flex;
    gap: 8px;
}

.actions .btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
}

.modal-close {
    float: right;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f7;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 12px 16px;
    }

    .header h1 {
        font-size: 18px;
    }

    .nav-tabs {
        display: none;
    }

    .mobile-nav {
        display: flex;
        justify-content: space-around;
    }

    .container {
        padding: 16px;
    }

    .card {
        padding: 16px;
    }

    .table {
        font-size: 12px;
    }

    .table th,
    .table td {
        padding: 8px 6px;
    }
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #86868b;
    font-size: 14px;
}

/* 通知提示 */
.toast {
    position: fixed;
    top: 80px;
    right: 24px;
    background: #1d1d1f;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
