@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #0891b2;
    --primary-light: #06b6d4;
    --primary-dark: #0e7490;
    --secondary: #6366f1;
    --secondary-light: #818cf8;
    --accent: #14b8a6;
    --accent-light: #2dd4bf;
    --warning: #f59e0b;
    --danger: #ef4444;
    --success: #22c55e;
    --text: #0f172a;
    --text-light: #475569;
    --text-light: #64748b;
    --text-mute: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --bg: #ffffff;
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 20px 48px rgba(15, 23, 42, 0.12);
    --glow-primary: 0 4px 16px rgba(8, 145, 178, 0.2);
    --glow-primary-lg: 0 8px 32px rgba(8, 145, 178, 0.25);
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 22px;
    --transition: all 0.25s ease;
    --transition-fast: all 0.15s ease;
    --font-display: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}
html {
    scroll-behavior: smooth;
    /* 防止滚动条出现/消失导致页面抖动 */
    overflow-y: scroll;
}
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    font-optical-sizing: auto;
    letter-spacing: -0.005em;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}
html.modal-open {
    overflow: hidden;
}
body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
}
a { color: var(--text); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; background: var(--bg-gray); border: 1px solid var(--border); color: var(--text); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 6px;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.25);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.35);
    transform: translateY(-1px);
}
.btn-secondary {
    background: var(--bg-gray);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: rgba(8, 145, 178, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(8, 145, 178, 0.05);
}
.btn-danger {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
}
.btn-danger:hover {
    background: #fee2e2;
    border-color: var(--danger);
}
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }

.container { width: 100%; max-width: 100%; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1280px) { .container { padding: 0 40px; } }
@media (min-width: 1600px) { .container { padding: 0 48px; } }

.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 100;
}
.top-bar-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-icon { font-size: 28px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-item {
    padding: 8px 16px;
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}
.nav-item:hover, .nav-item.active {
    background: rgba(8, 145, 178, 0.08);
    color: var(--primary);
}

.header-right { display: flex; align-items: center; gap: 12px; }

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
    padding: 6px 12px 6px;
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--bg-gray);
    border: 1px solid var(--border);
}
.user-info::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}
.user-info:hover { background: var(--bg-gray); border-color: var(--primary); }
.user-info:hover .dropdown-menu,
.user-info:focus-within .dropdown-menu { display: block; }
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}
.user-name { font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--text); }
.user-balance {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 8px;
    display: none;
    z-index: 200;
    border: 1px solid var(--border);
}
.dropdown-menu.show { display: block; }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-light);
    transition: var(--transition);
}
.dropdown-item:hover { background: rgba(8, 145, 178, 0.08); color: var(--primary); }

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius);
    background: var(--bg-gray);
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border);
}
.lang-switch:hover { background: var(--bg-gray); border-color: var(--primary); }

.search-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-gray) 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}
.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 20%, rgba(8, 145, 178, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 60%, rgba(100, 116, 139, 0.08) 0%, transparent 40%);
}
.search-content {
    position: relative;
    text-align: center;
    color: var(--text);
}
.search-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text);
}
.search-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 400;
    color: var(--text-light);
}
.search-box {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    position: relative;
}
.search-input-wrapper {
    flex: 1;
    position: relative;
}
.search-input {
    width: 100%;
    padding: 16px 24px;
    padding-right: 56px;
    border-radius: 50px;
    border: 2px solid var(--border);
    font-size: 16px;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--text);
}
.search-input:focus {
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.15);
    transform: translateY(-1px);
    border-color: var(--primary);
}
.search-input::placeholder { color: var(--text-mute); }
.search-btn {
    padding: 16px 44px;
    border-radius: 50px;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.25);
}
.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.35);
}
.hot-tags {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.hot-tag {
    padding: 8px 16px;
    background: var(--bg-white);
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    font-weight: 500;
    color: var(--text-light);
}
.hot-tag:hover {
    background: rgba(8, 145, 178, 0.08);
    transform: translateY(-1px);
    border-color: var(--primary);
    color: var(--primary);
}

.main-content {
    padding: 48px 0 80px;
    background: var(--bg);
    width: 100%;
}
.main-content .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}
@media (min-width: 1280px) {
    .main-content .container { padding: 0 40px; }
}

.category-bar-wrapper {
    position: relative;
    margin-bottom: 28px;
    overflow: hidden;
}
.category-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 16px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    width: 100%;
    cursor: grab;
    user-select: none;
}
.category-bar.dragging {
    cursor: grabbing;
}
.category-bar::-webkit-scrollbar { 
    display: none; 
}
.category-bar-wrapper::before, .category-bar-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    pointer-events: none;
    z-index: 2;
}
.category-bar-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}
.category-bar-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}
.category-item {
    flex-shrink: 0;
    padding: 11px 22px;
    border-radius: 30px;
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    color: var(--text-light);
}
.category-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(8, 145, 178, 0.05);
    transform: translateY(-1px);
}
.category-item.active {
    background: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
    box-shadow: 0 1px 4px rgba(14, 116, 144, 0.2);
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.category-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
    box-shadow: var(--shadow);
    font-size: 14px;
    color: var(--text-light);
}
.category-scroll-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-50%) scale(1.05);
    background: rgba(8, 145, 178, 0.05);
}
.category-scroll-btn.left { left: 0; }
.category-scroll-btn.right { right: 0; }
@media (min-width: 768px) {
    .category-bar-wrapper::before, .category-bar-wrapper::after {
        display: none;
    }
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}
.filter-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
}
.filter-tab {
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
    font-weight: 500;
}
.filter-tab.active {
    background: var(--primary);
    color: #fff;
}
.filter-tab:hover:not(.active) {
    background: var(--bg-gray);
    color: var(--text);
}

.prompt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (min-width: 1400px) { .prompt-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1600px) { .prompt-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 1200px) { .prompt-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .prompt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .prompt-grid { grid-template-columns: 1fr; } }

.prompt-card {
    width: 100%;
    margin-bottom: 0;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
}
.prompt-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.prompt-card-header {
    padding: 22px;
    padding-bottom: 14px;
}
.prompt-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.prompt-card-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}
.prompt-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.prompt-tag {
    padding: 4px 12px;
    background: rgba(8, 145, 178, 0.08);
    border-radius: 16px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}
