/* 移动端全局重置 - 确保自适应 */
* {
    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: 70%;
    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;
}

.result-card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
    padding: 1.5rem 2rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    flex: 1;
}

.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;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.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);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 响应式设计 */
@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 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.bazi-chart-display .stem::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    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: 17px;
    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 {
    
}

.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%;
   
}

.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;
}

.dayun-advice {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1rem;
    border-radius: 8px;

    margin-top: 1rem;
}

.dayun-advice h5 {
    color: #0c4a6e;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
}

.dayun-advice h5::before {
    content: '💡';
    margin-right: 0.5rem;
    font-size: 1rem;
}

.dayun-advice ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dayun-advice li {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    text-align: left;
    padding-left: 1.5rem;
    position: relative;
}

.dayun-advice li::before {
    content: '•';
    color: #0ea5e9;
    font-weight: bold;
    position: absolute;
    left: 0.5rem;
}

.dayun-advice li:last-child {
    margin-bottom: 0;
}

/* 深度分析卡片样式 */
.personality-card,
.career-card,
.relationship-card,
.health-card {
    margin-bottom: 1.5rem;
}

.personality-card .card-header h3::before {
    content: '👤';
    margin-right: 0.5rem;
}

.career-card .card-header h3::before {
    content: '💼';
    margin-right: 0.5rem;
}

.relationship-card .card-header h3::before {
    content: '💕';
    margin-right: 0.5rem;
}

.health-card .card-header h3::before {
    content: '🏥';
    margin-right: 0.5rem;
}

.personality-card .card-header,
.career-card .card-header,
.relationship-card .card-header,
.health-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    color: #000;
}

.personality-card .card-content,
.career-card .card-content,
.relationship-card .card-content,
.health-card .card-content {
    background: #f8f9fa;
}

/* 流年信息美化 */
.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;
    }

    .dayun-advice {
        padding: 0.75rem;
    }

    .dayun-advice h5 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .dayun-advice li {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.4rem;
        padding-left: 1.25rem;
    }

    .dayun-advice li::before {
        left: 0.25rem;
    }

    /* 智能分析 */
    .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 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pillar-zhi {
    background: white;
    color: #2d3748;
    font-size: 2rem;
    font-weight: 700;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.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: 24px;
    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: 800px; /* 增加最小宽度以容纳7列 */
    }
    
    .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);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.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-mu {
    color: #52c41a !important;
    background-color: #f6ffed !important;
    border-color: #b7eb8f !important;
}

.wuxing-huo {
    color: #fa541c !important;
    background-color: #fff2e8 !important;
    border-color: #ffbb96 !important;
}

.wuxing-tu {
    color: #d4b106 !important;
    background-color: #feffe6 !important;
    border-color: #fffb8f !important;
}

.wuxing-jin {
    color: #13c2c2 !important;
    background-color: #e6fffb !important;
    border-color: #87e8de !important;
}

.wuxing-shui {
    color: #1890ff !important;
    background-color: #e6f7ff !important;
    border-color: #91d5ff !important;
}

/* 十神颜色样式 */
.shishen-bijin, .shishen-jiecai, .shishen-shangcai, .shishen-piancai, .shishen-zhengcai,
.ganzhi-row .gan-shishen.shishen-bijin, .ganzhi-row .gan-shishen.shishen-jiecai,
.ganzhi-row .gan-shishen.shishen-shangcai, .ganzhi-row .gan-shishen.shishen-piancai,
.ganzhi-row .gan-shishen.shishen-zhengcai,
.ganzhi-row .zhi-shishen.shishen-bijin, .ganzhi-row .zhi-shishen.shishen-jiecai,
.ganzhi-row .zhi-shishen.shishen-shangcai, .ganzhi-row .zhi-shishen.shishen-piancai,
.ganzhi-row .zhi-shishen.shishen-zhengcai {
    color: #722ed1 !important;
    background-color: #f9f0ff !important;
    border-color: #d3adf7 !important;
}

.shishen-biyin, .shishen-zhengyin, .shishen-pianyin, .shishen-shangguan, .shishen-pinguan,
.ganzhi-row .gan-shishen.shishen-biyin, .ganzhi-row .gan-shishen.shishen-zhengyin,
.ganzhi-row .gan-shishen.shishen-pianyin, .ganzhi-row .gan-shishen.shishen-shangguan,
.ganzhi-row .gan-shishen.shishen-pinguan,
.ganzhi-row .zhi-shishen.shishen-biyin, .ganzhi-row .zhi-shishen.shishen-zhengyin,
.ganzhi-row .zhi-shishen.shishen-pianyin, .ganzhi-row .zhi-shishen.shishen-shangguan,
.ganzhi-row .zhi-shishen.shishen-pinguan {
    color: #08979c !important;
    background-color: #e6fffb !important;
    border-color: #87e8de !important;
}

