diff --git a/css/style.css b/css/style.css index d1b8404..32c961a 100644 --- a/css/style.css +++ b/css/style.css @@ -248,24 +248,34 @@ body::before { .model-bar { display: flex; align-items: center; - gap: 8px; - padding: 6px 16px; + gap: 10px; + padding: 8px 16px; background: var(--bg-secondary); border-bottom: 1px solid var(--border-glass); flex-shrink: 0; } -.model-select { +.model-select-wrap { + position: relative; flex: 1; - padding: 6px 12px; + display: flex; + align-items: center; +} + +.model-select { + width: 100%; + padding: 7px 32px 7px 12px; background: var(--bg-glass-light); border: 1px solid var(--border-glass); border-radius: var(--radius-sm); color: var(--text-primary); font-size: 13px; + font-family: var(--font-sans); outline: none; cursor: pointer; transition: var(--transition); + appearance: none; + -webkit-appearance: none; } .model-select:focus { @@ -276,6 +286,84 @@ body::before { .model-select option { background: var(--bg-secondary); color: var(--text-primary); + padding: 6px; +} + +.model-select-arrow { + position: absolute; + right: 8px; + top: 50%; + transform: translateY(-50%); + pointer-events: none; + color: var(--text-muted); + display: flex; +} + +.model-select-arrow svg { + width: 14px; + height: 14px; +} + +.model-info-badge { + font-size: 11px; + color: var(--text-muted); + white-space: nowrap; + padding: 2px 8px; + background: var(--bg-glass-light); + border-radius: 10px; + border: 1px solid var(--border-glass); + display: none; +} + +/* ── Think 按钮(输入栏内) ── */ +.think-toggle { + display: flex; + align-items: center; + cursor: pointer; + flex-shrink: 0; + user-select: none; +} + +.think-toggle input { display: none; } + +.think-btn { + width: 38px; + height: 38px; + border-radius: var(--radius-md); + background: var(--bg-glass-light); + border: 1px solid var(--border-glass); + display: flex; + align-items: center; + justify-content: center; + transition: var(--transition); + color: var(--text-muted); +} + +.think-btn svg { + width: 18px; + height: 18px; +} + +.think-toggle:not(.unavailable):hover .think-btn { + border-color: var(--accent-purple); + color: var(--accent-purple); + background: rgba(123, 47, 247, 0.08); +} + +.think-toggle input:checked + .think-btn { + background: rgba(123, 47, 247, 0.15); + border-color: var(--accent-purple); + color: var(--accent-purple); + box-shadow: 0 0 10px rgba(123, 47, 247, 0.25); +} + +.think-toggle.unavailable .think-btn { + opacity: 0.3; + cursor: not-allowed; +} + +.think-toggle.unavailable .think-btn svg { + stroke: var(--text-muted); } /* ── 开关控件 ── */ diff --git a/index.html b/index.html index ab7e297..bd1cf2d 100644 --- a/index.html +++ b/index.html @@ -47,14 +47,15 @@
- - +
+ + + + +
+
@@ -94,6 +95,15 @@ +