/* ========== 基础重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f5f5f7;
}
button { cursor: pointer; border: none; font-family: inherit; }

/* ========== 客户端页面 ========== */
.customer-page .page-wrap {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.brand-header {
    text-align: center;
    padding: 48px 20px 32px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}
.brand-logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}
.brand-slogan {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 8px;
}

/* ========== 录音区 ========== */
.record-section {
    flex: 1;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.record-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e83232;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(232, 50, 50, 0.3);
}
.record-btn:active {
    transform: scale(0.95);
}
.record-btn.recording {
    background: #ccc;
    box-shadow: none;
    animation: pulse 1.5s ease-in-out infinite;
}
.record-btn.recording .record-icon svg rect {
    rx: 2;
    width: 8;
    height: 24;
    x: 20;
    y: 12;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.record-hint {
    margin-top: 20px;
    font-size: 16px;
    color: #666;
}

/* 录音中状态 */
.record-status {
    text-align: center;
}
.recording-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}
.pulse-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e83232;
    animation: blink 1s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
#recordTime {
    font-size: 32px;
    font-weight: 300;
    font-variant-numeric: tabular-nums;
    color: #1a1a1a;
}
.recording-text {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

/* 停止录音按钮 */
.btn-stop {
    background: #e83232;
    color: #fff;
    padding: 14px 40px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(232, 50, 50, 0.3);
    transition: all 0.2s;
}
.btn-stop:active {
    transform: scale(0.96);
    opacity: 0.85;
}

/* 上传进度 */
.upload-status {
    text-align: center;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #eee;
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
#uploadText {
    font-size: 14px;
    color: #666;
}

/* 预览区 */
.preview-section {
    width: 100%;
    text-align: center;
}
.preview-section audio {
    margin-bottom: 20px;
    border-radius: 8px;
}
.preview-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* 按钮 */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s;
}
.btn:active { opacity: 0.7; }
.btn-primary {
    background: #1a73e8;
    color: #fff;
}
.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

/* 结果展示 */
.result-section {
    width: 100%;
}
.result-card {
    text-align: center;
    padding: 32px 24px;
    background: #f0faf0;
    border-radius: 16px;
}
.result-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #4caf50;
    color: #fff;
    font-size: 32px;
    line-height: 64px;
    margin: 0 auto 16px;
}
.result-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}
.result-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}
.result-detail {
    text-align: left;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    color: #333;
}
.result-detail .detail-row {
    display: flex;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}
.result-detail .detail-row:last-child {
    border-bottom: none;
}
.result-detail .detail-label {
    color: #999;
    width: 80px;
    flex-shrink: 0;
}

/* 错误提示 */
.error-section {
    text-align: center;
}
.error-text {
    color: #e83232;
    font-size: 14px;
}

/* ========== 引导说明 ========== */
.guide-section {
    padding: 24px;
    background: #fafafa;
    border-top: 1px solid #eee;
}
.guide-section h3 {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
}
.guide-list {
    list-style: none;
}
.guide-list li {
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
}
.guide-list li span {
    display: inline-block;
    width: 64px;
    color: #1a73e8;
    font-weight: 500;
    font-size: 13px;
}

/* ========== 页脚 ========== */
.page-footer {
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: #aaa;
    line-height: 1.8;
}

/* ========== 管理后台 ========== */
.admin-page {
    background: #f0f2f5;
}
.admin-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.admin-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}
.admin-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    background: #fff3e0;
    color: #e65100;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.stat-card .stat-num {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}
