/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0a0f1c, #1a2332, #0d1929);
    color: #e8f4fd;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* 增强的背景动画 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.grid-lines {
    position: absolute;
    width: 120%;
    height: 120%;
    background-image: 
        linear-gradient(rgba(100, 181, 246, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 181, 246, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 25s linear infinite;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, #64b5f6, transparent),
        radial-gradient(1px 1px at 40% 70%, #ffd54f, transparent),
        radial-gradient(1px 1px at 90% 40%, #81c784, transparent),
        radial-gradient(2px 2px at 60% 10%, #90caf9, transparent),
        radial-gradient(1px 1px at 10% 80%, #ff6b6b, transparent);
    background-size: 400px 400px, 300px 300px, 250px 250px, 350px 350px, 200px 200px;
    animation: particleFloat 20s ease-in-out infinite alternate;
}

.tech-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(100, 181, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 213, 79, 0.03) 0%, transparent 50%);
    animation: techPulse 8s ease-in-out infinite alternate;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

@keyframes particleFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-30px, -30px) rotate(360deg); }
}

@keyframes techPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

/* 头部样式增强 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 50px;
    background: rgba(13, 25, 41, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 3px solid transparent;
    background-image: linear-gradient(rgba(13, 25, 41, 0.98), rgba(13, 25, 41, 0.98)),
                      linear-gradient(90deg, #1976d2, #64b5f6, #ffd54f, #64b5f6, #1976d2);
    background-origin: border-box;
    background-clip: content-box, border-box;
    position: relative;
    box-shadow: 0 4px 30px rgba(25, 118, 210, 0.4);
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1976d2, #64b5f6, #ffd54f);
    border-radius: 50%;
    position: relative;
    animation: logoRotate 15s linear infinite;
    box-shadow: 0 0 30px rgba(25, 118, 210, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-inner {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.logo-text h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #64b5f6, #ffd54f, #81c784);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(100, 181, 246, 0.3);
}

.sub-title {
    font-size: 14px;
    color: #b3d9ff;
    opacity: 0.9;
    font-weight: 300;
}

@keyframes logoRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 20px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(129, 199, 132, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(129, 199, 132, 0.3);
}

.status-text {
    font-size: 14px;
    color: #81c784;
    font-weight: 500;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: #81c784;
    border-radius: 50%;
    animation: statusBlink 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px #81c784;
}

.union-badge {
    padding: 8px 15px;
    background: linear-gradient(135deg, #ffd54f, #ffb74d);
    color: #0a0f1c;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 213, 79, 0.4);
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* 主内容区域 */
.main-content {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 40px;
    padding: 50px;
    min-height: calc(100vh - 140px);
}

/* 扫描区域增强 */
.scan-area {
    display: flex;
    justify-content: center;
    align-items: center;
}

.scan-frame {
    position: relative;
    width: 550px;
    height: 650px;
    background: rgba(13, 25, 41, 0.95);
    border-radius: 25px;
    padding: 40px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 0 50px rgba(25, 118, 210, 0.3),
        inset 0 0 30px rgba(100, 181, 246, 0.1);
    overflow: hidden;
}

.tech-corners {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid #64b5f6;
    border-radius: 8px;
    animation: cornerGlow 2s ease-in-out infinite alternate;
}

.corner.top-left {
    top: 15px;
    left: 15px;
    border-right: none;
    border-bottom: none;
    border-radius: 8px 0 0 0;
}

.corner.top-right {
    top: 15px;
    right: 15px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 8px 0 0;
}

.corner.bottom-left {
    bottom: 15px;
    left: 15px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 8px;
}

.corner.bottom-right {
    bottom: 15px;
    right: 15px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 8px 0;
}

@keyframes cornerGlow {
    0% { box-shadow: 0 0 10px rgba(100, 181, 246, 0.5); }
    100% { box-shadow: 0 0 25px rgba(100, 181, 246, 0.8); }
}

.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 25px;
    overflow: hidden;
}

/* 多重扫描线效果 */
.scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 10;
}