.prompt-card-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.prompt-stats {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--text-light);
}
.prompt-stat { display: flex; align-items: center; gap: 4px; }
.prompt-actions { display: flex; gap: 8px; }
.prompt-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    color: var(--text-light);
}
.prompt-action-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.3);
}
.prompt-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 6px;
}
.badge-hot { background: #fef2f2; color: #dc2626; }
.badge-recommend { background: rgba(8, 145, 178, 0.1); color: var(--primary); }
.badge-demo { background: #fffbeb; color: #d97706; }

.prompt-card { position: relative; }
.prompt-paid-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 0 var(--radius-lg) 0 10px;
    z-index: 1;
}
.prompt-card.paid-card {
    border: 2px solid rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}
.prompt-card.paid-card:hover {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.1);
}
.prompt-detail-content.blurred-content {
    background: var(--bg-gray);
    border-radius: var(--radius);
}

.load-more {
    text-align: center;
    padding: 48px 0;
}
.load-more-btn {
    padding: 14px 48px;
    border-radius: 32px;
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    font-size: 15px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}
.load-more-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.15);
}
.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.18s ease;
    transform: translateZ(0);
    will-change: opacity;
}
.modal-overlay.show { display: flex; opacity: 1; }
.modal-overlay.closing { opacity: 0; }
.modal-overlay.immersive-auth-overlay {
    background: rgba(15, 23, 42, 0.5);
    padding: 0;
    align-items: center;
    justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 720px;
    width: 92%;
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalIn 0.2s ease;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}
.modal.modal-large {
    max-width: 960px;
    max-height: 92vh;
}
@keyframes formFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
}
.modal-title { font-size: 18px; font-weight: 600; color: var(--text); }
.modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
    color: var(--text-light);
}
.modal-close:hover { background: var(--bg-gray); color: var(--primary); }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--bg-gray);
}

/* === 沉浸式全屏登录/注册/忘记密码弹窗 === */
.modal.immersive-auth {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    background: var(--primary-dark);
    color: white;
    display: flex;
    flex-direction: row;
    animation: immersiveIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
/* 移动端：使用动态视口高度避免地址栏遮挡，并允许内部滚动 */
@media (max-width: 768px) {
    .modal.immersive-auth {
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        overflow: hidden;
    }
    .modal.immersive-auth .modal-body {
        padding: 0;
        max-height: none;
        overflow: visible;
        flex: 1;
        display: flex;
    }
    .modal.immersive-auth .auth-content {
        height: 100vh;
        height: 100dvh;
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px 16px;
    }
    .modal.immersive-auth .auth-card {
        margin: auto;
        min-height: auto;
    }
}
@keyframes immersiveIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}
.modal.immersive-auth .auth-mouse-canvas {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.modal.immersive-auth .auth-mouse-orb {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate3d(-50%, -50%, 0);
    filter: blur(60px);
    opacity: 0.7;
    will-change: transform, opacity;
    mix-blend-mode: screen;
    transition: opacity 0.4s ease;
    top: 0;
    left: 0;
}
.modal.immersive-auth .auth-mouse-orb.orb-1 {
    background: radial-gradient(circle, rgba(255, 91, 46, 0.6) 0%, rgba(255, 91, 46, 0.25) 35%, transparent 70%);
}
.modal.immersive-auth .auth-mouse-orb.orb-2 {
    background: radial-gradient(circle, rgba(0, 200, 150, 0.5) 0%, rgba(0, 200, 150, 0.2) 35%, transparent 70%);
}
.modal.immersive-auth .auth-mouse-orb.orb-3 {
    background: radial-gradient(circle, rgba(120, 100, 255, 0.4) 0%, rgba(120, 100, 255, 0.15) 35%, transparent 70%);
}
.modal.immersive-auth .auth-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    z-index: 1;
    mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
}
.modal.immersive-auth .auth-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
    opacity: 0.06;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
}
.modal.immersive-auth .auth-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}

.modal.immersive-auth .auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.5);
    position: relative;
}
.modal.immersive-auth .auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.02));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.modal.immersive-auth .auth-brand {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}
.modal.immersive-auth .auth-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 36px;
    font-style: italic;
    font-weight: 400;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1;
}
.modal.immersive-auth .auth-brand-mark .logo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 24px var(--secondary);
    animation: logoPulse 2.4s ease-in-out infinite;
}
@keyframes logoPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 16px var(--secondary); }
    50% { transform: scale(1.2); box-shadow: 0 0 32px var(--secondary); }
}
.modal.immersive-auth .auth-subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    margin-top: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: var(--font-mono);
}
.modal.immersive-auth .auth-card h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 32px;
    color: white;
    margin-bottom: 8px;
    line-height: 1.1;
    font-weight: 400;
}
.modal.immersive-auth .auth-card .auth-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.6;
}
.modal.immersive-auth .auth-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    border: none;
    position: relative;
}
.modal.immersive-auth .auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
    position: relative;
}
.modal.immersive-auth .auth-tab.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset;
}
.modal.immersive-auth .auth-form .form-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: var(--font-mono);
}
.modal.immersive-auth .auth-form .form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 14px 16px;
    font-size: 14.5px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal.immersive-auth .auth-form .form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.modal.immersive-auth .auth-form .form-input:focus {
    border-color: var(--secondary);
    background: rgba(255, 91, 46, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 91, 46, 0.15);
    outline: none;
}
.modal.immersive-auth .auth-form .btn-primary {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 8px 24px -8px rgba(255, 91, 46, 0.6);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
}
.modal.immersive-auth .auth-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}
.modal.immersive-auth .auth-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -8px rgba(255, 91, 46, 0.8);
    background: var(--secondary-light);
}
.modal.immersive-auth .auth-form .btn-primary:hover::before {
    left: 100%;
}
.modal.immersive-auth .auth-form .btn-primary:active {
    transform: translateY(0);
}
.modal.immersive-auth .auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}
.modal.immersive-auth .auth-switch a {
    color: var(--secondary-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.modal.immersive-auth .auth-switch a:hover {
    color: var(--secondary);
}
.modal.immersive-auth .auth-divider {
    text-align: center;
    margin: 24px 0 16px;
    position: relative;
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-mono);
}
.modal.immersive-auth .auth-divider::before, .modal.immersive-auth .auth-divider::after {
    background: rgba(255, 255, 255, 0.08);
}
.modal.immersive-auth .auth-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    transition: all 0.3s;
    z-index: 100;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}
