/* 开屏动画样式 */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #fda085 75%, #ffecd2 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s ease-out;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.mystical-orb {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
}

.orb-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #fff 0%, rgba(255,255,255,0.8) 30%, rgba(102,126,234,0.6) 60%, rgba(240,147,251,0.4) 100%);
    border-radius: 50%;
    animation: orbGlow 3s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(255,255,255,0.8), 0 0 100px rgba(102,126,234,0.6);
}

.orb-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.orb-rings .ring {
    position: absolute;
    border: 3px solid;
    border-radius: 50%;
    opacity: 0.8;
}

.orb-rings .ring-1 {
    width: 100%;
    height: 100%;
    border-color: rgba(255,255,255,0.8);
    animation: ringRotate 4s linear infinite;
    border-style: solid dashed;
}

.orb-rings .ring-2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-color: rgba(102,126,234,0.6);
    animation: ringRotate 5s linear infinite reverse;
    border-style: dotted solid;
}

.orb-rings .ring-3 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-color: rgba(240,147,251,0.6);
    animation: ringRotate 6s linear infinite;
    border-style: dashed dotted;
}

.orb-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.orb-particles .particle {
    position: absolute;
    font-size: 24px;
    animation: particleOrbit 8s ease-in-out infinite;
}

.orb-particles .particle-1 {
    top: 10%;
    left: 50%;
    animation-delay: 0s;
}

.orb-particles .particle-2 {
    top: 50%;
    right: 10%;
    animation-delay: 1.3s;
}

.orb-particles .particle-3 {
    bottom: 10%;
    left: 50%;
    animation-delay: 2.6s;
}

.orb-particles .particle-4 {
    top: 50%;
    left: 10%;
    animation-delay: 3.9s;
}

.orb-particles .particle-5 {
    top: 30%;
    right: 30%;
    animation-delay: 5.2s;
}

.orb-particles .particle-6 {
    bottom: 30%;
    left: 30%;
    animation-delay: 6.5s;
}

.logo-text {
    animation: textSlideIn 1.5s ease-out forwards;
    opacity: 0;
}

.splash-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3), 0 0 30px rgba(255,255,255,0.5);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.splash-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-weight: 300;
}

.loading-dots {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    animation: dotsFadeIn 2s ease-out forwards;
    opacity: 0;
    animation-delay: 1s;
}

.loading-dots .dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255,255,255,0.6);
}

.loading-dots .dot-1 {
    animation-delay: 0s;
}

.loading-dots .dot-2 {
    animation-delay: 0.3s;
}

.loading-dots .dot-3 {
    animation-delay: 0.6s;
}

/* 开屏动画关键帧 */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes orbGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
        box-shadow: 0 0 60px rgba(255,255,255,0.8), 0 0 100px rgba(102,126,234,0.6);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
        box-shadow: 0 0 80px rgba(255,255,255,1), 0 0 120px rgba(102,126,234,0.8);
    }
}

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

@keyframes particleOrbit {
    0%, 100% {
        transform: rotate(0deg) translateX(120px) scale(0.8);
        opacity: 0;
    }
    25% {
        transform: rotate(90deg) translateX(120px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg) translateX(120px) scale(1);
        opacity: 0.8;
    }
    75% {
        transform: rotate(270deg) translateX(120px) scale(0.9);
        opacity: 0.4;
    }
}

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

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

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #fda085 75%, #ffecd2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* 确保HTML和body允许滚动 */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* 开屏动画期间防止滚动 */
body.splash-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

/* 背景动画 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(5px);
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(10px) translateX(-10px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-10px) translateX(5px) rotate(270deg);
        opacity: 0.7;
    }
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* 品牌徽章 */
.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9) 0%, rgba(255, 193, 7, 0.8) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 8px 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    animation: brandGlow 3s ease-in-out infinite alternate;
    backdrop-filter: blur(10px);
}

.brand-badge i {
    color: #d4af37;
    font-size: 1rem;
    animation: crownSparkle 2s ease-in-out infinite alternate;
}

.brand-text {
    letter-spacing: 1px;
    text-shadow: none;
}

@keyframes brandGlow {
    from {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }
    to {
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
        transform: scale(1.02);
    }
}