.stat-card .stat-label {
    font-size: 13px;
    color: #999;
}
.stat-card.pending .stat-num { color: #f57c00; }
.stat-card.replied .stat-num { color: #1976d2; }
.stat-card.handled .stat-num { color: #388e3c; }
.stat-card.total .stat-num { color: #1a1a1a; }

/* 筛选栏 */
.filter-bar {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-bar select, .filter-bar input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}
.filter-bar select:focus, .filter-bar input:focus {
    border-color: #1a73e8;
}

/* 需求列表 */
.request-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}
.request-table {
    width: 100%;
    border-collapse: collapse;
}
.request-table th {
    background: #fafafa;
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    color: #999;
    font-weight: 500;
    white-space: nowrap;
}
.request-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-top: 1px solid #f0f0f0;
    vertical-align: top;
}
.request-table tr:hover {
    background: #f9f9f9;
    cursor: pointer;
}

/* 状态标签 */
.status-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}
.status-pending { background: #fff3e0; color: #e65100; }
.status-replied { background: #e3f2fd; color: #1565c0; }
.status-handled { background: #e8f5e9; color: #2e7d32; }

/* 紧急程度 */
.urgency-high { color: #d32f2f; font-weight: 600; }
.urgency-mid { color: #f57c00; }
.urgency-low { color: #757575; }

/* 模态框 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-overlay.active {
    display: flex;
}
.modal-card {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-title {
    font-size: 18px;
    font-weight: 700;
}
.modal-close {
    font-size: 24px;
    color: #999;
    background: none;
    line-height: 1;
}
.detail-block {
    margin-bottom: 16px;
}
.detail-block .block-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}
.detail-block .block-content {
    font-size: 15px;
    color: #1a1a1a;
    background: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
}
.modal-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
}
.empty-state p {
    font-size: 15px;
}

/* 分页条 */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 20px 4px;
    justify-content: center;
}
.page-link {
    display: inline-block;
    min-width: 32px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #1a1a1a;
    text-decoration: none;
    text-align: center;
    background: #fff;
    transition: all 0.2s;
}
.page-link:hover {
    border-color: #1a73e8;
    color: #1a73e8;
}
.page-link.current {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
}
.page-total {
    font-size: 13px;
    color: #999;
    margin-left: 8px;
}

/* ========== 登录页 ========== */
.login-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-wrap {
    width: 100%;
    padding: 20px;
}
.login-card {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.login-brand {
    text-align: center;
    margin-bottom: 24px;
}
.login-brand h1 {
    font-size: 24px;
    color: #1a1a1a;
    letter-spacing: 2px;
}
.login-brand p {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}
.login-error {
    background: #fcebeb;
    color: #c62828;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
}
.login-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.login-tab {
    flex: 1;
    padding: 10px 0;
    background: none;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.login-tab.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
    font-weight: 500;
}
.form-item {
    margin-bottom: 16px;
}
.form-item input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}
.form-item input:focus {
    border-color: #1a73e8;
}
.form-item-row {
    display: flex;
    gap: 10px;
}
.form-item-row input {
    flex: 1;
}
.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 15px;
}
.login-tip {
    text-align: center;
    font-size: 12px;
    color: #aaa;
    margin-top: 16px;
}

/* ========== 管理后台主框架 ========== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 220px;
    background: #1a1a2e;
    color: #fff;
    flex-shrink: 0;
}
.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-brand span {
    display: block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
}
.sidebar-brand small {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}
.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-nav ul ul {
    padding-left: 0;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}
.nav-item:hover {
    background: rgba(255,255,255,0.08);
}
.nav-group {
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}
.nav-link {
    padding-left: 36px;
}
.nav-link.active {
    background: #1a73e8;
    color: #fff;
}
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.admin-topbar {
    height: 56px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid #eee;
}
.topbar-title {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.topbar-user {
    font-size: 14px;
    color: #333;
}
.admin-content {
    flex: 1;
    padding: 20px;
    overflow: auto;
}
.admin-content iframe {
    width: 100%;
    height: calc(100vh - 96px);
    border: none;
    background: transparent;
}
.inner-page {
    background: transparent;
}

/* 表单输入 */
.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}
.form-input:focus {
    border-color: #1a73e8;
}
.btn-danger {
    background: #e83232;
    color: #fff;
}
.btn-danger:hover {
    background: #c62828;
}

/* 复选框行 */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}
.checkbox-row input {
    width: 16px;
    height: 16px;
}

/* 菜单树 */
.menu-tree {
    list-style: none;
    padding-left: 20px;
    margin: 8px 0;
}
.menu-tree > li {
    margin: 2px 0;
}
.menu-perm {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
}
.filter-bar input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}
.filter-bar input[type="text"]:focus {
    border-color: #1a73e8;
}

/* ========== layuimini 风格 (参考 FundSupervision) ========== */
body {
    background: #f2f2f2;
}
.layuimini-container {
    border: 1px solid #f2f2f2;
    border-radius: 5px;
    background-color: #ffffff;
}
.layuimini-main {
    margin: 10px 10px 10px 10px;
}
.layuimini-form > .layui-form-item > .required:after {
    content: '*';
    color: red;
    position: absolute;
    margin-left: 4px;
    font-weight: bold;
    line-height: 1.8em;
    top: 6px;
    right: 5px;
}
.layuimini-form > .layui-form-item > .layui-form-label {
    width: 120px !important;
}
.layuimini-form > .layui-form-item > .layui-input-block {
    margin-left: 150px !important;
}
.layuimini-form > .layui-form-item > .layui-input-block > tip {
    display: inline-block;
    margin-top: 10px;
    line-height: 10px;
    font-size: 10px;
    color: #a29c9c;
}
.layuimini-container .table-search-fieldset {
    margin: 0;
    border: 1px solid #e6e6e6;
    padding: 10px 20px 5px 20px;
    color: #6b6b6b;
}
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background-color: transparent;
    -webkit-border-radius: 2em;
}
::-webkit-scrollbar-thumb {
    background-color: #8c8c8c;
    -webkit-border-radius: 2em;
}

/* 必填项红色星号 */
.required-star {
    color: #ff0000;
    font-weight: bold;
}

/* layui 表单 label 不换行 (避免中英文星号被强制折行) */
.layui-form-label {
    white-space: nowrap;
}

/* 表格底部空白留白 (避免分页条遮挡最后一行底边框) */
.layui-table-view {
    margin-bottom: 8px;
}

/* 操作列按钮垂直居中 (layui table cell 内按钮基线对齐导致偏上, 强制居中) */
.layui-table-cell .layui-btn {
    vertical-align: middle;
}

/* ========== 用户端 底部Tab + AI悬浮球 ========== */
/* 底部 Tab 导航 */
.bottom-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    background: #ffffff;
    border-top: 1px solid #eee;
    display: flex;
    z-index: 1000;
}
.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}
.tab-item.active {
    color: #1a73e8;
}
.tab-icon {
    font-size: 20px;
    line-height: 1;
}
.tab-text {
    font-size: 12px;
    margin-top: 3px;
}
/* 页面主体留出底部 Tab 高度 */
.customer-page .page-wrap {
    padding-bottom: 70px;
}

