* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #ffffff;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 700px;
    padding: 40px 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
    padding-bottom: 60px;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 内容容器 */
.content-section {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.8s ease 0.3s, max-height 0.8s ease 0.3s;
}

.content-section.show {
    opacity: 1;
    max-height: 2000px;
    animation: fadeInDown 0.8s ease 0.3s both;
}

/* 返回链接 */
.back-link {
    margin-bottom: 30px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    color: #666;
    text-decoration: none;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: #2c3e50;
    border-color: #2c3e50;
    transform: translateX(-3px);
}

/* 里程碑区域 */
.milestones-section {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.page-title {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    font-weight: 300;
}

/* 里程碑卡片 */
.milestones-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
    position: relative;
}

/* 卡片工具栏 */
.card-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    position: static;
    z-index: 1;
}

.rules-btn {
    padding: 8px 14px;
    font-size: 13px;
    background: linear-gradient(135deg, #ffffff 0%, #f6f8fb 100%);
    color: #5f6b7a;
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.06);
}

.rules-btn:hover {
    background: linear-gradient(135deg, #ffffff 0%, #eef3ff 100%);
    color: #2c3e50;
    border-color: #cfd8e3;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
    transform: translateY(-1px);
}

/* 出生日期部分 */
.birthdate-section {
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
    transition: transform 0.6s ease;
}

.birthdate-section.selected {
    transform: translateY(-10px);
}

.label-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 12px;
}

.birthdate-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.birthdate-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-select {
    flex: 1;
    min-width: 0;
    padding: 12px 10px;
    font-size: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #2c3e50;
    font-weight: 500;
    appearance: none;
    background-image: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%), linear-gradient(45deg, transparent 50%, #8a93a0 50%), linear-gradient(135deg, #8a93a0 50%, transparent 50%);
    background-position: 0 0, calc(100% - 16px) calc(50% - 3px), calc(100% - 11px) calc(50% - 3px);
    background-size: 100% 100%, 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.date-select:hover {
    border-color: #d0d4d8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.date-select:focus {
    outline: none;
    border-color: #4a6fa5;
    box-shadow: 0 0 0 4px rgba(74, 111, 165, 0.15), 0 4px 12px rgba(74, 111, 165, 0.2);
    background: linear-gradient(135deg, #f5f8fb 0%, #eff4fa 100%);
}

.date-select option[value=""] {
    color: #999;
}

.reset-btn {
    padding: 12px 24px;
    font-size: 14px;
    background: #f0f2f5;
    color: #666;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.reset-btn:hover {
    background: #e9ecef;
    color: #2c3e50;
    border-color: #d0d4d8;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.reset-btn:active {
    transform: translateY(0);
}

.current-age {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 500;
}

.warm-message {
    display: none;
    margin-top: 10px;
    padding: 9px 12px;
    font-size: 13px;
    color: #6f5230;
    background: linear-gradient(135deg, rgba(248, 236, 211, 0.65) 0%, rgba(255, 244, 221, 0.7) 100%);
    border: 1px solid rgba(201, 160, 99, 0.35);
    border-radius: 8px;
}

body.age-70-plus .life-progress-section {
    display: none;
}

body.age-70-plus .life-counter-remaining {
    display: none !important;
}

body.age-70-plus .warm-message {
    display: block;
}

.life-stage-section {
    margin-top: 14px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.04) 0%, rgba(100, 130, 160, 0.03) 100%);
    border: 1px solid rgba(74, 111, 165, 0.12);
    border-radius: 12px;
}

.life-stage-overview {
    padding: 14px 14px 16px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(74, 111, 165, 0.08);
    border-radius: 10px;
}

.life-stage-overview-label {
    font-size: 12px;
    color: #7a8594;
    margin-bottom: 6px;
    letter-spacing: 0.4px;
}

.life-stage-overview-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
}

.life-stage-overview-desc {
    font-size: 13px;
    color: #66707f;
    line-height: 1.7;
}

.life-stage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.life-stage-tile {
    padding: 12px 12px 13px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.05);
    transition: all 0.25s ease;
    min-height: 118px;
}

