/* ===== 商会入会申请（member-apply） ===== */

/* 去掉表单外层大框，仅保留内部各分区卡片与提交区的边框 */
#member-apply .apply-form {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
}

/* 分区卡片 */
.form-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(13,71,161,0.06);
    transition: var(--transition);
}

.form-card:hover { box-shadow: 0 6px 18px rgba(13,71,161,0.12); }

/* 标题栏：蓝色渐变 + 白色文字，着重强调 */
.form-card-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    overflow: hidden;
}

/* 右上角装饰光晕，增强设计感 */
.form-card-head::after {
    content: '';
    position: absolute;
    right: -32px;
    top: -46px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.form-card-no {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

.form-card-title {
    position: relative;
    z-index: 1;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.form-card-hint {
    position: relative;
    z-index: 1;
    margin-left: auto;
    font-size: 12px;
    color: rgba(255,255,255,0.78);
}

/* 内容区：顶部淡蓝渐变过渡到白 */
.form-card-body {
    padding: 20px;
    background: linear-gradient(to bottom, rgba(13,71,161,0.045), rgba(255,255,255,0) 70px);
}

/* 分区内字段行间距 */
.form-card-body .form-row { margin-bottom: 14px; }
.form-card-body .form-row:last-child { margin-bottom: 0; }

/* 下拉选择：与输入框等高、自定义箭头 */
.form-card-body select.form-input {
    /* 固定较窄宽度，避免被最长选项撑开 */
    width: 200px;
    max-width: 100%;
    height: 44px;
    padding-right: 36px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fafbfc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 13px;
}

.form-card-body select.form-input:focus { background-color: #ffffff; }

/* 复选框 / 单选网格 */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 16px; margin-top: 6px; }
.check-grid.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.check-item {
    display: inline-flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

.check-item input { width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--primary-blue); cursor: pointer; flex: 0 0 auto; }

.check-other { margin-top: 12px; }
.check-other .form-input { max-width: 320px; }

/* 近三年营业收入 */
.revenue-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* 会费标准：四张选择卡片 */
.fee-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }

.fee-card { display: block; position: relative; cursor: pointer; }

/* 隐藏原生单选框，用卡片自身表现选中态 */
.fee-card input { position: absolute; width: 0; height: 0; opacity: 0; }

.fee-card-inner {
    position: relative;
    display: block;
    padding: 16px 12px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.fee-card:hover .fee-card-inner {
    border-color: rgba(79,163,255,0.55);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13,71,161,0.1);
}

.fee-name { display: block; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.fee-price { display: block; margin-top: 8px; font-size: 12px; color: var(--text-muted); }
.fee-price b { font-size: 22px; font-weight: 700; color: var(--primary-blue); }

/* 选中态：蓝框 + 淡蓝底 + 右上角对勾 */
.fee-card input:checked + .fee-card-inner {
    border-color: var(--primary-blue);
    background: rgba(13,71,161,0.06);
    box-shadow: 0 4px 14px rgba(13,71,161,0.16);
}

.fee-card input:checked + .fee-card-inner::after {
    content: '';
    position: absolute;
    top: 8px; right: 8px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 10px 10px;
    background-position: center;
    background-repeat: no-repeat;
}

.fee-card input:checked + .fee-card-inner .fee-price b { color: var(--primary-blue-dark); }

.fee-note { margin-top: 14px; font-size: 12px; color: var(--text-muted); }

/* 申请单位声明 */
.form-declare {
    padding: 14px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.form-agree { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--text-secondary); cursor: pointer; }
.form-agree input { width: 15px; height: 15px; margin: 3px 0 0; accent-color: var(--primary-blue); cursor: pointer; }

/* 提交区 */
.form-submit-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
}

.form-submit-bar p {
    max-width: 100%;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: nowrap;
}

/* 醒目提交按钮：居中、加大、渐变 */
.form-submit-bar .form-submit {
    min-width: 240px;
    padding: 16px 48px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #1a8c4a, #2bb673);
    box-shadow: 0 12px 26px rgba(26,140,74,0.26);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    cursor: pointer;
}

.form-submit-bar .form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(26,140,74,0.32);
    filter: brightness(1.05);
}

/* 说明卡片 */
.notes-card { margin-top: 28px; border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; }

.notes-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    background: linear-gradient(135deg, rgba(10,50,108,0.05), rgba(79,163,255,0.1));
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.notes-card-head .head-ico {
    flex: 0 0 auto;
    width: 26px; height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(13,71,161,0.25);
}

.notes-card-head .head-ico svg { width: 15px; height: 15px; }

.notes-card-body { padding: 18px; }
.notes-card h4 { font-size: 14px; color: var(--text-primary); margin: 18px 0 10px; }
.notes-card h4:first-child { margin-top: 0; }
.notes-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.9; }

