/* ==========================================================================
   基本重置和全局设置
   ========================================================================== */
:root {
    --primary-color: #67ab30; /* 主题色，漂亮的绿色 */
    --secondary-color: #6c757d; /* 次要颜色 */
    --background-color: #f0f2f5; /* 页面背景色 */
    --text-color: #333;
    --text-light-color: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Hiragino Sans GB', 'SimSun', '宋体', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* ==========================================================================
   主容器和页面切换
   ========================================================================== */
.site-container {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

.page-section {
    display: none; /* 默认隐藏所有页面 */
    min-height: 100vh;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

.page-section.active {
    display: flex; /* 使用flex布局来更好地控制内部结构 */
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   通用按钮样式
   ========================================================================== */
.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #45a049; /* 主题色的深色悬停效果 */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light-color);
    border: 2px solid var(--text-light-color);
}

.btn-secondary:hover {
    background-color: var(--text-light-color);
    color: var(--text-color);
    transform: translateY(-2px);
}


/* ==========================================================================
   首页 (#page-home) 样式
   ========================================================================== */
#page-home {
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    color: var(--text-color);
    background: 
        url('../../imgs/home_bg_mobile.jpg') no-repeat top center,
        linear-gradient(to bottom, #FFFFFF, #fefefe);
    background-size: contain, cover;
    position: relative;
    padding-top: 32vh;
    min-height: 100vh;
}



.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    transform: translateY(-1vh);
}

#page-home .logo {
    max-width: 250px;
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* 首页按钮特殊样式 */
#page-home .action-buttons .btn {
    background-color: var(--primary-color);
    color: var(--text-light-color);
    border: none;
    border-radius: 8px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 250px;
    text-transform: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(103, 171, 48, 0.4);
    transition: all 0.3s ease;
}

#page-home .action-buttons .btn:hover {
    background-color: #5a9629;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(103, 171, 48, 0.5);
}

/* ==========================================================================
   通用页面头部和页脚
   ========================================================================== */
