/* 快送熊加盟申请表单 */
:root {
    --primary-color: #e94c3d;
    --primary-hover: #d04436;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --success-color: #07c160;
    --radius: 8px;
}

/* 重置与基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 容器样式优化 - 设置最大宽度为1000px并居中 */
.container {
    max-width: 1000px;
    width: 100%;
    padding: 20px 20px; /* 添加内边距，确保在小屏幕上不贴边 */
    margin: 0 auto;
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f2f5 100%);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* 图片容器样式 - 彻底消除图片间隔 */
.image-container {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: block;
    line-height: 0;
    font-size: 0;
    position: relative;
}

/* 图片样式 - 确保无间隔 */
.image-container img {
    width: 100%;
    height: auto;
    display: block;
    border: 0;
    margin: 0;
    padding: 0;
    vertical-align: bottom; /* 使用bottom对齐 */
    outline: none;
    box-sizing: border-box;
}

/* 主表单容器样式优化 */
.form-container.full-width {
    max-width: 100%; /* 改为100%以更好适应父容器 */
    width: 100%;
    margin: 0 auto 0; /* 将-50px改为30px，提供正间距 */
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 2;
    padding: 0;
}

/* 表单标题样式 - 优化为与底部按钮一致的风格 */
.form-title {
    background: linear-gradient(135deg, #e74c3d, #c0392b); /* 与底部按钮相同的渐变背景 */
    color: white;
    padding: 20px 40px;
    font-size: 20px;
    font-weight: 700; /* 稍微加粗，增强视觉冲击力 */
    text-align: center;
    margin: 15px auto 15px;
    width: 50%;
    max-width: 500px;
    min-width: 280px;
    border-radius: 12px; /* 增加圆角，与底部按钮更协调 */
    box-shadow: 0 8px 20px rgba(231, 76, 61, 0.4); /* 增强阴影效果，与底部按钮一致 */
    letter-spacing: 1px; /* 增加字间距，提升可读性 */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* 增强文字阴影 */
    border: none;
    position: relative;
    overflow: hidden;
    cursor: default; /* 标题不需要点击，但保持视觉一致性 */
    transition: all 0.3s ease; /* 添加过渡效果 */
}

/* 添加标题的悬停效果（可选，增强交互感） */
.form-title:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(231, 76, 61, 0.5);
}

/* 移除原有的::after伪元素 */
.form-title::after {
    display: none;
}

/* 表单内容区域 */
.form-container form {
    padding: 0 32px 32px;
}

/* 表单区块样式 */
.form-section {
    margin-bottom: 24px;
    width: 100%;
    position: relative;
}

.form-section:last-child {
    margin-bottom: 0;
}

/* 标签样式优化 */
.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    padding-left: 4px;
}

.form-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 3px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 2px;
}
/*
.required-star {
    color: var(--primary-color);
    font-size: 16px;
    vertical-align: middle;
    margin-right: 4px;
    display: inline-block;
    transform: translateY(-2px);
}
*/
/* 输入框基础样式优化 */
.form-control,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s ease;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.5;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 76, 61, 0.1);
    outline: none;
    background-color: #fff;
}

.form-control::placeholder {
    color: #999;
    opacity: 0.7;
}

/* 验证码区域样式优化 */
.verification-code {
    display: flex;
    gap: 12px;
    width: 100%;
    align-items: center;
}

.verification-code input {
    flex: 1;
    min-width: 0; /* 防止flex元素溢出 */
}

.btn-get-code {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-get-code:hover:not(:disabled) {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-get-code:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

.btn-get-code:disabled {
    background: linear-gradient(135deg, #f8f9fa, #f8f9fa);
    border-color: var(--border-color);
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 省市区选择器优化 - 隐藏原有样式 */
.city-selector-wrapper {
    display: none; /* 隐藏原有的三个并排选择器 */
}

/* 地址显示框样式 - 用于展示省市区 */
.address-display {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    background-color: var(--bg-white);
    cursor: pointer;
    min-height: 46px;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.2s ease;
    color: #333;
}

.address-display:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 76, 61, 0.1);
    outline: none;
}

.address-display.empty::before {
    content: '请选择省/市/区';
    color: #999;
    font-style: normal; /* 确保不是斜体 */
}

.address-display::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-light);
}