.shishen-bigan, .shishen-zhengguan, .shishen-piguan, .shishen-shishen, .shishen-wushen,
.ganzhi-row .gan-shishen.shishen-bigan, .ganzhi-row .gan-shishen.shishen-zhengguan,
.ganzhi-row .gan-shishen.shishen-piguan, .ganzhi-row .gan-shishen.shishen-shishen,
.ganzhi-row .gan-shishen.shishen-wushen,
.ganzhi-row .zhi-shishen.shishen-bigan, .ganzhi-row .zhi-shishen.shishen-zhengguan,
.ganzhi-row .zhi-shishen.shishen-piguan, .ganzhi-row .zhi-shishen.shishen-shishen,
.ganzhi-row .zhi-shishen.shishen-wushen {
    color: #c41d7f !important;
    background-color: #fff0f6 !important;
    border-color: #ffadd2 !important;
}

.shishen-bishang, .shishen-shangshang, .shishen-pianshang,
.ganzhi-row .gan-shishen.shishen-bishang, .ganzhi-row .gan-shishen.shishen-shangshang,
.ganzhi-row .gan-shishen.shishen-pianshang,
.ganzhi-row .zhi-shishen.shishen-bishang, .ganzhi-row .zhi-shishen.shishen-shangshang,
.ganzhi-row .zhi-shishen.shishen-pianshang {
    color: #d4b106 !important;
    background-color: #feffe6 !important;
    border-color: #fffb8f !important;
}

.shishen-riyuan,
.ganzhi-row .gan-shishen.shishen-riyuan,
.ganzhi-row .zhi-shishen.shishen-riyuan {
    color: #fa8c16 !important;
    background-color: #fff7e6 !important;
    border-color: #ffd591 !important;
}

/* 大运流年流月五行和十神颜色应用 */
.dayun-item .ganzhi,
.liunian-item .ganzhi,
.liuyue-item .ganzhi {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

/* 五行分析警告样式 */
.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;
}

/* 大运流年流月样式 */
.dayun-liunian-liuyue-section {
   
   
}

.dayun-section h4,
.liunian-section h4,
.liuyue-section h4 {
    margin: 1.5rem 0 1rem 0;
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.dayun-list,
.liunian-list,
.liuyue-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.dayun-list {
    /* 大运一行显示，自动滚动 */
}

.liunian-list {
    /* 流年一行显示10个，自动滚动 */
}

.liuyue-list {
    /* 流月一行显示12个，自动滚动 */
}

.dayun-item,
.liunian-item,
.liuyue-item {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem;

    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.dayun-item:hover,
.liunian-item:hover,
.liuyue-item:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.dayun-item.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.liunian-item.active {
    border-color: #52c41a;
    background: linear-gradient(135deg, #f6ffed 0%, #f0f9ea 100%);
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.2);
}

.liuyue-item.active {
    border-color: #fa8c16;
    background: linear-gradient(135deg, #fff7e6 0%, #fff4db 100%);
    box-shadow: 0 4px 12px rgba(250, 140, 22, 0.2);
}

.ganzhi-display {
    margin-bottom: 0.25rem;
}

.ganzhi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.1rem;
}

.ganzhi-row .gan,
.ganzhi-row .zhi {
    font-size: 1.1rem;
    font-weight: bold;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    min-width: 1.2rem;
    text-align: center;
}

.ganzhi-row .gan-shishen,
.ganzhi-row .zhi-shishen {
    font-size: 0.8rem;
    font-weight: 500;
    color: #4a5568;
    min-width: 2rem;
    text-align: left;
    padding-left: 0.3rem;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
}

.dayun-item .info,
.liunian-item .info,
.liuyue-item .info {
    font-size: 0.75rem;
    color: #4a5568;
    line-height: 1.3;
}

.dayun-item .age,
.dayun-item .year {
    display: block;
    margin-bottom: 0.2rem;
}

.dayun-item .relationship {
    display: block;
    margin-top: 0.5rem;
    font-weight: 500;
    color: #667eea;
}

.liunian-item .year,
.liuyue-item .month {
    display: block;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.liunian-item .wuxing,
.liuyue-item .wuxing {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #718096;
}

/* 导航子文本样式 */
.nav-subtext {
    display: block;
    font-size: 0.8rem;
    color: #718096;
    margin-top: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dayun-list,
    .liunian-list,
    .liuyue-list {
        gap: 0.25rem;
    }

    .dayun-item,
    .liunian-item,
    .liuyue-item {
        min-width: 90px;
        max-width: 100px;
        padding: 0.4rem;
    }

    .dayun-item .ganzhi,
    .liunian-item .ganzhi,
    .liuyue-item .ganzhi {
        font-size: 1rem;
    }

    .dayun-item .info,
    .liunian-item .info,
    .liuyue-item .info {
        font-size: 0.7rem;
    }
}

/* 会员相关样式 */
.vip-prompt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 8px;
    border: 1px solid #e1e8f0;
}

.vip-prompt i {
    color: #667eea;
    font-size: 1.1rem;
}

.vip-upgrade-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.vip-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.vip-upgrade-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.vip-upgrade-btn i {
    font-size: 1rem;
    color: white;
}

.header-analysis-btn {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
}

.header-analysis-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.4);
}

