:root {
    --bg-dark: #0a0a0f;
    --glass-bg: rgba(20, 25, 40, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --sacred-gold: #FFD700;
    --sacred-purple: #9564FF;
    --sacred-teal: #4ECDC4;
    --text-main: #e0e0e0;
    --text-dim: #9ca3af;
}

* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Noto Serif SC', serif;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* 宇宙背景 */
.universe-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 30%, rgba(149, 100, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(circle at bottom, #1a1a2e 0%, #0a0a0f 100%);
    overflow: hidden;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0.8;
    animation: twinkle 3s infinite ease-in-out;
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: float 25s infinite alternate;
}
.n1 { 
    width: 400px; height: 400px; 
    background: linear-gradient(135deg, var(--sacred-teal), #44A08D);
    top: -100px; right: -100px; 
}
.n2 { 
    width: 300px; height: 300px; 
    background: linear-gradient(135deg, var(--sacred-purple), #C471ED);
    bottom: -50px; left: -50px; 
    animation-delay: -8s; 
}

@keyframes twinkle { 
    0%, 100% { opacity: 0.4; transform: scale(0.8); } 
    50% { opacity: 1; transform: scale(1.2); } 
}
@keyframes float { 
    from { transform: translate(0, 0) rotate(0deg); } 
    to { transform: translate(30px, 40px) rotate(5deg); } 
}

/* 主容器 */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* 页头 */
header { 
    text-align: center; 
    margin-bottom: 30px; 
    padding-top: 20px; 
}

.title-main {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin: 10px 0;
    background: linear-gradient(90deg, var(--sacred-gold), var(--sacred-purple), var(--sacred-teal), var(--sacred-gold));
    background-size: 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 6s linear infinite;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

@keyframes gradientFlow {
    0% { background-position: 0%; }
    100% { background-position: 300%; }
}

.subtitle { 
    color: var(--text-dim); 
    font-size: 1rem; 
    margin-top: 5px; 
    letter-spacing: 1px; 
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* 卡片 */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

/* 输入区域 */
.input-group { 
    margin-bottom: 20px; 
}

.label { 
    display: block; 
    font-size: 0.9rem; 
    font-weight: bold; 
    margin-bottom: 8px; 
    letter-spacing: 1px; 
}

input, select {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
}

input:focus, select:focus {
    border-color: var(--sacred-gold);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.hint { 
    font-size: 0.8rem; 
    color: #6b7280; 
    margin-top: 6px; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    line-height: 1.4;
}
.hint i { 
    color: var(--sacred-gold); 
    flex-shrink: 0;
}

/* 按钮 */
.btn {
    width: 100%;
    background: linear-gradient(135deg, var(--sacred-purple), var(--sacred-teal));
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(149, 100, 255, 0.4);
    transition: all 0.3s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn::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: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(149, 100, 255, 0.6);
}

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

.btn:disabled { 
    opacity: 0.6; 
    cursor: not-allowed; 
    transform: none !important; 
}

.btn-screenshot {
    background: linear-gradient(135deg, #FF6B6B, #FFD166);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
    margin-top: 15px;
}

.btn-screenshot:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

/* 通知 */
.notice {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 0.85rem;
    color: var(--sacred-gold);
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    line-height: 1.5;
}

.notice i {
    flex-shrink: 0;
    margin-top: 2px;
}

/* 数字显示容器 */
.number-sacred-container {
    position: relative;
    display: inline-block;
    margin: 20px 0;
}

.number-display {
    font-size: 5rem;
    font-weight: 900;
    font-family: 'Cinzel', serif;
    color: var(--sacred-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    position: relative;
    z-index: 2;
    animation: numberPulse 3s infinite ease-in-out;
}

@keyframes numberPulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    50% { 
        transform: scale(1.05);
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.8),
                     0 0 60px rgba(255, 107, 107, 0.6);
    }
}

/* 神圣符号 */
.sacred-symbol {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: var(--sacred-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    animation: symbolFloat 4s infinite ease-in-out;
}

.sacred-symbol:nth-child(2) { animation-delay: 0.5s; }
.sacred-symbol:nth-child(3) { animation-delay: 1s; }

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

.number-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    margin: 5px 0;
    letter-spacing: 1px;
}

.number-subtitle {
    font-style: italic;
    color: #9ca3af;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 20px;
}

/* 描述框 */
.desc-box {
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--sacred-gold);
    padding: 15px;
    border-radius: 0 12px 12px 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #d1d5db;
    margin-bottom: 20px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.desc-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.3), transparent);
}

/* 能量解读 */
.energy-reading {
    background: linear-gradient(135deg, rgba(149, 100, 255, 0.08), rgba(196, 113, 237, 0.12));
    border: 1px solid rgba(149, 100, 255, 0.3);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.energy-reading::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(149, 100, 255, 0.1) 0%, transparent 60%);
    animation: shimmer 4s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10%, -10%); }
}

.energy-title {
    color: var(--sacred-purple);
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.energy-title i {
    color: var(--sacred-purple);
    animation: pulse 2s infinite;
}

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

.energy-text {
    color: #e9d5ff;
    font-size: 0.95rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px rgba(149, 100, 255, 0.3);
}

/* 统计行 */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #9ca3af;
}

.stat-item { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

/* 网格布局 */
.grid-2 { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 15px; 
    margin-bottom: 15px;
}

@media (min-width: 640px) { 
    .grid-2 { 
        grid-template-columns: 1fr 1fr; 
    } 
}

/* 辅助卡片 */
.aux-card {
    background: rgba(20, 25, 40, 0.6);
    border-top: 3px solid;
    padding: 15px;
    border-radius: 16px;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.aux-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.aux-card:hover {
    transform: translateY(-5px);
}

.aux-purple { 
    border-color: var(--sacred-purple); 
}

.aux-blue { 
    border-color: #6B8CFF; 
}

.aux-header { 
    font-size: 0.9rem; 
    font-weight: bold; 
    margin-bottom: 10px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.aux-desc { 
    font-size: 0.85rem; 
    color: #9ca3af; 
    line-height: 1.6; 
    margin: 0;
}

/* 神圣祝福 */
.sacred-blessing {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    color: var(--sacred-gold);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.sacred-blessing i {
    animation: sparkle 2s infinite;
}

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

/* 页脚 */
footer {
    text-align: center;
    padding: 25px 20px;
    font-size: 0.7rem;
    color: #4b5563;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.8);
    line-height: 1.8;
    margin-top: 30px;
}

footer a { 
    color: #6b7280; 
    text-decoration: none; 
    transition: color 0.3s;
}

footer a:hover { 
    color: var(--sacred-teal); 
}

/* 页脚底部 */
.footer-bottom {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: #e5e7eb;
    line-height: 1.6;
    margin-bottom: 12px;
    font-weight: 500;
}

/* 截图区域 */
.screenshot-area {
    background: var(--bg-dark);
    padding: 20px;
    border-radius: 20px;
    position: relative;
}

/* 截图时的特殊样式 */
.capturing .screenshot-area {
    background: var(--bg-dark) !important;
}

/* 截图时隐藏的元素 */
.hide-for-screenshot .no-screenshot {
    display: none !important;
}

/* 过渡动画 */
.fade-enter-active, .fade-leave-active { 
    transition: opacity 0.4s ease, transform 0.4s ease; 
}
.fade-enter-from, .fade-leave-to { 
    opacity: 0; 
    transform: translateY(10px); 
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

.loading i {
    animation: spin 1s linear infinite;
    font-size: 2rem;
    color: var(--sacred-gold);
    position: relative;
    z-index: 2;
}

@keyframes spin { 
    100% { 
        transform: rotate(360deg); 
    } 
}

/* 重置链接 */
.reset-link { 
    background: none; 
    border: none; 
    color: #6b7280; 
    text-decoration: underline; 
    cursor: pointer; 
    font-size: 0.9rem; 
    margin-top: 15px; 
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.reset-link:hover { 
    color: var(--sacred-teal); 
    background: rgba(78, 205, 196, 0.1);
}

/* 移动端优化 */
@media (max-width: 640px) {
    .container {
        padding: 15px;
    }
    
    .title-main {
        font-size: 2.2rem;
    }
    
    .number-display {
        font-size: 4rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .sacred-symbol {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* 截图保存指引样式 */
#screenshot-save-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.98);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}