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

/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* 主容器 */
.breeding-system {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* 顶部导航栏 */
.top-nav {
    background: #1890ff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-container {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 55px;
    padding: 0 20px;
    max-width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: bold;
}

.nav-logo span {
    font-size: 1rem;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.nav-link:hover {
    opacity: 0.8;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    opacity: 1;
    background-color: white;
    color: #1890ff;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 下拉菜单 */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 20px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 101;
    min-width: 180px;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.3s ease;
}

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

.dropdown-item {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: #1890ff;
}

.dropdown-item.active {
    background-color: #e6f7ff;
    color: #1890ff;
    font-weight: bold;
}

.user-name {
    font-size: 0.9rem;
}

.user-name {
    font-weight: 500;
}

/* 主内容区 */
.main-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 欢迎区域 - 只在首页显示 */
#home-tab .welcome-section {
    color: white;
    padding: 60px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    text-align: center;
    margin-bottom: 30px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 响应式欢迎区域 */
@media (min-width: 1400px) {
    #home-tab .welcome-section {
        padding: 80px 40px;
    }
}

@media (max-width: 768px) {
    #home-tab .welcome-section {
        padding: 40px 15px;
    }
}

/* 欢迎区域文字效果 */
.welcome-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.welcome-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* 技术亮点标签 */
.tech-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 模式切换器 */
.mode-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 5px;
    max-width: 400px;
    margin: 0 auto;
}

.mode-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    color: white;
}

.mode-btn.active {
    background: white;
    color: #1890ff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 统计卡片 */
.stats-section {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    /* 为gap属性添加替代方案，兼容Safari旧版本 */
    margin: 0 -10px 20px -10px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    flex: 1;
    text-align: center;
    border: 1px solid #e8e8e8;
    /* 为gap属性添加替代方案，兼容Safari旧版本 */
    margin: 0 10px 20px 10px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1890ff;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* 功能区域 */
.features-section {
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header.justify-end {
    justify-content: flex-end;
    padding-bottom: 0;
    border-bottom: none;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1890ff;
    margin: 0;
}

/* 项目管理标题样式 */
#settings-tab .section-title {
    font-size: 20px !important;
    font-weight: bold !important;
}

/* 项目管理标题与分割线间距调整 */
#settings-tab .section-header {
    padding-bottom: 5px;
    margin-bottom: 5px;
}

/* 项目管理项目卡片容器高度调整 */
#settings-tab .training-projects-container {
    margin-top: 10px;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    align-items: center;
    margin-right: 12px;
    flex: 1;
    max-width: 280px;
}

.search-input {
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px 0 0 4px;
    font-size: 13px;
    width: 100%;
    transition: all 0.3s;
    height: 32px;
    line-height: 1;
}

.search-input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.search-box .btn-icon {
    border-radius: 0 4px 4px 0;
    border-left: none;
    padding: 0 12px;
    background: #f0f0f0;
    transition: all 0.3s;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.search-box .btn-icon:hover {
    background: #1890ff;
    color: white;
    border-color: #1890ff;
}

/* 过滤选项样式 */
.filter-options {
    margin-right: 12px;
}

.filter-select {
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    background-color: white;
    cursor: pointer;
    min-width: 100px;
    transition: all 0.3s;
    height: 32px;
    line-height: 32px;
}

.filter-select:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 操作按钮组样式 */
.section-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.section-actions .btn-primary {
    padding: 0 20px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s;
    height: 32px;
    line-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 响应式搜索和筛选区域 */
@media (max-width: 768px) {
    .section-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
        margin-right: 0;
    }
    
    .filter-options {
        margin-right: 0;
    }
    
    .filter-select {
        width: 100%;
    }
}

/* 状态标签样式 */
.status-进行中 {
    background: #e6f7ff;
    color: #1890ff;
}

.status-已完成 {
    background: #f6ffed;
    color: #52c41a;
}

.status-已暂停 {
    background: #fff7e6;
    color: #fa8c16;
}

.status-待开始 {
    background: #f5f5f5;
    color: #8c8c8c;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    /* 为gap属性添加替代方案，兼容Safari旧版本 */
    margin: 0 -10px;
}

.feature-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    flex: 1;
    border: 1px solid #e8e8e8;
    transition: all 0.3s;
    /* 为gap属性添加替代方案，兼容Safari旧版本 */
    margin: 0 10px 20px 10px;
}

