Files
nl-blogs/client/src/style.css
2026-07-14 12:47:53 +08:00

309 lines
15 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
/* Theme tokens — light (:root) / dark (.dark) */
:root {
--art-bg: 250 248 244;
--art-surface: 255 255 255;
--art-border: rgba(0, 0, 0, 0.08);
--art-text: 23 23 23;
--art-muted: 107 107 107;
--art-accent: 212 179 131;
--art-error: 239 68 68;
--art-admin-bg: 10 10 10;
--art-admin-card: 18 18 20;
--art-admin-hover: 26 26 28;
--art-nav-bg: rgba(250, 248, 244, 0.82);
--art-card-bg: rgba(255, 255, 255, 0.55);
--art-card-border: rgba(0, 0, 0, 0.07);
--art-card-shine: rgba(212, 179, 131, 0.08);
--art-hover-border: rgba(212, 179, 131, 0.55);
--art-overlay: rgba(0, 0, 0, 0.45);
--art-shadow: 0 18px 40px -12px rgba(80, 55, 20, 0.14);
--art-scroll-thumb: rgba(0, 0, 0, 0.12);
--art-scroll-thumb-hover: rgba(0, 0, 0, 0.25);
--art-toast-bg: rgba(255, 255, 255, 0.95);
--art-toast-border: rgba(0, 0, 0, 0.08);
--art-tilt-bg: rgba(255, 255, 255, 0.65);
--art-tilt-border: rgba(0, 0, 0, 0.07);
--art-process-bg: 255 255 255;
--art-process-hover: 248 245 240;
--art-process-border: rgba(0, 0, 0, 0.08);
--art-step-number: rgba(0, 0, 0, 0.08);
--art-tech-item-bg: rgba(0, 0, 0, 0.03);
--art-tech-item-border: rgba(0, 0, 0, 0.08);
--art-tech-item-text: 82 82 91;
--art-danmaku-bg: rgba(255, 255, 255, 0.7);
--art-danmaku-border: rgba(0, 0, 0, 0.08);
--art-danmaku-text: 63 63 70;
--art-text-glow: 0 0 36px rgba(212, 179, 131, 0.35);
--art-drawer-bg: 255 255 255;
--art-input-autofill: 250 248 244;
--art-input-autofill-text: 23 23 23;
--art-checker: #ebe6de;
--art-noise-opacity: 0.04;
--art-noise-blend: multiply;
--art-aurora-1: rgba(212, 179, 131, 0.14);
--art-aurora-2: rgba(196, 150, 90, 0.1);
}
.dark {
--art-bg: 5 5 5;
--art-surface: 18 18 20;
--art-border: rgba(255, 255, 255, 0.08);
--art-text: 236 236 236;
--art-muted: 136 136 136;
--art-accent: 212 179 131;
--art-error: 239 68 68;
--art-admin-bg: 10 10 10;
--art-admin-card: 18 18 20;
--art-admin-hover: 26 26 28;
--art-nav-bg: rgba(5, 5, 5, 0.7);
--art-card-bg: rgba(255, 255, 255, 0.02);
--art-card-border: rgba(255, 255, 255, 0.03);
--art-card-shine: rgba(255, 255, 255, 0.02);
--art-hover-border: rgba(212, 179, 131, 0.3);
--art-overlay: rgba(0, 0, 0, 0.9);
--art-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
--art-scroll-thumb: rgba(255, 255, 255, 0.1);
--art-scroll-thumb-hover: rgba(255, 255, 255, 0.2);
--art-toast-bg: rgba(20, 20, 23, 0.9);
--art-toast-border: rgba(255, 255, 255, 0.1);
--art-tilt-bg: rgba(255, 255, 255, 0.03);
--art-tilt-border: rgba(255, 255, 255, 0.05);
--art-process-bg: 18 18 20;
--art-process-hover: 26 26 28;
--art-process-border: rgba(255, 255, 255, 0.1);
--art-step-number: rgba(255, 255, 255, 0.1);
--art-tech-item-bg: rgba(255, 255, 255, 0.03);
--art-tech-item-border: rgba(255, 255, 255, 0.08);
--art-tech-item-text: 161 161 170;
--art-danmaku-bg: rgba(255, 255, 255, 0.05);
--art-danmaku-border: rgba(255, 255, 255, 0.1);
--art-danmaku-text: 212 212 216;
--art-text-glow: 0 0 30px rgba(255, 255, 255, 0.1);
--art-drawer-bg: 26 26 26;
--art-input-autofill: 5 5 5;
--art-input-autofill-text: 236 236 236;
--art-checker: #1a1a1a;
--art-noise-opacity: 0.3;
--art-noise-blend: overlay;
--art-aurora-1: transparent;
--art-aurora-2: transparent;
}
/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--art-scroll-thumb); border-radius: 3px; transition: all 0.3s ease; }
::-webkit-scrollbar-thumb:hover { background: rgb(var(--art-accent)); box-shadow: 0 0 10px rgba(212, 179, 131, 0.4); }
::-webkit-scrollbar-corner { background: transparent; }
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--art-scroll-thumb); }
.custom-scrollbar:hover::-webkit-scrollbar-thumb { background: var(--art-scroll-thumb-hover); }
/* Glass & Utils - Keep for Frontend */
.glass-nav { background: var(--art-nav-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--art-card-border); }
.art-card { background: var(--art-card-bg); border: 1px solid var(--art-card-border); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.art-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, transparent 0%, var(--art-card-shine) 100%); opacity: 0; transition: opacity 0.5s ease; }
.art-card:hover { transform: translateY(-5px); border-color: var(--art-hover-border); box-shadow: var(--art-shadow); }
.art-card:hover::before { opacity: 1; }
.text-glow { text-shadow: var(--art-text-glow); }
.link-underline { position: relative; }
.link-underline::after { content: ''; position: absolute; width: 0; height: 1px; bottom: -2px; left: 0; background-color: rgb(var(--art-accent)); transition: width 0.3s ease; }
.link-underline:hover::after { width: 100%; }
/* Modal & Toast */
.modal-overlay { background: var(--art-overlay); backdrop-filter: blur(10px); }
.toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 100; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.toast { background: var(--art-toast-bg); border: 1px solid var(--art-toast-border); backdrop-filter: blur(12px); padding: 1rem 1.5rem; border-radius: 0.5rem; color: rgb(var(--art-text)); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15); display: flex; align-items: center; gap: 0.75rem; transform: translateX(100%); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: auto; min-width: 300px; }
.toast.show { transform: translateX(0); }
.toast-success { border-left: 3px solid rgb(var(--art-accent)); }
.toast-error { border-left: 3px solid rgb(var(--art-error)); }
/* Form Error */
.input-error { border-bottom-color: rgb(var(--art-error)) !important; }
.error-msg { color: rgb(var(--art-error)); font-family: 'Inter', sans-serif; font-size: 0.75rem; margin-top: 0.4rem; display: block; animation: fadeIn 0.3s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
/* Admin UI System - New */
@layer components {
.admin-page-container {
@apply w-full h-full p-0;
}
.admin-card {
@apply bg-art-admin-card border border-white/5 rounded-lg shadow-sm transition-all duration-300;
}
.admin-card:hover {
@apply border-white/10;
}
.admin-input {
@apply w-full bg-art-admin-bg border border-white/10 rounded-md px-4 py-3 text-white placeholder-white/30 transition-all duration-200 font-sans text-sm;
}
.admin-input:focus {
@apply border-art-accent ring-1 ring-art-accent outline-none bg-art-surface;
}
.admin-btn-primary {
@apply bg-art-accent text-black font-medium px-5 py-2.5 rounded-md hover:opacity-90 active:scale-95 transition-all text-sm tracking-wide;
}
.admin-btn-secondary {
@apply bg-transparent text-white border border-white/10 px-5 py-2.5 rounded-md hover:bg-white/5 active:scale-95 transition-all text-sm;
}
.admin-btn-search {
@apply bg-art-accent text-black font-medium px-5 py-2.5 rounded-md hover:opacity-90 active:scale-95 transition-all text-sm tracking-wide;
}
.admin-btn-danger {
@apply bg-art-error/10 text-art-error border border-art-error/20 px-5 py-2.5 rounded-md hover:bg-art-error/20 active:scale-95 transition-all text-sm;
}
.admin-table {
@apply w-full border-collapse text-left;
}
.admin-table th {
@apply font-medium text-art-muted text-xs uppercase tracking-wider p-4 border-b border-white/5;
}
.admin-table td {
@apply p-4 border-b border-white/5 text-sm text-gray-300;
}
.admin-table tr:hover td {
@apply bg-white/[0.02];
}
}
/* Code Block - Keep for Frontend, Admin Editor uses its own (always dark) */
.mac-code-block { background: #1e1e1e; padding: 3rem 1.5rem 1.5rem 1.5rem; border-radius: 0.75rem; overflow-x: auto; margin-bottom: 0; border: 1px solid rgba(255,255,255,0.1); position: relative; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5); }
.mac-code-block::before { content: ''; position: absolute; top: 1rem; left: 1.5rem; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #ff5f56; box-shadow: 1.25rem 0 0 #ffbd2e, 2.5rem 0 0 #27c93f; }
.code-keyword { color: #c678dd; } .code-func { color: #61afef; } .code-string { color: #98c379; } .code-comment { color: #5c6370; font-style: italic; }
/* Highlight.js Override */
.hljs { background: transparent !important; padding: 0 !important; }
/* Layout Specifics */
.work-detail-page { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgb(var(--art-bg)); z-index: 100; overflow-y: auto; }
.gallery-image { width: 100%; margin-bottom: 4rem; filter: grayscale(20%); transition: filter 0.5s; }
.gallery-image:hover { filter: grayscale(0%); }
.menu-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.menu-closed { transform: translateY(-20px); opacity: 0; pointer-events: none; }
/* Tilt & Service Styles */
.tilt-card { position: relative; transform-style: preserve-3d; transform: perspective(1000px); transition: transform 0.1s ease; }
.tilt-inner { background: var(--art-tilt-bg); border: 1px solid var(--art-tilt-border); backdrop-filter: blur(10px); border-radius: 1rem; padding: 2rem; height: 100%; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px var(--art-tilt-border); }
.tilt-inner::before { content: ""; position: absolute; height: 100%; width: 100%; top: 0; left: 0; background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 179, 131, 0.15), transparent 40%); z-index: 0; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.tilt-card:hover .tilt-inner::before { opacity: 1; }
.process-accordion { display: flex; gap: 1rem; height: 400px; width: 100%; }
.process-step { position: relative; flex: 1; background: rgb(var(--art-process-bg)); border: 1px solid var(--art-process-border); border-radius: 1.5rem; overflow: hidden; transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); cursor: default; display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; }
.process-step:hover { flex: 3; background: rgb(var(--art-process-hover)); border-color: rgba(212, 179, 131, 0.4); }
.process-step::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%); z-index: 1; }
.step-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; transition: opacity 0.5s, transform 0.5s; z-index: 0; filter: grayscale(100%); }
.process-step:hover .step-bg { opacity: 0.6; transform: scale(1.05); filter: grayscale(0%); }
.step-content { position: relative; z-index: 10; transform: translateY(0); transition: transform 0.5s; }
.step-number { font-family: 'Playfair Display', serif; font-size: 4rem; color: var(--art-step-number); line-height: 1; margin-bottom: 1rem; transition: color 0.3s; }
.process-step:hover .step-number { color: rgb(var(--art-accent)); }
.step-desc { max-height: 0; opacity: 0; overflow: hidden; transition: all 0.5s ease; color: rgba(255,255,255,0.75); font-size: 0.9rem; line-height: 1.6; }
.process-step:hover .step-desc { max-height: 100px; opacity: 1; margin-top: 1rem; }
@media (max-width: 768px) { .process-accordion { flex-direction: column; height: auto; } .process-step { height: 120px; } .process-step:hover { flex: none; height: 200px; } }
/* Tech Stack Grid */
.tech-category-title { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; letter-spacing: 0.1em; color: rgb(var(--art-accent)); text-transform: uppercase; margin-bottom: 0.75rem; padding-bottom: 0.25rem; border-bottom: 1px solid var(--art-border); }
.tech-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.tech-item { background: var(--art-tech-item-bg); border: 1px solid var(--art-tech-item-border); padding: 0.35rem 0.75rem; font-family: 'Inter', sans-serif; font-size: 0.8rem; color: rgb(var(--art-tech-item-text)); transition: all 0.2s; cursor: default; }
.tech-item:hover { border-color: rgb(var(--art-accent)); color: rgb(var(--art-text)); background: rgba(212, 179, 131, 0.1); }
/* Danmaku Styles */
.danmaku-item { background: var(--art-danmaku-bg); backdrop-filter: blur(8px); border: 1px solid var(--art-danmaku-border); padding: 0.75rem 1.25rem; border-radius: 9999px; display: inline-flex; align-items: center; gap: 0.75rem; white-space: nowrap; color: rgb(var(--art-danmaku-text)); font-size: 0.875rem; transition: all 0.3s; }
.danmaku-item:hover { background: rgba(212, 179, 131, 0.1); border-color: rgb(var(--art-accent)); transform: scale(1.05); color: rgb(var(--art-text)); z-index: 10; }
.danmaku-row { display: flex; gap: 2rem; width: max-content; }
.partner-logo { filter: grayscale(100%) opacity(0.5); transition: all 0.4s ease; }
.partner-logo:hover { filter: grayscale(0%) opacity(1); transform: scale(1.1); }
/* Animations */
.animate-reveal { opacity: 0; transform: translateY(30px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-reveal.visible { opacity: 1; transform: translateY(0); }
.animate-slide-down { opacity: 0; transform: translateY(-30px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-slide-down.visible { opacity: 1; transform: translateY(0); }
.animate-pulse-slow { animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: .5; transform: scale(1.05); }
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes marquee-reverse { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
.animate-marquee { animation: marquee 30s linear infinite; }
.animate-marquee-reverse { animation: marquee-reverse 35s linear infinite; }
/* Base Styles */
body {
font-family: 'Inter', 'Noto Sans SC', sans-serif;
background-color: rgb(var(--art-bg));
color: rgb(var(--art-text));
overflow-x: hidden;
}
/* Light paper atmosphere — fixed corner gold washes */
.light-atmosphere {
display: none;
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
background:
radial-gradient(ellipse 55% 45% at 8% 12%, var(--art-aurora-1), transparent 70%),
radial-gradient(ellipse 50% 40% at 92% 18%, var(--art-aurora-2), transparent 65%),
radial-gradient(ellipse 45% 35% at 70% 88%, rgba(212, 179, 131, 0.1), transparent 70%);
}
html:not(.dark) .light-atmosphere {
display: block;
}
.site-noise {
opacity: var(--art-noise-opacity);
mix-blend-mode: var(--art-noise-blend);
}
.ambient-bg-canvas {
display: block;
}
/* Selection */
::selection {
background-color: rgb(var(--art-accent));
color: black;
}
/* Scroll Smooth */
html {
scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
.art-card:hover {
transform: none;
}
.animate-marquee,
.animate-marquee-reverse,
.animate-pulse-slow {
animation: none !important;
}
}