speechbridge / web /static /css /style.css
้ƒ‘ๆฐธ้›„
Claude Opus 4.8
feat: HuggingFace Spaces ้ƒจ็ฝฒๆ”ฏๆŒ
ae81790
Raw History Blame Contribute Delete
16.8 kB
/* โ”€โ”€ ๅŸบ็ก€ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
:root {
--primary: #4f46e5;
--primary-light: #818cf8;
--success: #10b981;
--danger: #ef4444;
--warning: #f59e0b;
--bg: #f8fafc;
--card: #ffffff;
--text: #1e293b;
--text-light: #64748b;
--border: #e2e8f0;
--radius: 12px;
--shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.6;
min-height: 100vh;
display: flex;
flex-direction: column;
overflow-x: hidden;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
/* โ”€โ”€ ๅฏผ่ˆช โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.navbar {
background: var(--card);
border-bottom: 1px solid var(--border);
padding: 16px 0;
position: sticky;
top: 0;
z-index: 100;
backdrop-filter: blur(10px);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.3rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.nav-links a {
color: var(--text-light);
text-decoration: none;
margin-left: 24px;
font-weight: 500;
transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
/* โ”€โ”€ ไธปๅ†…ๅฎน โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
main { flex: 1; padding: 30px 20px; }
/* โ”€โ”€ Hero โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.hero {
text-align: center;
padding: 40px 0 30px;
}
.hero h1 { font-size: 2.2rem; margin-bottom: 8px; }
.subtitle { color: var(--text-light); font-size: 1.1rem; }
/* โ”€โ”€ ๅก็‰‡ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.card {
background: var(--card);
border-radius: var(--radius);
padding: 30px;
box-shadow: var(--shadow);
margin-bottom: 24px;
}
.card h2 { margin-bottom: 20px; font-size: 1.4rem; }
/* โ”€โ”€ ่กจๅ• โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
select, input[type="text"], input[type="password"], input[type="email"], input[type="number"] {
width: 100%;
padding: 10px 14px;
border: 1px solid var(--border);
border-radius: 8px;
font-size: 1rem;
background: var(--card);
transition: border-color 0.2s;
-webkit-appearance: none;
appearance: none;
}
select:focus, input:focus { outline: none; border-color: var(--primary); }
.hint { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }
/* โ”€โ”€ ๅฝ•้ŸณๅŒบ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.record-section { text-align: center; margin-bottom: 24px; }
.mic-area { padding: 20px 0; }
.mic-btn {
width: 100px;
height: 100px;
border-radius: 50%;
border: 4px solid var(--primary);
background: var(--card);
cursor: pointer;
transition: all 0.3s;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 16px;
box-shadow: 0 4px 15px rgba(79, 70, 229, 0.15);
}
.mic-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(79, 70, 229, 0.25); }
.mic-btn.recording {
border-color: var(--danger);
background: #fee2e2;
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
50% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
}
.mic-icon { font-size: 2.5rem; }
.mic-status { font-size: 0.95rem; color: var(--text-light); margin-bottom: 8px; }
.mic-timer { font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--danger); }
/* ๆณขๅฝขๅŠจ็”ป */
.waveform {
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
height: 40px;
margin-top: 12px;
}
.wave-bar {
width: 6px;
height: 4px;
background: var(--primary);
border-radius: 3px;
transition: height 0.1s;
}
/* ้Ÿณ้ข‘้ข„่งˆ */
.audio-preview {
margin: 16px 0;
padding: 16px;
background: var(--bg);
border-radius: 8px;
}
.audio-preview audio { width: 100%; margin-bottom: 12px; }
.preview-actions { text-align: center; }
.divider {
text-align: center;
margin: 24px 0;
position: relative;
}
.divider::before {
content: '';
position: absolute;
left: 0; right: 0; top: 50%;
border-top: 1px solid var(--border);
}
.divider span {
background: var(--card);
padding: 0 16px;
color: var(--text-light);
font-size: 0.9rem;
position: relative;
}
/* โ”€โ”€ ๆ–‡ไปถๆ‹–ๆ‹ฝๅŒบ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.file-drop {
border: 2px dashed var(--border);
border-radius: var(--radius);
padding: 30px;
text-align: center;
cursor: pointer;
transition: all 0.3s;
position: relative;
}
.file-drop:hover, .file-drop.dragover {
border-color: var(--primary);
background: #f0f0ff;
}
.file-drop input[type="file"] {
position: absolute;
inset: 0;
opacity: 0;
cursor: pointer;
}
.file-drop-content .icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.file-selected {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
}
.file-selected .icon { font-size: 2rem; }
.checkbox-label {
display: flex !important;
align-items: center;
gap: 8px;
font-weight: 600;
cursor: pointer;
}
.checkbox-label input { width: 18px; height: 18px; }
/* โ”€โ”€ ๆŒ‰้’ฎ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.btn {
display: inline-block;
padding: 10px 24px;
border-radius: 8px;
font-size: 1rem;
font-weight: 600;
text-decoration: none;
border: none;
cursor: pointer;
transition: all 0.2s;
text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #4338ca; }
.btn-primary:disabled { background: #a5a5f5; cursor: not-allowed; }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #eef2ff; }
.btn-danger { background: #fee2e2; color: var(--danger); }
.btn-danger:hover { background: #fecaca; }
.btn-block { display: block; width: 100%; padding: 14px; font-size: 1.1rem; }
/* โ”€โ”€ ็‰นๆ€งๅก็‰‡ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.features {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
margin-top: 30px;
}
.feature-card {
background: var(--card);
border-radius: var(--radius);
padding: 24px;
text-align: center;
box-shadow: var(--shadow);
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-light); font-size: 0.9rem; }
/* โ”€โ”€ ็ป“ๆžœ้กต โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.breadcrumb {
display: flex;
gap: 20px;
margin-bottom: 20px;
}
.breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.status-card h2 { margin-bottom: 16px; }
.result-header { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.tag {
display: inline-block;
padding: 3px 10px;
border-radius: 20px;
font-size: 0.8rem;
font-weight: 600;
background: #eef2ff;
color: var(--primary);
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: middle;
}
/* โ”€โ”€ ๅฏนๆฏ”ๅŒบ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.compare-box {
display: grid;
grid-template-columns: 1fr auto 1fr;
gap: 16px;
align-items: start;
margin-bottom: 24px;
}
.compare-arrow {
font-size: 2rem;
color: var(--primary);
align-self: center;
padding-top: 20px;
}
.text-box {
padding: 16px;
border-radius: 8px;
font-size: 1.05rem;
line-height: 1.7;
min-height: 80px;
overflow-wrap: break-word;
word-break: break-word;
}
.text-box.original { background: #fef3c7; border: 1px solid #fde68a; }
.text-box.corrected { background: #d1fae5; border: 1px solid #6ee7b7; }
.compare-item .meta { font-size: 0.8rem; color: var(--text-light); margin-top: 6px; overflow-wrap: break-word; }
/* โ”€โ”€ TTS ๆ’ญๆ”พๆŒ‰้’ฎ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.tts-buttons { display: flex; gap: 8px; margin-top: 12px; }
.btn-tts {
background: #eef2ff;
color: var(--primary);
border: 1px solid var(--primary-light);
padding: 6px 14px;
font-size: 0.85rem;
border-radius: 20px;
cursor: pointer;
transition: all 0.2s;
}
.btn-tts:hover { background: var(--primary); color: #fff; }
.btn-tts.playing {
background: var(--primary);
color: #fff;
animation: pulse 1.5s infinite;
}
/* โ”€โ”€ ๆ•ฐๆฎๅŒบ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.section { margin-bottom: 24px; }
.section h3 { margin-bottom: 12px; }
.intent-text {
padding: 12px 16px;
background: #f0f0ff;
border-radius: 8px;
font-size: 1.05rem;
overflow-wrap: break-word;
word-break: break-word;
}
.data-table {
width: 100%;
border-collapse: collapse;
}
.data-table th, .data-table td {
padding: 10px 14px;
text-align: left;
border-bottom: 1px solid var(--border);
}
.data-table th { background: var(--bg); font-weight: 600; font-size: 0.85rem; color: var(--text-light); }
.data-table tr:hover { background: #f8fafc; }
.text-red { color: var(--danger); }
.text-green { color: var(--success); }
.text-truncate {
max-width: 200px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.action-list { padding-left: 20px; }
.action-list li { padding: 6px 0; }
.actions-bar { display: flex; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
/* โ”€โ”€ ๅކๅฒ่กจ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.history-table { font-size: 0.9rem; }
.clickable { cursor: pointer; }
.clickable:hover { background: #f0f0ff !important; }
.status { font-size: 1.2rem; }
.empty-state { text-align: center; padding: 40px; color: var(--text-light); }
.empty-state p { font-size: 1.2rem; margin-bottom: 16px; }
/* โ”€โ”€ Footer โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.footer {
text-align: center;
padding: 20px;
color: var(--text-light);
font-size: 0.85rem;
border-top: 1px solid var(--border);
margin-top: 40px;
}
/* โ”€โ”€ ่ฎค่ฏ้กต โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.auth-page { display: flex; justify-content: center; padding: 40px 0; }
.auth-card { max-width: 420px; width: 100%; }
.auth-card h2 { text-align: center; margin-bottom: 24px; }
.auth-link { text-align: center; margin-top: 16px; color: var(--text-light); }
.auth-link a { color: var(--primary); font-weight: 600; }
/* ๅฏผ่ˆช็”จๆˆท */
.nav-user { color: var(--text-light); font-size: 0.9rem; margin-left: 24px; }
.lang-switch {
display: inline-block;
padding: 2px 10px;
border: 1px solid var(--border);
border-radius: 6px;
font-size: 0.8rem;
font-weight: 700;
color: var(--primary);
margin-left: 16px;
text-decoration: none;
transition: all 0.2s;
}
.lang-switch:hover { background: var(--primary); color: #fff; }
/* ๆ็คบๆก† */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.95rem; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
/* โ”€โ”€ ๅŠ ่ฝฝๅŠจ็”ป โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
.loading-bar {
width: 100%;
height: 4px;
background: var(--border);
border-radius: 2px;
margin: 16px 0;
overflow: hidden;
}
.loading-bar-inner {
width: 30%;
height: 100%;
background: var(--primary);
border-radius: 2px;
animation: loading-slide 1.5s ease-in-out infinite;
}
@keyframes loading-slide {
0% { transform: translateX(-100%); }
100% { transform: translateX(400%); }
}
/* โ”€โ”€ ๅ“ๅบ”ๅผ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
@media (max-width: 768px) {
.container { padding: 0 16px; max-width: 100%; overflow-x: hidden; }
main { padding: 16px; }
/* ๅฏผ่ˆช๏ผšๆ”นไธบ็บตๅ‘ๆŽ’ๅˆ— */
.navbar { padding: 12px 0; }
.navbar .container { flex-wrap: wrap; gap: 8px; }
.nav-links {
display: flex;
flex-wrap: wrap;
gap: 4px 12px;
width: 100%;
justify-content: center;
}
.nav-links a { margin-left: 0; font-size: 0.85rem; }
.nav-user { margin-left: 0; font-size: 0.85rem; }
.lang-switch { margin-left: 0; }
/* Hero */
.hero { padding: 24px 0 16px; }
.hero h1 { font-size: 1.6rem; }
.subtitle { font-size: 0.95rem; }
/* ๅก็‰‡ */
.card { padding: 20px 16px; max-width: 100%; box-sizing: border-box; }
.card h2 { font-size: 1.2rem; }
/* ่กจๅ• */
.form-row { grid-template-columns: 1fr; gap: 12px; }
.form-group { margin-bottom: 16px; }
/* ๅฝ•้Ÿณ */
.mic-btn { width: 80px; height: 80px; }
.mic-icon { font-size: 2rem; }
.mic-timer { font-size: 1.4rem; }
/* ๆ–‡ไปถๆ‹–ๆ‹ฝ */
.file-drop { padding: 20px 16px; }
/* ็‰นๆ€งๅก็‰‡ */
.features { grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-card { padding: 16px; }
.feature-card h3 { font-size: 0.95rem; }
.feature-card p { font-size: 0.8rem; }
/* ็ป“ๆžœ้กต */
.result-header { gap: 6px; margin-bottom: 16px; }
.result-header .tag { font-size: 0.7rem; max-width: 120px; }
/* ๅฏนๆฏ”ๅŒบ */
.compare-box { grid-template-columns: 1fr; gap: 12px; }
.compare-arrow { transform: rotate(90deg); padding: 0; font-size: 1.5rem; }
.compare-item { width: 100%; overflow: hidden; }
.text-box { font-size: 0.95rem; padding: 12px; }
.compare-item h3 { font-size: 0.95rem; }
.compare-item .meta { font-size: 0.75rem; word-break: break-all; }
/* ๆ•ฐๆฎๅŒบ */
.section h3 { font-size: 1rem; }
.intent-text { font-size: 0.95rem; padding: 10px 12px; }
/* ๆ•ฐๆฎ่กจๆ ผ๏ผšๆจชๅ‘ๆปšๅŠจ */
.data-table-wrap {
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
margin: 0 -16px;
padding: 0 16px;
scrollbar-width: thin;
}
.data-table { width: 100%; min-width: 0; border-collapse: collapse; }
.data-table th, .data-table td { padding: 6px 8px; font-size: 0.8rem; word-break: break-word; }
/* ๅކๅฒ่กจๆ ผ๏ผš้š่—ๆฌก่ฆๅˆ—๏ผŒๅŽ‹็ผฉๅฎฝๅบฆ */
.history-table { font-size: 0.75rem; }
.history-table th:nth-child(1),
.history-table td:nth-child(1) { display: none; }
.history-table th:nth-child(5),
.history-table td:nth-child(5),
.history-table th:nth-child(6),
.history-table td:nth-child(6) { display: none; }
.history-table td { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ่ฎค่ฏ้กต */
.auth-page { padding: 20px 0; }
.auth-card { padding: 20px 16px; }
/* ๆŒ‰้’ฎ */
.btn-block { padding: 12px; font-size: 1rem; }
/* ้ขๅŒ…ๅฑ‘ */
.breadcrumb { gap: 12px; font-size: 0.9rem; }
/* ๆ“ไฝœๆ  */
.actions-bar { flex-wrap: wrap; gap: 8px; }
.actions-bar .btn { flex: 1; min-width: 100px; text-align: center; font-size: 0.9rem; padding: 10px 12px; }
}
/* ๅฐๅฑๆ‰‹ๆœบ */
@media (max-width: 400px) {
.features { grid-template-columns: 1fr; }
.hero h1 { font-size: 1.4rem; }
.mic-btn { width: 70px; height: 70px; }
.mic-icon { font-size: 1.8rem; }
}