﻿/* 八字婆媳关系页面样式 - 浅绿色主题设计 */

/* 全局重置 */
* {
    box-sizing: border-box;
}

/* 页面主容器 */
.mother-in-law-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 80px 0;
    width: 100%;
    overflow-x: hidden;
}

.mother-in-law-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 页面标题 */
.mother-in-law-header {
    text-align: center;
    margin-bottom: 60px;
    color: #2d3748;
}

.mother-in-law-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 2px;
    color: #1a202c;
}

.mother-in-law-subtitle {
    font-size: 1.2rem;
    color: #718096;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* 主卡片 */
.mother-in-law-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(76, 175, 80, 0.08);
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* 表单容器 */
.mother-in-law-form {
    width: 100%;
}

/* 两个缘主并排显示 */
.person-container {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.person-section {
    flex: 1;
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e9ecef;
}

.person-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    text-align: center;
}

/* 输入区域 */
.input-section {
    margin-bottom: 25px;
}

.section-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 12px;
    display: block;
}

.input-field {
    width: 100%;
}

.input-field input[type="text"],
.input-field input[type="time"],
.input-field select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    color: #2d3748;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

.input-field input[type="text"]:focus,
.input-field input[type="time"]:focus,
.input-field select:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.input-field input[type="text"]::placeholder {
    color: #a0aec0;
}

/* 日历类型按钮 */
.calendar-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.calendar-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.calendar-btn:hover {
    border-color: #4caf50;
    color: #4caf50;
    background: #e8f5e9;
}

.calendar-btn.active {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #ffffff;
    border-color: #4caf50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* 日期输入 */
.date-inputs {
    margin-top: 8px;
}

/* 时间输入 */
.time-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 8px;
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #4caf50;
}

.radio-text {
    color: #4a5568;
    font-weight: 400;
}

/* 提交按钮 */
.action-buttons {
    text-align: center;
    margin-top: 50px;
}

.primary-btn {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #ffffff;
    border: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(76, 175, 80, 0.4);
}

.primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.primary-btn i {
    font-size: 1.2rem;
}

/* 结果区域 */
.result-section {
    margin-top: 40px;
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-header h2 {
    font-size: 2rem;
    font-weight: 300;
    color: #2d3748;
    margin-bottom: 10px;
}

.result-content {
    color: #4a5568;
    line-height: 1.8;
}

/* 分析结果卡片 */
.mother-in-law-result {
    width: 100%;
}

.result-card {
    background: linear-gradient(135deg, #ffffff 0%, #f1f8e9 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.12), 0 2px 8px rgba(76, 175, 80, 0.08);
    border: 2px solid #c8e6c9;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #66bb6a, #81c784);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.18), 0 4px 12px rgba(76, 175, 80, 0.12);
}

.result-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 2px solid #ffe0e8;
    position: relative;
    display: flex;
    align-items: center;
}

.result-card h3 i {
    font-size: 1.4rem;
    margin-right: 10px;
}

.result-card h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4caf50, #66bb6a);
    border-radius: 2px;
}

/* 基本信息卡片 */
.basic-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.person-info-card {
    background: linear-gradient(135deg, #fff5f8 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 28px;
    border: 2px solid #ffe0e8;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.person-info-card::before {
    content: '💖';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2.5rem;
    opacity: 0.08;
    z-index: 0;
}

.person-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.15);
    border-color: #4caf50;
}

.person-info-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4caf50;
    margin-bottom: 22px;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 2px solid #ffe0e8;
    position: relative;
    z-index: 1;
}

.person-info-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #4caf50, #66bb6a);
    border-radius: 2px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.95rem;
    color: #718096;
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    color: #2d3748;
    font-weight: 600;
}

.bazi-value {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}

/* 分析内容 */
.analysis-section {
    margin-top: 25px;
}

.analysis-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.analysis-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #4caf50, #66bb6a);
}

.analysis-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a5568;
    text-align: justify;
}

.analysis-content p {
    margin-bottom: 15px;
}

.analysis-content p:last-child {
    margin-bottom: 0;
}

