* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: #0c0f1d;
    color: #e0e0ff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0,212,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(0,212,255,.05) 1px,transparent 1px);
    background-size: 25px 25px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

.page {
    display: none;
    width: 100%;
    max-width: 1080px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 30px;
    flex-direction: column;
    position: relative;
}

.active {
    display: flex;
}

.show { 
    display: block !important; 
}

.hide { 
    display: none !important; 
}

.header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 40px;
}

.logo {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.subtitle {
    color: #a0a0d0;
    font-size: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* 首页样式 */
#home-page {
    justify-content: center;
    align-items: center;
}

.tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 首页扫描效果 */
#heroimage-page {
    position: relative;
    margin: 0 auto 60px;
}

#heroimage-page .scan-overlay {
    /* top: -20px; */
    z-index: 9999;
}

#heroimage-page .scan-circle {
    width: 716px;
    height: 716px;
    border: none;
    border-radius: 50%;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

#heroimage-page .scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, #00f2fe, transparent);
    animation: scan 3s linear infinite;
    border-radius: 50%;
}

.hero-image {
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a1f3a, #0e1122);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2),
                0 0 0 2px rgba(64, 224, 208, 0.3),
                inset 0 0 20px rgba(64, 224, 208, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(79, 172, 254, 0.5), transparent 30%);
    animation: rotate 8s linear infinite;
}

.hero-image img {
    width: 95%;
    height: 95%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    background: #0c0f1d;
}

.start-btn {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    padding: 30px 50px;
    font-size: 2.5rem;
    font-weight: 600;
    border-radius: 70px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 2px;
    margin: 0 auto;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.6);
}

.start-btn:active {
    transform: translateY(1px);
}

.start-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20px;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(25deg);
    transition: all 0.7s;
}

.start-btn:hover::after {
    left: 120%;
}

/* 采集页面样式 - 圆形扫描框 */
    .camera-container {
        width: 720px;
        height: 720px;
        border-radius: 50%;
        overflow: hidden;
        position: relative;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        margin: 0 auto 50px;
        background: #0e1122;
    }

    #avatar-container {
        margin: 0 auto 30px;
        text-align: center;
    }

    #avatar-container .user-avatar {
        width: 716px;
        height: 716px;
        margin: 0 auto 30px;
        border: 2px solid #00f2fe;
        border-radius: 50%;
        overflow: hidden;
        box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    }

#video {
    width: 1000px;
    height: 1000px;
    margin: -120px 0 0 -120px;
    display: block;
    object-fit: cover;
}

.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#capture-page .scan-circle {
    width: 716px;
    height: 716px;
    border: 2px solid #00f2fe;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
    position: relative;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, #00f2fe, transparent);
    animation: scan 3s linear infinite;
    border-radius: 50%;
}

.instructions {
    max-width: 720px;
    background: rgba(30, 35, 60, 0.7);
    border-radius: 20px;
    padding: 20px 40px;
    margin: 0 auto 50px;
    border: 1px solid rgba(64, 224, 208, 0.2);
}

.instructions h3 {
    color: #4facfe;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
}

.instructions ul {
    padding-left: 30px;
}

.instructions li {
    margin-bottom: 15px;
    color: #b0b0e0;
    font-size: 1.5rem;
    line-height: 1.5;
}