/* 底部选择器模态框样式 */
.picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.picker-overlay.show {
    opacity: 1;
    visibility: visible;
}

.picker-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.picker-modal.show {
    transform: translateY(0);
}

.picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.picker-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.picker-cancel,
.picker-confirm {
    color: var(--primary-color);
    font-size: 16px;
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 500;
}

.picker-cancel {
    color: var(--text-light);
}

.picker-content {
    display: flex;
    height: 300px;
    overflow: hidden;
    flex: 1;
}

.picker-column {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.picker-item {
    padding: 12px 20px;
    font-size: 16px;
    color: var(--text-dark);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.picker-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.picker-item.active {
    color: var(--primary-color);
    font-weight: 500;
    background-color: rgba(233, 76, 61, 0.1);
}

.picker-item.active::after {
    content: '✓';
    position: absolute;
    right: 20px;
    color: var(--primary-color);
}

/* 单选按钮和复选框组优化 */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
    width: 100%;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.radio-item:hover,
.checkbox-item:hover {
    background-color: rgba(233, 76, 61, 0.05);
    border-color: rgba(233, 76, 61, 0.2);
}

.radio-item input,
.checkbox-item input {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.radio-item label,
.checkbox-item label {
    font-size: 15px;
    color: var(--text-dark);
    cursor: pointer;
    flex: 1;
    user-select: none;
    display: flex;
    align-items: center;
}

/* 其他输入框动画 */
.other-input {
    margin-top: 12px;
    display: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s ease;
}

.other-input.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 文本区域样式 */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
    padding: 12px 16px;
}

/* 提示文字样式优化 */
.form-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
    padding-left: 4px;
    line-height: 1.4;
}

/* 提交按钮样式优化 - 三分之一宽度，居中 */
.btn-submit {
    background: #e74c3d; /* 纯红色，与标题一致 */
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    width: 33.33%; /* 三分之一宽度 */
    max-width: 200px;
    min-width: 150px;
    margin: 30px auto; /* 居中 */
    display: block;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(231, 76, 61, 0.3);
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
    background: #c0392b; /* 悬停时深一点的红 */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 61, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(231, 76, 61, 0.3);
}

.btn-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 61, 0.3);
}

.btn-submit:disabled {
    background: linear-gradient(135deg, #cccccc, #aaaaaa);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: #666;
}

.btn-submit:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* 必填项验证提示 */
.form-control:required:not(:placeholder-shown):invalid,
.form-select:required:invalid {
    border-color: #ff4757;
}

.form-control:required:valid,
.form-select:required:valid {
    border-color: var(--success-color);
}

/* 移动端适配优化 */
@media (max-width: 768px) {
    .container {
        background: var(--bg-white);
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        padding: 0; /* 移动端移除内边距 */
    }

    .form-container.full-width {
        margin: 0 auto 0; /* 移动端调整边距 */
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
        padding: 0;
    }

    .form-container form {
        padding: 0 16px 24px;
    }

    .form-section {
        margin-bottom: 20px;
    }

    .form-control,
    .form-select {
        padding: 14px 16px;
        font-size: 16px; /* 移动端字体稍大，便于触摸 */
    }

    .verification-code {
        flex-direction: column;
        gap: 12px;
    }

    .btn-get-code {
        width: 100%;
        padding: 14px 20px;
    }

    /* 底部选择器移动端适配 */
    .picker-modal {
        border-radius: 12px 12px 0 0;
        max-height: 60vh;
    }

    .picker-content {
        height: 250px;
    }

    .picker-item {
        padding: 14px 16px;
        font-size: 15px;
    }

    .picker-header {
        padding: 12px 16px;
    }

    .btn-submit {
        padding: 16px 24px;
        font-size: 16px;
        margin: 24px auto 0;
        width: 80%; /* 移动端稍宽一些 */
    }

    .radio-item,
    .checkbox-item {
        padding: 10px 12px;
    }

    /* 确保移动端图片无间隔 */
    .image-container {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .image-container img {
        -webkit-backface-visibility: hidden;
        -moz-backface-visibility: hidden;
        -webkit-transform: translate3d(0, 0, 0);
        -moz-transform: translate3d(0, 0, 0);
    }
}

/* 平板设备适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .form-container.full-width {
        max-width: 80%;
        margin: -30px auto 30px;
    }

    .form-container form {
        padding: 0 24px 24px;
    }
}

/* 加载遮罩样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-text {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 成功模态框样式 */
.success-modal .modal-content {
    border-radius: var(--radius);
    border: none;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.success-modal .modal-header {
    border-bottom: none;
    padding: 24px 24px 8px;
    text-align: center;
}

.success-modal .modal-title {
    color: var(--success-color);
    font-size: 20px;
    font-weight: 600;
}

.success-modal .modal-body {
    padding: 8px 24px 24px;
    text-align: center;
}

.success-icon {
    font-size: 48px;
    color: var(--success-color);
    margin-bottom: 16px;
    display: inline-block;
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.success-modal .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 16px;
    min-width: 120px;
}

.success-modal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 76, 61, 0.3);
}

#countdownText {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 18px;
    margin: 0 4px;
}

