/* 全局样式 */
body {
    font-family: 'Nunito', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #2d3748;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    position: relative;
}

.main-content {
    background: #ffffff;
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    color: #2d3748;
}

/* 头部样式 */
.header {
    background: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo-left {
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4c63d2 0%, #6366f1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.logo-icon i {
    font-size: 18px;
    color: white;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.nav-link {
    color: #64748b;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #4c63d2;
    background: #f8fafc;
}

.nav-link i {
    font-size: 18px;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
}

.language-switch i {
    font-size: 16px;
}

/* 用户认证样式 */
.user-auth-area {
    position: relative;
}

.auth-buttons {
    display: flex;
    align-items: center;
}

.user-menu {
    position: relative;
}

.user-dropdown {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-avatar:hover {
    background: #f8fafc;
    color: #4c63d2;
}

.user-avatar span {
    font-size: 14px;
    font-weight: 500;
}

.user-avatar .fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.user-dropdown.active .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 4px;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #4c63d2;
    text-decoration: none;
}

.dropdown-item i {
    font-size: 14px;
    width: 16px;
}

.dropdown-item span {
    font-size: 14px;
}

.dropdown-item.user-info {
    background: #f8fafc;
    color: #2d3748;
    font-weight: 500;
    cursor: default;
}

.dropdown-item.user-info:hover {
    background: #f8fafc;
    color: #2d3748;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

.language-select {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 8px;
    background: white;
    color: #2d3748;
    font-size: 14px;
    cursor: pointer;
}

.language-select:focus {
    outline: none;
    border-color: #4c63d2;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #4c63d2 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 99, 210, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 99, 210, 0.6);
    background: linear-gradient(135deg, #3b4bc7 0%, #5856eb 100%);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

.btn-info {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

/* 容器自适应 */
.container {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1200px;
}

/* 输入容器样式 */
.input-container {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-container input[type="text"],
.input-container input[type="file"] {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid rgba(76, 99, 210, 0.2);
    border-radius: 12px;
    font-size: 15px;
    background: white;
    color: #2d3748;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.input-container input:focus {
    outline: none;
    border-color: #4c63d2;
    box-shadow: 0 0 0 3px rgba(76, 99, 210, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.input-container button {
    padding: 14px 20px;
    min-width: 100px;
    white-space: nowrap;
}

/* 输入框样式 */
textarea, input[type="text"], input[type="file"] {
    background-color: #ffffff !important;
    border: 2px solid rgba(76, 99, 210, 0.2) !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    color: #2d3748 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

textarea:focus, input[type="text"]:focus, input[type="file"]:focus {
    outline: none !important;
    border-color: #4c63d2 !important;
    box-shadow: 0 0 0 3px rgba(76, 99, 210, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    background-color: #ffffff !important;
}

textarea::placeholder, input[type="text"]::placeholder {
    color: #a0aec0 !important;
    font-style: normal !important;
}

/* 文件输入框特殊样式 */
.form-control {
    background-color: #ffffff !important;
    border: 2px solid rgba(76, 99, 210, 0.2) !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.form-control:focus {
    background-color: #ffffff !important;
    border-color: #4c63d2 !important;
    box-shadow: 0 0 0 3px rgba(76, 99, 210, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Font Awesome 图标样式 */
.fas, .far, .fab {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

.nav-link i {
    display: inline-block !important;
    margin-right: 0.25rem !important;
    font-size: 1rem !important;
    color: inherit !important;
}

/* 图标在导航栏中正常显示 */
.navbar-nav .nav-link {
    display: flex !important;
    align-items: center !important;
}

.navbar-brand i {
    display: inline-block !important;
    margin-right: 0.5rem !important;
}

.container-fluid {
    padding-right: 30px;
    padding-left: 30px;
}

.row {
    margin-right: -15px;
    margin-left: -15px;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-auto, .col-sm, .col-sm-1, .col-sm-2, .col-sm-3,
.col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8,
.col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-auto,
.col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4,
.col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9,
.col-md-10, .col-md-11, .col-md-12, .col-md-auto,
.col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4,
.col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9,
.col-lg-10, .col-lg-11, .col-lg-12, .col-lg-auto,
.col-xl, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4,
.col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9,
.col-xl-10, .col-xl-11, .col-xl-12, .col-xl-auto {
    padding-right: 15px;
    padding-left: 15px;
}

/* 标题样式 */
.display-4 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #4c63d2, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #718096;
    text-align: center;
    margin-bottom: 2rem;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 2rem;
    position: relative;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.card-text {
    color: #6b7280;
    line-height: 1.6;
}

/* 按钮样式 */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    border: none;
    text-transform: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-outline-primary {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* 导航栏样式 */
.navbar {
    background: white !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937 !important;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    color: #3b82f6 !important;
}

.nav-link {
    color: #6b7280 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px 16px !important;
    margin: 0 4px;
}

.nav-link:hover {
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.1);
}

/* 表单样式 */
.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-text {
    color: #6b7280;
    font-size: 0.875rem;
}

/* 工作原理部分 */
.how-it-works {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
    margin: 3rem 0;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23cbd5e1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.5;
}

.how-it-works .container {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #1f2937, #374151);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .steps-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 10px;
    }
    
    .step-card {
        height: auto;
        min-height: 200px;
    }
}

.step-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4c63d2 0%, #6366f1 100%);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #4c63d2;
}

.step-card .step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4c63d2 0%, #6366f1 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    box-shadow: 0 8px 25px rgba(76, 99, 210, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-card:hover .step-icon {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(76, 99, 210, 0.4);
}

.step-card .step-icon i {
    font-size: 32px;
    color: white;
}

.step-card h5 {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.4rem;
    margin: 20px 0 10px 0;
    line-height: 1.3;
    flex-shrink: 0;
}

.step-card p {
    color: #718096;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: center;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.step-description {
    color: #6b7280;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.5rem;
    color: #6b7280;
}

footer small {
    color: #9ca3af;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 0 20px;
    }
    
    .main-content {
        padding: 20px;
        margin: 10px auto;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .container {
        padding-right: 20px;
        padding-left: 20px;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .how-it-works {
        padding: 2rem 0;
        margin: 2rem 0;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* 文件上传区域 */
.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #3b82f6;
    background: #f0f7ff;
}

.upload-area.dragover {
    border-color: #10b981;
    background: #f0fdf4;
}

.upload-icon {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Tab 样式 */
.nav-tabs {
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    color: #6b7280;
    font-weight: 600;
    padding: 1rem 1.5rem;
    margin-bottom: -2px;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.nav-tabs .nav-link.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: none;
}

/* 结果页面样式 */
.result-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-left: 4px solid #e5e7eb;
}

.result-card.verified {
    border-left-color: #10b981;
}

.result-card.unverified {
    border-left-color: #ef4444;
}

.result-card.partial {
    border-left-color: #f59e0b;
}

.result-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.result-body {
    padding: 1.5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-verified {
    background: #d1fae5;
    color: #065f46;
}

.status-unverified {
    background: #fee2e2;
    color: #991b1b;
}

.status-partial {
    background: #fef3c7;
    color: #92400e;
}

/* 新增状态样式 */
.status-valid {
    background-color: #dcfce7;
    color: #28a745;
    border: 1px solid #bbf7d0;
}

.status-invalid {
    background-color: #fee2e2;
    color: #dc3545;
    border: 1px solid #fca5a5;
}

.status-suspicious {
    background-color: #fef3c7;
    color: #ffc107;
    border: 1px solid #fde68a;
}

.status-unverified {
    background-color: #f1f5f9;
    color: #6c757d;
    border: 1px solid #e2e8f0;
}

.status-error {
    background-color: #fef2f2;
    color: #db6022;
    border: 1px solid #fecaca;
}

.status-timeout {
    background-color: #fdf4ff;
    color: #6f42c1;
    border: 1px solid #f3e8ff;
}

/* 状态文本颜色 */
.status-valid-text {
    color: #28a745;
    font-weight: 700;
}

.status-invalid-text {
    color: #dc3545;
    font-weight: 700;
}

.status-suspicious-text {
    color: #ffc107;
    font-weight: 700;
}

.status-unverified-text {
    color: #6c757d;
    font-weight: 700;
}

.status-error-text {
    color: #db6022;
    font-weight: 700;
}

.status-timeout-text {
    color: #6f42c1;
    font-weight: 700;
}



/* 统计卡片 */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-label {
    color: #6b7280;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-verified .stats-number {
    color: #10b981;
}

.stats-unverified .stats-number {
    color: #ef4444;
}

.stats-partial .stats-number {
    color: #f59e0b;
}

/* Font Awesome 图标修复 */
.fas, .far, .fab {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

.nav-link i, .navbar-brand i {
    display: inline-block !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    margin-right: 0.5rem !important;
}

.navbar-nav .nav-link {
    display: flex !important;
    align-items: center !important;
}

/* 首页链接样式 */
.home-link {
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
}

.home-link:hover {
    color: #374151;
    text-decoration: none;
}

.section-header {
    margin: 1.5rem 0 1rem 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e40af;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
    padding-bottom: 0.5rem;
    letter-spacing: 0.5px;
    text-align: left;
}

.section-header i {
    margin-right: 0.5rem;
    color: #1e40af;
}

.query-info-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 2rem;
}

.results-section {
    margin-top: 3rem;
}

.results-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 15px;
}

.results-header .section-header {
    margin-bottom: 0;
    flex: 1;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
    padding-right: 0;
}

.results-header .btn {
    flex: 0 0 auto;
    margin-left: 0;
}

.total-references-row {
    display: flex;
    justify-content: flex-start;
}

.status-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-items: start;
}

.info-item.status-valid .label,
.info-item.status-valid .value {
    color: #28a745 !important;
    font-weight: 600;
}

.info-item.status-invalid .label,
.info-item.status-invalid .value {
    color: #dc3545 !important;
    font-weight: 600;
}

.info-item.status-suspicious .label,
.info-item.status-suspicious .value {
    color: #ffc107 !important;
    font-weight: 600;
}

.info-item.status-unverified .label,
.info-item.status-unverified .value {
    color: #6c757d !important;
    font-weight: 600;
}

.info-item.status-error .label,
.info-item.status-error .value {
    color: #db6022 !important;
    font-weight: 600;
}

.info-item.status-timeout .label,
.info-item.status-timeout .value {
    color: #6f42c1 !important;
    font-weight: 600;
}



.info-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 0.6rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
    height: 60px;
    width: 180px;
    justify-content: flex-start;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    gap: 8px;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-item .label {
    font-size: 1.2rem;
    margin-bottom: 0;
    font-weight: 500;
    white-space: nowrap;
}

.info-item .value {
    font-size: 1.4rem;
    font-weight: 700;
}

.info-item:not([class*="status-"]) .label {
    color: #64748b;
}

.info-item:not([class*="status-"]) .value {
    color: #1e293b;
}

/* 结果表格区域样式 */
.results-section {
    margin-bottom: 2rem;
}

.table-container {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
}

@media (max-width: 1024px) {
    .status-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .query-info-container {
        gap: 1rem;
    }
    
    .status-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .results-header {
         flex-direction: column;
         align-items: flex-start;
         gap: 1rem;
     }
}

@media (max-width: 480px) {
     .status-cards-container {
         grid-template-columns: 1fr;
     }
     
     .section-header {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .status-cards-container {
        grid-template-columns: 1fr;
    }
}

.results-page-body {
    font-family: 'Nunito', sans-serif;
    background-color: #f0f9ff;
    background-image: radial-gradient(circle at 50% 30%, #e0f2fe 0%, #f0f9ff 70%);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.08);
    border-radius: 12px;
    overflow: hidden;
    table-layout: auto;
}

.results-table th {
    background: linear-gradient(to bottom, #f0f7ff, #e6efff);
    cursor: pointer;
    font-weight: 700;
    color: #1e40af;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
    border-bottom: 2px solid #d1e0ff;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.9rem 0.75rem;
    text-align: center;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.results-table th:first-child {
    border-top-left-radius: 12px;
}

.results-table th:last-child {
    border-top-right-radius: 12px;
}

.results-table th:hover {
    background: linear-gradient(to bottom, #e6efff, #d1e0ff);
}

.results-table td {
    padding: 12px 16px;
    background-color: #ffffff;
    color: #374151;
    border: none;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
}

.results-table tbody tr {
    transition: all 0.2s ease;
}

.results-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.results-table tbody tr:hover {
    background-color: #f3f4f6;
    transform: none;
    box-shadow: none;
}

.results-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.results-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

.table-container {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 12px 25px rgba(0, 86, 179, 0.08);
    padding: 0;
    margin-top: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
    border: 1px solid #e2e8f0;
}

.table-wrapper {
    padding: 1.5rem;
    padding-top: 0;
}

.query-info-section {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 12px 25px rgba(0, 86, 179, 0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.similarity-score {
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    background-color: #f0f7ff;
    color: #1e40af;
}

.response-time {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #64748b;
}

.doi-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.doi-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

.title-cell {
    text-align: left !important;
    max-width: 300px;
    word-wrap: break-word;
    white-space: normal;
}

.results-table th:nth-child(1) { /* ID Header */
    text-align: center;
    width: 60px;
}
.results-table td:nth-child(1) { /* ID Data */
    text-align: left;
    width: 60px;
}

.results-table th:nth-child(2) { /* Title Header */
    text-align: center;
    min-width: 250px;
}
.results-table td:nth-child(2) { /* Title Data */
    text-align: left;
    min-width: 250px;
}

.results-table th:nth-child(3) { /* Authors Header */
    text-align: center;
    min-width: 200px;
}
.results-table td:nth-child(3) { /* Authors Data */
    text-align: left;
    min-width: 200px;
}

.results-table th:nth-child(4) { /* Year Header */
    text-align: center;
    width: 80px;
}
.results-table td:nth-child(4) { /* Year Data */
    text-align: left;
    width: 80px;
}

.results-table th:nth-child(5) { /* Venue Header */
    text-align: center;
    min-width: 180px;
}
.results-table td:nth-child(5) { /* Venue Data */
    text-align: left;
    min-width: 180px;
}

.results-table th:nth-child(6) { /* DOI Header */
    text-align: center;
    min-width: 120px;
}
.results-table td:nth-child(6) { /* DOI Data */
    text-align: left;
    min-width: 120px;
}

.results-table th:nth-child(7) { /* Status Header */
    text-align: center;
    width: 100px;
}
.results-table td:nth-child(7) { /* Status Data */
    text-align: left;
    width: 100px;
}

.results-table th:nth-child(8) { /* Similarity Header */
    text-align: center;
    width: 100px;
}
.results-table td:nth-child(8) { /* Similarity Data */
    text-align: left;
    width: 100px;
}

.results-table th:nth-child(9) { /* Data Source Header */
    text-align: center;
    width: 120px;
}
.results-table td:nth-child(9) { /* Data Source Data */
    text-align: left;
    width: 120px;
}

.similarity-score {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.doi-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.doi-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.title-cell {
    font-weight: 500;
    line-height: 1.4;
}

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

.info-item {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #3b82f6;
}

.info-item .label {
    font-weight: 600;
    color: #64748b;
    font-size: 14px;
}

.info-item .value {
    font-weight: 700;
    font-size: 18px;
    color: #1e293b;
}

/* Results page responsive design */
@media (max-width: 1200px) {
    .info-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .query-info-section, .table-container {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .results-table th, .results-table td {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .results-table th {
        font-size: 0.8rem;
    }
    
    h3 {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr !important;
    }
    
    .results-table th, .results-table td {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .status-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    .similarity-score {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Index page styles */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
}

.feature-card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.nav-pills .nav-link.active {
    background-color: #667eea;
}

.nav-pills .nav-link {
    color: #667eea;
}

/* 文件上传区域样式 */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #fafbfc;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #4c63d2;
    background: #f8fafc;
}

.upload-area.dragover {
    border-color: #4c63d2;
    background: #f0f7ff;
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.upload-icon {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.upload-area:hover .upload-icon {
    color: #4c63d2;
    transform: scale(1.1);
}

.upload-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.upload-subtitle {
    color: #6b7280;
    margin: 0;
    font-size: 0.9rem;
}

.file-info {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.file-icon {
    font-size: 24px;
    color: #4c63d2;
    flex-shrink: 0;
}

.file-text {
    flex: 1;
    text-align: left;
}

.file-name {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.file-size {
    color: #6b7280;
    font-size: 0.8rem;
}

#browseBtn {
    background: linear-gradient(135deg, #4c63d2, #6366f1);
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 99, 210, 0.2);
}

#browseBtn:hover {
    background: linear-gradient(135deg, #3b4db8, #5855eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 99, 210, 0.3);
}

#uploadBtn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

#uploadBtn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

#removeFile {
    border-color: #ef4444;
    color: #ef4444;
    padding: 4px 8px;
    transition: all 0.3s ease;
}

#removeFile:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
    
    .upload-title {
        font-size: 1rem;
    }
    
    .file-details {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .file-text {
        text-align: center;
    }
}

/* 建议列表样式 */
.recommendation-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    line-height: 1.4;
}

.recommendation-list li {
    margin-bottom: 0.4rem;
    padding: 0.3rem 0.6rem;
    background-color: #f8fafc;
    border-left: 3px solid #e2e8f0;
    border-radius: 4px;
    color: #6b7280;
    position: relative;
}

.recommendation-list li:last-child {
    margin-bottom: 0;
}

/* 建议列表在不同状态下的颜色 */
.row-valid .recommendation-list li {
    background-color: #f0fdf4;
    color: #6b7280;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 4px 0;
    border: none;
    list-style: none;
}

.row-invalid .recommendation-list li {
    background-color: #fef2f2;
    color: #6b7280;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 4px 0;
    border: none;
    list-style: none;
}

.row-suspicious .recommendation-list li {
    background-color: #fffbeb;
    color: #6b7280;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 4px 0;
    border: none;
    list-style: none;
}

.row-unverified .recommendation-list li {
    background-color: #f8fafc;
    color: #6b7280;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 4px 0;
    border: none;
    list-style: none;
}

.row-error .recommendation-list li {
    background-color: #fef2f2;
    color: #6b7280;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 4px 0;
    border: none;
    list-style: none;
}

.row-timeout .recommendation-list li {
    background-color: #f8f2fe;
    color: #6b7280;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 4px 0;
    border: none;
    list-style: none;
}

/* Best Match 行样式 */
.best-match-row {
    background-color: #f8f9fa !important;
    border-top: 1px solid #e9ecef;
    font-size: 0.9em;
}

.best-match-row td {
    padding: 8px 12px !important;
    border-top: none !important;
}

.best-match-row.row-valid {
    background-color: #f0fdf4 !important;
    border-top: 1px solid #bbf7d0;
}

.best-match-row.row-invalid {
    background-color: #fef2f2 !important;
    border-top: 1px solid #fecaca;
}

.best-match-row.row-suspicious {
    background-color: #fffbeb !important;
    border-top: 1px solid #fed7aa;
}

.best-match-row.row-unverified {
    background-color: #f8fafc !important;
    border-top: 1px solid #e2e8f0;
}

.best-match-row.row-error {
    background-color: #fef2f2 !important;
    border-top: 1px solid #fecaca;
}

.best-match-row.row-timeout {
    background-color: #f8f2fe !important;
    border-top: 1px solid #e9d5ff;
}

/* Abstract 预览样式 */
.abstract-preview {
    font-size: 0.85em;
    line-height: 1.4;
    color: #6b7280;
}

/* Best Match 链接样式 */
.best-match-row a {
    font-size: 0.85em;
    text-decoration: none;
}

.best-match-row a:hover {
    text-decoration: underline;
}

/* ==================== 认证页面样式 ==================== */

/* 认证页面主体 */
.auth-page {
    background: #ffffff;
    min-height: 100vh;
    padding-top: 80px; /* 为导航栏留出空间 */
    font-family: 'Nunito', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 认证容器 */
.auth-container {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 认证卡片 */
.auth-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    position: relative;
    border: 1px solid #e5e7eb;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4c63d2 0%, #6366f1 50%, #8b5cf6 100%);
}

/* 语言切换按钮 */
.auth-card .language-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.auth-card .language-switch .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.auth-card .language-switch .btn.active {
    background: #4c63d2;
    border-color: #4c63d2;
    color: white;
}

/* 认证头部 */
.auth-header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4c63d2 0%, #6366f1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(76, 99, 210, 0.3);
}

.auth-logo i {
    font-size: 32px;
    color: white;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 10px;
    background: linear-gradient(135deg, #4c63d2 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

/* 认证表单 */
.auth-form {
    margin-bottom: 30px;
}

.auth-form .form-group {
    margin-bottom: 25px;
}

.auth-form label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
}

.auth-form .input-group {
    position: relative;
}

.auth-form .input-group-text {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-right: none;
    color: #64748b;
    border-radius: 12px 0 0 12px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.auth-form .form-control {
    border: 2px solid #e2e8f0;
    border-left: none;
    border-radius: 0 12px 12px 0;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.auth-form .form-control:focus {
    border-color: #4c63d2;
    box-shadow: 0 0 0 3px rgba(76, 99, 210, 0.1);
    outline: none;
}

.auth-form .form-control:focus + .input-group-text,
.auth-form .input-group:focus-within .input-group-text {
    border-color: #4c63d2;
    background: #f0f4ff;
    color: #4c63d2;
}

.auth-form .input-group .btn-outline-secondary {
    border: 2px solid #ffffff;
    border-left: none;
    border-radius: 0 12px 12px 0;
    background: #ffffff;
    color: #64748b;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.auth-form .input-group .btn-outline-secondary:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #475569;
}

.auth-form .form-text {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 6px;
}

.text-muted {
    color: #6c757d !important;
}

.auth-form .form-check {
    margin: 25px 0;
}

.auth-form .form-check-input {
    margin-top: 0.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
}

.auth-form .form-check-input:checked {
    background-color: #4c63d2;
    border-color: #4c63d2;
}

.auth-form .form-check-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-left: 8px;
}

.auth-form .form-check-label a {
    color: #4c63d2;
    text-decoration: none;
    font-weight: 500;
}

.auth-form .form-check-label a:hover {
    text-decoration: underline;
}

/* 认证按钮 */
.btn-auth {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, #4c63d2 0%, #6366f1 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 99, 210, 0.3);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 99, 210, 0.4);
    background: linear-gradient(135deg, #3b52d1 0%, #5856f0 100%);
}

.btn-auth:active {
    transform: translateY(0);
}

/* 认证页脚 */
.auth-footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
}

.auth-footer p {
    color: #64748b;
    margin: 0 0 15px;
    font-size: 0.95rem;
}

.auth-footer .btn-outline-primary {
    border: 2px solid #4c63d2;
    color: #4c63d2;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-footer .btn-outline-primary:hover {
    background: #4c63d2;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(76, 99, 210, 0.3);
}

/* 返回首页链接 */
.back-home {
    text-align: center;
    margin-top: 20px;
}

.back-home .btn-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-home .btn-link:hover {
    color: #4c63d2;
    text-decoration: none;
}

.back-home .btn-link i {
    transition: transform 0.3s ease;
}

.back-home .btn-link:hover i {
    transform: translateX(-3px);
}

/* 响应式设计 */
@media (max-width: 576px) {
    .auth-page {
        padding: 15px;
    }
    
    .auth-card {
        padding: 30px 25px;
        border-radius: 15px;
    }
    
    .auth-title {
        font-size: 1.6rem;
    }
    
    .auth-logo {
        width: 60px;
        height: 60px;
    }
    
    .auth-logo i {
        font-size: 24px;
    }
    
    .auth-card .language-switch {
        position: static;
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .auth-header {
        margin-top: 0;
    }
}

/* 错误和成功状态样式 */
.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-control.is-valid {
    border-color: #28a745;
}

.form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.invalid-feedback {
    display: block;
    font-size: 0.85rem;
    color: #dc3545;
    margin-top: 6px;
}

.valid-feedback {
    display: block;
    font-size: 0.85rem;
    color: #28a745;
    margin-top: 6px;
}

/* 加载状态 */
.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-auth .spinner-border {
    width: 1rem;
    height: 1rem;
    margin-right: 8px;
}

/* 模态框样式优化 */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    border-radius: 15px 15px 0 0;
    background: #f8fafc;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 15px 15px;
    background: #f8fafc;
}

/* 认证页面样式 */
.auth-page {
    background: #ffffff;
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 500px;
    margin: 0 auto;
}

/* 语言切换 */
.auth-lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: #4c63d2;
    background: #f8fafc;
    border-color: #cbd5e1;
    text-decoration: none;
}

.lang-btn.active {
    color: #ffffff;
    background: #4c63d2;
    border-color: #4c63d2;
}

/* 认证头部 */
.auth-header {
    text-align: center;
    margin-bottom: 24px;
    width: 100%;
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #24292f;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: #656d76;
    font-size: 0.875rem;
    margin: 0;
    font-weight: 400;
}

/* 认证表单 */
.auth-form {
    margin-bottom: 16px;
    width: 100%;
}

.auth-form .form-group {
    margin-bottom: 12px;
}

.auth-form label {
    font-weight: 600;
    color: #24292f;
    margin-bottom: 6px;
    display: block;
    font-size: 0.875rem;
}

.auth-form .input-group {
    position: relative;
    display: flex;
    width: 100%;
}

.auth-form .input-group-text {
    display: none;
}

.auth-form .form-control {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    width: 100%;
    height: 36px;
    background-color: #f6f8fa;
    color: #24292f;
}

.auth-form .form-control:focus {
    border-color: #d0d7de;
    box-shadow: none;
    background-color: #ffffff;
    outline: none;
}

.auth-form .toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid #d0d7de;
    background: #ffffff;
    color: #64748b;
    border-color: #ffffff;
    padding: 0;
    cursor: pointer;
    font-size: 0.875rem;
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10;
    transition: all 0.2s ease;
}

.auth-form .toggle-password:hover {
    color: #0969da;
    border-color: #0969da;
}

.auth-form .toggle-password:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: none;
}

/* 确保密码输入框为toggle-password按钮留出空间 */
.auth-form .input-group .form-control[type="password"],
.auth-form .input-group .form-control[type="text"] {
    padding-right: 45px;
}

.auth-form .form-text {
    font-size: 0.75rem;
    color: #656d76;
    margin-top: 2px;
    line-height: 0.5 !important;
    margin-bottom: 0.05rem !important;
}

.auth-form small.form-text.text-muted {
    line-height: 0.5 !important;
    margin-bottom: 0.05rem !important;
}

/* 登录页面错误提示 */
#loginErrorAlert {
    margin-bottom: 16px;
    border-radius: 6px;
    border: 1px solid #d1242f;
    background-color: #fff8f8;
    color: #d1242f;
    padding: 12px 16px;
    font-size: 0.875rem;
    line-height: 1.4;
    animation: slideDown 0.3s ease-out;
}

#loginErrorAlert i {
    color: #d1242f;
}

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

.auth-form .form-check {
    margin-bottom: 12px;
}

.auth-form .form-check-label {
    font-size: 0.75rem;
    color: #656d76;
    font-weight: 400;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.auth-link {
    color: #0969da;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
}

.auth-link:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.auth-submit-btn {
    width: 100%;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    background: linear-gradient(135deg, #4c63d2 0%, #6366f1 100%);
    border: none;
    color: #ffffff;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    margin-top: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(76, 99, 210, 0.3);
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #3b4bc7 0%, #5856eb 100%);
    box-shadow: 0 4px 12px rgba(76, 99, 210, 0.4);
    transform: translateY(-1px);
}

.auth-submit-btn:active {
    background: linear-gradient(135deg, #3b4bc7 0%, #5856eb 100%);
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(76, 99, 210, 0.3);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #94a3b8;
    transform: none;
    box-shadow: none;
}

/* 分隔线 */
.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    background: #ffffff;
    color: #64748b;
    padding: 0 15px;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* 认证页脚 */
.auth-footer {
    text-align: center;
    margin-bottom: 16px;
    padding: 16px 0;
    border-top: 1px solid #d0d7de;
}

.auth-footer p {
    color: #656d76;
    font-size: 0.875rem;
    margin: 0;
    font-weight: 400;
}

/* 返回首页 */
.back-to-home {
    text-align: center;
    margin-top: 24px;
}

.back-link {
    color: #656d76;
    text-decoration: none;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-weight: 400;
}

.back-link:hover {
    color: #0969da;
    text-decoration: none;
}

.back-link i {
    font-size: 0.75rem;
}

/* 验证消息样式 */
.validation-message {
    display: block;
    margin-top: 4px;
    font-size: 0.875rem;
    line-height: 0.8;
    font-weight: 400;
}

.validation-message.text-success {
    color: #198754 !important;
}

.validation-message.text-danger {
    color: #dc3545 !important;
    line-height: 1.4 !important;
    margin-top: 6px;
    margin-bottom: 4px;
}

/* 输入框验证状态样式增强 */
.auth-form .form-control.is-valid {
    border-color: #d0d7de;
}

.auth-form .form-control.is-valid:focus {
    border-color: #d0d7de;
    box-shadow: none;
}

.auth-form .form-control.is-invalid {
    border-color: #d0d7de;
}

.auth-form .form-control.is-invalid:focus {
    border-color: #d0d7de;
    box-shadow: none;
}

.auth-form .input-group .form-control.is-valid + .toggle-password {
    border-color: #d0d7de;
}

.auth-form .input-group .form-control.is-invalid + .toggle-password {
    border-color: #d0d7de;
}

.auth-form .input-group .input-group-text {
    border-color: #e2e8f0;
}

.auth-form .input-group .form-control.is-valid ~ .input-group-text,
.auth-form .input-group .form-control.is-valid + .input-group-text {
    border-color: #d0d7de;
}

.auth-form .input-group .form-control.is-invalid ~ .input-group-text,
.auth-form .input-group .form-control.is-invalid + .input-group-text {
    border-color: #d0d7de;
}

/* 验证状态下的toggle-password按钮 */
.auth-form .input-group .form-control.is-valid ~ .toggle-password {
    border-color: #ffffff;
}

.auth-form .input-group .form-control.is-invalid ~ .toggle-password {
    border-color: #ffffff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-container {
        max-width: 500px;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .auth-page {
        padding: 15px;
    }
    
    .auth-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .auth-card {
        padding: 30px 25px;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .auth-logo span {
        font-size: 1.5rem;
    }
    
    .auth-lang-switch {
        top: 15px;
        right: 15px;
    }
}