/* =========================================
   Age Calculator - Specific Styles
   所有通用样式已移至 style.css
   ========================================= */

/* --- Age 特有表单布局 --- */
.age-form-inner { 
    width: 100%;
    max-width: 100%; 
    margin: 0; 
}

/* --- 日期选择器布局 --- */
.date-inputs { 
    display: flex; 
    gap: 10px;
    width: 100%;
}

.date-select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
    min-width: 0; /* 防止溢出 */
}

.date-select:focus {
    border-color: #005a4e;
    box-shadow: 0 0 0 2px rgba(0, 90, 78, 0.1);
}

.date-select:hover {
    border-color: #999;
}

/* --- 年龄分解展示网格 --- */
.age-breakdown {
    padding: 15px 20px;
    background: #fff;
}

.breakdown-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 0;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    text-align: left;
    transition: all 0.2s;
}
.breakdown-item:hover {
    background: #eef2f1;
    transform: none;
    box-shadow: none;
}

.breakdown-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    font-weight: 500;
}

.breakdown-value {
    font-size: 16px;
    font-weight: bold;
    color: #00796b;
    line-height: 1;
}

/* --- 额外信息卡片 --- */
.age-extra-info {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    border-radius: 8px;
    border: 1px solid #b2dfdb;
}

.info-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 20px;
    font-weight: bold;
    color: #004d40;
    margin-bottom: 2px;
}

.info-sub {
    font-size: 13px;
    color: #555;
}

/* --- 年龄说明文字 --- */
.age-note { 
    margin-top: 25px; 
    font-size: 13px; 
    color: #666; 
    line-height: 1.5; 
    padding: 15px; 
    background: #f9f9f9; 
    border-radius: 4px; 
    border: 1px solid #eee; 
}

/* --- 响应式优化 --- */
@media screen and (max-width: 992px) {
    .breakdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .breakdown-value {
        font-size: 20px;
    }

    .info-card {
        padding: 12px;
    }

    .info-icon {
        font-size: 30px;
    }

    .info-value {
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    .date-inputs {
        flex-direction: column;
        gap: 10px;
    }

    .date-select {
        width: 100%;
    }

    .breakdown-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .breakdown-item {
        padding: 12px;
    }

    .breakdown-value {
        font-size: 22px;
    }
}

@media screen and (max-width: 480px) {
    .info-card {
        flex-direction: column;
        text-align: center;
    }

    .info-icon {
        font-size: 40px;
    }
}

/* --- 打印样式 --- */
@media print {
    .age-breakdown,
    .age-extra-info{
        display: block !important;
    }
    .age-note {
        display: none !important;
    }


    .breakdown-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .info-card {
        page-break-inside: avoid;
    }
}
