html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(45, 27, 105, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

/* 页面加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

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

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

/* 板块进入动画 */
section {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

section:nth-child(2) {
    animation-delay: 0.1s;
}

section:nth-child(3) {
    animation-delay: 0.2s;
}

section:nth-child(4) {
    animation-delay: 0.3s;
}

section:nth-child(5) {
    animation-delay: 0.4s;
}

section:nth-child(6) {
    animation-delay: 0.5s;
}

section:nth-child(7) {
    animation-delay: 0.6s;
}

section:nth-child(8) {
    animation-delay: 0.7s;
}

/* 卡片悬停效果 */
.zodiac-card,
.element-card,
.wuxing-detail-card,
.shishen-card,
.knowledge-card,
.tool-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.zodiac-card:hover,
.element-card:hover,
.wuxing-detail-card:hover,
.shishen-card:hover,
.knowledge-card:hover,
.tool-card:hover {
    animation: pulse 0.6s ease-in-out;
}

/* 导航链接动画 */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.nav-link:hover::before {
    width: 300%;
    height: 300%;
}

/* 按钮动画 */
.query-btn,
.tool-btn {
    position: relative;
    overflow: hidden;
}

.query-btn::after,
.tool-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.query-btn:hover::after,
.tool-btn:hover::after {
    width: 300%;
    height: 300%;
}

/* FAQ动画 */
.faq-question i {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.faq-question.active i {
    animation: pulse 0.4s ease-in-out;
}

/* 模态框动画 */
.modal-content {
    animation: fadeInScale 0.4s ease-out;
}

/* 星星闪烁效果增强 */
body::before {
    animation: twinkle 3s ease-in-out infinite;
}

/* 工具图标动画 */
.tool-icon {
    animation: float 3s ease-in-out infinite;
}

.tool-card:nth-child(2) .tool-icon {
    animation-delay: 0.5s;
}

.tool-card:nth-child(3) .tool-icon {
    animation-delay: 1s;
}

.tool-card:nth-child(4) .tool-icon {
    animation-delay: 1.5s;
}

/* 五行图标动画 */
.wuxing-icon {
    animation: float 4s ease-in-out infinite;
}

.wuxing-detail-card:nth-child(2) .wuxing-icon {
    animation-delay: 0.5s;
}

.wuxing-detail-card:nth-child(3) .wuxing-icon {
    animation-delay: 1s;
}

.wuxing-detail-card:nth-child(4) .wuxing-icon {
    animation-delay: 1.5s;
}

.wuxing-detail-card:nth-child(5) .wuxing-icon {
    animation-delay: 2s;
}

/* 知识卡片动画 */
.knowledge-icon {
    animation: float 3.5s ease-in-out infinite;
}

.knowledge-card:nth-child(2) .knowledge-icon {
    animation-delay: 0.5s;
}

.knowledge-card:nth-child(3) .knowledge-icon {
    animation-delay: 1s;
}

.knowledge-card:nth-child(4) .knowledge-icon {
    animation-delay: 1.5s;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #2d1b69 0%, #3d2c8d 30%, #5d3fd3 60%, #7c5cff 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 160px 120px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 200px 50px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 250px 160px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 300px 90px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 350px 130px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 400px 60px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 450px 100px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 500px 80px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 550px 150px, #ffffff, rgba(0,0,0,0));
    background-size: 550px 200px;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    background-repeat: repeat;
    animation: twinkle 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateY(-10px);
    }
}

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

header {
    text-align: center;
    padding: 3rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 2.5rem;
    color: #fff;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

header h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 2px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: #fff;
    color: #4f46e5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.query-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0 3rem 0;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.query-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 0.5rem;
}

.required-mark {
    color: #ef4444;
    margin-left: 2px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    padding: 0.8rem;
    border: 2px solid #4338ca;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.gender-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.gender-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.gender-option input {
    width: auto;
    cursor: pointer;
    accent-color: #4f46e5;
}

.gender-option span {
    font-size: 1rem;
    color: #e0e7ff;
}

.query-btn {
    grid-column: 1 / -1;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

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

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

.query-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

.query-btn:disabled {
    color: white !important;
    opacity: 0.6;
    cursor: not-allowed;
}

.query-result {
    margin-top: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 15px;
    color: white;
    display: none;
}

.query-result.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* 进度条样式 */
.progress-container {
    margin: 2rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 50%, #4f46e5 100%);
    background-size: 200% 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    animation: progressGradient 2s linear infinite;
}

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

.progress-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.progress-percentage {
    text-align: center;
    color: #ffd700;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0 1rem;
}

.progress-step {
    flex: 1;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    position: relative;
}

.progress-step.active {
    color: #fff;
    font-weight: 600;
}

.progress-step.completed {
    color: #4ade80;
}

.progress-step::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 auto 0.5rem;
    transition: all 0.3s ease;
}

.progress-step.active::before {
    background: #7c3aed;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.6);
}

.progress-step.completed::before {
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

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

.result-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.result-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bazi-info,
.wuxing-analysis,
.shishen-analysis,
.zodiac-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.bazi-info h4,
.wuxing-analysis h4,
.shishen-analysis h4,
.zodiac-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.bazi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.bazi-pillar {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.bazi-pillar:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.bazi-pillar.day-pillar {
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.4);
}

.pillar-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.pillar-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pillar-content .gan,
.pillar-content .zhi {
    font-size: 1.5rem;
    font-weight: 600;
}

.pillar-content .wu-xing {
    font-size: 0.9rem;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    display: inline-block;
    width: fit-content;
    margin: 0 auto;
}

.pillar-content .wu-xing.金 {
    background: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.pillar-content .wu-xing.木 {
    background: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.pillar-content .wu-xing.水 {
    background: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.pillar-content .wu-xing.火 {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.pillar-content .wu-xing.土 {
    background: rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
}

.wuxing-chart {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.wuxing-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wuxing-bar .bar-label {
    width: 40px;
    font-weight: 600;
    font-size: 0.95rem;
}

.wuxing-bar .bar-fill {
    flex: 1;
    height: 24px;
    border-radius: 12px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.wuxing-bar .bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.wuxing-bar .bar-fill.metal {
    background: linear-gradient(90deg, #ffd700, #ffed4a);
}

.wuxing-bar .bar-fill.wood {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.wuxing-bar .bar-fill.water {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.wuxing-bar .bar-fill.fire {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.wuxing-bar .bar-fill.earth {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.wuxing-bar .bar-value {
    width: 50px;
    text-align: right;
    font-weight: 600;
    font-size: 0.95rem;
}

.wuxing-summary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.wuxing-summary p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.shishen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.shishen-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.shishen-item .shishen-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.shishen-item .shishen-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffd700;
}

.day-master {
    text-align: center;
    font-size: 1.05rem;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.zodiac-info p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.api-analysis {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.api-analysis h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.fallback-analysis {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.fallback-analysis h4,
.fallback-analysis h5 {
    color: #fff;
    margin-bottom: 0.8rem;
}

.fallback-analysis h5 {
    font-size: 1.05rem;
    margin-top: 1.2rem;
}

.fallback-analysis p {
    margin-bottom: 0.8rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}

.fallback-analysis strong {
    color: #ffd700;
}

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

.query-result h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.query-result p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.error-title {
    color: #ef4444;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.error-message {
    color: #dc2626;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.error-info {
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.fallback-analysis {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.fallback-analysis h3 {
    color: #2d1b69;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.fallback-analysis p {
    margin-bottom: 0.5rem;
    color: #333;
}

.fallback-analysis strong {
    color: #5d3fd3;
}

.analysis-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.analysis-section h4 {
    color: #5d3fd3;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.api-analysis {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.api-analysis h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.analysis-content {
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: left;
}

/* 分析内容包装器 */
.analysis-wrapper {
    animation: fadeIn 0.5s ease;
}

/* 分析模块容器 */
.analysis-module {
    margin-bottom: 2rem;
}

/* 标题卡片（主标题和副标题） */
.analysis-title-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-radius: 12px;
    border-left: 4px solid #ffd700;
    padding: 1.2rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    margin-bottom: 1rem;
    animation: fadeInUp 0.4s ease-out;
}

/* 主标题 */
.analysis-main-title {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.8rem;
}

.main-title-icon {
    font-size: 1.4rem;
    margin-right: -0.2em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
}

.main-title-text {
    flex: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-indent: 2em;
    line-height: 1.6;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
}

/* 移动端主标题优化 */
@media (max-width: 768px) {
    .analysis-main-title {
        flex-wrap: nowrap;
        white-space: nowrap;
        min-height: auto;
    }
    
    .main-title-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-indent: 1em;
        font-size: 1rem;
    }
    
    .main-title-icon {
        margin-right: -0.2em;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .main-title-text {
        font-size: 0.95rem;
        text-indent: 0.5em;
    }
    
    .main-title-icon {
        margin-right: -0.2em;
        font-size: 1.1rem;
    }
}

/* 副标题容器 */
.analysis-subtitles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* 副标题标签 */
.analysis-subtitle-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(167, 139, 250, 0.2);
    color: #a78bfa;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid rgba(167, 139, 250, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 内容卡片 */
.analysis-content-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.4s ease-out 0.1s both;
}

/* 段落文本 */
.analysis-paragraph-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding: 0.3rem 0;
    text-align: justify;
    text-indent: 2em;
}

.analysis-paragraph-text:last-child {
    margin-bottom: 0;
}

/* 主标题（模块标题） */
.analysis-main-title {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffd700;
    margin: 0 0 1rem 0;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-radius: 12px;
    border-left: 4px solid #ffd700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.main-title-icon {
    font-size: 1.4rem;
    margin-right: -0.2em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.main-title-text {
    flex: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-indent: 2em;
    line-height: 1.6;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
}

/* 列表容器（已废弃，保留用于兼容性） */
.analysis-list-container {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 分析段落（已废弃，保留用于兼容性） */
.analysis-paragraph {
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

.analysis-paragraph:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #ffd700;
}

/* 普通文本（已废弃，保留用于兼容性） */
.analysis-text {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
    padding: 0.3rem 0;
    line-height: 1.8;
}

/* 列表项（已废弃，保留用于兼容性） */
.analysis-list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.7rem;
    padding: 0.4rem 0.6rem;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.analysis-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.analysis-list-item.level-1 {
    margin-left: 0;
    padding-left: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.analysis-list-item.level-2 {
    margin-left: 1.5rem;
    padding-left: 0.3rem;
}

.list-number {
    flex-shrink: 0;
    min-width: 28px;
    color: #ffd700;
    font-weight: 700;
    font-size: 1.05rem;
    margin-right: 0.6rem;
    padding-top: 0.1rem;
}

.list-bullet {
    flex-shrink: 0;
    min-width: 22px;
    color: #ffd700;
    font-size: 1.1rem;
    line-height: 1.3;
    margin-right: 0.6rem;
    padding-top: 0.2rem;
}

.list-content {
    flex: 1;
    line-height: 1.8;
}
    color: rgba(255, 255, 255, 0.95);
}

/* 键值对 */
.analysis-key-value {
    display: flex;
    margin-bottom: 0.6rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    border-left: 2px solid rgba(167, 139, 250, 0.5);
}

.key {
    flex-shrink: 0;
    color: #a78bfa;
    font-weight: 600;
    margin-right: 0.6rem;
    font-size: 0.95rem;
}

.value {
    flex: 1;
    line-height: 1.7;
}

/* 加粗文本 */
.analysis-content strong {
    color: #ffd700;
    font-weight: 600;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

.elements-intro {
    margin: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-desc {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.section-desc-white-bg {
    color: #000000 !important;
    text-shadow: none !important;
    font-weight: 500;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
}

.section-title::before {
    left: -50px;
}

.section-title::after {
    right: -50px;
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.element-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.element-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.element-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.element-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4f46e5;
}

.element-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.element-fire h3 {
    color: #dc2626;
}

.element-water h3 {
    color: #2563eb;
}

.element-earth h3 {
    color: #16a34a;
}

.element-air h3 {
    color: #9333ea;
}

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.zodiac-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.zodiac-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.zodiac-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
}

.zodiac-symbol {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.zodiac-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #4f46e5;
}

.zodiac-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.zodiac-element {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.element-fire { background: #fee2e2; color: #dc2626; }
.element-water { background: #dbeafe; color: #2563eb; }
.element-earth { background: #dcfce7; color: #16a34a; }
.element-air { background: #f3e8ff; color: #9333ea; }

.zodiac-traits {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trait {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    background: #f3f4f6;
    border-radius: 5px;
    color: #666;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    z-index: 10;
}

.close-btn:hover {
    color: #333;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.modal-symbol {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.modal-name {
    font-size: 2rem;
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 0.5rem;
}

.modal-date {
    color: #666;
    font-size: 1rem;
}

.modal-body {
    padding: 2rem;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4f46e5;
}

.detail-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.element-description-fire h3 {
    color: #dc2626;
}

.element-description-water h3 {
    color: #2563eb;
}

.element-description-earth h3 {
    color: #16a34a;
}

.element-description-air h3 {
    color: #9333ea;
}

.lucky-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.lucky-item {
    text-align: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 10px;
}

.lucky-item .label {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.3rem;
}

.lucky-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4f46e5;
}

.seo-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4f46e5;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 3rem;
    border-top: 2px solid rgba(79, 70, 229, 0.3);
    background: rgba(30, 27, 75, 0.6);
    backdrop-filter: blur(10px);
}

/* 固定导航菜单 */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(45, 27, 105, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1rem;
    overflow-x: auto;
    position: relative;
    z-index: 101;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

/* 移动端导航菜单按钮 */
.mobile-menu-btn {
    display: none;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 102;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* 汉堡菜单按钮激活状态 */
.mobile-menu-btn.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 移动端导航容器 */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-container {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(45, 27, 105, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        z-index: 100;
    }

    .nav-container.active {
        max-height: 500px;
        padding: 1rem;
        overflow-y: auto;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 8px;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        margin-bottom: 0.5rem;
        background: rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateX(5px);
    }

    .nav-link.active {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 0.6rem 0.8rem;
        height: 60px;
    }

    .nav-container {
        max-height: 0;
        transition: max-height 0.4s ease;
    }

    .nav-container.active {
        max-height: 450px;
        padding: 0.8rem;
    }

    .nav-link {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }

    .mobile-menu-btn {
        right: 0.8rem;
        width: 44px;
        height: 44px;
    }

    .hamburger {
        width: 24px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    .main-nav {
        padding: 0.5rem 0.6rem;
        height: 56px;
    }

    .nav-container.active {
        max-height: 400px;
        padding: 0.6rem;
    }

    .nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .mobile-menu-btn {
        right: 0.6rem;
        width: 42px;
        height: 42px;
        padding: 0.35rem;
    }

    .hamburger {
        width: 22px;
        height: 2.5px;
    }
}

/* 五行详解板块 */
.wuxing-detail {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.2);
}

.wuxing-detail-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (max-width: 1100px) {
    .wuxing-detail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .wuxing-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .wuxing-detail-grid {
        grid-template-columns: 1fr;
    }
}

.wuxing-detail-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wuxing-detail-card:hover {
    transform: translateY(-8px);
}

.wuxing-detail-card.wuxing-metal {
    border-color: #ffd700;
}

.wuxing-detail-card.wuxing-metal:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    box-shadow: 0 12px 24px rgba(255, 215, 0, 0.3);
}

.wuxing-detail-card.wuxing-wood {
    border-color: #22c55e;
}

.wuxing-detail-card.wuxing-wood:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    box-shadow: 0 12px 24px rgba(34, 197, 94, 0.3);
}

.wuxing-detail-card.wuxing-water {
    border-color: #3b82f6;
}

.wuxing-detail-card.wuxing-water:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3);
}

.wuxing-detail-card.wuxing-fire {
    border-color: #ef4444;
}

.wuxing-detail-card.wuxing-fire:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.3);
}

.wuxing-detail-card.wuxing-earth {
    border-color: #8b5cf6;
}

.wuxing-detail-card.wuxing-earth:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.3);
}

.wuxing-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.wuxing-detail-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4f46e5;
}

.wuxing-desc {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.wuxing-details {
    text-align: left;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    background: rgba(79, 70, 229, 0.03);
    border-radius: 8px;
    padding: 1rem;
    margin-top: auto;
}

.wuxing-details p {
    color: #555;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.wuxing-details strong {
    color: #4f46e5;
    font-weight: 600;
}

.wuxing-relations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .wuxing-relations {
        grid-template-columns: 1fr;
    }
}

.relation-box {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #4f46e5;
    transition: all 0.3s ease;
}

.relation-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.2);
}

.relation-box h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #4f46e5;
}

.relation-box p {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
    font-weight: 500;
}

/* 十神详解板块 */
.shishen-detail {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.2);
}

.shishen-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .shishen-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .shishen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .shishen-grid {
        grid-template-columns: 1fr;
    }
}

.shishen-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #4f46e5;
}

.shishen-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.shishen-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 0.8rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.shishen-desc {
    color: #666;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.shishen-meaning {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.7;
    background: rgba(79, 70, 229, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

/* 八字基础板块 */
.bazi-knowledge {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.2);
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.knowledge-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(79, 70, 229, 0.2);
}

.knowledge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
    border-color: #4f46e5;
}

.knowledge-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.knowledge-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4f46e5;
}

.knowledge-card p {
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
}

.bazi-tips {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border-left: 4px solid #4f46e5;
}

.bazi-tips h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4f46e5;
}

.bazi-tips ul {
    list-style: none;
    padding: 0;
}

.bazi-tips li {
    color: #555;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
    line-height: 1.8;
}

.bazi-tips li:last-child {
    border-bottom: none;
}

.bazi-tips strong {
    color: #4f46e5;
    font-weight: 600;
}

/* 命理工具板块 */
.mingli-tools {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.2);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tool-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(79, 70, 229, 0.1);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.3);
    border-color: #4f46e5;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4f46e5;
}

.tool-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.tool-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

/* FAQ板块 */
.faq-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.2);
}

.faq-list {
    margin-top: 2rem;
}

.faq-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.faq-question {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #4f46e5;
    font-size: 1.05rem;
}

.faq-question:hover {
    background: rgba(79, 70, 229, 0.05);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: #7c3aed;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 1.5rem;
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
}

.faq-answer.active {
    max-height: 500px;
    padding: 1rem 1.5rem 1.5rem;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.6);
}

/* 移动端隐藏返回顶部按钮 */
@media (max-width: 1024px) {
    .back-to-top {
        display: none;
    }
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto 1.5rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.8rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #7c3aed;
}

.footer-keywords {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.footer-copyright {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.icp-number {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-title::before,
    .section-title::after {
        width: 20px;
    }

    .section-title::before {
        left: -25px;
    }

    .section-title::after {
        right: -25px;
    }

    .zodiac-grid {
        grid-template-columns: 1fr;
    }

    .nav-tabs {
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .query-form {
        grid-template-columns: 1fr;
    }

    .gender-group {
        justify-content: flex-start;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================== 八字排盘板块移动端优化 ==================== */

/* 八字排盘网格响应式 */
.bazi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1024px) {
    .bazi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    .bazi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .bazi-pillar {
        padding: 0.8rem;
    }
    
    .pillar-content .gan,
    .pillar-content .zhi {
        font-size: 1.3rem;
    }
    
    .pillar-content .wu-xing {
        font-size: 0.85rem;
        padding: 0.15rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .bazi-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .bazi-pillar {
        padding: 0.6rem;
    }
    
    .pillar-label {
        font-size: 0.75rem;
    }
    
    .pillar-content .gan,
    .pillar-content .zhi {
        font-size: 1.2rem;
    }
    
    .pillar-content .wu-xing {
        font-size: 0.8rem;
        padding: 0.1rem 0.4rem;
    }
}

/* 五行分析图表移动端优化 */
.wuxing-chart {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.wuxing-bar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

@media (max-width: 768px) {
    .wuxing-bar {
        gap: 0.5rem;
    }
    
    .wuxing-bar .bar-label {
        width: 35px;
        font-size: 0.9rem;
    }
    
    .wuxing-bar .bar-fill {
        height: 20px;
    }
    
    .wuxing-bar .bar-value {
        width: 45px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .wuxing-bar {
        gap: 0.4rem;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    
    .wuxing-bar .bar-label {
        width: 30px;
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }
    
    .wuxing-bar .bar-fill {
        flex: 1;
        min-width: 120px;
        height: 18px;
    }
    
    .wuxing-bar .bar-value {
        width: 40px;
        font-size: 0.85rem;
        text-align: left;
    }
}

/* 十神网格移动端优化 */
.shishen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 1024px) {
    .shishen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .shishen-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .shishen-item {
        padding: 0.8rem;
    }
    
    .shishen-item .shishen-label {
        font-size: 0.8rem;
    }
    
    .shishen-item .shishen-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .shishen-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .shishen-item {
        padding: 0.6rem;
    }
    
    .shishen-item .shishen-label {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }
    
    .shishen-item .shishen-value {
        font-size: 0.95rem;
    }
}

/* 查询结果整体布局移动端优化 */
.bazi-info,
.wuxing-analysis,
.shishen-analysis,
.zodiac-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .bazi-info,
    .wuxing-analysis,
    .shishen-analysis,
    .zodiac-info {
        padding: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .bazi-info h4,
    .wuxing-analysis h4,
    .shishen-analysis h4,
    .zodiac-info h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 480px) {
    .bazi-info,
    .wuxing-analysis,
    .shishen-analysis,
    .zodiac-info {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .bazi-info h4,
    .wuxing-analysis h4,
    .shishen-analysis h4,
    .zodiac-info h4 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
}

/* 结果标题移动端优化 */
.result-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .result-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .result-header h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .result-header {
        margin-bottom: 1rem;
        padding-bottom: 0.8rem;
    }
    
    .result-header h3 {
        font-size: 1.3rem;
    }
}

/* 日主信息移动端优化 */
.day-master {
    text-align: center;
    font-size: 1.05rem;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .day-master {
        font-size: 1rem;
        padding-top: 0.4rem;
        margin-top: 0.4rem;
    }
}

@media (max-width: 480px) {
    .day-master {
        font-size: 0.95rem;
        padding-top: 0.3rem;
        margin-top: 0.3rem;
    }
}

/* 五行总结移动端优化 */
.wuxing-summary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.wuxing-summary p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .wuxing-summary {
        margin-top: 0.8rem;
        padding-top: 0.8rem;
    }
    
    .wuxing-summary p {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 480px) {
    .wuxing-summary {
        margin-top: 0.6rem;
        padding-top: 0.6rem;
    }
    
    .wuxing-summary p {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
}

/* API分析和后备分析移动端优化 */
.api-analysis,
.fallback-analysis {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.api-analysis h4,
.fallback-analysis h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

@media (max-width: 768px) {
    .api-analysis,
    .fallback-analysis {
        padding: 1.2rem;
        margin-top: 1.2rem;
    }
    
    .api-analysis h4,
    .fallback-analysis h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 480px) {
    .api-analysis,
    .fallback-analysis {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .api-analysis h4,
    .fallback-analysis h4 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
}

/* 分析内容移动端优化 */
.analysis-content {
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: left;
}

@media (max-width: 768px) {
    .analysis-content {
        font-size: 0.9rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .analysis-content {
        font-size: 0.85rem;
        line-height: 1.6;
    }
}

/* 查询结果整体移动端优化 */
.query-result {
    margin-top: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 15px;
    color: white;
    display: none;
}

@media (max-width: 768px) {
    .query-result {
        margin-top: 1.2rem;
        padding: 1.5rem;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .query-result {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 10px;
    }
}

/* 进度条移动端优化 */
.progress-container {
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .progress-container {
        margin: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .progress-container {
        margin: 1rem 0;
    }
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .progress-bar {
        height: 6px;
        margin-bottom: 0.8rem;
    }
}

.progress-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .progress-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .progress-text {
        font-size: 0.85rem;
    }
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .progress-steps {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .progress-steps {
        padding: 0;
        gap: 0.2rem;
    }
}

.progress-step {
    flex: 1;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    position: relative;
}

@media (max-width: 768px) {
    .progress-step {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .progress-step {
        font-size: 0.75rem;
    }
}