/* 猫年龄计算器样式 */

/* 计算区域 */
.calculator-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.calculator-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.input-group label {
    font-weight: bold;
    min-width: 80px;
}

.age-input-container {
    display: flex;
    flex: 1;
    min-width: 200px;
}

.input-control {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.select-control {
    width: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    background-color: #f0f0f0;
}

.calculate-btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.calculate-btn:hover {
    background-color: #45a049;
}

.calculation-mode {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

/* 结果展示区域 */
.result-section {
    margin-bottom: 30px;
}

.result-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cat-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border-radius: 50%;
    overflow: hidden;
}

.cat-icon img {
    max-width: 100%;
    max-height: 100%;
}

.age-info {
    flex: 1;
}

.age-info h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.age-comparison {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cat-age, .human-age {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#cat-age-value, #human-age-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.age-label {
    font-size: 14px;
    color: #666;
}

.age-equals {
    font-size: 24px;
    color: #999;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.development-stage, .stage-description {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
}

.development-stage h5, .stage-description h5 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.development-stage p, .stage-description p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.care-tips {
    background-color: #f0f8ff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.care-tips h5 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.care-tips ul {
    margin: 0;
    padding-left: 20px;
}

.care-tips li {
    margin-bottom: 8px;
    color: #666;
    line-height: 1.5;
}

/* 年龄对照表 */
.age-chart-section {
    margin-bottom: 30px;
}

.age-chart-container {
    overflow-x: auto;
}

.age-chart {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.age-chart th, .age-chart td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.age-chart th {
    background-color: #f0f0f0;
    font-weight: bold;
    color: #333;
}

.age-chart tr:hover {
    background-color: #f9f9f9;
}

/* 猫咪发育阶段 */
.development-section {
    margin-bottom: 30px;
}

.development-stages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.stage-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.stage-icon {
    font-size: 30px;
    margin-bottom: 10px;
    text-align: center;
}

.stage-card h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.stage-card p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* 说明信息 */
.info-section {
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.info-item p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .result-header {
        flex-direction: column;
        text-align: center;
    }
    
    .result-details,
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .age-input-container {
        width: 100%;
    }
    
    .development-stages {
        grid-template-columns: 1fr;
    }
}