@keyframes crownSparkle {
    from {
        transform: rotate(0deg) scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }
    to {
        transform: rotate(10deg) scale(1.1);
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    }
}

/* API配置切换按钮 */
.api-config-toggle {
    text-align: center;
    margin-bottom: 20px;
}

.btn-config-toggle {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-config-toggle:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-config-toggle i {
    color: #667eea;
    font-size: 1.1rem;
}

.api-status {
    margin-left: 5px;
}

.api-status i {
    font-size: 1rem;
}

/* API配置区域样式 */
.api-config {
    margin-bottom: 40px;
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}

.api-config:not(.collapsed) {
    max-height: 500px;
    opacity: 1;
}

.api-config.collapsed {
    max-height: 0;
    margin-bottom: 0;
}

.config-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
    max-width: 600px;
}

.config-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.config-card h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.config-card h3 i {
    color: #667eea;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.api-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

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

.config-tip {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
}

.config-help {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    padding: 15px;
    border-left: 4px solid #667eea;
    margin-top: 20px;
}

.config-help p {
    margin-bottom: 10px;
    color: #333;
    font-weight: 500;
}

.config-help ul {
    margin: 0;
    padding-left: 20px;
    color: #636e72;
    font-size: 0.9rem;
    line-height: 1.5;
}

.config-help li {
    margin-bottom: 5px;
}

.config-help a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.config-help a:hover {
    text-decoration: underline;
}

/* 时间和黄历区域 */
.calendar-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 25px;
    margin-bottom: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

/* 时间显示 */
.time-display {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.time-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(240, 147, 251, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(79, 172, 254, 0.05) 0%, transparent 70%);
    animation: timeBackgroundShift 8s ease-in-out infinite;
    z-index: -1;
}

.time-display::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 48%, rgba(102, 126, 234, 0.03) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(240, 147, 251, 0.03) 50%, transparent 52%);
    background-size: 20px 20px;
    animation: timeGridFloat 15s linear infinite;
    z-index: -1;
}

.time-display:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.time-digital {
    font-size: 2.2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 12px;
    font-family: 'Noto Sans SC', sans-serif;
    letter-spacing: 3px;
    text-shadow: 0 2px 8px rgba(102, 126, 234, 0.3), 0 0 20px rgba(255, 255, 255, 0.5);
    text-align: center;
    position: relative;
    z-index: 2;
}

.time-date {
    font-size: 1.1rem;
    color: #636e72;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
}

/* 农历黄历 */
.lunar-calendar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 251, 235, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.lunar-calendar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 30%, rgba(240, 147, 251, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.05) 0%, transparent 70%);
    animation: lunarBackgroundShift 10s ease-in-out infinite;
    z-index: -1;
}

.lunar-calendar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 48%, rgba(251, 191, 36, 0.02) 50%, transparent 52%),
        linear-gradient(0deg, transparent 48%, rgba(239, 68, 68, 0.02) 50%, transparent 52%);
    background-size: 25px 25px;
    animation: lunarGridFloat 20s linear infinite;
    z-index: -1;
}

.lunar-calendar:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.lunar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #333;
}

.lunar-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
}

.lunar-header i {
    color: #f093fb;
    font-size: 1.2rem;
}

.lunar-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lunar-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.lunar-date {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 2;
}

.lunar-zodiac {
    font-size: 1.2rem;
    color: #f093fb;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(240, 147, 251, 0.3);
    position: relative;
    z-index: 2;
}

.lunar-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.almanac-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: 12px;
    background: rgba(249, 249, 249, 0.8);
}

.almanac-label {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
}

