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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.input-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    min-height: 18px;
    display: none;
}

.input-error.show {
    display: block;
}

.form-input.error {
    border-color: #e74c3c;
}


/* ============================================
   2. 页面头部样式
   ============================================ */
.header {
    background: white;
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #F29600;
}


/* ============================================
   3. 多语言选择器
   ============================================ */
.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.language-selector label {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    color: #7b7a7a;
}

.language-selector select {
    background: white;
    color: #333;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    min-width: 100px;
}

.language-selector select:hover {
    background: #f0f0f0;
}

.language-selector select:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}


/* ============================================
   4. 表单容器
   ============================================ */
.form-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.form-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.form-subtitle {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.form-subtitle a {
    color: #F29600;
    text-decoration: none;
}

.form-subtitle a:hover {
    text-decoration: underline;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #F29600;
    margin: 40px 0 25px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #F29600;
}

.section-title:first-of-type {
    margin-top: 0;
}


/* ============================================
   5. 表单组布局
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

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

.required {
    color: #dc3545;
    margin-left: 4px;
}


/* ============================================
   6. 输入框和选择器 - 统一样式
   ============================================ */
.form-input,
.form-select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
    color: #333;
}

/* 日期输入框 */
input[type="date"].form-input {
    height: 48px;
    padding: 0 16px;
    line-height: 48px;
}

input[type="date"].form-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

input[type="date"].form-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* 聚焦状态 */
.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #F29600;
    background: white;
    box-shadow: 0 0 0 3px rgba(242, 150, 0, 0.1);
}

/* 禁用和只读状态 */
.form-input:disabled,
.form-input:read-only {
    background: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}


/* ============================================
   7. 郵便番号搜索组
   ============================================ */
.postal-code-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.postal-code-group .form-input {
    flex: 1;
}

.search-address-btn {
    height: 48px;
    padding: 0 20px;
    background: #F29600;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-address-btn:hover {
    background: #d17a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 150, 0, 0.3);
}


/* ============================================
   8. APP选择器
   ============================================ */
.app-selection-wrapper {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
    align-items: start;
}

.app-type-select {
    width: 100%;
}


/* ============================================
   9. LINE认证部分
   ============================================ */
.line-follow-section {
    display: none;
    margin-top: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6cc 100%);
    border: 2px solid #F29600;
    border-radius: 12px;
}

.line-follow-section.show {
    display: block;
}

.line-step {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #06C755;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.line-step:last-of-type {
    margin-bottom: 0;
}

.line-step-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.line-step-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.line-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #06C755;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 16px;
}

