/* Gemini 版本特殊样式 */
.gemini-badge {
    display: block;
    background: linear-gradient(45deg, #4285F4, #EA4335, #FBBC04, #34A853);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    margin-bottom: 15px;
    color: white;
    font-weight: bold;
    text-align: center;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 标题和副标题样式 */
.title {
    text-align: center;
    margin-bottom: 20px;
}

.subtitle {
    text-align: center;
    color: #e0e0e0;
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #a0a0a0;
    font-weight: 500;
}

/* 提交按钮样式 */
.submit-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px;
    margin-top: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.btn-loading.hidden {
    display: none;
}

.btn-text.hidden {
    display: none;
}

/* 等待动画区域 */
.loading-section {
    padding: 40px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fortune-loading {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* 八卦动画容器 */
.bagua-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
    position: relative;
}

.bagua {
    width: 100%;
    height: 100%;
    position: relative;
    border: 3px solid #667eea;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.1), transparent);
}

.rotating {
    animation: rotate 10s linear infinite;
}

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

/* 太极图 */
.taiji {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(to bottom, #fff 50%, #000 50%);
    animation: taiji-spin 3s linear infinite;
}

.yin-yang {
    width: 100%;
    height: 100%;
    position: relative;
}

.yin-yang::before,
.yin-yang::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.yin-yang::before {
    background: #000;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid #fff;
}

.yin-yang::after {
    background: #fff;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid #000;
}

@keyframes taiji-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 八卦符号 */
.gua {
    position: absolute;
    font-size: 24px;
    color: #667eea;
    font-weight: bold;
    animation: gua-pulse 2s ease-in-out infinite;
}

.gua-1 { top: -15px; left: 50%; transform: translateX(-50%); }
.gua-2 { top: 15%; right: -15px; }
.gua-3 { bottom: -15px; right: 25%; }
.gua-4 { bottom: -15px; left: 25%; }
.gua-5 { bottom: 15%; left: -15px; }
.gua-6 { top: 15%; left: -15px; }
.gua-7 { top: 25%; right: -10px; }
.gua-8 { bottom: 25%; left: -10px; }

@keyframes gua-pulse {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2);
    }
}

/* 加载文字 */
.loading-title {
    font-size: 2em;
    color: #667eea;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 3s ease infinite;
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.loading-message {
    color: #e0e0e0;
    font-size: 1.2em;
    margin-bottom: 30px;
    animation: fadeInOut 2s ease-in-out infinite;
}

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

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 30px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* 加载提示 */
.loading-tips {
    margin-top: 30px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.loading-tips p {
    color: #e0e0e0;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
    animation: slideUp 1s ease;
}

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

/* 星座动画背景 */
.loading-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(240, 147, 251, 0.2) 0%, transparent 50%);
    animation: floatBg 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatBg {
    0%, 100% { transform: scale(1) rotate(0deg); }
    33% { transform: scale(1.1) rotate(120deg); }
    66% { transform: scale(0.9) rotate(240deg); }
}

/* 流星效果 */
.loading-section::after {
    content: '✦';
    position: absolute;
    font-size: 20px;
    color: #667eea;
    animation: shooting-star 3s linear infinite;
    opacity: 0;
}

@keyframes shooting-star {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(300px, 300px);
    }
}