.almanac-item:first-child .almanac-label {
    background: linear-gradient(45deg, #4ade80, #22c55e);
    color: white;
}

.almanac-item:last-child .almanac-label {
    background: linear-gradient(45deg, #f87171, #ef4444);
    color: white;
}

.almanac-content {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 2;
}

.auspicious {
    color: #16a34a;
    font-weight: 500;
}

.ominous {
    color: #dc2626;
    font-weight: 500;
}

.lunar-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
    margin-top: 8px;
}

.lunar-constellation {
    font-size: 1.1rem;
    color: #92400e;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 251, 235, 0.8);
    position: relative;
    z-index: 2;
}

.lunar-ganzhi {
    font-size: 1.1rem;
    color: #92400e;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 251, 235, 0.8);
    position: relative;
    z-index: 2;
}

/* 商业运势样式 */
.business-fortune {
    margin-top: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(254, 240, 138, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.business-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.business-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: #f59e0b;
}

.business-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #92400e;
    min-width: 60px;
}

.energy-bar {
    flex: 1;
    height: 8px;
    background: rgba(249, 249, 249, 0.6);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.energy-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
    border-radius: 4px;
    transition: width 1s ease-out;
    position: relative;
}

.energy-fill.creative {
    background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
}

.energy-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #92400e;
    margin-left: 8px;
    min-width: 35px;
    text-shadow: 0 1px 2px rgba(255, 251, 235, 0.8);
}

/* 商业智慧模块样式 */
.wisdom-section {
    margin-bottom: 40px;
}

.wisdom-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 1000px;
    margin: 0 auto;
}

.wisdom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.wisdom-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    color: #333;
    flex-wrap: wrap;
    gap: 15px;
}

.wisdom-header h3 {
    font-size: 1.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.wisdom-header i {
    color: #f093fb;
    font-size: 1.3rem;
}

.wisdom-tabs {
    display: flex;
    gap: 8px;
    background: rgba(249, 249, 249, 0.8);
    padding: 4px;
    border-radius: 20px;
}

.wisdom-tab {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #636e72;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.wisdom-tab:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.wisdom-tab.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.wisdom-content {
    position: relative;
    min-height: 120px;
}

.wisdom-item {
    display: none;
    animation: fadeIn 0.5s ease;
}

.wisdom-item.active {
    display: block;
}

.wisdom-quote {
    position: relative;
    padding: 20px 30px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(240, 147, 251, 0.05) 100%);
    border-radius: 16px;
    border-left: 4px solid #667eea;
}

.wisdom-quote i {
    color: #667eea;
    font-size: 1rem;
    opacity: 0.6;
}

.wisdom-quote i:first-child {
    position: absolute;
    top: 15px;
    left: 15px;
}

.wisdom-quote i:last-child {
    position: absolute;
    bottom: 15px;
    right: 15px;
}

.wisdom-quote p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2d3436;
    font-weight: 500;
    margin: 0;
    text-align: center;
    font-style: italic;
}

.wisdom-action {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.05) 0%, rgba(0, 242, 254, 0.05) 100%);
    border-radius: 12px;
    border-left: 4px solid #4facfe;
}

.action-tag {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    margin-top: 2px;
}

.wisdom-action p {
    font-size: 1rem;
    line-height: 1.5;
    color: #636e72;
    font-weight: 500;
    margin: 0;
    flex: 1;
}


.title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6);
    }
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    color: #f8f9fa;
}

/* API配置区域 */
.api-config {
    margin-bottom: 30px;
}

.config-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.config-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.config-card h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.config-card h3 i {
    color: #667eea;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.api-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

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

.config-tip {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* 按钮样式 */
.btn-primary, .btn-fortune, .btn-ai, .btn-send {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-fortune {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    color: white;
    padding: 16px 32px;
    font-size: 1.2rem;
    font-weight: 600;
}

.btn-ai {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: white;
    padding: 16px 32px;
    font-size: 1.2rem;
    font-weight: 600;
}

.btn-send {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    justify-content: center;
}

.btn-primary:hover, .btn-fortune:hover, .btn-ai:hover, .btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:active, .btn-fortune:active, .btn-ai:active, .btn-send:active {
    transform: translateY(0);
}

/* 主要内容区域 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* 抽签卡片样式 */
.fortune-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 1000px;
    margin: 0 auto;
}

/* AI卡片样式 */
.ai-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 1000px;
    margin: 0 auto;
}

.fortune-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.ai-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.fortune-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    color: #333;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    color: #333;
}

