/* 移动端全局重置 - 确保自适应 */
* {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }
    
    html, body {
        width: 100%;
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
}

/* 八字页面主样式 */
.bazi-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 100%);
    padding: 60px 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.bazi-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 页面标题区域 */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-description {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* 主内容卡片 */
.main-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.container{
    margin-left: 50%;
    transform: translateX(-50%);
    width: 52%;
    box-sizing: border-box;
}
/* 模式选择器 */
.mode-selector {
    margin-bottom: 2rem;
    text-align: center;
}

.mode-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}

.mode-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.mode-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.mode-tab.active {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mode-tab i {
    font-size: 1.2rem;
}

/* 日历类型选择器 */
.calendar-type-selector {
    margin-bottom: 2rem;
    text-align: center;
}

.calendar-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.calendar-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.calendar-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.calendar-tab.active {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.calendar-tab i {
    font-size: 1.2rem;
}

/* 表单样式 */
.bazi-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 0px auto;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.bazi-form {
    max-width: 900px;
    margin: 0 auto;
}

/* 表单区域标题 */
.section-title {
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-title h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-title h3::before,
.section-title h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.section-title h3::before {
    margin-right: 1rem;
}

.section-title h3::after {
    margin-left: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white;
}

.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.form-group select option {
    background: #333;
    color: white;
}

/* 农历月份选择器 */
.lunar-month-group {
    display: flex;
    gap: 0.5rem;
}

.lunar-month-group select {
    flex: 1;
}

/* 时间输入框 */
.form-group input[type="time"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input[type="time"]:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.form-group input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* 文本输入框 */
.form-group input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.form-group input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* 高级选项区域 */
.advanced-options-section {
    margin-top: 2rem;
}

.option-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.option-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.option-header h4 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.optional-badge {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.option-content {
    padding: 1.5rem;
}

.option-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.option-checkbox {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* 增强版复选框样式 */
.enhanced-checkbox {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.enhanced-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-checkmark {
    color: #667eea;
    font-weight: bold;
    font-size: 16px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.enhanced-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background: white;
    border-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.enhanced-checkbox input[type="checkbox"]:checked + .checkbox-custom .checkbox-checkmark {
    opacity: 1;
    transform: scale(1);
}

.option-details {
    flex: 1;
}

.option-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.option-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.info-tooltip {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: help;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-tooltip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.info-tooltip i {
    font-size: 1rem;
}

.option-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* 全宽度表单组 */
.form-group.full-width {
    flex: 1 1 100%;
    max-width: 100%;
}

/* 八字预览区域 */
.bazi-preview-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.preview-header h4 {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.preview-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.bazi-display {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.bazi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bazi-column {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.column-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pillar-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tian-gan, .di-zhi {
    display: block;
    padding: 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    min-height: 2.2rem;
    line-height: 1.2rem;
    transition: all 0.3s ease;
}

.tian-gan {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.di-zhi {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.bazi-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    text-align: center;
}

.info-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.info-value {
    display: block;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 八字输入区域 */
.bazi-input-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.bazi-input-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bazi-input-group label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

.bazi-input-group label .optional {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 0.5rem;
}

.pillar-inputs {
    display: flex;
    gap: 0.5rem;
}

.pillar-inputs select {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.pillar-inputs select:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.pillar-inputs select option {
    background: #333;
    color: white;
}

/* 预览按钮 */
.preview-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.preview-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.preview-btn i {
    font-size: 1.1rem;
}

/* 性别选择 */
.gender-group {
    text-align: center;
}

.gender-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.gender-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
}

.gender-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: white;
}

.gender-option span {
    font-size: 1.1rem;
}

/* 提交按钮 */
.form-actions {
    margin-top: 2rem;
}

.bazi-submit-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.bazi-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.bazi-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 分析结果区域 */
.bazi-result-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.result-header {
    text-align: center;
    margin-bottom: 3rem;
}

.result-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.result-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* 结果卡片 */
.result-content {
    display: grid;
    gap: 2rem;
}

.result-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%;
}

.result-card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.card-content {
    padding: 2rem;
    color: #2d3748;
    line-height: 1.7;
}

/* 八字命盘样式 */
.bazi-chart-card .card-content {
    text-align: center;
}

.bazi-chart {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.chart-column {
    background: #f7fafc;
    border-radius: 10px;
    padding: 1rem;
}

.chart-title {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.chart-item {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 2px solid #e2e8f0;
    font-weight: 500;
}

.chart-item.gan {
    border-color: #667eea;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.chart-item.zhi {
    border-color: #764ba2;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .bazi-section {
        padding: 30px 0;
    }

    .container {
        margin-left: 0;
        transform: none;
        width: 100%;
        padding: 0;
    }

    .bazi-content {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .page-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .page-description {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .main-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .bazi-hero-title {
        font-size: 2rem;
    }

    .bazi-hero-subtitle {
        font-size: 1rem;
    }

    .bazi-form-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .calendar-tabs {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .calendar-tab {
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .lunar-month-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .gender-options {
        flex-direction: column;
        gap: 1rem;
    }

    .checkbox-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .label-text {
        flex-direction: column;
        gap: 0.25rem;
    }

    .result-header h2 {
        font-size: 2rem;
    }

    .card-content {
        padding: 1.5rem;
    }

    .bazi-chart {
        grid-template-columns: repeat(2, 1fr);
    }

    .bazi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .bazi-info {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .bazi-preview-section {
        padding: 1.5rem;
    }

    .preview-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
        justify-content: center;
    }

    .bazi-submit-btn {
        width: 100%;
        justify-content: center;
    }

    .bazi-input-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pillar-inputs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pillar-inputs select {
        width: 100%;
    }

    .option-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .option-details {
        width: 100%;
    }

    .option-header {
        padding: 1rem;
    }

    .option-header h4 {
        font-size: 1rem;
    }

    .option-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .bazi-section {
        padding: 20px 0;
    }

    .container {
        margin-left: 0;
        transform: none;
        width: 100%;
        padding: 0;
    }

    .bazi-content {
        padding: 0 10px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .page-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .page-description {
        font-size: 0.85rem;
        padding: 0 5px;
    }

    .main-card {
        padding: 1rem;
        border-radius: 10px;
    }

    .bazi-hero-section {
        padding: 60px 0;
    }

    .bazi-hero-title {
        font-size: 1.75rem;
    }

    .bazi-form-container {
        padding: 1rem;
        margin: 0 0.5rem;
    }

    .bazi-submit-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .mode-tabs {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .mode-tab {
        width: 100%;
        justify-content: center;
    }

    .input-section {
        margin-bottom: 1.5rem;
    }

    .section-label {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .date-inputs,
    .time-inputs {
        flex-direction: column;
        gap: 1rem;
    }

    .input-field {
        width: 100% !important;
    }

    .input-field label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .input-field input,
    .input-field select {
        font-size: 0.95rem;
        padding: 0.75rem;
    }

    .card-header h3 {
        font-size: 1.2rem;
    }

    .card-content {
        padding: 1rem;
    }

    .bazi-chart {
        grid-template-columns: 1fr;
    }
}

/* 新设计样式 */
/* 输入模式切换 */
.input-mode-selector {
    margin-bottom: 2rem;
}

.mode-buttons {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.mode-btn {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid transparent;
    background: transparent;
    border-radius: 6px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mode-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.mode-btn:not(.active):hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(102, 126, 234, 0.02));
    border-radius: inherit;
    pointer-events: none;
}

.mode-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
    border: 2px solid #667eea;
    font-weight: 600;
    position: relative;
    animation: buttonActivate 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mode-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: inherit;
    pointer-events: none;
}

@keyframes buttonActivate {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.02);
    }
    100% {
        transform: translateY(-1px) scale(1);
    }
}

/* 日历类型切换 */
.calendar-selector {
    margin-bottom: 2rem;
}

.calendar-buttons {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.calendar-btn {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid transparent;
    background: transparent;
    border-radius: 6px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.calendar-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.calendar-btn:not(.active):hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(102, 126, 234, 0.02));
    border-radius: inherit;
    pointer-events: none;
}

.calendar-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
    border: 2px solid #667eea;
    font-weight: 600;
    position: relative;
    animation: buttonActivate 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: inherit;
    pointer-events: none;
}

/* 输入区域 */
.input-section {
    margin-bottom: 2rem;
}

.section-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

/* 日期输入 */
.date-inputs {
    display: grid;
  
    gap: 1rem;
}

/* 时间输入 */
.time-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* 个人信息输入 */
.personal-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* 输入字段 */
.input-field {
    display: flex;
    flex-direction: column;
}

.input-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
}

.input-field select,
.input-field input {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.input-field select:focus,
.input-field input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 农历月份输入 */
.lunar-month-field .input-field {
    flex: 1;
}

.lunar-month-inputs {
    display: flex;
    gap: 0.5rem;
}

.lunar-month-inputs select {
    flex: 1;
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
}

.radio-option input[type="radio"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
}

.radio-text {
    color: #333;
}

/* 高级选项切换 */
.advanced-options {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    margin-right: 12px;
    transition: background-color 0.2s ease;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch {
    background: #667eea;
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch::before {
    transform: translateX(20px);
}

.toggle-text {
    flex: 1;
}

.info-icon {
    background: none;
    border: none;
    color: #6c757d;
    cursor: help;
    padding: 4px;
    border-radius: 50%;
    transition: color 0.2s ease;
}

.info-icon:hover {
    color: #667eea;
}

/* 八字输入网格 */
.bazi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
}

.bazi-column label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
    display: block;
}

.select-pair {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.select-pair select {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.select-pair select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.optional-text {
    font-weight: normal;
    color: #6c757d;
}

/* 预览区域 */
.preview-section {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.preview-header {
    text-align: center;
    margin-bottom: 2rem;
}

.preview-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.preview-header p {
    color: #666;
    font-size: 0.95rem;
}

/* 八字图表 */
.bazi-chart {
    max-width: 600px;
    margin: 0 auto;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.chart-column {
    text-align: center;
}

.column-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pillar-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stem, .branch {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
}

.stem {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.branch {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
}

/* 图表信息 */
.chart-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
}

/* 四化表格样式，类似八字表格 */
.sihua-pillars {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.sihua-pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

.sihua-pillar .pillar-label {
    font-size: 16px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}

.sihua-pillar .pillar-value {
    font-size: 16px;
    font-weight: 600;
}

/* 化科 - 蓝色文字 */
.sihua-pillar .pillar-value.sihua-ke {
    color: #1890ff;
}

/* 化权 - 紫色文字 */
.sihua-pillar .pillar-value.sihua-quan {
    color: #722ed1;
}

/* 化禄 - 绿色文字 */
.sihua-pillar .pillar-value.sihua-lu {
    color: #52c41a;
}

/* 化忌 - 红色文字 */
.sihua-pillar .pillar-value.sihua-ji {
    color: #f5222d;
}

.info-row {
    border-radius: 8px;
}

.info-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.secondary-btn, .primary-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.secondary-btn {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
}

.secondary-btn:hover {
    background: #667eea;
    color: white;
}

.primary-btn {
    background: #667eea;
    color: white;
}

.primary-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);

}

/* 响应式设计 */
@media (max-width: 768px) {
    .bazi-section {
        padding: 40px 0;
    }

    .page-title {
        font-size: 2rem;
    }

    .main-card {
        padding: 1.5rem;
    }

    .mode-buttons, .calendar-buttons {
        flex-direction: column;
    }

    .date-inputs {
        grid-template-columns: 1fr;
    }

    .time-inputs {
        grid-template-columns: 1fr;
    }

    .bazi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .select-pair {
        flex-direction: column;
        gap: 0.5rem;
    }

    .select-pair select {
        width: 100%;
    }

    .chart-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .chart-info {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .secondary-btn, .primary-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pillar-display {
        padding: 0.75rem;
    }

    .stem, .branch {
        font-size: 1rem;
        padding: 0.4rem;
    }

    .chart-grid {
        grid-template-columns: 1fr;
    }

    .bazi-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ========== AI 八字分析卡片样式 ========== */
.ai-analysis-card {
    margin-bottom: 2rem;
}

.ai-analysis-intro {
    text-align: center;
    padding: 2rem 1rem;
}

.ai-analysis-desc {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.ai-analysis-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ai-analysis-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ai-analysis-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ai-analysis-btn i {
    font-size: 1.2rem;
}

.ai-analysis-result {
    padding: 1.5rem 0;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-analysis-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.ai-analysis-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ai-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.ai-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.ai-analysis-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #2d3748;
    margin-bottom: 1rem;
}

.ai-analysis-summary {
    font-size: 1rem;
    line-height: 1.8;
    color: #2d3748;
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.ai-analysis-summary strong {
    color: #667eea;
    font-weight: 700;
}

.ai-analysis-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem 0;
}

.ai-analysis-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    line-height: 1.6;
    color: #2d3748;
}

.ai-analysis-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ========== 美化结果展示区域 ========== */

/* 八字命盘美化 */
.bazi-chart-display {
    padding: 1rem 0;
}

.bazi-chart-display .chart-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 0;
}

.bazi-chart-display .chart-column {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bazi-chart-display .chart-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bazi-chart-display .chart-column:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.bazi-chart-display .chart-column:hover::before {
    opacity: 1;
}

.bazi-chart-display .column-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bazi-chart-display .pillar-display {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bazi-chart-display .stem {

    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.75rem;
    border-radius: 12px;
  
    position: relative;
    overflow: hidden;
}

.bazi-chart-display .stem::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;

    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.bazi-chart-display .branch {
    background: white;
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.75rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.bazi-chart-display .chart-column:hover .branch {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.bazi-chart-display .shishen {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(240, 147, 251, 0.3);
}

/* 五行分析美化 */
.wuxing-content {
    padding: 1rem 0;
}

.wuxing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.wuxing-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border: 2px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.wuxing-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.wuxing-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.wuxing-item:hover::before {
    opacity: 1;
}

.wuxing-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wuxing-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 十神详细分析美化 */
.shishen-detail-content {
    padding: 1rem 0;
}

.shishen-pillar {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.shishen-pillar:hover {
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    transform: translateX(4px);
}

.pillar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.pillar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.analysis-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.analysis-text strong {
    color: #667eea;
    font-weight: 700;
}

.analysis-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.analysis-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    color: #2d3748;
}

.analysis-list li:hover {
    background: #f8f9fa;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shishen-simple-content {
    padding: 1rem 0;
}

.shishen-simple-content .analysis-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.shishen-simple-content .analysis-text:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* 地支藏干美化 */
.canggan-content {
    padding: 1rem 0;
}

.canggan-pillar {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.canggan-pillar:hover {
    border-color: #764ba2;
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.15);
    transform: translateX(4px);
}

.canggan-pillar .pillar-title {
    color: #764ba2;
}

.canggan-pillar .pillar-title::after {
    background: linear-gradient(90deg, #764ba2, #667eea);
}

.canggan-pillar .analysis-list li {
    border-left-color: #764ba2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.canggan-pillar .analysis-list li::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #764ba2;
    border-radius: 50%;
    opacity: 0.6;
}

/* 刑冲会合美化 */
.xingchong-content {
    padding: 1rem 0;
}

.xingchong-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.xingchong-section:hover {
    border-color: #f5576c;
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.15);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f5576c;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #f5576c, #f093fb);
}

.xingchong-section .analysis-list li {
    border-left-color: #f5576c;
    background: white;
}

.xingchong-section .analysis-list li:hover {
    background: #fff5f5;
}

/* 神煞分析美化 */
.shensha-content {
    padding: 1rem 0;
}

.shensha-pillar {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.shensha-pillar:hover {
    border-color: #764ba2;
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.15);
}

.shensha-pillar .pillar-title {
    color: #764ba2;
}

.shensha-pillar .analysis-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    border-left: none;
    background: white;
    padding: 1rem;
}

.shensha-name {
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
}

.shensha-link {
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.shensha-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.shensha-link .shensha-name {
    cursor: pointer;
    transition: all 0.2s ease;
}

.shensha-link:hover .shensha-name {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shensha-good {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
}

.shensha-bad {
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

.shensha-type {
    background: #f0f0f0;
    color: #666;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.shensha-desc {
    color: #666;
    font-size: 0.9rem;
    flex: 1;
    min-width: 200px;
}

/* 大运流年美化 */
.dayun-content {
    padding: 1rem 0;
}

.dayun-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.dayun-info .analysis-text {
    color: white;
    margin-bottom: 0.5rem;
}

.dayun-info .analysis-text strong {
    color: rgba(255, 255, 255, 0.9);
}

.dayun-list {
    margin-top: 1.5rem;
}

.dayun-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dayun-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dayun-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dayun-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.dayun-item:hover::before {
    opacity: 1;
}

.dayun-item.current-dayun {
    background: linear-gradient(135deg, #fff5e6 0%, #ffffff 100%);
    border-color: #faad14;
    box-shadow: 0 4px 16px rgba(250, 173, 20, 0.2);
}

.dayun-item.current-dayun::before {
    background: linear-gradient(180deg, #faad14, #ffc53d);
    opacity: 1;
}

.dayun-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.dayun-ganzhi {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.current-dayun .dayun-ganzhi {
    background: linear-gradient(135deg, #faad14, #ffc53d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.current-badge {
    background: linear-gradient(135deg, #faad14 0%, #ffc53d 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(250, 173, 20, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.dayun-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.dayun-details p {
    margin: 0;
    font-size: 0.95rem;
    color: #2d3748;
    line-height: 1.6;
}

.dayun-details strong {
    color: #667eea;
    font-weight: 600;
    margin-right: 0.5rem;
}

.dayun-desc {
    grid-column: 1 / -1;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin-top: 0.5rem;
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.7;
}

.current-dayun .dayun-desc {
    border-left-color: #faad14;
}

/* 流年信息美化 */
.liunian-content {
    padding: 1rem 0;
}

.liunian-info {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(245, 87, 108, 0.3);
    text-align: center;
}

.liunian-info .analysis-text {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.liunian-info .analysis-text strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
}

.liunian-info .analysis-text:last-child {
    margin-bottom: 0;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* 流年表格样式 */
.liunian-intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff0f6 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid #f759ab;
}

.liunian-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.liunian-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.liunian-table thead {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.liunian-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.liunian-table th:last-child {
    border-right: none;
}

.liunian-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.liunian-table tbody tr:hover {
    background-color: #fff0f6;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.1);
}

.liunian-table tbody tr:last-child {
    border-bottom: none;
}

.liunian-table td {
    padding: 18px 15px;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    vertical-align: top;
}

.liunian-year {
    font-weight: 600;
    color: #f759ab;
    width: 100px;
    min-width: 80px;
}

.liunian-ganzhi {
    font-weight: 600;
    color: #667eea;
    font-size: 16px;
    width: 120px;
    min-width: 100px;
}

.liunian-feature {
    color: #52c41a;
    font-weight: 500;
    width: 200px;
    min-width: 150px;
}

.liunian-note {
    color: #ff4d4f;
    width: 200px;
    min-width: 150px;
}

.liunian-advice {
    color: #666;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .liunian-table {
        font-size: 12px;
    }
    .liunian-table th,
    .liunian-table td {
        padding: 12px 8px;
    }
    .liunian-year {
        width: 80px;
        min-width: 60px;
        font-size: 12px;
    }
    .liunian-ganzhi {
        width: 100px;
        min-width: 80px;
        font-size: 13px;
    }
    .liunian-feature,
    .liunian-note {
        width: 120px;
        min-width: 100px;
        font-size: 12px;
    }
    .liunian-advice {
        font-size: 11px;
    }
}

/* 流月分析样式 */
.liuyue-content {
    padding: 20px 0;
}

.liuyue-intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid #0ea5e9;
}

.liuyue-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.liuyue-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.liuyue-table thead {
    background: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
    color: #fff;
}

.liuyue-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.liuyue-table th:last-child {
    border-right: none;
}

.liuyue-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.liuyue-table tbody tr:hover {
    background-color: #f0f9ff;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.liuyue-table tbody tr:last-child {
    border-bottom: none;
}

.liuyue-table td {
    padding: 18px 15px;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    vertical-align: top;
}

.liuyue-month {
    font-weight: 600;
    color: #0ea5e9;
    width: 150px;
    min-width: 120px;
}

.liuyue-ganzhi {
    font-weight: 600;
    color: #3b82f6;
    font-size: 16px;
    width: 120px;
    min-width: 100px;
}

.liuyue-feature {
    color: #10b981;
    font-weight: 500;
    width: 200px;
    min-width: 150px;
}

.liuyue-note {
    color: #ef4444;
    width: 250px;
    min-width: 200px;
}

/* 流月运势分析样式 */
.liuyue-fortune-content {
    padding: 20px 0;
}

.liuyue-fortune-intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f3e8ff 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid #a855f7;
}

.liuyue-fortune-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.liuyue-fortune-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    font-size: 13px;
}

.liuyue-fortune-table thead {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: #fff;
}

.liuyue-fortune-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-right: 1px solid rgba(255,255,255,0.2);
    white-space: nowrap;
}

.liuyue-fortune-table th:last-child {
    border-right: none;
}

.liuyue-fortune-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.liuyue-fortune-table tbody tr:hover {
    background-color: #faf5ff;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.1);
}

.liuyue-fortune-table tbody tr:last-child {
    border-bottom: none;
}

.liuyue-fortune-table td {
    padding: 16px 12px;
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    vertical-align: top;
}

.fortune-month {
    font-weight: 600;
    color: #a855f7;
    width: 120px;
    min-width: 100px;
    white-space: nowrap;
}

.fortune-ganzhi {
    font-weight: 600;
    color: #8b5cf6;
    font-size: 15px;
    width: 100px;
    min-width: 80px;
}

.fortune-overall {
    font-weight: 600;
    width: 100px;
    min-width: 80px;
}

.fortune-overall.good {
    color: #10b981;
}

.fortune-overall.warning {
    color: #ef4444;
}

.fortune-overall.neutral {
    color: #6b7280;
}

.fortune-career,
.fortune-wealth,
.fortune-love,
.fortune-health {
    width: 120px;
    min-width: 100px;
    font-size: 12px;
}

.fortune-reminder {
    color: #ef4444;
    width: 200px;
    min-width: 150px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .liuyue-table {
        font-size: 12px;
    }
    .liuyue-table th,
    .liuyue-table td {
        padding: 12px 8px;
    }
    .liuyue-month {
        width: 100px;
        min-width: 80px;
        font-size: 12px;
    }
    .liuyue-ganzhi {
        width: 100px;
        min-width: 80px;
        font-size: 13px;
    }
    .liuyue-feature,
    .liuyue-note {
        width: 150px;
        min-width: 120px;
        font-size: 12px;
    }
    
    .liuyue-fortune-table {
        font-size: 11px;
    }
    .liuyue-fortune-table th,
    .liuyue-fortune-table td {
        padding: 10px 6px;
    }
    .fortune-month {
        width: 80px;
        min-width: 60px;
        font-size: 11px;
    }
    .fortune-ganzhi {
        width: 80px;
        min-width: 60px;
        font-size: 12px;
    }
    .fortune-overall,
    .fortune-career,
    .fortune-wealth,
    .fortune-love,
    .fortune-health {
        width: 90px;
        min-width: 70px;
        font-size: 11px;
    }
    .fortune-reminder {
        width: 120px;
        min-width: 100px;
        font-size: 10px;
    }
}

/* 身体状况分析样式 */
.health-analysis-content {
    padding: 20px 0;
}

.health-current-section,
.health-future-section {
    margin-bottom: 3rem;
}

.health-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.health-intro,
.health-future-intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}

.health-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.health-info-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #f59e0b;
    transition: all 0.3s ease;
}

.health-info-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.health-info-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.health-info-value {
    font-size: 1rem;
    color: #1e293b;
    line-height: 1.8;
    font-weight: 500;
}

.health-future-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.health-future-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.health-future-table thead {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

.health-future-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.health-future-table th:last-child {
    border-right: none;
}

.health-future-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.health-future-table tbody tr:hover {
    background-color: #fffbeb;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.health-future-table tbody tr:last-child {
    border-bottom: none;
}

.health-future-table td {
    padding: 18px 15px;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    vertical-align: top;
}

.health-year {
    font-weight: 600;
    color: #f59e0b;
    width: 100px;
    min-width: 80px;
}

.health-ganzhi {
    font-weight: 600;
    color: #d97706;
    font-size: 16px;
    width: 120px;
    min-width: 100px;
}

.health-risk {
    font-weight: 600;
    width: 120px;
    min-width: 100px;
}

.health-risk.high {
    color: #ef4444;
}

.health-risk.medium-high {
    color: #f97316;
}

.health-risk.medium {
    color: #f59e0b;
}

.health-risk.low {
    color: #10b981;
}

.health-note {
    color: #64748b;
    width: 200px;
    min-width: 150px;
}

.health-advice {
    color: #1e293b;
    line-height: 1.8;
    width: 250px;
    min-width: 200px;
}

@media (max-width: 768px) {
    .health-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .health-future-table {
        font-size: 12px;
    }
    .health-future-table th,
    .health-future-table td {
        padding: 12px 8px;
    }
    .health-year {
        width: 80px;
        min-width: 60px;
        font-size: 12px;
    }
    .health-ganzhi {
        width: 100px;
        min-width: 80px;
        font-size: 13px;
    }
    .health-risk {
        width: 100px;
        min-width: 80px;
        font-size: 12px;
    }
    .health-note {
        width: 150px;
        min-width: 120px;
        font-size: 12px;
    }
    .health-advice {
        width: 180px;
        min-width: 150px;
        font-size: 11px;
    }
}

/* 子女分析样式 */
.children-analysis-content {
    padding: 20px 0;
}

.children-intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #dbeafe 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.children-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.children-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.children-table thead {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.children-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.children-table th:last-child {
    border-right: none;
}

.children-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.children-table tbody tr:hover {
    background-color: #eff6ff;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.children-table tbody tr:last-child {
    border-bottom: none;
}

.children-table td {
    padding: 18px 15px;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    vertical-align: top;
}

.children-item-name {
    font-weight: 600;
    color: #3b82f6;
    width: 150px;
    min-width: 120px;
    background-color: #f8fafc;
}

.children-study {
    color: #059669;
    width: 300px;
    min-width: 250px;
}

.children-health {
    color: #dc2626;
    width: 300px;
    min-width: 250px;
}

.children-note {
    color: #7c3aed;
    width: 300px;
    min-width: 250px;
}

.children-advice-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e0f2fe;
}

.children-advice-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3b82f6;
}

.children-advice-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.children-advice-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.children-advice-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.advice-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.advice-text {
    font-size: 1rem;
    color: #1e293b;
    line-height: 1.8;
    flex: 1;
}

@media (max-width: 768px) {
    .children-table {
        font-size: 12px;
    }
    .children-table th,
    .children-table td {
        padding: 12px 8px;
    }
    .children-item-name {
        width: 100px;
        min-width: 80px;
        font-size: 12px;
    }
    .children-study,
    .children-health,
    .children-note {
        width: 200px;
        min-width: 150px;
        font-size: 12px;
    }
    
    .children-advice-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .children-advice-item {
        padding: 1rem;
    }
    
    .advice-icon {
        font-size: 1.5rem;
    }
    
    .advice-text {
        font-size: 0.9rem;
    }
}

/* 父母分析样式 */
.parents-analysis-content {
    padding: 20px 0;
}

.parents-intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fce7f3 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid #ec4899;
}

.parents-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.parents-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.parents-table thead {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: #fff;
}

.parents-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.parents-table th:last-child {
    border-right: none;
}

.parents-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.parents-table tbody tr:hover {
    background-color: #fdf2f8;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.1);
}

.parents-table tbody tr:last-child {
    border-bottom: none;
}

.parents-table td {
    padding: 18px 15px;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    vertical-align: top;
}

.parents-item-name {
    font-weight: 600;
    color: #ec4899;
    width: 150px;
    min-width: 120px;
    background-color: #fdf2f8;
}

.parents-relationship {
    color: #059669;
    width: 400px;
    min-width: 300px;
}

.parents-note {
    color: #dc2626;
    width: 400px;
    min-width: 300px;
}

.parents-advice-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #fce7f3;
}

.parents-advice-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #ec4899;
}

.parents-advice-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.parents-advice-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #ec4899;
    transition: all 0.3s ease;
}

.parents-advice-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.2);
}

@media (max-width: 768px) {
    .parents-table {
        font-size: 12px;
    }
    .parents-table th,
    .parents-table td {
        padding: 12px 8px;
    }
    .parents-item-name {
        width: 100px;
        min-width: 80px;
        font-size: 12px;
    }
    .parents-relationship,
    .parents-note {
        width: 250px;
        min-width: 200px;
        font-size: 12px;
    }
    
    .parents-advice-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .parents-advice-item {
        padding: 1rem;
    }
    
    .advice-icon {
        font-size: 1.5rem;
    }
    
    .advice-text {
        font-size: 0.9rem;
    }
}

/* 兄弟姐妹分析样式 */
.siblings-analysis-content {
    padding: 20px 0;
}

.siblings-intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid #06b6d4;
}

.siblings-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.siblings-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.siblings-table thead {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #fff;
}

.siblings-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.siblings-table th:last-child {
    border-right: none;
}

.siblings-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.siblings-table tbody tr:hover {
    background-color: #f0f9ff;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.1);
}

.siblings-table tbody tr:last-child {
    border-bottom: none;
}

.siblings-table td {
    padding: 18px 15px;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    vertical-align: top;
}

.siblings-item-name {
    font-weight: 600;
    color: #06b6d4;
    width: 150px;
    min-width: 120px;
    background-color: #f0f9ff;
}

.siblings-relationship {
    color: #059669;
    width: 400px;
    min-width: 300px;
}

.siblings-note {
    color: #dc2626;
    width: 400px;
    min-width: 300px;
}

.siblings-advice-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e0f2fe;
}

.siblings-advice-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #06b6d4;
}

.siblings-advice-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.siblings-advice-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #06b6d4;
    transition: all 0.3s ease;
}

.siblings-advice-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.2);
}

@media (max-width: 768px) {
    .siblings-table {
        font-size: 12px;
    }
    .siblings-table th,
    .siblings-table td {
        padding: 12px 8px;
    }
    .siblings-item-name {
        width: 100px;
        min-width: 80px;
        font-size: 12px;
    }
    .siblings-relationship,
    .siblings-note {
        width: 250px;
        min-width: 200px;
        font-size: 12px;
    }
    
    .siblings-advice-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .siblings-advice-item {
        padding: 1rem;
    }
    
    .advice-icon {
        font-size: 1.5rem;
    }
    
    .advice-text {
        font-size: 0.9rem;
    }
}

/* 改进分析文本样式 */
.analysis-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #2d3748;
    margin-bottom: 1rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
    /* 结果区域 */
    .result-section {
        padding: 1.5rem 0;
    }

    .result-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .result-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 1rem;
    }

    .result-content {
        width: 100%;
    }

    /* 卡片 */
    .result-card {
        margin-bottom: 1.5rem;
    }

    .card-header {
        padding: 1rem;
    }

    .card-header h3 {
        font-size: 1.2rem;
    }

    .card-content {
        padding: 1rem;
    }

    /* 表格通用样式 */
    .pillar-detail-table-wrapper,
    .fengshui-table-wrapper,
    .zhengyuan-table-wrapper,
    .liunian-table-wrapper,
    .liuyue-table-wrapper,
    .liuyue-fortune-table-wrapper,
    .health-future-table-wrapper,
    .children-table-wrapper,
    .parents-table-wrapper,
    .siblings-table-wrapper {
        margin: 15px -1rem;
        padding: 0 1rem;
    }

    /* 八字图表 */
    .wuxing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .bazi-chart-display .chart-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .chart-column {
        padding: 0.75rem;
    }

    .pillar-display {
        padding: 0.75rem;
    }

    .stem, .branch {
        font-size: 1rem;
        padding: 0.4rem;
    }
    
    .dayun-details {
        grid-template-columns: 1fr;
    }
    
    .dayun-ganzhi {
        font-size: 1.5rem;
    }

    /* 智能分析 */
    .intelligent-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .intelligent-item {
        padding: 1rem;
    }

    .intelligent-label {
        font-size: 0.9rem;
    }

    .intelligent-value {
        font-size: 0.95rem;
    }

    /* 按钮 */
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .secondary-btn,
    .primary-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    /* 结果区域 */
    .result-section {
        padding: 1rem 0;
    }

    .result-wrapper {
        gap: 10px;
    }

    .card-header {
        padding: 0.75rem;
    }

    .card-header h3 {
        font-size: 1.1rem;
    }

    .card-content {
        padding: 0.75rem;
    }

    /* 表格 */
    .pillar-detail-table-wrapper,
    .fengshui-table-wrapper,
    .zhengyuan-table-wrapper,
    .liunian-table-wrapper,
    .liuyue-table-wrapper,
    .liuyue-fortune-table-wrapper,
    .health-future-table-wrapper,
    .children-table-wrapper,
    .parents-table-wrapper,
    .siblings-table-wrapper {
        margin: 10px -0.75rem;
        padding: 0 0.75rem;
    }

    /* 八字图表 */
    .wuxing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .bazi-chart-display .chart-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .chart-column {
        padding: 0.5rem;
    }

    .pillar-display {
        padding: 0.5rem;
    }

    .stem, .branch {
        font-size: 0.9rem;
        padding: 0.35rem;
    }
    
    .wuxing-name {
        font-size: 1.5rem;
    }

    .column-label {
        font-size: 0.75rem;
    }

    /* 智能分析 */
    .intelligent-info-grid {
        gap: 0.75rem;
    }

    .intelligent-item {
        padding: 0.75rem;
    }

    .intelligent-label {
        font-size: 0.85rem;
    }

    .intelligent-value {
        font-size: 0.9rem;
    }

    /* 分析文本 */
    .analysis-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* 按钮 */
    .secondary-btn,
    .primary-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ========== 加载提示样式 ========== */
@keyframes layui-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bazi-loading-tip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.bazi-loading-content {
    padding: 40px 30px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease-in;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bazi-loading-icon {
    font-size: 48px;
    color: #fff;
    animation: layui-rotate 1s linear infinite;
    display: inline-block;
    margin-bottom: 20px;
}

.bazi-loading-title {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 500;
}

.bazi-loading-desc {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.bazi-loading-hint {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-top: 8px;
    display: block;
}

.bazi-loading-countdown {
    display: block;
    margin-top: 12px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.bazi-loading-countdown span {
    color: #fff;
    font-weight: 600;
    font-size: 18px;
}

/* ========== 八字智能分析样式 ========== */
.bazi-intelligent-analysis {
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
}

.intelligent-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.intelligent-item {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.intelligent-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.intelligent-label {
    font-size: 13px;
    color: #8b7355;
    margin-bottom: 8px;
    font-weight: 500;
}

.intelligent-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.intelligent-value.strength-strong {
    color: #52c41a;
}

.intelligent-value.strength-weak {
    color: #ff4d4f;
}

.intelligent-value.strength-balanced {
    color: #1890ff;
}

.intelligent-wuxing-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.wuxing-status-item {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.wuxing-status-item:hover {
    transform: translateY(-2px);
}

.wuxing-status-item.status-wang {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    color: #fff;
}

.wuxing-status-item.status-xiang {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: #fff;
}

.wuxing-status-item.status-xiu {
    background: linear-gradient(135deg, #faad14 0%, #ffc53d 100%);
    color: #fff;
}

.wuxing-status-item.status-qiu {
    background: linear-gradient(135deg, #ff7875 0%, #ffa39e 100%);
    color: #fff;
}

.wuxing-status-item.status-si {
    background: linear-gradient(135deg, #8c8c8c 0%, #bfbfbf 100%);
    color: #fff;
}

.wuxing-status-item .wuxing-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.wuxing-status-item .wuxing-status {
    font-size: 14px;
    opacity: 0.95;
}

.intelligent-tiaohou {
    background: #fff;
    padding: 18px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tiaohou-label {
    font-size: 14px;
    color: #8b7355;
    margin-bottom: 8px;
    font-weight: 500;
}

.tiaohou-value {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
}

/* ========== 四柱详细分析表格样式 ========== */
.pillar-detail-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.pillar-detail-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pillar-detail-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.pillar-detail-table th {
    padding: 15px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.pillar-detail-table th:last-child {
    border-right: none;
}

.pillar-detail-table th.row-header {
    background: linear-gradient(135deg, #8b7355 0%, #a68b5b 100%);
    text-align: left;
    padding-left: 20px;
    min-width: 100px;
}

.pillar-detail-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.pillar-detail-table tbody tr:hover {
    background-color: #f8f9fa;
}

.pillar-detail-table tbody tr:last-child {
    border-bottom: none;
}

.pillar-detail-table td {
    padding: 15px 12px;
    text-align: center;
    font-size: 14px;
    color: #333;
    border-right: 1px solid #f0f0f0;
    line-height: 1.6;
}

.pillar-detail-table td:last-child {
    border-right: none;
}

.pillar-detail-table td.row-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    font-weight: 600;
    color: #8b7355;
    text-align: left;
    padding-left: 20px;
    border-right: 2px solid #d9d9d9;
}

@media (max-width: 768px) {
    .pillar-detail-table {
        font-size: 12px;
    }
    .pillar-detail-table th,
    .pillar-detail-table td {
        padding: 10px 8px;
    }
}

/* ========== 结果区域布局 ========== */
.result-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* ========== 左侧导航栏样式 ========== */
.result-sidebar {
    position: sticky;
    top: 20px;
    width: 200px;
    flex-shrink: 0;
}

.sidebar-nav {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* 自定义滚动条样式 */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.nav-title {
    padding: 0 20px 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 10px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin: 0;
}

.nav-item {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    position: relative;
}

.nav-item:hover {
    background: #f8f9fa;
    color: #667eea;
    border-left-color: #667eea;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    color: #667eea;
    font-weight: 600;
    border-left-color: #667eea;
}

.result-content {
    flex: 1;
    min-width: 0;
}

/* 为每个卡片添加滚动偏移 */
.result-card {
    scroll-margin-top: 20px;
}

@media (max-width: 1024px) {
    .result-wrapper {
        flex-direction: column;
    }
    .result-sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }
    .sidebar-nav {
        position: relative;
        top: 0;
        max-height: none;
        overflow-y: visible;
    }
    .nav-title {
        position: relative;
    }
    .nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    .nav-item {
        padding: 8px 15px;
        border-radius: 4px;
        border-left: none;
        border-bottom: 2px solid transparent;
    }
    .nav-item:hover,
    .nav-item.active {
        border-left: none;
        border-bottom-color: #667eea;
    }
}

/* ========== 风水家居建议指南样式 ========== */
.fengshui-content {
    padding: 1rem 0;
}

.fengshui-intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid #52c41a;
}

.fengshui-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.fengshui-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.fengshui-table thead {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    color: #fff;
}

.fengshui-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.fengshui-table th:last-child {
    border-right: none;
}

.fengshui-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.fengshui-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.fengshui-table tbody tr:last-child {
    border-bottom: none;
}

.fengshui-table td {
    padding: 18px 20px;
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    vertical-align: top;
}

.fengshui-item-name {
    font-weight: 600;
    color: #52c41a;
    width: 150px;
    min-width: 120px;
    background: linear-gradient(135deg, rgba(82, 196, 26, 0.05) 0%, transparent 100%);
    border-right: 2px solid #e8f5e9;
}

.fengshui-item-advice {
    font-weight: 500;
    color: #667eea;
    width: 200px;
    min-width: 150px;
}

.fengshui-item-desc {
    color: #666;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .fengshui-table {
        font-size: 13px;
    }
    .fengshui-table th,
    .fengshui-table td {
        padding: 12px 10px;
    }
    .fengshui-item-name {
        width: 100px;
        min-width: 80px;
        font-size: 13px;
    }
    .fengshui-item-advice {
        width: 120px;
        min-width: 100px;
        font-size: 13px;
    }
    .fengshui-item-desc {
        font-size: 12px;
    }
}

/* ========== AI 正缘测算样式 ========== */
.zhengyuan-content {
    padding: 1rem 0;
}

.zhengyuan-intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff0f6 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid #f759ab;
}

.zhengyuan-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.zhengyuan-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.zhengyuan-table thead {
    background: linear-gradient(135deg, #f759ab 0%, #ff85c0 100%);
    color: #fff;
}

.zhengyuan-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.zhengyuan-table th:last-child {
    border-right: none;
}

.zhengyuan-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.zhengyuan-table tbody tr:hover {
    background-color: #fff0f6;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(247, 89, 171, 0.1);
}

.zhengyuan-table tbody tr:last-child {
    border-bottom: none;
}

.zhengyuan-table td {
    padding: 18px 20px;
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    vertical-align: top;
}

.zhengyuan-item-name {
    font-weight: 600;
    color: #f759ab;
    width: 150px;
    min-width: 120px;
    background: linear-gradient(135deg, rgba(247, 89, 171, 0.05) 0%, transparent 100%);
    border-right: 2px solid #ffe0eb;
}

.zhengyuan-item-feature {
    font-weight: 500;
    color: #667eea;
    width: 200px;
    min-width: 150px;
}

.zhengyuan-item-desc {
    color: #666;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .zhengyuan-table {
        font-size: 13px;
    }
    .zhengyuan-table th,
    .zhengyuan-table td {
        padding: 12px 10px;
    }
    .zhengyuan-item-name {
        width: 100px;
        min-width: 80px;
        font-size: 13px;
    }
    .zhengyuan-item-feature {
        width: 120px;
        min-width: 100px;
        font-size: 13px;
    }
    .zhengyuan-item-desc {
        font-size: 12px;
    }
}

/* ========== 全局移动端优化 ========== */
@media (max-width: 768px) {
    /* 确保所有表格可以横向滚动 */
    table {
        min-width: 100%;
    }

    /* 确保所有表格包装器可以横向滚动 */
    .pillar-detail-table-wrapper,
    .fengshui-table-wrapper,
    .zhengyuan-table-wrapper,
    .liuyue-table-wrapper,
    .liuyue-fortune-table-wrapper,
    .health-future-table-wrapper,
    .children-table-wrapper,
    .parents-table-wrapper,
    .siblings-table-wrapper,
    .liunian-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
    }

    /* 确保结果内容区域自适应 */
    .result-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* 确保所有卡片自适应 */
    .result-card,
    .main-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 优化输入框 */
    input[type="text"],
    input[type="date"],
    input[type="time"],
    select,
    textarea {
        font-size: 16px !important; /* 防止iOS自动缩放 */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 优化按钮触摸区域 */
    button,
    .btn,
    .bazi-submit-btn,
    .preview-btn {
        min-height: 44px; /* iOS推荐的最小触摸区域 */
        touch-action: manipulation;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 优化链接触摸区域 */
    a.nav-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* 优化卡片间距 */
    .result-card {
        margin-bottom: 1.5rem;
    }

    /* 优化文本可读性 */
    .analysis-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* 优化标题 */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* 优化图片 */
    img {
        max-width: 100%;
        height: auto;
    }

    /* 优化加载提示 */
    .bazi-loading-content {
        padding: 1.5rem;
        max-width: 90%;
        width: 90% !important;
        min-width: auto !important;
    }

    /* 确保 Layui layer 弹窗在移动端自适应 */
    .layui-layer {
        width: 90% !important;
        max-width: 90% !important;
        left: 5% !important;
        margin-left: 0 !important;
        box-sizing: border-box;
    }

    .layui-layer-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .bazi-loading-title {
        font-size: 1.1rem;
    }

    .bazi-loading-desc {
        font-size: 0.9rem;
    }

    .bazi-loading-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .bazi-loading-countdown {
        font-size: 14px;
        margin-top: 10px;
    }

    .bazi-loading-countdown span {
        font-size: 16px;
    }

    .bazi-loading-hint {
        font-size: 12px;
        margin-top: 6px;
    }

    /* 确保所有flex容器在移动端正确换行 */
    .form-row,
    .date-inputs,
    .time-inputs,
    .bazi-input-grid {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    /* 更小屏幕的额外优化 */
    .bazi-loading-content {
        padding: 1rem;
        max-width: 95%;
        width: 95% !important;
        min-width: auto !important;
    }

    /* 确保 Layui layer 弹窗在小屏幕自适应 */
    .layui-layer {
        width: 95% !important;
        max-width: 95% !important;
        left: 2.5% !important;
        margin-left: 0 !important;
        box-sizing: border-box;
    }

    .layui-layer-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        padding: 0 !important;
    }

    .bazi-loading-title {
        font-size: 1rem;
    }

    .bazi-loading-desc {
        font-size: 0.85rem;
    }

    .bazi-loading-icon {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .bazi-loading-countdown {
        font-size: 13px;
        margin-top: 8px;
    }

    .bazi-loading-countdown span {
        font-size: 15px;
    }

    .bazi-loading-hint {
        font-size: 11px;
        margin-top: 5px;
    }

    /* 优化表格字体 */
    table {
        font-size: 12px;
    }

    /* 优化卡片内边距 */
    .card-content {
        padding: 0.75rem;
    }

    /* 优化网格布局 */
    .intelligent-info-grid,
    .wuxing-grid,
    .chart-info {
        gap: 0.5rem;
    }

    /* 确保所有表格包装器在小屏幕上也能正常显示 */
    .pillar-detail-table-wrapper,
    .fengshui-table-wrapper,
    .zhengyuan-table-wrapper,
    .liuyue-table-wrapper,
    .liuyue-fortune-table-wrapper,
    .health-future-table-wrapper,
    .children-table-wrapper,
    .parents-table-wrapper,
    .siblings-table-wrapper,
    .liunian-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    /* 确保所有内容区域在小屏幕上自适应 */
    .result-content,
    .main-card,
    .result-card {
        width: 100%;
        max-width: 100%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        box-sizing: border-box;
    }
}

/* ========== AI 智能八字解析系统介绍样式 ========== */
.bazi-intro-section {
    margin-top: 60px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.bazi-intro-card {
    background: #fff;
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 70%;
    margin-left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

.bazi-intro-header {
    text-align: center;
    margin-bottom: 50px;
}

.bazi-intro-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.bazi-intro-subtitle {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.bazi-features {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.bazi-feature-card {
    flex: 1;
    min-width: 250px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bazi-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.feature-icon i {
    font-size: 36px;
    color: #fff;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.feature-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* ========== 全方位命理解析样式 ========== */
.comprehensive-analysis-section {
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.comprehensive-analysis-card {
    background: #fff;
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 70%;
    margin-left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

.comprehensive-analysis-header {
    text-align: center;
    margin-bottom: 50px;
}

.comprehensive-analysis-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.comprehensive-analysis-subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.analysis-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.analysis-category {
    padding: 25px;
 
    border-radius: 12px;
    transition: all 0.3s ease;
}

.analysis-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.category-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* AI 介绍和全方位分析移动端响应式 */
@media (max-width: 768px) {
    .bazi-intro-section,
    .comprehensive-analysis-section {
        margin-top: 30px;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .bazi-intro-card,
    .comprehensive-analysis-card {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .bazi-intro-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .bazi-intro-subtitle {
        font-size: 1rem;
    }

    .bazi-features {
        flex-direction: column;
        gap: 25px;
    }

    .bazi-feature-card {
        min-width: 100%;
        width: 100%;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

    .feature-icon i {
        font-size: 30px;
    }

    .feature-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .feature-desc {
        font-size: 0.9rem;
    }

    .comprehensive-analysis-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .comprehensive-analysis-subtitle {
        font-size: 1rem;
    }

    .analysis-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .analysis-category {
        padding: 20px;
    }

    .category-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .category-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .bazi-intro-section,
    .comprehensive-analysis-section {
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .bazi-intro-card,
    .comprehensive-analysis-card {
        padding: 25px 15px;
        border-radius: 10px;
    }

    .bazi-intro-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .bazi-intro-subtitle {
        font-size: 0.95rem;
    }

    .bazi-features {
        gap: 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }

    .feature-icon i {
        font-size: 26px;
    }

    .feature-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .feature-desc {
        font-size: 0.85rem;
    }

    .comprehensive-analysis-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .comprehensive-analysis-subtitle {
        font-size: 0.95rem;
    }

    .analysis-categories {
        gap: 15px;
    }

    .analysis-category {
        padding: 18px;
    }

    .category-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .category-desc {
        font-size: 0.85rem;
    }
}

/* ========== 帮助指南样式 ========== */
.help-guide-section {
    margin-top: 60px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.help-guide-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 70%;
    margin-left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

.help-guide-header {
    text-align: center;
    margin-bottom: 50px;
}

.help-guide-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.help-guide-subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.help-guide-steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.help-step {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.help-guide-disclaimer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.help-guide-disclaimer p {
    font-size: 0.9rem;
    color: #999;
    line-height: 1.8;
    margin: 0;
}

/* 帮助指南移动端响应式 */
@media (max-width: 768px) {
    .help-guide-section {
        margin-top: 40px;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .help-guide-card {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .help-guide-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .help-guide-subtitle {
        font-size: 1rem;
    }

    .help-guide-steps {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 30px;
    }

    .help-step {
        min-width: 100%;
        width: 100%;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 15px;
    }

    .step-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .step-desc {
        font-size: 0.9rem;
    }

    .help-guide-disclaimer {
        padding-top: 20px;
    }

    .help-guide-disclaimer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .help-guide-section {
        margin-top: 30px;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .help-guide-card {
        padding: 25px 15px;
        border-radius: 10px;
    }

    .help-guide-title {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .help-guide-subtitle {
        font-size: 0.95rem;
    }

    .help-guide-steps {
        gap: 25px;
        margin-bottom: 25px;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin-bottom: 12px;
    }

    .step-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .step-desc {
        font-size: 0.85rem;
    }

    .help-guide-disclaimer {
        padding-top: 15px;
    }

    .help-guide-disclaimer p {
        font-size: 0.8rem;
    }
}

/* 用户基本信息样式 */
.user-info-card {
    margin-bottom: 1.5rem;
}

.user-info-wrapper {
    padding: 1.5rem;
}

.user-info-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.user-info-row:last-child {
    margin-bottom: 0;
}

.user-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info-item .info-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.user-info-item .info-value {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.user-info-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.edit-info-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fa8c16;
    font-size: 14px;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.edit-info-link:hover {
    background-color: rgba(250, 140, 22, 0.1);
    color: #fa8c16;
}

.edit-info-link .layui-icon {
    font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .user-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .user-info-actions {
        margin-left: 0;
        width: 100%;
    }
    
    .edit-info-link {
        width: 100%;
        justify-content: center;
    }
}

/* 八字命盘 - 四柱卡片样式 */
.bazi-pillar-cards-wrapper {
    margin-bottom: 2rem;
}

.pillar-cards-row {
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.pillar-card {
    flex: 1;
    min-width: 150px;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.pillar-card-label {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pillar-gan {

    color: white;
    font-size: 2rem;
    font-weight: 700;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;

}

.pillar-zhi {
    background: white;
    color: #2d3748;
    font-size: 2rem;
    font-weight: 700;
    padding: 1rem;
    border-radius: 12px;

    margin-bottom: 0.75rem;

}

.pillar-shishen {
    font-size: 0.85rem;
    color: #764ba2;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
}

/* 八字命盘 - 详细表格样式（完全按照效果图重新开发） */
.bazi-detail-table-wrapper {
    margin-top: 2rem;
    overflow-x: auto;
}

.bazi-detail-table-content {
    width: 100%;
    border-collapse: collapse;
    background: #faf9f6;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

.bazi-detail-table-content thead {
    background: #f5f5f5;
}

.bazi-detail-table-content th {
    padding: 10px 12px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    color: #666;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
}

.bazi-detail-table-content th.time-header {
    background: #f5f5f5;
    color: #666;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

.bazi-detail-table-content th.pillar-header {
    color: #333;
    font-weight: 600;
}

.bazi-detail-table-content tbody tr {
    border-bottom: 1px solid #e0e0e0;
    background: white;
}

.bazi-detail-table-content tbody tr:hover {
    background-color: #fafafa;
}

.bazi-detail-table-content tbody tr:last-child {
    border-bottom: none;
}

.bazi-detail-table-content .row-header {
    background: #fafafa;
    font-weight: 500;
    color: #666;
    padding: 10px 12px;
    text-align: center;
    border-right: 1px solid #e0e0e0;
    min-width: 60px;
    font-size: 14px;
    white-space: nowrap;
}

.bazi-detail-table-content th.time-header {
    background: #fafafa;
    color: #666;
    font-weight: 500;
    text-align: center;
    border-right: 1px solid #e0e0e0;
}

.bazi-detail-table-content td.data-cell {
    padding: 10px 12px;
    text-align: center;
    color: #333;
    vertical-align: middle;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    background: white;
}

.bazi-detail-table-content td.gan-cell,
.bazi-detail-table-content td.zhi-cell {
    text-align: center;
}

.bazi-detail-table-content .gan-char,
.bazi-detail-table-content .zhi-char {
    font-size: 16px;
    font-weight: 600;
    margin-right: 4px;
    display: inline-block;
}

.bazi-detail-table-content .gan-icon,
.bazi-detail-table-content .zhi-icon {
    font-size: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.bazi-detail-table-content .gan-shishen {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    display: block;
}

.zhi-shishen {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    display: block;
}

.riyuan-mark {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    display: inline-block;
}

.bazi-detail-table-content td.canggan-cell {
    text-align: center;
    padding: 8px 12px;
    vertical-align: top;
    
}

.bazi-detail-table-content .canggan-line {
    line-height: 1.8;
    color: #333;
    font-size: 14px;
    margin: 0;
    padding: 2px 0;
    text-align: center;
}

.bazi-detail-table-content .canggan-gan {
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-right: 2px;
}

.bazi-detail-table-content .canggan-icon {
    font-size: 12px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.bazi-detail-table-content .canggan-shishen {
    font-size: 14px;
    color: #666;
    display: inline-block;
}

.bazi-detail-table-content td.shensha-cell {
    text-align: center;
    padding: 8px 12px;
    vertical-align: top;
}

.bazi-detail-table-content .shensha-line {
    line-height: 1.8;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

.bazi-detail-table-content .shensha-line .shensha-link,
.bazi-detail-table-content .shensha-line .shensha-name {
    color: #333;
    text-decoration: none;
}

.bazi-detail-table-content .shensha-line .shensha-link:hover {
    text-decoration: underline;
    color: #667eea;
}

.bazi-detail-table-content .shensha-line .shensha-good {
    color: #28a745;
}

.bazi-detail-table-content .shensha-line .shensha-bad {
    color: #dc3545;
}

.bazi-detail-table-content .shensha-line .shensha-neutral {
    color: #6c757d;
}

.bazi-detail-table-content td .shensha-link,
.bazi-detail-table-content td .shensha-name {
    display: inline-block;
    margin: 2px 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bazi-detail-table-content td .shensha-link.shensha-good,
.bazi-detail-table-content td .shensha-name.shensha-good {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.bazi-detail-table-content td .shensha-link.shensha-bad,
.bazi-detail-table-content td .shensha-name.shensha-bad {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.bazi-detail-table-content td .shensha-link.shensha-neutral,
.bazi-detail-table-content td .shensha-name.shensha-neutral {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.bazi-detail-table-content td .shensha-link:hover {
    transform: scale(1.05);
    text-decoration: underline;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .pillar-cards-row {
        gap: 1rem;
    }
    
    .pillar-card {
        min-width: calc(50% - 0.5rem);
        padding: 1rem 0.75rem;
    }
    
    .pillar-gan,
    .pillar-zhi {
        font-size: 1.5rem;
        padding: 0.75rem;
    }
    
    .bazi-detail-table-wrapper {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .bazi-detail-table-content {
        min-width: 600px;
    }
    
    .bazi-detail-table-content th,
    .bazi-detail-table-content td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .bazi-detail-table-content .row-header {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* AI对话样式 */
.ai-chat-wrapper {
    padding: 1.5rem;
}

.ai-chat-input-section {
    margin-bottom: 1.5rem;
}

.ai-chat-input-wrapper {
    margin-bottom: 1rem;
}

.ai-chat-input {
    width: 100%;
    min-height: 80px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.ai-chat-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.ai-chat-input::placeholder {
    color: #999;
}

.ai-chat-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.ai-chat-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-chat-reset-btn:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
    transform: translateY(-1px);
}

.ai-chat-reset-btn:active {
    transform: translateY(0);
}

.ai-chat-reset-btn .layui-icon {
    font-size: 14px;
}

.ai-chat-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-chat-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5568d3 0%, #653a8e 100%);
    transform: translateY(-1px);

}

.ai-chat-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.ai-chat-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ai-chat-submit-btn .layui-icon {
    font-size: 14px;
}

.ai-chat-result-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.ai-chat-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ai-chat-result-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.ai-chat-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #f0f0f0;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-chat-copy-btn:hover {
    background: #e0e0e0;
    border-color: #d0d0d0;
    color: #333;
}

.ai-chat-copy-btn:active {
    transform: scale(0.98);
}

.ai-chat-copy-btn .layui-icon {
    font-size: 12px;
}

.ai-chat-result-content {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .ai-chat-wrapper {
        padding: 1rem;
    }
    
    .ai-chat-input {
        min-height: 100px;
        font-size: 14px;
    }
    
    .ai-chat-actions {
        justify-content: stretch;
    }
    
    .ai-chat-submit-btn {
        flex: 1;
        justify-content: center;
    }
    
    .ai-chat-result-section {
        padding: 1rem;
    }
}

/* 用户基本信息样式 */
.user-info-card {
    margin-bottom: 1.5rem;
}

.user-info-wrapper {
    padding: 1.5rem;
}

.user-info-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.user-info-row:last-child {
    margin-bottom: 0;
}

.user-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info-item .info-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.user-info-item .info-value {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.user-info-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.edit-info-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fa8c16;
    font-size: 14px;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.edit-info-link:hover {
    background-color: rgba(250, 140, 22, 0.1);
    color: #fa8c16;
}

.edit-info-link .layui-icon {
    font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .user-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .user-info-actions {
        margin-left: 0;
        width: 100%;
    }
    
    .edit-info-link {
        width: 100%;
        justify-content: center;
    }
}
/* 十神链接样式 */
.shishen-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.shishen-link:hover {
    color: #5568d3;
    text-decoration: underline;
}

.shishen-link:active {
    color: #4457b2;
}

/* 五行分析警告样式 */
.wuxing-analysis-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
}

.wuxing-warning {
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid;
}

.wuxing-warning.strong-warning {
    background-color: #fff7e6;
    border-left-color: #faad14;
}

.wuxing-warning.missing-warning {
    background-color: #fff1f0;
    border-left-color: #ff4d4f;
}

.wuxing-warning.weak-warning {
    background-color: #e6f7ff;
    border-left-color: #1890ff;
}

.wuxing-warning .analysis-subtitle {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.wuxing-problem-item {
    margin-bottom: 16px;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
}

.wuxing-problem-item:last-child {
    margin-bottom: 0;
}

.wuxing-problem-item strong {
    font-size: 15px;
    font-weight: 600;
}

.wuxing-problem-item .problem-desc {
    margin: 8px 0 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.wuxing-balanced {
    padding: 16px;
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 8px;
    text-align: center;
}

.wuxing-balanced .analysis-text {
    margin: 0;
    color: #52c41a;
    font-weight: 500;
}

/* ========== 紫微斗数样式 ========== */

/* 紫微基本信息区域 */
.ziwei-basic-info {
    margin-bottom: 2rem;
   

    border-radius: 12px;

}

.ziwei-basic-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.ziwei-basic-info h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.ziwei-basic-info .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.ziwei-basic-info .info-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.ziwei-basic-info .info-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.ziwei-basic-info .info-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin-right: 0.5rem;
    white-space: nowrap;
}

.ziwei-basic-info .info-value {
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
    flex: 1;
}

/* 紫微斗数传统命盘布局 */
.ziwei-chart-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.ziwei-chart-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 8px;
    background: #f0f0f0;
    padding: 8px;
    border-radius: 8px;
}

.palace-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.palace-empty {
    background: transparent;
    border: none;
}

.palace-center {
    grid-row: span 2;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
}

.center-info-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.center-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.center-label {
    color: #666;
    font-weight: 500;
    min-width: 50px;
}

.center-value {
    color: #333;
    font-weight: 600;
    flex: 1;
}

/* 旧的palace-header样式已移除，使用新的无背景样式 */

.palace-main-stars {
    font-size: 10px;
    font-weight: 500;
    word-break: break-all;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.palace-content {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
    font-size: 11px;
}

.palace-left {
    position: absolute;
    left: 8px;
    top: 50px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 9px;
    color: #666;
    line-height: 1.3;
}

.palace-decade {
    font-weight: 500;
    font-size: 9px;
}

.palace-minor-limit {
    font-size: 8px;
    color: #999;
}

.palace-middle {
    flex: 1;
    padding-left: 50px;
    padding-right: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #333;
    line-height: 1.5;
    text-align: center;
}

.palace-middle-content {
    word-break: break-all;
    line-height: 1.6;
}

.palace-footer {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #333;
}

.palace-name {
    color: #667eea;
}

.palace-zhi {
    color: #764ba2;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .ziwei-basic-info {
        padding: 1rem;
    }

    .ziwei-basic-info .info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .ziwei-basic-info .info-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem;
    }

    .ziwei-basic-info .info-label {
        margin-bottom: 0.25rem;
        margin-right: 0;
    }

    .ziwei-chart-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 6px;
    }

    .palace-item {
        min-height: 150px;
    }

    .palace-center {
        grid-row: span 1;
    }

    .palace-left {
        position: static;
        margin-bottom: 4px;
    }

    .palace-middle {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .ziwei-chart-grid {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 4px;
    }

    .palace-item {
        min-height: 120px;
    }

    .palace-center {
        grid-row: span 1;
    }

    .palace-header {
        font-size: 10px;
        padding: 6px 8px;
    }

    .palace-content {
        font-size: 10px;
        padding: 6px;
    }

    .palace-left,
    .palace-middle {
        font-size: 9px;
    }

    .palace-footer {
        font-size: 10px;
    }
}

/* 紫微斗数结果展示样式 - 12宫位围成一圈，中心显示信息 */
.ziwei-chart-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;

    background: #f5f5f5;
    min-height: 800px;
    box-sizing: border-box;
}

.ziwei-palaces-circle {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 800px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 0;

    box-sizing: border-box;
  
}

/* 中心信息区域 - 绝对定位在中心2x2区域，无卡片样式，无滚动条 */
.ziwei-center-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(50%);
    max-width: 556px;

    border-radius: 0;
    padding: 12px;
    box-shadow: none;

    z-index: 10;
    box-sizing: border-box;
    overflow: visible;
    height: auto;
    max-height: none;
}

/* 滚动条样式已移除，中心信息区域不显示滚动条 */

/* 头部农历信息区域 */
.ziwei-info-header {
    width: 100%;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}

.info-header-row {
    display: flex;
    align-items: center;
    font-size: 12px;
    line-height: 1.6;
}

/* 八字显示区域 - 天干地支竖着排列 */
.ziwei-bazi-display {
    width: 100%;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}

.bazi-pillars {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.bazi-pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

.pillar-label {
    font-size: 16px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}

.pillar-gan {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    padding: 4px 8px;
    margin-bottom: 2px;
    text-align: center;
    min-width: 30px;
    background: transparent;
}

.pillar-zhi {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    padding: 4px 8px;
    text-align: center;
    min-width: 30px;
    background: transparent;
}

/* 天干五行颜色 */
.pillar-gan.木, .pillar-gan.甲, .pillar-gan.乙 {
    color: #52c41a; /* 绿色 - 木 */
}

.pillar-gan.火, .pillar-gan.丙, .pillar-gan.丁 {
    color: #f5222d; /* 红色 - 火 */
}

.pillar-gan.土, .pillar-gan.戊, .pillar-gan.己 {
    color: #faad14; /* 黄色 - 土 */
}

.pillar-gan.金, .pillar-gan.庚, .pillar-gan.辛 {
    color: #8c8c8c; /* 灰色 - 金 */
}

.pillar-gan.水, .pillar-gan.壬, .pillar-gan.癸 {
    color: #1890ff; /* 蓝色 - 水 */
}

/* 地支五行颜色 */
.pillar-zhi.木, .pillar-zhi.寅, .pillar-zhi.卯 {
    color: #52c41a; /* 绿色 - 木 */
}

.pillar-zhi.火, .pillar-zhi.巳, .pillar-zhi.午 {
    color: #f5222d; /* 红色 - 火 */
}

.pillar-zhi.土, .pillar-zhi.辰, .pillar-zhi.戌, .pillar-zhi.丑, .pillar-zhi.未 {
    color: #faad14; /* 黄色 - 土 */
}

.pillar-zhi.金, .pillar-zhi.申, .pillar-zhi.酉 {
    color: #8c8c8c; /* 灰色 - 金 */
}

.pillar-zhi.水, .pillar-zhi.亥, .pillar-zhi.子 {
    color: #1890ff; /* 蓝色 - 水 */
}

.ziwei-basic-info-wrapper {
    width: 100%;
}

.ziwei-basic-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
}

.info-row {
    display: flex;
    align-items: center;
    font-size: 12px;
    line-height: 1.6;
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    min-height: auto;
    white-space: nowrap;
    word-wrap: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-row:nth-child(3n) {
    border-right: none;
}

.info-row:last-child,
.info-row:nth-last-child(2),
.info-row:nth-last-child(3) {
    border-bottom: none;
}

.info-label {
    color: #666;
    min-width: 50px;
    font-weight: 500;
    margin-right: 4px;
    flex-shrink: 0;
    font-size: 16px;
}

.info-value {
    color: #333;
    flex: 1;
    font-weight: 400;
    word-break: break-all;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 五行局颜色 */
.info-value.wuxing-mu {
    color: #52c41a; /* 绿色 - 木 */
}

.info-value.wuxing-huo {
    color: #f5222d; /* 红色 - 火 */
}

.info-value.wuxing-tu {
    color: #faad14; /* 黄色 - 土 */
}

.info-value.wuxing-jin {
    color: #8c8c8c; /* 灰色 - 金 */
}

.info-value.wuxing-shui {
    color: #52c41a; /* 绿色 - 水 */
}

/* 12宫位位置定义 - 按照传统紫微斗数布局围成一圈 */
.palace-card {

    border-radius: 0;
    padding: 10px;
    box-shadow: none;
    position: relative;
    min-height: 140px;

    box-sizing: border-box;
    font-size: 11px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* 宫位在网格中的位置 - 4x4网格，中心2x2留空，紧邻围成一圈 */
/* 位置由JavaScript根据position值动态设置，不再使用:nth-child()规则 */
/* 保留注释作为参考：
   第1行：父母宫(position 12)、福德宫(position 11)、田宅宫(position 10)、官禄宫(position 9)
   第2行：夫妻宫(position 3)、空、空、迁移宫(position 7)
   第3行：兄弟宫(position 2)、空、空、交友宫(position 8)
   第4行：命宫(position 1)、财帛宫(position 5)、疾厄宫(position 6)、子女宫(position 4)
*/

.palace-card {
 
    border-radius: 8px;
    padding: 10px;

    position: relative;
    min-height: 180px;
    border: 1px solid #e0e0e0;
 
    font-size: 12px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

/* 来因宫样式 - 预留 */
.palace-card.laiyin-gong {
    /* 样式待添加 */
}

/* 身宫样式 - 预留 */
.palace-card.shen-gong {
    /* 样式待添加 */
}

/* 三方四正高亮样式 */
.palace-card.sanfang-highlight {
    background-color: #e6f7ff;
    z-index: 5;
}

.palace-card.sanfang-target {
    background-color: #e6f7ff;
    z-index: 4;
}

.ziwei-palaces-circle {
    position: relative;
}

.sanfang-lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* 大限和流年列表样式 */
.daxian-liunian-section {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.daxian-liunian-container {
    width: 100%;
}

.daxian-liunian-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.ai-ziwei-analysis-section {
    margin-top: 30px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ai-ziwei-analysis-container {
    width: 100%;
}

.ai-ziwei-analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.ai-ziwei-analysis-title-area {
    flex: 1;
}

.ai-ziwei-analysis-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
}

.ai-ziwei-analysis-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.ai-analysis-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.ai-analysis-btn:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ai-analysis-btn:active {
    transform: translateY(0);
}

.ai-icon {
    font-size: 18px;
}

.ai-ziwei-analysis-result {
    min-height: 200px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

.ai-ziwei-analysis-placeholder {
    color: #999;
    font-size: 14px;
    text-align: center;
    margin: 0;
    padding: 40px 0;
}

.ai-loading {
    color: #1890ff;
    font-size: 14px;
    text-align: center;
    padding: 40px 0;
}

.ai-result-content {
    color: #333;
    font-size: 14px;
    line-height: 1.8;
    padding: 20px;
    background: #fff;
    border-radius: 4px;
}

.ai-result-content strong {
    color: #1890ff;
    font-weight: 600;
}

.ai-result-content h3,
.ai-result-content h4 {
    color: #333;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.ai-result-content h3 {
    font-size: 18px;
    border-bottom: 2px solid #1890ff;
    padding-bottom: 8px;
}

.ai-result-content h4 {
    font-size: 16px;
}

.ai-result-content p {
    margin: 10px 0;
    text-align: justify;
}

.ai-result-content ul,
.ai-result-content ol {
    margin: 10px 0;
    padding-left: 25px;
}

.ai-result-content li {
    margin: 5px 0;
}

.ai-qa-section {
    margin-top: 30px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.ai-qa-container {
    width: 100%;
}

.ai-qa-header {
    margin-bottom: 20px;
}

.ai-qa-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
}

.ai-qa-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.ai-qa-content {
    min-height: 300px;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    position: relative;
    overflow: hidden;
}

/* 非VIP用户显示模糊效果 */
.ai-qa-content.non-vip::before {

}

/* VIP用户不显示模糊效果 */
.ai-qa-content.vip-user::before {
    display: none;
}

.ai-qa-blurred-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    filter: blur(8px);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.blurred-question {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 4px;
}

.blurred-answer {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    line-height: 1.6;
}

.ai-qa-locked {
    text-align: center;
    position: relative;
    z-index: 2;
}

.lock-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.6;
}

/* VIP用户问答表单样式 */
.ai-qa-form-wrapper {
    width: 100% !important;
    box-sizing: border-box;
}

.preset-questions {
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    box-sizing: border-box;
}

.preset-questions-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 12px !important;
    display: block !important;
}

.preset-questions-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
}

.preset-question-btn {
    padding: 8px 16px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    color: #666 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.preset-question-btn:hover {
    background: #f0f0f0 !important;
    border-color: #d0d0d0 !important;
    color: #333 !important;
}

.ai-qa-form {
    margin-bottom: 20px !important;
    width: 100% !important;
    box-sizing: border-box;
}

.qa-input-wrapper {
    margin-bottom: 15px !important;
    width: 100% !important;
    box-sizing: border-box;
}

.qa-input {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    resize: vertical !important;
    min-height: 80px !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}

.qa-input:focus {
    outline: none !important;
    border-color: #4a90e2 !important;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1) !important;
}

.qa-actions {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box;
}

.qa-submit-btn {
    padding: 10px 24px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.3s !important;
    box-sizing: border-box !important;
}

.qa-submit-btn:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.qa-submit-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.qa-submit-icon {
    font-size: 16px !important;
    display: inline-block !important;
}

.qa-reset-btn {
    padding: 10px 20px !important;
    background: #f5f5f5 !important;
    color: #666 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    box-sizing: border-box !important;
}

.qa-reset-btn:hover {
    background: #e8e8e8 !important;
    border-color: #d0d0d0 !important;
    color: #333 !important;
}

/* VIP提示区域美化 */
.qa-vip-tip {
    margin-top: 20px !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%) !important;
    border: 2px solid #ffc107 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2) !important;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 16px 20px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.qa-vip-tip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ffc107 0%, #ff9800 100%);
}

.qa-vip-tip:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3) !important;
    border-color: #ff9800 !important;
}

.qa-vip-tip-icon {
    font-size: 28px !important;
    line-height: 1 !important;
    animation: qaVipShake 2s ease-in-out infinite !important;
    flex-shrink: 0 !important;
}

@keyframes qaVipShake {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: rotate(-10deg);
    }
    20%, 40%, 60%, 80% {
        transform: rotate(10deg);
    }
}

.qa-vip-tip-content {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.qa-vip-tip-text {
    color: #856404 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

.qa-vip-tip-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

.qa-vip-tip-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.qa-vip-tip-link:hover::before {
    left: 100%;
}

.qa-vip-tip-link:hover {
    background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4) !important;
}

.qa-vip-tip-link:active {
    transform: translateY(0) !important;
}

.qa-vip-tip-link-text {
    position: relative;
    z-index: 1;
}

.qa-vip-tip-link-arrow {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease !important;
    font-size: 16px !important;
}

.qa-vip-tip-link:hover .qa-vip-tip-link-arrow {
    transform: translateX(3px) !important;
}

@media (max-width: 768px) {
    .qa-vip-tip {
        flex-direction: column !important;
        text-align: center !important;
        padding: 16px !important;
    }
    
    .qa-vip-tip-content {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .qa-vip-tip-link {
        width: 100% !important;
        justify-content: center !important;
    }
}

.ai-qa-answer {
    margin-top: 20px !important;
    padding: 20px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
    width: 100% !important;
    box-sizing: border-box;
}

.qa-answer-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    width: 100% !important;
    box-sizing: border-box;
}

.qa-answer-label {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    display: inline-block !important;
}

.qa-copy-btn {
    padding: 6px 12px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    color: #666 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.3s !important;
    box-sizing: border-box !important;
}

.qa-copy-btn:hover {
    background: #f0f0f0 !important;
    border-color: #4a90e2 !important;
    color: #4a90e2 !important;
}

.qa-answer-content {
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #333 !important;
    width: 100% !important;
    box-sizing: border-box;
}

.qa-answer-content p {
    margin-bottom: 12px !important;
}

.qa-answer-content p:last-child {
    margin-bottom: 0 !important;
}

.locked-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 30px 0;
}

.subscribe-btn {
    padding: 12px 32px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.subscribe-btn:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.subscribe-btn:active {
    transform: translateY(0);
}

/* 订阅弹窗样式 */
.subscribe-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscribe-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.subscribe-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 40px 50px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 10001;
}

.subscribe-modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.subscribe-modal-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin: 0 0 12px 0;
}

.subscribe-modal-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.subscribe-modal-btn {
    padding: 14px 40px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    max-width: 200px;
}

.subscribe-modal-btn:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.subscribe-modal-btn:active {
    transform: translateY(0);
}

.mingpan-info-section {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mingpan-info-container {
    width: 100%;
}

.mingpan-info-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.mingpan-info-table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.mingpan-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    table-layout: fixed;
}

.mingpan-info-table thead {
    background: #f5f5f5;
}

.mingpan-info-table th {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    font-weight: bold;
    color: #333;
    background: #f5f5f5;
    vertical-align: middle;
}

.mingpan-info-table th.palace-name-header {
    min-width: 100px;
    width: 100px;
}

.mingpan-info-table th.career-header {
    min-width: 200px;
}

.mingpan-info-table th.wealth-header {
    min-width: 200px;
}

.mingpan-info-table th.marriage-header {
    min-width: 200px;
}

.mingpan-info-table th.daxian-header {
    min-width: 300px;
}

.mingpan-info-table td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
}

.mingpan-info-table .palace-name-cell {
    background: #f9f9f9;
    font-weight: 600;
    color: #333;
    min-width: 100px;
    width: 100px;
    text-align: center;
}

.mingpan-info-table .career-cell,
.mingpan-info-table .wealth-cell,
.mingpan-info-table .marriage-cell {
    text-align: left;
    padding-left: 12px;
    color: #555;
    line-height: 1.6;
    min-width: 200px;
}

.mingpan-info-table .daxian-cell {
    text-align: left;
    padding-left: 12px;
    color: #555;
    line-height: 1.6;
    min-width: 300px;
}

/* 六道轮回占比样式 */
/* 六道轮回占比样式 */
.liudao-lunhui-section {
    margin: 30px auto;
    max-width: 1200px;
    padding: 0 0px;
}

.liudao-lunhui-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.liudao-lunhui-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B6B 0%, #4ECDC4 25%, #FFE66D 50%, #95E1D3 75%, #F38181 87.5%, #AA96DA 100%);
    border-radius: 20px 20px 0 0;
}

.liudao-lunhui-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.liudao-lunhui-icon {
    font-size: 48px;
    line-height: 1;
    animation: liudaoRotate 3s linear infinite;
}

@keyframes liudaoRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.liudao-lunhui-title-wrapper {
    flex: 1;
}

.liudao-lunhui-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 5px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.liudao-lunhui-subtitle {
    font-size: 14px;
    color: #718096;
    margin: 0;
    font-weight: 400;
}

.liudao-lunhui-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 35px;
}

.liudao-chart-wrapper {
    flex: 0 0 auto;
    text-align: center;
    position: relative;
}

.liudao-chart-bg {
    position: relative;
    display: inline-block;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 255, 0.9) 100%);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
    transition: transform 0.3s ease;
}

.liudao-chart-bg:hover {
    transform: scale(1.05);
}

#liudaoChart {
    max-width: 100%;
    height: auto;
    display: block;
}

.liudao-legend-wrapper {
    flex: 1;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.liudao-legend-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
    text-align: center;
}

.liudao-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.liudao-legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 255, 0.9) 100%);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.liudao-legend-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--item-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.liudao-legend-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.liudao-legend-item:hover::before {
    opacity: 1;
}

.liudao-legend-color {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.liudao-legend-name {
    flex: 1;
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
}

.liudao-legend-value {
    font-weight: 700;
    color: #667eea;
    min-width: 60px;
    text-align: right;
    font-size: 16px;
}

.liudao-legend-count {
    color: #718096;
    font-size: 13px;
    min-width: 60px;
    text-align: right;
    font-weight: 500;
}

.liudao-analysis-wrapper {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    border-radius: 16px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.1);
}

.liudao-analysis-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.liudao-analysis-icon {
    font-size: 20px;
}

.liudao-analysis-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.liudao-analysis {
    line-height: 2;
    color: #4a5568;
    font-size: 15px;
    text-align: justify;
}

.liudao-analysis br {
    margin-bottom: 10px;
    display: block;
    content: '';
}

@media (max-width: 768px) {
    .liudao-lunhui-container {
        padding: 25px 20px;
    }
    
    .liudao-lunhui-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .liudao-lunhui-icon {
        font-size: 36px;
    }
    
    .liudao-lunhui-title {
        font-size: 24px;
    }
    
    .liudao-lunhui-content {
        flex-direction: column;
        gap: 25px;
    }
    
    .liudao-chart-wrapper {
        width: 100%;
    }
    
    .liudao-chart-bg {
        padding: 15px;
    }
    
    #liudaoChart {
        width: 100%;
        max-width: 280px;
    }
    
    .liudao-legend-wrapper {
        width: 100%;
        min-width: auto;
    }
    
    .liudao-analysis-wrapper {
        padding: 20px 15px;
    }
}

/* 六道轮回占比 - 非VIP锁定状态 */
.liudao-lunhui-locked {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.liudao-lunhui-locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B6B 0%, #4ECDC4 25%, #FFE66D 50%, #95E1D3 75%, #F38181 87.5%, #AA96DA 100%);
    opacity: 0.3;
}

.liudao-lunhui-locked-content {
    text-align: center;
    padding: 60px 40px;
    max-width: 500px;
}

.liudao-lunhui-locked-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 20px;
    display: block;
    animation: liudaoLockPulse 2s ease-in-out infinite;
}

@keyframes liudaoLockPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.liudao-lunhui-locked-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 15px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.liudao-lunhui-locked-desc {
    font-size: 16px;
    color: #718096;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.liudao-lunhui-locked-subdesc {
    font-size: 14px;
    color: #a0aec0;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.liudao-lunhui-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.liudao-lunhui-subscribe-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.liudao-lunhui-subscribe-btn:hover::before {
    left: 100%;
}

.liudao-lunhui-subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.liudao-lunhui-subscribe-btn:active {
    transform: translateY(0);
}

.liudao-lunhui-subscribe-icon {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.liudao-lunhui-subscribe-arrow {
    font-size: 18px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.liudao-lunhui-subscribe-btn:hover .liudao-lunhui-subscribe-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .liudao-lunhui-locked-content {
        padding: 40px 20px;
    }
    
    .liudao-lunhui-locked-icon {
        font-size: 48px;
    }
    
    .liudao-lunhui-locked-title {
        font-size: 24px;
    }
    
    .liudao-lunhui-subscribe-btn {
        width: 100%;
        justify-content: center;
    }
}

.mingpan-info-table .daxian-cell {
    text-align: left;
    padding-left: 12px;
    min-width: 300px;
}

.analysis-content {
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    text-align: left;
    border-left: 3px solid #1890ff;
}

.analysis-placeholder {
    color: #999;
    font-style: italic;
    font-size: 12px;
}

.daxian-liunian-table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.daxian-liunian-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.daxian-liunian-table td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
    min-width: 80px;
}

.daxian-liunian-table .row-label {
    background: #f5f5f5;
    font-weight: bold;
    color: #333;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    width: 40px;
    min-width: 40px;
}

.daxian-liunian-table .row-label.clickable-row-label {
    cursor: pointer;
    transition: all 0.3s;
}

.daxian-liunian-table .row-label.clickable-row-label:hover {
    background: #e0e0e0;
}

.daxian-liunian-table td:not(.row-label) {
    line-height: 1.6;
    cursor: pointer;
    transition: all 0.3s;
}

.daxian-liunian-table td:not(.row-label):hover {
    background: #f0f0f0;
}

.daxian-liunian-table td.selected {
    background: #fff3cd !important;
    border: 2px solid #ffc107 !important;
}

.daxian-liunian-table td.highlight-year {
    background: #ffe0e0 !important;
}

/* 天干地支竖排显示 */
.ganzhi-vertical {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    font-size: 14px;
    font-weight: 600;
}

.ganzhi-vertical div {
    display: block;
}

.palace-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;

}

.palace-name {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    line-height: 1.3;
    background: transparent;
}

.palace-ganzhi {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
    background: transparent;
}

/* 右下角天干地支（竖直排列） */
.palace-ganzhi-corner {
    position: absolute;
    bottom: 5px;
    right: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

/* 左上角方位显示 */
.palace-direction-corner {
    position: absolute;
    top: 8px;
    left: 55px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 5;

    border-radius: 4px;
    padding: 4px 6px;

}

.palace-direction-text {
    font-size: 11px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 2px;
}

.palace-ganzhi-direction {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.direction-gan,
.direction-zhi {
    font-weight: 600;
}

.palace-analysis {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    padding: 6px;
    font-size: 10px;
    line-height: 1.3;
    color: #333;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-height: 60px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.palace-card:hover .palace-analysis {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.palace-analysis-content {
    font-size: 9px;
    color: #555;
    line-height: 1.4;
    text-align: left;
}

/* 十二长生（在天干地支上方） */
.palace-changsheng-corner {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    margin-bottom: 20px;
    line-height: 1.2;
}

.ganzhi-gan {
    font-size: 12px;
    color: #f5222d;
    font-weight: 600;
}

.ganzhi-zhi {
    font-size: 12px;
    color: #f5222d;
    font-weight: 600;
}

.laiyin-label {
    background: #e6f7ff;
    color: #059669;
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    display: inline-block;
    font-weight: 500;
}

.shen-gong-label {
    background: #faad14;
    color: #fff;
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    display: inline-block;
    font-weight: 500;
}

/* 星星容器（按图片风格：星星名称一行，状态一行，四化一行） */
.palace-stars-container {
    margin: 6px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    font-size: 11px;
}

/* 第一行：所有星星名称水平排列 */
.stars-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px;
}

/* 第二行：所有状态水平排列 */
.statuses-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

/* 第三行：所有四化水平排列 */
.sihuas-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

/* 状态占位（用于对齐） */
.star-status-empty {
    display: inline-block;
    width: 1em;
    height: 1em;
}

/* 四化占位（用于对齐） */
.sihua-empty {
    display: inline-block;
    width: 1em;
    height: 1em;
}

/* 星星名称 */
.star-name-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: opacity 0.3s;
}

.star-name-link:hover {
    opacity: 0.7;
}

.star-link {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s;
}

.star-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.star-name {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 1em;
}

/* 星星名称中的每个字符（两个字时，每个字一行） */
.star-char {
    font-size: 14px;
    line-height: 1;
    display: block;
}

/* 主星颜色 - 蓝色 */
.main-star {
    color: #1890ff;
}

/* 副星颜色 - 绿色 */
.minor-star {
    color: #52c41a;
    font-size: 10px;
}

/* 杂星颜色 - 橙色 */
.za-yao-star {
    color: #fa8c16;
    font-size: 10px;
}

/* 状态（庙旺利平陷）- 显示在星星名称下方 */
.star-status {
    font-size: 11px;
    line-height: 2;
    font-weight: normal;
    white-space: nowrap;
    
    min-width: 1em;
    padding-left: 3px;
}

/* 庙 - 绿色 */
.star-status.status-庙 {
    color: #52c41a;
}

/* 旺 - 蓝色 */
.star-status.status-旺 {
    color: #1890ff;
}

/* 利 - 紫色 */
.star-status.status-利 {
    color: #722ed1;
}

/* 平 - 灰色 */
.star-status.status-平 {
    color: #8c8c8c;
}

/* 陷 - 红色 */
.star-status.status-陷 {
    color: #f5222d;
}

/* 四化标记颜色 - 显示在状态下方 */
.sihua-mark {
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    min-width: 1.2em;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 禄 - 绿色 */
.sihua-mark.禄 {
    color: #ffffff;
    background-color: #52c41a;
}

/* 权 - 紫色 */
.sihua-mark.权 {
    color: #ffffff;
    background-color: #722ed1;
}

/* 科 - 蓝色 */
.sihua-mark.科 {
    color: #ffffff;
    background-color: #1890ff;
}

/* 忌 - 红色 */
.sihua-mark.忌 {
    color: #ffffff;
    background-color: #f5222d;
}

/* 大限四化行 */
.daxian-sihuas-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.daxian-sihua-empty {
    display: inline-block;
    width: 1em;
    height: 1em;
}

.daxian-sihua-mark {
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    min-width: 1.2em;
    padding: 2px 4px;
    border-radius: 3px;
    color: #ffffff;
}

/* 大限四化 - 禄 - 绿色背景 */
.daxian-sihua-mark.禄 {
    background-color: #52c41a;
}

/* 大限四化 - 权 - 紫色背景 */
.daxian-sihua-mark.权 {
    background-color: #722ed1;
}

/* 大限四化 - 科 - 蓝色背景 */
.daxian-sihua-mark.科 {
    background-color: #1890ff;
}

/* 大限四化 - 忌 - 红色背景 */
.daxian-sihua-mark.忌 {
    background-color: #f5222d;
}

/* 年四化行 */
.year-sihuas-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.year-sihua-empty {
    display: inline-block;
    width: 1em;
    height: 1em;
}

.year-sihua-mark {
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    min-width: 1.2em;
    padding: 2px 4px;
    border-radius: 3px;
    color: #ffffff;
}

/* 年四化 - 禄 - 橙色背景 */
.year-sihua-mark.禄 {
    background-color: #52c41a;
}

/* 年四化 - 权 - 橙色背景 */
.year-sihua-mark.权 {
    background-color: #722ed1;
}

/* 年四化 - 科 - 橙色背景 */
.year-sihua-mark.科 {
    background-color: #1890ff;
}

/* 年四化 - 忌 - 红色背景 */
.year-sihua-mark.忌 {
    background-color: #f5222d;
}

/* 大限星曜显示区域（右上角） */
.daxian-stars-corner {
    position: absolute;
    top: 50px;
    right: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 4px 8px;
    min-height: 20px;
    z-index: 10;
    gap: 4px;
}

/* 星曜组（每个星曜别名作为一个组，并排显示） */
.daxian-star-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.daxian-star-item {
    color: #1890ff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1px;
    white-space: nowrap;
    text-align: center;
    min-height: 14px;
}

/* 大限年份和年龄显示区域 */
.palace-daxian-years {
    position: absolute;
    top: 217px;
    right: 29px;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-end;
    text-align: right;
    z-index: 10;
}

.daxian-year-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1.2;
    justify-content: flex-end;
}

.daxian-year {
    font-size: 14px;
    font-weight: bold;
    color: #d97706;
}

.daxian-age {
    font-size: 14px;
    color: #d97706;
}

.palace-changsheng,
.palace-daxian {
    font-size: 16px;
  color: #000;
  font-weight: bold;
  margin: 4px 0;
    margin-top: 4px;
  line-height: 1.4;
  text-align: right;
  margin-top: -30px;
}

.palace-liunian,
.palace-xiaoxian,
.palace-cji-stars {
    font-size: 13px;
    margin: 4px 0;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px;
    line-height: 1.4;
}

.palace-liunian .label,
.palace-xiaoxian .label,
.palace-cji-stars .label {
    color: #666;
    font-weight: 500;
    min-width: 45px;
    flex-shrink: 0;
}

.palace-liunian .values,
.palace-xiaoxian .values,
.palace-cji-stars .values {
    color: #333;
    flex: 1;
    word-break: break-all;
}

.current-mark {
    background: #4caf50;
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    margin-left: 4px;
    font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .ziwei-chart-wrapper {
        padding: 10px;
        padding-left: 10px; /* 移动端移除左边距 */
        min-height: 600px;
    }
    
    .ziwei-palaces-circle {
        min-height: 600px;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 0;
        padding: 10px;
    }
    
    .ziwei-center-info {
        width: calc(50% - 20px);
        padding: 12px;
        max-height: none;
        overflow: visible;
        height: auto;
    }
    
    .ziwei-info-header {
        padding: 6px 10px;
        margin-bottom: 6px;
    }
    
    .ziwei-bazi-display {
        padding: 6px 10px;
        margin-bottom: 6px;
    }
    
    .bazi-pillars {
        gap: 8px;
    }
    
    .bazi-pillar {
        min-width: 30px;
    }
    
    .pillar-gan,
    .pillar-zhi {
        font-size: 14px;
        padding: 3px 6px;
        min-width: 25px;
    }
    
    .ziwei-basic-info {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .info-row {
        font-size: 11px;
        padding: 6px 8px;
        border-right: none;
    }
    
    .info-row:nth-child(3n) {
        border-right: none;
    }
    
    .info-label {
        min-width: 50px;
        margin-right: 6px;
    }
    
    .palace-card {
        padding: 8px;
        min-height: 120px;
        font-size: 10px;
    }
    
    .palace-name {
        font-size: 13px;
    }
    
    .palace-ganzhi {
        font-size: 11px;
    }
    
    .palace-ganzhi-corner {
        bottom: 4px;
        right: 4px;
        font-size: 10px;
    }

    .palace-analysis {
        bottom: 6px;
        left: 6px;
        right: 40px;
        padding: 4px;
        font-size: 9px;
        max-height: 50px;
    }

    .ai-ziwei-analysis-section {
        padding: 20px;
        margin-top: 20px;
    }

    .ai-ziwei-analysis-header {
        flex-direction: column;
        gap: 15px;
    }

    .ai-ziwei-analysis-title {
        font-size: 20px;
    }

    .ai-analysis-btn {
        width: 100%;
        justify-content: center;
    }

    .ai-qa-section {
        padding: 20px;
        margin-top: 20px;
    }

    .ai-qa-title {
        font-size: 20px;
    }

    .preset-questions-list {
        flex-direction: column;
    }
    
    .preset-question-btn {
        width: 100%;
        text-align: center;
    }
    
    .qa-actions {
        flex-direction: column;
    }
    
    .qa-submit-btn,
    .qa-reset-btn {
        width: 100%;
    }
    
    .qa-answer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .qa-copy-btn {
        align-self: flex-end;
    }

    .subscribe-btn {
        width: 100%;
        max-width: 300px;
    }

    .subscribe-modal-content {
        padding: 30px 30px;
        max-width: 90%;
    }

    .subscribe-modal-title {
        font-size: 20px;
    }
    
    .palace-changsheng-corner {
        font-size: 14px;
        margin-bottom: 18px;
    }
    
    .ganzhi-gan,
    .ganzhi-zhi {
        font-size: 10px;
        color: #f5222d;
    }
    
    .palace-stars-container {
        font-size: 9px;
        gap: 1px;
    }
    
    .star-name {
        font-size: 9px;
    }
    
    .star-char {
        font-size: 9px;
    }
    
    .main-star {
        font-size: 9px;
    }
    
    .minor-star {
        font-size: 8px;
    }
    
    .za-yao-star {
        font-size: 8px;
    }
    
    .star-status {
        font-size: 8px;
    }
    
    .sihua-mark {
        font-size: 10px;
        padding: 1px 3px;
    }
    
    .palace-liunian,
    .palace-xiaoxian,
    .palace-cji-stars {
        font-size: 9px;
    }
    
    .palace-changsheng,
    .palace-daxian {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .ziwei-chart-wrapper {
        padding: 8px;
        min-height: 500px;
    }
    
    .ziwei-palaces-circle {
        min-height: 500px;
        gap: 4px;
        padding: 8px;
    }
    
    .ziwei-center-info {
        width: calc(50% - 16px);
        padding: 10px;
        max-height: none;
        overflow: visible;
        height: auto;
    }
    
    .ziwei-basic-info {
        grid-template-columns: 1fr;
    }
    
    .info-row {
        font-size: 10px;
        padding: 5px 6px;
        border-right: none;
    }
    
    .info-row:nth-child(3n) {
        border-right: none;
    }
    
    .info-label {
        min-width: 45px;
    }
    
    .palace-card {
        min-height: 100px;
        font-size: 9px;
        padding: 6px;
    }
    
    .palace-name {
        font-size: 12px;
    }
    
    .palace-ganzhi {
        font-size: 10px;
    }
    
    .palace-ganzhi-corner {
        bottom: 3px;
        right: 3px;
        font-size: 9px;
    }

    .palace-analysis {
        bottom: 4px;
        left: 4px;
        right: 35px;
        padding: 3px;
        font-size: 8px;
        max-height: 40px;
    }

    .ai-ziwei-analysis-section {
        padding: 15px;
    }

    .ai-ziwei-analysis-title {
        font-size: 18px;
    }

    .ai-ziwei-analysis-desc {
        font-size: 13px;
    }

    .ai-analysis-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .ai-qa-section {
        padding: 15px;
    }

    .ai-qa-title {
        font-size: 18px;
    }

    .ai-qa-desc {
        font-size: 13px;
    }

    .subscribe-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .subscribe-modal-content {
        padding: 25px 20px;
    }

    .subscribe-modal-title {
        font-size: 18px;
    }

    .subscribe-modal-desc {
        font-size: 13px;
    }

    .subscribe-modal-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .palace-changsheng-corner {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .ganzhi-gan,
    .ganzhi-zhi {
        font-size: 9px;
        color: #f5222d;
    }
    
    .palace-stars-container {
        font-size: 8px;
        gap: 1px;
    }
    
    .star-name {
        font-size: 8px;
    }
    
    .star-char {
        font-size: 8px;
    }
    
    .main-star {
        font-size: 8px;
    }
    
    .minor-star {
        font-size: 7px;
    }
    
    .za-yao-star {
        font-size: 7px;
    }
    
    .star-status {
        font-size: 7px;
    }
    
    .sihua-mark {
        font-size: 9px;
        padding: 1px 2px;
    }
    
    .palace-liunian,
    .palace-xiaoxian,
    .palace-cji-stars {
        font-size: 8px;
    }
}

/* 业力分析模块样式 */
.yeli-analysis-section {
    margin: 30px auto;
    max-width: 1200px;
    padding: 0 0px;
}

.yeli-analysis-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.yeli-analysis-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
    border-radius: 20px 20px 0 0;
}

.yeli-analysis-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.yeli-analysis-icon {
    font-size: 48px;
    line-height: 1;
}

.yeli-analysis-title-wrapper {
    flex: 1;
}

.yeli-analysis-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 5px 0;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.yeli-analysis-subtitle {
    font-size: 14px;
    color: #718096;
    margin: 0;
    font-weight: 400;
}

.yeli-analysis-content {
    margin-top: 20px;
}

.yeli-analysis-content-wrapper {
    padding: 20px 0;
}

.yeli-intro {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.yeli-intro h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 10px 0;
}

.yeli-intro p {
    font-size: 15px;
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

.yeli-dao-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.yeli-dao-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 255, 0.9) 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.yeli-dao-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.yeli-dao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.yeli-dao-name {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
}

.yeli-dao-percentage {
    font-size: 18px;
    font-weight: 700;
    color: #8B4513;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.yeli-dao-stars {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.yeli-dao-label {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.yeli-dao-stars-list {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.8;
}

.yeli-analysis-placeholder {
    color: #999;
    padding: 40px 20px;
    text-align: center;
    font-size: 15px;
}

/* 业力分析 - 非VIP锁定状态 */
.yeli-analysis-locked {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.yeli-analysis-locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
    opacity: 0.3;
}

.yeli-analysis-locked-content {
    text-align: center;
    padding: 60px 40px;
    max-width: 500px;
}

.yeli-analysis-locked-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 20px;
    display: block;
    animation: yeliLockPulse 2s ease-in-out infinite;
}

@keyframes yeliLockPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.yeli-analysis-locked-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 15px 0;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.yeli-analysis-locked-desc {
    font-size: 16px;
    color: #4a5568;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.yeli-analysis-locked-subdesc {
    font-size: 14px;
    color: #718096;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.yeli-analysis-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.yeli-analysis-subscribe-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.yeli-analysis-subscribe-btn:hover::before {
    left: 100%;
}

.yeli-analysis-subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.yeli-analysis-subscribe-btn:active {
    transform: translateY(0);
}

.yeli-analysis-subscribe-icon {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.yeli-analysis-subscribe-arrow {
    font-size: 18px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.yeli-analysis-subscribe-btn:hover .yeli-analysis-subscribe-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .yeli-analysis-container {
        padding: 25px 20px;
    }
    
    .yeli-analysis-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .yeli-analysis-icon {
        font-size: 36px;
    }
    
    .yeli-analysis-title {
        font-size: 24px;
    }
    
    .yeli-dao-item {
        padding: 15px;
    }
    
    .yeli-dao-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .yeli-dao-stars {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .yeli-analysis-locked-content {
        padding: 40px 20px;
    }
    
    .yeli-analysis-locked-icon {
        font-size: 48px;
    }
}

/* 宫位分析模块样式（最差宫位、来因宫、身宫、化忌星） */
.palace-analysis-section {
    margin: 30px auto;
    max-width: 1200px;
    padding: 0 0px;
}

.palace-analysis-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.palace-analysis-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.palace-analysis-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.palace-analysis-icon {
    font-size: 48px;
    line-height: 1;
}

.palace-analysis-title-wrapper {
    flex: 1;
}

.palace-analysis-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 5px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.palace-analysis-subtitle {
    font-size: 14px;
    color: #718096;
    margin: 0;
    font-weight: 400;
}

.palace-analysis-content {
    padding: 0;
}

.palace-analysis-text {
    line-height: 2;
    color: #4a5568;
    font-size: 15px;
    text-align: justify;
    white-space: pre-wrap;
}

.palace-analysis-text br {
    margin-bottom: 10px;
    display: block;
    content: '';
}

/* 宫位分析模块 - 非VIP锁定状态 */
.palace-analysis-locked {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.palace-analysis-locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.palace-analysis-locked-content {
    text-align: center;
    padding: 60px 40px;
    max-width: 500px;
}

.palace-analysis-locked-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 20px;
    display: block;
    animation: liudaoLockPulse 2s ease-in-out infinite;
}

@keyframes liudaoLockPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.palace-analysis-locked-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 15px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.palace-analysis-locked-desc {
    font-size: 16px;
    color: #718096;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.palace-analysis-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.palace-analysis-subscribe-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.palace-analysis-subscribe-btn:hover::before {
    left: 100%;
}

.palace-analysis-subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.palace-analysis-subscribe-btn:active {
    transform: translateY(0);
}

.palace-analysis-subscribe-icon {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.palace-analysis-subscribe-arrow {
    font-size: 18px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.palace-analysis-subscribe-btn:hover .palace-analysis-subscribe-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .palace-analysis-container {
        padding: 25px 20px;
    }
    
    .palace-analysis-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .palace-analysis-icon {
        font-size: 36px;
    }
    
    .palace-analysis-title {
        font-size: 24px;
    }
    
    .palace-analysis-text {
        font-size: 14px;
    }
    
    .palace-analysis-locked-content {
        padding: 40px 20px;
    }
    
    .palace-analysis-locked-icon {
        font-size: 48px;
    }
    
    .palace-analysis-locked-title {
        font-size: 24px;
    }
    
    .palace-analysis-subscribe-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 格局分析特定样式 */
.pattern-analysis-text {
    line-height: 1.8;
    color: #4a5568;
    font-size: 15px;
}

.pattern-analysis-summary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    line-height: 2;
}

.pattern-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pattern-item {
    background: #ffffff;
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pattern-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pattern-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.pattern-item:hover::before {
    opacity: 1;
}

.pattern-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.pattern-item-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.pattern-item-name {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pattern-item-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pattern-item-location,
.pattern-item-description,
.pattern-item-characteristics {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.8;
}

.pattern-item-label {
    font-weight: 600;
    color: #667eea;
    flex-shrink: 0;
    min-width: 60px;
}

.pattern-item-value {
    color: #4a5568;
    flex: 1;
    text-align: justify;
}

@media (max-width: 768px) {
    .pattern-analysis-summary {
        padding: 15px;
        font-size: 14px;
    }
    
    .pattern-item {
        padding: 15px;
    }
    
    .pattern-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pattern-item-name {
        font-size: 20px;
    }
    
    .pattern-item-location,
    .pattern-item-description,
    .pattern-item-characteristics {
        flex-direction: column;
        gap: 5px;
    }
    
    .pattern-item-label {
        min-width: auto;
    }
}

/* AI分析加载弹窗 */
.ai-analysis-loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-analysis-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.ai-analysis-loading-content {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 50px 40px;
    min-width: 400px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    z-index: 10001;
}

.ai-analysis-loading-spinner {
    margin: 0 auto 30px;
    width: 60px;
    height: 60px;
    position: relative;
}

.spinner-svg {
    width: 100%;
    height: 100%;
    animation: spinner-rotate 1.5s linear infinite;
    transform-origin: center;
}

.spinner-circle {
    stroke: #ffffff;
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: spinner-dash 1.5s ease-in-out infinite;
}

@keyframes spinner-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinner-dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.ai-analysis-loading-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    text-align: center;
}

.ai-analysis-loading-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 15px 0;
    line-height: 1.6;
    text-align: center;
}

.ai-analysis-loading-tip {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 20px 0;
    line-height: 1.6;
    text-align: center;
}

.ai-analysis-loading-time {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    text-align: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .ai-analysis-loading-content {
        min-width: 320px;
        max-width: 90%;
        padding: 40px 30px;
    }
    
    .ai-analysis-loading-title {
        font-size: 20px;
    }
    
    .ai-analysis-loading-desc {
        font-size: 14px;
    }
    
    .ai-analysis-loading-tip {
        font-size: 13px;
    }
    
    .ai-analysis-loading-time {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .ai-analysis-loading-spinner {
        width: 50px;
        height: 50px;
        margin-bottom: 25px;
    }
}

/* 左侧固定导航栏 */
.ziwei-sidebar-nav {
    position: fixed;
    left: 16%;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 0 20px 20px 0;
    box-shadow: 2px 0 20px rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-left: none;
    z-index: 1000;
    padding: 20px 0;
    max-height: 80vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.ziwei-sidebar-nav:hover {
    transform: translateY(-50%) translateX(0);
}

.sidebar-nav-header {
    padding: 0 20px 15px 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
    margin-bottom: 15px;
}

.sidebar-nav-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav-list li {
    margin: 0;
    padding: 0;
}

.sidebar-nav-item {
    display: block;
    padding: 12px 20px;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-nav-item:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    color: #667eea;
    border-left-color: #667eea;
    padding-left: 25px;
}

.sidebar-nav-item.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.15) 0%, transparent 100%);
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 600;
}

.sidebar-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-nav-item:hover::before,
.sidebar-nav-item.active::before {
    opacity: 1;
}

/* 滚动条样式 */
.ziwei-sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.ziwei-sidebar-nav::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
}

.ziwei-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 10px;
}

.ziwei-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .ziwei-sidebar-nav {
        width: 160px;
        font-size: 13px;
    }
    
    .sidebar-nav-item {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .ziwei-chart-wrapper {
        
    }
}

@media (max-width: 768px) {
    .ziwei-sidebar-nav {
        position: fixed;
        left: -180px;
        top: 50%;
        transform: translateY(-50%);
        width: 180px;
        transition: left 0.3s ease;
        z-index: 1002;
    }
    
    .ziwei-sidebar-nav.show {
        left: 0;
    }
    
    /* 添加一个触发按钮 */
    .sidebar-nav-toggle {
        position: fixed;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 20px;
        cursor: pointer;
        z-index: 1001;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        transition: all 0.3s ease;
    }
    
    .sidebar-nav-toggle:hover {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    }
    
    .sidebar-nav-toggle:active {
        transform: translateY(-50%) scale(0.95);
    }
}