/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --vh: 1vh;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #ffffff;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 顶部导航栏 */
.header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-text {
    color: #FFD700;
}

.menu-icon {
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-icon:hover {
    color: #FFD700;
}

/* 顶部 注册/登录 按钮 */
.auth-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}
.auth-btn:hover { opacity: .9; }

/* 主内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem;
    padding-bottom: 96px; /* 与底部tab保持留白 */
    min-height: calc(100vh - 200px); /* 确保有足够高度 */
    position: relative;
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 1.5rem; /* 大幅减少标题下方间距 */
}

.page-title {
    font-size: 2.2rem; /* 调整标题大小 */
    font-weight: 700;
    margin-bottom: 0.4rem; /* 减少标题与副标题间距 */
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.1rem; /* 稍微增大副标题大小 */
    color: #cccccc;
    opacity: 0.9;
    line-height: 1.4;
}

/* 卡片样式 */
.config-card, .input-card, .output-card, .status-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 1rem; /* 进一步减小内边距 */
    margin-bottom: 0.75rem; /* 减小卡片间距 */
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem; /* 减小头部间距 */
    font-size: 1rem; /* 减小头部字体 */
    font-weight: 600;
}

.blinking {
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* API配置区域 */
.config-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

.config-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-group label {
    font-weight: 600;
    color: #FFD700;
}

.config-select, .config-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.8rem;
    color: #ffffff;
    font-size: 1rem;
}

.config-select:focus, .config-input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* 功能切换标签 */
.tab-container {
    display: flex;
    gap: 1.5rem; /* 减小标签间距 */
    margin-bottom: 1.25rem; /* 减小标签下方间距 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab {
    position: relative;
    padding: 0.75rem 0; /* 减小标签内边距 */
    cursor: pointer;
    color: #cccccc;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab i {
    font-size: 1rem;
    transition: color 0.3s ease;
}

.tab.active {
    color: #FFD700;
}

.tab-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #FFD700;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab.active .tab-indicator {
    opacity: 1;
}


/* 上传区域 */
.upload-section {
    margin-bottom: 1.25rem; /* 减小上传区域下方间距 */
}

.upload-section h3 {
    margin-bottom: 0.75rem; /* 减小标题下方间距 */
    color: #ffffff;
}

.image-count {
    color: #FFD700;
}

.upload-area {
    border: 2px dashed rgba(255, 215, 0, 0.5);
    border-radius: 15px;
    padding: 1.5rem 1rem; /* 减小上传区域内边距 */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 215, 0, 0.05);
}

.upload-area:hover {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.upload-area i {
    font-size: 3rem;
    color: #FFD700;
    margin-bottom: 1rem;
    display: block;
}

.upload-area p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.upload-hint {
    color: #999999;
    font-size: 0.9rem;
}

.uploaded-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.uploaded-image {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #FFD700;
}

.uploaded-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uploaded-image .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
}

.upload-notice {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #FFD700;
}

.upload-notice i {
    color: #FFD700;
    flex-shrink: 0;
}

/* 提示词输入框 */
.prompt-input {
    margin-bottom: 1.25rem; /* 减小提示词下方间距 */
}

.prompt-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #FFD700;
}