.modal.immersive-auth .auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: rotate(90deg);
}
.modal.immersive-auth .auth-marquee {
    position: absolute;
    bottom: 24px;
    left: 24px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 5;
}
.modal.immersive-auth .auth-corner {
    position: absolute;
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 5;
}
.modal.immersive-auth .auth-corner.tl { top: 24px; left: 24px; }
.modal.immersive-auth .auth-corner.tr { top: 24px; right: 80px; }

@media (max-width: 640px) {
    .modal.immersive-auth .auth-content { padding: 20px 16px; }
    .modal.immersive-auth .auth-card { padding: 24px 20px; border-radius: 18px; max-width: 100%; }
    .modal.immersive-auth .auth-brand { margin-bottom: 20px; }
    .modal.immersive-auth .auth-brand-mark { font-size: 28px; }
    .modal.immersive-auth .auth-subtitle { font-size: 11px; margin-top: 8px; }
    .modal.immersive-auth .auth-card h2 { font-size: 22px; margin-bottom: 6px; }
    .modal.immersive-auth .auth-card .auth-desc { font-size: 13px; margin-bottom: 20px; }
    .modal.immersive-auth .auth-tabs { margin-bottom: 18px; }
    .modal.immersive-auth .auth-tab { padding: 8px 0; font-size: 13px; }
    .modal.immersive-auth .auth-form .form-group { margin-bottom: 14px; }
    .modal.immersive-auth .auth-form .form-label { font-size: 11px; margin-bottom: 6px; }
    .modal.immersive-auth .auth-form .form-input { padding: 11px 14px; font-size: 14px; border-radius: 8px; }
    .modal.immersive-auth .auth-form .btn-primary { padding: 12px; font-size: 14px; }
    .modal.immersive-auth .auth-form-row { flex-direction: column; gap: 0; }
    .modal.immersive-auth .auth-divider { margin: 16px 0 12px; font-size: 10px; }
    .modal.immersive-auth .auth-switch { margin-top: 16px; font-size: 12px; }
    .modal.immersive-auth .auth-marquee, .modal.immersive-auth .auth-corner { display: none; }
    .modal.immersive-auth .auth-modal-close { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 16px; }
}

@media (max-width: 480px) {
    .modal.immersive-auth .auth-content { padding: 16px 12px; }
    .modal.immersive-auth .auth-card { padding: 20px 16px; border-radius: 16px; }
    .modal.immersive-auth .auth-brand-mark { font-size: 24px; }
    .modal.immersive-auth .auth-card h2 { font-size: 20px; }
    .modal.immersive-auth .auth-card .auth-desc { font-size: 12px; margin-bottom: 16px; }
    .modal.immersive-auth .auth-form .form-group { margin-bottom: 12px; }
    .modal.immersive-auth .auth-form .form-input { padding: 10px 12px; font-size: 13px; }
    .modal.immersive-auth .auth-form .btn-primary { padding: 11px; font-size: 13px; }
    .modal.immersive-auth .auth-tab { padding: 7px 0; font-size: 12px; }
    .modal.immersive-auth .auth-form .form-input,
    .modal.immersive-auth .auth-form .btn-outline { font-size: 13px !important; }
    /* 验证码按钮内联样式覆盖，防止小屏溢出 */
    .modal.immersive-auth .auth-form .btn-outline[onclick*="sendVerifyCode"],
    .modal.immersive-auth .auth-form .btn-outline[onclick*="sendForgotCode"] { padding: 10px 10px !important; font-size: 12px !important; }
}

/* 兼容旧式 auth-modal */
.modal.auth-modal {
    max-width: 520px;
    width: 92%;
    overflow: hidden;
    position: relative;
    animation: authModalIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(135deg, var(--bg-white) 0%, #faf8ff 100%);
}
@keyframes authModalIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.85) rotateX(10deg);
    }
    60% {
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0);
    }
}
.modal.auth-modal::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    opacity: 0.12;
    filter: blur(50px);
    pointer-events: none;
    animation: authGlowPulse 4s ease-in-out infinite;
}
.modal.auth-modal::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    opacity: 0.1;
    filter: blur(45px);
    pointer-events: none;
    animation: authGlowPulse 5s ease-in-out infinite 1s;
}
@keyframes authModalIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.85) rotateX(10deg);
    }
    60% {
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0);
    }
}
@keyframes authGlowPulse {
    0%, 100% { opacity: 0.1; transform: scale(1) translate(0, 0); }
    50% { opacity: 0.18; transform: scale(1.15) translate(-10px, -5px); }
}
.auth-modal-body {
    padding: 0;
    position: relative;
    overflow: hidden;
}
.auth-mouse-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(139,92,246,0.08) 40%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
    z-index: 0;
}

/* 忘记密码弹窗样式 */
.forgot-modal-body {
    padding: 0;
}
.forgot-header {
    text-align: center;
    padding: 36px 32px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    position: relative;
    z-index: 1;
}
.forgot-icon {
    font-size: 48px;
    margin-bottom: 8px;
    animation: forgotIconBounce 2s ease-in-out infinite;
}
@keyframes forgotIconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.forgot-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}
.forgot-desc {
    font-size: 14px;
    opacity: 0.85;
}
.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    font-size: 18px;
    transition: var(--transition);
    z-index: 10;
    background: var(--bg-gray);
    border: none;
}
.auth-modal-close:hover {
    background: var(--border);
    color: var(--text);
    transform: rotate(90deg);
}
.auth-modal-content {
    padding: 24px 32px 28px;
    position: relative;
    z-index: 1;
}
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
    position: relative;
}
.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.auth-tab.active {
    color: var(--primary);
}
.auth-form {
    min-height: 330px;
    animation: formFadeIn 0.3s ease-out;
}
@keyframes formFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.auth-form .form-group {
    margin-bottom: 16px;
}
.auth-form .form-label {
    font-size: 13px;
    margin-bottom: 6px;
}
.auth-form .form-input {
    padding: 11px 14px;
    font-size: 14px;
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.auth-form .form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
    transform: translateY(-1px);
}
.auth-form .btn-lg {
    margin-top: 6px;
    padding: 12px;
    font-size: 15px;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.auth-form .btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}
.auth-form .btn-lg:active {
    transform: translateY(0);
}
.auth-form-row {
    display: flex;
    gap: 12px;
}
.auth-form-row .form-group {
    flex: 1;
}
.auth-divider {
    text-align: center;
    margin: 18px 0 12px;
    position: relative;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 28%;
    height: 1px;
    background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-light);
}
.auth-switch a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

