/* ==================== 保留原有导航栏及全局样式 START ==================== */
body { margin: 0; padding: 0; font-family: 'Microsoft YaHei', sans-serif; background-color: #f9f9f4; }

section{ width: 100rem; margin: 0 auto; background-color: #F3F3EE; padding: 2rem; margin-top: 1rem; border-radius: 1rem; }
.main{ width: 100%; height: 1016px; position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.main::before{ content: ""; position: absolute; inset: 0; background-image: url(/image/bg1.png); background-size: cover; background-repeat: no-repeat; background-position: center; opacity: 1; transition: opacity 0.6s ease; z-index: -2; }
/* .main.scrolled::before {} */
.main::after{ content: ""; position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.5); z-index: -1; }
.btn_help{ gap: 30px; padding: 12px 40px; background-color: #2E5C46;; color: #F9F9F4; border: none; border-radius: 50px; font-size: 16px; cursor: pointer; transition: all 0.1s ease; margin-top: 2%; }
.btn_help:hover{ transform: translateY(-5px); }
.zonglan{ display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr; align-items: center; gap: 24px; width: 100%; max-width: 100%; margin: 0 auto; box-sizing: border-box; }
.card{ min-width: 0; background-color: #FFFFFF; border: 1px solid #D1E3D8; border-radius: 16px; padding: 24px; margin:5px; box-shadow: 0 4px 12px rgba(30, 61, 47, 0.08); transition: all 0.3s ease; }
.card-title{ color: #1A1A1A; font-size: 20px; font-weight: bold; margin-bottom: 12px; }
.card-text { color: #2D2D2D; font-size: 16px; line-height: 1.8; }
.card:hover, .card:focus-within { border-color: #2E5C46; box-shadow: 0 8px 20px rgba(30, 61, 47, 0.15); transform: translateY(-3px); }
.card:last-child { grid-column: 4 / -1; }
/* ==================== 保留原有导航栏及全局样式 END ==================== */

/* ==================== 帮扶申请页面专属样式 START ==================== */
.bangfu-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(46, 92, 70, 0.08);
    border: 1px solid #e8f0eb;
}

.page-title {
    text-align: center;
    color: #2E5C46;
    font-size: 32px;
    margin-bottom: 10px;
}

.page-desc {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 16px;
}

/* 折叠面板样式 (核心功能) */
.accordion-item {
    border: 2px solid #e8f0eb;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item[open] {
    border-color: #2E5C46;
    box-shadow: 0 4px 15px rgba(46, 92, 70, 0.1);
}

summary {
    padding: 20px 25px;
    background: #fcfdfc;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #2E5C46;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    content: '-';
    transform: rotate(180deg);
}

summary:focus {
    outline: 3px solid rgba(46, 92, 70, 0.4);
    outline-offset: -3px;
}

.accordion-content {
    padding: 25px;
    background: #fff;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

/* --- 修复与优化：联系方式输入框样式 --- */
.textarea-group input[type="tel"] {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #e8f0eb;
    border-radius: 10px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* 输入框聚焦状态样式 */
.textarea-group input[type="tel"]:focus {
    outline: none;
    border-color: #2E5C46;
    box-shadow: 0 0 0 4px rgba(46, 92, 70, 0.1);
}

/* 自定义单选按钮样式 (大尺寸易点击) */
.radio-label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    color: #333;
}

.radio-label:hover { border-color: #2E5C46; background: #f4f9f6; }

input[type="radio"] {
    appearance: none;
    width: 22px; height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
}

input[type="radio"]:checked {
    border-color: #2E5C46;
    background: #2E5C46;
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 8px; height: 8px;
    background: white;
    border-radius: 50%;
}

input[type="radio"]:focus {
    outline: 3px solid rgba(46, 92, 70, 0.4);
    outline-offset: 2px;
}

/* 增强整体容器边框 - 让内容更明显 */
.bangfu-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    
    /* --- 修改开始 --- */
    /* 1. 增加边框粗细和颜色深度 */
    border: 3px solid #2E5C46; 
    
    /* 2. 增加内阴影，让内容区域向内凹陷，更有立体感 */
    box-shadow: 
        0 4px 20px rgba(46, 92, 70, 0.15), 
        inset 0 2px 10px rgba(0, 0, 0, 0.05);
        
    /* 3. 稍微调整圆角，配合加粗的边框 */
    border-radius: 24px; 
    /* --- 修改结束 --- */
}

/* ==================== 新增功能样式 START ==================== */

/* 1. 自定义复选框样式 (与单选按钮视觉统一) */
.checkbox-label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    color: #333;
}

.checkbox-label:hover { 
    border-color: #2E5C46; 
    background: #f4f9f6; 
}

input[type="checkbox"] {
    appearance: none; /* 隐藏原生样式 */
    width: 22px; 
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 6px; /* 复选框使用圆角矩形 */
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
    border-color: #2E5C46;
    background: #2E5C46;
}

/* 复选框选中后的对勾效果 */
input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 45%; left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 6px; 
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
}

/* 无障碍焦点高亮 */
input[type="checkbox"]:focus,
.checkbox-label:focus-within {
    outline: 3px solid rgba(46, 92, 70, 0.4);
    outline-offset: 2px;
}

/* 2. 文件上传区域样式 */
input[type="file"] {
    font-family: inherit; /* 继承全局字体 */
    color: #333;
}

/* 自定义文件选择按钮外观 (Webkit内核浏览器适用) */
input[type="file"]::file-selector-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background-color: #2E5C46;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 15px;
    transition: background 0.3s;
}

input[type="file"]::file-selector-button:hover {
    background-color: #1f6d38;
}

/* 输入框聚焦状态 */
input[type="tel"]:focus,
input[type="file"]:focus {
    outline: none;
    border-color: #2E5C46 !important;
    box-shadow: 0 0 0 4px rgba(46, 92, 70, 0.1);
}

/* ==================== 新增功能样式 END ==================== */

/* 文本域样式 */
.textarea-group { margin-top: 10px; }
.textarea-group label { display: block; font-size: 18px; font-weight: bold; color: #2E5C46; margin-bottom: 12px; }

textarea {
    width: 100%;
    min-height: 150px;
    padding: 20px;
    border: 2px sol7 #e8f0eb;
    border-radius: 7 ;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #2E5C46;
    box-shadow: 0 0 0 4px rgba(46, 92, 70, 0.1);
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 18px;
    margin-top: 30px;
    background:#2f8b57;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    /* 让伪元素相对按钮定位，并裁剪溢出内容 */
    position: relative;
    overflow: hidden;
}

.submit-btn:hover { background: #1f6d38; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(46, 139, 87, 0.3); }
/* 点击效果 */
.submit-btn:active { transform: translateY(1px); }
/* 脉冲动画 */
.submit-btn.pulse {animation: pulse 0.5s ease;}
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 光效划过 */
.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}
.submit-btn:focus { outline: 3px solid rgba(46,92,70,0.5); outline-offset: 3px; }
.submit-btn:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }

/* 解决方案展示区 (提交后显示) */
#solution-area {
    display: none;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f4f9f6 0%, #ffffff 100%);
    border: 2px solid #2E5C46;
    border-radius: 16px;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.solution-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.solution-icon { width: 36px; height: 36px; background: #2E5C46; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; }
.solution-title { font-size: 22px; color: #2E5C46; font-weight: bold; }
.solution-body { font-size: 16px; line-height: 2; color: #333; white-space: pre-wrap; }
.solution-tag { display: inline-block; padding: 4px 14px; background: #e8f0eb; color: #2E5C46; border-radius: 20px; font-size: 13px; margin-right: 8px; margin-bottom: 8px; }

/* 加载动画 */
.loading-overlay {
    display: none;
    text-align: center;
    padding: 40px;
    color: #2E5C46;
    font-size: 18px;
}
.spinner {
    width: 40px; height: 40px;
    border: 4px solid #e8f0eb;
    border-top-color: #2E5C46;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .bangfu-container { margin: 20px 15px; padding: 25px; }
    .accordion-content { grid-template-columns: 1fr 1fr; }
    header { flex-direction: column; gap: 10px; }
    nav.daohang { flex-wrap: wrap; justify-content: center; gap: 15px; }
}

/* ====== 修正：尺码下拉框样式 (完全匹配现有主题) ====== */

/* 1. 统一尺码下拉框样式 */
.textarea-group select {
    width: 100%;
    padding: 15px; /* 与 input[type="tel"] 一致 */
    font-size: 16px; /* 与 input[type="tel"] 一致 */
    border: 2px solid #e8f0eb; /* 使用与其他输入框相同的浅绿色边框 */
    border-radius: 10px; /* 与 input[type="tel"] 一致 */
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
    transition: all 0.3s ease; /* 与页面整体过渡效果一致 */
    font-family: inherit; /* 继承全局字体 */
}

/* 2. 下拉框聚焦状态 */
.textarea-group select:focus {
    outline: none;
    border-color: #2E5C46; /* 聚焦时变为深绿色主题色 */
    box-shadow: 0 0 0 4px rgba(46, 92, 70, 0.1); /* 添加聚焦阴影，提升交互感 */
}
/* ==================== 帮扶申请页面专属样式 END ==================== */