* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.user-info {
    color: #ecf0f1;
    padding: 0.5rem 1rem;
    background-color: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.9rem;
}

.logout-btn {
    background-color: rgba(231, 76, 60, 0.8);
}

.logout-btn:hover {
    background-color: rgba(231, 76, 60, 1);
}

/* 主内容 */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    width: 100%;
    max-width: 100%;
}

/* 公司简介区域 */
.company-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    margin: 2rem 0;
    width: 100%;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    color: white;
    position: relative;
    overflow: hidden;
}

.company-intro::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.intro-content {
    position: relative;
    z-index: 1;
}

.intro-header {
    text-align: center;
    margin-bottom: 2rem;
}

.company-name {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 2px;
}

.company-title {
    font-size: 1.8rem;
    font-weight: 400;
    opacity: 0.95;
    margin-top: 0.5rem;
}

.intro-features {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-text {
    color: white;
}

.intro-description {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.intro-main-text {
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    padding: 0 1rem;
}

.intro-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.feature-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: white;
}

.feature-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    color: white;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .company-intro {
        padding: 2rem 1.5rem;
        margin: 1.5rem 0;
        border-radius: 12px;
    }
    
    .company-name {
        font-size: 2.2rem;
    }
    
    .company-title {
        font-size: 1.4rem;
    }
    
    .intro-main-text {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .intro-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon-large {
        font-size: 2.5rem;
    }
    
    .feature-badge {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

/* 搜索区域 */
.search-section {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.search-section h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.required {
    color: red;
}

/* 按钮 */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

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

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* 表格 */
.trades-list {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.trades-list h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-collapse: separate;
    border-spacing: 0;
}

.table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 徽章 */
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background-color: #27ae60;
    color: white;
}

.badge-warning {
    background-color: #f39c12;
    color: white;
}

.badge-danger {
    background-color: #e74c3c;
    color: white;
}

.badge-info {
    background-color: #3498db;
    color: white;
}

/* 图片 */
.coin-photo-small {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

/* 照片容器 */
.coin-photos-container {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.coin-photo-item {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.coin-photo-item .coin-photo-small {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.coin-photo-item .coin-photo-small:hover {
    border-color: #667eea;
    transform: scale(1.1);
    z-index: 10;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.photo-label {
    position: absolute;
    bottom: 2px;
    left: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 10px;
    pointer-events: none;
    z-index: 2;
    text-align: center;
    padding: 2px 4px;
    border-radius: 0 0 2px 2px;
    line-height: 1.2;
}

.coin-name {
    margin-top: 4px;
    font-weight: 500;
}

/* 无数据提示 */
.no-data {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.no-data p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.no-data-tip {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

/* 认证页面 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.auth-box {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1.8rem;
}

.auth-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.auth-footer a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.text-center {
    text-align: center;
}

.text-center a {
    color: #3498db;
    text-decoration: none;
}

.text-center a:hover {
    text-decoration: underline;
}

/* 页面包装器 */
.page-wrapper {
    width: 100%;
    padding: 2rem 0;
}

/* 表单容器 */
.form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.form-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border: 1px solid rgba(102, 126, 234, 0.15);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.page-header {
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.header-content {
    text-align: center;
    margin-bottom: 2rem;
}

.header-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.header-title h2 {
    margin-bottom: 0;
    color: #2c3e50;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 700;
}

.header-decoration {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.page-subtitle {
    color: #666;
    font-size: 1rem;
    margin-top: 1rem;
    line-height: 1.6;
}

/* 步骤指示器 */
.header-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    transition: all 0.3s;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.step-item.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.3);
    transform: scale(1.1);
}

.step-item.completed .step-number {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.step-item.completed .step-number::before {
    content: '✓';
    font-size: 1.5rem;
}

.step-label {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
}

.step-item.active .step-label {
    color: #667eea;
    font-weight: 600;
    font-size: 0.95rem;
}

.step-item.completed .step-label {
    color: #27ae60;
}

.step-connector {
    flex: 1;
    height: 2px;
    background-color: #e0e0e0;
    max-width: 80px;
    margin: 0 0.5rem;
    transition: all 0.3s;
}

.step-item.active + .step-connector,
.step-item.completed + .step-connector {
    background-color: #667eea;
}

/* 表单分组 */
.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    padding-bottom: 1rem;
}

.section-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.2));
}

.section-divider {
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, rgba(102, 126, 234, 0.3) 100%);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.optional-badge {
    margin-left: auto;
    padding: 0.25rem 0.75rem;
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* 输入验证 */
.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.char-count {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background-color: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    white-space: nowrap;
}

.validation-message {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: none;
    animation: slideDown 0.3s ease-out;
}

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

.validation-message.success {
    display: block;
    color: #27ae60;
    background-color: rgba(39, 174, 96, 0.1);
}

.validation-message.error {
    display: block;
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.input-with-validation:focus + .input-footer + .validation-message,
.input-with-validation:focus ~ .validation-message {
    display: block;
}

/* 文件预览增强 */
.preview-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.preview-container img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    display: block;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.preview-container:hover .preview-overlay {
    opacity: 1;
}

.preview-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-btn:hover {
    transform: scale(1.1);
    background-color: white;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.file-name {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 0.5rem;
}

.file-size {
    font-size: 0.85rem;
    color: #999;
    white-space: nowrap;
}

/* 图片放大弹窗 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.image-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 3px solid #f0f0f0;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    margin-left: -3rem;
    margin-right: -3rem;
    padding-left: 3rem;
    padding-right: 3rem;
    padding-bottom: 0.5rem;
    margin-bottom: -3rem;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.form-actions-left,
.form-actions-right {
    display: flex;
    gap: 1rem;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #95a5a6;
    color: #95a5a6;
    font-weight: 600;
}

.btn-outline:hover {
    background-color: #95a5a6;
    color: white;
    transform: translateY(-2px);
}

/* 拖拽上传状态 */
.file-upload-label.dragover {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

/* 加载动画 */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

/* 消息提示增强 */
.message-toast.message-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label,
.field-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    padding: 0.5rem 0;
}

.input-wrapper {
    position: relative;
}

.input-enhanced,
.textarea-enhanced {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #fafafa;
    font-family: inherit;
}

.input-enhanced:focus,
.textarea-enhanced:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.textarea-enhanced {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.hint-icon {
    margin-right: 0.25rem;
}

.label-icon {
    font-size: 1.2rem;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #888;
    line-height: 1.5;
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

/* 输入组 */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 1rem;
    color: #666;
    font-weight: 500;
    z-index: 1;
}

.input-group .input-prefix + input {
    padding-left: 2.5rem;
}

.input-suffix {
    position: absolute;
    right: 1rem;
    color: #666;
    font-size: 0.9rem;
    z-index: 1;
}

.input-group input:not(:last-child) {
    padding-right: 3rem;
}

.select-enhanced {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.input-enhanced {
    transition: all 0.3s;
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
    flex: 1;
}

.radio-option:hover {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.05);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #667eea;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #667eea;
    border-radius: 50%;
}

.radio-option input[type="radio"]:checked ~ .radio-text {
    color: #667eea;
    font-weight: 600;
}

.radio-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.radio-icon {
    font-size: 1.2rem;
}

/* 复选框 */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
}

.checkbox-label:hover {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.05);
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
}

.checkbox-input:checked + .checkbox-custom {
    background-color: #667eea;
    border-color: #667eea;
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 文件上传 */
.file-upload-wrapper {
    margin-top: 0.5rem;
}

.file-input {
    display: none;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    border: 3px dashed #ddd;
    border-radius: 16px;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.file-upload-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.file-upload-label:hover::before {
    left: 100%;
}

.file-upload-label:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.file-upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.file-upload-text {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.file-upload-hint {
    font-size: 0.85rem;
    color: #999;
}

.file-preview {
    position: relative;
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.file-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    display: block;
}

.remove-file-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.remove-file-btn:hover {
    background-color: rgba(231, 76, 60, 0.9);
    transform: scale(1.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

.btn-loading {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 后台管理 */
.admin-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-container h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 12px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
}

.admin-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.admin-links .btn {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.btn-icon {
    font-size: 1.3rem;
}

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

.modal-content {
    background-color: white;
    margin: 10% auto;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

.modal-enhanced {
    padding: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header .close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-header .close:hover {
    background-color: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.contact-info {
    margin-top: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.contact-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

.phone-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s;
}

.phone-link:hover {
    color: #764ba2;
}

.phone-action {
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    font-weight: 500;
}

.contact-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.contact-tip {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* 支付弹窗样式 */
.payment-info {
    text-align: center;
}

.payment-amount {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.amount-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.amount-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.payment-description {
    margin-bottom: 1.5rem;
    color: #666;
}

.payment-description p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.payment-tip {
    color: #999;
    font-size: 0.85rem;
}

.qr-code-container {
    position: relative;
    display: inline-block;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.qr-code-image {
    width: 250px;
    height: 250px;
    display: none;
    border-radius: 8px;
}

.qr-code-loading {
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1rem;
}

.payment-status {
    margin: 1.5rem 0;
}

.status-timer {
    padding: 0.75rem 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    font-weight: 600;
}

.status-timer #countdown {
    color: #d9534f;
    font-size: 1.2rem;
}

.payment-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.payment-actions .btn {
    flex: 1;
    max-width: 200px;
}

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

/* 图片预览弹窗样式 */
.image-preview-modal {
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-preview-content {
    max-width: 90%;
    max-height: 90vh;
    margin: 5vh auto;
    background-color: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.image-preview-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    overflow: hidden;
}

.preview-large-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: imageZoomIn 0.3s ease-out;
}

@keyframes imageZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-preview-modal .modal-header {
    background: rgba(102, 126, 234, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px 12px 0 0;
    margin-bottom: 1rem;
}

.image-preview-modal .modal-header h3 {
    color: white;
    font-size: 1.2rem;
}

/* 响应式：图片预览 */
@media (max-width: 768px) {
    .image-preview-content {
        max-width: 95%;
        max-height: 95vh;
        margin: 2.5vh auto;
    }
    
    .preview-large-image {
        max-height: 75vh;
    }
    
    .image-preview-modal .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .image-preview-modal .modal-header h3 {
        font-size: 1rem;
    }
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 消息提示Toast */
.message-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    max-width: 350px;
}

.message-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.message-toast.message-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

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

/* 响应式 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .nav-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .search-section,
    .form-container,
    .admin-container {
        padding: 1.5rem;
    }
    
    .table {
        font-size: 0.875rem;
        display: block;
        overflow-x: auto;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-links {
        flex-direction: column;
    }
    
    .admin-links .btn {
        min-width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .message-toast {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .message-toast.show {
        transform: translateY(0);
    }
    
    .modal-content {
        margin: 20% auto;
        width: 95%;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .header-steps {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .step-connector {
        max-width: 30px;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .form-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .form-actions-left,
    .form-actions-right {
        width: 100%;
        justify-content: center;
    }
    
    .form-actions-left {
        margin-top: 0.5rem;
    }
    
    .form-actions .btn {
        flex: 1;
    }
}

/* 分页样式 */
.pagination-container {
    margin-top: 2rem;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #e0e0e0;
}

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

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn,
.pagination-number {
    display: inline-block;
    padding: 0.5rem 1rem;
    min-width: 40px;
    text-align: center;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 14px;
    cursor: pointer;
}

.pagination-btn:hover:not(.disabled),
.pagination-number:hover:not(.active) {
    background-color: #667eea;
    color: #fff;
    border-color: #667eea;
}

.pagination-number.active {
    background-color: #667eea;
    color: #fff;
    border-color: #667eea;
    font-weight: bold;
}

.pagination-btn.disabled,
.pagination-number.disabled {
    color: #ccc;
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0.5rem;
    color: #999;
}

/* 响应式分页 */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .pagination-info {
        font-size: 12px;
    }
    
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination-btn,
    .pagination-number {
        padding: 0.4rem 0.8rem;
        min-width: 36px;
        font-size: 12px;
    }
    
    .pagination-ellipsis {
        padding: 0.4rem 0.2rem;
    }
}