@media (max-width: 560px) {
    .modal.auth-modal { max-width: 96%; width: 96%; }
    .auth-modal-content { padding: 18px 20px 22px; }
    .auth-form-row { flex-direction: column; gap: 0; }
}

.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}
.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-white);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 6px;
    display: none;
}
.form-error.show { display: block; }

/* ===== 全站公告栏 - 重写确保可靠显示 ===== */
.announcement-bar {
    background: var(--primary);
    color: white;
    padding: 0;
    overflow: hidden;
    position: relative;
    z-index: 200;
    height: 44px;
    width: 100%;
    border-bottom: 1px solid var(--primary-dark);
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 91, 46, 0.15) 30%,
        rgba(0, 200, 150, 0.1) 60%,
        transparent 100%);
    pointer-events: none;
    animation: announce-shimmer 8s linear infinite;
}
@keyframes announce-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.announcement-inner {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.announcement-icon {
    flex-shrink: 0;
    padding: 0 18px 0 24px;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    background: var(--secondary);
    color: white;
    z-index: 3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: var(--font-mono);
    position: relative;
}
.announcement-icon::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 22px 0 22px 10px;
    border-color: transparent transparent transparent var(--secondary);
    z-index: 4;
    display: none;   /* 隐藏三角形，PC端与移动端保持一致 */
}
.announcement-marquee {
    flex: 1;
    height: 44px;
    overflow: hidden;
    position: relative;
    padding: 0 60px 0 16px;
}
.announcement-track {
    display: inline-flex;
    align-items: center;
    height: 44px;
    white-space: nowrap;
    will-change: transform;
}
/* 纯CSS滚动动画后备：当JS未加载或失败时，内容仍可见 */
@keyframes css-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.announcement-track.css-marquee {
    animation: css-marquee 25s linear infinite;
}
.announcement-item {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13.5px;
    font-weight: 400;
    margin-right: 56px;
    cursor: pointer;
    transition: var(--transition-fast);
    letter-spacing: -0.005em;
}
.announcement-item:hover {
    color: #fef08a;
    text-shadow: 0 0 6px rgba(254, 240, 138, 0.4);
}
.announcement-item .sep {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--secondary);
    margin: 0 24px;
    flex-shrink: 0;
    opacity: 0.7;
}
.announcement-item .ann-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}
.ann-tag.important { background: var(--danger); color: white; }
.ann-tag.notice { background: var(--accent); color: white; }
.ann-tag.activity { background: var(--secondary); color: white; }
.ann-tag.system { background: rgba(255,255,255,0.15); color: white; }
.ann-tag.info { background: var(--primary-light); color: white; }
.announcement-close {
    position: absolute;
    right: 0;
    top: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    z-index: 3;
    transition: var(--transition-fast);
}
.announcement-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    margin-top: 80px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 36px;
}
.footer-logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}
.footer-desc { color: var(--text-light); font-size: 14px; line-height: 1.7; }
.footer-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; color: var(--text); }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link { color: var(--text-light); font-size: 14px; }
.footer-link:hover { color: var(--primary); }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-mute);
    font-size: 13px;
}

.toast {
    position: fixed !important;
    top: 80px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 14px 28px !important;
    border-radius: var(--radius-lg) !important;
    font-size: 14px !important;
    z-index: 9999 !important;
    animation: toastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: none !important;
    box-shadow: 0 12px 32px -8px rgba(10, 10, 10, 0.2), 0 4px 12px -4px rgba(10, 10, 10, 0.1) !important;
    font-weight: 500 !important;
}
.toast.show { display: block !important; }
.toast-success { background: #10b981 !important; color: #ffffff !important; }
.toast-error { background: #ef4444 !important; color: #ffffff !important; }
.toast-warning { background: #f59e0b !important; color: #ffffff !important; }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.prompt-detail-content {
    background: var(--bg-gray);
    border-radius: var(--radius);
    padding: 22px;
    margin: 16px 0;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--border);
}

.ai-chat-box {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.chat-messages {
    padding: 20px;
    height: 480px;
    max-height: 55vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.chat-messages::-webkit-scrollbar {
    width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}
.empty-chat-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
    text-align: center;
    padding: 60px 40px;
    opacity: 0.8;
}
.empty-chat-hint .hint-icon {
    font-size: 56px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(99, 102, 241, 0.2));
}
.empty-chat-hint .hint-text {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 500;
}
.empty-chat-hint .hint-subtext {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 24px;
}
.empty-chat-hint .hint-arrow {
    font-size: 28px;
    animation: bounce 2s ease-in-out infinite;
    color: var(--primary);
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(10px); opacity: 1; }
}
.chat-message { margin-bottom: 20px; display: flex; flex-direction: column; }
.chat-message.user { align-items: flex-end; }
.chat-message:not(.user) { align-items: flex-start; }
.chat-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    overflow: hidden;
}
.chat-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.chat-avatar-text {
    line-height: 1;
}
.chat-message.user .chat-avatar { background: var(--accent); }
.chat-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 80%;
}
.chat-message.user .chat-content { align-items: flex-end; }
.chat-message:not(.user) .chat-content { align-items: flex-start; }
.chat-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 2px;
}
.chat-name {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}
.chat-name-user { color: var(--accent); }
.chat-name-assistant { color: var(--primary); }
.chat-bubble {
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
}
.chat-message:not(.user) .chat-bubble {
    background: var(--bg-white);
    border-radius: 12px 12px 12px 2px;
}
.chat-message.user .chat-bubble {
    background: var(--primary);
    color: white;
    border-radius: 12px 12px 2px 12px;
}