.life-stage-tile-range {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    margin-bottom: 8px;
    font-size: 11px;
    color: #66707f;
    background: #f3f6fb;
    border-radius: 999px;
}

.life-stage-tile-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    line-height: 1.35;
}

.life-stage-tile-desc {
    font-size: 12px;
    color: #7a8594;
    line-height: 1.6;
}

.life-stage-tile-progress {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(74, 111, 165, 0.15);
    display: flex;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #4a6fa5;
    gap: 2px;
}

.life-stage-tile-progress .passed,
.life-stage-tile-progress .remaining {
    flex: 1;
    text-align: center;
}

.life-stage-tile.is-active {
    border-color: rgba(74, 111, 165, 0.55);
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.11) 0%, rgba(100, 130, 160, 0.08) 100%);
    box-shadow: 0 10px 22px rgba(74, 111, 165, 0.16);
    transform: translateY(-2px);
}

.life-stage-tile.is-active .life-stage-tile-range {
    background: linear-gradient(90deg, #4a6fa5 0%, #5a7fa6 100%);
    color: white;
}

.life-stage-tile.is-active .life-stage-tile-name {
    color: #2c3e50;
}

.life-stage-tile.is-active .life-stage-tile-desc {
    color: #5f6b7a;
}

/* 小标签 */
.section-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
    text-align: left;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* 生命计数器 */
.life-counter-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.life-counter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.life-counter-item {
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.life-counter-icon {
    font-size: 20px;
    color: #c35f52;
    line-height: 1;
    transform-origin: center;
}

.life-counter-item:nth-child(1) .life-counter-icon {
    animation: heartbeatPulse 1.2s ease-in-out infinite;
}

.life-counter-item:nth-child(2) .life-counter-icon {
    color: #4a6fa5;
    animation: breathWave 2.8s ease-in-out infinite;
}

@keyframes heartbeatPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
    20% {
        transform: scale(1.22);
        opacity: 1;
    }
    40% {
        transform: scale(0.96);
        opacity: 0.92;
    }
    60% {
        transform: scale(1.12);
        opacity: 1;
    }
}

@keyframes breathWave {
    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-2px) scale(1.14);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .life-counter-item .life-counter-icon {
        animation: none;
    }
}

.life-counter-value {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.life-counter-label {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.life-counter-remaining {
    display: none;
    margin-top: 2px;
    font-size: 12px;
    color: #8a4f47;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(195, 95, 82, 0.1);
    border: 1px solid rgba(195, 95, 82, 0.22);
}

body.stress-mode-on .life-counter-remaining {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 人生进度部分 */
.life-progress-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.life-progress-bar-wrapper {
    margin-bottom: 0;
}

.life-progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
}

.life-progress {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #9b59b6 0%, #e74c3c 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.life-progress-text {
    font-size: 11px;
    color: white;
    font-weight: 500;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    transition: left 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.life-progress-text.outside {
    left: 100%;
    transform: translateX(6px);
    color: #3a3a3a;
    text-shadow: none;
}

/* 时间进度统计 */
.time-stats-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.time-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.time-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-label {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.mini-progress-bar {
    width: 100%;
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.mini-progress {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #2c3e50 0%, #4a5f7f 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.stat-value {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

/* 里程碑列表 */
.milestones-list-section {
    margin-bottom: 0;
    margin-top: 14px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.04) 0%, rgba(100, 130, 160, 0.03) 100%);
    border: 1px solid rgba(74, 111, 165, 0.12);
    border-radius: 12px;
}

.milestones-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.milestone-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.05);
    transition: all 0.3s ease;
}

.milestone-item:hover {
    box-shadow: 0 10px 22px rgba(74, 111, 165, 0.12);
    border-color: rgba(74, 111, 165, 0.26);
    transform: translateY(-2px);
}

.milestone-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a6fa5 0%, #5a7fa6 100%);
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(74, 111, 165, 0.22);
}

.milestone-item.past .milestone-marker {
    background: linear-gradient(135deg, #a8a8a8 0%, #7a7a7a 100%);
}

.milestone-item.today .milestone-marker {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 0 20px rgba(245, 87, 108, 0.4);
}

.milestone-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.milestone-label {
    font-size: 14px;
    color: #999;
    margin-bottom: 4px;
    font-weight: 400;
}

.milestone-date {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 500;
    margin-bottom: 4px;
}

.milestone-days {
    font-size: 14px;
    color: #4a6fa5;
    font-weight: 500;
}

.milestone-item .milestone-content {
    padding-top: 2px;
}

.milestone-item.past .milestone-days {
    color: #999;
}

.milestone-item.today .milestone-days {
    color: #f5576c;
    font-weight: 600;
}

.milestone-item-tooltip {
    position: relative;
    z-index: 1;
}

.milestone-item-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);
    transform: translateX(-50%) translateY(6px);
    width: min(420px, calc(100vw - 48px));
    padding: 16px 18px 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    color: #2c3e50;
    font-size: 13px;
    line-height: 1.75;
    border-radius: 14px;
    border: 1px solid rgba(102, 126, 234, 0.14);
    box-shadow: 0 16px 36px rgba(44, 62, 80, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: normal;
    text-align: left;
    backdrop-filter: blur(8px);
    z-index: 20;
}

.milestone-item-tooltip::after {
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%), linear-gradient(90deg, #4a6fa5 0%, #5a7fa6 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%, 100% 4px;
    background-position: 0 0, 0 0;
}

.milestone-item-tooltip::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%) translateY(6px);
    border: 8px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 21;
}