.scan-line.primary {
    top: 0;
    background: linear-gradient(90deg, transparent, #64b5f6, #ffd54f, #64b5f6, transparent);
    animation: scanAnimation 4s ease-in-out infinite;
    opacity: 0.9;
    box-shadow: 0 0 10px #64b5f6;
}

.scan-line.secondary {
    top: 0;
    background: linear-gradient(90deg, transparent, #ff6b6b, #ff8a80, #ff6b6b, transparent);
    animation: scanAnimation 6s ease-in-out infinite 0.5s;
    opacity: 0.6;
    height: 2px;
    box-shadow: 0 0 8px #ff6b6b;
}

.scan-line.tertiary {
    top: 0;
    background: linear-gradient(90deg, transparent, #81c784, #a5d6a7, #81c784, transparent);
    animation: scanAnimation 5s ease-in-out infinite 1s;
    opacity: 0.5;
    height: 1px;
    box-shadow: 0 0 6px #81c784;
}

.scan-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(100, 181, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 181, 246, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: gridShift 3s ease-in-out infinite alternate;
    opacity: 0.3;
}

@keyframes scanAnimation {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(650px); opacity: 0; }
}

@keyframes gridShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

/* 雷达扫描效果 */
.radar-scan {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid rgba(100, 181, 246, 0.3);
    z-index: 5;
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 150px;
    background: linear-gradient(to bottom, #64b5f6, transparent);
    transform-origin: bottom center;
    animation: radarSweep 3s linear infinite;
    box-shadow: 0 0 10px #64b5f6;
}

.radar-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.radar-circle {
    position: absolute;
    border: 1px solid rgba(100, 181, 246, 0.2);
    border-radius: 50%;
    animation: radarPulse 2s ease-in-out infinite;
}

.radar-circle:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0s;
}

.radar-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0.7s;
}

.radar-circle:nth-child(3) {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1.4s;
}

@keyframes radarSweep {
    0% { transform: translateX(-50%) translateY(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) translateY(-50%) rotate(360deg); }
}

@keyframes radarPulse {
    0% { opacity: 0.8; border-color: rgba(100, 181, 246, 0.8); }
    50% { opacity: 0.3; border-color: rgba(255, 213, 79, 0.6); }
    100% { opacity: 0.8; border-color: rgba(100, 181, 246, 0.8); }
}

/* 瞄准镜效果 */
.targeting-system {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
}

.crosshair {
    position: absolute;
    background: linear-gradient(90deg, transparent, #ff6b6b, #ff8a80, #ff6b6b, transparent);
    animation: crosshairBlink 2s ease-in-out infinite;
    box-shadow: 0 0 5px #ff6b6b;
}

.crosshair.horizontal {
    top: 50%;
    left: 20%;
    width: 60%;
    height: 2px;
    transform: translateY(-50%);
}

.crosshair.vertical {
    top: 20%;
    left: 50%;
    width: 2px;
    height: 60%;
    transform: translateX(-50%);
}

.targeting-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    border: 2px solid #ff6b6b;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: targetingPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
}

.targeting-corners {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.target-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #ff6b6b;
    animation: cornerBlink 1s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.target-corner.tl {
    top: 30%;
    left: 30%;
    border-right: none;
    border-bottom: none;
    border-radius: 5px 0 0 0;
}

.target-corner.tr {
    top: 30%;
    right: 30%;
    border-left: none;
    border-bottom: none;
    border-radius: 0 5px 0 0;
}

.target-corner.bl {
    bottom: 30%;
    left: 30%;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 5px;
}

.target-corner.br {
    bottom: 30%;
    right: 30%;
    border-left: none;
    border-top: none;
    border-radius: 0 0 5px 0;
}

@keyframes crosshairBlink {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.3; }
}

@keyframes targetingPulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes cornerBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 脉冲扫描效果 */
.pulse-scan {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 3;
}

.pulse-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 2px solid #81c784;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseExpand 3s ease-out infinite;
    box-shadow: 0 0 10px rgba(129, 199, 132, 0.5);
}

.pulse-wave:nth-child(2) {
    animation-delay: 1s;
}

.pulse-wave:nth-child(3) {
    animation-delay: 2s;
}

@keyframes pulseExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
        border-color: rgba(129, 199, 132, 1);
    }
    70% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0.3;
        border-color: rgba(129, 199, 132, 0.3);
    }
    100% {
        transform: translate(-50%, -50%) scale(5);
        opacity: 0;
        border-color: rgba(129, 199, 132, 0);
    }
}

/* 数据流效果 */
.data-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
}

