/* 年龄计算器工具样式 */

.tool-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 40px;
}

.tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.tool-header h1 {
    font-size: 30px;
    color: #2d3748;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tool-header h1 i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-header p {
    color: #718096;
    font-size: 16px;
}

.nljsq-form-box {
    max-width: 560px;
    margin: 0 auto;
}

.nljsq-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nljsq-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nljsq-field label {
    font-size: 15px;
    font-weight: 600;
    color: #4a5568;
}

.nljsq-field select,
.nljsq-field input[type="date"] {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    color: #2d3748;
    background: #fff;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
}

.nljsq-field select:focus,
.nljsq-field input[type="date"]:focus {
    border-color: #667eea;
}

.nljsq-submit {
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nljsq-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* 结果展示 */
.nljsq-result-box {
    max-width: 640px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.nljsq-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.nljsq-result-item:last-of-type {
    border-bottom: none;
}

.nljsq-result-item.highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 12px;
    margin-bottom: 8px;
}

.nljsq-result-item.meta {
    color: #a0aec0;
    font-size: 14px;
}

.nljsq-result-item .label {
    color: #4a5568;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nljsq-result-item .label i {
    color: #667eea;
}

.nljsq-result-item .value {
    color: #2d3748;
    font-size: 18px;
    font-weight: 700;
}

.nljsq-result-item.meta .value {
    font-size: 14px;
    font-weight: 400;
    color: #718096;
}

.nljsq-back {
    text-align: center;
    margin-top: 24px;
}

.nljsq-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border: 2px solid #667eea;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.nljsq-back-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* 工具说明区域 */
.info-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

.info-section h2 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-section h2 i {
    color: #667eea;
}

.info-section h3 {
    font-size: 18px;
    color: #2d3748;
    margin: 24px 0 12px;
}

.info-section p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 12px;
}

.nljsq-rules {
    list-style: none;
    padding: 0;
    margin-top: 12px;
}

.nljsq-rules li {
    padding: 10px 16px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-left: 4px solid #667eea;
    border-radius: 6px;
    color: #4a5568;
}

@media (max-width: 768px) {
    .tool-section,
    .info-section {
        padding: 24px 18px;
    }

    .tool-header h1 {
        font-size: 24px;
    }

    .nljsq-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .nljsq-result-item .value {
        font-size: 16px;
    }
}
