:root {
    --bg-color: #0a0a0c;
    --card-bg: #1c1c1e;
    --primary: #d4af37; /* 香槟金 */
    --text-main: #ffffff;
    --text-sub: #8e8e93;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow: hidden; /* 防止整个页面自动滚动 */
}

.app-container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    overflow-y: hidden; /* 禁止全局滚动 */
}

/* 页面基础样式 */
.page {
    overflow-y: auto; /* 允许单个页面内部滚动 */
    height: 100vh; /* 每个页面占满整个视口高度 */
}

/* 页面切换逻辑 */
.page {
    display: none;
    width: 100vw;
    position: relative;
}

.page.active {
    display: block;
}

/* 为功能枢纽页面添加显式样式，确保其可以正常显示 */
#page-hub {
    display: none;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    position: relative;
    z-index: 5;
}

#page-hub.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 激活状态的页面可以滚动 */
.page.active {
    overflow-y: auto;
}

/* 移除页面切换动画，改为直接跳转显示 */
/* @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
} */

/* 八字命盘弹窗动画 */
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* 1. 落地页滚动 */
.scroll-container {
    height: 100vh;
    overflow-y: auto;
    /* 限制滚动范围在落地页内部 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* 隐藏滚动条 */
.scroll-container::-webkit-scrollbar {
    display: none;
}

.screen {
    height: 100vh;
    /* 移除scroll-snap属性，避免滑动效果 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.screen-1 { background: radial-gradient(circle, #2a2a2a 0%, #000 100%); }

.screen-2 {
    position: relative;
    overflow: hidden;
}

/* 轮播样式 */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.carousel-slider {
    position: relative;
    width: 90%;
    height: 80vh;
    max-height: 90%;
    overflow: hidden;
    border: 3px solid var(--primary);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-item.active {
    opacity: 1;
    position: relative;
}

.carousel-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 轮播控制按钮 */
.carousel-controls {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.text-box {
    position: absolute;
    top: 25%;
    right: 30px;
    transform: translateY(-50%);
    width: 400px;
    max-width: 85%;
    padding: 35px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--primary);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.text-box p {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    text-align: left;
    font-family: 'STKaiti', 'KaiTi', serif;
}

.screen-2 .btn-start {
    position: relative;
    z-index: 10;
    margin-top: auto;
    margin-bottom: 80px;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), rgba(212, 175, 55, 0.8));
    color: #000;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

.btn-start {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary), rgba(212, 175, 55, 0.8));
    color: #000;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

.btn-back {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.btn-back:hover {
    background: rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.disclaimer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-sub);
    font-size: 0.8rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}
.mystic-logo {
    width: 250px;
    height: 250px;
    margin-bottom: 20px;
    position: relative;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 50%, transparent 100%);
    border-radius: 50%;
    animation: gentlePulse 4s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(0);
}

.mystic-logo::before {
    content: '灵';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 
        0 0 20px rgba(212, 175, 55, 0.8),
        0 0 40px rgba(212, 175, 55, 0.4),
        0 0 60px rgba(212, 175, 55, 0.2);
    font-family: 'STKaiti', 'KaiTi', serif;
    animation: rotateSlow 10s linear infinite;
}

.mystic-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    box-shadow: 
        inset 0 0 20px rgba(212, 175, 55, 0.1),
        0 0 20px rgba(212, 175, 55, 0.1);
    animation: rotateReverse 8s linear infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
        transform: scale(1.02);
    }
}

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

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

.logo-text {
    color: white;
    font-size: 1.8rem;
    text-align: center;
    font-family: 'STKaiti', 'KaiTi', serif;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    margin: 0;
}

.glow-logo { font-size: 3rem; color: var(--primary); text-shadow: 0 0 20px var(--primary); margin-bottom: 10px; }