.feature-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2.5rem;
    color: #1890ff;
    margin-bottom: 15px;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.feature-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* 育种流程 */
.process-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
}

.process-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1890ff;
    margin-bottom: 20px;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* 为gap属性添加替代方案，兼容Safari旧版本 */
    margin: 0 -10px;
}

.process-step {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    text-align: center;
    border: 1px solid #e8e8e8;
    transition: all 0.3s;
    /* 为gap属性添加替代方案，兼容Safari旧版本 */
    margin: 0 10px 20px 10px;
}

.process-step:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #1890ff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    font-size: 1rem;
}

.step-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 项目列表 */
.projects-section {
    margin-bottom: 20px;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    /* 为gap属性添加替代方案，兼容Safari旧版本 */
    margin: 0 -10px;
}

.project-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    flex: 1;
    border: 1px solid #e8e8e8;
    transition: all 0.3s;
    /* 为gap属性添加替代方案，兼容Safari旧版本 */
    margin: 0 10px 20px 10px;
}

.project-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.project-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.project-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background: #e6f7ff;
    color: #1890ff;
}

.status-pending {
    background: #fff7e6;
    color: #fa8c16;
}

.status-completed {
    background: #f6ffed;
    color: #52c41a;
}

.project-info {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* AI分析记录 */
.ai-section {
    margin-bottom: 20px;
}

.analytics-list {
    display: flex;
    flex-direction: column;
    /* 为gap属性添加替代方案，兼容Safari旧版本 */
    margin: 0 -10px;
}

.analytics-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8e8e8;
    transition: all 0.3s;
    /* 为gap属性添加替代方案，兼容Safari旧版本 */
    margin: 0 10px 20px 10px;
}

.analytics-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.analytics-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.analytics-time {
    color: #999;
    font-size: 0.85rem;
}

.analytics-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    background-color: white;
    color: #666;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn.logout-btn {
    background-color: transparent;
    border: none;
    color: #666;
    padding: 4px 8px;
}

.btn.logout-btn:hover {
    color: #1890ff;
    background-color: rgba(24, 144, 255, 0.1);
}

.btn:hover {
    border-color: #1890ff;
    color: #1890ff;
    background-color: rgba(24, 144, 255, 0.05);
}

.btn-primary {
    background-color: #1890ff;
    color: white;
    border-color: #1890ff;
}

.btn-primary:hover {
    background-color: #40a9ff;
    border-color: #40a9ff;
    color: white;
}

.btn-success {
    background-color: #52c41a;
    color: white;
    border-color: #52c41a;
}

.btn-success:hover {
    background-color: #73d13d;
    border-color: #73d13d;
    color: white;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
}

.action-buttons .btn {
    flex: 1;
    /* 为gap属性添加替代方案，兼容Safari旧版本 */
    margin-right: 10px;
}

.action-buttons .btn:last-child {
    margin-right: 0;
}

/* 标签页样式 */
.tab-content {
    display: none;
    flex: 1;
    overflow: hidden;
    flex-direction: column;
    position: relative;
}

.tab-content.active {
    display: flex;
}

/* 确保宣传区域和轮播区域只在首页显示 */
#projects-tab .welcome-section,
#projects-tab .tech-stack-section,
#settings-tab .welcome-section,
#settings-tab .tech-stack-section {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 育种项目区域 */
.projects-section {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
}

/* 子标题样式 */
.subsection-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin: 20px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #1890ff;
}
.training-projects-container {
    margin-top: 10px;
}

.training-projects-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: flex-start;
}