.line-follow-btn:hover {
    background: #05B04D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

.line-status {
    display: none;
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.line-status.show {
    display: flex;
    align-items: center;
    gap: 8px;
}

.line-status.verified {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.line-status.error {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

.line-status.waiting {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffe0b2;
}


/* ============================================
   10. WeChat认证部分
   ============================================ */
.wechat-follow-section {
    display: none;
    margin-top: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #e6f7e6 0%, #ccf0cc 100%);
    border: 2px solid #07C160;
    border-radius: 12px;
}

.wechat-follow-section.show {
    display: block;
}

.wechat-step {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #07C160;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.wechat-step:last-of-type {
    margin-bottom: 0;
}

.wechat-step-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.wechat-step-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.wechat-qrcode-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.wechat-qrcode {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 10px;
}

.wechat-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qrcode-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #666;
}

.wechat-status {
    display: none;
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.wechat-status.show {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wechat-status.verified {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.wechat-status.error {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

.wechat-status.waiting {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffe0b2;
}

/* ============================================
   10. kakao认证部分
   ============================================ */
.kakao-follow-section {
    display: none;
    margin-top: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #e6f7e6 0%, #ccf0cc 100%);
    border: 2px solid #07C160;
    border-radius: 12px;
}

.kakao-follow-section.show {
    display: block;
}

.kakao-step {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #07C160;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.kakao-step:last-of-type {
    margin-bottom: 0;
}

.kakao-step-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.kakao-step-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.kakao-qrcode-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.kakao-qrcode {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 10px;
}

.kakao-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qrcode-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #666;
}

.kakao-status {
    display: none;
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.kakao-status.show {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kakao-status.verified {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.kakao-status.error {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

.kakao-status.waiting {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffe0b2;
}

/* ============================================
   11. 验证码输入组件
   ============================================ */
.verification-input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.verification-code-input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 4px;
    text-align: center;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.verification-code-input:focus {
    outline: none;
    border-color: #06C755;
    box-shadow: 0 0 0 3px rgba(6, 199, 85, 0.1);
}

.verification-code-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.verify-btn {
    height: 48px;
    padding: 0 24px;
    background: #06C755;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 15px;
}

.verify-btn:hover:not(:disabled) {
    background: #05B04D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

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


/* ============================================
   12. 申込者カテゴリー选择
   ============================================ */
.category-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.category-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
    min-height: 56px;
}

.category-option:hover {
    border-color: #F29600;
    background: #fff5e6;
}

.category-option.selected {
    border-color: #F29600;
    background: #F29600;
    color: white;
}

.category-option label {
    cursor: pointer;
    margin: 0;
}


/* ============================================
   13. 条件显示部分（学校/公司信息）
   ============================================ */
.conditional-section {
    display: none;
}

.conditional-section.active {
    display: block;
}


/* ============================================
   14. 同居者选择和信息
   ============================================ */
.roommate-count-selection {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.roommate-count-option {
    flex: 0 0 auto;
    min-width: 70px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

.roommate-count-option:hover {
    border-color: #F29600;
    background: #fff5e6;
}

.roommate-count-option.selected {
    border-color: #F29600;
    background: #F29600;
    color: white;
}

.roommate-count-option label {
    cursor: pointer;
    margin: 0;
}

.roommate-section {
    display: none;
    margin-top: 25px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.roommate-section.active {
    display: block;
}

.roommate-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #F29600;
}


/* ============================================
   15. 文件上传
   ============================================ */
.file-upload-area {
    border: 2px dashed #e9ecef;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #F29600;
    background: #fff5e6;
}

.file-upload-area.dragover {
    border-color: #F29600;
    background: #fff5e6;
}

.file-upload-icon {
    font-size: 48px;
    color: #F29600;
    margin-bottom: 15px;
}

.file-upload-text {
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.file-upload-hint {
    font-size: 12px;
    color: #999;
}

.file-input {
    display: none;
}

.file-preview {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 13px;
}

.file-remove {
    color: #dc3545;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
}

.file-remove:hover {
    color: #a71d2a;
}

.photo-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.photo-category {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    background: white;
}

.photo-category-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    font-size: 15px;
}


/* ============================================
   16. 提交按钮
   ============================================ */
.submit-btn {
    width: 100%;
    height: 56px;
    padding: 0 32px;
    background: linear-gradient(135deg, #F29600 0%, #d17a00 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 40px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 150, 0, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}


/* ============================================
   17. 加载动画
   ============================================ */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #F29600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.waiting-animation {
    animation: pulse 1.5s ease-in-out infinite;
}


/* ============================================
   18. 加载弹窗
   ============================================ */
.loading-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.loading-modal.show {
    display: flex;
}

.loading-content {
    background: white;
    padding: 40px 60px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

.loading-content .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #F29600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-content span {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ============================================
   19. 结果页面
   ============================================ */
.result-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: pageSlideIn 0.4s ease;
}

.result-page.show {
    display: flex;
}

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

.result-content {
    text-align: center;
    background: white;
    padding: 60px 80px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 90%;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: iconBounce 0.6s ease;
}

.error-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: iconShake 0.5s ease;
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes iconShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

.result-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.result-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.application-id {
    font-size: 16px;
    color: #F29600;
    font-weight: 600;
    margin-bottom: 30px;
}

.result-btn {
    height: 48px;
    padding: 0 40px;
    background: linear-gradient(135deg, #F29600 0%, #d17a00 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.result-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 150, 0, 0.3);
}


/* ============================================
   20. 响应式设计 - 平板端
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .language-selector {
        width: 100%;
        justify-content: center;
    }

    .form-container {
        padding: 25px 20px;
    }
    
    .form-title {
        font-size: 24px;
    }

    .form-group-row {
        grid-template-columns: 1fr;
    }
    
    .postal-code-group {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .postal-code-group .form-input {
        min-width: 0;
        flex: 1 1 auto;
    }

    .search-address-btn {
        flex: 1 1 auto;
        width: auto;
        min-width: 100px;
    }

    .app-selection-wrapper {
        grid-template-columns: 1fr;
    }

    .verification-input-group {
        flex-direction: column;
    }
    
    .verification-code-input,
    .verify-btn {
        width: 100%;
    }

    .photo-categories {
        grid-template-columns: 1fr;
    }

    .category-selection {
        grid-template-columns: 1fr;
    }
    
    .loading-content {
        padding: 30px 40px;
    }
    
    .result-content {
        padding: 40px 30px;
        width: 95%;
    }
    
    .success-icon,
    .error-icon {
        font-size: 60px;
    }
    
    .result-content h2 {
        font-size: 22px;
    }
}


/* ============================================
   21. 响应式设计 - 手机端
   ============================================ */
@media (max-width: 480px) {
    .form-container {
        padding: 20px 15px;
    }
    
    .language-selector {
        padding: 6px 12px;
    }
    
    .language-selector label {
        font-size: 12px;
    }
    
    .language-selector select {
        font-size: 12px;
        padding: 5px 10px;
        min-width: 80px;
    }
    
    .roommate-count-option {
        min-width: 60px;
        padding: 10px 16px;
    }
}

/* ============================================
   22. PDF同意书样式（统一风格）
   ============================================ */

/* 同意书区域 */
.consent-section {
    /* background: linear-gradient(135deg, #fff9f0 0%, #fff3e0 100%); */
    border: 2px solid #F29600;
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 2px 20px rgba(242, 150, 0, 0.1);
}

.consent-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(242, 150, 0, 0.2);
}

.consent-icon {
    font-size: 28px;
}

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

/* PDF查看按钮 */
.pdf-view-btn {
    width: 100%;
    height: 56px;
    background: #F29600;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pdf-view-btn::before {
    content: "📄";
    font-size: 20px;
}

.pdf-view-btn:hover {
   background: #d17a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 150, 0, 0.3);
}

/* 状态提示 */
.consent-status {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    display: none;
}

.consent-status.show {
    display: block;
}

.consent-status.success {
    background: #e8f5e8;
    color: #2e7d32;
    border: 2px solid #c8e6c9;
}

.consent-status.success::before {
    content: "✓ ";
    font-size: 16px;
}

/* 同意复选框 */
.consent-checkbox-wrapper {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.consent-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.consent-checkbox-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #F29600;
}

.consent-checkbox-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.consent-checkbox-label span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* PDF模态框 */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.pdf-modal.show {
    display: block;
}

.pdf-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}

.pdf-modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px 20px 0 0;
}

.pdf-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.pdf-modal-close {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-modal-close span {
    font-size: 30px;
    line-height: 1;
    color: #666;
}

.pdf-modal-close:hover {
    background: #e9ecef;
    transform: rotate(90deg);
}

.pdf-modal-close:hover span {
    color: #333;
}

.pdf-modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
    background: #525659;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-modal-footer {
    padding: 25px 30px;
    border-top: 2px solid #e9ecef;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 0 0 20px 20px;
    text-align: center;
}

.pdf-confirm-btn {
    height: 56px;
    padding: 0 50px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

/* 响应式 - 移动端 */
@media (max-width: 768px) {
    .consent-section {
        padding: 20px;
    }
    
    .consent-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .consent-icon {
        font-size: 24px;
    }
    
    .consent-title {
        font-size: 16px;
    }
    
    .pdf-view-btn {
        height: 48px;
        font-size: 15px;
    }
    
    .pdf-modal-container {
        width: 95%;
        height: 95vh;
        border-radius: 15px;
    }
    
    .pdf-modal-header,
    .pdf-modal-footer {
        padding: 20px;
    }
    
    .pdf-modal-header h3 {
        font-size: 18px;
    }
    
    .pdf-confirm-btn {
        width: 100%;
        padding: 0 30px;
    }
}