.page-header {
    background: linear-gradient(to bottom right, #ffffff, #f2f3ee);
    background-image: url('../../imgs/top_bg.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    padding: 20px 5%;
    min-height: 200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

/* PC端增加头部高度以完整显示背景图片 */
@media (min-width: 768px) {
    .page-header {
        padding: 40px 5%;
        min-height: 280px;
    }
}

/* 大屏幕进一步优化 */
@media (min-width: 1200px) {
    .page-header {
        padding: 50px 5%;
        min-height: 320px;
    }
}

.page-header p {
    font-size: 0.9rem;
    color: #666;
}

.logo-small {
    height: 40px;
}

.page-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.page-footer {
    background: linear-gradient(135deg, #fefefe 0%, #e7e4dd 100%) !important;
    color: #000000 !important;
    text-align: center !important;
    font-size: 0.9rem;
    flex-shrink: 0;
    min-height: 120px;
    display: flex;
    justify-content: center;
}

.footer-content {
    max-width: 1000px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    font-family: "Microsoft YaHei", "SimHei", "黑体", sans-serif;
    font-weight: bold;
}

.footer-content img {
    max-width: 1000px;
    width: 100%;
    height: auto;
}

footer {
    background: linear-gradient(135deg, #fefefe 0%, #e7e4dd 100%) !important;
    color: #000000 !important;
    text-align: center !important;
    font-size: 0.9rem;
    flex-shrink: 0;
    min-height: 120px;
}

/* PC端页脚样式优化 */
@media (min-width: 768px) {
    .page-footer,
    footer {
        min-height: 150px;
    }
}

/* 大屏幕进一步优化 */
@media (min-width: 1200px) {
    .page-footer,
    footer {
        min-height: 180px;
    }
}

/* ==========================================================================
   表单和问卷通用样式
   ========================================================================== */

/* 基本资料页面样式 */
#page-basic-info .page-header {
    background: #ffffff; /* 白色背景 */
    background-image: url('../../imgs/top_bg.jpg'); /* 保留banner图片 */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

/* 问卷调查页面样式 */
#page-questionnaire .page-header {
    background: #ffffff; /* 白色背景 */
    background-image: url('../../imgs/top_bg.jpg'); /* 保留banner图片 */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

/* 基本资料页面：隐藏手机号和验证码字段（已在简化注册中填写） */
#page-basic-info .mobile-field,
#page-basic-info .sms-group {
    display: none !important;
}
.page-title {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.page-title h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #555;
}

.form-wrapper {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
}

.form-content {
    padding: 0.5rem 2rem;
}

.form-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #888;
    /* margin-top: 2rem; */
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.form-group label {
    margin-bottom: 0;
    font-weight: 500;
    font-size: 0.9rem;
    min-width: 180px;
    flex-shrink: 0;
    text-align: right;
}

.form-group input,
.form-group select {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.25); /* 匹配主题色的高亮效果 */
}

/* 包含提示的表单组使用垂直布局 */
.form-group:has(.form-hint) {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.form-group:has(.form-hint) label {
    text-align: left;
    min-width: auto;
}

/* 表单提示文字样式 */
.form-hint {
    font-size: 0.8rem;
    color: #666;
    margin: 0.5rem 0 1rem 0;
    line-height: 1.4;
    padding: 0.5rem;
    background-color: #f0f8f0;
    border-left: 3px solid #67ab30;
    border-radius: 0 4px 4px 0;
}

/* 隐私政策提示样式 */
.form-hint.privacy-hint {
    background-color: #f0f8f0;
    border-left: 3px solid #67ab30;
    color: #2d5016;
    font-weight: 500;
    padding: 0.75rem;
    margin: 0.75rem 0 1.5rem 0;
}

/* PC版本：提示语与输入框对齐 */
@media (min-width: 768px) {
    .form-hint {
        margin-left: calc(180px + 1rem); /* 标签宽度 + gap */
    }

    /* 确保隐私政策提示也对齐 */
    .form-hint.privacy-hint {
        margin-left: calc(180px + 1rem); /* 标签宽度 + gap */
        margin-top: 0.75rem;
        margin-bottom: 1.5rem;
        margin-right: 0;
    }
}

.btn-submit {
    width: 100%;
    margin-top: 2rem;
    padding: 1rem;
    font-size: 1.1rem;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-buttons .btn {
    flex: 1;
    padding: 1rem;
    font-size: 1.1rem;
}

.form-buttons .btn-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    background-color: transparent;
}

.form-buttons .btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-light-color);
}

/* ==========================================================================
   简化注册/登录页面样式
   ========================================================================== */
#page-reg-login {
    background: #f8f9fa;
}

#page-reg-login .page-header {
    background-size: contain; /* 显示完整的banner图片 */
    background-position: center center;
    min-height: 200px; /* 确保有足够高度显示完整图片 */
}

/* PC端增加高度以更好显示完整banner */
@media (min-width: 768px) {
    #page-reg-login .page-header {
        min-height: 300px;
    }
}

/* 大屏幕进一步优化 */
@media (min-width: 1200px) {
    #page-reg-login .page-header {
        min-height: 350px;
    }
}

#page-reg-login .page-content {
    background: #f8f9fa;
    min-height: calc(100vh - 480px); /* 确保有足够高度 */
}

.simple-reg-login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.simple-reg-login-wrapper {
    background: white;
    border-radius: 0px;
    border: 2px solid #cccccc;
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
}

/* PC版：左右分栏 */
@media (min-width: 768px) {
    .simple-reg-login-wrapper {
        flex-direction: row;
        min-height: 400px;
    }
    
    .reg-section, .login-section {
        flex: 1;
        padding: 3rem 2rem;
        background: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .reg-section {
        align-items: flex-start;
        padding-left: 4rem;
        position: relative;
    }
    
    .reg-section::after {
        content: '';
        position: absolute;
        right: 0;
        top: 15%;
        bottom: 15%;
        width: 1px;
        border-right: 1px dashed #999999;
    }
    
    .login-section {
        align-items: center;
    }
    
    .reg-section .section-title,
    .login-section .section-title {
        margin-bottom: 2rem;
        width: 100%;
    }
    
    .reg-section .simple-form,
    .login-section .simple-form {
        width: 100%;
        max-width: 380px;
    }
    
    .login-section .simple-form {
        gap: 2rem;
    }
}

/* Mobile版：上下分栏 */
@media (max-width: 767px) {
    .simple-reg-login-wrapper {
        flex-direction: column;
    }
    
    .reg-section, .login-section {
        padding: 2rem 1.5rem;
        background: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .reg-section {
        position: relative;
    }
    
    .reg-section::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 15%;
        right: 15%;
        height: 1px;
        border-bottom: 1px dashed #999999;
    }
        
    .reg-section .section-title,
    .login-section .section-title {
        margin-bottom: 2rem;
        width: 100%;
    }
    
    .reg-section .simple-form,
    .login-section .simple-form {
        width: 100%;
        max-width: 380px;
    }
    
    .login-section .simple-form {
        gap: 2rem;
    }
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

.simple-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-section .simple-form {
    gap: 2rem;
}

/* 导航按钮样式 */
.page-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0 2rem;
}

.page-navigation .btn {
    flex: 1;
    max-width: 200px;
}

.page-navigation .btn-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    background-color: transparent;
}