/* ===== AI Markdown 渲染样式 ===== */
.chat-bubble-md {
    line-height: 1.7;
    word-wrap: break-word;
}
.chat-bubble-md h1,
.chat-bubble-md h2,
.chat-bubble-md h3,
.chat-bubble-md h4 {
    margin: 16px 0 8px;
    font-weight: 600;
    line-height: 1.3;
}
.chat-bubble-md h1 { font-size: 1.5em; border-bottom: 1px solid var(--border, #eee); padding-bottom: 6px; }
.chat-bubble-md h2 { font-size: 1.3em; border-bottom: 1px solid var(--border, #eee); padding-bottom: 4px; }
.chat-bubble-md h3 { font-size: 1.15em; }
.chat-bubble-md h4 { font-size: 1.05em; }
.chat-bubble-md p { margin: 8px 0; }
.chat-bubble-md ul,
.chat-bubble-md ol {
    padding-left: 24px;
    margin: 8px 0;
}
.chat-bubble-md li { margin: 4px 0; }
.chat-bubble-md ul li { list-style: disc; }
.chat-bubble-md ol li { list-style: decimal; }
.chat-bubble-md blockquote {
    border-left: 4px solid var(--primary, #3b82f6);
    padding: 8px 16px;
    margin: 12px 0;
    background: var(--bg, #f8f9fa);
    border-radius: 0 8px 8px 0;
    color: var(--text-light, #666);
}
.chat-bubble-md blockquote p { margin: 4px 0; }
.chat-bubble-md hr {
    border: none;
    border-top: 1px solid var(--border, #eee);
    margin: 16px 0;
}
.chat-bubble-md a {
    color: var(--primary, #3b82f6);
    text-decoration: underline;
}
.chat-bubble-md a:hover { color: var(--primary-dark, #2563eb); }
.chat-bubble-md strong,
.chat-bubble-md b { font-weight: 700; }
.chat-bubble-md em,
.chat-bubble-md i { font-style: italic; }
.chat-bubble-md del,
.chat-bubble-md s { text-decoration: line-through; opacity: 0.7; }

/* 行内代码 */
.chat-bubble-md code {
    background: rgba(27, 31, 35, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* 代码块 */
.chat-bubble-md pre {
    margin: 12px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #0d1117;
}
.chat-bubble-md pre code {
    background: none;
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
    display: block;
    overflow-x: auto;
    border-radius: 0;
    color: #e6edf3;
}
.chat-bubble-md pre code.hljs {
    background: #0d1117;
    padding: 16px;
}

/* 代码块包装器 */
.code-block-wrapper {
    margin: 14px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.code-block-wrapper > pre {
    margin: 0;
    border-radius: 0;
}
.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #161b22;
    color: #e6edf3;
    font-size: 12px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.code-block-lang {
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.85;
}
.code-copy-btn {
    background: rgba(255,255,255,0.1);
    color: #e6edf3;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.code-copy-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}
.code-block-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}
.code-expand-btn {
    background: rgba(255,255,255,0.1);
    color: #e6edf3;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}
.code-expand-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

/* 表格 */
.chat-bubble-md table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
    overflow-x: auto;
    display: block;
}
.chat-bubble-md thead {
    background: var(--bg, #f8f9fa);
}
.chat-bubble-md th,
.chat-bubble-md td {
    border: 1px solid var(--border, #e1e4e8);
    padding: 8px 12px;
    text-align: left;
}
.chat-bubble-md th {
    font-weight: 600;
    background: var(--bg, #f6f8fa);
    white-space: nowrap;
}
.chat-bubble-md tr:nth-child(even) {
    background: rgba(0,0,0,0.02);
}
.chat-bubble-md tr:hover {
    background: rgba(59,130,246,0.05);
}

/* 图片 */
.chat-bubble-md img {
    max-width: 100%;
    border-radius: 6px;
    margin: 8px 0;
}

/* 任务列表 */
.chat-bubble-md input[type="checkbox"] {
    margin-right: 6px;
}

/* 键盘快捷键标记 */
.chat-bubble-md kbd {
    background: var(--bg, #f6f8fa);
    border: 1px solid var(--border, #e1e4e8);
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 12px;
    font-family: 'SFMono-Regular', Consolas, monospace;
}

/* 数学公式/特殊 */
.chat-bubble-md .footnote {
    font-size: 12px;
    color: var(--text-light, #666);
    border-top: 1px solid var(--border, #eee);
    padding-top: 8px;
    margin-top: 12px;
}

/* AI消息容器让代码块不溢出 */
.chat-message:not(.user) .chat-content {
    overflow: hidden;
}
.chat-message:not(.user) .chat-bubble-md {
    overflow-x: auto;
}
.chat-bubble-md .code-block-wrapper pre code,
.chat-bubble-md table {
    min-width: 0;
}
.chat-image-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-sm);
    max-width: 400px;
}
.chat-image {
    width: 100%;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: block;
}
.chat-image:hover {
    opacity: 0.9;
    transform: scale(1.02);
}
.chat-image-tip {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    margin-top: 8px;
}
.chat-video-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-sm);
    max-width: 500px;
}
.chat-video {
    width: 100%;
    border-radius: var(--radius);
    display: block;
}
.chat-input-area {
    padding: 16px;
    border-top: 1.5px solid var(--border);
    background: var(--bg-white);
    display: flex;
    gap: 12px;
    align-items: flex-end;
}
.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 14px;
    resize: none;
    min-height: 52px;
    max-height: 200px;
    line-height: 1.5;
    transition: var(--transition);
    overflow-y: auto;
    font-family: inherit;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.chat-input::-webkit-scrollbar {
    width: 6px;
}
.chat-input::-webkit-scrollbar-track {
    background: transparent;
}
.chat-input::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
.chat-input::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}
.chat-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}
.chat-send-btn {
    padding: 0 28px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--primary);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-send-btn:hover { background: var(--primary-dark); }
.chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.model-selector {
    margin-bottom: 16px;
}
.provider-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.provider-tab {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    background: var(--bg-secondary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.provider-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.provider-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.provider-tab-count {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.8;
    background: rgba(255,255,255,0.2);
    padding: 1px 5px;
    border-radius: 8px;
}
.provider-tab:not(.active) .provider-tab-count {
    background: var(--bg-hover);
}
.model-panels {
    max-height: 200px;
    overflow-y: auto;
}
.model-panel {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
}
.model-panel.active {
    display: flex;
}
.model-item {
    padding: 7px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.model-item:hover { border-color: var(--primary); }
.model-item.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.auth-card {
    max-width: 440px;
    margin: 60px auto;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}
.auth-header {
    padding: 48px 32px 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}
.auth-logo { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.auth-subtitle { font-size: 15px; opacity: 0.9; }
.auth-body { padding: 32px; }
.auth-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}
.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.page-header {
    padding: 48px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    margin-bottom: 48px;
}
.page-title { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.page-desc { font-size: 16px; opacity: 0.9; }

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}
.empty-icon { font-size: 56px; margin-bottom: 20px; opacity: 0.5; }
.empty-text { font-size: 15px; }

@media (max-width: 768px) {
    .search-title { font-size: 28px; }
    .search-subtitle { font-size: 15px; }
    .search-box { flex-direction: column; }
    .search-btn { border-radius: var(--radius-lg); }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .nav-item { padding: 6px 10px; font-size: 14px; white-space: nowrap; }
    .user-name { display: none; }
    .logo span:last-child { display: none; }
    .header-inner { height: 56px; padding: 0 16px; }
    .main-content { padding: 24px 0; }
    .category-bar-wrapper { margin-bottom: 16px; }
    .category-item { padding: 9px 16px; font-size: 13px; }
    .filter-bar { flex-direction: column; align-items: flex-start; }
    .page-title { font-size: 28px; }
    .page-header { padding: 32px 0; margin-bottom: 32px; }
    .header-right { gap: 8px; flex-shrink: 0; }
    .btn-sm { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
    .lang-switch { padding: 5px 8px; font-size: 12px; gap: 4px; flex-shrink: 0; }
    .lang-switch select { font-size: 12px; }
    .announcement-bar { padding: 0; height: 38px; }
    .announcement-inner { gap: 0; height: 38px; align-items: stretch; }
    .announcement-icon {
        padding: 0 10px;
        font-size: 11px;
        height: 38px;
        min-width: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: stretch;
    }
    .announcement-icon::after { display: none; }
    .announcement-marquee { height: 38px; padding: 0 12px 0 0; align-self: stretch; }
    .announcement-track { height: 38px; }
    .announcement-item { 
        font-size: 12px; 
        margin-right: 36px;
        max-width: 60vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .announcement-item .ann-tag { font-size: 10px; padding: 1px 6px; }
    .announcement-close { width: 38px; height: 38px; }
    
    .prompt-grid { grid-template-columns: 1fr !important; gap: 14px; }
    .prompt-card-header { padding: 14px 16px; }
    .prompt-card-footer { padding: 12px 16px; }
    .prompt-card-title { font-size: 16px; }
    .prompt-card-desc { font-size: 13px; }
    .search-section { padding: 32px 0; }
    .main-content { padding: 16px 0; }
    .section-header { padding: 0 16px; margin-bottom: 16px; }
    .prompt-grid-wrap { padding: 0 16px; }
    
    .user-info { padding: 6px 8px 6px; }
    .user-info .user-name { display: none; }
    .user-info .user-balance {
        display: inline-block;
        font-size: 11px;
        color: var(--primary);
        font-weight: 600;
        padding: 2px 6px;
        background: rgba(8, 145, 178, 0.08);
        border-radius: 6px;
    }
    .user-info .dropdown-menu { top: calc(100% + 2px); right: 0; left: auto; }
    
    .plaza-header { flex-direction: column; gap: 16px; }
    .plaza-header-left, .plaza-header-right { width: 100%; }
    .plaza-header-leaderboard { width: 100%; }
    .plaza-main-layout { flex-direction: column; }
}

.prompt-paid-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--warning), #f59e0b);
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.prompt-card {
    position: relative;
}

@media (max-width: 480px) {
    .header-right { gap: 6px; }
    .lang-switch { padding: 4px 6px; font-size: 11px; }
    .search-section { padding: 32px 0; }
    .search-title { font-size: 22px; }
    .search-subtitle { font-size: 14px; }
    .hot-tag { padding: 6px 10px; font-size: 12px; }
    .prompt-card-header { padding: 14px; }
    .prompt-card-footer { padding: 10px 14px; }
    .prompt-card-title { font-size: 15px; }
    .prompt-card-desc { font-size: 12px; }
    .prompt-card-stats { gap: 8px; flex-wrap: wrap; }
    .prompt-card-stats .stat-item { font-size: 11px; }
    .modal { width: 96%; max-height: 92vh; }
    .modal-body { max-height: 70vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .auth-card { margin: 30px 16px; }
    .nav { gap: 2px; }
    .nav-item { padding: 5px 8px; font-size: 13px; }
    .header-inner { padding: 0 12px; }
    .logo-icon { font-size: 22px; }
    .btn-sm { padding: 5px 8px; font-size: 12px; }
    
    .category-bar-wrapper { padding: 0 12px; }
    .category-item { padding: 7px 12px; font-size: 12px; }
    
    .plaza-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .plaza-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .plaza-tab { padding: 7px 12px; font-size: 12px; }
    .plaza-submit-btn { margin-left: 0; width: 100%; text-align: center; padding: 11px 16px; font-size: 13px; }
    
    .plaza-section-title h2 { font-size: 16px; }
    .prompt-grid { gap: 12px; }
    .page-title { font-size: 20px; }

    .user-info { padding: 5px 7px 5px; gap: 6px; }
    .user-info .user-balance { font-size: 10px; padding: 1px 5px; }
    .user-avatar { width: 30px; height: 30px; font-size: 12px; }

    .announcement-bar { padding: 0; height: 34px; }
    .announcement-inner { height: 34px; gap: 0; align-items: stretch; }
    .announcement-icon {
        padding: 0 8px;
        font-size: 10px;
        height: 34px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: stretch;
    }
    .announcement-marquee { height: 34px; padding: 0 8px 0 0; align-self: stretch; }
    .announcement-track { height: 34px; }
    .announcement-item { 
        font-size: 11px; 
        margin-right: 28px;
        max-width: 55vw;
    }
    .announcement-close { width: 34px; height: 34px; }
}

/* ============ 付费提示词卡片"已购买"高级样式 ============ */
.prompt-card.purchased-card {
    border: 1.5px solid rgba(16, 185, 129, 0.35) !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), rgba(16, 185, 129, 0.01)) !important;
    position: relative;
}
.prompt-card.purchased-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, transparent 0%, rgba(16, 185, 129, 0.05) 100%);
    pointer-events: none;
    z-index: 0;
}
.prompt-card.purchased-card:hover {
    border-color: rgba(16, 185, 129, 0.6) !important;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15) !important;
}
.prompt-paid-badge.purchased-badge {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.4) !important;
    display: inline-flex;
    align-items: center;
    border-radius: 0 var(--radius-lg) 0 12px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ============ 付费提示词弹窗高级样式 ============ */
.pay-modal-container {
    padding: 4px 0;
    font-family: -apple-system, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #1a1a2e;
}

/* 顶部标题区 */
.pay-modal-header { margin-bottom: 20px; }
.pay-modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.pay-modal-paid-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    letter-spacing: 0.3px;
}
.pay-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
}
.pay-modal-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* 价格展示区 - 高级感设计 */
.pay-price-showcase {
    position: relative;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    border-radius: 16px;
    padding: 24px 20px;
    margin: 16px 0 20px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 10px 30px rgba(49, 46, 129, 0.25);
}
.pay-price-glow {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, transparent 70%);
    pointer-events: none;
    animation: payGlowPulse 3s ease-in-out infinite;
}
@keyframes payGlowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.15); }
}
.pay-price-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}
.pay-price-amount {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.pay-price-symbol {
    font-size: 22px;
    font-weight: 600;
    color: #fbbf24;
}
.pay-price-value {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pay-price-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 1;
}
.pay-perk-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.85);
}
.pay-perk-item svg {
    color: #10b981;
    flex-shrink: 0;
}

/* 支付方式选择 */
.pay-methods-section { margin-bottom: 20px; }
.pay-methods-title {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}
.pay-methods-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pay-method-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.pay-method-item:hover:not(.disabled) {
    border-color: #c7d2fe;
    background: #fafbff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}
.pay-method-item.selected {
    border-color: #6366f1;
    background: linear-gradient(135deg, #eef2ff, #faf5ff);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}
.pay-method-item.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    background: #f8fafc;
}
.pay-method-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.pay-method-item.selected .pay-method-radio {
    border-color: #6366f1;
}
.pay-method-radio-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #6366f1;
    transform: scale(0);
    transition: transform 0.2s ease;
}
.pay-method-item.selected .pay-method-radio-dot {
    transform: scale(1);
}
.pay-method-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pay-method-icon.balance-icon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}
.pay-method-icon.qrcode-icon {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
}
.pay-method-info { flex: 1; min-width: 0; }
.pay-method-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}
.pay-method-desc {
    font-size: 12px;
    color: #64748b;
}
.pay-balance-enough { color: #10b981; font-weight: 600; }
.pay-balance-not-enough { color: #ef4444; font-weight: 600; }
.pay-recharge-link {
    background: #f59e0b;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.pay-recharge-link:hover { background: #d97706; }

/* 扫码支付区域 */
.pay-qrcode-section {
    margin-bottom: 20px;
    animation: payFadeIn 0.3s ease;
}
@keyframes payFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.pay-qrcode-box {
    background: #fff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.pay-qrcode-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    flex-direction: column;
}
.pay-qrcode-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #64748b;
    font-size: 13px;
}
.pay-qrcode-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: paySpin 0.8s linear infinite;
}
@keyframes paySpin { to { transform: rotate(360deg); } }
.pay-qrcode-mock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.pay-qrcode-mock-img {
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.pay-qrcode-error {
    color: #ef4444;
    font-size: 13px;
    padding: 20px;
}
.pay-qrcode-tip {
    margin-top: 12px;
    font-size: 12px;
    color: #64748b;
}
.pay-qrcode-status {
    margin-top: 6px;
    font-size: 12px;
    color: #f59e0b;
    font-weight: 500;
}
.pay-qrcode-status.success {
    color: #10b981;
}

/* 底部确认区 */
.pay-confirm-section {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    margin-top: 4px;
}
.pay-confirm-summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    padding: 0 2px;
}
.pay-confirm-label {
    font-size: 13px;
    color: #64748b;
}
.pay-confirm-amount {
    font-size: 22px;
    font-weight: 700;
    color: #ef4444;
    letter-spacing: -0.5px;
}
.pay-confirm-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    letter-spacing: 0.5px;
}
.pay-confirm-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.pay-confirm-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}
.pay-confirm-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
    font-size: 11.5px;
    color: #94a3b8;
}
.pay-confirm-security svg { color: #10b981; }

/* ============ End 付费弹窗样式 ============ */

/* ============ 深色玻璃态主题增强样式 ============ */

/* --- 1. 玻璃态卡片增强样式 --- */
.glass-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.glass-card-hover:hover {
    background: var(--bg-gray);
    border-color: var(--border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* --- 2. 发光边框效果 --- */
.glow-border {
    position: relative;
    border-radius: var(--radius-lg);
    isolation: isolate;
}
.glow-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--border-light), var(--border));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}
.glow-border-primary::before {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--primary) 100%);
    animation: glowBorderShift 3s ease infinite;
    background-size: 200% 200%;
}
@keyframes glowBorderShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- 3. 渐变背景工具类 --- */
.bg-gradient-dark {
    background: radial-gradient(ellipse at top left, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at center, var(--bg-gray) 0%, var(--bg-white) 100%);
}
.bg-gradient-mesh {
    background:
        radial-gradient(at 20% 20%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(139, 92, 246, 0.06) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(0, 180, 216, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(8, 145, 178, 0.06) 0px, transparent 50%),
        radial-gradient(at 80% 100%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
        var(--bg-white);
}

/* --- 4. 高级动画效果 --- */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(0, 0, 0, 0.03) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2.5s linear infinite;
}
@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-12px) rotate(0.5deg); }
    50% { transform: translateY(-6px) rotate(-0.3deg); }
    75% { transform: translateY(-15px) rotate(0.3deg); }
}
.float-slow {
    animation: floatSlow 6s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.15);
    }
    50% {
        box-shadow: 0 0 12px 2px rgba(99, 102, 241, 0.1);
    }
}
.pulse-glow {
    animation: pulseGlow 2.5s ease-in-out infinite;
}