/* 落地页副标题样式 */
.logo-area {
    margin-bottom: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.logo-area .subtitle {
    font-size: 1.8rem !important;
    color: var(--text-sub);
    margin-top: 15px;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.scroll-hint { position: absolute; bottom: 30px; color: var(--text-sub); font-size: 0.9rem; animation: bounce 2s infinite;}

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

/* 2. 输入页 & 按钮 */
#page-input {
    /* 遵循.page类的默认隐藏规则 */
    /* 激活时会通过.page.active获得display: block和overflow-y: auto */
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-box {
    padding: 30px 20px;
    width: 100%;
    box-sizing: border-box;
    max-width: 800px;
    margin: 0 auto;
    height: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 生辰八字输入界面样式（桌面浏览器优化） */
.ritual-style {
    width: 100%;
    max-width: 750px;
    padding: 20px 15px;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    /* 移除动画，改为直接显示 */
}

/* 移除页面切换动画，改为直接跳转显示 */
/* @keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} */

.main-title {
    color: var(--primary);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
    font-family: 'STKaiti', 'KaiTi', serif;
}

.subtitle {
    color: var(--text-sub);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-family: 'STKaiti', 'KaiTi', serif;
    line-height: 1.4;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.form-section {
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: rgba(28, 28, 30, 0.3);
    border-left: 3px solid var(--primary);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.1); /* 细微发光边框 */
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.2); /* 悬停时增强发光效果 */
}

.section-title {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 3px;
    font-family: 'STKaiti', 'KaiTi', serif;
}

.section-subtitle {
    color: var(--text-sub);
    font-size: 0.8rem;
    margin-bottom: 10px;
    font-family: 'STKaiti', 'KaiTi', serif;
}

.name-group {
    display: none;
}

/* 移除特殊的昵称输入框样式，使用统一的输入框样式 */

.nickname-input:focus {
    outline: none;
    width: 80%;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* 性别按键样式 */
.gender-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.gender-button {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 0.9rem;
    font-family: 'STKaiti', 'KaiTi', serif;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gender-button:hover {
    background: rgba(212, 175, 55, 0.2);
}

.gender-button.active {
    background: rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* 金色发光效果 */
.golden-glow {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8), 0 0 30px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

/* 装饰性卡片样式 */
.decorative-card {
    text-align: center;
    align-items: center;
}

.decorative-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.decorative-symbol {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.decorative-content p {
    color: var(--text-sub);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    font-family: 'STKaiti', 'KaiTi', serif;
}
.ritual-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 15px;
    background: linear-gradient(135deg, var(--primary), rgba(212, 175, 55, 0.8));
    border: none;
    border-radius: 30px;
    color: #000;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    font-family: 'STKaiti', 'KaiTi', serif;
}

.ritual-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

/* 增强表单元素样式 */
.ritual-style .form-group {
    margin-bottom: 0;
}

.ritual-style input, .ritual-style select {
    font-family: 'STKaiti', 'KaiTi', serif;
    font-size: 1rem;
    background: rgba(28, 28, 30, 0.8);
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    padding: 10px 12px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.ritual-style input:focus, .ritual-style select:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    border-color: rgba(212, 175, 55, 0.9);
}

.ritual-style input::placeholder {
    color: rgba(212, 175, 55, 0.6);
}

.ritual-style select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23d4af37'%3E%3Cpath d='M8 12L0 4h16z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px;
}

.ritual-style .date-input-wrapper {
    margin-top: 10px;
}

.chinese-date-display {
    font-family: 'STKaiti', 'KaiTi', serif;
    font-size: 1rem;
    color: var(--primary);
    margin-top: 5px;
    text-align: center;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .grid-menu {
        grid-template-columns: 1fr;
    }
    
    /* 移动设备上表单改为单列布局 */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* 调整移动设备上的内容盒子大小 */
    .ritual-style {
        max-width: 100%;
        padding: 15px 10px;
    }
    
    /* 调整标题大小 */
    .main-title {
        font-size: 1.5rem;
    }
    
    /* 调整logo区域 */
    .logo-area {
        flex-direction: column;
        gap: 15px;
    }
    
    .mystic-logo {
        width: 180px;
        height: 180px;
    }
    
    .mystic-logo::before {
        font-size: 6rem;
    }
}

.grid-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 40px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.card {
    background: linear-gradient(145deg, rgba(45, 45, 45, 0.8), rgba(30, 30, 30, 0.95)); /* 牌面渐变背景 */
    border-radius: 25px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 更自然的过渡曲线 */
    border: 3px solid rgba(212, 175, 55, 0.7); /* 金色边框 */
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.5), 
        0 0 20px rgba(212, 175, 55, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.3); /* 牌面阴影、发光和内阴影 */
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px); /* 背景模糊效果 */
    height: 350px; /* 竖长方形高度设置 */
    width: 100%;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    background: linear-gradient(145deg, rgba(59, 59, 59, 0.8), rgba(40, 40, 40, 0.95)); /* 增强的渐变背景 */
    transform: translateY(-8px) rotate(1deg); /* 牌面轻微上浮和旋转 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(212, 175, 55, 0.4); /* 增强的阴影和发光 */
    border-color: rgba(212, 175, 55, 1); /* 增强的金色边框 */
}

.card:hover::before {
    opacity: 1; /* 显示顶部发光条 */
}

.card .card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.card .card-inner::before {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10rem;
    color: rgba(212, 175, 55, 0.05);
    z-index: -1;
    pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .grid-menu {
        grid-template-columns: 1fr;
    }
    
    /* 移动设备上表单改为单列布局 */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* 调整移动设备上的内容盒子大小 */
    .ritual-style {
        max-width: 100%;
        padding: 15px 10px;
    }
    
    /* 调整标题大小 */
    .main-title {
        font-size: 1.5rem;
    }
    
    /* 调整logo区域 */
    .logo-area {
        flex-direction: column;
        gap: 15px;
    }
    
    .mystic-logo {
        width: 180px;
        height: 180px;
    }
    
    .mystic-logo::before {
        font-size: 6rem;
    }
}

/* 牌面边框纹理 */
.card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* 牌面四角装饰 */
.card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    pointer-events: none;
}

/* 牌面中心装饰 */
.card .card-inner::before {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10rem;
    color: rgba(212, 175, 55, 0.05);
    z-index: 0;
    pointer-events: none;
}
/* 确保牌面样式一致 */
/* 牌面点击效果已在上方定义 */
/* 牌面图标样式已在上方定义 */

/* 用户信息样式 */
.user-summary {
    padding: 30px 20px;
    text-align: center;
}

.user-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary); /* 金色 */
    text-align: center;
}

