/* 会员系统样式 - member.css */

/* 页面容器 */
.member_page {
    min-height: calc(100vh - 250px);
    background: #f5f5f5;
    padding: 40px 0;
}

/* ==================== 会员注册入口页 ==================== */
.register_section {
    padding: 60px 0;
    min-width: 1000px;
    overflow-x: auto;
}

.register_cards {
    display: grid !important;
    grid-template-columns: repeat(3, 300px) !important;
    gap: 30px !important;
    justify-content: center !important;
    width: fit-content;
    margin: 0 auto;
}

.register_card {
    width: 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.register_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #16B1B7 0%, #1a8a8f 100%);
    color: #fff;
}

.register_card:hover .card_label {
    color: #fff;
}

.register_card:hover .card_desc p {
    color: rgba(255, 255, 255, 0.9);
}

.register_card:hover .btn_primary {
    background: #fff;
    color: #16B1B7;
}

.register_card:hover .btn_primary:hover {
    background: #f0f0f0;
}

.card_header {
    margin-bottom: 25px;
}

.card_label {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

.card_icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card_icon img {
    max-width: 100%;
    max-height: 100%;
}

.card_desc {
    margin-bottom: 30px;
    min-height: 60px;
}

.card_desc p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.card_action .btn {
    width: 140px;
}

/* 登录提示 */
.login_hint {
    text-align: center;
    padding: 20px;
}

.login_hint p {
    color: #666;
}

.login_hint a {
    color: #16B1B7;
    font-weight: bold;
}

.login_hint a:hover {
    text-decoration: underline;
}

/* ==================== 弹窗样式 ==================== */
.modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal_box {
    width: 520px;
    max-width: 92%;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal_header {
    padding: 18px 24px;
    background: #fff;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
}

.modal_header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.modal_close {
    font-size: 22px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.modal_close:hover {
    color: #333;
}

.modal_body {
    padding: 28px 32px 20px;
    max-height: 480px;
    overflow-y: auto;
    flex: 1;
}

.conditions_heading {
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    color: #333;
    margin: 0 0 20px 0;
}

.conditions_content p {
    font-size: 15px;
    color: #333;
    line-height: 1.9;
    margin-bottom: 10px;
    text-indent: 0;
}

.modal_body h4 {
    font-size: 16px;
    font-weight: bold;
    margin: 20px 0 10px 0;
    color: #333;
    text-align: center;
}

.modal_body h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.modal_body p {
    font-size: 15px;
    color: #333;
    line-height: 1.9;
    margin-bottom: 10px;
    text-indent: 0;
}

.modal_body p strong {
    color: #333;
    font-weight: bold;
}

/* ==================== 章程弹窗（全文展示） ==================== */
.charter_wrap {
    max-height: 500px;
    overflow-y: auto;
    text-align: left;
}

.charter_pre {
    white-space: pre-wrap;
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    padding: 8px 6px;
    color: #333;
}

.charter_formatted {
    white-space: pre-wrap;
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.9;
    color: #333;
}

.charter_attachment {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.charter_title {
    display: block;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    margin: 6px 0 12px;
}

.charter_chapter {
    display: block;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    margin: 10px 0 6px;
}

.charter_section {
    display: block;
    font-size: 15px;
    font-weight: 800;
    margin: 8px 0 4px;
}

.charter_article_no {
    font-weight: 800;
    color: #16B1B7;
}

.charter_item_no {
    font-weight: 800;
}

.modal_footer {
    padding: 14px 24px;
    background: #fff;
    text-align: right;
    border-top: 1px solid #e8e8e8;
}

.modal_footer .btn {
    margin-left: 10px;
    min-width: 80px;
}

/* ==================== 登录/注册页 ==================== */
.auth_container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.auth_box {
    width: 400px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.auth_box.auth_box_wide {
    width: 700px;
}

.auth_header {
    text-align: center;
    margin-bottom: 30px;
}

.auth_header h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.auth_header p {
    color: #999;
    font-size: 14px;
}

.auth_form {
    margin-bottom: 20px;
}

/* 表单分区 */
.form_section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

.section_title {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 3px solid #16B1B7;
}

/* 表单行 */
.form_row {
    display: flex;
    gap: 20px;
}

.form_group {
    margin-bottom: 20px;
}

.form_group.form_half {
    flex: 1;
}

.form_group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.form_group .required {
    color: #f56c6c;
}

.form_control {
    width: 100%;
    height: 42px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form_control:focus {
    border-color: #16B1B7;
    outline: none;
}

/* 带按钮的输入框 */
.input_with_btn {
    display: flex;
    gap: 10px;
}

.input_with_btn .form_control {
    flex: 1;
}

.btn_sms {
    flex-shrink: 0;
    padding: 0 20px;
    background: #16B1B7;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.btn_sms:hover {
    background: #138f94;
}

.btn_sms:disabled {
    background: #ccc;
    cursor: not-allowed;
}

select.form_control {
    appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-color: #fff;
}

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

.checkbox_label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.checkbox_label input {
    margin-right: 8px;
}

.checkbox_label a {
    color: #16B1B7;
}

.forgot_link {
    font-size: 14px;
    color: #16B1B7;
}

.forgot_link:hover {
    text-decoration: underline;
}

/* 提示消息 */
.alert {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert_error {
    background: #fef0f0;
    border: 1px solid #fde2e2;
    color: #f56c6c;
}

.alert_success {
    background: #f0f9eb;
    border: 1px solid #e1f3d8;
    color: #67c23a;
}

/* 字段错误提示 */
.field_error {
    display: block;
    color: #f56c6c;
    font-size: 12px;
    margin-top: 5px;
}

.form_control.error,
.form_group input.error,
.form_group select.error {
    border-color: #f56c6c;
}

/* 页脚 */
.auth_footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth_footer p {
    color: #999;
    font-size: 14px;
}

.auth_footer a {
    color: #16B1B7;
    font-weight: bold;
}

.auth_footer a:hover {
    text-decoration: underline;
}

/* ==================== 通用按钮 ==================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.3s;
}

.btn_primary {
    background: #16B1B7;
    color: #fff;
}

.btn_primary:hover {
    background: #138f94;
}

.btn_default {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.btn_default:hover {
    background: #eee;
}

.btn_block {
    display: block;
    width: 100%;
}

/* ==================== 响应式 ==================== */
@media screen and (max-width: 768px) {
    .member_page {
        padding: 20px 0;
    }

    /* 注册入口 */
    .register_section {
        padding: 30px 0;
        min-width: 0;
        overflow-x: hidden;
    }

    .register_cards {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .register_card {
        width: 100%;
        padding: 30px 20px;
    }

    /* 登录/注册 */
    .auth_container {
        padding: 15px;
    }
    
    .auth_box,
    .auth_box.auth_box_wide {
        width: 100%;
        padding: 25px 15px;
    }

    .auth_header h2 {
        font-size: 20px;
    }
    
    .form_row {
        flex-direction: column;
        gap: 0;
    }
    
    .form_group.form_half {
        flex: none;
    }

    .form_control {
        height: 40px;
        font-size: 14px;
    }

    .input_with_btn {
        flex-direction: column;
        gap: 8px;
    }

    .btn_sms {
        width: 100%;
        padding: 10px;
    }

    /* 弹窗 */
    .modal_box {
        width: 95%;
        max-height: 85vh;
    }

    .modal_body {
        padding: 20px 15px;
    }

    .charter_wrap {
        max-height: 400px;
    }

    /* 个人中心 */
    .profile_container {
        flex-direction: column;
        gap: 15px;
    }

    .profile_sidebar {
        width: 100%;
    }

    .content_section {
        padding: 20px 15px;
    }

    .info_table {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .info_row .label {
        width: 80px;
    }

    /* 数据表格横向滚动 */
    .data_table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .data_table th,
    .data_table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* 修改密码 */
    .change_password_container {
        max-width: 100%;
    }

    .form_card {
        padding: 25px 15px;
    }

    .form_actions {
        flex-direction: column;
    }

    .form_actions .btn_secondary {
        width: 100%;
    }

    /* 按钮 */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn_block {
        font-size: 16px;
    }
}

/* ==================== 响应式 - 小屏手机 (<=480px) ==================== */
@media screen and (max-width: 480px) {
    .register_card {
        padding: 25px 15px;
    }

    .card_label {
        font-size: 18px;
    }

    .card_icon {
        width: 70px;
        height: 70px;
    }

    .auth_header h2 {
        font-size: 18px;
    }

    .modal_body {
        padding: 15px 12px;
    }

    .page_title h2 {
        font-size: 22px;
    }

    .user_info_card {
        padding: 20px 15px;
    }

    .content_section h3 {
        font-size: 16px;
    }
}

/* ==================== 个人中心页面 ==================== */
.page_title {
    margin-bottom: 30px;
}

.page_title h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 14px;
    color: #999;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #16B1B7;
}

.profile_container {
    display: flex;
    gap: 30px;
}

.profile_sidebar {
    width: 260px;
    flex-shrink: 0;
}

.user_info_card {
    background: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.user_info_card .avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
}

.user_info_card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user_info_card .user_name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.user_info_card .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.user_info_card .badge.normal {
    background: #e8e8e8;
    color: #666;
}

.user_info_card .badge.personal {
    background: #e6f7ff;
    color: #1890ff;
}

.user_info_card .badge.org {
    background: #f6ffed;
    color: #52c41a;
}

.profile_menu {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.profile_menu li {
    border-bottom: 1px solid #f5f5f5;
}

.profile_menu li:last-child {
    border-bottom: none;
}

.profile_menu li a {
    display: block;
    padding: 15px 25px;
    color: #333;
    transition: all 0.3s;
}

.profile_menu li a:hover,
.profile_menu li.active a {
    background: #f0fafa;
    color: #16B1B7;
    border-left: 3px solid #16B1B7;
}

.profile_content {
    flex: 1;
}

.content_section {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.content_section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* 信息表格 */
.info_table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
}

.info_row {
    display: flex;
}

.info_row .label {
    width: 100px;
    color: #999;
    flex-shrink: 0;
}

.info_row .value {
    color: #333;
}

.status_pending {
    color: #faad14 !important;
}

.status_approved {
    color: #52c41a !important;
}

.status_rejected {
    color: #f5222d !important;
}

.empty_tip {
    text-align: center;
    padding: 30px;
    background: #fafafa;
    border-radius: 5px;
    margin-top: 20px;
}

.empty_tip a {
    color: #16B1B7;
}

/* 数据表格 */
.data_table {
    width: 100%;
    border-collapse: collapse;
}

.data_table th,
.data_table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.data_table th {
    background: #fafafa;
    font-weight: 500;
    color: #666;
}

.data_table tbody tr:hover {
    background: #f9f9f9;
}

/* ==================== 修改密码页面 ==================== */
.change_password_container {
    max-width: 500px;
    margin: 0 auto;
}

.form_card {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form_card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.change_password_form .form_group {
    margin-bottom: 25px;
}

.change_password_form label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

.change_password_form input[type="password"] {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.change_password_form input[type="password"]:focus {
    border-color: #16B1B7;
    outline: none;
}

.form_actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form_actions .btn_primary {
    flex: 1;
    height: 45px;
    background: #16B1B7;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.form_actions .btn_primary:hover {
    background: #138f94;
}

.form_actions .btn_secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    height: 45px;
    background: #f5f5f5;
    color: #666;
    border-radius: 5px;
    transition: background 0.3s;
}

.form_actions .btn_secondary:hover {
    background: #e8e8e8;
}

/* ==================== 响应式 - 个人中心 ==================== */
@media screen and (max-width: 992px) {
    .profile_container {
        flex-direction: column;
    }
    
    .profile_sidebar {
        width: 100%;
    }
    
    .info_table {
        grid-template-columns: 1fr;
    }

    .profile_menu {
        display: flex;
        flex-wrap: wrap;
    }

    .profile_menu li {
        border-bottom: none;
        border-right: 1px solid #f5f5f5;
    }

    .profile_menu li a {
        padding: 12px 18px;
        font-size: 14px;
    }
}

/* ==================== 下载链接样式 ==================== */
.download_link {
    margin-top: 10px;
}

.btn_download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #16B1B7 0%, #1a8a8f 100%);
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(22, 177, 183, 0.3);
}

.btn_download:hover {
    background: linear-gradient(135deg, #138f94 0%, #156f73 100%);
    box-shadow: 0 4px 12px rgba(22, 177, 183, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.btn_download:active {
    transform: translateY(0);
}

.download_icon {
    font-size: 16px;
}

.form_text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}
