/* ===== demand页面专用样式 - 与 teacher_apply 风格一致 ===== */

/* ===== 播放器样式 - 与 teacher_list 配色一致 ===== */

/* 播放按钮基础样式 - 黑色边框 */
.audio-player .controls .btn-primary,
body.dark-mode .audio-player .controls .btn-primary {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid #1e293b;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 悬停效果 - 橙色 */
.audio-player .controls .btn-primary:hover,
body.dark-mode .audio-player .controls .btn-primary:hover {
    background: #ff9800;
    border-color: #ff9800;
}

/* 播放状态时按钮变为橙色 */
.audio-player .controls.playing .btn-primary,
body.dark-mode .audio-player .controls.playing .btn-primary {
    background: #ff9800;
    border-color: #ff9800;
}

/* 播放图标 - 黑色三角形 */
.audio-player .controls i.glyphicon-play,
.audio-player .controls .btn-primary i.glyphicon-play,
body.dark-mode .audio-player .controls i.glyphicon-play,
body.dark-mode .audio-player .controls .btn-primary i.glyphicon-play {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 0 7px 11px;
    border-color: transparent transparent transparent #1e293b;
    background: none;
    background-image: none;
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    margin-left: 1px;
    font-size: 0;
    line-height: 0;
    filter: none;
    display: inline-block;
}

/* 悬停状态的播放图标变白色（因为背景会变橙色） */
.audio-player .controls .btn-primary:hover i.glyphicon-play,
body.dark-mode .audio-player .controls .btn-primary:hover i.glyphicon-play {
    border-left-color: #ffffff;
}

/* 暂停图标样式 */
.audio-player .controls i.glyphicon-pause,
.audio-player .controls i.glyphicon-play.glyphicon-pause,
.audio-player .controls .btn-primary i.glyphicon-pause,
.audio-player .controls .btn-primary i.glyphicon-play.glyphicon-pause,
body.dark-mode .audio-player .controls i.glyphicon-pause,
body.dark-mode .audio-player .controls i.glyphicon-play.glyphicon-pause,
body.dark-mode .audio-player .controls .btn-primary i.glyphicon-pause,
body.dark-mode .audio-player .controls .btn-primary i.glyphicon-play.glyphicon-pause {
    background: none;
    background-image: none;
    background-size: 0;
    background-repeat: no-repeat;
    width: 10px;
    height: 12px;
    filter: none;
    border-radius: 0;
    border: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    content: '';
    font-size: 0;
    line-height: 0;
}

/* 暂停图标的白色竖条 - 在橙色背景上显示 */
.audio-player .controls i.glyphicon-pause::before,
.audio-player .controls i.glyphicon-pause::after,
.audio-player .controls i.glyphicon-play.glyphicon-pause::before,
.audio-player .controls i.glyphicon-play.glyphicon-pause::after,
.audio-player .controls .btn-primary i.glyphicon-pause::before,
.audio-player .controls .btn-primary i.glyphicon-pause::after,
.audio-player .controls .btn-primary i.glyphicon-play.glyphicon-pause::before,
.audio-player .controls .btn-primary i.glyphicon-play.glyphicon-pause::after,
body.dark-mode .audio-player .controls i.glyphicon-pause::before,
body.dark-mode .audio-player .controls i.glyphicon-pause::after,
body.dark-mode .audio-player .controls i.glyphicon-play.glyphicon-pause::before,
body.dark-mode .audio-player .controls i.glyphicon-play.glyphicon-pause::after,
body.dark-mode .audio-player .controls .btn-primary i.glyphicon-pause::before,
body.dark-mode .audio-player .controls .btn-primary i.glyphicon-pause::after,
body.dark-mode .audio-player .controls .btn-primary i.glyphicon-play.glyphicon-pause::before,
body.dark-mode .audio-player .controls .btn-primary i.glyphicon-play.glyphicon-pause::after {
    content: '';
    display: block;
    position: absolute;
    width: 3px;
    height: 12px;
    background: #ffffff;
    background-color: #ffffff;
    background-image: none;
    top: 0;
    border: none;
    border-radius: 1px;
    z-index: 10;
}

.audio-player .controls i.glyphicon-pause::before,
.audio-player .controls i.glyphicon-play.glyphicon-pause::before,
.audio-player .controls .btn-primary i.glyphicon-pause::before,
.audio-player .controls .btn-primary i.glyphicon-play.glyphicon-pause::before,
body.dark-mode .audio-player .controls i.glyphicon-pause::before,
body.dark-mode .audio-player .controls i.glyphicon-play.glyphicon-pause::before,
body.dark-mode .audio-player .controls .btn-primary i.glyphicon-pause::before,
body.dark-mode .audio-player .controls .btn-primary i.glyphicon-play.glyphicon-pause::before {
    left: 0;
}

.audio-player .controls i.glyphicon-pause::after,
.audio-player .controls i.glyphicon-play.glyphicon-pause::after,
.audio-player .controls .btn-primary i.glyphicon-pause::after,
.audio-player .controls .btn-primary i.glyphicon-play.glyphicon-pause::after,
body.dark-mode .audio-player .controls i.glyphicon-pause::after,
body.dark-mode .audio-player .controls i.glyphicon-play.glyphicon-pause::after,
body.dark-mode .audio-player .controls .btn-primary i.glyphicon-pause::after,
body.dark-mode .audio-player .controls .btn-primary i.glyphicon-play.glyphicon-pause::after {
    right: 0;
}

/* ===== 页面整体样式 - 紧凑版 ===== */

body {
    margin: 0;
    padding: 10px 0;
    overflow-x: hidden;
    min-height: 100vh;
    color: #1e293b;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.Content {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* 主容器 - 紧凑 */
.compact-form {
    width: 100%;
    max-width: 1100px;
    margin: 12px auto 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 1px solid var(--card-border, #d4d4d8);
    color: #1e293b;
    box-sizing: border-box;
}

/* 表头 - 紧凑 */
.form-header {
    padding: 20px 24px 16px;
    text-align: center;
    border-bottom: 1px solid var(--card-border, #d4d4d8);
    position: relative;
    background: #fafafa;
}

.form-header h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

/* 表单区块 - 紧凑 */
.form-section {
    padding: 12px 24px;
    border-bottom: none;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
}

/* 区块标题 - 精简 */
.section-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    margin-top: 0;
    padding-left: 10px;
    border-left: 3px solid #3b82f6;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.section-title .section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 14px;
}

/* 表单网格 - 紧凑 */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    width: 100%;
    box-sizing: border-box;
    padding: 4px 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* 标签 - 紧凑 */
.form-label {
    font-size: 12px;
    font-weight: 800;
    color: #374151;
    margin-bottom: 4px;
    margin-top: 0;
    display: block;
}

/* 输入框 - 紧凑 */
.form-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
    outline: none;
    color: #111827;
    background-color: #ffffff;
    font-weight: 400;
    transition: border-color 0.15s;
    min-height: 36px;
    line-height: 1.4;
}

.form-input:hover {
    border-color: #9ca3af;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.form-input.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

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

.field-error {
    display: none;
    color: #dc2626;
    font-size: 11px;
    margin-top: 3px;
}

.form-input::placeholder {
    color: #9ca3af;
}

/* 下拉框 - 紧凑 */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%236b7280' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    cursor: pointer;
}

select.form-input:hover {
    border-color: #3b82f6;
}

select.form-input option {
    background-color: #fff;
    color: #333;
    padding: 8px;
}

/* 文本域 - 紧凑 */
.form-textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.5;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    font-size: 13px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    color: #111827;
    outline: none;
}

.form-textarea:hover {
    border-color: #9ca3af;
    background: #ffffff;
}

.form-textarea:focus {
    border-color: #3b82f6;
    background: #ffffff;
}

/* 输入框单位 - 紧凑 */
.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-unit .form-input {
    padding-right: 36px;
    flex: 1;
}

.input-unit {
    position: absolute;
    right: 10px;
    color: #9ca3af;
    font-size: 12px;
    pointer-events: none;
}

/* 文件上传 - 紧凑 */
.file-upload {
    position: relative;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    padding: 14px 10px;
    border: 1.5px dashed #d1d5db;
    border-radius: 6px;
    text-align: center;
    color: #6b7280;
    background: #fafafa;
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.4;
    transition: all 0.15s;
}

.file-upload-label small {
    color: #9ca3af;
    font-size: 11px;
}

.file-upload:hover .file-upload-label {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.file-upload.dragover .file-upload-label {
    border-color: #3b82f6;
    background-color: #dbeafe;
    color: #3b82f6;
}

.file-upload.file-selected .file-upload-label {
    border-color: #0f766e;
    background-color: #ecfdf5;
    color: #0f766e;
}

.file-preview {
    margin-top: 6px;
    display: none;
}

.file-preview.show {
    display: block;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #f9fafb;
    border-radius: 4px;
    border: 1px solid var(--card-border, #d4d4d8);
    margin-bottom: 4px;
}

.file-info:hover {
    background: #f3f4f6;
}

.file-name {
    font-size: 12px;
    color: #374151;
    flex: 1;
    margin-right: 8px;
    word-break: break-all;
}

.file-size {
    font-size: 11px;
    color: #9ca3af;
    margin-right: 8px;
    flex-shrink: 0;
}

.file-remove {
    background: transparent;
    color: #9ca3af;
    border: 1px solid #d1d5db;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.15s;
}

.file-remove:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #ef4444;
}

.audio-preview {
    margin-top: 6px;
}

.audio-preview audio {
    width: 100%;
    height: 28px;
    border-radius: 4px;
}

/* 已选信息框 */
.selected-info {
    background: #f8fafc;
    padding: 15px 16px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
}

.selected-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 11px;
    line-height: 1.6;
}

.selected-info-item:last-child {
    margin-bottom: 0;
}

.selected-info-label {
    font-weight: 500;
    color: #64748b;
    min-width: 75px;
    margin-right: 12px;
    font-size: 13px;
    padding-top: 1px;
}

.selected-info-value {
    color: #1e293b;
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

/* 提交区域 */
.submit-section {
    padding: 20px 24px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* 按钮组 */
.submit-buttons-group {
    display: flex;
    gap: 8px;
}

/* 按钮基础 */
.submit-btn {
    padding: 0 20px;
    height: 34px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 34px;
}

/* 免费试音 - 黑色背景白字加粗 */
.submit-btn-trial {
    background: #1a1a1a;
    color: #fff !important;
    font-weight: 700;
    border: 1px solid #1a1a1a;
}

.submit-btn-trial .btn-text {
    color: #fff !important;
    font-weight: 700;
}

.submit-btn-trial:hover {
    background: #333;
    border-color: #333;
}

/* 直接配音 */
.submit-btn-pay {
    background: #111827;
    color: #fff;
    border: 1px solid #111827;
}

.submit-btn-pay:hover {
    background: #374151;
    border-color: #374151;
}

/* 隐藏emoji图标 */
.submit-btn .btn-icon {
    display: none;
}

.submit-btn .btn-text {
    font-weight: 800;
}

/* 登录状态 - 紧凑 */
.login-status {
    position: absolute;
    top: 20px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.login-status-text {
    color: #6b7280;
    font-weight: 500;
}

/* 未登录 */
.submit-btn.not-logged-in {
    background: #f3f4f6;
    color: #9ca3af;
    border: 1px solid var(--card-border, #d4d4d8);
    cursor: not-allowed;
}

.submit-btn.not-logged-in:hover {
    background: #f3f4f6;
    border-color: var(--card-border, #d4d4d8);
}

/* 播放器容器样式 */
.audio-player {
    background: #f8fafc;
    padding: 14px 15px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    min-height: 68px;
    display: flex;
    align-items: center;
}

.audio-player .controls {
    position: relative;
    flex-shrink: 0;
    margin-right: 14px;
    z-index: 10;
}

.audio-player .waveform {
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    flex: 1;
    box-sizing: border-box;
    position: relative; /* 让内部绝对定位的时间标签相对于波形图定位 */
}

/* 时间显示、加载提示等样式 */
.audio-player .loading,
.audio-player .error {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: #94a3b8;
    z-index: 5;
}

.audio-player .error {
    color: #dc2626;
}

/* 时间显示 - 在指针的正左侧居中 */
.audio-player .current-time-on-pointer-home,
.audio-player .current-time-on-pointer {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(calc(-100% - 2px), -50%); /* 向左偏移自身宽度+2px间距，垂直居中 */
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    z-index: 15;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: none;
    min-width: 42px; /* 固定最小宽度，防止时间变化时抖动 */
    text-align: center; /* 文字居中 */
    box-sizing: border-box; /* 包含padding在宽度内 */
}

/* 播放时的动态样式 */
.audio-player .current-time-on-pointer.playing-time {
    background: rgba(0, 123, 255, 0.9);
    animation: pulse 1.5s ease-in-out infinite alternate;
}

/* 暂停或悬停时的静态样式 */
.audio-player .current-time-on-pointer.hover-time {
    background: rgba(0, 0, 0, 0.8);
}

@keyframes pulse {
    from {
        opacity: 0.9;
    }
    to {
        opacity: 1;
    }
}

.audio-player .total-time {
    display: none;
}

/* 成功消息 */
.success-message {
    display: none;
    background: #f0fdf4;
    border: 1px solid #d1fae5;
    color: #065f46;
    padding: 18px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
}

.success-message h3 {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 600;
    color: #115e59;
}

.success-message p {
    margin: 5px 0;
    font-size: 13px;
    color: #065f46;
    line-height: 1.6;
}

.success-message.show {
    display: block;
}

.order-center-link {
    display: inline-block;
    margin-top: 14px;
    padding: 9px 22px;
    background: #0f766e;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.order-center-link:hover {
    background: #115e59;
    color: #fff;
    transform: translateY(-1px);
}
/* 响应式 */
@media screen and (max-width: 1150px) {
    .Content, .content, .main-content, .page-content {
       padding: 0 12px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .Content {
        padding: 0 8px;
    }
    
    .compact-form {
        border-radius: 8px;
        margin: 8px auto 20px;
    }
    
    .form-header {
        padding: 16px 16px 12px;
    }
    
    .form-header h1 {
        font-size: 16px;
    }
    
    .login-status {
        top: 16px;
        right: 16px;
        font-size: 11px;
    }
    
    .form-label-with-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .stats-container {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .form-section {
        padding: 10px 16px;
    }
    
    .section-title {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .form-label {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .form-input,
    select.form-input {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .form-textarea {
        min-height: 70px;
        padding: 8px 10px;
    }
    
    .selected-info {
        padding: 10px 12px;
    }
    
    .selected-info-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 8px;
    }
    
    .selected-info-label {
        margin-bottom: 3px;
        min-width: auto;
        font-size: 11px;
    }
    
    .selected-info-value {
        width: 100%;
        font-size: 12px;
    }
    
    .audio-player {
        padding: 10px;
        min-height: 56px;
    }
    
    .audio-player .controls {
        margin-right: 10px;
    }
    
    .audio-player .controls .btn-primary {
        width: 28px;
        height: 28px;
    }
    
    .audio-player .waveform {
        height: 40px;
    }
    
    .file-upload-label {
        padding: 12px 10px;
        font-size: 12px;
    }
    
    .file-info {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .submit-section {
        padding: 12px 16px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .total-price-display {
        justify-content: center;
    }
    
    .submit-buttons-group {
        width: 100%;
    }
    
    .submit-btn {
        flex: 1;
        text-align: center;
    }
}

/* ===== 弹窗 - 紧凑 ===== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #fff;
    border-radius: 10px;
    padding: 28px 24px;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.2s;
    position: relative;
}

.modal-overlay.show .modal-box {
    transform: scale(1);
}

/* 关闭按钮：用伪元素画「×」，避免字体字形在圆内上下偏移 */
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #d1d5db;
    color: #6b7280;
    cursor: pointer;
    z-index: 10;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 1.5px;
    background: currentColor;
    border-radius: 1px;
}

.modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

body.dark-mode .modal-box {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

body.dark-mode .modal-close {
    color: #a0a0a0;
    border-color: #3a3a3a;
}

body.dark-mode .modal-close:hover {
    background: #3a3a3a;
    color: #f5f5f5;
    border-color: #4a4a4a;
}

/* 弹窗关闭按钮 - modal-close-btn 样式（黑白风格） */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: normal;
    color: #000000;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    background: transparent;
    border: 1px solid #000000;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: #000000;
    color: #ffffff;
}

/* 弹窗容器 - 旧版样式（兼容） */
.modal-dialog {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 90%;
    margin: 20px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-overlay.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* 弹窗头部 */
.modal-header {
    padding: 24px 24px 16px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
}

.modal-icon.success {
    background: #0f766e;
}

.modal-icon.error {
    background: #ef4444;
}

.modal-icon.warning {
    background: #f59e0b;
}

.modal-icon.loading {
    background: #3b82f6;
}

.modal-icon.info {
    background: #3b82f6;
}

body.dark-mode .modal-icon {
    border-width: 2px;
}

body.dark-mode .modal-icon.success {
    background: #1e3a2e;
    color: #0f766e;
    border-color: #0f766e;
}

body.dark-mode .modal-icon.error {
    background: #3a2020;
    color: #ef4444;
    border-color: #ef4444;
}

body.dark-mode .modal-icon.warning {
    background: #3a3020;
    color: #f59e0b;
    border-color: #f59e0b;
}

body.dark-mode .modal-icon.loading {
    background: #1e2a3a;
    color: #0ea5e9;
    border-color: #0ea5e9;
}

body.dark-mode .modal-icon.info {
    background: #1e2a3a;
    color: #0ea5e9;
    border-color: #0ea5e9;
}

/* 加载动画 */
.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

body.dark-mode .spinner {
    border-color: #3a3a3a;
    border-top-color: #0ea5e9;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.modal-body {
    padding: 16px 20px 20px;
    text-align: center;
}

.modal-message {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 20px;
}

.modal-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    min-width: 100px;
    display: inline-block;
    margin: 0 auto;
}

.modal-btn:hover {
    background: #2563eb;
}

body.dark-mode .modal-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.dark-mode .modal-btn:hover {
    background: linear-gradient(135deg, #7c8ef0 0%, #8c5bb8 100%);
}

/* 弹窗按钮 - 旧版样式（兼容） */
.modal-footer {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    padding: 11px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.modal-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    padding: 11px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.modal-btn-secondary:hover {
    background: #e2e8f0;
}

/* 移动端优化 */
@media (max-width: 480px) {
    .modal-box {
        padding: 30px 20px;
        max-width: 320px;
    }
    
    .modal-dialog {
        max-width: calc(100% - 32px);
        margin: 16px;
    }
    
    .modal-header {
        padding: 20px 20px 14px;
    }
    
    .modal-icon {
        width: 64px;
        height: 64px;
        font-size: 36px;
    }
    
    .spinner {
        width: 32px;
        height: 32px;
        border-width: 3px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-message {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .modal-btn {
        padding: 10px 32px;
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 16px 20px 20px;
    }
    
    .modal-message {
        font-size: 14px;
    }
    
    .modal-footer {
        padding: 0 20px 20px;
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}

/* ===== 暗黑模式样式 - 简约设计 ===== */

body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

/* 暗黑模式 - 弹窗 */
body.dark-mode .modal-dialog {
    background: #2a2a2a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

body.dark-mode .modal-header {
    border-bottom-color: #3a3a3a;
}

body.dark-mode .modal-title {
    color: #f5f5f5;
}

body.dark-mode .modal-message {
    color: #c0c0c0;
}

body.dark-mode .modal-btn-secondary {
    background: #3a3a3a;
    color: #c0c0c0;
}

body.dark-mode .modal-btn-secondary:hover {
    background: #4a4a4a;
}

body.dark-mode .compact-form {
    background: #242424;
    border-color: #3a3a3a;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .form-header {
    background: #242424;
    border-bottom-color: #3a3a3a;
}

body.dark-mode .form-header h1 {
    color: #f5f5f5;
}

body.dark-mode .form-section {
    background: #242424;
}

body.dark-mode .section-title {
    color: #f5f5f5;
}

body.dark-mode .form-label {
    color: #a0a0a0;
}

body.dark-mode .form-input {
    background-color: transparent;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

body.dark-mode .form-input:hover {
    border-color: #505050;
}

body.dark-mode .form-input:focus {
    border-color: #0ea5e9;
    background-color: transparent;
}

body.dark-mode .form-input::placeholder {
    color: #606060;
}

body.dark-mode select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230ea5e9' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

body.dark-mode select.form-input option {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .form-textarea {
    background: transparent;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

body.dark-mode .form-textarea:hover {
    border-color: #505050;
}

body.dark-mode .form-textarea:focus {
    border-color: #0ea5e9;
    background: transparent;
}

body.dark-mode .input-unit {
    color: #808080;
}

body.dark-mode .file-upload-label {
    background: transparent;
    border-color: #3a3a3a;
    color: #808080;
}

body.dark-mode .file-upload:hover .file-upload-label {
    border-color: #0ea5e9;
    color: #0ea5e9;
    background: transparent;
}

body.dark-mode .file-upload.dragover .file-upload-label {
    background-color: transparent;
}

body.dark-mode .file-upload.file-selected .file-upload-label {
    border-color: #0f766e;
    background-color: transparent;
    color: #0f766e;
}

body.dark-mode .file-info {
    background: transparent;
    border-color: #3a3a3a;
}

body.dark-mode .file-info:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: #4a4a4a;
}

body.dark-mode .file-name {
    color: #e0e0e0;
}

body.dark-mode .file-size {
    color: #808080;
}

body.dark-mode .file-remove {
    color: #808080;
    border-color: #3a3a3a;
}

body.dark-mode .file-remove:hover {
    background: #3a2020;
    color: #ff8080;
    border-color: #5a3030;
}

body.dark-mode .selected-info {
    background: transparent;
    border-color: #3a3a3a;
}

body.dark-mode .selected-info-label {
    color: #a0a0a0;
}

body.dark-mode .selected-info-value {
    color: #e0e0e0;
}

body.dark-mode .audio-player {
    background: transparent;
    border-color: #3a3a3a;
}

body.dark-mode .audio-player .loading {
    color: #808080;
}

/* 暗黑模式按钮 - 保持黑底白字 */
body.dark-mode .submit-btn-trial {
    background: #1a1a1a;
    color: #fff;
    border-color: #333;
}

body.dark-mode .submit-btn-trial:hover {
    background: #333;
    border-color: #444;
}

body.dark-mode .submit-btn-pay {
    background: #f5f5f5;
    color: #111827;
    border-color: #f5f5f5;
}

body.dark-mode .submit-btn-pay:hover {
    background: #e5e7eb;
    border-color: var(--card-border, #d4d4d8);
}

body.dark-mode .submit-btn.not-logged-in {
    background: #374151;
    color: #6b7280;
    border-color: #4b5563;
}

body.dark-mode .total-price-label {
    color: #9ca3af;
}

body.dark-mode .total-price-value {
    color: #f5f5f5;
}

body.dark-mode .success-message {
    background: #1e3a2e;
    border-color: #2a5040;
    color: #a0d0b0;
}

body.dark-mode .success-message h3 {
    color: #0f766e;
}

body.dark-mode .success-message p {
    color: #a0d0b0;
}

body.dark-mode .order-center-link {
    background: #0f766e;
}

body.dark-mode .order-center-link:hover {
    background: #0ea070;
}

/* ===== 左右布局 - 紧凑 ===== */

.sample-form-layout {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    align-items: flex-start;
}

/* 左侧：样音卡片 */
.sample-card-container {
    flex: 0 0 360px;
    min-width: 360px;
}

/* 右侧：表单 */
.form-fields-container {
    flex: 1;
    min-width: 0;
}

@media (max-width: 900px) {
    .sample-form-layout {
        flex-direction: column;
    }
    
    .sample-card-container {
        flex: 1 1 auto;
        min-width: 100%;
        max-width: 100%;
    }
    
    .form-fields-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .sample-form-layout {
        gap: 12px;
    }
    
    .sample-card-container {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .sample-form-layout {
        gap: 8px;
    }
}

/* ===== 价格显示 - 紧凑 ===== */

.price-estimate {
    font-size: 12px;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    cursor: pointer;
    transition: color 0.15s;
}

.price-estimate:hover {
    color: #374151;
}

.price-estimate .price-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 2px;
    flex-shrink: 0;
}

.price-estimate #estimated-price {
    font-weight: 600;
    font-size: 14px;
    color: #ef4444;
}

/* 总价显示 */
.total-price-display {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.total-price-label {
    color: #6b7280;
    font-size: 13px;
}

.total-price-value {
    color: #111827;
    font-size: 20px;
    font-weight: 600;
}

/* 暗黑模式总价 - 无边框 */

body.dark-mode .total-price-label {
    color: #0ea5e9;
}

body.dark-mode .total-price-value {
    color: #0ea5e9;
}

/* 价格详情弹窗（与订单列表 price_calculation_popup 统一） */
.price-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.price-modal-overlay.show {
    display: flex;
}

.price-modal-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    animation: priceModalFadeIn 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

body.dark-mode .price-modal-box {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

@keyframes priceModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.price-modal-header {
    padding: 22px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-modal-close {
    background: transparent;
    border: none;
    color: #666;
    font-size: 22px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.price-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
}

.price-modal-close:active {
    transform: scale(0.95);
}

body.dark-mode .price-modal-header {
    background: #2a2a2a;
    color: #f5f5f5;
    border-bottom-color: #3a3a3a;
}

body.dark-mode .price-modal-close {
    color: #a0a0a0;
    border-color: #3a3a3a;
}

body.dark-mode .price-modal-close:hover {
    background: #3a3a3a;
    color: #f5f5f5;
    border-color: #4a4a4a;
}

.price-modal-body {
    padding: 24px;
}

/* 价格弹窗 - 与订单列表 price_calculation_popup 统一风格 */
.price-modal-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
}

.price-details h4,
.price-note-title {
    font-size: 14px;
    font-weight: 600;
    color: #3C3C3C;
    margin: 0 0 12px 0;
}

.price-details {
    margin-bottom: 22px;
}

.price-detail-unified {
    background: #fafbfc;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.price-detail-body {
    padding: 16px 20px;
}

.price-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.price-detail-row:first-child {
    padding-top: 0;
}

.price-detail-row:last-child {
    padding-bottom: 0;
}

.price-detail-row + .price-detail-row {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.price-detail-label {
    flex-shrink: 0;
    color: #666;
    font-weight: 500;
}

.price-detail-val {
    flex: 1;
    text-align: right;
    color: #1a1a1a;
}

.price-detail-val .price-original {
    color: #999;
    text-decoration: line-through;
}

.price-detail-val .price-discount {
    color: #ff6b00;
    font-weight: 600;
}

.price-detail-val .price-calc-process {
    font-size: 13px;
    color: #555;
}

.price-detail-total {
    padding: 18px 20px;
    background: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-detail-total .total-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.price-detail-total .total-value {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.03em;
}

.price-note {
    background: #fafbfc;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 18px 20px;
}

.price-note-title {
    margin-bottom: 12px !important;
}

.price-note ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.75;
    color: #555;
}

.price-note li {
    margin-bottom: 6px;
}

body.dark-mode .price-details h4,
body.dark-mode .price-note-title {
    color: #f5f5f5;
}

body.dark-mode .price-detail-unified {
    background: transparent;
    border-color: #3a3a3a;
}

body.dark-mode .price-detail-label {
    color: #a0a0a0;
}

body.dark-mode .price-detail-val {
    color: #e0e0e0;
}

body.dark-mode .price-detail-total {
    background: #2a2a2a;
}

body.dark-mode .price-note {
    background: transparent;
    border-color: #3a3a3a;
}

body.dark-mode .price-note li {
    color: #a0a0a0;
}

/* 响应式：小屏幕上 */
@media (max-width: 768px) {
    .price-estimate {
        font-size: 12px;
    }
    
    .price-estimate #estimated-price {
        font-size: 16px;
    }
    
    .submit-section {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .total-price-display {
        margin-bottom: 0;
        width: 100%;
    }
    
    .submit-buttons-group {
        width: 100%;
    }
    
    .price-modal-box {
        width: 95%;
    }
}

/* ===== 配音稿件 - 紧凑 ===== */

.script-textarea {
    min-height: 160px;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
}

/* 带统计的标签 */
.form-label-with-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.label-content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 14px;
    line-height: 1;
}

.label-text {
    font-size: 12px;
    font-weight: 800;
    color: #374151;
}

/* 统计容器 */
.stats-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 字符计数器 */
.char-counter {
    font-size: 12px;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
}

.char-counter .char-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #9ca3af;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 2px;
    flex-shrink: 0;
}

.char-counter #script-char-count {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

@media (max-width: 768px) {
    .char-counter {
        font-size: 11px;
    }
    
    .char-counter #script-char-count {
        font-size: 13px;
    }
    
    .char-counter .char-icon,
    .price-estimate .price-icon {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }
    
    .script-textarea {
        min-height: 120px;
    }
}

/* ===================================
   配音订单页面 - 已选配音师和已选样音卡片样式
   基于 teacher_list 和 sound_list 的完整设计
   =================================== */

/* 使用 order- 前缀避免冲突 */

/* ===================================
   配音订单页面 - 已选配音师卡片样式
   基于 teacher_list.css 的完整结构
   =================================== */

/* 配音师卡片网格容器 - 响应式多列布局 */
.order-teacher-grid {
    display: grid;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

/* 大屏幕 - 3列 */
@media (min-width: 1200px) {
    .order-teacher-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 中等屏幕 - 2列 */
@media (min-width: 768px) and (max-width: 1199px) {
    .order-teacher-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 小屏幕 - 1列 */
@media (max-width: 767px) {
    .order-teacher-grid {
        grid-template-columns: 1fr;
    }
}

.order-Teacher {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    height: auto;
    border: 1px solid rgb(0 0 0 / 8%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInScale 0.5s ease-out backwards;
    position: relative;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.order-Teacher:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* 头像 */
.order-headimg-link {
    display: inline-block;
    text-decoration: none;
}

/* 电脑端统一 40×40 */
.order-HeadImg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto 16px;
    float: none;
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f3f4f6;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
    overflow: hidden;
}

.order-Teacher:hover .order-HeadImg {
    transform: scale(1.05);
}

/* 配音师名称 */
.order-teacher-code {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-decoration: none;
    text-align: center;
    transition: color 0.3s ease;
}

.order-teacher-code:hover {
    color: #1890ff;
}

/* 配音师信息 */
.order-teacher-info-text {
    font-size: 13px;
    color: #8c8c8c;
    text-align: center;
    margin-bottom: 6px;
    line-height: 1.6;
}

/* 播放器容器 - 完全复制原始设计 */
.order-TeacherBox {
    width: 96%;
    float: none;
    margin: 6px 0;
    display: flex;
    justify-content: center;
    background: #f0f2f5;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.order-Teacher:hover .order-TeacherBox {
    background: #e8eaed;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.06);
}

body.dark-mode .order-TeacherBox {
    background: transparent;
    border-color: #3a3a3a;
    box-shadow: none;
}

body.dark-mode .order-Teacher:hover .order-TeacherBox {
    background: rgba(255, 255, 255, 0.03);
    border-color: #4a4a4a;
}

.order-audio_teacher_list {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    z-index: 1;
}

/* 波形图容器 */
.order-audio_teacher_list .waveform {
    position: relative;
    flex: 1;
    min-width: 0;
    margin-left: 33px;
    height: 40px;
    filter: invert(9%) sepia(9%) saturate(13%) hue-rotate(71deg) brightness(97%) contrast(110%);
}

/* 播放按钮定位 - 绝对定位覆盖在波形左侧 */
.order-audio_teacher_list .controls {
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 10;
    width: 27px;
    border-radius: 50%;
    cursor: pointer;
}

.order-audio_teacher_list .controls .btn-primary {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #000000;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: none;
    box-shadow: none;
    position: relative;
}

.order-audio_teacher_list .controls .btn-primary:hover {
    background: #ff9800;
    border-color: #ff9800;
}

/* 播放状态时的样式 */
.order-audio_teacher_list .controls .btn-primary:has(.glyphicon-pause),
.order-audio_teacher_list .controls .btn-primary.playing {
    background: #ff9800;
    border-color: #ff9800;
}

.order-audio_teacher_list .controls .btn-primary:has(.glyphicon-pause):hover,
.order-audio_teacher_list .controls .btn-primary.playing:hover {
    background: #fb8c00;
    border-color: #fb8c00;
}

/* 播放图标（深色三角形） */
.order-audio_teacher_list .controls .glyphicon-play {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 9px;
    border-color: transparent transparent transparent #000000;
    background: none;
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    filter: none;
    border-radius: 0;
    transition: none;
    margin-left: 1px;
    margin-top: 0;
    display: inline-block;
}

.order-audio_teacher_list .controls .btn-primary:hover .glyphicon-play {
    border-left-color: #000000;
}

/* 暂停图标 - 隐藏三角形边框 */
.order-audio_teacher_list .controls .glyphicon-play.glyphicon-pause {
    width: 8px;
    height: 10px;
    border: none;
    border-width: 0;
    background: none;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
    display: inline-block;
}

.order-audio_teacher_list .controls .glyphicon-play.glyphicon-pause::before,
.order-audio_teacher_list .controls .glyphicon-play.glyphicon-pause::after {
    content: '';
    position: absolute;
    width: 2.5px;
    height: 10px;
    background: #ffffff;
    border-radius: 0.5px;
    top: 0;
}

.order-audio_teacher_list .controls .glyphicon-play.glyphicon-pause::before {
    left: 0;
}

.order-audio_teacher_list .controls .glyphicon-play.glyphicon-pause::after {
    right: 0;
}

/* 播放状态时按钮变橙色 */
.order-audio_teacher_list .controls.playing .btn-primary {
    background: #ff9800;
    border-color: #ff9800;
}

.order-audio_teacher_list .controls.playing .btn-primary:hover {
    background: #ff9800;
    border-color: #ff9800;
}

/* 时间显示 */
.order-audio_teacher_list .total-time,
.order-audio_teacher_list .current-time-on-pointer {
    display: none;
}

/* 操作按钮区 */
.order-voice-actions {
    width: 96%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    margin-top: auto;
    margin-bottom: 3px;
    gap: 15px;
    padding-top: 12px;
}

.order-voice-action-btn {
    flex: 1;
    padding: 8px 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.order-voice-action-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #333;
}

/* 价格按钮特殊样式 */
.order-voice-action-btn.order-price-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    font-weight: 500;
}

.order-voice-action-btn.order-price-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* 收藏按钮样式 */
.order-voice-action-btn.order-collection_teacher {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.order-voice-action-btn.order-collection_teacher:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #333;
}

/* 收藏按钮样式已统一在 /css/web/components/card_actions.css 中控制 */

/* 价格弹窗样式 - 全屏居中 + 缩放动画 */
.order-price-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 50000; /* 🔧 降低层级，避免覆盖客服（客服为100000+） */
    display: none;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    border: none;
    transform: none;
    overflow: hidden;
    isolation: isolate;
}

.order-price-popup.show {
    display: flex;
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from { 
        opacity: 0;
    }
    to { 
        opacity: 1;
    }
}

.order-price-popup-content {
    background-color: #fff;
    border-radius: 13px;
    padding: 24px 20px;
    padding-bottom: 50px;
    width: 320px;
    max-width: 90%;
    min-height: 160px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform-origin: center center;
}

.order-price-popup.show .order-price-popup-content {
    animation: popupScaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 1;
    transform: scale(1);
}

@keyframes popupScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.order-price-popup.closing {
    animation: popupFadeOut 0.25s ease-in forwards;
}

.order-price-popup.closing .order-price-popup-content {
    animation: popupScaleOut 0.25s ease-in forwards;
}

@keyframes popupFadeOut {
    from { 
        opacity: 1;
    }
    to { 
        opacity: 0;
    }
}

@keyframes popupScaleOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}


/* ===================================
   配音订单页面 - 已选样音卡片样式
   基于 sound_list.css 的 card-view 模式
   =================================== */

/* 样音卡片网格容器 - 响应式多列布局 */
.order-sample-grid {
    display: grid;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .order-sample-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .order-sample-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 767px) {
    .order-sample-grid {
        grid-template-columns: 1fr;
    }
}

/* 样音卡片 - 垂直卡片布局 */
.order-sample-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    row-gap: 16px;
    align-items: start;
    justify-items: center;
    width: 100%;
    height: auto;
    padding: 20px;
    border: 1px solid rgb(0 0 0 / 13%);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 0;
    box-sizing: border-box;
    --player-box-width: 100%;
}

.order-sample-item:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: rgba(0, 0, 0, 0.1);
}

.order-sample-controls-row {
    display: contents;
}

/* 第一行：头像 */
.order-sample-avatar-container {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: 40px;
    height: 40px;
    margin: 0;
    justify-self: start;
}

.order-sample-avatar-container a {
    display: block;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.order-sample-avatar {
    width: 100%;
    height: 100%;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f3f4f6;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.order-sample-item:hover .order-sample-avatar {
    transform: scale(1.05);
}

/* 第一行：标题信息 */
.order-sample-info-container2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    margin: 0;
    align-self: center;
    justify-self: stretch;
    text-align: left;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.order-sample-title {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 4px;
}

.order-sample-style {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #938e96;
}

.order-style-tags {
    color: #938e96;
}

/* 第二行：播放按钮 */
.order-sample-item .controls {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    justify-self: center;
    align-self: center;
    width: 32px;
    margin: 0;
    margin-right: calc(var(--player-box-width) - 55px);
    position: relative;
    z-index: 10;
}

.order-sample-item .controls .btn-primary {
    width: 27px;
    height: 27px;
    min-width: 27px;
    min-height: 27px;
    max-width: 27px;
    max-height: 27px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #000000;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: none;
    box-shadow: none;
    position: relative;
    box-sizing: border-box;
    overflow: visible;
}

.order-sample-item .controls .btn-primary:hover {
    border-color: #ff9800;
    background: #ff9800;
}

.order-sample-item .controls .btn-primary:has(.glyphicon-pause),
.order-sample-item .controls .btn-primary.playing {
    background: #ff9800;
    border-color: #ff9800;
}

.order-sample-item .controls .btn-primary:has(.glyphicon-pause):hover,
.order-sample-item .controls .btn-primary.playing:hover {
    background: #fb8c00;
    border-color: #fb8c00;
}

.order-sample-item .controls .glyphicon-play {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 9px;
    border-color: transparent transparent transparent #000000;
    background: none;
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    filter: none;
    border-radius: 0;
    transition: none;
    margin-left: 1px;
    margin-top: 0;
    display: inline-block;
}

.order-sample-item .controls .btn-primary:hover .glyphicon-play {
    border-left-color: #000000;
}

.order-sample-item .controls .glyphicon-play.glyphicon-pause {
    width: 8px;
    height: 10px;
    border: none;
    border-width: 0;
    background: none;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
    display: inline-block;
}

.order-sample-item .controls .glyphicon-play.glyphicon-pause::before,
.order-sample-item .controls .glyphicon-play.glyphicon-pause::after {
    content: '';
    position: absolute;
    width: 2.5px;
    height: 10px;
    background: #ffffff;
    border-radius: 0.5px;
    top: 0;
}

.order-sample-item .controls .glyphicon-play.glyphicon-pause::before {
    left: 0;
}

.order-sample-item .controls .glyphicon-play.glyphicon-pause::after {
    right: 0;
}

.order-sample-item .controls.playing .btn-primary {
    background: #ff9800;
    border-color: #ff9800;
}

.order-sample-item .controls.playing .btn-primary:hover {
    background: #ff9800;
    border-color: #ff9800;
}

/* 第二行：波形容器 */
.order-waveform-container {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    justify-self: center;
    align-self: center;
    width: calc(var(--player-box-width));
    position: relative;
    background: #f0f2f5;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    padding: 10px 0; /* 只保留上下padding，移除左侧padding */
}

.order-sample-item:hover .order-waveform-container {
    background: #e8eaed;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.06);
}

.order-waveform-container .waveform {
    width: calc(100% - 45px); /* 减去margin-left的宽度 */
    height: 40px; /* 固定高度，与配音师卡片一致 */
    margin-left: 42px; /* 与首页一致 */
    filter: invert(9%) sepia(9%) saturate(13%) hue-rotate(71deg) brightness(97%) contrast(110%);
    background: transparent;
    position: relative; /* 让时间标签相对于波形定位 */
    /* 移除 padding 和 border-radius，避免影响宽度计算 */
}

body.dark-mode .order-waveform-container {
    background: transparent;
    border-color: #3a3a3a;
    box-shadow: none;
}

body.dark-mode .order-sample-item:hover .order-waveform-container {
    background: rgba(255, 255, 255, 0.03);
    border-color: #4a4a4a;
}

body.dark-mode .order-waveform-container .waveform {
    background: transparent;
}

/* 第三行：功能按钮 */
.order-sample-actions {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--player-box-width);
    margin: 0;
    gap: 20px;
}

.order-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.order-action-icon svg {
    width: 19px;
    height: 19px;
    stroke: #666;
    fill: none;
    transition: all 0.2s ease;
    stroke-width: 3;
}

.order-action-icon:hover {
    transform: translateY(-1px);
    background-color: #0f766e;
    border-color: #0f766e;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.order-action-icon:hover svg {
    stroke: #fff;
    fill: none;
}

/* 收藏按钮样式统一由 /css/web/components/card_actions.css 管理 */

/* 总时间显示 - 隐藏 */
.order-waveform-container .total-time,
.order-audio_teacher_list .waveform .total-time {
    display: none;
}

/* 播放时间指示器 */
.order-waveform-container .current-time-on-pointer,
.order-audio_teacher_list .waveform .current-time-on-pointer {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(calc(-100% - 2px), -50%);
    background-color: rgba(34, 62, 72, 0.95);
    color: white;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 11px;
    z-index: 11;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: none;
    min-width: 42px; /* 固定最小宽度，防止时间变化时抖动 */
    text-align: center; /* 文字居中 */
    box-sizing: border-box; /* 包含padding在宽度内 */
}

/* 进度条 */
.progress {
    height: 3px;
    margin: 0;
    background-color: #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #1890ff;
    transition: width 0.3s ease;
}

/* 暗黑模式支持 - 简约设计 */
body.dark-mode .order-Teacher,
body.dark-mode .order-sample-item {
    background: #242424;
    border-color: #3a3a3a;
}

body.dark-mode .order-Teacher:hover,
body.dark-mode .order-sample-item:hover {
    background: #2a2a2a;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .order-teacher-code,
body.dark-mode .order-sample-title {
    color: #f5f5f5;
}

body.dark-mode .order-teacher-info-text,
body.dark-mode .order-sample-style {
    color: #a0a0a0;
}

body.dark-mode .order-HeadImg,
body.dark-mode .order-sample-avatar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background-color: #374151;
}

body.dark-mode .order-audio_teacher_list .controls .btn-primary,
body.dark-mode .order-sample-item .controls .btn-primary {
    background: #2a2a2a;
    border-color: #4a4a4a;
}

body.dark-mode .order-audio_teacher_list .controls .btn-primary:hover,
body.dark-mode .order-sample-item .controls .btn-primary:hover {
    background: #3a3a3a;
    border-color: #0ea5e9;
}

body.dark-mode .order-voice-action-btn {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #a0a0a0;
}

body.dark-mode .order-voice-action-btn:hover {
    background: #3a3a3a;
    border-color: #4a4a4a;
    color: #f5f5f5;
}

body.dark-mode .order-action-icon {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
}

body.dark-mode .order-action-icon svg {
    stroke: #a0a0a0;
}

body.dark-mode .order-action-icon:hover {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
}

body.dark-mode .order-action-icon:hover svg {
    stroke: #fff;
}

body.dark-mode .order-waveform-container .current-time-on-pointer,
body.dark-mode .order-audio_teacher_list .waveform .current-time-on-pointer {
    background-color: #0ea5e9;
    color: #ffffff;
}

body.dark-mode .order-price-popup {
    background-color: rgba(0, 0, 0, 0.75);
}

body.dark-mode .order-price-popup-content {
    background-color: #2a2a2a;
    color: #f5f5f5;
}

body.dark-mode .order-price-popup-title {
    color: #f5f5f5;
}

body.dark-mode .order-price-popup-close {
    background-color: #3a3a3a;
    color: #a0a0a0;
}

body.dark-mode .order-price-popup-close:hover {
    background-color: #4a4a4a;
    color: #f5f5f5;
}

body.dark-mode .order-price-item {
    border-bottom-color: #3a3a3a;
}

body.dark-mode .order-price-label {
    color: #a0a0a0;
}

body.dark-mode .order-price-value {
    color: #ff9800;
}

body.dark-mode .price-subnote {
    color: #a0a0a0;
}

body.dark-mode .original-price {
    color: #606060;
}

body.dark-mode .progress {
    background-color: #3a3a3a;
}

/* 移动端响应式 - 价格弹窗 */
@media (max-width: 480px) {
    .order-price-popup-content {
        width: 90%;
        padding: 20px 16px;
        padding-bottom: 46px;
    }
    
    .order-price-popup-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .order-price-label,
    .order-price-value {
        font-size: 13px;
    }
    
    .price-subnote {
        font-size: 11px;
        right: 16px;
        bottom: 10px;
    }
}

/* 打印样式 */
@media print {
    .order-Teacher,
    .order-sample-item {
        box-shadow: none;
        border: 1px solid #ddd;
        animation: none;
    }
    
    .order-TeacherBox,
    .order-waveform-container,
    .order-voice-actions,
    .order-sample-actions {
        display: none;
    }
}

/* ================ 付款弹窗样式 ================ */
.payment-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-popup-overlay.show {
    opacity: 1;
}

.payment-popup-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.payment-popup-overlay.show .payment-popup-content {
    transform: scale(1);
}

.payment-popup-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
}

.payment-popup-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.payment-popup-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.payment-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.payment-popup-body {
    padding: 24px;
}

.payment-order-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.payment-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.payment-info-row:last-child {
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 2px solid #dee2e6;
}

.payment-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.payment-value {
    font-size: 14px;
    color: #333;
}

.payment-price {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.payment-note {
    background: #e7f3ff;
    border-left: 4px solid #667eea;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.payment-note p {
    margin: 0;
    font-size: 14px;
    color: #2c5aa0;
    line-height: 1.6;
}

.payment-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-btn {
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.payment-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.payment-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.payment-btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.payment-btn-secondary:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.payment-btn .btn-icon {
    font-size: 18px;
}

.payment-btn .btn-text {
    font-size: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .payment-popup-content {
        width: 95%;
        max-width: none;
    }
    
    .payment-popup-header {
        padding: 16px 20px;
    }
    
    .payment-popup-header h3 {
        font-size: 18px;
    }
    
    .payment-popup-body {
        padding: 20px;
    }
    
    .payment-actions {
        grid-template-columns: 1fr;
    }
    
    .payment-price {
        font-size: 20px;
    }
}

/* ================ 完整付款弹窗样式（来自订单详情页） ================ */
.complete-payment-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
}

.complete-payment-modal-container.show {
    display: block;
}

.complete-payment-modal-container .payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99998;
    animation: fadeIn 0.3s ease;
}

.complete-payment-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    animation: slideIn 0.3s ease;
}

.complete-payment-modal .payment-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.complete-payment-modal .payment-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: white;
}

.complete-payment-modal .payment-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.complete-payment-modal .payment-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.complete-payment-modal .payment-modal-body {
    padding: 24px;
}

.complete-payment-modal .order-summary-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.complete-payment-modal .order-summary-section h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.complete-payment-modal .order-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.complete-payment-modal .summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.complete-payment-modal .summary-item .label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.complete-payment-modal .summary-item .value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.complete-payment-modal .summary-item .price-highlight {
    font-size: 20px;
    color: #667eea;
    font-weight: 700;
}

.complete-payment-modal .settlement-info {
    background: #fff;
    border: 2px solid #e9ecef;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.complete-payment-modal .settlement-info h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.complete-payment-modal .settlement-table {
    width: 100%;
    border-collapse: collapse;
}

.complete-payment-modal .settlement-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.complete-payment-modal .settlement-table tr:last-child {
    border-bottom: none;
}

.complete-payment-modal .settlement-table td {
    padding: 12px 0;
    font-size: 14px;
}

.complete-payment-modal .settlement-table .price-text {
    text-align: right;
    font-size: 16px;
    color: #667eea;
    font-weight: 600;
}

.complete-payment-modal .settlement-table .total-row {
    border-top: 2px solid #e9ecef;
    padding-top: 12px;
}

.complete-payment-modal .settlement-table .total-row td {
    padding-top: 16px;
    font-size: 18px;
}

.complete-payment-modal .payment-notice-box {
    background: #e7f3ff;
    border-left: 4px solid #667eea;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
}

.complete-payment-modal .notice-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.complete-payment-modal .notice-content {
    flex: 1;
}

.complete-payment-modal .notice-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #2c5aa0;
    line-height: 1.6;
}

.complete-payment-modal .notice-content p:last-child {
    margin-bottom: 0;
}

.complete-payment-modal .notice-content strong {
    font-weight: 600;
}

.complete-payment-modal .payment-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.complete-payment-modal .payment-action-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.complete-payment-modal .payment-action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.complete-payment-modal .payment-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.complete-payment-modal .payment-action-btn.secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
}

.complete-payment-modal .payment-action-btn.secondary:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 响应式 */
@media (max-width: 768px) {
    .complete-payment-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .complete-payment-modal .payment-modal-header {
        padding: 20px;
    }
    
    .complete-payment-modal .payment-modal-header h3 {
        font-size: 18px;
    }
    
    .complete-payment-modal .payment-modal-body {
        padding: 20px;
    }
    
    .complete-payment-modal .order-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .complete-payment-modal .payment-action-buttons {
        grid-template-columns: 1fr;
    }
}