/* 五行分析 */
.wuxing-analysis {
    margin-top: 20px;
}

.wuxing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.wuxing-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.wuxing-label {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 12px;
    font-weight: 500;
}

.wuxing-value {
    font-size: 1.1rem;
    color: #2d3748;
    font-weight: 600;
    line-height: 1.6;
}

/* 十神分析 */
.shishen-analysis {
    margin-top: 20px;
}

.shishen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.shishen-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.shishen-label {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 12px;
    font-weight: 500;
}

.shishen-value {
    font-size: 1.1rem;
    color: #2d3748;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 1px;
}

/* 格式化文本 */
.format-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 1rem;
    line-height: 1.8;
    color: #4a5568;
}

/* 评分卡片特殊样式 */
.score-card {
   
    text-align: center;
    position: relative;
    overflow: hidden;
}

.score-card::before {
    background: linear-gradient(90deg, #4caf50, #66bb6a, #81c784);
}

.score-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin: 30px 0 25px;
    padding: 25px 0;
    position: relative;
}

.score-display::before {
    content: '★';
    position: absolute;
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    font-size: 2rem;
    opacity: 0.3;
}

.score-value {
    font-size: 4.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4caf50, #66bb6a, #81c784);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -2px;
    
}

.score-unit {
    font-size: 1.8rem;
    font-weight: 600;
    color: #4caf50;
    margin-left: 5px;
}

.score-comment {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.8;
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border-left: 4px solid #4caf50;
}

/* 分析文本样式 */
.analysis-text {
    font-size: 1.05rem;
    line-height: 2;
    color: #4a5568;
    text-align: justify;
    padding: 20px 0;
}

.analysis-text p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.analysis-text p:last-child {
    margin-bottom: 0;
}

/* 分析列表样式 */
.analysis-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analysis-list li {
    padding: 18px 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    background: #f8f9fa;
    border-left: 4px solid #e0e0e0;
    line-height: 1.8;
    transition: all 0.3s ease;
}

.analysis-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.analysis-list li strong {
    color: #2d3748;
    font-weight: 600;
    display: inline-block;
    margin-right: 8px;
}

.analysis-list.success li {
    background: linear-gradient(135deg, #fff5f8 0%, #ffe8f0 100%);
    border-left-color: #4caf50;
}

.analysis-list.success li strong {
    color: #4caf50;
}

.analysis-list.warning li {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-left-color: #66bb6a;
}

.analysis-list.warning li strong {
    color: #f57c00;
}

/* 五行网格样式优化 */
.wuxing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.wuxing-item {
    background: linear-gradient(135deg, #fff5f8 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 20px;
    border: 2px solid #ffe0e8;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wuxing-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4caf50, #66bb6a);
}

.wuxing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.15);
    border-color: #4caf50;
}

.wuxing-name {
    font-size: 1rem;
    font-weight: 600;
    color: #4caf50;
    display: block;
}

.wuxing-status {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    display: block;
}

/* 十神网格样式优化 */
.shishen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.shishen-item {
    background: linear-gradient(135deg, #f3e5f5 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 20px;
    border: 2px solid #e1bee7;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shishen-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4caf50, #66bb6a);
}

.shishen-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(171, 71, 188, 0.15);
    border-color: #4caf50;
}

.shishen-name {
    font-size: 1rem;
    font-weight: 600;
    color: #4caf50;
    display: block;
}

.shishen-relation {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    display: block;
}

/* 优势亮点卡片 */
.advantages-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
    border-color: #66bb6a;
}

