/* ═══════════════════════════════════════════════════ 光湖呼吸动效 · 设计系统 guanghuclip.cn · 光之湖出品 ═══════════════════════════════════════════════════ */ :root { /* 光湖色系 */ --gl-bg-primary: #0a0e1a; --gl-bg-secondary: #111827; --gl-bg-panel: #0f172a; --gl-bg-input: #1e293b; --gl-accent: #38bdf8; --gl-accent-dim: #0ea5e9; --gl-accent-glow: rgba(56, 189, 248, 0.3); --gl-accent-glow-strong: rgba(56, 189, 248, 0.5); --gl-text-primary: #e2e8f0; --gl-text-secondary: #94a3b8; --gl-text-muted: #64748b; --gl-success: #22c55e; --gl-success-glow: rgba(34, 197, 94, 0.3); --gl-warning: #f59e0b; --gl-error: #ef4444; --gl-disabled: #374151; --gl-border: #1e293b; --gl-border-glow: rgba(56, 189, 248, 0.15); /* 动效 */ --gl-breath-duration: 4s; --gl-transition: 0.3s ease; } /* ── 全局重置 ─────────────────────────────────────── */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; background: var(--gl-bg-primary); color: var(--gl-text-primary); overflow: hidden; height: 100vh; } #app { height: 100vh; width: 100vw; } /* ── 光湖呼吸动画 ─────────────────────────────────── */ @keyframes glBreathe { 0%, 100% { box-shadow: 0 0 8px var(--gl-accent-glow); } 50% { box-shadow: 0 0 24px var(--gl-accent-glow-strong); } } @keyframes glBgPulse { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } } @keyframes glFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } @keyframes glSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes glProgress { 0% { background-position: 0% 0%; } 100% { background-position: 200% 0%; } } /* ── 布局 ─────────────────────────────────────────── */ .gl-layout { display: flex; height: 100vh; width: 100vw; background: linear-gradient(135deg, #0a0e1a 0%, #0f1729 50%, #0a0e1a 100%); background-size: 200% 200%; animation: glBgPulse 8s ease-in-out infinite; } .gl-panel { height: 100%; display: flex; flex-direction: column; overflow: hidden; } .gl-panel-left { width: 40%; border-right: 1px solid var(--gl-border); position: relative; } .gl-panel-left::after { content: ''; position: absolute; right: 0; top: 10%; bottom: 10%; width: 1px; background: linear-gradient(to bottom, transparent, var(--gl-accent-glow), transparent); animation: glBreathe var(--gl-breath-duration) ease-in-out infinite; } .gl-panel-right { width: 60%; } /* ── 面板头部 ─────────────────────────────────────── */ .gl-header { padding: 16px 24px; border-bottom: 1px solid var(--gl-border); display: flex; align-items: center; gap: 10px; flex-shrink: 0; } .gl-header-icon { font-size: 20px; } .gl-header-title { font-size: 15px; font-weight: 600; color: var(--gl-text-primary); } .gl-header-subtitle { font-size: 12px; color: var(--gl-text-muted); margin-left: auto; } /* ── 输入框 ───────────────────────────────────────── */ .gl-textarea { width: 100%; min-height: 120px; max-height: 300px; padding: 16px; background: var(--gl-bg-input); border: 1px solid var(--gl-border); border-radius: 12px; color: var(--gl-text-primary); font-size: 14px; line-height: 1.6; resize: vertical; transition: var(--gl-transition); outline: none; font-family: inherit; } .gl-textarea:focus { border-color: var(--gl-accent-dim); box-shadow: 0 0 0 3px var(--gl-accent-glow); } .gl-textarea::placeholder { color: var(--gl-text-muted); } /* ── 按钮 ─────────────────────────────────────────── */ .gl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 24px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: var(--gl-transition); font-family: inherit; } .gl-btn-primary { background: linear-gradient(135deg, var(--gl-accent-dim), var(--gl-accent)); color: #0a0e1a; box-shadow: 0 0 12px var(--gl-accent-glow); } .gl-btn-primary:hover:not(:disabled) { box-shadow: 0 0 24px var(--gl-accent-glow-strong); transform: translateY(-1px); } .gl-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; } .gl-btn-secondary { background: var(--gl-bg-input); color: var(--gl-text-primary); border: 1px solid var(--gl-border); } .gl-btn-secondary:hover { border-color: var(--gl-accent-dim); } .gl-btn-success { background: linear-gradient(135deg, #16a34a, var(--gl-success)); color: white; box-shadow: 0 0 12px var(--gl-success-glow); } /* ── 模型选择器 ───────────────────────────────────── */ .gl-model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; } .gl-model-card { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--gl-border); background: var(--gl-bg-input); cursor: pointer; transition: var(--gl-transition); text-align: center; } .gl-model-card.active { border-color: var(--gl-accent); background: rgba(56, 189, 248, 0.08); animation: glBreathe var(--gl-breath-duration) ease-in-out infinite; } .gl-model-card.disabled { opacity: 0.35; cursor: not-allowed; } .gl-model-name { font-size: 13px; font-weight: 600; color: var(--gl-text-primary); } .gl-model-tag { font-size: 11px; color: var(--gl-text-muted); margin-top: 2px; } /* ── 进度条 (能量充能环) ──────────────────────────── */ .gl-progress-wrap { padding: 32px; text-align: center; } .gl-progress-ring { width: 120px; height: 120px; margin: 0 auto 16px; position: relative; } .gl-progress-ring svg { transform: rotate(-90deg); } .gl-progress-ring circle { fill: none; stroke-width: 6; stroke-linecap: round; } .gl-progress-ring .track { stroke: var(--gl-border); } .gl-progress-ring .fill { stroke: var(--gl-accent); filter: drop-shadow(0 0 8px var(--gl-accent-glow)); transition: stroke-dashoffset 0.5s ease; } .gl-progress-pct { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 24px; font-weight: 700; color: var(--gl-accent); } .gl-progress-msg { font-size: 13px; color: var(--gl-text-secondary); } /* ── 视频播放器 ───────────────────────────────────── */ .gl-video-wrap { padding: 16px; animation: glFadeIn 0.5s ease; } .gl-video-player { width: 100%; max-height: 400px; border-radius: 12px; background: #000; box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); } .gl-video-actions { display: flex; gap: 12px; justify-content: center; margin-top: 16px; } /* ── 聊天 (左面板) ────────────────────────────────── */ .gl-chat-area { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; } .gl-msg { max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.6; animation: glFadeIn 0.3s ease; } .gl-msg-bot { align-self: flex-start; background: var(--gl-bg-input); border: 1px solid var(--gl-border); color: var(--gl-text-primary); } .gl-msg-user { align-self: flex-end; background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(56, 189, 248, 0.08)); border: 1px solid rgba(56, 189, 248, 0.2); color: var(--gl-text-primary); } .gl-chat-input-wrap { padding: 12px 16px; border-top: 1px solid var(--gl-border); display: flex; gap: 8px; flex-shrink: 0; } .gl-chat-input { flex: 1; padding: 10px 14px; background: var(--gl-bg-input); border: 1px solid var(--gl-border); border-radius: 10px; color: var(--gl-text-primary); font-size: 14px; outline: none; transition: var(--gl-transition); font-family: inherit; } .gl-chat-input:focus { border-color: var(--gl-accent-dim); } /* ── 内容区域 ─────────────────────────────────────── */ .gl-content { flex: 1; overflow-y: auto; padding: 24px; } .gl-section { margin-bottom: 20px; } .gl-section-title { font-size: 12px; font-weight: 600; color: var(--gl-text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; } /* ── 字数统计 ─────────────────────────────────────── */ .gl-char-count { font-size: 12px; color: var(--gl-text-muted); text-align: right; margin-top: 4px; } .gl-char-count.warn { color: var(--gl-warning); } .gl-char-count.error { color: var(--gl-error); } /* ── 参数面板 ─────────────────────────────────────── */ .gl-param-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; } .gl-param-label { font-size: 13px; color: var(--gl-text-secondary); min-width: 60px; } .gl-param-options { display: flex; gap: 6px; } .gl-param-chip { padding: 4px 12px; border-radius: 8px; font-size: 12px; border: 1px solid var(--gl-border); background: var(--gl-bg-input); color: var(--gl-text-secondary); cursor: pointer; transition: var(--gl-transition); } .gl-param-chip.active { border-color: var(--gl-accent); color: var(--gl-accent); background: rgba(56, 189, 248, 0.08); } /* ── 滚动条美化 ───────────────────────────────────── */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--gl-border); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: var(--gl-text-muted); }