/* 八字命盘样式 */
.bazi-display.horizontal {
    justify-content: center;
}

.bazi-display.horizontal .bazi-item .bazi-label {
    color: var(--primary);
}

.bazi-display.horizontal .bazi-item .bazi-value {
    color: var(--primary);
}

/* 5. 聊天与功能页 */
.chat-area { height: calc(100vh - 140px); overflow-y: auto; padding: 20px; padding-bottom: 80px; }
.message { display: flex; margin-bottom: 15px; }
.message.user { flex-direction: row-reverse; }
.bubble { max-width: 70%; padding: 10px 15px; border-radius: 12px; font-size: 0.95rem; line-height: 1.5; }
.ai .bubble { background: var(--card-bg); color: var(--text-main); border-top-left-radius: 2px; }
.user .bubble { background: var(--primary); color: #000; border-top-right-radius: 2px; }
.avatar { width: 30px; height: 30px; background: #333; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; margin: 0 10px; flex-shrink: 0; }

.input-bar { position: fixed; bottom: 0; width: 100%; padding: 10px; background: #000; display: flex; box-sizing: border-box; gap: 10px; }
.input-bar input { flex: 1; padding: 12px 16px; border: 1px solid var(--primary); border-radius: 30px; background: rgba(28, 28, 30, 0.9); color: #fff; font-size: 0.95rem; }
.input-bar button {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), rgba(212, 175, 55, 0.8));
    color: #000;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 挽留弹窗 (四宫格) */
.popup-grid {
    position: fixed; bottom: 70px; left: 20px; right: 20px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    background: rgba(28, 28, 30, 0.95); padding: 15px;
    border-radius: 12px; border: 1px solid var(--primary);
    backdrop-filter: blur(10px);
    animation: slideUp 0.3s ease;
}
.popup-grid div { background: #333; padding: 10px; text-align: center; border-radius: 8px; font-size: 0.8rem; cursor: pointer; }
.popup-grid.hidden { display: none; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* 导航栏 */
.bottom-nav { position: fixed; bottom: 0; width: 100%; height: 60px; background: #111; display: flex; justify-content: space-around; align-items: center; border-top: 1px solid #333; z-index: 100; }
.bottom-nav.hidden { display: none; }
.nav-item { color: var(--text-sub); font-size: 0.8rem; }
.nav-item.active { color: var(--primary); }

.hidden { display: none !important; }

/* 操作栏样式 */
.action-bar {
    position: fixed;
    bottom: 80px;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    gap: 20px;
    box-sizing: border-box;
    z-index: 90;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* 八字命盘弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
}

.modal-header h3 {
    color: var(--primary);
    margin-top: 0;
    font-size: 1.5rem;
}

.bazi-display {
    margin: 30px 0;
}

.bazi-display.horizontal {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.bazi-display.horizontal .bazi-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

.bazi-item {
    margin-bottom: 20px;
}

.bazi-item .bazi-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.bazi-item .bazi-value {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: bold;
}

.bazi-label {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.bazi-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
}

.modal-footer {
    margin-top: 20px;
}