Files
aiData/static/css/douyin.css

319 lines
6.0 KiB
CSS
Raw Normal View History

2026-01-21 07:51:52 +08:00
/* Douyin CSS */
:root {
--bg-color: #0f172a;
--card-bg: #1e293b;
--card-border: #334155;
--text-primary: #f1f5f9;
--text-secondary: #94a3b8;
--accent-color: #3b82f6;
--accent-hover: #2563eb;
--success-color: #10b981;
--scrollbar-thumb: #475569;
--scrollbar-track: #0f172a;
}
body {
margin: 0;
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background-color: var(--bg-color);
color: var(--text-primary);
height: 100vh;
overflow: hidden;
background-image: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 100%);
}
#app {
display: flex;
flex-direction: column;
height: 100vh;
padding: 16px;
gap: 16px;
box-sizing: border-box;
}
/* Header */
.dashboard-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 8px;
flex: 0 0 auto;
}
.dashboard-title {
font-size: 24px;
font-weight: 700;
background: linear-gradient(to right, #60a5fa, #a78bfa);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
cursor: pointer;
text-decoration: none;
}
.home-link {
display: flex;
align-items: center;
gap: 8px;
color: var(--text-secondary);
text-decoration: none;
font-size: 14px;
font-weight: 600;
transition: color 0.2s;
}
.home-link:hover {
color: var(--text-primary);
}
.btn-primary {
padding: 8px 16px;
border-radius: 8px;
border: none;
background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
color: white;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
font-size: 14px;
}
.btn-primary:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 4px 6px rgba(59, 130, 246, 0.4);
}
/* Douyin Specific Styles */
.douyin-container {
padding: 24px;
max-width: 95%;
margin: 0 auto;
width: 100%;
flex: 1;
overflow-y: auto;
scrollbar-width: thin;
}
.douyin-header {
text-align: center;
margin-bottom: 40px;
}
.douyin-title {
font-size: 2.5rem;
font-weight: bold;
color: #f1f5f9;
margin-bottom: 0.5rem;
display: flex;
justify-content: center;
align-items: center;
gap: 12px;
}
.douyin-subtitle {
color: #94a3b8;
}
.summary-btn {
background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
border: none;
}
.records-list {
display: flex;
flex-direction: column;
gap: 20px;
}
.record-card {
background-color: #fff;
border-radius: 4px;
overflow: hidden;
box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
}
.record-content {
display: flex;
border-left: 4px solid;
background-color: #fff;
}
.record-main {
padding: 24px;
flex: 1;
}
.record-header {
display: flex;
justify-content: space-between;
align-items: start;
margin-bottom: 16px;
}
.record-meta {
display: flex;
align-items: center;
margin-bottom: 8px;
}
.record-date {
color: #9ca3af;
font-size: 12px;
}
.record-title {
font-size: 1.25rem;
font-weight: bold;
color: #1f2937;
line-height: 1.4;
margin: 0;
}
.record-video-link {
color: #3b82f6;
font-size: 14px;
margin-top: 4px;
display: inline-block;
text-decoration: none;
}
.record-error {
margin-top: 12px;
color: #ef4444;
font-size: 13px;
background: #fee2e2;
padding: 8px;
border-radius: 4px;
word-break: break-all;
}
.transcript-box {
background-color: #f9fafb;
border-radius: 8px;
padding: 16px;
margin-top: 16px;
}
.transcript-title {
font-size: 14px;
font-weight: 600;
color: #4b5563;
margin-bottom: 8px;
text-transform: uppercase;
margin-top: 0;
}
.transcript-text {
color: #374151;
white-space: pre-wrap;
font-size: 14px;
line-height: 1.6;
margin: 0;
}
.original-text-toggle {
margin-top: 16px;
}
.original-text-btn {
cursor: pointer;
color: #9ca3af;
font-size: 12px;
}
.original-text-content {
color: #6b7280;
font-size: 12px;
background: #f3f4f6;
padding: 8px;
border-radius: 4px;
margin-top: 4px;
}
.cursor-blink {
display: inline-block;
width: 2px;
height: 1em;
background-color: #38bdf8;
vertical-align: text-bottom;
animation: blink 1s step-end infinite;
}
2026-01-21 08:41:47 +08:00
/* Markdown & LaTeX Rendering */
2026-01-21 07:51:52 +08:00
.markdown-body {
2026-01-21 08:41:47 +08:00
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
font-size: 15px;
line-height: 1.8;
2026-01-21 07:51:52 +08:00
word-wrap: break-word;
2026-01-21 08:41:47 +08:00
color: #cbd5e1;
}
.markdown-body h1, .markdown-body h2, .markdown-body h3,
.markdown-body h4, .markdown-body h5, .markdown-body h6 {
margin-top: 24px;
margin-bottom: 16px;
font-weight: 600;
line-height: 1.25;
color: var(--text-primary);
2026-01-21 07:51:52 +08:00
}
2026-01-21 08:41:47 +08:00
.markdown-body h1 { font-size: 1.8em; border-bottom: 1px solid var(--card-border); padding-bottom: 0.3em; }
.markdown-body h2 { font-size: 1.4em; border-bottom: 1px solid var(--card-border); padding-bottom: 0.3em; }
.markdown-body h3 { font-size: 1.2em; }
.markdown-body p { margin-top: 0; margin-bottom: 16px; }
2026-01-21 07:51:52 +08:00
.markdown-body ul, .markdown-body ol {
padding-left: 2em;
margin-top: 0;
margin-bottom: 16px;
}
2026-01-21 08:41:47 +08:00
2026-01-21 07:51:52 +08:00
.markdown-body li { margin: 0.25em 0; }
2026-01-21 08:41:47 +08:00
.markdown-body strong { font-weight: 600; color: #fff; }
.markdown-body blockquote {
padding: 0 1em;
color: #94a3b8;
border-left: 0.25em solid #3b82f6;
margin: 0 0 16px 0;
}
.markdown-body code {
padding: 0.2em 0.4em;
margin: 0;
font-size: 85%;
background-color: rgba(148, 163, 184, 0.1);
border-radius: 6px;
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
}
/* LaTeX Styles */
.katex-block {
margin: 1em 0;
overflow-x: auto;
overflow-y: hidden;
padding: 8px 0;
}
.katex {
font-size: 1.1em !important;
}
2026-01-21 07:51:52 +08:00
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
/* Element Plus Overrides */
.el-card {
background-color: #fff;
color: #303133;
transition: .3s;
}
.el-dialog__body {
padding: 10px 20px;
}