/* 基础样式重置和全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* 移动端字体缩放与表单缩放修复（iOS） */
html, body { -webkit-text-size-adjust: 100%; }
input, select, textarea { font-size: 16px; }
img { max-width: 100%; height: auto; }

/* 顶部图片区域 */
.header-image {
    width: 100%;
    text-align: center;
    background: #fff;
    margin-bottom: 1px;
}

.top-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

/* 图片画廊区域 */
.image-gallery {
    width: 100%;
    max-width: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.image-gallery.single-column {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.image-item {
    display: block;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.image-item:hover { opacity: 0.96; }

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
}

.image-item:hover .gallery-image { transform: none; }

/* 为5.png图片添加中间分割虚线 */
.image-item[href="page5.html"] {
    position: relative;
    pointer-events: none;
    cursor: default;
}

.image-item[href="page5.html"]::after {
    content: "";
    position: absolute;
    top: 46%;
    left: 2%;
    right: 2%;
    height: 2px;
    border-top: 2px dashed rgba(128, 128, 128, 0.8);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

/* 调查问卷容器 */
.survey-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 3rem;
}

/* 问卷标题区域 */
.survey-header {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.survey-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.survey-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 表单样式 */
.survey-form {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f8f9fa;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: #d63031;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-left: 15px;
    border-left: 4px solid #d63031;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2d3436;
    font-size: 1rem;
}

.required {
    color: #d63031;
    margin-left: 3px;
}

/* 输入框样式 */
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #74b9ff;
}

/* 单选按钮样式 */
.radio-group {
    display: flex;
    gap: 2rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    accent-color: #667eea;
}

/* 复选框样式 */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #667eea;
}

/* 按钮样式 */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.submit-btn,
.reset-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    min-width: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #00a085 0%, #008f7a 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 184, 148, 0.4);
}

.reset-btn {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(253, 121, 168, 0.3);
}