/* --- 5. 优化滚动条样式 --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-gray);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.3), rgba(99, 102, 241, 0.3));
    border-radius: 4px;
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.5), rgba(99, 102, 241, 0.5));
}
::-webkit-scrollbar-corner {
    background: transparent;
}
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) var(--bg-gray);
}

/* --- 6. 文字渐变效果工具类 --- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--primary-light) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientShift 4s ease infinite;
}
.text-gradient-static {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
@keyframes textGradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* --- 7. 优化输入框聚焦效果 --- */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4) !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* --- 8. 卡片悬浮效果增强 --- */
.card-hover-lift {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.4s ease;
    will-change: transform;
}
.card-hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}
.card-hover-glow {
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.card-hover-glow:hover {
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2), var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.3);
}

/* ============ End 深色玻璃态主题增强样式 ============ */

/* ============ 弹窗组件深色玻璃态主题增强 ============ */

/* --- 1. 通用弹窗增强 --- */
.modal-glass {
    background: var(--bg-white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
}

.modal-glass .modal-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(99, 102, 241, 0.04) 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
}
.modal-glass .modal-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.2) 50%, transparent 100%);
}

.modal-glass .modal-footer {
    border-top: 1px solid var(--border);
    position: relative;
}
.modal-glass .modal-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.15) 50%, transparent 100%);
}