.action-buttons {
    display: flex;
    gap: 25px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.btn {
    flex: 1;
    padding: 30px 50px;
    border-radius: 70px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 2.5rem;
}

    .capture-btn {
        background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
        color: white;
        box-shadow: 0 8px 25px rgba(79, 172, 254, 0.5);
    }

    .startai-btn {
        background: linear-gradient(90deg, #00c851 0%, #00ff6c 100%);
        color: white;
        box-shadow: 0 8px 25px rgba(0, 200, 81, 0.5);
    }

    /* 倒计时覆盖层样式 */
    .countdown-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(12, 15, 29, 0.8);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 10;
    }

    .countdown-number {
        font-size: 120px;
        font-weight: 700;
        color: #00f2fe;
        text-shadow: 0 0 20px rgba(0, 242, 254, 0.8);
        animation: pulse 1s infinite;
    }

    .back-btn {
    background: rgba(60, 60, 100, 0.4);
    color: #a0a0d0;
    border: 1px solid rgba(160, 160, 208, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(1px);
}

/* 加载页面 */
#loading-page {
    justify-content: center;
    align-items: center;
    background: rgba(12, 15, 29, 0.95);
}

.loading-content {
    text-align: center;
    max-width: 90%;
    font-size: 18px;
}

.ai-brain {
    width: 250px;
    height: 250px;
    margin: 0 auto 50px;
    position: relative;
}

.ai-brain img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loading-text {
    font-size: 3rem;
    margin-bottom: 30px;
    color: #4facfe;
}

.loading-subtext {
    color: #a0a0d0;
    margin-bottom: 60px;
    font-size: 2rem;
    line-height: 1.4;
}

.progress-container {
    width: 100%;
    height: 20px;
    background: rgba(30, 35, 60, 0.7);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin-bottom: 50px;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 15px;
    transition: width 0.3s ease;
}

/* 结果页面样式 */
.result-container {
    background: rgba(30, 35, 60, 0.7);
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(64, 224, 208, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.result-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
}

.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}

.user-avatar {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    border: 3px solid #00f2fe;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.5);
    margin-bottom: 25px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.stat-item {
    background: rgba(20, 25, 45, 0.6);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.stat-label {
    font-size: 1.5rem;
    color: #a0a0d0;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #4facfe;
}

.reanalyze-btn {
    background: rgba(60, 60, 100, 0.4);
    color: #a0a0d0;
    border: 1px solid rgba(160, 160, 208, 0.3);
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    width: 100%;
    font-size: 2rem;
}

.reanalyze-btn:hover {
    background: rgba(80, 80, 130, 0.5);
}

.analysis-section {
    margin-bottom: 40px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #4facfe;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(64, 224, 208, 0.2);
    font-size: 2rem;
}

.content-box {
    background: rgba(20, 25, 45, 0.6);
    border-radius: 25px;
    padding: 30px;
    line-height: 1.6;
    color: #d0d0ff;
    font-size: 1.5rem;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
}

.trait-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.trait-item {
    background: rgba(30, 40, 70, 0.5);
    border-radius: 20px;
    padding: 30px;
    text-align: left;
    transition: transform 0.3s;
}

.trait-item:hover {
    transform: translateY(-5px);
    background: rgba(40, 50, 90, 0.6);
}

.trait-name {
    font-weight: 700;
    margin-bottom: 15px;
    color: #4facfe;
    font-size: 2.5rem;
}

.trait-desc {
    font-size: 1.5rem;
    color: #b0b0e0;
    line-height: 1.5;
}

.career-item {
    display: flex;
    align-items: flex-start;
    padding: 30px;
    border-bottom: 1px solid rgba(64, 224, 208, 0.1);
}

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

.career-text {
    width: 100%;
}

.career-text h4 {
    color: #4facfe;
    margin-bottom: 12px;
    font-size: 2.5rem;
    font-weight: 700;
}

.career-text p {
    color: #b0b0e0;
    line-height: 1.5;
}

.footer {
    text-align: center;
    padding: 30px 0;
    color: #7070a0;
    font-size: 1.5rem;
    border-top: 1px solid rgba(64, 224, 208, 0.1);
    margin-top: auto;
}

/* 动画 */
@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes scan {
    0% {
        top: 0;
    }
    50% {
        top: 100%;
    }
    100% {
        top: 100%;
    }
}



.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(79, 172, 254, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0);
    }
}

/* 响应式调整 */
@media (max-width: 600px) {
    .page {
        padding: 20px;
    }
    
    .hero-image {
        width: 280px;
        height: 280px;
    }
    
    /* 首页扫描线移动端适配 */
    #heroimage-page .scan-circle {
        width: 276px;
        height: 276px;
    }
    
    .camera-container {
        width: 400px;
        height: 400px;
    }
    
    #video {
        width: 400px;
        height: 400px;
    }
    
    #capture-page .scan-circle {
        width: 300px;
        height: 300px;
    }
    
    .trait-list {
        grid-template-columns: 1fr;
    }
    
    .result-header {
        flex-direction: column;
        align-items: center;
    }
    
    .avatar-section {
        width: 100%;
        margin-bottom: 30px;
    }
    
    #avatar-container .user-avatar {
        width: 300px;
        height: 300px;
    }
    
    .logo {
        font-size: 36px;
    }
    
    .loading-text {
        font-size: 28px;
    }

    .countdown-number {
        font-size: 80px;
    }
    
    .countdown-timer {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* 倒计时按钮样式 */
.countdown-timer {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(79, 172, 254, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 2rem;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.countdown-timer:hover {
    background: rgba(79, 172, 254, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.5);
}

/* 版本号样式 */
.version-info {
    margin-top: 10px;
    font-size: 12px;
    color: #555;
    opacity: 0.7;
    display: flex;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.version-info:hover {
    opacity: 1;
    color: #4facfe;
}

.version-info span {
    position: relative;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.2);
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.version-info span:hover {
    background: rgba(79, 172, 254, 0.2);
    border-color: rgba(79, 172, 254, 0.4);
    transform: translateY(-1px);
}

#version-number {
    font-weight: bold;
}

#build-date {
    font-size: 11px;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-overlay.show {
    display: flex !important;
}

.modal-content {
    background: linear-gradient(135deg, #1a203a 0%, #2c3e50 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(64, 224, 208, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

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

.modal-header {
    padding: 40px 40px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(64, 224, 208, 0.2);
}

.modal-header i {
    font-size: 80px;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.modal-header h3 {
    color: #fff;
    font-size: 3rem;
    font-weight: 600;
    margin: 0;
}

.modal-body {
    padding: 35px 40px;
    text-align: center;
}

.modal-body p {
    color: #b0b0e0;
    font-size: 2rem;
    line-height: 1.6;
    margin: 0;
}

.modal-footer {
    padding: 30px 40px 40px;
    display: flex;
    gap: 25px;
    justify-content: center;
}

.modal-footer .btn {
    flex: 1;
    padding: 30px 50px;
    border: none;
    border-radius: 70px;
    font-size: 2.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3d8bfe 0%, #00d4fe 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #b0b0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* 移动端弹窗适配 */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 35px 25px 25px;
    }
    
    .modal-header i {
        font-size: 60px;
    }
    
    .modal-header h3 {
        font-size: 2.5rem;
    }
    
    .modal-body {
        padding: 30px 25px;
    }
    
    .modal-body p {
        font-size: 1.8rem;
    }
    
    .modal-footer {
        padding: 25px 25px 35px;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        padding: 25px 40px;
        font-size: 2.2rem;
    }
}
