@keyframes bazi-fade-in{0%{opacity:0}to{opacity:1}}@keyframes bazi-slide-up{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes bazi-scale-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes bazi-pulse-soft{0%,to{opacity:1}50%{opacity:.7}}.theme-bazi{--animate-fade-in:bazi-fade-in .3s ease-out;--animate-slide-up:bazi-slide-up .3s ease-out;--animate-scale-in:bazi-scale-in .2s ease-out;--animate-pulse-soft:bazi-pulse-soft 2s ease-in-out infinite;background-color:hsl(var(--background));color:hsl(var(--foreground))}.theme-bazi *{border-color:hsl(var(--border))}.theme-bazi .font-serif{font-family:Noto Serif SC,Songti SC,STSong,Georgia,serif}.theme-bazi .font-kai{font-family:KaiTi,STKaiti,楷体,serif}.theme-bazi .scroll-smooth{-webkit-overflow-scrolling:touch;scroll-behavior:smooth}.theme-bazi .scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}.theme-bazi .scrollbar-hide::-webkit-scrollbar{display:none}.theme-bazi .scrollbar-always-show{scrollbar-width:thin;scrollbar-color:#9ca3af #f1f1f1}.theme-bazi .scrollbar-always-show::-webkit-scrollbar{width:8px;height:8px;display:block!important}.theme-bazi .scrollbar-always-show::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}.theme-bazi .scrollbar-always-show::-webkit-scrollbar-thumb{background:#9ca3af;border-radius:4px}.theme-bazi .scrollbar-always-show::-webkit-scrollbar-thumb:hover{background:#6b7280}.dark .theme-bazi .scrollbar-always-show,.theme-bazi.dark .scrollbar-always-show,.theme-bazi .dark .scrollbar-always-show{scrollbar-color:#6b7280 #374151}.dark .theme-bazi .scrollbar-always-show::-webkit-scrollbar-track{background:#374151}.theme-bazi.dark .scrollbar-always-show::-webkit-scrollbar-track{background:#374151}.theme-bazi .dark .scrollbar-always-show::-webkit-scrollbar-track{background:#374151}.dark .theme-bazi .scrollbar-always-show::-webkit-scrollbar-thumb{background:#6b7280}.theme-bazi.dark .scrollbar-always-show::-webkit-scrollbar-thumb{background:#6b7280}.theme-bazi .dark .scrollbar-always-show::-webkit-scrollbar-thumb{background:#6b7280}.dark .theme-bazi .scrollbar-always-show::-webkit-scrollbar-thumb:hover{background:#9ca3af}.theme-bazi.dark .scrollbar-always-show::-webkit-scrollbar-thumb:hover{background:#9ca3af}.theme-bazi .dark .scrollbar-always-show::-webkit-scrollbar-thumb:hover{background:#9ca3af}.theme-bazi .touch-feedback{transition:transform .1s,opacity .1s}.theme-bazi .touch-feedback:active{opacity:.9;transform:scale(.98)}.theme-bazi .safe-area-inset{padding-bottom:env(safe-area-inset-bottom)}.theme-bazi .wuxing-wood{background-color:hsl(var(--wuxing-wood));color:#fff}.theme-bazi .wuxing-wood-text{color:hsl(var(--wuxing-wood))}.theme-bazi .wuxing-wood-border{border-color:hsl(var(--wuxing-wood))}.theme-bazi .wuxing-wood-bg{background-color:#eef7f0}.dark .theme-bazi .wuxing-wood-bg,.theme-bazi.dark .wuxing-wood-bg,.theme-bazi .dark .wuxing-wood-bg{background-color:#1d3021}.theme-bazi .wuxing-fire{background-color:hsl(var(--wuxing-fire));color:#fff}.theme-bazi .wuxing-fire-text{color:hsl(var(--wuxing-fire))}.theme-bazi .wuxing-fire-border{border-color:hsl(var(--wuxing-fire))}.theme-bazi .wuxing-fire-bg{background-color:#faefef}.dark .theme-bazi .wuxing-fire-bg,.theme-bazi.dark .wuxing-fire-bg,.theme-bazi .dark .wuxing-fire-bg{background-color:#341919}.theme-bazi .wuxing-earth{background-color:hsl(var(--wuxing-earth));color:#fff}.theme-bazi .wuxing-earth-text{color:hsl(var(--wuxing-earth))}.theme-bazi .wuxing-earth-border{border-color:hsl(var(--wuxing-earth))}.theme-bazi .wuxing-earth-bg{background-color:#fbf6ea}.dark .theme-bazi .wuxing-earth-bg,.theme-bazi.dark .wuxing-earth-bg,.theme-bazi .dark .wuxing-earth-bg{background-color:#362d17}.theme-bazi .wuxing-metal{background-color:hsl(var(--wuxing-metal));color:#fff}.theme-bazi .wuxing-metal-text{color:hsl(var(--wuxing-metal))}.theme-bazi .wuxing-metal-border{border-color:hsl(var(--wuxing-metal))}.theme-bazi .wuxing-metal-bg{background-color:#f5f5f5}.dark .theme-bazi .wuxing-metal-bg,.theme-bazi.dark .wuxing-metal-bg,.theme-bazi .dark .wuxing-metal-bg{background-color:#333}.theme-bazi .wuxing-water{background-color:hsl(var(--wuxing-water));color:#fff}.theme-bazi .wuxing-water-text{color:hsl(var(--wuxing-water))}.theme-bazi .wuxing-water-border{border-color:hsl(var(--wuxing-water))}.theme-bazi .wuxing-water-bg{background-color:#edf4f8}.dark .theme-bazi .wuxing-water-bg,.theme-bazi.dark .wuxing-water-bg,.theme-bazi .dark .wuxing-water-bg{background-color:#1b2a32}.theme-bazi .pillar-card{box-shadow:var(--shadow-pillar);background:linear-gradient(#fdfdfc 0%,#f9f8f5 100%);border:1px solid #eae2d7;border-radius:.75rem;padding:1rem;position:relative;overflow:hidden}.dark .theme-bazi .pillar-card,.theme-bazi.dark .pillar-card,.theme-bazi .dark .pillar-card{background:linear-gradient(#29231e 0%,#201b18 100%);border-color:#43362d}.theme-bazi .pillar-header{text-align:center;color:hsl(var(--primary));border-bottom:1px dashed #dbcfbd;margin-bottom:.75rem;padding-bottom:.5rem;font-family:Noto Serif SC,Songti SC,STSong,Georgia,serif;font-size:.875rem;font-weight:500}.dark .theme-bazi .pillar-header,.theme-bazi.dark .pillar-header,.theme-bazi .dark .pillar-header{border-bottom-color:#5c4a3d}.theme-bazi .pillar-gan{text-align:center;color:hsl(var(--foreground));margin-bottom:.5rem;font-family:Noto Serif SC,Songti SC,STSong,Georgia,serif;font-size:1.5rem;font-weight:700}.theme-bazi .pillar-zhi{text-align:center;color:hsl(var(--primary));font-family:Noto Serif SC,Songti SC,STSong,Georgia,serif;font-size:1.5rem;font-weight:700}.theme-bazi .pillar-element{border-radius:9999px;justify-content:center;align-items:center;width:1.5rem;height:1.5rem;font-size:.75rem;font-weight:500;display:inline-flex}.theme-bazi .fortune-gradient-great{background:linear-gradient(to bottom right,#ecfdf5,#f0fdfa)}.theme-bazi .fortune-gradient-good{background:linear-gradient(to bottom right,#fffbeb,#fefce8)}.theme-bazi .fortune-gradient-neutral{background:linear-gradient(to bottom right,#fafaf9,#f3f4f6)}.theme-bazi .fortune-gradient-caution{background:linear-gradient(to bottom right,#fff7ed,#fffbeb)}.theme-bazi .fortune-gradient-warning{background:linear-gradient(to bottom right,#fff1f2,#fef2f2)}.dark .theme-bazi .fortune-gradient-great,.theme-bazi.dark .fortune-gradient-great,.theme-bazi .dark .fortune-gradient-great{color:#d1fae5;background:linear-gradient(to bottom right,#064e3b80,#134e4a80)}.dark .theme-bazi .fortune-gradient-good,.theme-bazi.dark .fortune-gradient-good,.theme-bazi .dark .fortune-gradient-good{color:#fef3c7;background:linear-gradient(to bottom right,#78350f80,#713f1280)}.dark .theme-bazi .fortune-gradient-neutral,.theme-bazi.dark .fortune-gradient-neutral,.theme-bazi .dark .fortune-gradient-neutral{color:#e7e5e4;background:linear-gradient(to bottom right,#29252480,#1f293780)}.dark .theme-bazi .fortune-gradient-caution,.theme-bazi.dark .fortune-gradient-caution,.theme-bazi .dark .fortune-gradient-caution{color:#ffedd5;background:linear-gradient(to bottom right,#7c2d1280,#78350f80)}.dark .theme-bazi .fortune-gradient-warning,.theme-bazi.dark .fortune-gradient-warning,.theme-bazi .dark .fortune-gradient-warning{color:#ffe4e6;background:linear-gradient(to bottom right,#88133780,#7f1d1d80)}.theme-bazi .btn-vermillion{color:#fff;background-color:#c53d43;border-radius:.5rem;padding:.5rem 1rem;font-weight:500;transition:all .2s}.theme-bazi .btn-vermillion:hover{background-color:#a83238}.theme-bazi .btn-vermillion:active{transform:scale(.98)}.theme-bazi .btn-jade{color:#fff;background-color:#2d5a4a;border-radius:.5rem;padding:.5rem 1rem;font-weight:500;transition:all .2s}.theme-bazi .btn-jade:hover{background-color:#234a3c}.theme-bazi .btn-jade:active{transform:scale(.98)}.theme-bazi .btn-earth{background-color:hsl(var(--primary));color:hsl(var(--primary-foreground));border-radius:.5rem;padding:.5rem 1rem;font-weight:500;transition:all .2s}.theme-bazi .btn-earth:hover{background-color:#7e551b}.dark .theme-bazi .btn-earth:hover,.theme-bazi.dark .btn-earth:hover,.theme-bazi .dark .btn-earth:hover{background-color:#d1a261}.theme-bazi .border-traditional{border:2px solid #0000;border-image:linear-gradient(135deg,#bd7f28 0%,#dfa920 50%,#bd7f28 100%) 1}.theme-bazi .yin-yang-balance{align-items:center;gap:.5rem;display:flex}.theme-bazi .yin-indicator{background-color:#2d5a4a;border-radius:9999px;width:.75rem;height:.75rem}.theme-bazi .yang-indicator{background-color:#c53d43;border-radius:9999px;width:.75rem;height:.75rem}.theme-bazi .tab-trigger{color:hsl(var(--muted-foreground))}.dark .theme-bazi .tab-trigger,.theme-bazi.dark .tab-trigger,.theme-bazi .dark .tab-trigger{color:#c2b5a3}.theme-bazi [data-state=active].tab-trigger{color:hsl(var(--primary));background-color:#fff}.dark .theme-bazi [data-state=active].tab-trigger,.theme-bazi.dark [data-state=active].tab-trigger,.theme-bazi .dark [data-state=active].tab-trigger{color:hsl(var(--primary));background-color:#352d27}.theme-bazi .markdown-text{color:hsl(var(--foreground))}.theme-bazi .markdown-blockquote{border-left:3px solid hsl(var(--primary));color:#53432d;background-color:#f9f5f1;margin-top:.5rem;margin-bottom:.5rem;padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem}.dark .theme-bazi .markdown-blockquote,.theme-bazi.dark .markdown-blockquote,.theme-bazi .dark .markdown-blockquote{color:#dbcfbd;background-color:#2e281f}.theme-bazi .markdown-em{color:hsl(var(--accent-foreground));font-style:italic}.theme-bazi .markdown-code{background-color:hsl(var(--secondary));color:hsl(var(--primary));border-radius:.25rem;padding:.125rem .375rem;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:.875rem}.theme-bazi .hero-circle{box-shadow:var(--shadow-soft-lg);background-color:#fff}.dark .theme-bazi .hero-circle,.theme-bazi.dark .hero-circle,.theme-bazi .dark .hero-circle{background-color:#2c2521}.theme-bazi .hero-pill{color:hsl(var(--foreground));-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background-color:#ffffffd9;border-radius:9999px;padding:.25rem .75rem;font-size:.875rem}.dark .theme-bazi .hero-pill,.theme-bazi.dark .hero-pill,.theme-bazi .dark .hero-pill{color:#ebe6e0;background-color:#ffffff26}.theme-bazi .hero-pill-active{color:hsl(var(--primary));background-color:#fff;font-weight:500}.dark .theme-bazi .hero-pill-active,.theme-bazi.dark .hero-pill-active,.theme-bazi .dark .hero-pill-active{color:hsl(var(--primary));background-color:#ffffff40}.theme-bazi .watermark{display:none}.theme-bazi .watermark-visible{text-align:right;color:hsl(var(--muted-foreground));border-top:1px solid #ebe6e0;margin-top:.75rem;padding-top:.75rem;font-size:.75rem;display:block}.dark .theme-bazi .watermark-visible,.theme-bazi.dark .watermark-visible,.theme-bazi .dark .watermark-visible{border-top-color:#493e36}.theme-bazi .compatibility-export-root[data-export-mode=true]{max-width:100%;overflow-x:hidden}.theme-bazi .compatibility-export-root[data-export-mode=true] .compatibility-export-chip{white-space:normal;overflow-wrap:anywhere;word-break:break-word;min-width:0;max-width:100%}.theme-bazi input,.theme-bazi textarea,.theme-bazi select{font-size:16px!important}.theme-bazi .bg-cloud-pattern{background-image:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 10c5.5 0 10 4.5 10 10 0 1-.2 2-.5 3 4 1.5 7 5 7 9.5 0 5.5-4.5 10-10 10H24c-5.5 0-10-4.5-10-10 0-4 2.5-7.5 6-9-.3-1-.5-2-.5-3 0-5.5 4.5-10 10.5-10z' fill='%23d4a574' fill-opacity='0.03'/%3E%3C/svg%3E")}.dark .theme-bazi .bg-cloud-pattern,.theme-bazi.dark .bg-cloud-pattern,.theme-bazi .dark .bg-cloud-pattern{background-image:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 10c5.5 0 10 4.5 10 10 0 1-.2 2-.5 3 4 1.5 7 5 7 9.5 0 5.5-4.5 10-10 10H24c-5.5 0-10-4.5-10-10 0-4 2.5-7.5 6-9-.3-1-.5-2-.5-3 0-5.5 4.5-10 10.5-10z' fill='%23d4a574' fill-opacity='0.05'/%3E%3C/svg%3E")}.theme-bazi.theme-transition,.theme-bazi.theme-transition *,.theme-bazi.theme-transition :before,.theme-bazi.theme-transition :after{transition:background-color .3s,color .3s,border-color .3s,box-shadow .3s!important}.theme-bazi .bazi-text-primary{color:hsl(var(--foreground))}.theme-bazi .bazi-text-secondary{color:hsl(var(--muted-foreground))}.theme-bazi .bazi-text-muted{color:hsl(var(--muted-foreground)/.7)}.theme-bazi .bazi-rating-great{color:#36a15d}.dark .theme-bazi .bazi-rating-great,.theme-bazi.dark .bazi-rating-great,.theme-bazi .dark .bazi-rating-great{color:#53c67d}.theme-bazi .bazi-rating-good{color:#d2962d}.dark .theme-bazi .bazi-rating-good,.theme-bazi.dark .bazi-rating-good,.theme-bazi .dark .bazi-rating-good{color:#dbab57}.theme-bazi .bazi-rating-warning{color:#c33}.dark .theme-bazi .bazi-rating-warning,.theme-bazi.dark .bazi-rating-warning,.theme-bazi .dark .bazi-rating-warning{color:#d16161}.theme-bazi .bg-background{background-color:hsl(var(--background))}.theme-bazi .text-foreground{color:hsl(var(--foreground))}.theme-bazi .bg-card{background-color:hsl(var(--card))}.theme-bazi .text-card-foreground{color:hsl(var(--card-foreground))}.theme-bazi .bg-primary{background-color:hsl(var(--primary))}.theme-bazi .text-primary{color:hsl(var(--primary))}.theme-bazi .text-primary-foreground{color:hsl(var(--primary-foreground))}.theme-bazi .bg-secondary{background-color:hsl(var(--secondary))}.theme-bazi .text-secondary-foreground{color:hsl(var(--secondary-foreground))}.theme-bazi .bg-muted{background-color:hsl(var(--muted))}.theme-bazi .text-muted-foreground{color:hsl(var(--muted-foreground))}.theme-bazi .bg-accent{background-color:hsl(var(--accent))}.theme-bazi .text-accent-foreground{color:hsl(var(--accent-foreground))}.theme-bazi .border-border{border-color:hsl(var(--border))}.theme-bazi .ring-ring{--tw-ring-color:hsl(var(--ring))}.bazi-interpretation .markdown-content h2{color:#b45309;border-bottom:1px solid #f59e0b33;margin-top:1.75rem;margin-bottom:.75rem;padding-bottom:.5rem;padding-left:.875rem;position:relative}.bazi-interpretation .markdown-content h2:before{content:"";background:linear-gradient(#f59e0b,#ea580c);border-radius:2px;width:3px;height:1.2em;position:absolute;top:.15em;left:0}.bazi-interpretation .markdown-content h2:first-of-type{margin-top:0}.bazi-interpretation .markdown-content p{margin-bottom:.875rem;line-height:1.75}.bazi-interpretation .markdown-content strong{color:#b45309}.dark .bazi-interpretation .markdown-content h2{color:#fcd34d;border-bottom-color:#f59e0b26}.dark .bazi-interpretation .markdown-content h2:before{background:linear-gradient(#fbbf24,#f97316)}.dark .bazi-interpretation .markdown-content strong{color:#fcd34d}