.prompt-wrapper { display:flex; gap:1rem; align-items: stretch; position: relative; }
.prompt-textarea-wrap { position: relative; flex: 1; }
.prompt-controls { position:absolute; top:8px; right:8px; display:flex; align-items:center; justify-content:center; z-index: 2; }
.prompt-controls .field-clear-btn { margin: 0; }
/* 清空按钮默认隐藏，仅在有内容时显示 */
.prompt-controls { opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.prompt-controls.visible { opacity: 1; visibility: visible; }

/* 当显示清空按钮时，给文本留出空间避免遮挡 */
.prompt-textarea-wrap.has-clear .prompt-textarea { padding-right: 40px; }
.prompt-side { width: 260px; display:flex; flex-direction: column; gap:.5rem; }
.prompt-side .suggest-btn { width: 100%; justify-content: center; }
.prompt-side .suggest-hint { margin: 0; }

.prompt-textarea {
    width: 100%;
    min-height: 100px; /* 减小最小高度 */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1rem; /* 减小内边距 */
    color: #ffffff;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Source Han Sans SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.02em;
    resize: vertical;
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    word-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
}

.prompt-textarea:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.prompt-textarea::placeholder {
    color: #a0aec0;
    font-weight: 300;
    font-style: italic;
    opacity: 0.8;
}

/* 立即生成按钮 */
.generate-btn {
    width: 100%;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: none;
    border-radius: 15px;
    padding: 1rem 1.5rem; /* 减小按钮内边距 */
    color: #000000;
    font-size: 1.1rem; /* 稍微减小字体 */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 新的视觉禁用与忙碌状态（不使用原生disabled避免点击无响应体验） */
.generate-btn.btn-disabled:not(.busy) {
    opacity: 0.6;
    cursor: not-allowed;
}
.generate-btn.busy {
    opacity: 0.9;
    cursor: progress;
}


/* 状态卡片 */
.status-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    max-height: 300px;
    overflow-y: auto;
}

.status-item {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.status-label {
    color: #FFD700;
    font-weight: bold;
}

.status-value {
    color: #ffffff;
    margin-left: 0.5rem;
}

/* 生成提示按钮 */
/* 移除独立的提示词建议区（已并入侧边） */
.prompt-suggestion { display:none; }

.suggest-btn {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 1rem 2rem;
    color: #FFD700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.suggest-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.suggest-hint {
    margin-top: 0.5rem;
    color: #999999;
    font-size: 0.9rem;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding: 0.5rem 0; /* 降低高度 */
    display: flex;
    justify-content: center;
    gap: 3rem; /* 收紧间距 */
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: color 0.3s ease;
    color: #cccccc;
    position: relative;
    padding: 0.5rem;
}

.nav-item.active {
    color: #FFD700;
}

.nav-item i {
    font-size: 1.05rem; /* 图标更小 */
}

.nav-item span {
    font-size: 0.75rem; /* 文案更小 */
}

.nav-indicator {
    position: absolute;
    bottom: -0.5rem; /* 指示点更靠近 */
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    text-align: center;
    color: #FFD700;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.loading-spinner p {
    font-size: 1.2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        padding: 0.75rem; /* 移动端进一步减小内边距 */
        padding-bottom: 88px; /* 移动端预留与底部tab的距离 */
    }
    
    .page-title {
        font-size: 1.8rem; /* 移动端标题大小 */
    }
    
    .page-subtitle {
        font-size: 1rem; /* 移动端副标题大小 */
    }
    .page-header { margin-bottom: 1rem; }
    
    .config-card, .input-card, .output-card, .status-card {
        padding: 1rem; /* 移动端减小卡片内边距 */
    }
    
    .config-row {
        grid-template-columns: 1fr;
    }
    
    .tab-container {
        gap: 1rem;
    }
    
    .upload-area {
        padding: 1.25rem 0.75rem; /* 移动端进一步减小上传区域内边距 */
    }
    
    .header-content {
        padding: 0 1rem;
    }
    .prompt-wrapper { flex-direction: column; }
    .prompt-side { width: 100%; }
    /* 移动端：提示词清空按钮尺寸与位置适配 */
    .prompt-controls { top: 6px; right: 6px; }
    .prompt-controls .field-clear-btn { width: 22px; height: 22px; font-size: 12px; }
    .prompt-textarea-wrap.has-clear .prompt-textarea { padding-right: 36px; }

    /* 表单控件更紧凑 */
    .prompt-textarea { 
        min-height: 90px; 
        padding: 0.9rem; 
        font-size: 0.95rem;
        line-height: 1.5;
    }
    .generate-btn { 
        padding: 0.85rem 1.25rem; 
        font-size: 1rem; 
        margin-top: 1rem;
        position: relative;
        z-index: 10;
    }

    /* 上传缩略图更小，避免换行过多 */
    .uploaded-image { width: 80px; height: 80px; }

    /* 底部导航进一步压缩 */
    .bottom-nav { padding: 0.45rem 0; gap: 2rem; }
    .nav-item i { font-size: 0.95rem; }
    .nav-item span { font-size: 0.7rem; }

    /* 状态区域高度降低，避免占屏过多 */
    .status-content { max-height: 220px; }
}

/* 文件拖拽效果 */
.upload-area.dragover {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.02);
}

/* 成功/错误消息 */
.message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    z-index: 10001;
    max-width: 400px;
    min-width: 300px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #cccccc;
    transition: all 0.2s ease;
}

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

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.message.info {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #cccccc;
}

.message.success {
    background: rgba(76, 175, 80, 0.95);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: white;
}

.message.error {
    background: rgba(244, 67, 54, 0.95);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: white;
}

/* 状态样式 */
.status-processing {
    color: #FFD700 !important;
    animation: pulse 1.5s infinite;
}

.status-completed {
    color: #00ff00 !important;
}

.status-failed {
    color: #ff0000 !important;
}

.status-item.error {
    background: rgba(255, 0, 0, 0.1);
    border-left: 3px solid #ff0000;
}

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

/* 图片操作按钮 */
.image-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.output-image:hover .image-actions {
    opacity: 1;
}

.download-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* 图片模态框 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

