:root {
    --primary-color: #6b46c1;
    --secondary-color: #4a5568;
    --text-color: #2d3748;
    --light-text: #718096;
    --gradient-primary: linear-gradient(135deg, #6b46c1 0%, #805ad5 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --border-radius: 0.5rem;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: #f7fafc;
}

/* 基础布局类 */
.f-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.f-row {
    display: flex;
    flex-wrap: wrap;
    margin: -0.5rem;
}

.f-col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0.5rem;
}

.f-justify-center {
    justify-content: center;
}

.f-mt-2 {
    margin-top: 0.5rem;
}

.f-mt-lg {
    margin-top: 2rem;
}

.f-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.f-form-item {
    margin-bottom: 1rem;
}

.f-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.f-input,
.f-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background-color: #fff;
    transition: all 0.3s ease;
}

.f-input:focus,
.f-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.2);
}

.f-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.f-btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.f-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.f-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.f-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.f-modal-dialog {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 90%;
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.f-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.f-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.f-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
    transition: color 0.3s ease;
}

.f-modal-close:hover {
    color: var(--text-color);
}

/* 新增容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 新增卡片样式 */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* 新增文字样式 */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

/* 新增间距类 */
.p-4 {
    padding: 1rem;
}

.m-4 {
    margin: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .f-col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .f-modal-dialog {
        width: 95%;
        margin: 1rem;
        padding: 1rem;
    }
}