/* 错误状态样式 */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #ff4757;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ff4757' viewBox='0 0 12 12'%3E%3Cpath d='M6 1a5 5 0 1 0 0 10A5 5 0 0 0 6 1zm.75 7.5h-1.5v-1.5h1.5v1.5zm0-3h-1.5V3h1.5v2.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 32px;
}

.invalid-feedback {
    color: #ff4757;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    padding-left: 4px;
}

/* ============================================
   底部浮动按钮样式
============================================ */

.bottom-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 20px;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.bottom-buttons.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.bottom-buttons::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8), transparent);
    pointer-events: none;
}

.bottom-buttons-container {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    gap: 15px;
}

.bottom-btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#learnMoreBtn {
    background: linear-gradient(135deg, #e74c3d, #c0392b);
    color: white;
}

#applyNowBtn {
    background: linear-gradient(135deg, #e74c3d, #c0392b);
    color: white;
}

.bottom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 61, 0.4);
}

.bottom-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(231, 76, 61, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .bottom-buttons {
        padding: 0 15px;
    }

    .bottom-buttons-container {
        gap: 10px;
    }

    .bottom-btn {
        padding: 12px 15px;
        font-size: 15px;
    }
}

/* 平板设备适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .bottom-buttons-container {
        max-width: 90%;
    }
}

/* 大屏幕设备适配 */
@media (min-width: 1200px) {
    .bottom-buttons-container {
        max-width: 1000px;
    }
}

/* ============================================
   个人信息授权协议样式
============================================ */

/* 协议同意选项样式 */
.agreement-checkbox {
    display: flex;
    align-items: center;
    padding: 12px 0;
    margin: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.agreement-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.agreement-checkbox label {
    font-size: 15px;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.agreement-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    margin: 0 4px;
    transition: all 0.2s ease;
    border-bottom: 1px dotted transparent;
}

.agreement-link:hover {
    color: #2980b9;
    border-bottom: 1px dotted #2980b9;
}

/* 协议模态框样式 */
.agreement-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.agreement-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.agreement-modal {
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.agreement-modal-overlay.show .agreement-modal {
    transform: translateY(0);
}

.agreement-modal-header {
    background: #f8f9fa;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.agreement-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.agreement-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6c757d;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.agreement-modal-close:hover {
    background: #e9ecef;
    color: #495057;
}

.agreement-modal-content {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.6;
    color: #333;
}

.agreement-modal-content h4 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin: 24px 0 12px 0;
    padding-left: 8px;
    border-left: 3px solid var(--primary-color);
}

.agreement-modal-content p {
    margin-bottom: 16px;
    text-align: justify;
}

.agreement-modal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.agreement-modal-content li {
    margin-bottom: 8px;
    position: relative;
}

.agreement-modal-content li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -12px;
}

.agreement-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    text-align: center;
    flex-shrink: 0;
}