.milestone-item-tooltip:hover::after,
.milestone-item-tooltip:focus::after,
.milestone-item-tooltip:hover::before,
.milestone-item-tooltip:focus::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.milestone-item-tooltip:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.12);
}

.milestone-item-tooltip:hover .milestone-content,
.milestone-item-tooltip:focus .milestone-content {
    transform: translateY(-1px);
}

/* 页脚 */
.footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
    color: #999;
    font-size: 13px;
}

.footer p {
    margin: 5px 0;
}

.footer a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* 规则弹窗 */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 680px;
    transform: translateY(12px) scale(0.96);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    color: #2c3e50;
    background: #f8f9fa;
    border-radius: 4px;
}

/* 设置弹窗行 */
.settings-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
}

.settings-label {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 400;
}

/* 滑块开关 */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d0d4d8;
    border-radius: 24px;
    transition: background 0.25s ease;
}

.slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(44, 62, 80, 0.18);
    transition: transform 0.25s ease;
}

.switch input:checked + .slider {
    background: #4a6fa5;
}

.switch input:checked + .slider::before {
    transform: translateX(20px);
}

.rule-section {
    margin-bottom: 20px;
}

.rule-section:last-of-type {
    margin-bottom: 0;
}

.rule-title {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.rule-text {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 6px 0;
}

.rule-section strong {
    color: #2c3e50;
    font-weight: 500;
}

/* 数据来源说明 */
.data-source {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-size: 11px;
    color: #999;
    text-align: left;
    line-height: 1.6;
}

.data-source p {
    margin: 5px 0;
}

.data-source strong {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .page-title {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .milestones-card {
        padding: 20px;
    }

    .card-toolbar {
        top: 12px;
        right: 12px;
    }

    .rules-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .birthdate-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .reset-btn {
        width: 100%;
    }

    .quick-select-dropdown {
        min-width: 160px;
    }

    .time-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .milestone-item {
        gap: 12px;
        padding: 12px;
    }

    .milestone-marker {
        width: 50px;
        height: 50px;
        font-size: 14px;
    }

    .milestone-date {
        font-size: 14px;
    }

    .milestone-days {
        font-size: 12px;
    }

    .modal {
        padding: 10px;
    }

    .modal-header {
        padding: 20px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .rule-title {
        font-size: 14px;
    }

    .rule-text {
        font-size: 13px;
    }
}

/* 器官衰老区块整体卡片风格 */
.organs-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 28px 20px 18px 20px;
    margin-top: 32px;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.05);
    position: relative;
    transition: box-shadow 0.25s;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.organs-section .section-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
    text-align: left;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.organs-section .organs-grid {
    margin-top: 12px;
}

.mortality-risk-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 22px 20px 18px 20px;
    margin-top: 18px;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.05);
    position: relative;
    transition: box-shadow 0.25s;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.mortality-risk-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.mortality-risk-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.mortality-risk-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.05);
}

