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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* 星空背景 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    box-shadow:
        100px 100px white, 200px 150px white, 300px 50px white,
        400px 200px white, 500px 100px white, 600px 250px white,
        50px 250px white, 150px 50px white, 250px 200px white,
        350px 150px white, 450px 50px white, 550px 200px white,
        700px 100px white, 800px 200px white, 900px 50px white,
        750px 250px white, 850px 150px white, 950px 100px white;
    animation: twinkle 3s infinite;
}

.stars::after {
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.container {
    max-width: 600px;
    width: 100%;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

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

.form-group label {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.label-icon {
    margin-right: 8px;
    font-size: 18px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
}

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

.range-value {
    margin-top: 8px;
    color: #667eea;
    font-weight: bold;
    text-align: center;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

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

.disclaimer {
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* 加载页面样式 */
.loading-card {
    text-align: center;
}

.avatar-placeholder {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    animation: pulse 2s infinite;
}

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

.analyzing-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: bold;
}

.progress-text {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 30px;
}

.loading-steps {
    text-align: left;
}

.step {
    padding: 12px;
    margin: 8px 0;
    background: #f5f5f5;
    border-radius: 8px;
    color: #999;
    transition: all 0.3s;
}

.step.active {
    background: #e8eeff;
    color: #667eea;
    font-weight: bold;
}

.step.completed {
    background: #e8f5e9;
    color: #4caf50;
}

.step.completed::before {
    content: '✓ ';
    font-weight: bold;
}

/* 结果页面样式 */
.result-card {
    position: relative;
    overflow: hidden;
}

.confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        radial-gradient(circle, #ff6b6b 10%, transparent 10%),
        radial-gradient(circle, #4ecdc4 10%, transparent 10%),
        radial-gradient(circle, #ffe66d 10%, transparent 10%),
        radial-gradient(circle, #a8e6cf 10%, transparent 10%);
    background-size: 10% 10%;
    background-position: 0% 0%, 40% 40%, 80% 20%, 20% 80%;
    animation: confetti-fall 3s ease-out;
    opacity: 0;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(-100%);
    }
    100% {
        opacity: 0;
        transform: translateY(100%);
    }
}

.result-title {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 26px;
}

.user-info {
    text-align: center;
    margin-bottom: 30px;
}

.user-avatar {
    font-size: 60px;
    margin-bottom: 10px;
}

.user-name {
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
}

.result-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.result-label {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.result-countdown {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.countdown-number {
    color: #ff6b6b;
    font-size: 40px;
}

.countdown-unit {
    font-size: 20px;
    color: #666;
    margin-right: 10px;
}

.result-message {
    font-size: 18px;
    color: #667eea;
    font-weight: bold;
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-top: 15px;
}

.abstract-box {
    background: #f0f4ff;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid #667eea;
}

.abstract-box h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
}

.abstract-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.abstract-item {
    padding: 15px;
    background: white;
    border-radius: 10px;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    border-left: 4px solid #667eea;
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cert-promotion {
    margin-bottom: 25px;
}

.promo-box {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.promo-icon {
    font-size: 50px;
    margin-bottom: 15px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.promo-box h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.promo-box p {
    font-size: 16px;
    margin: 10px 0;
}

.highlight {
    color: #ffd700;
    font-weight: bold;
    font-size: 18px;
}

.promo-tip {
    font-size: 14px !important;
    opacity: 0.9;
}

.cert-btn {
    margin-top: 20px;
    padding: 15px 30px;
    background: white;
    color: #19547b;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cert-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.suggestions {
    background: #fff9e6;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.suggestions h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.suggestions ul {
    list-style: none;
}

.suggestions li {
    padding: 10px 0;
    color: #666;
    border-bottom: 1px dashed #e0e0e0;
}

.suggestions li:last-child {
    border-bottom: none;
}

.suggestions li::before {
    content: '• ';
    color: #ffb347;
    font-weight: bold;
    margin-right: 8px;
}

.share-section {
    margin-bottom: 20px;
}

.truth-reveal {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    line-height: 1.8;
}

.truth-reveal p {
    margin: 5px 0;
    font-size: 16px;
}

.truth-reveal p:first-child {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.retry-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    .card {
        padding: 25px;
    }

    .header h1 {
        font-size: 22px;
    }

    .countdown-number {
        font-size: 32px;
    }

    .countdown-unit {
        font-size: 16px;
    }
}

/* GitHub 链接样式 */
.github-link {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.github-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 1);
}

.github-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.made-by {
    white-space: nowrap;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