/* 说明卡片：左右分栏 */
.notes-two-col { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: 8px 32px; }
.notes-block h4 { margin-top: 0; }

/* 需提交资料：勾选清单 */
.doc-list { list-style: none; padding: 0; }

.doc-list li {
    position: relative;
    padding: 11px 14px 11px 38px;
    margin-bottom: 10px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    transition: var(--transition);
}

.doc-list li:hover {
    border-color: rgba(79,163,255,0.5);
    background: rgba(79,163,255,0.05);
}

/* 列表小圆点（带光晕） */
.doc-list li::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(13,71,161,0.12);
}

/* 入会流程：编号时间轴 */
.flow-list { list-style: none; padding: 0; counter-reset: flow; }

.flow-list li {
    position: relative;
    padding-left: 30px;
    padding-bottom: 14px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    counter-increment: flow;
}

.flow-list li::before {
    content: counter(flow);
    position: absolute;
    left: 0; top: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: #fff;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(13,71,161,0.25);
}

.flow-list li::after {
    content: '';
    position: absolute;
    left: 11px; top: 28px; bottom: 2px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(13,71,161,0.28), rgba(13,71,161,0.06));
}

.flow-list li:last-child { padding-bottom: 0; }
.flow-list li:last-child::after { display: none; }

/* 末步：正式成为会员，绿色强调成果 */
.flow-list li:last-child::before {
    background: linear-gradient(135deg, #22a06b, #4ecb8f);
    box-shadow: 0 2px 6px rgba(34,160,107,0.3);
}

.flow-list li:last-child { color: var(--primary-blue); font-weight: 600; }

/* 信用承诺书：十项承诺等宽网格 */
.promise-intro { margin-bottom: 14px; }

.promise-outro {
    margin-top: 16px;
    padding: 13px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.promise-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 14px;
    counter-reset: promise;
}

.promise-grid li {
    position: relative;
    padding: 10px 14px 10px 42px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    counter-increment: promise;
    transition: var(--transition);
}

.promise-grid li:hover {
    border-color: rgba(79,163,255,0.5);
    background: rgba(79,163,255,0.05);
    transform: translateY(-1px);
}

/* 序号徽标：圆角方形，区别于流程的圆形 */
.promise-grid li::before {
    content: counter(promise);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px; height: 20px;
    border-radius: 6px;
    background: var(--primary-blue);
    color: #fff;
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

@media (max-width: 900px) {
    .notes-two-col { grid-template-columns: 1fr; gap: 20px; }
    .fee-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .revenue-row { grid-template-columns: 1fr; }
    .promise-grid { grid-template-columns: 1fr; }
    .form-card-head { flex-wrap: wrap; }
    .form-card-hint { margin-left: 0; width: 100%; }
    /* 窄屏空间有限，允许提交说明自动换行，避免单行溢出 */
    .form-submit-bar p { white-space: normal; }
}

@media (max-width: 560px) {
    .fee-cards { grid-template-columns: 1fr; }

    .form-submit-bar .form-submit {
        min-width: 0;
        width: 100%;
        padding: 14px 24px;
        font-size: 16px;
    }
}