.advantages-card::before {
    background: linear-gradient(90deg, #66bb6a, #81c784, #4caf50);
}

/* 注意要点卡片 */
.notes-card {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-color: #66bb6a;
}

.notes-card::before {
    background: linear-gradient(90deg, #66bb6a, #4caf50, #81c784);
}

/* 提升建议卡片 */
.suggestions-card {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #66bb6a;
}

.suggestions-card::before {
    background: linear-gradient(90deg, #66bb6a, #4caf50, #388e3c);
}

/* 基本信息卡片优化 */
.basic-info-card .person-info-card {
    background: linear-gradient(135deg, #fff5f8 0%, #ffffff 100%);
    border: 2px solid #ffe0e8;
    position: relative;
    overflow: hidden;
}

.basic-info-card .person-info-card::before {
    content: '★';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    opacity: 0.1;
}

.basic-info-card .person-info-card:hover {
    border-color: #4caf50;
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.12);
}

.basic-info-card .person-info-title {
    color: #4caf50;
    border-bottom-color: #ffe0e8;
    position: relative;
}

.basic-info-card .person-info-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #4caf50, #66bb6a);
}

.basic-info-card .bazi-value {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 底部介绍区域 */
.intro-section {
    background: #ffffff;
    padding: 80px 0;
    margin-top: 60px;
}

.intro-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* AI智能合婚系统介绍 */
.intro-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 60px 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    margin-bottom: 60px;
}

.intro-header {
    text-align: center;
    margin-bottom: 60px;
}

.intro-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #1a202c;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.intro-subtitle {
    font-size: 1.15rem;
    color: #718096;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    background: #f8f9fa;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: #4caf50;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
}

.feature-icon i {
    font-size: 32px;
    color: #ffffff;
}

.feature-item-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 15px;
}

.feature-item-desc {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.8;
    margin: 0;
}

/* 分析维度 */
.analysis-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 60px 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    margin-bottom: 60px;
}

.analysis-header {
    text-align: center;
    margin-bottom: 50px;
}

.analysis-title {
    font-size: 2.2rem;
    font-weight: 300;
    color: #1a202c;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.analysis-subtitle {
    font-size: 1.1rem;
    color: #718096;
    line-height: 1.8;
    font-weight: 300;
}

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.dimension-item {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.dimension-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #4caf50;
}

.dimension-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 12px;
}

.dimension-desc {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.8;
    margin: 0;
}

/* 分析流程 */
.process-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 60px 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.process-header {
    text-align: center;
    margin-bottom: 60px;
}

.process-title {
    font-size: 2.2rem;
    font-weight: 300;
    color: #1a202c;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.process-subtitle {
    font-size: 1.1rem;
    color: #718096;
    line-height: 1.8;
    font-weight: 300;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #ffffff;
    font-size: 28px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.step-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
    margin: 0;
}

.process-disclaimer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}

.process-disclaimer p {
    font-size: 0.9rem;
    color: #a0aec0;
    line-height: 1.8;
    margin: 0;
    font-weight: 300;
}

