/* 全局样式 */
body {
    background: 
        linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%),
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.02) 50%, transparent 51%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100px 100px;
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    padding: 20px 0;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 98%, rgba(255, 255, 255, 0.1) 100%),
        linear-gradient(0deg, transparent 98%, rgba(255, 255, 255, 0.1) 100%);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(120, 119, 198, 0.2) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 30%);
    pointer-events: none;
    z-index: -1;
}

/* 背景装饰元素 */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-decoration::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(120, 119, 198, 0.1), rgba(255, 255, 255, 0.2));
    border-radius: 50%;
    filter: blur(40px);
    animation: float1 20s ease-in-out infinite;
}

.bg-decoration::after {
    content: '';
    position: absolute;
    top: 70%;
    right: 15%;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, rgba(195, 207, 226, 0.15), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    filter: blur(30px);
    animation: float2 25s ease-in-out infinite reverse;
}

/* 浮动动画 */
@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(90deg); }
    50% { transform: translate(0, -40px) rotate(180deg); }
    75% { transform: translate(-30px, -20px) rotate(270deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-25px, 15px) rotate(-90deg); }
    50% { transform: translate(0, 30px) rotate(-180deg); }
    75% { transform: translate(25px, 15px) rotate(-270deg); }
}

/* 响应式背景调整 */
@media (max-width: 768px) {
    .bg-decoration::before {
        width: 120px;
        height: 120px;
        filter: blur(25px);
    }
    
    .bg-decoration::after {
        width: 80px;
        height: 80px;
        filter: blur(20px);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 标题区域样式 */
.section-title-area {
    text-align: center;
    margin-bottom: 30px;
}

.main-section-title {
    color: #333;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    color: #666;
    font-size: 16px;
    margin: 0;
    text-align: center;
}

/* 卡片基础样式 */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(120, 119, 198, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(120, 119, 198, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0 !important;
    padding: 15px 20px;
    border: none;
}

.card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
}

.card-body {
    padding: 25px;
}

/* 输入卡片样式 */
.input-card {
    height: 100%;
}

.input-card .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.input-card .form-control,
.input-card .form-select {
    border: 2px solid rgba(233, 236, 239, 0.8);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.15s ease-in-out;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.input-card .form-control:focus,
.input-card .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.input-card .input-group-text {
    background: rgba(248, 249, 250, 0.9);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(233, 236, 239, 0.8);
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.input-card .form-text {
    color: #6c757d;
    font-size: 12px;
    margin-top: 5px;
}

/* 结果卡片样式 */
.result-card {
    height: 100%;
}

.result-card .text-muted {
    font-size: 14px;
    margin: 0;
}

/* 阶段卡片样式 */
.stage-card {
    height: 100%;
}

.stage-card .text-muted {
    font-size: 14px;
    margin: 0;
}

/* 阶段详情样式 */
.stage-details {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stage-section {
    margin-bottom: 20px;
}

.stage-section:last-child {
    margin-bottom: 0;
}

.stage-title {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.stage-title i {
    color: #667eea;
    margin-right: 8px;
    font-size: 16px;
}

.stage-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.stage-list li {
    color: #333;
    font-size: 13px;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.stage-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    background-color: #333;
    border-radius: 50%;
}

.stage-list li:last-child {
    margin-bottom: 0;
}

/* 关键信息卡片样式 */
.info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 3px 10px rgba(120, 119, 198, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 25px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 20px 20px 0 0;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.12),
        0 5px 15px rgba(120, 119, 198, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.info-card-header {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    z-index: 1;
}

.info-card-header i {
    color: #667eea;
    margin-right: 10px;
    font-size: 18px;
}

.info-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.info-value {
    font-size: 48px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 5px;
    text-align: center;
    line-height: 1;
}

.info-unit {
    font-size: 16px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

/* 陪伴时间卡片特殊样式 - 绿色渐变背景 */
.companion-card .info-card-content {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    border-radius: 15px;
    margin: -10px;
    padding: 20px;
    color: white;
}

.companion-card .info-value,
.companion-card .info-unit {
    color: white;
}

/* 距离下次生日卡片特殊样式 - 绿色渐变背景 */
.birthday-card .info-card-content {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    border-radius: 15px;
    margin: -10px;
    padding: 20px;
    color: white;
}

.birthday-card .info-value,
.birthday-card .info-unit {
    color: white;
}

/* 进度条容器 */
.progress-container {
    width: 100%;
    position: relative;
    margin-bottom: 10px;
}

.progress {
    height: 12px;
    background-color: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 6px;
    transition: width 0.8s ease;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.progress-text {
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
    text-align: center;
    margin-bottom: 5px;
}

.progress-note {
    font-size: 12px;
    color: #999;
    text-align: center;
    font-style: italic;
}

/* 按钮样式 - 橙红色渐变 */
.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #e55a2b 0%, #e0851a 100%);
}

/* 分隔线样式 */
.section-divider {
    text-align: center;
    margin: 30px 0 20px 0;
    position: relative;
}

.section-divider hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    margin: 0;
}

.section-title {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin: 15px 0 0 0;
    text-align: center;
}

/* 健康建议区域样式 */
.health-advice-section {
    margin-top: 20px;
}

.health-advice-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(120, 119, 198, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.health-advice-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.health-advice-list li {
    color: #333;
    font-size: 14px;
    margin-bottom: 0;
    padding: 15px 20px 15px 35px;
    position: relative;
    line-height: 1.6;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.health-advice-list li:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.health-advice-list li:before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #667eea;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.health-advice-list li:last-child {
    margin-bottom: 0;
}

.health-advice-title {
    color: #667eea;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.health-advice-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 15px;
    }
    
    .info-card {
        height: 180px;
        padding: 20px;
    }
    
    .info-value {
        font-size: 40px;
    }
    
    .info-card-header {
        font-size: 14px;
    }
    
    .stage-list li {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .health-advice-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .health-advice-list li {
        font-size: 13px;
        padding: 12px 15px 12px 30px;
        min-height: 75px;
    }
    
    .health-advice-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .main-section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .info-card {
        height: 160px;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .info-value {
        font-size: 36px;
    }
    
    .info-card-header {
        font-size: 13px;
    }
    
    .progress-text {
        font-size: 18px;
    }
    
    .stage-list li {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .health-advice-card {
        padding: 20px;
    }
    
    .health-advice-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .health-advice-list li {
        font-size: 12px;
        padding: 10px 12px 10px 25px;
        line-height: 1.5;
        min-height: 65px;
    }
    
    .health-advice-title {
        font-size: 15px;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .main-section-title {
        font-size: 20px;
    }
    
    .section-subtitle {
        font-size: 13px;
    }
    
    .info-card {
        height: 140px;
        padding: 12px;
    }
    
    .info-value {
        font-size: 32px;
    }
    
    .info-card-header {
        font-size: 12px;
    }
    
    .progress-text {
        font-size: 16px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .stage-list li {
        font-size: 10px;
        margin-bottom: 5px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .health-advice-card {
        padding: 15px;
    }
    
    .health-advice-list li {
        font-size: 11px;
        padding: 8px 10px 8px 20px;
        line-height: 1.4;
        min-height: 55px;
    }
    
    .health-advice-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
}