.reset-btn:hover {
    background: linear-gradient(135deg, #e84393 0%, #d63031 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(253, 121, 168, 0.4);
}

/* 底部样式 */
.footer {
    background: #fff;
    color: #333;
    padding: 14px 0 30px;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 16px;
}

.footer .font-s2 { font-size: 14px; line-height: 1.8 !important; }

.footer .color-black { color: #333 !important; }

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-body p {
    font-size: 1.1rem;
    color: #2d3436;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .survey-header h2 {
        font-size: 1.8rem;
    }
    
    .survey-header p {
        font-size: 1rem;
    }
    
    .survey-form {
        padding: 1.5rem;
    }
    
    .form-section h3 {
        font-size: 1.3rem;
    }
    
    .radio-group {
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .submit-btn,
    .reset-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .survey-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .survey-header h2 {
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 20% auto;
    }
}

/* 动画效果 */
/* 移除表单动画占位 */
.survey-form { animation: none; }

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

/* 图片轻微淡入 */
.image-item { animation: fadeIn 0.4s ease-out forwards; opacity: 0; }

/* ===== 资助卡页面样式 ===== */
.card-page-body { background: #eef2f5; }

.card-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 52px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e6e9ee;
}

.card-back {
    position: absolute;
    left: 16px;
    font-size: 20px;
    color: #333;
    text-decoration: none;
}

.card-title { font-size: 18px; color: #333; font-weight: 600; }

.card-hero img { width: 100%; display: block; }
.card-page { width: 100%; max-width: 430px; margin: 14px auto; padding: 0 0 20px 0; }

.card-panel {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    padding: 18px 16px 20px;
}

.bank-card-box { position: relative; width: 100%; }
.bank-card-img { width: 100%; height: auto; border-radius: 10px; display: block; }

/* 左下角标识覆盖 */
.support-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    width: 140px;
    height: auto;
}

.quota-row {
    margin: 14px 2px 10px;
    font-size: 14px;
    color: #666;
}
.quota-row .quota-num { color: #d64234; font-weight: 700; }

.apply-form { margin-top: 6px; }
.apply-input, .apply-textarea {
    width: 100%;
    border: 1px solid #e1e5ea;
    border-radius: 24px;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    margin-bottom: 12px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.apply-textarea {
    border-radius: 12px;
    resize: vertical;
    min-height: 96px;
}

.apply-input:focus, .apply-textarea:focus {
    border-color: #ff9f43;
    box-shadow: 0 0 0 3px rgba(255,159,67,0.15);
}

.btn-apply {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffa759 0%, #f08b36 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 8px 18px rgba(240,139,54,0.35);
    cursor: pointer;
}

.btn-apply:active { transform: translateY(1px); }

/* ===== page3 不动产报名页 ===== */
.p3-body { background: #f3f6fb; }
.p3-topbar {
    position: sticky;
    top: 0;
    background: #fff;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e8edf3;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    z-index: 10;
}
.p3-back {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
    color: #333;
    font-size: 18px;
    line-height: 1;
}
.p3-title { font-size: 16px; font-weight: 600; color: #333; }
.p3-hero img { width: 100%; display: block; }
.p3-wrap { width: 100%; max-width: 480px; margin: 0 auto; padding: 10px 12px 30px; }
.p3-title { color: #c40000; font-size: 16px; font-weight: 700; text-align: center; letter-spacing: 1px; }
.p3-notice { background: #fff; border: 1px solid #e7ebf0; border-radius: 8px; padding: 12px; margin-top: 10px; text-align: center; color: #333; font-size: 14px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.p3-divider { height: 8px; background: url('/img/ldy_icon.0671a34f.png') center/contain no-repeat; margin: 10px 0; }
.p3-sub { color: rgb(162,1,1); text-shadow: rgba(0,0,0,0.25) 0 2px 2px; text-align: center; font-size: 18px; font-weight: 700; margin-top: 6px; }

.p3-form { background: #fff; border-radius: 10px; box-shadow: 0 10px 22px rgba(0,0,0,0.08); margin-top: 10px; padding: 12px 8px 16px; }
.p3-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; }
.p3-label { width: 96px; color: #333; font-size: 14px; }
.p3-input-box { display: flex; align-items: center; flex: 1; background: #f7f9fc; border: 1px solid #e3e8ee; border-radius: 24px; padding: 8px 10px; }
.p3-input-box input { width: 100%; border: none; background: transparent; outline: none; font-size: 14px; }
.p3-select svg { margin-left: 6px; }
.p3-income .p3-unit { color: #e03a2e; margin-left: 6px; font-weight: 700; }
.p3-sep { height: 8px; background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAYAAAB4xKJQAAAADUlEQVQYV2NkYGD4z0AEAAkZAgQbXoN/AAAAAElFTkSuQmCC') repeat-x; opacity: .35; margin: 6px 4px; }
.p3-submit { margin: 14px 8px 6px; height: 44px; border-radius: 8px; background: linear-gradient(180deg,#ff7f50 0%, #e86a32 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: 0 10px 20px rgba(232,106,50,.35); cursor: pointer; }

/* 选择下拉 */
.p3-select { position: relative; cursor: pointer; }
.p3-options {
    position: absolute;
    left: 0; right: 0; top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    box-shadow: 0 10px 18px rgba(0,0,0,.08);
    list-style: none;
    padding: 6px 0;
    display: none;
    z-index: 20;
}
.p3-options li { padding: 8px 12px; font-size: 14px; color: #333; }
.p3-options li:hover { background: #f5f8fd; }
.p3-select.open .p3-options { display: block; }

/* ===== page4 统计中心 ===== */
.p4-body { background: #f3f6fb; }
.p4-topbar { position: sticky; top: 0; background: #fff; height: 48px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #e8edf3; box-shadow: 0 1px 2px rgba(0,0,0,.03); z-index: 10; }
.p4-back { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); text-decoration: none; color: #333; font-size: 18px; line-height: 1; }
.p4-title { font-size: 16px; font-weight: 700; color: #333; }
.p4-hero img { width: 100%; display: block; }
.p4-wrap { width: 100%; max-width: 480px; margin: 0 auto; padding: 10px 12px 30px; }
.p4-field { margin-top: 14px; }
.p4-label { margin-bottom: 6px; color: #333; font-size: 14px; }
.p4-input { background: #fff; border: 1px solid #e3e8ee; border-radius: 14px; padding: 10px 12px; display: flex; align-items: center; }
.p4-input input { width: 100%; border: none; outline: none; background: transparent; font-size: 14px; }
/* 与输入框字体16px保持一致，避免iOS自动放大 */
.apply-input, .apply-textarea, .p3-input-box input, .p4-input input { font-size: 16px; }
.p4-group-title {
    margin: 20px 0 10px;
    color: #222;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    position: relative;
}
.p4-group-title::before,
.p4-group-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 24%;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.05) 100%);
    transform: translateY(-50%);
}
.p4-group-title::before { left: 6px; }
.p4-group-title::after { right: 6px; }
.p4-radio-group { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 10px; }
.p4-radio { display: flex; align-items: center; gap: 8px; font-size: 18px; color: #111; font-weight: 600; }
.p4-radio input { width: 18px; height: 18px; accent-color: #ff7f50; }
.p4-tips-small { margin-top: 10px; color: #d14343; font-size: 12px; }
.p4-warning { margin-top: 12px; background: #fff1f2; border: 1px solid #ffd5d9; color: #a20101; padding: 12px; border-radius: 10px; }
.p4-warning-title { font-weight: 700; margin-bottom: 6px; }
.p4-submit { width: 100%; height: 44px; border: none; border-radius: 8px; background: linear-gradient(180deg,#ff7f50 0%, #e86a32 100%); color: #fff; font-weight: 700; margin-top: 14px; box-shadow: 0 10px 20px rgba(232,106,50,.35); cursor: pointer; }

/* 小屏设备优化（<=360px） */
@media (max-width: 360px) {
    .p3-wrap, .p4-wrap { padding: 8px 10px 20px; }
    .p3-title, .p4-title { font-size: 15px; }
    .p3-input-box, .p4-input { padding: 9px 10px; border-radius: 12px; }
    .p3-label, .p4-label { font-size: 13px; }
    .btn-apply, .p4-submit { height: 42px; }
    .card-topbar, .p3-topbar, .p4-topbar { height: 46px; }
}

/* 全面屏安全区（刘海屏）适配 */
.card-topbar, .p3-topbar, .p4-topbar { padding-top: env(safe-area-inset-top); }
.p3-wrap, .p4-wrap { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }

.image-item:nth-child(1) { animation-delay: 0.1s; }
.image-item:nth-child(2) { animation-delay: 0.2s; }
.image-item:nth-child(3) { animation-delay: 0.3s; }
.image-item:nth-child(4) { animation-delay: 0.4s; }

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