/* 移动端响应式 */
@media screen and (max-width: 768px) {
    .mother-in-law-section {
        padding: 20px 0;
        background: #f5f7fa;
    }

    .mother-in-law-container {
        padding: 0 15px;
        max-width: 100%;
    }

    .mother-in-law-header {
        margin-bottom: 40px;
    }

    .mother-in-law-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .mother-in-law-subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .mother-in-law-card {
        padding: 25px 20px;
        border-radius: 16px;
        margin-bottom: 25px;
    }

    .person-container {
        flex-direction: column;
        gap: 20px;
    }

    .person-section {
        width: 100%;
        padding: 25px 20px;
        border-radius: 12px;
        background: #ffffff;
    }

    .person-title {
        font-size: 1.3rem;
        margin-bottom: 25px;
        padding-bottom: 12px;
    }

    .input-section {
        margin-bottom: 20px;
    }

    .section-label {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .input-field {
        width: 100%;
    }

    .input-field label {
        font-size: 0.85rem;
        margin-bottom: 6px;
        display: block;
        color: #718096;
    }

    .input-field input[type="text"],
    .input-field input[type="time"],
    .input-field select {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .calendar-buttons {
        gap: 10px;
        display: flex;
    }

    .calendar-btn {
        flex: 1;
        padding: 10px 16px;
        font-size: 0.9rem;
        text-align: center;
    }

    .time-inputs {
        grid-template-columns: 1fr;
        gap: 15px;
        display: grid;
    }

    .date-inputs {
        display: block;
    }

    .radio-group {
        gap: 20px;
        display: flex;
        flex-wrap: wrap;
    }

    .primary-btn {
        width: 100%;
        padding: 16px 30px;
        font-size: 1rem;
        border-radius: 50px;
    }

    .action-buttons {
        margin-top: 30px;
    }

    .result-header {
        margin-bottom: 30px;
    }

    .result-header h2 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .result-card {
        padding: 25px 20px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .result-card h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .basic-info-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        display: grid;
    }

    .person-info-card {
        padding: 20px 18px;
        border-radius: 10px;
    }

    .person-info-title {
        font-size: 1.1rem;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .info-item {
        padding: 10px 0;
        flex-wrap: wrap;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .info-label {
        font-size: 0.9rem;
        min-width: 70px;
    }

    .info-value {
        font-size: 0.95rem;
        text-align: right;
    }

    .bazi-value {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .analysis-section {
        margin-top: 20px;
    }

    .analysis-section-title {
        font-size: 1.2rem;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .analysis-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .analysis-content p {
        margin-bottom: 12px;
    }

    .wuxing-grid,
    .shishen-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        display: grid;
    }

    .wuxing-item,
    .shishen-item {
        padding: 16px;
        border-radius: 10px;
    }

    .wuxing-label,
    .shishen-label {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .wuxing-value,
    .shishen-value {
        font-size: 1rem;
        line-height: 1.6;
    }

    .format-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .intro-section {
        padding: 50px 0;
        margin-top: 40px;
    }

    .intro-container {
        padding: 0 15px;
    }

    .intro-card,
    .analysis-card,
    .process-card {
        padding: 40px 25px;
        border-radius: 16px;
        margin-bottom: 40px;
    }

    .intro-header,
    .analysis-header,
    .process-header {
        margin-bottom: 40px;
    }

    .intro-title,
    .analysis-title,
    .process-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .intro-subtitle,
    .analysis-subtitle,
    .process-subtitle {
        font-size: 0.95rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .feature-item {
        padding: 30px 25px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .feature-icon i {
        font-size: 28px;
    }

    .feature-item-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .feature-item-desc {
        font-size: 0.9rem;
    }

    .dimensions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dimension-item {
        padding: 25px 20px;
    }

    .dimension-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .dimension-desc {
        font-size: 0.9rem;
    }

    .process-steps {
        flex-direction: column;
        gap: 35px;
        margin-bottom: 40px;
    }

    .process-step {
        min-width: 100%;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 20px;
    }

    .step-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .step-desc {
        font-size: 0.9rem;
    }

    .process-disclaimer {
        padding-top: 30px;
    }

    .process-disclaimer p {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .mother-in-law-section {
        padding: 15px 0;
        background: #f5f7fa;
        width: 100% !important;
    }

    .mother-in-law-container {
        padding: 0 12px;
        max-width: 100%;
    }

    .mother-in-law-header {
        margin-bottom: 30px;
        padding: 0 5px;
    }

    .mother-in-law-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
        letter-spacing: 1px;
    }

    .mother-in-law-subtitle {
        font-size: 0.9rem;
        padding: 0 5px;
        line-height: 1.6;
    }

    .mother-in-law-card {
        padding: 20px 16px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .person-container {
        gap: 18px;
    }

    .person-section {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .person-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .input-section {
        margin-bottom: 18px;
    }

    .section-label {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .input-field label {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .input-field input[type="text"],
    .input-field input[type="time"],
    .input-field select {
        padding: 11px 14px;
        font-size: 16px;
        border-radius: 8px;
    }

    .calendar-buttons {
        gap: 8px;
    }

    .calendar-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .time-inputs {
        gap: 12px;
    }

    .radio-group {
        gap: 18px;
    }

    .primary-btn {
        padding: 14px 25px;
        font-size: 0.95rem;
        width: 100%;
    }

    .action-buttons {
        margin-top: 25px;
    }

    .result-header h2 {
        font-size: 1.4rem;
    }

    .result-card {
        padding: 18px 14px;
        border-radius: 12px;
    }

    .result-card h3 {
        font-size: 1.2rem;
        margin-bottom: 18px;
        padding-bottom: 10px;
    }

    .basic-info-grid {
        gap: 16px;
    }

    .person-info-card {
        padding: 16px 14px;
    }

    .person-info-title {
        font-size: 1rem;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .info-item {
        padding: 9px 0;
    }

    .info-label {
        font-size: 0.85rem;
        min-width: 65px;
    }

    .info-value {
        font-size: 0.9rem;
    }

    .bazi-value {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .analysis-section-title {
        font-size: 1.1rem;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }

    .analysis-content {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .wuxing-item,
    .shishen-item {
        padding: 14px 12px;
    }

    .wuxing-label,
    .shishen-label {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .wuxing-value,
    .shishen-value {
        font-size: 0.95rem;
    }

    .format-text {
        font-size: 0.9rem;
    }

    .intro-section {
        padding: 40px 0;
        margin-top: 30px;
    }

    .intro-container {
        padding: 0 12px;
    }

    .intro-card,
    .analysis-card,
    .process-card {
        padding: 30px 20px;
        border-radius: 12px;
        margin-bottom: 30px;
    }

    .intro-title,
    .analysis-title,
    .process-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .intro-subtitle,
    .analysis-subtitle,
    .process-subtitle {
        font-size: 0.9rem;
    }

    .features-grid {
        gap: 20px;
    }

    .feature-item {
        padding: 25px 20px;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 18px;
    }

    .feature-icon i {
        font-size: 26px;
    }

    .feature-item-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .feature-item-desc {
        font-size: 0.85rem;
    }

    .dimensions-grid {
        gap: 18px;
    }

    .dimension-item {
        padding: 22px 18px;
    }

    .dimension-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .dimension-desc {
        font-size: 0.85rem;
    }

    .process-steps {
        gap: 30px;
        margin-bottom: 35px;
    }

    .step-number {
        width: 55px;
        height: 55px;
        font-size: 22px;
        margin-bottom: 18px;
    }

    .step-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .step-desc {
        font-size: 0.85rem;
    }

    .process-disclaimer {
        padding-top: 25px;
    }

    .process-disclaimer p {
        font-size: 0.8rem;
    }
}

/* 心连心动画样式 */
@keyframes heartBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

.heart-animation-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-icon {
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 157, 0.3));
}

.heart-left {
    animation: heartBlink 1.2s ease-in-out infinite;
    animation-delay: 0s;
}

.heart-right {
    animation: heartBlink 1.2s ease-in-out infinite;
    animation-delay: 0.6s;
}

/* AI问答部分样式 */
.ai-qa-section {
    margin-top: 30px;
}

.ai-qa-wrapper {
    margin-top: 20px;
}

/* 常见问题 */
.ai-qa-common-questions {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 10px;
}

.common-questions-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.common-questions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.common-question-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.common-question-btn:hover {
    background: #4caf50;
    color: #fff;
    border-color: #4caf50;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

.ai-qa-input-section {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 20px;
}

.ai-qa-input-wrapper {
    margin-bottom: 15px;
}

.ai-qa-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.2s ease;
    outline: none;
}

.ai-qa-input:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ai-qa-input::placeholder {
    color: #8b949e;
}

.ai-qa-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.ai-qa-reset-btn,
.ai-qa-submit-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: #333;
}

.ai-qa-reset-btn:hover {
    border-color: #8b949e;
    background: #f8f9fa;
}

.ai-qa-submit-btn {
    background: #4caf50;
    color: #fff;
    border-color: #4caf50;
}

.ai-qa-submit-btn:hover:not(:disabled) {
    background: #5568d3;
    border-color: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ai-qa-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ai-qa-result-section {
    margin-top: 20px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 20px;
}

.ai-qa-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.ai-qa-result-label {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.ai-qa-copy-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-qa-copy-btn:hover {
    border-color: #4caf50;
    color: #4caf50;
    background: #f8f9ff;
}

.ai-qa-result-content {
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}
