/* 专业财神系统 - 传统明亮色彩优化 */
:root {
    --primary-color: #d4af37;
    --secondary-color: #b8860b;
    --accent-color: #ffd700;
    --bg-light: #f8f4e8;
    --bg-lighter: #f5f0e1;
    --panel-bg: #ffffff;
    --text-color: #2c2c2c;
    --text-secondary: #666666;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --border-radius: 12px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: transparent;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: var(--transition);
    pointer-events: none; /* 允许点击穿透 */
}

.loading-overlay:not([style*="display: none"]) {
    pointer-events: auto; /* 显示时允许交互 */
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.loading-subtext {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 头部样式 - 专业版本（参考test-chat-input.html） */
.header {
    background: linear-gradient(135deg, #9E2A2B 0%, #B03A3B 100%);
    color: white;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(158, 42, 43, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #D4AF37;
}

.container {
    max-width: 1200px;
    margin: 0 0 !important;
    padding: 0 0px !important;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #F5F0E1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #D4AF37;
    overflow: hidden;
    position: relative;
}

.avatar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    z-index: 1000;
    position: relative;
    pointer-events: auto;
}

.avatar a:hover {
    opacity: 0.9;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.title h1 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

.info-line {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 1px;
    line-height: 1.1;
}

.weather-info {
    display: flex;
    gap: 8px;
    font-size: 12px;
    margin-top: 3px;
    line-height: 1.1;
}

.weather-city {
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.weather-city:hover {
    opacity: 0.8;
}

/* 主内容区 */
.main-content {
    padding: 20px 15px;
    max-width: 100%;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

/* 面板通用样式 */
.panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.15);
    margin-left: 0;
    margin-right: 0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.panel:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.panel-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

/* 今日宜忌面板 - 专业优化 */
.jinji-panel {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.jinji-panel:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.jinji-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997, #dc3545);
    border-radius: 12px 12px 0 0;
    opacity: 0.8;
}

.jinji-panel h3 {
    text-align: center !important;
    display: block;
    width: 100%;
}

.jinji-content {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.jinji-column {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.jinji-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.jinji-icon:hover {
    transform: scale(1.05);
}

.yi-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.ji-icon {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    color: white;
}

.jinji-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
}

.jinji-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.jinji-list li {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.4;
    white-space: nowrap;
}

/* 移动端今日宜忌样式 */
@media (max-width: 768px) {
    .jinji-panel {
        padding: 15px;
        margin-bottom: 5px;
        border-radius: 15px;
    }
    
    .jinji-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .jinji-column {
        gap: 12px;
        align-items: center;
    }
    
    .jinji-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .jinji-text {
        font-size: 13px;
    }
    
    .jinji-list {
        gap: 6px;
    }
    
    .jinji-list li {
        font-size: 12px;
    }
}

/* 今日运势面板 - 专业优化（统一版本） */
.yunshi-panel {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.yunshi-panel:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.yunshi-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcf7f);
    border-radius: 12px 12px 0 0;
    opacity: 0.8;
}

.yunshi-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.yunshi-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.yunshi-stars {
    display: flex;
    gap: 3px;
}

.star {
    color: #ffc107;
    font-size: 18px;
}

.star.empty {
    color: #e0e0e0;
}

/* 综合运势信息 */
.yunshi-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.overview-item {
    text-align: center;
    padding: 15px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.overview-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.overview-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.overview-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
}

.lucky-color {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.color-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.color-jade {
    background: #00a86b;
    box-shadow: 0 2px 4px rgba(0, 168, 107, 0.3);
}

.color-red {
    background: #dc3545;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* 详细运势分析 */
.yunshi-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-item {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.detail-label {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-color);
}

.detail-stars {
    display: flex;
    gap: 2px;
}

.detail-star {
    color: #ffc107;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(255, 193, 7, 0.3);
}

.detail-star.empty {
    color: #e0e0e0;
}

.detail-description {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* 星座适配 */
.zodiac-compatibility {
    margin-top: 15px;
    padding: 12px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.zodiac-compatibility:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.zodiac-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.zodiac-value {
    font-size: 14px;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 0 1px 2px rgba(212, 175, 55, 0.3);
}

/* 八字信息容器样式 */
.bazi-info {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1E90FF;
}

.bazi-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bazi-item:last-child {
    margin-bottom: 0;
}

.bazi-label {
    font-size: 12px;
    font-weight: bold;
    color: #666;
    min-width: 80px;
}

.bazi-value {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    text-align: right;
    flex: 1;
}

/* 幸运信息容器样式 */
.lucky-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.lucky-item {
    text-align: center;
    padding: 12px 8px;
    background: #f0f8f0;
    border-radius: 8px;
    border: 1px solid #e8f5e8;
    transition: all 0.3s ease;
}

.lucky-item:hover {
    background: #e8f5e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.lucky-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.lucky-value {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #07c160;
}

/* 运势建议样式 */
.advice {
    padding: 12px 15px;
    background: #fff8e1;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-top: 15px;
}

.advice p {
    margin: 0;
    font-size: 14px;
}

/* 今日方位指导样式 */
.time-direction {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.time-direction:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.time-direction::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #7ed321, #f5a623);
    border-radius: 12px 12px 0 0;
    opacity: 0.8;
}

.direction-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.direction-item {
    text-align: center;
    padding: 15px 10px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.direction-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.direction-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 500;
}

.direction {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
}

.direction-advice {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

/* 实用导航样式 */
.full-width-nav {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    margin-left: 0px !important;
    margin-right: 0px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.full-width-nav:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.full-width-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9013fe, #bd10e0, #e91e63);
    border-radius: 12px 12px 0 0;
    opacity: 0.8;
}

.nav-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2px !important;
    margin-top: 15px !important;
    padding: 0 0px !important;
}

.nav-category {
    background: rgba(248, 249, 250, 0.8) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(212, 175, 55, 0.1) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
    margin-top: 5px !important;
    padding: 12px 10px !important;
}

.nav-category:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.nav-header {
    background: rgba(139, 69, 19, 0.9) !important;
    padding: 8px 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
    line-height: 1 !important;
}

.nav-icon {
    background: white !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.nav-icon {
    font-size: 20px !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)) !important;
}

.nav-title {
    font-size: 16px !important;
    font-weight: bold !important;
    color: white !important;
}

.nav-items {
    padding: 15px 8px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.nav-item {
    display: block !important;
    padding: 12px 8px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    text-decoration: none !important;
    color: var(--text-color) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.nav-item:hover {
    background: linear-gradient(135deg, #d4af37, #f5d76e) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3) !important;
    text-decoration: none !important;
}
    color: #666;
    line-height: 1.5;
}

/* 运势评分样式 */
.yunshi-score {
    font-size: 16px;
    font-weight: bold;
    color: #d4af37;
    text-align: center;
    margin: 10px 0;
    text-shadow: 0 1px 2px rgba(212, 175, 55, 0.3);
}

/* 运势面板容器样式 */
.yunshi-panel-container {
    padding: 16px;
    background: transparent;
}

/* 运势模块容器样式 - 修复视觉显示问题 */
.yunshi-module-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* 运势内容容器样式 */
.yunshi-content-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 运势项目容器样式 */
.yunshi-item-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    border-left: 4px solid #d4af37;
    margin-bottom: 8px;
}

/* 运势评分容器样式 */
.yunshi-score-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff8e1;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 8px 0;
}

/* 运势颜色容器样式 */
.yunshi-color-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f8f0;
    border-radius: 6px;
    padding: 8px 10px;
    margin: 5px 0;
}

/* 运势数字容器样式 */
.yunshi-number-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f8ff;
    border-radius: 6px;
    padding: 8px 10px;
    margin: 5px 0;
}

/* 运势星座容器样式 */
.yunshi-zodiac-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f0ff;
    border-radius: 6px;
    padding: 8px 10px;
    margin: 5px 0;
}

/* 运势模块容器样式 - 修复视觉显示问题 */
.yunshi-module-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* 运势内容容器样式 */
.yunshi-content-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 运势项目容器样式 */
.yunshi-item-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    border-left: 4px solid #d4af37;
    margin-bottom: 8px;
}

/* 运势评分容器样式 */
.yunshi-score-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff8e1;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 8px 0;
}

/* 运势颜色容器样式 */
.yunshi-color-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f8f0;
    border-radius: 6px;
    padding: 8px 10px;
    margin: 5px 0;
}

/* 运势数字容器样式 */
.yunshi-number-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f8ff;
    border-radius: 6px;
    padding: 8px 10px;
    margin: 5px 0;
}

/* 运势星座容器样式 */
.yunshi-zodiac-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f0ff;
    border-radius: 6px;
    padding: 8px 10px;
    margin: 5px 0;
}