/* --- 2. 提示词详情弹窗 --- */
.prompt-detail-modal .prompt-content {
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.prompt-detail-modal .action-buttons {
    display: flex;
    gap: 12px;
}
.prompt-detail-modal .action-buttons .btn {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.prompt-detail-modal .action-buttons .btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.prompt-detail-modal .copy-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.prompt-detail-modal .copy-btn:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

/* --- 3. 收费弹窗增强 --- */
.payment-modal .price-display {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.06) 0%, rgba(99, 102, 241, 0.04) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.payment-modal .price-display .price-amount {
    text-shadow: none;
}

.payment-modal .payment-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}
.payment-modal .payment-card:hover {
    background: var(--bg-gray);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-md);
}
.payment-modal .payment-card.selected {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2), var(--shadow-md);
}

.payment-modal .confirm-btn {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    overflow: hidden;
}
.payment-modal .confirm-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 200%;
    border-radius: inherit;
    z-index: -1;
    animation: pulseGlow 2s ease-in-out infinite;
    opacity: 0.4;
}
.payment-modal .confirm-btn:hover::before {
    opacity: 0.8;
}
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.2), 0 0 20px rgba(99, 102, 241, 0.1);
    }
    50% {
        box-shadow: 0 0 16px rgba(99, 102, 241, 0.3), 0 0 32px rgba(99, 102, 241, 0.15);
    }
}