.header-analysis-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
}

.header-analysis-btn i {
    font-size: 1rem;
    color: white;
}

@media (max-width: 768px) {
    .vip-prompt {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .vip-upgrade-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .header-analysis-btn {
        width: 100%;
        justify-content: center;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .card-header h3 {
        margin-bottom: 0;
    }
}

/* AI对话模板样式 */
.ai-chat-templates {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.templates-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
}

.templates-title i {
    color: #667eea;
    font-size: 1rem;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.template-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.template-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    color: #667eea;
}

.template-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .templates-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }

    .template-btn {
        font-size: 0.8rem;
        padding: 0.6rem 0.4rem;
        min-height: 44px;
    }

    .ai-chat-templates {
        padding: 0.8rem;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 480px) {
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .template-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.3rem;
        min-height: 40px;
    }

    .templates-title {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
}

/* 分析结果样式 */
.analysis-result {
    line-height: 1.8;
    font-size: 17px;
    color: #333;
    text-align: left;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.analysis-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.analysis-result p {
    margin: 0 0 15px 0;
    padding: 0;
    text-indent: 2em;
    position: relative;
}

.analysis-result p:last-child {
    margin-bottom: 0;
}

.analysis-result p::first-letter {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1em;
}

.analysis-result strong {
    color: #667eea;
    font-weight: 600;
    margin-right: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.analysis-result em {
    color: #28a745;
    font-style: italic;
    font-weight: 500;
}

.analysis-result u {
    text-decoration: underline;
    text-decoration-color: #ffc107;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.analysis-result ol,
.analysis-result ul {
    margin: 15px 0;
    padding-left: 28px;
    counter-reset: item;
}

.analysis-result li {
    margin-bottom: 10px;
    padding-left: 8px;
    position: relative;
}

.analysis-result li:last-child {
    margin-bottom: 0;
}

.analysis-result li::before {
    content: counter(item, decimal) '.';
    counter-increment: item;
    color: #667eea;
    font-weight: 600;
    position: absolute;
    left: -28px;
    top: 0;
}

.analysis-result blockquote {
    border-left: 4px solid #667eea;
    padding-left: 16px;
    margin: 15px 0;
    color: #6c757d;
    font-style: italic;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 0 8px 8px 0;
    position: relative;
}

.analysis-result blockquote::before {
    content: '"';
    font-size: 2em;
    color: #667eea;
    position: absolute;
    left: 8px;
    top: -5px;
    font-family: serif;
}

/* 分析结果悬停效果 */
.analysis-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .analysis-result {
        font-size: 14px;
        padding: 16px;
        margin: 12px 0;
    }

    .analysis-result p {
        text-indent: 1.5em;
        margin-bottom: 12px;
    }

    .analysis-result ol,
    .analysis-result ul {
        padding-left: 24px;
    }

    .analysis-result li::before {
        left: -24px;
    }
}

@media (max-width: 480px) {
    .analysis-result {
        font-size: 13px;
        padding: 12px;
        margin: 10px 0;
    }

    .analysis-result p {
        text-indent: 1.2em;
        margin-bottom: 10px;
    }

    .analysis-result ol,
    .analysis-result ul {
        padding-left: 20px;
    }

    .analysis-result li::before {
        left: -20px;
    }

    .analysis-result blockquote {
        padding-left: 12px;
        margin: 12px 0;
    }
}