.page-navigation .btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-light-color);
}

/* 禁用状态的按钮样式 */
.page-navigation .btn:disabled {
    background-color: #ccc;
    color: #666;
    border-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-navigation .btn:disabled:hover {
    background-color: #ccc;
    color: #666;
    transform: none;
}

.login-zh-fields,
.login-en-fields,
.simple-reg-zh-fields,
.simple-reg-en-fields {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    width: 100%;
}

.simple-form .form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.simple-form .form-group input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.simple-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.simple-form .form-group input::placeholder {
    color: #999;
    font-size: 0.95rem;
}

/* 添加图标样式 */
.simple-form .form-group::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: #999;
    z-index: 1;
}

/* 针对包含额外内容的form-group，图标定位到输入框中心 */
.simple-form .form-group.mobile-with-hint::before {
    top: 1.3rem; /* 输入框中心位置：padding(0.8rem) + 字体高度一半(0.5rem) */
    transform: translateY(-50%);
}

/* 针对包含短信按钮的form-group */
.simple-form .form-group.mobile-with-button::before,
.simple-form .form-group:has(.btn-sms)::before {
    top: 1.3rem;
    transform: translateY(-50%);
}

/* 手机图标 */
.simple-form .form-group.mobile-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23999' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* 用户图标 */
.simple-form .form-group.user-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23999' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* 联系方式图标（邮箱+手机） */
.simple-form .form-group.contact-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23999' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.simple-form .form-group label {
    display: none;
}

/* 联系方式提示样式 */
.contact-info-hint {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background-color: #f0f8f0;
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    text-align: center;
}

/* 登录页面联系信息提示样式 */
.login-contact-hint {
    font-size: 0.85rem;
    color: #555;
    margin: -1.2rem 0 0.8rem 0; /* 使用负边距抵消父容器的gap，让提示紧贴输入框 */
    padding: 0.6rem 0.8rem;
    background-color: #e8f5e8;
    border-left: 3px solid var(--primary-color);
    border-radius: 3px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 手机号推荐提示 */
.mobile-preferred-hint {
    font-size: 0.8rem;
    color: #28a745;
    font-weight: 500;
    margin-top: 0.25rem;
    display: none;
}

.form-group:has(input[type="tel"]) .mobile-preferred-hint {
    display: block;
}

.simple-form .btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--primary-color);
    color: white;
}

.simple-form .btn:hover {
    background: #5a9629;
    transform: translateY(-1px);
}

.simple-form .form-group .btn-sms {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.simple-form .form-group .btn-sms:hover {
    background: #5a9629;
    transform: translateY(-50%) translateY(-1px);
}

.simple-form .form-group:has(.btn-sms) {
    position: relative;
}

.simple-form .form-group:has(.btn-sms) input {
    padding-right: 100px;
}

/* 移动端优化：减小按钮尺寸以显示更多placeholder文字 */
@media (max-width: 480px) {
    .simple-form .form-group .btn-sms {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        right: 6px;
    }
    
    .simple-form .form-group:has(.btn-sms) input {
        padding-right: 85px; /* 减少右边距，给placeholder更多空间 */
        font-size: 0.9rem; /* 稍微减小字体大小 */
    }
    
    /* 针对更小屏幕的进一步优化 */
    .simple-form .form-group:has(.btn-sms) input::placeholder {
        font-size: 0.85rem; /* placeholder字体更小 */
        color: #999;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .simple-form .form-group .btn-sms {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        right: 4px;
    }
    
    .simple-form .form-group:has(.btn-sms) input {
        padding-right: 75px;
        font-size: 0.85rem;
    }
}

.simple-back-button-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 0 2rem;
    width: 100%;
}

.simple-back-button-container .btn {
    min-width: 150px;
    padding: 0.8rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    border: 2px solid #6c757d;
    background-color: transparent;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
}