.btn-agreement-read {
    background: #e74c3d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(231, 76, 61, 0.3);
    min-width: 120px;
}

.btn-agreement-read:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 61, 0.4);
}

.btn-agreement-read:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(231, 76, 61, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .agreement-checkbox {
        padding: 10px 0;
        margin: 15px 0;
    }

    .agreement-checkbox label {
        font-size: 14px;
    }

    .agreement-modal {
        max-height: 85vh;
        max-width: 95%;
    }

    .agreement-modal-header {
        padding: 16px 20px;
    }

    .agreement-modal-header h3 {
        font-size: 18px;
    }

    .agreement-modal-content {
        padding: 20px;
    }

    .agreement-modal-content h4 {
        font-size: 15px;
    }

    .agreement-modal-footer {
        padding: 16px 20px;
    }

    .btn-agreement-read {
        padding: 12px 30px;
        font-size: 15px;
    }
}

/* 移动端优化的错误提示样式 */
@media (max-width: 768px) {
    /* 确保协议复选框在移动端有足够大的点击区域 */
    .agreement-checkbox input[type="checkbox"] {
        width: 24px;
        height: 24px;
        margin-right: 10px;
    }

    /* 高亮协议链接 */
    .agreement-link.highlight {
        color: #e74c3d !important;
        font-weight: 600 !important;
        text-decoration: underline;
    }
}

/* ============================================
   错误提示模态框样式
============================================ */

/* 错误模态框整体样式 */
.error-modal .modal-content {
    border-radius: var(--radius);
    border: none;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-top: 4px solid #e74c3d;
}

.error-modal .modal-body {
    padding: 30px;
    text-align: center;
}

/* 错误图标样式 */
.error-icon {
    font-size: 60px;
    color: #e74c3d;
    margin-bottom: 20px;
    animation: errorShake 0.5s ease;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

.error-icon svg {
    width: 60px;
    height: 60px;
    color: #e74c3d;
}

/* 错误标题样式 */
.error-modal .modal-title {
    color: #e74c3d;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* 错误消息样式 */
.modal-message {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: left;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #e74c3d;
    max-height: 200px;
    overflow-y: auto;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .error-modal .modal-body {
        padding: 20px;
    }

    .error-icon {
        font-size: 50px;
        margin-bottom: 15px;
    }

    .error-icon svg {
        width: 50px;
        height: 50px;
    }

    .error-modal .modal-title {
        font-size: 18px;
    }

    .modal-message {
        font-size: 15px;
        padding: 12px;
        max-height: 150px;
    }

    .d-flex.justify-content-center.gap-3 {
        gap: 10px !important;
    }
}

/* 错误按钮样式 - 修改为单个确认按钮 */
.btn-confirm-error {
    background: linear-gradient(135deg, #e74c3d, #c0392b);
    border: none;
    color: white;
    padding: 10px 30px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(231, 76, 61, 0.3);
}

.btn-confirm-error:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(231, 76, 61, 0.4);
}

.btn-confirm-error:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(231, 76, 61, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .btn-confirm-error {
        padding: 8px 24px;
        font-size: 14px;
        min-width: 100px;
    }
}

/* ============================================
   视频容器样式
============================================ */

/* 视频容器样式 - 保持与图片容器一致 */
.video-container {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: block;
    line-height: 0;
    font-size: 0;
    position: relative;
    background-color: #000; /* 视频加载前的背景色 */
    min-height: 200px; /* 为加载状态预留高度 */
}

/* 视频元素样式 */
.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border: 0;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
    outline: none;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-container video.loaded {
    opacity: 1;
}

/* 视频加载状态指示器 */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 2;
    display: none;
}

.video-loading.show {
    display: block;
}

/* 视频控制按钮 */
.video-control-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.video-control-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: white;
    opacity: 1;
    transform: scale(1.1);
}

.video-control-btn:active {
    transform: scale(0.95);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .video-control-btn {
        width: 36px;
        height: 36px;
        bottom: 15px;
        right: 15px;
        font-size: 18px;
    }

    .video-loading {
        font-size: 13px;
        padding: 8px 16px;
    }
}