.risk-rank {
    min-width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4a6fa5 0%, #5a7fa6 100%);
    box-shadow: 0 4px 10px rgba(74, 111, 165, 0.18);
    flex-shrink: 0;
}

.risk-name {
    flex: 1;
    font-size: 12px;
    color: #2c3e50;
    line-height: 1.45;
}

.risk-prob {
    flex-shrink: 0;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    color: #4a6fa5;
    background: rgba(74, 111, 165, 0.12);
    border-radius: 999px;
    border: 1px solid rgba(74, 111, 165, 0.22);
}

.mortality-risk-item.other {
    border-color: rgba(122, 133, 148, 0.28);
    background: rgba(248, 249, 250, 0.94);
}

.mortality-risk-item.other .risk-rank {
    min-width: 38px;
    padding: 0 6px;
    background: linear-gradient(135deg, #8a93a0 0%, #7a8594 100%);
    box-shadow: 0 4px 10px rgba(122, 133, 148, 0.18);
}

.mortality-risk-item.other .risk-prob {
    color: #6f7682;
    background: rgba(122, 133, 148, 0.14);
    border-color: rgba(122, 133, 148, 0.25);
}

.mortality-risk-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(74, 111, 165, 0.2);
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.08) 0%, rgba(122, 133, 148, 0.08) 100%);
    font-size: 12px;
    line-height: 1.6;
    color: #4b5d75;
}

.mortality-risk-note-label {
    font-weight: 700;
    margin-right: 4px;
}

@media (max-width: 600px) {
    .organs-section {
        padding: 16px 6px 10px 6px;
        margin-top: 18px;
    }

    .mortality-risk-card {
        padding: 16px 10px 12px 10px;
        margin-top: 12px;
    }

    .mortality-risk-list {
        grid-template-columns: 1fr;
    }

    .mortality-risk-note {
        font-size: 11px;
    }
}

/* 器官衰老网格 */
.organs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.organ-tile {
    padding: 14px 12px 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 118px;
    position: relative;
    overflow: hidden;
}

.organ-tile::before {
    content: '';
    position: absolute;
    left: 0; top: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, #4a6fa5 0%, #7fa1d2 100%);
    opacity: 0.13;
}

.organ-tile .organ-age {
    font-size: 15px;
    font-weight: 700;
    color: #4a6fa5;
    margin-bottom: 7px;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.organ-tile .organ-name {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    margin-top: 2px;
}

.organ-tile .organ-desc {
    font-size: 12px;
    color: #7a8594;
    line-height: 1.6;
    margin-top: 6px;
    min-height: 32px;
}

.organ-tile .organ-divider {
    margin: 8px 0 0 0;
    border: none;
    border-top: 1px solid rgba(74, 111, 165, 0.13);
}

.organ-tile.active {
    border-color: rgba(74, 111, 165, 0.55);
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.11) 0%, rgba(100, 130, 160, 0.08) 100%);
    box-shadow: 0 10px 22px rgba(74, 111, 165, 0.16);
    transform: translateY(-2px);
}

/* 已到达衰老年龄的器官卡片 */
.organ-tile.is-reached {
    border-color: rgba(195, 95, 82, 0.35);
    background: linear-gradient(135deg, rgba(195, 95, 82, 0.07) 0%, rgba(210, 120, 100, 0.04) 100%);
}

.organ-tile.is-reached .organ-age {
    color: #c35f52;
}

.organ-tile.is-reached::before {
    background: linear-gradient(90deg, #c35f52 0%, #e08070 100%);
    opacity: 0.18;
}

.organ-reached-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: #c35f52;
    border-radius: 99px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

.organ-tile:hover {
    border-color: rgba(74, 111, 165, 0.26);
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.12);
    transform: translateY(-1px);
}

.organ-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.organ-age {
    font-size: 18px;
    font-weight: 700;
    color: #4a6fa5;
    margin-bottom: 6px;
}

.organ-desc {
    font-size: 11px;
    color: #7a8594;
    line-height: 1.4;
}
