.result-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.error-message i {
    font-size: 2rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.result-content {
    padding: 1rem;
}

.result-content h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.result-content h1 i {
    color: #f1c40f;
    margin-right: 0.5rem;
}

.result-box {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.actions, .button {
    display: none;
}

.test-buttons {
    text-align: center;
    margin: 2.5rem 0;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.test-buttons .test-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    height: 44px;
    min-width: 140px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-white, #fff);
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.test-buttons .test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    opacity: 0.95;
}

.test-buttons .test-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.test-buttons .test-btn i {
    margin-right: 10px;
    font-size: 16px;
}

.loading {
    text-align: center;
    padding: 2rem;
}

.loading::after {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    margin: 20px auto;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    display: inline-block;
    animation: dots 2s infinite;
}

@keyframes dots {
    0%, 20% { content: "正在生成您的算命结果"; }
    40% { content: "正在生成您的算命结果."; }
    60% { content: "正在生成您的算命结果.."; }
    80% { content: "正在生成您的算命结果..."; }
    100% { content: "正在生成您的算命结果"; }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

#capture-area {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.bazi-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 249, 250, 0.8) 100%);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.bazi-pillars .pillar {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(107, 70, 193, 0.1);
    transition: transform 0.2s ease;
}

.bazi-pillars .pillar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.bazi-basic-analysis {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

@media (max-width: 768px) {
    .bazi-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media print {
    .actions {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .result-container {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
}

/* 添加动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-section {
    animation: fadeInUp 0.5s ease-out;
}

.interpretation-section {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.interpretation-section:nth-child(1) { animation-delay: 0.1s; }
.interpretation-section:nth-child(2) { animation-delay: 0.2s; }
.interpretation-section:nth-child(3) { animation-delay: 0.3s; }
.interpretation-section:nth-child(4) { animation-delay: 0.4s; }
.interpretation-section:nth-child(5) { animation-delay: 0.5s; }

/* 添加悬停效果 */
.analysis-item,
.forecast-item,
.advice-column,
.guidance-grid p {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.analysis-item:hover,
.forecast-item:hover,
.advice-column:hover,
.guidance-grid p:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 图标动画 */
.interpretation-section h3 i,
.analysis-item h4 i,
.guidance-grid p i {
    transition: transform 0.3s ease;
}

.interpretation-section:hover h3 i,
.analysis-item:hover h4 i,
.guidance-grid p:hover i {
    transform: scale(1.2);
}

/* 添加平滑过渡 */
.bazi-info,
.birth-details,
.interpretation-section,
.analysis-item,
.forecast-item,
.advice-column,
.guidance-grid p {
    transition: all 0.3s ease;
}

/* 优化加载状态 */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* 优化滚动效果 */
html {
    scroll-behavior: smooth;
}

.interpretation {
    scroll-margin-top: 20px;
}

/* 打印样式优化 */
@media print {
    .interpretation-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .analysis-item,
    .forecast-item,
    .advice-column {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* 移除f-card-footer相关样式 */

/* 卡片页脚样式 */
/* .f-card-footer {
    padding: 2rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    text-align: center;
} */

/* 测试新按钮组样式 */

/* 优化按钮样式，增加间距和交互效果 */

/* 古风加载动画样式 */
.f-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-animation {
    position: relative;
    width: 200px;
    height: 200px;
}

.bagua-spinner {
    width: 100%;
    height: 100%;
    animation: spin 8s linear infinite;
}

.bagua-spinner svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
}

.flying-symbols {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.flying-symbols span {
    position: absolute;
    font-family: "SimSun", serif;
    font-size: 24px;
    color: #333;
    opacity: 0;
    animation: flySymbol 3s linear infinite;
}

.loading-text {
    margin-top: 2rem;
    font-size: 1.2rem;
    color: #333;
    font-family: "SimSun", serif;
    letter-spacing: 0.2em;
}

.loading-steps {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.loading-steps .step {
    font-size: 0.9rem;
    color: #666;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.loading-steps .step.active {
    opacity: 1;
    color: #333;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes flySymbol {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx, 100px), var(--ty, -100px)) rotate(360deg);
        opacity: 0;
    }
}

/* 添加水墨效果 */
.f-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,0,0,0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: inkSpread 3s ease-out infinite;
}

@keyframes inkSpread {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}
.f-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    z-index: 10000;
    animation: fadeInOut 3s ease;
}

.f-toast-success {
    background-color: rgba(40, 167, 69, 0.9);
}

.f-toast-error {
    background-color: rgba(220, 53, 69, 0.9);
}

.f-toast-info {
    background-color: rgba(23, 162, 184, 0.9);
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -20px); }
    10% { opacity: 1; transform: translate(-50%, 0); }
    90% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}