/* 蓝色科技风格主题 */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --light-blue: #dbeafe;
    --accent-blue: #60a5fa;
    --dark-blue: #1e40af;
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    --shadow-primary: 0 10px 25px rgba(30, 58, 138, 0.3);
    --shadow-hover: 0 15px 35px rgba(30, 58, 138, 0.4);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局样式 */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #374151;
}

/* 英文标题样式 */
.english-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.85em; /* 比中文小1号 */
    display: block;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* 英文副标题样式 */
.english-subtitle {
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.85em; /* 比中文小1号 */
    font-weight: 500;
    opacity: 0.8;
    line-height: 1.2;
}

/* 模块卡片样式 */
.module-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 140px;
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(59, 130, 246, 0.3);
}

.module-card:hover::before {
    transform: scaleX(1);
}

.module-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.module-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    border-radius: 12px;
}

.module-icon i {
    font-size: 1.25rem;
    color: white;
    z-index: 1;
    position: relative;
}

.module-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

.module-desc {
    color: #6b7280;
    font-size: 0.8125rem;
    line-height: 1.4;
    margin: 0;
}

/* Modal样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: white;
    border-radius: 16px;
    max-width: 85vw;
    max-height: 85vh;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    background: var(--gradient-primary);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-content {
    padding: 1.5rem;
    max-height: calc(85vh - 80px);
    overflow-y: auto;
}

/* PDF和图片预览样式 */
.pdf-viewer, .image-viewer {
    width: 100%;
    height: 70vh;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-viewer {
    object-fit: contain;
    background: #f8fafc;
}

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

.form-label {
    display: block;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.8125rem;
    transition: var(--transition-smooth);
    background: white;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* 文件上传样式 */
.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: #f9fafb;
}

.file-upload-area:hover {
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    line-height: 1.4;
}

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

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    min-width: 160px;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: white;
}

/* 加载指示器 */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2000;
}

.loading-indicator.active {
    display: flex;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast通知样式 */
.toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    font-size: 0.8125rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    display: none;
    align-items: center;
    gap: 0.5rem;
    max-width: 320px;
    animation: toastSlideIn 0.3s ease-out;
}

.toast.active {
    display: flex;
}

.toast-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 学生信息列表样式 */
.student-list {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.student-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    transition: var(--transition-smooth);
}

.student-item:hover {
    background: #f8fafc;
}

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

.student-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.student-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* 照片网格样式 */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: #f3f4f6;
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.photo-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-download-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--primary-blue);
    font-size: 1.25rem;
}

.photo-download-btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.photo-download-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 日期选择器样式 */
.date-picker-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.date-picker-btn {
    width: 100%;
    justify-content: center;
}

.selected-date-display {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    width: 100%;
    text-align: center;
}

/* 响应式设计 */
@media (min-width: 1920px) {
    .module-card {
        min-height: 160px;
        max-width: 320px;
        padding: 2rem;
    }
    
    .module-icon {
        width: 3.5rem;
        height: 3.5rem;
        margin-bottom: 1.25rem;
    }
    
    .module-icon i {
        font-size: 1.5rem;
    }
    
    .module-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .module-desc {
        font-size: 0.875rem;
    }
}

@media (min-width: 2560px) {
    .module-card {
        min-height: 180px;
        max-width: 360px;
        padding: 2.5rem;
    }
    
    .module-icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: 1.5rem;
    }
    
    .module-icon i {
        font-size: 1.75rem;
    }
    
    .module-title {
        font-size: 1.375rem;
        margin-bottom: 0.625rem;
    }
    
    .module-desc {
        font-size: 0.9375rem;
    }
}

@media (max-width: 768px) {
    .modal-container {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .module-card {
        padding: 1.5rem;
        max-width: none;
    }
    
    .toast {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* 步骤指示器样式 */
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
    margin-bottom: 0.5rem;
}

.step-text {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.step-indicator.active .step-number {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.step-indicator.active .step-text {
    color: var(--primary-blue);
    font-weight: 600;
}

.step-indicator.completed .step-number {
    background: #10b981;
    color: white;
}

.step-indicator.completed .step-text {
    color: #10b981;
    font-weight: 600;
}

.step-line {
    width: 3rem;
    height: 2px;
    background: #e5e7eb;
    margin: 0 1rem;
    align-self: flex-start;
    margin-top: 1.25rem;
}

/* 参会回执步骤样式 */
.receipt-form-container {
    max-width: 100%;
}

.receipt-step {
    display: none;
    animation: stepSlideIn 0.3s ease-out;
}

.receipt-step.active {
    display: block;
}

@keyframes stepSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 按钮禁用状态 */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* 动画增强 */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

/* 数据表格样式 */
.data-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    font-weight: 600;
}

.table-row {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.table-row:hover {
    background-color: #f9fafb;
}

.table-cell {
    padding: 1rem;
    align-items: center;
}

/* 作品管理表格列宽 */
.submissions-table-header,
.submissions-table-row {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.submissions-table-header > div,
.submissions-table-row > div {
    display: table-cell;
    vertical-align: middle;
    padding: 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.submissions-table-header > div:nth-child(1) { width: 8%; }   /* 类型 */
.submissions-table-header > div:nth-child(2) { width: 18%; }  /* 学校名称 */
.submissions-table-header > div:nth-child(3) { width: 18%; }  /* 作品名称 */
.submissions-table-header > div:nth-child(4) { width: 12%; }  /* 作者姓名 */
.submissions-table-header > div:nth-child(5) { width: 12%; }  /* 负责老师 */
.submissions-table-header > div:nth-child(6) { width: 12%; }  /* 联系电话 */
.submissions-table-header > div:nth-child(7) { width: 14%; }  /* 提交时间 */
.submissions-table-header > div:nth-child(8) { width: 6%; }   /* 操作 */

.submissions-table-row > div:nth-child(1) { width: 8%; }
.submissions-table-row > div:nth-child(2) { width: 18%; }
.submissions-table-row > div:nth-child(3) { width: 18%; }
.submissions-table-row > div:nth-child(4) { width: 12%; }
.submissions-table-row > div:nth-child(5) { width: 12%; }
.submissions-table-row > div:nth-child(6) { width: 12%; }
.submissions-table-row > div:nth-child(7) { width: 14%; }
.submissions-table-row > div:nth-child(8) { width: 6%; }

/* 回执管理表格列宽 */
.receipts-table-header,
.receipts-table-row {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.receipts-table-header > div,
.receipts-table-row > div {
    display: table-cell;
    vertical-align: middle;
    padding: 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.receipts-table-header > div:nth-child(1) { width: 20%; }  /* 学校名称 */
.receipts-table-header > div:nth-child(2) { width: 10%; }  /* 学生人数 */
.receipts-table-header > div:nth-child(3) { width: 15%; }  /* 博士/硕士 */
.receipts-table-header > div:nth-child(4) { width: 15%; }  /* 带队老师 */
.receipts-table-header > div:nth-child(5) { width: 15%; }  /* 联系电话 */
.receipts-table-header > div:nth-child(6) { width: 15%; }  /* 提交时间 */
.receipts-table-header > div:nth-child(7) { width: 10%; }  /* 操作 */

.receipts-table-row > div:nth-child(1) { width: 20%; }
.receipts-table-row > div:nth-child(2) { width: 10%; }
.receipts-table-row > div:nth-child(3) { width: 15%; }
.receipts-table-row > div:nth-child(4) { width: 15%; }
.receipts-table-row > div:nth-child(5) { width: 15%; }
.receipts-table-row > div:nth-child(6) { width: 15%; }
.receipts-table-row > div:nth-child(7) { width: 10%; }
