/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* 应用主容器 */
.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 认证区域样式 - 增强版 */
.auth-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-screen {
    width: 100%;
    max-width: 520px;
    padding: 2rem;
}

.auth-container {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.auth-header p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

/* 认证功能展示 */
.auth-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    font-size: 0.9rem;
    color: #4a5568;
}

.feature-icon {
    font-size: 1.2rem;
}

.auth-actions {
    margin: 2rem 0;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.auth-btn.primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.auth-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(14, 165, 233, 0.4);
}

.auth-btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.auth-btn.primary:hover::before {
    left: 100%;
}

.auth-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.auth-footer p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.auth-security {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.security-badge {
    padding: 0.25rem 0.75rem;
    background: #f0f9ff;
    color: #0369a1;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
}

/* 主应用界面布局 */
.main-app {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 - 增强版 */
.sidebar {
    width: 320px;
    background: white;
    border-right: 1px solid #e2e8f0;
    padding: 1.5rem;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
    margin-bottom: 2rem;
}

.sidebar-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.user-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 1rem;
    border-left: 4px solid #0ea5e9;
}

.user-welcome {
    font-weight: 600;
    color: #0284c7;
    margin-bottom: 0.5rem;
}

.user-status {
    background: #d1fae5;
    color: #065f46;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.user-details {
    font-size: 0.85rem;
    color: #0369a1;
}

.user-role, .user-session {
    margin: 0.25rem 0;
}

.sidebar-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.setting-group {
    margin-bottom: 1rem;
}

.setting-group label {
    display: block;
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.setting-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
}

.mode-description {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 6px;
}

.system-status {
    font-size: 0.9rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.status-label {
    color: #6b7280;
}

.status-value {
    font-weight: 600;
    color: #059669;
}

.status-value.warning {
    color: #d97706;
}

.status-value.error {
    color: #dc2626;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.logout-btn {
    width: 100%;
    padding: 0.75rem;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    max-width: calc(100vw - 320px);
}

/* 主标题样式 */
.main-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.2);
    text-align: center;
}

.main-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.header-info {
    font-size: 0.9rem;
    opacity: 0.8;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    color: #0369a1;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-content {
    color: #374151;
}