.fortune-header h2 {
    font-size: 2rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-header h3 {
    font-size: 1.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}

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

/* 抽签显示区域 */
.fortune-display {
    min-height: 280px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.fortune-display::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #ff6b6b);
    border-radius: 20px;
    background-size: 400% 400%;
    animation: gradient 3s ease infinite;
    z-index: -1;
}

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

.fortune-placeholder {
    text-align: center;
    color: #666;
    font-size: 1.3rem;
}

.fortune-placeholder i {
    font-size: 4rem;
    color: #f093fb;
    margin-bottom: 20px;
    display: block;
}

.fortune-content {
    text-align: center;
    color: #333;
    animation: fadeIn 0.8s ease;
}

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

.fortune-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #d63031;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.fortune-text {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #2d3436;
    font-weight: 500;
}

.fortune-meaning {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #636e72;
    font-style: italic;
    margin-top: 20px;
}

/* 按钮操作区域 */
.fortune-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* AI聊天区域 */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: rgba(249, 249, 249, 0.8);
    border-radius: 12px;
    margin-bottom: 20px;
}

.message {
    margin-bottom: 15px;
    animation: slideIn 0.3s ease;
}

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

.user-message {
    text-align: right;
}

.user-message .message-content {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    display: inline-block;
    padding: 12px 16px;
    border-radius: 18px 18px 4px 18px;
    max-width: 80%;
}

.ai-message .message-content {
    background: white;
    color: #333;
    padding: 12px 16px;
    border-radius: 18px 18px 18px 4px;
    max-width: 80%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.chat-input input:focus {
    outline: none;
    border-color: #667eea;
}

/* 页脚 */
.footer {
    text-align: center;
    margin-top: 40px;
    color: white;
    font-image: linear-gradient(45deg, #667eea, #764ba2);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 分享图片生成样式 */
.share-image-generator {
    position: absolute;
    width: 1px;
    height: 1px;
    left: -9999px;
    top: -9999px;
    background:
        linear-gradient(45deg, #667eea 25%, #764ba2 50%, #f093fb 75%, #667eea),
        linear-gradient(135deg, #fff 0%, #f8f9ff 50%, #667eea 100%);
    background-size: 300px 300px, 300px 300px;
}

/* 用于生成分享图片的隐藏元素 */
.share-image-placeholder {
    position: absolute;
    width: 300px;
    height: 300px;
    left: -9999px;
    top: -9999px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.footer-copyright {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-disclaimer {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3) 0%, rgba(255, 192, 203, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    backdrop-filter: blur(5px);
    animation: disclaimerGlow 4s ease-in-out infinite alternate;
}

.footer-disclaimer i {
    color: #ff69b4;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.footer-brand i {
    color: #ffd700;
}

@keyframes disclaimerGlow {
    from {
        box-shadow: 0 2px 10px rgba(255, 182, 193, 0.2);
        background: linear-gradient(135deg, rgba(255, 182, 193, 0.3) 0%, rgba(255, 192, 203, 0.2) 100%);
    }
    to {
        box-shadow: 0 4px 20px rgba(255, 182, 193, 0.4);
        background: linear-gradient(135deg, rgba(255, 182, 193, 0.4) 0%, rgba(255, 192, 203, 0.3) 100%);
    }
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.05);
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* 抽签动效 */
.fortune-shuffling {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fortune-cube {
    width: 80px;
    height: 80px;
    position: relative;
    transform-style: preserve-3d;
    animation: cubeShuffle 2s ease-in-out infinite;
}

@keyframes cubeShuffle {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: rotateX(180deg) rotateY(90deg);
    }
    50% {
        transform: rotateX(360deg) rotateY(180deg);
    }
    75% {
        transform: rotateX(540deg) rotateY(270deg);
    }
    100% {
        transform: rotateX(720deg) rotateY(360deg);
    }
}

.fortune-cube-face {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: 2px solid white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.fortune-cube-face:nth-child(1) { transform: translateZ(40px); }
.fortune-cube-face:nth-child(2) { transform: rotateY(90deg) translateZ(40px); }
.fortune-cube-face:nth-child(3) { transform: rotateY(180deg) translateZ(40px); }
.fortune-cube-face:nth-child(4) { transform: rotateY(-90deg) translateZ(40px); }
.fortune-cube-face:nth-child(5) { transform: rotateX(90deg) translateZ(40px); }
.fortune-cube-face:nth-child(6) { transform: rotateX(-90deg) translateZ(40px); }

/* 神秘抽签动画 */
.fortune-mysterious-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    position: relative;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.1) 0%, rgba(240, 147, 251, 0.05) 50%, transparent 70%);
    border-radius: 20px;
    overflow: hidden;
}

.mystical-sphere {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
}

.inner-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.8) 0%, rgba(240, 147, 251, 0.6) 50%, rgba(255, 255, 255, 0.2) 100%);
    border-radius: 50%;
    animation: mysticalPulse 2s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.6);
}

.rotating-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
}

.ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    opacity: 0.8;
}

.ring-1 {
    width: 100%;
    height: 100%;
    border-color: #667eea;
    animation: rotateRing 3s linear infinite;
    border-style: solid dashed;
}

.ring-2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-color: #f093fb;
    animation: rotateRing 4s linear infinite reverse;
    border-style: dotted solid;
}

.ring-3 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-color: #4facfe;
    animation: rotateRing 5s linear infinite;
    border-style: dashed dotted;
}

.floating-symbols {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: floatSymbols 6s ease-in-out infinite;
}

.symbol {
    position: absolute;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
    animation: symbolGlow 2s ease-in-out infinite alternate;
}

.symbol:nth-child(1) {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.symbol:nth-child(2) {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.symbol:nth-child(3) {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.symbol:nth-child(4) {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.mystical-text {
    text-align: center;
    z-index: 2;
}

.chanting {
    font-size: 1.3rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
    animation: textAppear 1.5s ease-in-out infinite alternate;
    text-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.manifesting {
    font-size: 1rem;
    color: #f093fb;
    font-weight: 500;
    animation: textAppear 1.5s ease-in-out infinite alternate 0.5s;
    text-shadow: 0 0 10px rgba(240, 147, 251, 0.5);
}

.mystical-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
}

.particle-1 {
    top: 20%;
    left: 15%;
    animation: particleFloat 4s ease-in-out infinite;
}

.particle-2 {
    top: 30%;
    right: 20%;
    animation: particleFloat 5s ease-in-out infinite 1s;
}

.particle-3 {
    bottom: 25%;
    left: 25%;
    animation: particleFloat 6s ease-in-out infinite 2s;
}

.particle-4 {
    top: 15%;
    right: 30%;
    animation: particleFloat 4.5s ease-in-out infinite 1.5s;
}

.particle-5 {
    bottom: 20%;
    right: 15%;
    animation: particleFloat 5.5s ease-in-out infinite 0.5s;
}

/* 动画关键帧 */
@keyframes mysticalPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

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

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

@keyframes symbolGlow {
    from {
        opacity: 0.4;
        transform: scale(0.8) rotate(0deg);
    }
    to {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

@keyframes textAppear {
    from {
        opacity: 0.3;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 时间板块背景动画 */
@keyframes timeBackgroundShift {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: rotate(90deg) scale(1.1);
        opacity: 0.6;
    }
    50% {
        transform: rotate(180deg) scale(1);
        opacity: 0.8;
    }
    75% {
        transform: rotate(270deg) scale(0.9);
        opacity: 0.7;
    }
}

@keyframes timeGridFloat {
    from {
        transform: translate(0, 0) rotate(0deg);
    }
    to {
        transform: translate(-50px, -50px) rotate(360deg);
    }
}

/* 黄历板块背景动画 */
@keyframes lunarBackgroundShift {
    0%, 100% {
        transform: rotate(0deg) scale(1.2);
        opacity: 0.7;
    }
    33% {
        transform: rotate(120deg) scale(1.3);
        opacity: 0.5;
    }
    66% {
        transform: rotate(240deg) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes lunarGridFloat {
    from {
        transform: translate(0, 0);
        background-position: 0 0;
    }
    to {
        transform: translate(100px, 100px);
        background-position: 25px 25px;
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-30px) translateX(20px) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-60px) translateX(-10px) scale(0.8);
        opacity: 1;
    }
    75% {
        transform: translateY(-20px) translateX(-25px) scale(1.1);
        opacity: 0.4;
    }
}

/* 神秘揭晓容器 */
.fortune-mysterious-reveal {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(255, 252, 210, 0.3) 0%, rgba(240, 147, 251, 0.2) 40%, transparent 70%);
    border-radius: 20px;
    overflow: hidden;
}

.reveal-light {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 252, 210, 0.6) 30%, transparent 70%);
    border-radius: 50%;
    animation: revealLight 1.5s ease-out forwards;
    z-index: 1;
}

.mystical-sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.sparkle {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: sparkleAnimation 2s ease-out forwards;
}

.sparkle-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0.2s;
}

.sparkle-2 {
    top: 15%;
    right: 20%;
    animation-delay: 0.4s;
}

.sparkle-3 {
    bottom: 25%;
    left: 25%;
    animation-delay: 0.6s;
}

.sparkle-4 {
    bottom: 20%;
    right: 15%;
    animation-delay: 0.8s;
}

.sparkle-5 {
    top: 40%;
    left: 10%;
    animation-delay: 1.0s;
}

.sparkle-6 {
    top: 45%;
    right: 10%;
    animation-delay: 1.2s;
}

/* 签文揭晓动画 */
.fortune-reveal {
    animation: fortuneReveal 1.5s ease-out;
    position: relative;
    z-index: 2;
}

@keyframes fortuneReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateY(90deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) rotateY(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

@keyframes revealLight {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    50% {
        width: 300px;
        height: 300px;
        opacity: 0.8;
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

@keyframes sparkleAnimation {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
    80% {
        opacity: 1;
        transform: scale(1) rotate(360deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) rotate(540deg);
    }
}

/* 抽签按钮动效 */
.btn-fortune:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-fortune.shuffling {
    animation: mysticalPulse 1s ease-in-out infinite;
    background: linear-gradient(45deg, #8b5cf6, #ec4899, #06b6d4);
    background-size: 300% 300%;
    animation: mysticalPulse 1s ease-in-out infinite, gradientShift 3s ease infinite;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4), 0 0 30px rgba(236, 72, 153, 0.3);
}

@keyframes mysticalPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4), 0 0 20px rgba(236, 72, 153, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(139, 92, 246, 0.6), 0 0 40px rgba(236, 72, 153, 0.5);
    }
}

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

/* 星光效果 */
.star-effect {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white;
    animation: starFall 1s linear infinite;
}

@keyframes starFall {
    0% {
        transform: translateY(-100px) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(400px) translateX(50px);
        opacity: 0;
    }
}

/* 消息排版优化 */
.message-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
}

.message-content p {
    margin-bottom: 12px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content strong {
    color: #667eea;
    font-weight: 600;
}

.message-content em {
    color: #764ba2;
    font-style: italic;
}

/* AI回复特殊格式 */
.ai-message .message-content {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-left: 4px solid #667eea;
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 滚动到消息动画 */
.scroll-to-message {
    scroll-behavior: smooth;
}

/* 打字机效果 */
.typewriter {
    overflow: hidden;
    white-space: pre-wrap;
    animation: typing 2s steps(40, end);
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* 开屏动画响应式设计 */
@media (max-width: 768px) {
    .splash-title {
        font-size: 2rem;
    }

    .splash-subtitle {
        font-size: 1rem;
    }

    .mystical-orb {
        width: 150px;
        height: 150px;
    }

    .orb-core {
        width: 80px;
        height: 80px;
    }

    .orb-rings {
        width: 150px;
        height: 150px;
    }

    .orb-particles .particle {
        font-size: 18px;
    }

    .loading-dots .dot {
        width: 10px;
        height: 10px;
    }

    /* 品牌徽章响应式 */
    .brand-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
        margin-bottom: 15px;
    }

    .brand-badge i {
        font-size: 0.9rem;
    }

    /* 页脚响应式 */
    .footer-content {
        gap: 10px;
    }

    .footer-disclaimer {
        font-size: 0.8rem;
        padding: 6px 16px;
        gap: 8px;
    }

    .footer-disclaimer i {
        font-size: 0.8rem;
    }

    .footer-brand {
        font-size: 0.75rem;
        padding: 5px 12px;
        gap: 6px;
    }

    .footer-brand i {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .brand-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .brand-text {
        letter-spacing: 0.5px;
    }

    .footer-disclaimer {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .footer-brand {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    /* 商业运势响应式 */
    .business-fortune {
        gap: 10px;
        padding: 12px 15px;
    }

    .business-item {
        gap: 10px;
    }

    .business-label {
        font-size: 0.85rem;
        min-width: 50px;
    }

    .energy-bar {
        height: 6px;
    }

    .energy-value {
        font-size: 0.8rem;
        min-width: 30px;
    }

    /* 商业智慧响应式 */
    .wisdom-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .wisdom-tabs {
        width: 100%;
        justify-content: center;
    }

    .wisdom-tab {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .wisdom-quote {
        padding: 15px 20px;
    }

    .wisdom-quote p {
        font-size: 1rem;
    }

    .wisdom-action {
        padding: 12px 15px;
        gap: 10px;
    }

    .action-tag {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .wisdom-action p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .wisdom-header h3 {
        font-size: 1.3rem;
    }

    .wisdom-tabs {
        gap: 4px;
        padding: 3px;
    }

    .wisdom-tab {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .wisdom-quote p {
        font-size: 0.95rem;
    }

    .wisdom-action p {
        font-size: 0.85rem;
    }

    /* 分享功能响应式 */
    .share-buttons {
        gap: 10px;
    }

    .share-btn {
        min-width: 80px;
        padding: 12px 15px;
    }

    .share-btn i {
        font-size: 1.3rem;
    }

    .share-btn span {
        font-size: 0.8rem;
    }

    .share-tip {
        font-size: 0.9rem;
    }

    .qr-content {
        padding: 20px;
        max-width: 95%;
    }

    .qr-title {
        font-size: 1.1rem;
    }

    .qr-image {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .share-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .share-btn {
        min-width: auto;
        padding: 15px;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .share-btn i {
        font-size: 1.2rem;
    }

    .qr-content {
        padding: 15px;
    }
}

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

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .calendar-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .time-digital {
        font-size: 2rem;
    }

    .time-date {
        font-size: 1rem;
    }

    .lunar-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .lunar-extra {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .fortune-card {
        padding: 25px;
        margin: 0;
    }

    .ai-card {
        padding: 20px;
        margin: 0;
    }

    .fortune-display {
        min-height: 220px;
        padding: 25px;
    }

    .fortune-title {
        font-size: 1.8rem;
    }

    .fortune-text {
        font-size: 1.2rem;
    }

    .fortune-meaning {
        font-size: 1rem;
    }

    .input-group {
        flex-direction: column;
    }

    .fortune-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-fortune, .btn-ai {
        width: 100%;
        max-width: 300px;
    }

    .chat-container {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .time-digital {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .lunar-header h3 {
        font-size: 1.1rem;
    }

    .lunar-date {
        font-size: 1.1rem;
    }

    .lunar-zodiac {
        font-size: 1rem;
    }

    .almanac-content {
        font-size: 0.9rem;
    }

    .lunar-constellation,
    .lunar-ganzhi {
        font-size: 0.9rem;
    }
}

/* 成功提示样式 */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #4ade80, #22c55e);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    animation: slideInRight 0.3s ease, slideOutRight 0.3s ease 2.7s;
    z-index: 1000;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 性能优化 */
.splash-screen {
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.mystical-orb {
    will-change: transform;
    backface-visibility: hidden;
}

.orb-core,
.orb-rings .ring,
.orb-particles .particle {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* 减弱动画以提升性能 */
@media (prefers-reduced-motion: reduce) {
    .splash-screen {
        animation: none;
    }

    .orb-core {
        animation: none;
    }

    .orb-rings .ring {
        animation: none;
    }

    .orb-particles .particle {
        animation: none;
    }

    .loading-dots .dot {
        animation: none;
    }

    .splash-title {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .loading-dots {
        animation: none;
        opacity: 1;
    }
}

/* 优化移动端性能 */
@media (max-width: 768px) and (max-height: 800px) {
    .logo-container {
        gap: 20px;
        margin-bottom: 30px;
    }

    .mystical-orb {
        margin-bottom: 15px;
    }

    .loading-dots {
        margin-top: 20px;
    }
}