/* 运势面板标题样式 */
.yunshi-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.yunshi-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

/* 运势面板内容样式 */
.yunshi-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .yunshi-overview {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .yunshi-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .yunshi-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .overview-item {
        padding: 12px;
    }
    
    .detail-item {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .yunshi-panel {
        padding: 15px;
    }
    
    .yunshi-title {
        font-size: 18px;
    }
    
    .overview-value {
        font-size: 14px;
    }
    
    .detail-description {
        font-size: 12px;
    }
}

/* 八字命盘 */
.bazi-panel {
    background: transparent;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 5px;
    box-shadow: none;
    border: none;
}

.bazi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.bazi-item {
    text-align: center;
    padding: 10px;
    background: transparent;
    border-radius: 8px;
}

.bazi-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.bazi-value {
    font-size: 14px;
    font-weight: bold;
}

/* 五行力量 */
.wuxing-chart {
    margin-top: 15px;
}

.wuxing-bar {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.wuxing-label {
    width: 40px;
    font-size: 12px;
}

.wuxing-progress {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 10px;
}

.wuxing-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.wuxing-value {
    width: 30px;
    font-size: 12px;
    text-align: right;
}

/* 专业模块 */
.professional-modules {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.pro-module {
    background: transparent;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 5px;
    box-shadow: none;
    border: none;
}

.pro-module-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 时辰凶吉 */
.time-luck-panel {
    background: transparent;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 5px;
    box-shadow: none;
    border: none;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
}

.time-item {
    text-align: center;
    padding: 8px 5px;
    border-radius: 6px;
    font-size: 12px;
}

.time-good {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid var(--success-color);
}

.time-bad {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid var(--danger-color);
}

.time-normal {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid var(--warning-color);
}

/* 方位指导 */
.time-direction {
    background: transparent;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 1px;
    box-shadow: none;
    border: none;
}

.direction-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 8px;
    min-height: 120px;
    align-items: stretch;
    justify-items: center;
}

.direction-item {
    text-align: center;
    padding: 12px 8px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    line-height: 1.2;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.direction-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.direction-icon {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.direction-label {
    font-size: 11px;
    opacity: 0.8;
    line-height: 1.1;
    margin-bottom: 2px;
}

.direction-value {
    font-size: 12px;
    font-weight: bold;
    line-height: 1.2;
    margin-top: 2px;
}

/* 底部导航栏样式 - 无外框版 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-top: none;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 80px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.bottom-nav .nav-item:hover {
    background: transparent;
    transform: none;
}

.bottom-nav .nav-item i {
    font-size: 22px;
    color: #666;
    margin-bottom: 4px;
}

.bottom-nav .nav-item span {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.bottom-nav .nav-item:hover i,
.bottom-nav .nav-item:hover span {
    color: #9E2A2B;
}

.bottom-nav .nav-item.active i,
.bottom-nav .nav-item.active span {
    color: #9E2A2B;
}

/* 底部导航栏响应式设计 */
@media (max-width: 768px) {
    .bottom-nav {
        padding: 10px 0;
    }
    
    .bottom-nav .nav-item i {
        font-size: 20px;
    }
    
    .bottom-nav .nav-item span {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .bottom-nav {
        padding: 8px 0;
    }
    
    .bottom-nav .nav-item i {
        font-size: 18px;
    }
    
    .bottom-nav .nav-item span {
        font-size: 10px;
    }
}

/* 城市设置模态框样式（参考test-chat-input.html） */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: transparent;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: none;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.city-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.city-input:focus {
    outline: none;
    border-color: #07c160;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-primary {
    background: #07c160;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary:hover {
    background: #06ae56;
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .main-content {
        padding: 15px 10px;
    }
    
    .panel {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: left;
        gap: 15px;
    }
    
    .user-info {
        justify-content: flex-start;
    }
    
    .time-weather-info {
        text-align: left;
    }
    
    .yunshi-overview {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .yunshi-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .yunshi-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .time-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .direction-content {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 8px;
        align-items: stretch;
        justify-items: center;
    }
    
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 95%;
        margin: 0 10px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .yunshi-title {
        font-size: 18px;
    }
    
    .overview-value {
        font-size: 14px;
    }
    
    .detail-description {
        font-size: 12px;
    }
}

@media (max-width: 320px) {
    .header {
        padding: 15px;
    }
    
    .avatar-container {
        width: 50px;
        height: 50px;
    }
    
    .user-details h1 {
        font-size: 16px;
    }
    
    .caishen-info {
        font-size: 11px;
    }
    
    .time-info span {
        font-size: 11px;
    }
    
    .weather-info {
        font-size: 10px;
    }
    
    .panel-title {
        font-size: 16px;
    }
    
    .yunshi-content {
        grid-template-columns: 1fr;
    }
    
    .time-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .direction-item {
        padding: 10px 6px;
        min-height: 55px;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}