/* 布局样式 */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.column h3 {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.custom-location {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.soil-input-section {
    margin-top: 1rem;
}

.soil-results {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s ease;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #0ea5e9;
    background: #f0f9ff;
}

.file-input {
    display: none;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #0ea5e9;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.file-label:hover {
    background: #0284c7;
    transform: translateY(-1px);
}

.upload-hint {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.info-message {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    color: #92400e;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    justify-content: center;
}

.btn.primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn.secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn.secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.btn.full-width {
    width: 100%;
}

.form-actions {
    margin-top: 2rem;
    text-align: center;
}

/* 结果展示样式 */
.result-section {
    margin-top: 2rem;
}

.result-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #10b981;
}

.result-header {
    color: #047857;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
/* 状态日志区域 */
.progress-log {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: #333;
}

.progress-log-item {
    padding: 4px 0;
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
    padding-left: 8px;
    transition: all 0.3s ease;
}

.progress-log-item.active {
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.progress-log-item.completed {
    border-left-color: #10b981;
    color: #059669;
}

.progress-log-item.error {
    border-left-color: #ef4444;
    color: #dc2626;
}

.progress-log-time {
    color: #6b7280;
    font-size: 11px;
    margin-right: 8px;
    min-width: 60px;
}

.progress-log-icon {
    margin-right: 6px;
    font-size: 14px;
}

.progress-log-text {
    flex: 1;
}
/* 进度条容器 - 增强样式 */
.progress-container {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}


.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22c55e, #16a34a);
    border-radius: 10px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    position: relative;
    overflow: hidden;
}

/* 进度条动画效果 */
.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-text {
    color: white;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.result-content {
    line-height: 1.8;
    color: #374151;
}

.result-content h1, .result-content h2, .result-content h3 {
    color: #2d3748;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.result-content h1 {
    font-size: 1.5rem;
    border-bottom: 2px solid #0ea5e9;
    padding-bottom: 0.5rem;
}

.result-content h2 {
    font-size: 1.25rem;
    color: #0369a1;
}

.result-content h3 {
    font-size: 1.1rem;
    color: #075985;
}

.result-content p {
    margin-bottom: 1rem;
}

.result-content ul, .result-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.result-content li {
    margin-bottom: 0.25rem;
}

.download-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.download-section h3 {
    color: #374151;
    margin-bottom: 1rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.document-info {
    font-size: 0.9rem;
    color: #6b7280;
    background: #f9fafb;
    padding: 0.75rem;
    border-radius: 8px;
}

.response-time {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #d1fae5;
    color: #065f46;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

/* 页脚样式 */
.footer {
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
}

.footer p {
    margin-bottom: 0.5rem;
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #0ea5e9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast提示样式 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #10b981;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 350px;
    animation: slideIn 0.3s ease;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast.info {
    border-left-color: #0ea5e9;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-app {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .main-content {
        max-width: 100%;
    }
    
    .two-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .header-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .auth-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 1.5rem;
    }
    
    .main-header h1 {
        font-size: 1.8rem;
    }
    
    .main-header p {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .auth-container {
        padding: 2rem 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 2rem;
    }
    
    .login-screen {
        padding: 1rem;
    }
    
    .auth-security {
        flex-direction: column;
        align-items: center;
    }
}

/* 土壤指标网格 */
.soil-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.soil-metric {
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.soil-metric-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0284c7;
    display: block;
}

.soil-metric-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.soil-results-header {
    margin-bottom: 1rem;
}

.soil-results-header h4 {
    color: #0369a1;
    margin-bottom: 0.5rem;
}

.sample-info {
    font-size: 0.9rem;
    color: #6b7280;
}

.fertility-info {
    margin-top: 1rem;
    text-align: center;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.success {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.error {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.info {
    background: #dbeafe;
    color: #1e40af;
}
/* 层级选择样式 */
.hierarchy-icon {
    display: inline-block;
    width: 24px;
    text-align: center;
}

.current-address-display {
    margin: 15px 0;
    padding: 12px;
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    border-radius: 4px;
}

.current-address-display label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 5px;
}

.address-text {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.custom-location {
    margin-top: 15px;
}

.custom-location details {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
}

.custom-location summary {
    cursor: pointer;
    font-weight: 500;
    user-select: none;
    padding: 5px;
}

.custom-location summary:hover {
    color: #3b82f6;
}

.custom-location-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.soil-results {
    padding: 15px;
    background: #f8fafc;
    border-radius: 6px;
    min-height: 200px;
}

.hint-text {
    color: #64748b;
    text-align: center;
    padding: 40px 20px;
    line-height: 1.6;
}

.soil-data-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.soil-data-card h4 {
    margin: 0 0 10px 0;
    color: #1e293b;
}

.soil-properties {
    margin: 15px 0;
}

.prop-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.prop-label {
    font-weight: 500;
    color: #64748b;
}

.prop-value {
    font-weight: 600;
    color: #1e293b;
}

.fertility-badge {
    margin-top: 15px;
    padding: 10px;
    background: #dcfce7;
    border-radius: 6px;
    text-align: center;
    color: #166534;
}

.fertility-badge strong {
    color: #15803d;
    font-size: 16px;
}
/* 高德地图容器样式 */
.map-container {
    margin: 12px 0;
}

.map-tips {
    padding: 8px 12px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
    font-size: 13px;
    color: #1565c0;
}

#amap-search-box {
    display: flex;
    flex-direction: column;
}

/* 地图控件优化 */
.amap-logo,
.amap-copyright {
    opacity: 0.6;
}
/* 示例输入区域样式 */
.example-inputs {
    margin-top: 12px;
    background: #f8f9fa;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.example-label {
    display: block;
    margin-bottom: 10px;
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

.example-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.example-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.example-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.example-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.2);
}
/* 语言切换按钮样式 */
.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.lang-switch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.lang-switch-btn:active {
    transform: translateY(0);
}

.lang-icon {
    font-size: 16px;
}

#lang-text {
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.5px;
}
/* 示例按钮的 emoji 样式 */
.btn-emoji {
    font-size: 16px;
    margin-right: 4px;
}

.example-btn span[data-i18n] {
    font-size: 13px;
}
/* ========== 登录表单样式 ========== */
.login-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.login-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.login-form .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
    font-family: inherit;
}

.login-form .form-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.login-form .form-input::placeholder {
    color: #999;
}

.login-form .auth-btn {
    width: 100%;
    margin-top: 10px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.login-form .auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.login-form .auth-btn:active {
    transform: translateY(0);
}

/* 登录表单错误状态 */
.login-form .form-input.error {
    border-color: #dc3545;
}

.login-form .error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.login-form .form-group.has-error .error-message {
    display: block;
}