/* --- 4. 登录/注册弹窗 --- */
.auth-modal {
    background: linear-gradient(145deg, var(--bg-white) 0%, var(--bg-gray) 100%);
    border: 1px solid var(--border);
}
.auth-modal .form-input {
    background: var(--bg-gray);
    border: 1px solid var(--border);
    color: var(--text);
    transition: all 0.3s ease;
}
.auth-modal .form-input:focus {
    background: var(--bg-white);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.auth-modal.light-theme {
    background: linear-gradient(145deg, var(--bg-white) 0%, var(--bg-gray) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
}
.auth-modal.light-theme .form-input {
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--text);
}
.auth-modal.light-theme .form-input:focus {
    background: var(--bg-white);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.auth-modal .modal-content,
.auth-modal .auth-form {
    animation: authFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- 5. 通用组件样式优化 --- */

/* 徽章样式（白色主题） */
.badge {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary);
    transition: all 0.3s ease;
}
.badge:hover {
    background: rgba(99, 102, 241, 0.12);
    box-shadow: var(--shadow-sm);
}
.badge.badge-secondary {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--secondary);
}
.badge.badge-secondary:hover {
    background: rgba(99, 102, 241, 0.12);
    box-shadow: var(--shadow-sm);
}
.badge.badge-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    color: #d97706;
}
.badge.badge-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* 按钮组样式优化 */
.btn-group {
    display: inline-flex;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    gap: 4px;
}
.btn-group .btn-group-item {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: calc(var(--radius) - 4px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}
.btn-group .btn-group-item:hover {
    background: var(--bg-white);
    color: var(--text);
}
.btn-group .btn-group-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

/* 标签页切换器优化 */
.tab-switcher {
    display: flex;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
}
.tab-switcher .tab-item {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: calc(var(--radius) - 4px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    position: relative;
}
.tab-switcher .tab-item:hover {
    color: var(--text);
    background: var(--bg-white);
}
.tab-switcher .tab-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.06) 100%);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}
.tab-switcher .tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* ============ End 弹窗组件深色玻璃态主题增强 ============ */

/* =========================================================
 * AI 测试对话框（ChatBox）扩展样式
 * - 最大化 / 还原
 * - 移动端初始隐藏对话区
 * - HTML 代码预览
 * ========================================================= */

/* 1. AI 测试窗口：最大化/还原 */
.chat-test-overlay.chat-test-overlay-maximized {
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.85);
}
.chat-test-modal.chat-test-maximized {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
}
.chat-test-modal.chat-test-maximized .modal-body {
    padding: 16px;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.chat-test-modal.chat-test-maximized .chat-test-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.chat-test-modal.chat-test-maximized .ai-chat-box {
    flex: 1;
    min-height: 0;
}
.chat-test-modal.chat-test-maximized .chat-messages {
    height: auto !important;
    max-height: none !important;
    flex: 1;
    min-height: 0;
}

.chat-test-max-btn:hover {
    background: var(--bg-gray) !important;
    color: var(--text) !important;
}

/* 2. HTML 预览（在代码框内） */
.html-preview-container {
    margin: 0;
    border-top: 2px solid rgba(99, 102, 241, 0.4);
    overflow: hidden;
    background: #fff;
}
.html-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #f3f4f6;
    font-size: 12px;
    color: #374151;
    user-select: none;
}
.html-preview-close {
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.html-preview-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #1f2937;
}
.html-preview-body {
    background: #fff;
    overflow: auto;
}

/* 预览按钮（代码块顶部） */
.code-preview-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e6edf3;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.code-preview-btn:hover {
    background: rgba(99, 102, 241, 0.35);
    border-color: rgba(99, 102, 241, 0.6);
    color: #fff;
}

/* 3. 移动端优化：AI 测试窗口 */
@media (max-width: 768px) {
    /* 移动端：测试窗口居中显示，不撑满全屏 */
    .chat-test-modal {
        width: calc(100% - 24px);
        max-width: 100%;
        max-height: 90vh;
        max-height: 90dvh;
    }
    .chat-test-overlay {
        padding: 0;
        align-items: center;
        justify-content: center;
    }
    .chat-test-modal .modal-body {
        padding: 12px;
        max-height: calc(90vh - 60px);
        max-height: calc(90dvh - 60px);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .chat-test-body {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }
    .chat-test-modal .ai-chat-box {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    .chat-test-modal .chat-messages {
        height: auto !important;
        max-height: 40vh !important;
        flex: 1;
        min-height: 0;
    }

    /* 移动端：发送第一条消息前只隐藏消息显示区（保留输入框） */
    .chat-messages.chat-messages-hidden {
        display: none !important;
    }
    .chat-test-chat {
        display: flex;
        flex-direction: column;
    }
}

/* 桌面端：消息区始终显示 */
@media (min-width: 769px) {
    .chat-messages.chat-messages-hidden {
        display: block !important;
    }
}