/* 认证弹窗 */
.auth-modal .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    padding: 16px;
}
.auth-dialog {
    width: 100%;
    max-width: 520px;
    background: rgba(26, 26, 46, 0.95);
    color: #fff;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 1rem 1rem 1.5rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.auth-dialog .modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 1;
    padding: 8px;
    line-height: 1;
}
.auth-tabs { 
    display: flex; 
    gap: 1rem; 
    padding: .5rem 1rem 1rem; 
    border-bottom: 1px solid rgba(255,255,255,.1); 
    overflow-x: auto;
}
.auth-tab { 
    cursor: pointer; 
    color: #ccc; 
    padding: .5rem 0; 
    white-space: nowrap;
    font-size: 16px;
    min-width: fit-content;
}
.auth-tab.active { 
    color: #FFD700; 
    border-bottom: 2px solid #FFD700; 
}
.auth-content { 
    padding: 1rem; 
}
.auth-form { 
    display: block; 
}
.auth-field { 
    display: flex; 
    align-items: center; 
    gap: .6rem; 
    border: 1px solid rgba(255,255,255,.2); 
    border-radius: 10px; 
    padding: 1rem; 
    margin-bottom: 1rem; 
    background: rgba(255,255,255,.05); 
    min-height: 48px;
    position: relative;
}
.auth-field i { 
    color: #FFD700; 
    font-size: 18px;
    min-width: 20px;
}
.auth-field input { 
    flex: 1; 
    border: none; 
    background: transparent; 
    outline: none; 
    color: #fff; 
    font-size: 16px;
    padding: 4px 0;
}
.auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* 字段操作按钮样式 */
.field-clear-btn, .field-toggle-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: .5rem;
}

.field-clear-btn:hover, .field-toggle-btn:hover {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

/* .field-toggle-btn 样式在 .field-clear-btn, .field-toggle-btn 中已定义 */

/* 当输入框有内容时显示清空按钮 */
.auth-field:not(:focus-within) .field-clear-btn {
    opacity: 0;
    visibility: hidden;
}

.auth-field:focus-within .field-clear-btn {
    opacity: 1;
    visibility: visible;
}

/* 密码字段的切换按钮始终显示 */
.field-toggle-btn {
    opacity: 1;
    visibility: visible;
}

/* 当密码可见时改变图标 */
.field-toggle-btn.password-visible i::before {
    content: "\f070"; /* fa-eye-slash */
}

/* 输入框占满剩余空间，按钮在右侧行内显示 */
.auth-field input {
    padding-right: 0;
}

/* 兼容：移除:has 依赖，行内按钮无需额外右内边距 */

.auth-field .action-btn { 
    background: rgba(255, 215, 0, 0.15); 
    color: #FFD700; 
    border: 1px solid rgba(255, 215, 0, 0.3); 
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}
.auth-actions { 
    margin-top: 1rem; 
}
.auth-actions button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    min-height: 48px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 用户协议复选框样式 */
.auth-agreement {
    margin: 1rem 0;
    padding: 0 0.5rem;
}

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #cccccc;
}

.agreement-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 4px;
    background: transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.agreement-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #FFD700;
    border-color: #FFD700;
}

.agreement-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.agreement-text {
    flex: 1;
    user-select: none;
}

.agreement-link {
    color: #FFD700;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.agreement-link:hover {
    color: #FFA500;
    border-bottom-color: #FFA500;
}

.agreement-checkbox:hover .checkmark {
    border-color: #FFD700;
}

/* 协议模态框样式 */
.agreement-content {
    max-width: 600px;
    max-height: 80vh;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 2rem;
    overflow: hidden;
}

.agreement-body h3 {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 0.5rem;
}

.agreement-body h4 {
    color: #FFD700;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem 0;
}

.agreement-body p {
    margin-bottom: 1rem;
    text-align: justify;
}

.agreement-body ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.agreement-body li {
    margin-bottom: 0.5rem;
}

.agreement-body strong {
    color: #FFD700;
}