/* 大屏幕项目网格优化 */
@media (min-width: 1400px) {
    .training-projects-grid {
        gap: 20px;
    }
    
    .training-project-card {
        max-width: calc(25% - 30px);
        flex: 1 1 calc(25% - 30px);
    }
}

/* 中屏幕项目网格优化 */
@media (min-width: 1024px) and (max-width: 1399px) {
    .training-project-card {
        max-width: calc(33.333% - 20px);
        flex: 1 1 calc(33.333% - 20px);
    }
}

.training-project-card {
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    flex: 1 1 calc(33.333% - 20px);
    margin: 0 10px 20px 10px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.training-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.training-project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.training-project-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    margin-right: 8px;
    line-height: 1.3;
}

.training-project-title:hover {
    color: #1890ff;
    text-decoration: underline;
}

.training-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-training {
    background: #e6f7ff;
    color: #1890ff;
}

.training-progress {
    margin-bottom: 12px;
}

.progress-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    background: #e0e0e0;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: right;
    font-weight: 500;
    color: #666;
    font-size: 0.8rem;
}

.training-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #666;
    padding: 0;
}

.info-row {
    display: flex;
    align-items: center;
}

.info-label {
    font-weight: 500;
    color: #333;
    margin-right: 6px;
    min-width: 50px;
    font-size: 0.85rem;
}

.info-value {
    flex: 1;
    color: #666;
    font-size: 0.85rem;
}

.training-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.training-actions .btn {
    flex: 1;
    min-width: 80px;
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* 响应式布局优化 */
@media (max-width: 1200px) {
    .training-project-card {
        max-width: calc(50% - 30px);
        flex: 1 1 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .training-project-card {
        max-width: 100%;
        flex: 1 1 100%;
        margin: 0 0 20px 0;
    }
    
    .training-actions {
        flex-direction: column;
    }
    
    .training-actions .btn {
        width: 100%;
    }
}

/* 技术栈展示区域 - 只在首页显示 */
#home-tab .tech-stack-section {
    padding: 20px;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    border: 1px solid #e8e8e8;
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 50%, #e6f7ff 100%);
    width: 100%;
}

/* 响应式轮播图 */
@media (min-width: 1400px) {
    #home-tab .tech-stack-section {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    #home-tab .tech-stack-section {
        padding: 15px;
    }
}

.tech-stack-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 -10px;
}

.tech-stack-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    flex: 1;
    margin: 0 10px 20px 10px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.tech-stack-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: #1890ff;
}

.tech-stack-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.tech-stack-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
}

.tech-stack-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 联系我们区域 */
.contact-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
}

.contact-info {
    text-align: center;
    padding: 20px;
}

.contact-info p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.contact-details span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 0.95rem;
}

/* 底部区域 */
.footer {
    padding: 15px 0;
    text-align: center;
    color: #666;
    border-top: 1px solid #e8e8e8;
    font-size: 0.9rem;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

/* 模态窗口样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    margin: 5% auto;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.modal-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    border: none;
    background: transparent;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #333;
    background-color: #f5f5f5;
}

.modal-body {
    padding: 20px;
}

/* 禁止背景滚动 */
body.modal-open {
    overflow: hidden;
}

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

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

.required {
    color: #ff4d4f;
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.form-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-container {
        height: 45px;
    }
    
    .nav-logo {
        font-size: 0.9rem;
    }
    
    .nav-logo span {
        font-size: 0.9rem;
    }
    
    .user-name {
        font-size: 0.8rem;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .stats-section,
    .features-grid,
    .projects-grid {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-card,
    .feature-card,
    .project-card {
        min-width: auto;
        width: 100%;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .process-step {
        min-width: auto;
        width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .top-nav {
        padding: 0 10px;
    }
    
    .nav-container {
        height: 40px;
    }
    
    .nav-logo {
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .nav-logo span {
        font-size: 0.8rem;
    }
    
    .nav-user {
        gap: 8px;
    }
    
    .user-name {
        display: none;
    }
    
    .main-content {
        padding: 10px;
    }
}