/* Tab 页面切换: 默认隐藏, .active 显示 (首页用内联 display:block 保证首次可见) */
.tab-page {
    display: none;
}
.tab-page.active {
    display: block;
}
.tab-page[style*="display:block"] {
    display: block;
}

/* AI 客户悬浮球 */
.ai-fab {
    position: fixed;
    right: 16px;
    bottom: 76px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8, #4a9cf7);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.2s;
}
.ai-fab:active {
    transform: scale(0.92);
}
.ai-fab-icon {
    font-size: 24px;
    line-height: 1;
}
.ai-fab-label {
    font-size: 10px;
    color: #fff;
    margin-top: 2px;
}

/* 记录卡片 (页面形式) - 大气版 */
/* 记录页专用: 全宽布局, 卡片不被压缩 */
#tabRecords .record-section {
    flex: none;
    padding: 16px 12px;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}
#tabRecords .record-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    width: 100%;
    box-sizing: border-box;
}
.record-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}
.record-card-id {
    font-weight: 600;
    color: #333;
}
.record-card-scene {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 3px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}
.record-card-time {
    color: #999;
    font-size: 12px;
}
.record-card-summary {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 14px;
    line-height: 1.6;
}
.record-card-summary-empty {
    color: #999;
}
.record-card-status {
    display: inline-block;
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.record-card-status.pending { background: #fff3e0; color: #e65100; }
.record-card-status.replied { background: #e8f5e9; color: #2e7d32; }
.record-card-status.handled { background: #e3f2fd; color: #1565c0; }
.record-card-reply {
    font-size: 14px;
    color: #1b5e20;
    background: #f1f8f4;
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 12px;
    border-left: 3px solid #2e7d32;
    word-break: break-word;
}
/* 回复内容段: 紧凑 */
.reply-text {
    line-height: 1.5;
    margin-bottom: 4px;
    white-space: pre-wrap;
}
.reply-text:last-child {
    margin-bottom: 0;
}
/* 时间分隔符: 与头部时间样式完全一致 */
.reply-separator {
    font-size: 11px;
    color: #aaa;
    text-align: right;
    margin: 8px 0;
    font-weight: normal;
}
/* 人工回复块: 蓝色调区分 */
.record-card-reply.admin-reply-block {
    color: #0d47a1;
    background: #eaf2fd;
    border-left-color: #1a73e8;
}
.record-card-reply-title {
    font-weight: 600;
    color: #2e7d32;
    font-size: 13px;
}
.admin-reply-block .record-card-reply-title {
    color: #1a73e8;
}
/* 回复头部: 标题左、时间右 */
.record-card-reply-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.record-card-reply-time {
    font-size: 11px;
    color: #aaa;
    font-weight: normal;
}
.record-card-empty {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 40px 20px;
    background: #fafafa;
    border-radius: 12px;
}

/* 我的记录页面头部优化 */
.tab-page .brand-header {
    padding: 28px 20px;
    background: linear-gradient(135deg, #1a73e8, #4a9cf7);
    color: #fff;
    text-align: center;
}
.tab-page .brand-header .brand-logo {
    color: #fff;
    font-size: 22px;
}
.tab-page .brand-header .brand-slogan {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 6px;
    font-size: 13px;
}

/* ========== 播放预览区 (录音/联系方式/按钮) ========== */
.preview-section {
    padding: 0;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}
/* 音频播放器 (蓝底卡片) */
.audio-player-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e8f0fe, #f5f8ff);
    border: 1px solid #d5e2fb;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
}
.audio-player-label {
    color: #1a73e8;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    flex-shrink: 0;
}
.audio-player-wrap audio {
    flex: 1;
    height: 40px;
    min-width: 0;
}
/* 联系方式卡片 */
.contact-form-card {
    background: #fafbfc;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
}
.contact-form-title {
    color: #555;
    font-size: 13px;
    margin-bottom: 14px;
    font-weight: 500;
}
/* 输入框: 左侧中文标签 + 右侧输入框 */
.input-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e8eaed;
    border-radius: 10px;
    padding: 0 0 0 14px;
    margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-wrap:last-child { margin-bottom: 0; }
.input-wrap:focus-within {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}
.input-label {
    color: #888;
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
    border-right: 1px solid #eee;
    padding-right: 10px;
}
.input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 12px;
    font-size: 15px;
    background: transparent;
    color: #333;
    min-width: 0;
}
.input-wrap input::placeholder {
    color: #bbb;
}
/* 操作按钮 (大圆角) */
.preview-actions {
    display: flex;
    gap: 12px;
}
.btn-retry, .btn-submit {
    flex: 1;
    height: 52px;
    border-radius: 14px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: 1px;
}
.btn-retry {
    background: #ffffff;
    color: #555;
    border: 1px solid #ddd;
}
.btn-retry:active {
    background: #f0f0f0;
    transform: scale(0.98);
}
.btn-submit {
    background: linear-gradient(135deg, #1a73e8, #4a9cf7);
    color: #fff;
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
}
.btn-submit:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.2);
}
.btn-submit:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}