.simple-back-button-container .btn:hover {
    background-color: #6c757d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
}

.simple-back-button-container .btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* 添加返回图标 */
.simple-back-button-container .btn::before {
    content: '←';
    margin-right: 0.5rem;
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.simple-back-button-container .btn:hover::before {
    transform: translateX(-2px);
}

/* ==========================================================================
   注册/登录页面 (#page-reg-login) 特定样式
   ========================================================================== */
.tab-buttons {
    display: flex;
    background-color: #e9ecef;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background-color: transparent;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--primary-color);
    background-color: #fff;
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

.sms-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.sms-group label {
    min-width: 180px;
    flex-shrink: 0;
    margin-bottom: 0;
    text-align: right;
}

.sms-input-group {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex: 1;
}

.sms-input-group input {
    flex-grow: 1;
}

.sms-input-group button {
    min-width: 120px;
    padding: 0.75rem;
    color: var(--text-color);
    border: 2px solid #ccc;
}

.sms-input-group button:hover {
    background-color: #e9ecef;
}

.privacy-policy {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.privacy-policy-text {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: #495057;
    font-size: 0.85rem;
}

.privacy-policy .checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.privacy-policy input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* 隐私政策checkbox验证失败时的样式 */
.privacy-policy input[type="checkbox"]:invalid {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

.privacy-policy input[type="checkbox"]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.privacy-policy label {
    cursor: pointer;
    line-height: 1.4;
}

/* ==========================================================================
   问卷调查页面 (#page-questionnaire) 样式
   ========================================================================== */
#page-questionnaire .form-wrapper {
    max-width: 900px;
}

.question-group {
    margin-bottom: 2.5rem;
}

.question-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #333;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.checkbox-grid,
.radio-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.checkbox-grid .option,
.radio-grid .option {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.checkbox-grid .option:hover,
.radio-grid .option:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15); /* 匹配主题色的高亮效果 */
}

.option input[type="checkbox"],
.option input[type="radio"] {
    margin-right: 0.75rem;
    appearance: none;
    -webkit-appearance: none;
    width: 1.2em;
    height: 1.2em;
    border: 2px solid #999;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.option input[type="checkbox"] {
    border-radius: 4px;
}

.option input[type="radio"]:checked,
.option input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.option input[type="radio"]:checked::after {
    content: '';
    display: block;
    width: 0.6em;
    height: 0.6em;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.option input[type="checkbox"]:checked::after {
    content: '✔';
    display: block;
    color: white;
    font-size: 0.9em;
    line-height: 1.2em;
    text-align: center;
}

.option label {
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
}

/* ==========================================================================
   问卷"其他"输入框样式
   ========================================================================== */
.option-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* 禁用选项样式 */
.option-container.option-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.option-container.option-disabled .option {
    cursor: not-allowed;
    background-color: #f5f5f5 !important;
    border-color: #ddd !important;
}

.option-container.option-disabled .option:hover {
    border-color: #ddd !important;
    box-shadow: none !important;
}

.option-container.option-disabled input[disabled] {
    cursor: not-allowed;
}

.option-container.option-disabled label {
    color: #999 !important;
    cursor: not-allowed;
}

.other-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #333;
    background-color: #fafafa;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    font-family: var(--font-family);
}

.other-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    transform: translateY(-1px);
}

.other-input::placeholder {
    color: #999;
    font-style: italic;
}

.other-input.hidden {
    display: none;
}

/* 必填的其他输入框样式 */
.other-input[required] {
    border-color: #ff6b6b;
    background-color: #fff5f5;
}

.other-input[required]:focus {
    border-color: #ff4757;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* 为包含"其他"输入框的选项容器添加特殊样式 */
.option-container:has(.other-input:not(.hidden)) {
    background-color: #f8fff8;
    border: 2px solid rgba(76, 175, 80, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
}

/* 当"其他"输入框显示时，调整选项的样式 */
.option-container:has(.other-input:not(.hidden)) .option {
    background-color: transparent;
    border: none;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

/* 响应式设计 */
/* 平板和小屏幕设备 */
@media (max-width: 768px) {
    .form-grid {
        gap: 1.3rem;
    }

    .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .form-group label {
        min-width: auto;
        text-align: left;
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
        font-weight: 500;
    }

    .form-group input,
    .form-group select {
        width: 100%;
        padding: 0.75rem;
        border-radius: 5px;
    }
}

/* 手机设备 */
@media (max-width: 480px) {
    .other-input {
        padding: 0.7rem;
        font-size: 0.95rem;
    }

    .option-container:has(.other-input:not(.hidden)) {
        padding: 0.8rem;
        margin: 0.3rem 0;
    }

    /* 移动端基础信息表单样式 */
    .form-grid {
        gap: 1.2rem;
    }

    .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
    }

    .form-group label {
        min-width: auto;
        text-align: left;
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
        font-weight: 600;
    }

    .form-group input,
    .form-group select {
        width: 100%;
        padding: 0.8rem;
        font-size: 1rem;
        border-radius: 6px;
    }
}

/* ==========================================================================
   成功/个人资料页面 (#page-success) 样式
   ========================================================================== */
/* 成功页面page-header样式，与问卷调查页面保持一致 */
#page-success .page-header {
    background: #ffffff; /* 白色背景 */
    background-image: url('../../imgs/top_bg.jpg'); /* 保留banner图片 */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.profile-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 1000px; /* 缩小宽度 */
    padding: 3rem; /* 适当减少内边距 */
    text-align: left; /* 改为左对齐，适合流式布局 */
}

.profile-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
    text-align: left; /* 改为左对齐 */
}

.profile-header h2 {
    font-size: 2rem; /* 增大标题字体 */
    color: var(--primary-color);
    margin-bottom: 1rem; /* 增加下边距 */
    font-weight: 700; /* 加粗标题 */
}

.profile-header p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

/* 展会活动报名提示样式 */
.event-registration-notice {
    background: linear-gradient(135deg, #fff8e7 0%, #fff2cc 100%);
    border: 2px solid #f39c12;
    border-radius: 12px;
    margin: 2rem 0;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.15);
}

.notice-content {
    text-align: left;
}

.notice-item {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.notice-item strong {
    color: #d35400;
    font-weight: 700;
}

.notice-link {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.notice-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: block;
    line-height: 1.5;
}

.notice-link a:hover {
    text-decoration: underline;
    color: #519920;
}

.notice-actions {
    margin: 2rem 0 2rem 0;
    text-align: center;
}

.notice-actions .btn {
    font-size: 1.1rem;
    padding: 12px 24px;
    min-width: 120px;
}

.profile-details {
    margin-bottom: 3rem;
}

.detail-item {
    display: flex;
    flex-direction: column; /* 改为垂直布局 */
    padding: 1.5rem 0; /* 增加垂直内边距 */
    border-bottom: 1px solid #f0f0f0;
    gap: 0.8rem; /* 标签和值之间的间距 */
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.detail-value {
    font-weight: 500;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.4;
}

.barcode-item .detail-value {
    font-size: 1.8rem; /* 增大字体 */
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 3px; /* 增加字符间距 */
    background: #f8f9fa; /* 添加背景色 */
    padding: 1rem 1.5rem; /* 添加内边距 */
    border-radius: 8px; /* 添加圆角 */
    border: 2px solid var(--primary-color); /* 添加边框 */
    display: inline-block; /* 使背景色只包围文字 */
    margin-top: 0.5rem;
}

.qr-code-container {
    display: flex;
    flex-direction: column; /* 改为垂直布局 */
    align-items: center;
    gap: 2.5rem; /* 垂直间距 */
    margin-bottom: 3rem;
}

.qr-code-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px; /* 限制每个二维码项的最大宽度 */
    text-align: center;
}

.qr-code-item img {
    width: 200px; /* 增大二维码尺寸 */
    height: 200px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

#qr-registration {
    width: 200px; /* 增大二维码尺寸 */
    height: 200px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

#qr-registration img {
    width: 100% !important;
    height: 100% !important;
    border: none;
    margin: 0;
}

.qr-code-item p {
    font-size: 1rem; /* 增大字体 */
    color: #666;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.5;
    max-width: 400px; /* 限制文字宽度 */
}

.contact-info {
    margin: 2rem 0;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.contact-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    line-height: 1.6;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item span:first-child {
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.contact-item span:last-child {
    color: #555;
    font-size: 0.95rem;
}

.profile-actions {
    margin-top: 2rem;
    text-align: center; /* 确保按钮居中 */
}

.profile-actions .btn-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.profile-actions .btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-light-color);
}

/* ==========================================================================
   消息提示框样式
   ========================================================================== */
.message-container {
    padding: 0;
    margin-top: 1rem;
}

.message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.3s;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================================================
   通用响应式设计
   ========================================================================== */
.hidden {
    display: none !important;
}

/* 字段提示样式 */
.field-hint {
    font-size: 0.85em;
    color: #666;
    margin-top: 0.5rem;
    line-height: 1.4;
    padding: 0.5rem;
    background-color: #f0f8f0;
    border-left: 3px solid #67ab30;
    border-radius: 0 4px 4px 0;
}

@media (min-width: 768px) {

    .form-grid {
        /* 保持流式布局，不使用网格 */
    }

    .form-group.full-width {
        /* 流式布局下不需要网格列设置 */
    }

    /* 流式布局下的样式调整 */
    .mobile-field {
        /* 流式布局下不需要网格列设置 */
    }

    .sms-group {
        /* 保持流式布局 */
    }

    .sms-input-group {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .sms-input-group input {
        flex: 1;
    }

    .sms-input-group button {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .checkbox-grid,
    .radio-grid {
        gap: 0.6rem;
    }

    .qr-code-container {
        flex-direction: column;
        align-items: center;
    }

    .page-header {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    /* 移动端表单组垂直布局 */
    .form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .form-group label {
        min-width: auto;
        width: 100%;
    }

    .sms-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .sms-group label {
        min-width: auto;
        width: 100%;
    }

    .sms-input-group {
        width: 100%;
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* ==========================================================================
   HUD 提示框样式
   ========================================================================== */
.hud-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    z-index: 9999;
    min-width: 300px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: hudFadeIn 0.3s ease-out;
}

.hud-notification.success {
    background: rgba(76, 175, 80, 0.9);
    border-color: rgba(76, 175, 80, 0.3);
}

.hud-notification.error {
    background: rgba(244, 67, 54, 0.9);
    border-color: rgba(244, 67, 54, 0.3);
}

.hud-notification.info {
    background: rgba(33, 150, 243, 0.9);
    border-color: rgba(33, 150, 243, 0.3);
}

.hud-notification.warning {
    background: rgba(255, 152, 0, 0.9);
    border-color: rgba(255, 152, 0, 0.3);
}

@keyframes hudFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes hudFadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.hud-notification.fade-out {
    animation: hudFadeOut 0.3s ease-in forwards;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .hud-notification {
        min-width: 280px;
        padding: 1.2rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* 成功页面移动端适配 */
    #page-success .page-content {
        max-width: 100%;
        padding: 1rem;
    }
    
    .profile-card {
        max-width: 100%;
        padding: 2rem;
    }
    
    .qr-code-container {
        gap: 2rem; /* 移动端适中间距 */
    }
    
    .qr-code-item img,
    #qr-registration {
        width: 180px; /* 移动端稍小的二维码 */
        height: 180px;
    }
    
    .detail-item {
        padding: 1rem 0; /* 移动端减少间距 */
    }
}

/* ==========================================================================
   Loading 遮罩样式
   ========================================================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    min-width: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
}

/* 提交按钮禁用状态 */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.submitting {
    position: relative;
    color: transparent;
}

.btn.submitting::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
/* Banner图片样式 */
.banner-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 0;
    max-width: 1000px;
}

/* 确保page-header没有多余的padding和margin */
#page-reg-login .page-header {
    padding: 0;
    margin: 0;
    min-height: auto;
    background: none;
    box-shadow: none;
}

/* 移动端优化 */
@media (max-width: 767px) {
    .banner-image {
        width: 100%;
        height: auto;
    }

    #page-reg-login .page-header {
        padding: 0;
        margin: 0;
    }
}

/* 基本资料页面样式 - 添加banner图片处理 */
#page-basic-info .page-header {
    padding: 0;
    margin: 0;
    min-height: auto;
    background: none;
    box-shadow: none;
}
/* 问卷调查页面样式 - 添加banner图片处理 */
#page-questionnaire .page-header {
    padding: 0;
    margin: 0;
    min-height: auto;
    background: none;
    box-shadow: none;
}

/* 成功页面样式 - 添加banner图片处理 */
#page-success .page-header {
    padding: 0;
    margin: 0;
    min-height: auto;
    background: none;
    box-shadow: none;
}

#page-pending .page-header {
    padding: 0;
    margin: 0;
    min-height: auto;
    background: none;
    box-shadow: none;
}