/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
header {
    background-color: #165DFF;
    color: white;
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-size: 18px;
}

/* 按钮样式（适合触屏） */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #165DFF;
    color: white;
}

.btn-primary:hover {
    background-color: #0E4CD1;
}

.btn-outline {
    background-color: transparent;
    border: 3px solid #165DFF;
    color: #165DFF;
}

.btn-outline:hover {
    background-color: #165DFF;
    color: white;
}

/* 调解员卡片（适合触屏） */
.mediator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.mediator-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.mediator-card:hover {
    transform: translateY(-10px);
}

.mediator-photo {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.mediator-info {
    padding: 25px;
}

.mediator-name {
    font-size: 24px;
    margin-bottom: 10px;
}

.mediator-title {
    color: #165DFF;
    font-size: 20px;
    margin-bottom: 15px;
}

.mediator-brief {
    font-size: 18px;
    margin-bottom: 20px;
}

/* 表单样式（适合触屏） */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

input, textarea, select {
    width: 100%;
    padding: 18px;
    font-size: 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
}

/* 详情页 */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin: 40px 0;
}

.mediator-fullphoto {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.detail-info h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.detail-info p {
    font-size: 20px;
    margin-bottom: 20px;
}

/* 预约日历 */
.date-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.date-item {
    background: white;
    padding: 20px 10px;
    text-align: center;
    border-radius: 10px;
    border: 2px solid #ddd;
    cursor: pointer;
    font-size: 18px;
}

.date-item:hover, .date-item.selected {
    border-color: #165DFF;
    background-color: #f0f7ff;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.time-item {
    background: white;
    padding: 20px 10px;
    text-align: center;
    border-radius: 10px;
    border: 2px solid #ddd;
    cursor: pointer;
    font-size: 18px;
}

.time-item:hover, .time-item.selected {
    border-color: #165DFF;
    background-color: #f0f7ff;
}

/* 页脚 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}
/* 强制选中状态样式 */
.date-item input[type="radio"]:checked + label,
.time-item input[type="radio"]:checked + label {
    border-color: #165DFF !important;
    background-color: #f0f7ff !important;
    transform: scale(1.05) !important;
    box-shadow: 0 3px 10px rgba(22, 93, 255, 0.2) !important;
}

/* 移除hover状态干扰（可选） */
.date-item:hover,
.time-item:hover {
    transform: none !important;
    box-shadow: none !important;
}