.stream-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #ffd54f, transparent);
    animation: streamFlow 2s linear infinite;
    box-shadow: 0 0 5px #ffd54f;
}

.stream-line.left {
    left: 20%;
    animation-delay: 0s;
}

.stream-line.right {
    right: 20%;
    animation-delay: 1s;
}

.stream-data {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
}

.data-block {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ffd54f;
    border-radius: 2px;
    animation: dataMove 4s linear infinite;
    box-shadow: 0 0 5px #ffd54f;
}

.data-block:nth-child(1) {
    top: 25%;
    left: 0;
    animation-delay: 0s;
}

.data-block:nth-child(2) {
    top: 50%;
    right: 0;
    animation-delay: 1.3s;
}

.data-block:nth-child(3) {
    top: 75%;
    left: 0;
    animation-delay: 2.6s;
}

@keyframes streamFlow {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

@keyframes dataMove {
    0% { transform: translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(500px); opacity: 0; }
}

/* 扫描状态指示器 */
.scan-indicators {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 7;
}

.indicator {
    position: absolute;
    font-size: 20px;
    color: #64b5f6;
    animation: indicatorBlink 1.5s ease-in-out infinite;
    text-shadow: 0 0 10px #64b5f6;
}

.indicator.top-left {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.indicator.top-right {
    top: 10%;
    right: 10%;
    animation-delay: 0.4s;
}

.indicator.bottom-left {
    bottom: 10%;
    left: 10%;
    animation-delay: 0.8s;
}

.indicator.bottom-right {
    bottom: 10%;
    right: 10%;
    animation-delay: 1.2s;
}

@keyframes indicatorBlink {
    0%, 100% { opacity: 1; color: #64b5f6; }
    50% { opacity: 0.5; color: #ffd54f; }
}

/* 扫描激活状态 */
.scan-overlay.active {
    visibility: visible;
    opacity: 1;
}

.scan-overlay.intense {
    animation: overlayPulse 2s ease-in-out infinite;
}

.scan-frame.scanning-active {
    border-color: #64b5f6;
    box-shadow: 
        0 0 50px rgba(25, 118, 210, 0.5),
        inset 0 0 30px rgba(100, 181, 246, 0.2);
    animation: framePulse 2s ease-in-out infinite;
}

/* 扫描呼吸效果 */
@keyframes scanBreathing {
    0% { 
        transform: scale(1); 
        box-shadow: 0 0 50px rgba(25, 118, 210, 0.3);
    }
    50% { 
        transform: scale(1.02); 
        box-shadow: 0 0 70px rgba(25, 118, 210, 0.6);
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 0 50px rgba(25, 118, 210, 0.3);
    }
}

/* 框架脉冲效果 */
@keyframes framePulse {
    0% { border-color: #64b5f6; }
    50% { border-color: #ffd54f; }
    100% { border-color: #64b5f6; }
}

/* 覆盖层脉冲效果 */
@keyframes overlayPulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* 扫描完成效果 */
.scan-frame.scan-complete {
    border-color: #4caf50;
    box-shadow: 
        0 0 60px rgba(76, 175, 80, 0.7),
        inset 0 0 40px rgba(129, 199, 132, 0.3);
    animation: completePulse 1s ease-in-out 3;
}

@keyframes completePulse {
    0% { transform: scale(1); border-color: #4caf50; }
    50% { transform: scale(1.05); border-color: #81c784; }
    100% { transform: scale(1); border-color: #4caf50; }
}

/* 增强扫描线在激活状态下的效果 */
.scan-overlay.active .scan-line.primary {
    animation-duration: 3s;
    opacity: 1;
    box-shadow: 0 0 15px #64b5f6, 0 0 30px #64b5f6;
}

.scan-overlay.active .scan-line.secondary {
    animation-duration: 4s;
    opacity: 0.8;
    box-shadow: 0 0 12px #ff6b6b, 0 0 24px #ff6b6b;
}

.scan-overlay.active .scan-line.tertiary {
    animation-duration: 3.5s;
    opacity: 0.7;
    box-shadow: 0 0 10px #81c784, 0 0 20px #81c784;
}

/* 激活状态下的雷达效果增强 */
.scan-overlay.active .radar-sweep {
    animation-duration: 2s;
    box-shadow: 0 0 20px #64b5f6, 0 0 40px #64b5f6;
}

.scan-overlay.active .radar-circle {
    border-width: 2px;
    animation-duration: 1.5s;
}

/* 激活状态下的瞄准镜效果增强 */
.scan-overlay.active .crosshair {
    animation-duration: 1.5s;
    box-shadow: 0 0 10px #ff6b6b, 0 0 20px #ff6b6b;
}

.scan-overlay.active .targeting-circle {
    animation-duration: 1s;
    border-width: 3px;
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.7);
}

/* 激活状态下的脉冲效果增强 */
.scan-overlay.active .pulse-wave {
    animation-duration: 2s;
    border-width: 3px;
    box-shadow: 0 0 15px rgba(129, 199, 132, 0.7);
}

/* 激活状态下的数据流效果增强 */
.scan-overlay.active .stream-line {
    animation-duration: 1.5s;
    box-shadow: 0 0 10px #ffd54f, 0 0 20px #ffd54f;
}

.scan-overlay.active .data-block {
    animation-duration: 3s;
    box-shadow: 0 0 10px #ffd54f, 0 0 20px #ffd54f;
}

/* 激活状态下的指示器效果增强 */
.scan-overlay.active .indicator {
    animation-duration: 1s;
    font-size: 24px;
    text-shadow: 0 0 15px currentColor, 0 0 30px currentColor;
}

/* 用户信息表单样式 */
.user-info-form {
    background: rgba(13, 25, 41, 0.95);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(20px);
    box-shadow:
        0 0 50px rgba(25, 118, 210, 0.3),
        inset 0 0 30px rgba(100, 181, 246, 0.1);
    border: 1px solid rgba(100, 181, 246, 0.3);
}

/* 会计表单分区样式 */
.form-section {
    margin-bottom: 35px;
    padding: 25px;
    background: rgba(25, 35, 50, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.form-section h4 {
    color: #ffd700;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h4::before {
    content: "📋";
    font-size: 20px;
}

/* 全宽字段样式 */
.form-group.full-width {
    grid-column: 1 / -1;
}

/* 复选框组样式 */
.checkbox-group {
    align-items: flex-start;
}

.checkbox-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(100, 181, 246, 0.1);
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #e8f4fd;
    font-size: 14px;
}

.checkbox-label:hover {
    background: rgba(100, 181, 246, 0.2);
    border-color: #64b5f6;
    transform: translateY(-2px);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #64b5f6;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked + span {
    color: #ffd700;
    font-weight: 500;
}

.checkbox-label:has(input:checked) {
    background: rgba(255, 215, 0, 0.15);
    border-color: #ffd700;
}

/* 响应式复选框 */
@media (max-width: 768px) {
    .checkbox-options {
        grid-template-columns: 1fr;
    }
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h3 {
    color: #64b5f6;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-header p {
    color: #b3d9ff;
    font-size: 14px;
    opacity: 0.9;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #64b5f6;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid rgba(100, 181, 246, 0.3);
    border-radius: 8px;
    background: rgba(13, 25, 41, 0.8);
    color: #e8f4fd;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 20px rgba(100, 181, 246, 0.3);
    background: rgba(13, 25, 41, 0.9);
}

.form-group input::placeholder {
    color: #90a4ae;
}

.form-group select option {
    background: #1a2332;
    color: #e8f4fd;
}

.form-actions {
    display: flex;
    justify-content: center;
}

.next-button {
    background: linear-gradient(135deg, #1976d2, #64b5f6);
    border: none;
    border-radius: 30px;
    padding: 15px 40px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.4);
}

.next-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(25, 118, 210, 0.6);
}

.next-button:active {
    transform: translateY(0);
}

.back-button {
    background: rgba(100, 181, 246, 0.2);
    border: 2px solid rgba(100, 181, 246, 0.5);
    border-radius: 30px;
    padding: 12px 30px;
    color: #64b5f6;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-button:hover {
    background: rgba(100, 181, 246, 0.3);
    transform: translateY(-2px);
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 20px;
}

/* 摄像头区域样式 */
.camera-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.camera-frame {
    position: relative;
    width: 100%;
    height: 400px;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(100, 181, 246, 0.6);
    box-shadow: 0 0 30px rgba(100, 181, 246, 0.3);
}

.camera-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 17px;
    transform: scaleX(-1); /* 水平镜像翻转，让用户看到的是镜像效果 */
}

.face-detection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.face-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.guide-text {
    color: #64b5f6;
    font-size: 14px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.face-outline {
    width: 200px;
    height: 250px;
    border: 3px solid #64b5f6;
    border-radius: 50%;
    position: relative;
    animation: faceOutlinePulse 2s ease-in-out infinite;
}

.face-outline::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(100, 181, 246, 0.3);
    border-radius: 50%;
    animation: faceOutlinePulse 2s ease-in-out infinite 0.5s;
}

@keyframes faceOutlinePulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.7;
    }
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.camera-button {
    background: linear-gradient(135deg, #1976d2, #64b5f6);
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
}

.camera-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.6);
}

.camera-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.upload-tips {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(100, 181, 246, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.upload-tips p {
    color: #b3d9ff;
    font-size: 13px;
    margin: 0;
}

/* 上传区域增强 */
.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    border: 3px dashed rgba(100, 181, 246, 0.6);
    border-radius: 20px;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    position: relative;
    background: rgba(25, 118, 210, 0.05);
}

.upload-area:hover {
    border-color: #ffd54f;
    background: rgba(255, 213, 79, 0.1);
    box-shadow: 0 0 30px rgba(255, 213, 79, 0.3);
    transform: scale(1.02);
}

.upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-label {
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 1;
}

.upload-icon {
    position: relative;
    margin-bottom: 20px;
}

.camera-icon {
    font-size: 60px;
    animation: cameraFloat 3s ease-in-out infinite alternate;
    display: block;
    margin-bottom: 20px;
}

.tech-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tech-circles .circle {
    position: absolute;
    border: 2px solid rgba(100, 181, 246, 0.3);
    border-radius: 50%;
    animation: circleExpand 2s ease-in-out infinite;
}

.tech-circles .circle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: -40px;
    left: -40px;
    animation-delay: 0s;
}

.tech-circles .circle:nth-child(2) {
    width: 120px;
    height: 120px;
    top: -60px;
    left: -60px;
    animation-delay: 0.7s;
}

.tech-circles .circle:nth-child(3) {
    width: 160px;
    height: 160px;
    top: -80px;
    left: -80px;
    animation-delay: 1.4s;
}

@keyframes cameraFloat {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-10px) scale(1.05); }
}

@keyframes circleExpand {
    0% { 
        transform: scale(0.8);
        opacity: 0.8;
        border-color: rgba(100, 181, 246, 0.8);
    }
    50% {
        opacity: 0.4;
        border-color: rgba(255, 213, 79, 0.6);
    }
    100% { 
        transform: scale(1.3);
        opacity: 0;
        border-color: rgba(100, 181, 246, 0);
    }
}

.upload-text h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #64b5f6;
    font-weight: 600;
}

.upload-text p {
    font-size: 16px;
    margin-bottom: 8px;
    color: #e8f4fd;
}

.upload-text span {
    font-size: 12px;
    color: #90a4ae;
}

/* 按钮增强 */
.controls {
    text-align: center;
}

.scan-button {
    position: relative;
    background: linear-gradient(135deg, #1976d2, #64b5f6, #1976d2);
    border: none;
    border-radius: 60px;
    padding: 18px 45px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 
        0 8px 25px rgba(25, 118, 210, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 20px;
}

.scan-button:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(25, 118, 210, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.scan-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, #555, #333);
}

.button-icon {
    font-size: 20px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.tech-info {
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(100, 181, 246, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.tech-info p {
    font-size: 12px;
    color: #b3d9ff;
    margin: 0;
}

/* 信息面板增强 */
.info-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    background: rgba(13, 25, 41, 0.98);
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(20px);
    position: relative;
    box-shadow: 
        0 8px 32px rgba(25, 118, 210, 0.2),
        inset 0 1px 0 rgba(100, 181, 246, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(25, 118, 210, 0.3),
        inset 0 1px 0 rgba(100, 181, 246, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    color: #64b5f6;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-badge {
    padding: 4px 12px;
    background: linear-gradient(135deg, #64b5f6, #1976d2);
    color: #fff;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-badge.positive {
    background: linear-gradient(135deg, #81c784, #4caf50);
}

.progress-container {
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(100, 181, 246, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1976d2, #64b5f6, #ffd54f);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 6px;
    position: relative;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    color: #b3d9ff;
    font-size: 14px;
    font-weight: 500;
}

.system-info {
    list-style: none;
}

.system-info li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(100, 181, 246, 0.15);
    font-size: 14px;
}

.system-info li:last-child {
    border-bottom: none;
}

.system-info li span:first-child {
    color: #90a4ae;
}

.highlight {
    color: #ffd54f;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 213, 79, 0.3);
}

/* 工会特色功能区域 */
.union-features .feature-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.union-features .feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(25, 118, 210, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(100, 181, 246, 0.2);
    transition: all 0.3s ease;
}

.union-features .feature-item:hover {
    background: rgba(25, 118, 210, 0.15);
    transform: translateX(5px);
}

.union-features .feature-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.union-features .feature-content h4 {
    color: #64b5f6;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.union-features .feature-content p {
    color: #b3d9ff;
    font-size: 12px;
    margin: 0;
}

/* 结果界面 */
.result-interface {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0f1c, #1a2332, #0d1929);
    z-index: 10;
}

.back-button {
    background: rgba(100, 181, 246, 0.2);
    border: 1px solid #64b5f6;
    border-radius: 25px;
    padding: 12px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64b5f6;
    font-weight: 500;
}

.back-button:hover {
    background: rgba(100, 181, 246, 0.4);
    transform: translateX(-5px);
}

.result-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    min-height: calc(100vh - 120px);
}

.result-image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.result-frame {
    position: relative;
    width: 400px;
    height: 500px;
    border: 2px solid #1976d2;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(13, 25, 41, 0.85);
    backdrop-filter: blur(15px);
    box-shadow: 0 0 40px rgba(25, 118, 210, 0.4);
}

.result-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ai-analysis-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    background: linear-gradient(135deg, #4caf50, #81c784);
    color: #fff;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.detection-points {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid #81c784;
    border-radius: 50%;
    animation: detectionPulse 2s ease-in-out infinite;
}

.detection-points::before,
.detection-points::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #1976d2;
    border-radius: 50%;
    box-shadow: 0 0 10px #1976d2;
}

.detection-points::before {
    top: 30%;
    left: 35%;
    animation: pointBlink 1s ease-in-out infinite;
}

.detection-points::after {
    top: 30%;
    right: 35%;
    animation: pointBlink 1s ease-in-out infinite 0.5s;
}

@keyframes detectionPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes pointBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* 图片信息区域 */
.image-info {
    width: 100%;
    background: rgba(13, 25, 41, 0.95);
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(15px);
}

.image-info h4 {
    color: #64b5f6;
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.mini-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: rgba(25, 118, 210, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.stat-label {
    font-size: 11px;
    color: #90a4ae;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #ffd54f;
}

.result-data-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.data-card {
    background: rgba(13, 25, 41, 0.95);
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.2);
    transition: all 0.3s ease;
}

.data-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(25, 118, 210, 0.3);
}

.main-results .feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.main-results .feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(25, 118, 210, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(100, 181, 246, 0.3);
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.main-results .feature-item:hover {
    background: rgba(25, 118, 210, 0.15);
    transform: translateY(0) scale(1.02);
}

.main-results .feature-item.positive {
    border-color: rgba(129, 199, 132, 0.6);
    background: rgba(129, 199, 132, 0.1);
}

.main-results .feature-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(100, 181, 246, 0.2);
}

.main-results .feature-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.main-results .feature-label {
    font-size: 12px;
    color: #90a4ae;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.main-results .feature-value {
    font-size: 18px;
    font-weight: bold;
    color: #81c784;
    text-shadow: 0 0 10px rgba(129, 199, 132, 0.3);
}

/* 工会特色报告样式 */
.report-section {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(13, 25, 41, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(100, 181, 246, 0.2);
    backdrop-filter: blur(10px);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s ease;
}

.report-section.fade-in {
    transform: translateY(0);
    opacity: 1;
}

.highlight-section {
    border: 2px solid rgba(255, 213, 79, 0.5);
    background: rgba(255, 213, 79, 0.05);
    box-shadow: 0 0 30px rgba(255, 213, 79, 0.2);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h4 {
    color: #64b5f6;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.assessment-badge, .tech-badge, .plan-badge, .leadership-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.assessment-badge.positive {
    background: linear-gradient(135deg, #4caf50, #81c784);
    color: #fff;
}

.tech-badge {
    background: linear-gradient(135deg, #1976d2, #64b5f6);
    color: #fff;
}

.plan-badge {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: #fff;
}

.leadership-badge {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    color: #fff;
}

.assessment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.assessment-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(100, 181, 246, 0.2);
    transition: all 0.3s ease;
}

.assessment-item.excellent {
    background: rgba(129, 199, 132, 0.15);
    border-color: rgba(129, 199, 132, 0.4);
}

.assessment-item.good {
    background: rgba(100, 181, 246, 0.15);
    border-color: rgba(100, 181, 246, 0.4);
}

.assessment-item.outstanding {
    background: rgba(255, 213, 79, 0.15);
    border-color: rgba(255, 213, 79, 0.4);
}

.assessment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.item-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.item-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-label {
    font-size: 14px;
    color: #b3d9ff;
    font-weight: 500;
}

.item-value {
    font-size: 20px;
    font-weight: bold;
    color: #ffd54f;
    text-shadow: 0 0 10px rgba(255, 213, 79, 0.3);
}

.assessment-summary {
    margin-top: 20px;
    padding: 20px;
    background: rgba(25, 118, 210, 0.1);
    border-radius: 10px;
    border-left: 4px solid #64b5f6;
}

.summary-text {
    color: #e8f4fd;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.report-content-wrapper {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.report-text {
    color: #e8f4fd;
    line-height: 1.8;
    font-size: 15px;
}

/* 工会关爱方案样式 */
.recommendations {
    background: linear-gradient(135deg, rgba(129, 199, 132, 0.1), rgba(76, 175, 80, 0.05));
    border-color: rgba(129, 199, 132, 0.3);
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.recommendation-category {
    background: rgba(13, 25, 41, 0.7);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(129, 199, 132, 0.3);
}

.recommendation-category h5 {
    color: #81c784;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendation-category ul {
    list-style: none;
    padding: 0;
}

.recommendation-category li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #b3d9ff;
    font-size: 14px;
    line-height: 1.5;
}

.recommendation-category li::before {
    content: '✓';
    color: #81c784;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 8px;
}

/* 领导建议样式 */
.leadership-insights {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(186, 104, 200, 0.05));
    border-color: rgba(156, 39, 176, 0.3);
}

.insights-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.insight-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(13, 25, 41, 0.7);
    border-radius: 12px;
    border-left: 4px solid #ba68c8;
    transition: all 0.3s ease;
}

.insight-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(186, 104, 200, 0.3);
}

.insight-item.priority-high {
    border-left-color: #ffd54f;
}

.insight-item.team-building {
    border-left-color: #64b5f6;
}

.insight-item.innovation {
    border-left-color: #81c784;
}

.insight-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(186, 104, 200, 0.2);
    flex-shrink: 0;
}

.insight-content h6 {
    color: #ba68c8;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.insight-content p {
    color: #e8f4fd;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 技术信息样式 */
.technical-info {
    background: rgba(13, 25, 41, 0.9);
    border-color: rgba(100, 181, 246, 0.3);
}

.technical-content p {
    color: #b3d9ff;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tech-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.tech-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(25, 118, 210, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.tech-stat .stat-label {
    font-size: 12px;
    color: #90a4ae;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.tech-stat .stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #64b5f6;
}

/* 按钮样式增强 */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.action-btn {
    flex: 1;
    padding: 18px 25px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #1976d2, #64b5f6);
    color: #fff;
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.4);
}

.action-btn.secondary {
    background: linear-gradient(135deg, #81c784, #4caf50);
    color: #fff;
    box-shadow: 0 8px 25px rgba(129, 199, 132, 0.4);
}

.action-btn.tertiary {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: #fff;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-icon {
    font-size: 18px;
}

/* 理论依据样式增强 */
.theory-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theory-section.show {
    opacity: 1;
}

.theory-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    background: rgba(13, 25, 41, 0.98);
    border-radius: 25px;
    border: 2px solid #1976d2;
    box-shadow: 0 0 60px rgba(25, 118, 210, 0.5);
    text-align: left;
    position: relative;
}

.theory-title {
    font-size: 32px;
    color: #64b5f6;
    margin-bottom: 40px;
    text-align: center;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 20px #64b5f6; }
    100% { text-shadow: 0 0 30px #64b5f6; }
}

.theory-step {
    opacity: 0;
    transform: translateY(30px);
    margin: 30px 0;
    padding: 25px;
    background: rgba(100, 181, 246, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(100, 181, 246, 0.3);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.5s ease;
}

.theory-step.show {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    background: linear-gradient(135deg, #1976d2, #64b5f6);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
}

.step-content h4 {
    color: #ffd54f;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.step-content p {
    color: #e8f4fd;
    line-height: 1.8;
    font-size: 16px;
    margin: 0;
}

.theory-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #64b5f6;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theory-close:hover {
    color: #fff;
    background: rgba(100, 181, 246, 0.2);
    transform: scale(1.1);
}

.theory-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #1976d2, #64b5f6);
    border-radius: 30px;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.5);
    animation: triggerFloat 3s ease-in-out infinite;
    z-index: 100;
    transition: all 0.3s ease;
}

@keyframes triggerFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.theory-trigger:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 15px 40px rgba(25, 118, 210, 0.7);
}

/* 加载动画 */
.loading-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b3d9ff;
    font-size: 16px;
}

.loading-dots span {
    animation: dotBlink 1.4s infinite both;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBlink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

/* 动画效果 */
.animate-in {
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-content,
    .result-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .scan-frame {
        width: 100%;
        max-width: 500px;
    }
    
    .assessment-grid,
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .theory-content {
        margin: 20px;
        padding: 30px;
        max-height: 80vh;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .logo-text h1 {
        font-size: 22px;
    }
    
    .main-content,
    .result-content {
        padding: 20px;
    }
    
    .scan-frame {
        height: auto;
        min-height: 600px;
        padding: 20px;
    }
    
    .upload-area {
        height: auto;
        min-height: 300px;
    }
    
    /* 用户信息表单移动端优化 */
    .user-info-form {
        padding: 20px;
        margin: 10px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .next-button {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
        justify-content: center;
    }
    
    /* 摄像头区域移动端优化 */
    .camera-container {
        margin: 10px;
        padding: 0;
    }
    
    .camera-frame {
        height: 300px;
        margin-bottom: 15px;
    }
    
    .face-outline {
        width: 150px;
        height: 180px;
    }
    
    .guide-text {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .camera-controls {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        padding: 0 10px;
    }
    
    .camera-button {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
        justify-content: center;
        border-radius: 12px;
    }
    
    /* 控制按钮移动端优化 */
    .controls {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        padding: 0 10px;
    }
    
    .back-button,
    .scan-button {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
        justify-content: center;
        border-radius: 12px;
    }
    
    /* 信息面板移动端优化 */
    .info-panel {
        margin-top: 20px;
        padding: 0 10px;
    }
    
    .info-card {
        margin-bottom: 15px;
        padding: 20px;
    }
    
    .mini-stats {
        grid-template-columns: 1fr;
    }
    
    .tech-stats {
        grid-template-columns: 1fr;
    }
    
    .theory-content {
        margin: 10px;
        padding: 20px;
        max-height: 85vh;
    }
    
    .theory-title {
        font-size: 24px;
    }
    
    .step-content h4 {
        font-size: 18px;
    }
    
    .step-content p {
        font-size: 14px;
    }
    
    /* 确保按钮不被遮挡 */
    .scan-interface {
        padding-bottom: 40px;
    }
    
    /* 修复表单容器高度 */
    .scan-area {
        min-height: auto;
    }
}

/* 针对小屏幕手机的额外优化 */
@media (max-width: 480px) {
    .header {
        padding: 15px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .scan-frame {
        min-height: 500px;
        padding: 15px;
    }
    
    .user-info-form {
        padding: 15px;
        margin: 5px;
    }
    
    .form-header h3 {
        font-size: 18px;
    }
    
    .form-header p {
        font-size: 14px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .camera-frame {
        height: 250px;
    }
    
    .face-outline {
        width: 120px;
        height: 150px;
    }
    
    .camera-controls {
        padding: 0 5px;
    }
    
    .controls {
        padding: 0 5px;
    }
    
    .info-panel {
        padding: 0 5px;
    }
    
    .info-card {
        padding: 15px;
    }
    
    /* 确保viewport适配 */
    .scan-interface {
        padding-bottom: 60px;
    }
} 