/* ========================================
   疫苗接种时间表工具专用样式
   ======================================== */

/* 年龄段选择器 */
.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.form-select {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-select:hover {
    border-color: #4a90e2;
}

.form-select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* 疫苗时间表 */
.vaccine-schedule {
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a90e2;
}

.vaccine-table {
    overflow-x: auto;
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.data-table thead th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.data-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.data-table tbody tr:hover {
    background-color: #f5f7fa;
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody td {
    padding: 15px 12px;
    color: #333;
    font-size: 14px;
}

.data-table .btn-small {
    padding: 6px 16px;
    font-size: 13px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.data-table .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.data-table .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 疫苗详情 */
.vaccine-details {
    margin-bottom: 30px;
}

.vaccine-details-content {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    min-height: 100px;
}

.select-prompt {
    text-align: center;
    color: #999;
    font-size: 15px;
    padding: 40px 20px;
    margin: 0;
}

.vaccine-detail-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vaccine-detail-card h4 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a90e2;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.detail-label {
    font-weight: 600;
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
}

.detail-value {
    color: #333;
    font-size: 15px;
}

.detail-description,
.detail-side-effects,
.detail-contraindications {
    margin-top: 20px;
}

.detail-description h5,
.detail-side-effects h5,
.detail-contraindications h5 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.detail-description p,
.detail-side-effects p,
.detail-contraindications p {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
}

/* 接种注意事项 */
.vaccine-notes {
    margin-bottom: 30px;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.note-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.note-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.note-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
}

.note-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.note-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.note-item li {
    color: #555;
    line-height: 1.8;
    font-size: 14px;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.note-item li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: bold;
}

/* 常见问题解答 */
.faq-section {
    margin-bottom: 30px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.faq-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.faq-item p {
    color: #555;
    line-height: 1.8;
    font-size: 14px;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .notes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .form-select {
        max-width: 100%;
    }

    .section-title {
        font-size: 18px;
    }

    .vaccine-table {
        font-size: 13px;
    }

    .data-table thead th,
    .data-table tbody td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .notes-grid {
        grid-template-columns: 1fr;
    }

    .note-item {
        padding: 20px;
    }

    .note-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .vaccine-detail-card {
        padding: 20px;
    }

    .vaccine-detail-card h4 {
        font-size: 18px;
    }

    .faq-item {
        padding: 15px 20px;
    }

    .faq-item h4 {
        font-size: 15px;
    }

    .faq-item p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .form-label {
        font-size: 15px;
    }

    .form-select {
        font-size: 15px;
        padding: 10px 14px;
    }

    .section-title {
        font-size: 16px;
    }

    .data-table thead th,
    .data-table tbody td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .data-table .btn-small {
        padding: 5px 12px;
        font-size: 12px;
    }

    .note-item h4 {
        font-size: 16px;
    }

    .note-item li {
        font-size: 13px;
    }
}