/* 移动端协议模态框适配 */
@media (max-width: 768px) {
    .agreement-content {
        max-width: 90vw;
        max-height: 85vh;
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .agreement-body {
        font-size: 14px;
    }
    
    .agreement-body h3 {
        font-size: 1.3rem;
    }
    
    .agreement-body h4 {
        font-size: 1.1rem;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .auth-modal .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        padding: 16px;
        /* 移动端确保全屏覆盖 */
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
    }
    
    .auth-dialog {
        width: 100%;
        max-width: 400px;
        margin: 0;
        border-radius: 12px;
        padding: 1rem;
        max-height: calc(100vh - 32px);
        /* 移动端确保内容可见 */
        position: relative;
        overflow: visible;
        background: rgba(26, 26, 46, 0.98);
        border: 1px solid rgba(255, 215, 0, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }
    
    .auth-dialog .modal-close {
        position: absolute;
        top: 8px;
        right: 12px;
        font-size: 20px;
        padding: 4px;
        z-index: 10;
        /* 移动端确保关闭按钮可点击 */
        min-width: 32px;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
        touch-action: manipulation;
    }
    
    .auth-tabs {
        display: flex;
        gap: 0.5rem;
        padding: 0.5rem 0 1rem;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        overflow-x: auto;
    }
    
    .auth-tab {
        font-size: 14px;
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
        cursor: pointer;
        color: #ccc;
        border-bottom: 2px solid transparent;
        transition: all 0.3s ease;
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
        touch-action: manipulation;
    }
    
    .auth-tab.active {
        color: #FFD700;
        border-bottom-color: #FFD700;
    }
    
    .auth-content {
        padding: 0.5rem 0;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .auth-field {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        min-height: 44px;
        /* 移动端确保输入框样式正确 */
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .auth-field input {
        font-size: 16px; /* 防止iOS缩放 */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 0;
        background: transparent;
        border: none;
        outline: none;
        color: #fff;
        width: 100%;
    }
    
    .auth-field input:focus {
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }
    
    .auth-field .action-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .auth-actions button {
        padding: 14px;
        font-size: 16px;
        min-height: 50px;
        width: 100%;
        border-radius: 8px;
        /* 移动端确保按钮可点击 */
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
        touch-action: manipulation;
    }
    
    /* 移动端字段按钮适配（行内布局，无覆盖） */
    .field-clear-btn, .field-toggle-btn {
        width: 20px;
        height: 20px;
        font-size: 12px;
        margin-left: .4rem;
        /* 移动端确保按钮可点击 */
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
        touch-action: manipulation;
    }
}

@media (max-width: 480px) {
    .auth-modal .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        padding: 12px;
        /* 小屏移动端确保全屏覆盖 */
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
    }
    
    .auth-dialog {
        width: 100%;
        max-width: 360px;
        margin: 0;
        border-radius: 8px;
        padding: 0.75rem;
        max-height: calc(100vh - 24px);
        /* 小屏移动端确保内容可见 */
        position: relative;
        overflow: visible;
        background: rgba(26, 26, 46, 0.98);
        border: 1px solid rgba(255, 215, 0, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }
    
    .auth-dialog .modal-close {
        position: absolute;
        top: 6px;
        right: 10px;
        font-size: 18px;
        padding: 3px;
        z-index: 10;
        /* 小屏移动端确保关闭按钮可点击 */
        min-width: 30px;
        min-height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
        touch-action: manipulation;
    }
    
    .auth-tabs {
        display: flex;
        gap: 0.4rem;
        padding: 0.4rem 0 0.8rem;
        margin: 0 -0.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        overflow-x: auto;
    }
    
    .auth-tab {
        font-size: 13px;
        padding: 0.4rem 0.6rem;
        white-space: nowrap;
        cursor: pointer;
        color: #ccc;
        border-bottom: 2px solid transparent;
        transition: all 0.3s ease;
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
        touch-action: manipulation;
    }
    
    .auth-tab.active {
        color: #FFD700;
        border-bottom-color: #FFD700;
    }
    
    .auth-content {
        padding: 0.4rem 0;
        max-height: 65vh;
        overflow-y: auto;
    }
    
    .auth-field {
        padding: 0.6rem;
        margin-bottom: 0.6rem;
        min-height: 42px;
        /* 小屏移动端确保输入框样式正确 */
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .auth-field input {
        font-size: 16px; /* 防止iOS缩放 */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 0;
        background: transparent;
        border: none;
        outline: none;
        color: #fff;
        width: 100%;
    }
    
    .auth-field input:focus {
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }
    
    .auth-actions button {
        padding: 12px;
        font-size: 15px;
        min-height: 48px;
        width: 100%;
        border-radius: 8px;
        /* 小屏移动端确保按钮可点击 */
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
        touch-action: manipulation;
    }
    
    /* 小屏移动端字段按钮适配 */
    .field-clear-btn, .field-toggle-btn {
        width: 18px;
        height: 18px;
        font-size: 11px;
        margin-left: .3rem;
        /* 小屏移动端确保按钮可点击 */
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
        touch-action: manipulation;
    }
    
    /* 更小屏幕：进一步缩小清空按钮，避免遮挡 */
    .prompt-controls { 
        top: 4px; 
        right: 4px; 
    }
    
    .prompt-controls .field-clear-btn { 
        width: 20px; 
        height: 20px; 
        font-size: 11px; 
        padding: 2px;
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
        touch-action: manipulation;
    }
    
    .prompt-textarea-wrap.has-clear .prompt-textarea { 
        padding-right: 32px; 
    }
}

/* 微信小程序适配 */
@media screen and (max-width: 480px) and (-webkit-min-device-pixel-ratio: 2) {
    /* 微信小程序内嵌浏览器优化 */
    .prompt-controls { top: 5px; right: 5px; }
    .prompt-controls .field-clear-btn { 
        width: 24px; 
        height: 24px; 
        font-size: 13px; 
        padding: 3px;
        /* 微信小程序中确保可点击 */
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
        touch-action: manipulation;
    }
    .prompt-textarea-wrap.has-clear .prompt-textarea { padding-right: 38px; }
    
    /* 微信小程序中避免输入框被键盘遮挡 */
    .prompt-textarea {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
        -webkit-touch-callout: none;
        font-size: 0.9rem;
        line-height: 1.5;
        font-weight: 400;
    }
    
    /* 微信小程序中确保按钮可见性 */
    .prompt-controls.visible {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* 移动端设备通用适配 */
.mobile-device .auth-modal .modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    background: rgba(0, 0, 0, 0.9) !important;
}

.mobile-device .auth-dialog {
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 !important;
    border-radius: 12px !important;
    background: rgba(26, 26, 46, 0.98) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

.mobile-device .auth-dialog .modal-close {
    position: absolute !important;
    top: 8px !important;
    right: 12px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    z-index: 10 !important;
    -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3) !important;
    touch-action: manipulation !important;
}

.mobile-device .field-clear-btn, 
.mobile-device .field-toggle-btn {
    -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3) !important;
    touch-action: manipulation !important;
}

.mobile-device .auth-actions button {
    -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3) !important;
    touch-action: manipulation !important;
}

.mobile-device .auth-tab {
    -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3) !important;
    touch-action: manipulation !important;
}

/* 微信小程序 web-view 弹窗适配 */
@media screen and (max-width: 480px) {
    /* 检测微信环境 */
    .wechat-webview .auth-modal .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        padding: 10px;
        /* 微信小程序中确保全屏覆盖 */
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
    }
    
    .wechat-webview .auth-dialog {
        width: 100%;
        max-width: 360px;
        max-height: 90vh;
        margin: 0;
        border-radius: 12px;
        padding: 1rem;
        /* 微信小程序中确保内容可见 */
        position: relative;
        overflow: visible;
        background: rgba(26, 26, 46, 0.98);
        border: 1px solid rgba(255, 215, 0, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }
    
    .wechat-webview .auth-dialog .modal-close {
        position: absolute;
        top: 8px;
        right: 12px;
        font-size: 20px;
        padding: 4px;
        z-index: 10;
        /* 微信小程序中确保关闭按钮可点击 */
        min-width: 32px;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .wechat-webview .auth-tabs {
        display: flex;
        gap: 0.5rem;
        padding: 0.5rem 0 1rem;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        overflow-x: auto;
    }
    
    .wechat-webview .auth-tab {
        font-size: 14px;
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
        cursor: pointer;
        color: #ccc;
        border-bottom: 2px solid transparent;
        transition: all 0.3s ease;
    }
    
    .wechat-webview .auth-tab.active {
        color: #FFD700;
        border-bottom-color: #FFD700;
    }
    
    .wechat-webview .auth-content {
        padding: 0.5rem 0;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .wechat-webview .auth-field {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        min-height: 44px;
        /* 微信小程序中确保输入框样式正确 */
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .wechat-webview .auth-field input {
        font-size: 16px; /* 防止iOS缩放 */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 0;
        background: transparent;
        border: none;
        outline: none;
        color: #fff;
        width: 100%;
    }
    
    .wechat-webview .auth-field input:focus {
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }
    
    .wechat-webview .auth-actions button {
        padding: 14px;
        font-size: 16px;
        min-height: 50px;
        width: 100%;
        border-radius: 8px;
        /* 微信小程序中确保按钮可点击 */
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
        touch-action: manipulation;
    }
    
    /* 微信小程序中字段按钮适配 */
    .wechat-webview .field-clear-btn, 
    .wechat-webview .field-toggle-btn {
        width: 20px;
        height: 20px;
        font-size: 12px;
        right: 6px;
        /* 微信小程序中确保按钮可点击 */
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
        touch-action: manipulation;
    }
    
    .wechat-webview .field-toggle-btn {
        right: 30px;
    }
    
    .wechat-webview .auth-field input {
        padding-right: 50px;
    }
    
    .wechat-webview .auth-field:has(.field-toggle-btn) input {
        padding-right: 80px;
    }
}

/* 个人中心卡片 */
.profile-card { 
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}
.profile-row { display:flex; align-items:center; justify-content: space-between; gap:1rem; }
.avatar { width:48px; height:48px; border-radius:50%; background: linear-gradient(45deg, #FFD700, #FFA500); color:#000; display:flex; align-items:center; justify-content:center; font-weight:700; }
.logout-btn { background: rgba(255, 0, 0, 0.15); border: 1px solid rgba(255, 0, 0, 0.3); color: #ff6666; border-radius: 10px; padding: .6rem 1rem; cursor:pointer; }

/* 用户中心标签与区域 */
.uc-tabs { display:flex; gap:2rem; margin-bottom:1rem; border-bottom:1px solid rgba(255,255,255,.1); }
.uc-tab { cursor:pointer; color:#ccc; padding: .8rem 0; position:relative; }
.uc-tab.active { color:#FFD700; }
.uc-tab.active::after { content:''; position:absolute; left:0; right:0; bottom:-1px; height:2px; background:#FFD700; border-radius:2px; }
.uc-section { display:none; }
.uc-section.active { display:block; }
.uc-form-row { display:grid; grid-template-columns: 1fr 2fr; gap:1rem; margin-bottom:1rem; }
.uc-form-row .config-group { margin:0; }
.uc-actions { margin-top: .5rem; }

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: rgba(26, 26, 46, 0.95);
    border-radius: 15px;
    padding: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #FFD700;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.modal-actions {
    text-align: center;
    margin-top: 1rem;
}

.modal-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: none;
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    color: #000000;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* 历史记录样式 */
.history-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 创作记录页面样式 */
.creation-records-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem;
    padding-bottom: 96px;
}

/* 页面头部 */
.records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.records-title {
    font-size: 2rem;
    font-weight: 700;
    color: #FFD700;
    margin: 0;
}

.records-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* 搜索框 */
.records-search {
    position: relative;
    min-width: 300px;
}

.records-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.records-search input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.records-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.9rem;
}

/* 操作行 */
.records-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 筛选器 */
.records-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

.filter-btn.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    color: #FFD700;
}

/* 记录网格 */
.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* 记录卡片 */
.record-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.record-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 卡片头部 */
.record-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.record-card-status-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.record-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.record-card-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* 主图片区域 */
.record-card-image-container {
    position: relative;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.record-card-image-wrapper {
    position: relative;
    display: inline-block;
}

.record-card-image-wrapper:hover .record-card-download-btn {
    opacity: 1;
    visibility: visible;
}

.record-card-main-image {
    width: 100%;
    max-width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.record-card-main-image:hover {
    transform: scale(1.02);
}

/* 下载按钮 */
.record-card-download-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 5;
    backdrop-filter: blur(4px);
}

.record-card-download-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.record-card-download-btn:active {
    transform: scale(0.95);
}

/* 提示词区域 */
.record-card-prompt-section {
    padding: 0 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.record-card-prompt-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ccc;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.record-card-prompt-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.record-card-prompt-text {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100px; /* 固定高度，确保一致性 */
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
    resize: none;
    box-sizing: border-box;
    display: block;
    width: 100%;
    position: relative;
    transition: all 0.3s ease;
}

/* 展开状态的提示词框 */
.record-card-prompt-text.expanded {
    height: auto;
    max-height: 300px;
}

/* 提示词展开/收起按钮 */
.record-card-prompt-expand {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    color: #FFD700;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none; /* 默认隐藏，只有内容溢出时才显示 */
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.record-card-prompt-expand:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

/* 提示词内容遮罩层（用于显示展开按钮） */
.record-card-prompt-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2rem;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.05));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.record-card-prompt-text.expanded::after {
    opacity: 0;
}

/* 提示词框内容溢出时的视觉提示 */
.record-card-prompt-text.overflow::after {
    background: linear-gradient(transparent, rgba(255, 215, 0, 0.1));
}

/* 提示词框悬停效果 */
.record-card-prompt-text:hover {
    border-color: rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

/* 提示词框滚动条样式 */
.record-card-prompt-text::-webkit-scrollbar {
    width: 4px;
}

.record-card-prompt-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.record-card-prompt-text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.record-card-prompt-text::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.record-card-prompt-copy {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    color: #FFD700;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.record-card-prompt-copy:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

/* 元信息区域 */
.record-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
    color: #999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.record-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.record-card-meta-item i {
    font-size: 0.9rem;
}

.record-card-time {
    color: #ccc;
}

.record-card-coins {
    color: #FFD700;
    font-weight: 600;
}

.record-card-duration {
    color: #4CAF50;
    font-weight: 600;
}

/* 操作按钮区域 */
.record-card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    justify-content: center;
    flex-wrap: nowrap;
}

.record-card-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 80px;
    justify-content: center;
    flex: 1;
    white-space: nowrap;
}

.record-card-action-btn.regenerate {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
}

.record-card-action-btn.regenerate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.record-card-action-btn.details {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.record-card-action-btn.details:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.record-card-action-btn.delete {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.record-card-action-btn.delete:hover {
    background: rgba(244, 67, 54, 0.2);
    transform: translateY(-2px);
}

/* 卡片头部 */
.record-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.record-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    flex: 1;
    margin-right: 1rem;
    line-height: 1.3;
}

.record-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-completed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-processing {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-failed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-initialized {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

/* 状态刷新按钮 */
.record-card-status-refresh {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    color: #FFD700;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
}

.record-card-status-refresh:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

.record-card-status-refresh:active {
    transform: scale(0.95);
}

.record-card-status-refresh i {
    font-size: 0.7rem;
}

/* 失败任务错误提示 */
.record-card-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
}

.record-card-error-content {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem;
    text-align: center;
    color: #e5e7eb;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

.record-card-error-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.record-card-error-reason {
    font-size: 0.9rem;
    color: #ff8a8a;
    line-height: 1.4;
    word-break: break-word;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.record-card-refund-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffb3b3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.record-card-refund-info i {
    font-size: 1rem;
    margin: 0;
    color: #fbbf24;
}

/* 提示词预览 */
.record-prompt {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 图片预览 */
.record-images {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.record-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.record-image:hover {
    transform: scale(1.1);
}

.record-image-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.8rem;
    border: 2px dashed rgba(255, 215, 0, 0.3);
}

/* 元信息 */
.record-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #999;
}

.record-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.record-coins {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #FFD700;
}

/* 操作按钮 */
.record-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.record-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.record-action-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

.record-action-btn.primary {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
    color: #FFD700;
}

.record-action-btn.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.record-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

/* 空状态 */
.records-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.records-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    color: #666;
}

.records-empty h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.records-empty p {
    font-size: 1rem;
    line-height: 1.5;
}

/* 登录引导样式 */
.login-guide {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 2rem;
    border-radius: 12px;
    border: 2px dashed #4a5568;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 193, 7, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.login-guide:hover {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

.login-guide i.fa-sign-in-alt {
    color: #ffd700;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.login-guide:hover i.fa-sign-in-alt {
    color: #ffed4e;
    opacity: 1;
    transform: scale(1.1);
}

.login-guide h3 {
    color: #e2e8f0;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.login-guide p {
    color: #a0aec0;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.login-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.login-guide:hover .login-hint {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

.login-hint i {
    font-size: 1rem;
    animation: bounce 2s infinite;
}

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




/* 加载状态 */
.records-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: #999;
}

.records-loading i {
    font-size: 2rem;
    margin-right: 1rem;
    animation: spin 1s linear infinite;
}

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

.history-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.back-btn {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: #FFD700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-1px);
}

.history-content {
    max-height: 70vh;
    overflow-y: auto;
}

.history-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.history-header h3 {
    color: #FFD700;
    font-size: 1.2rem;
    margin: 0;
}

.history-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.history-prompt {
    margin-bottom: 1rem;
    color: #cccccc;
    line-height: 1.5;
    /* 允许文本选择和复制 */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    /* 添加复制提示 */
    cursor: text;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.history-prompt:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.history-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #999999;
    flex-wrap: wrap;
}

.history-meta span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

.history-images {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.history-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.history-images img:hover {
    transform: scale(1.1);
}

.history-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.action-btn:first-child:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.3);
    color: #ff6666;
}

.empty-history {
    text-align: center;
    padding: 3rem;
    color: #999999;
}

.empty-history i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: #666666;
}

/* 响应式设计 - 历史记录 */
@media (max-width: 768px) {
    .history-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .history-actions {
        flex-direction: column;
    }
    
    .history-images {
        justify-content: center;
    }
    
    .history-card .card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* 响应式设计 - 创作记录页面 */
@media (max-width: 1200px) {
    .records-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .creation-records-page {
        padding: 1rem;
        padding-bottom: 96px;
    }
    
    .records-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .records-title {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .records-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .records-actions-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    .records-filters {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.4rem;
        flex: 1;
    }
    
    .records-controls .back-btn {
        flex-shrink: 0;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .records-filters .filter-btn {
        flex-shrink: 0;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .records-search {
        min-width: auto;
        width: 100%;
    }
    
    .records-filters {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .records-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .record-card {
        padding: 1.25rem;
    }
    
    .record-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .record-title {
        font-size: 1rem;
        margin-right: 0;
    }
    
    .record-prompt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .record-images {
        justify-content: center;
    }
    
    .record-image,
    .record-image-placeholder {
        width: 50px;
        height: 50px;
    }
    
    .record-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .record-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .record-action-btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }
    
    /* 移动端错误提示样式 */
    .record-card-error-content {
        padding: 0.8rem;
        margin: 0.4rem;
    }
    
    .record-card-error-text {
        gap: 0.5rem;
    }
    
    .record-card-error-reason {
        font-size: 0.8rem;
        color: #ff8a8a;
        font-weight: 600;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    }
    
    .record-card-refund-info {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        color: #ffb3b3;
        font-weight: 600;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    }
    
}

@media (max-width: 480px) {
    .creation-records-page {
        padding: 0.75rem;
        padding-bottom: 96px;
    }
    
    .records-title {
        font-size: 1.5rem;
    }
    
    .record-card {
        margin: 0.5rem;
    }
    
    .record-card-header {
        padding: 0.75rem 1rem 0.5rem;
    }
    
    .record-card-title {
        font-size: 0.9rem;
    }
    
    .record-card-status-container {
        gap: 0.3rem;
    }
    
    .record-card-status-refresh {
        min-width: 20px;
        height: 20px;
        padding: 0.2rem 0.4rem;
        font-size: 0.6rem;
    }
    
    /* 移动端登录引导样式 */
    .login-guide {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
        border-color: #4a5568;
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 193, 7, 0.05) 100%);
    }
    
    .login-guide:hover {
        border-color: #ffd700;
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    }
    
    .login-guide i.fa-sign-in-alt {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: #ffd700;
    }
    
    .login-guide h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
        color: #e2e8f0;
    }
    
    .login-guide p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
        color: #a0aec0;
    }
    
    .login-hint {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        background: rgba(255, 215, 0, 0.1);
        color: #ffd700;
        border: 1px solid rgba(255, 215, 0, 0.2);
    }
    
    .login-hint i {
        font-size: 0.875rem;
    }
    
    .record-card-status-refresh i {
        font-size: 0.6rem;
    }
    
    .record-card-image-container {
        padding: 0.75rem 1rem;
    }
    
    .record-card-main-image {
        height: 200px;
        width: 200px;
        max-width: 100%;
    }
    
    /* 移动端下载按钮 */
    .record-card-download-btn {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
        font-size: 12px;
        opacity: 1;
        visibility: visible;
    }
    
    .record-card-prompt-section {
        padding: 0 1rem 0.75rem;
    }
    
    .record-card-prompt-label {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .record-card-prompt-text {
        font-size: 0.8rem;
        padding: 0.5rem;
        height: 80px; /* 移动端固定高度 */
        overflow-y: auto;
        word-break: break-word;
        box-sizing: border-box;
    }
    
    .record-card-prompt-copy {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    .record-card-prompt-expand {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    .record-card-meta {
        padding: 0.75rem 1rem;
        flex-direction: row;
        gap: 0.25rem;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .record-card-meta-item {
        font-size: 0.7rem;
        flex-shrink: 1;
    }
    
    .record-card-actions {
        padding: 0.75rem 1rem;
        flex-direction: row;
        gap: 0.25rem;
        flex-wrap: nowrap;
    }
    
    .record-card-action-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.5rem;
        min-width: auto;
        flex: 1;
    }
    
    .record-card-action-btn span {
        display: none;
    }
    
    .filter-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
    
    /* 超小屏幕提示词框样式 */
    .record-card-prompt-text {
        font-size: 0.75rem;
        padding: 0.4rem;
        height: 70px; /* 超小屏幕固定高度 */
        overflow-y: auto;
        word-break: break-word;
        box-sizing: border-box;
    }
    
    /* 超小屏幕错误提示样式 */
    .record-card-error-content {
        padding: 0.6rem;
        margin: 0.3rem;
    }
    
    .record-card-error-text {
        gap: 0.3rem;
    }
    
    .record-card-error-reason {
        font-size: 0.7rem;
        color: #ff8a8a;
        font-weight: 600;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    }
    
    .record-card-refund-info {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
        color: #ffb3b3;
        font-weight: 600;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    }
    
    /* 超小屏幕刷新按钮样式 */
    .record-card-status-container {
        gap: 0.25rem;
    }
    
    .record-card-status-refresh {
        min-width: 18px;
        height: 18px;
        padding: 0.15rem 0.3rem;
        font-size: 0.55rem;
    }
    
    .record-card-status-refresh i {
        font-size: 0.55rem;
    }
    
    /* 超小屏幕下载按钮 */
    .record-card-download-btn {
        width: 28px;
        height: 28px;
        top: 6px;
        right: 6px;
        font-size: 11px;
    }
}

/* 客服浮窗样式 */
.customer-service-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

.customer-service-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

.customer-service-float i {
    font-size: 24px;
    color: #000;
    transition: transform 0.3s ease;
}

.customer-service-float:hover i {
    transform: rotate(10deg);
}

.float-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.float-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
}

.customer-service-float:hover .float-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .customer-service-float {
        bottom: 80px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .customer-service-float i {
        font-size: 20px;
    }
    
    .float-tooltip {
        right: 60px;
        font-size: 11px;
        padding: 6px 10px;
    }
}
