mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
1133 lines
18 KiB
CSS
1133 lines
18 KiB
CSS
/* ===== Navigation ===== */
|
||
.nav {
|
||
position: sticky;
|
||
top: 0;
|
||
z-index: 1000;
|
||
background: var(--bg-surface);
|
||
border-bottom: 1px solid var(--border);
|
||
backdrop-filter: blur(12px);
|
||
transition: background var(--transition-normal);
|
||
}
|
||
|
||
.nav-container {
|
||
max-width: var(--max-wide);
|
||
margin: 0 auto;
|
||
padding: 0 24px;
|
||
height: 64px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
|
||
.nav-logo {
|
||
font-size: 20px;
|
||
font-weight: 700;
|
||
color: var(--text-primary);
|
||
text-decoration: none;
|
||
}
|
||
|
||
.nav-logo:hover {
|
||
color: var(--accent);
|
||
}
|
||
|
||
.nav-menu {
|
||
display: flex;
|
||
gap: 32px;
|
||
list-style: none;
|
||
}
|
||
|
||
.nav-link {
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
color: var(--text-muted);
|
||
text-decoration: none;
|
||
padding: 4px 0;
|
||
position: relative;
|
||
transition: color var(--transition-fast);
|
||
}
|
||
|
||
.nav-link:hover {
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.nav-link.active {
|
||
color: var(--accent);
|
||
}
|
||
|
||
.nav-link.active::after {
|
||
content: '';
|
||
position: absolute;
|
||
bottom: -2px;
|
||
left: 0;
|
||
right: 0;
|
||
height: 2px;
|
||
background: var(--accent);
|
||
border-radius: 1px;
|
||
}
|
||
|
||
.nav-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 16px;
|
||
}
|
||
|
||
.theme-toggle {
|
||
background: none;
|
||
border: none;
|
||
color: var(--text-muted);
|
||
cursor: pointer;
|
||
padding: 8px;
|
||
border-radius: var(--radius-md);
|
||
transition: color var(--transition-fast), background var(--transition-fast);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.theme-toggle:hover {
|
||
color: var(--text-primary);
|
||
background: var(--bg-elevated);
|
||
}
|
||
|
||
.theme-toggle:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
}
|
||
|
||
.mobile-menu-btn {
|
||
display: none;
|
||
background: none;
|
||
border: none;
|
||
color: var(--text-primary);
|
||
cursor: pointer;
|
||
padding: 8px;
|
||
border-radius: var(--radius-md);
|
||
}
|
||
|
||
.mobile-menu-btn:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
}
|
||
|
||
/* Mobile menu */
|
||
.mobile-menu {
|
||
display: none;
|
||
position: fixed;
|
||
top: 64px;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
background: var(--bg-surface);
|
||
z-index: 999;
|
||
padding: 32px 24px;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
.mobile-menu.open {
|
||
display: block;
|
||
animation: slideIn var(--transition-normal) ease;
|
||
}
|
||
|
||
@keyframes slideIn {
|
||
from {
|
||
opacity: 0;
|
||
transform: translateX(20px);
|
||
}
|
||
to {
|
||
opacity: 1;
|
||
transform: translateX(0);
|
||
}
|
||
}
|
||
|
||
.mobile-menu-list {
|
||
list-style: none;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
|
||
.mobile-menu-link {
|
||
display: block;
|
||
font-size: 20px;
|
||
font-weight: 500;
|
||
color: var(--text-secondary);
|
||
padding: 12px 0;
|
||
text-decoration: none;
|
||
transition: color var(--transition-fast);
|
||
}
|
||
|
||
.mobile-menu-link:hover,
|
||
.mobile-menu-link.active {
|
||
color: var(--accent);
|
||
}
|
||
|
||
@media (max-width: 1024px) {
|
||
.nav-menu {
|
||
display: none;
|
||
}
|
||
|
||
.mobile-menu-btn {
|
||
display: flex;
|
||
}
|
||
}
|
||
|
||
/* ===== Buttons ===== */
|
||
.btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 8px;
|
||
padding: 12px 24px;
|
||
font-size: 16px;
|
||
font-weight: 500;
|
||
font-family: inherit;
|
||
border-radius: var(--radius-md);
|
||
cursor: pointer;
|
||
text-decoration: none;
|
||
transition: all var(--transition-fast);
|
||
border: none;
|
||
}
|
||
|
||
.btn:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
}
|
||
|
||
.btn-primary {
|
||
background: var(--accent);
|
||
color: #ffffff;
|
||
}
|
||
|
||
.btn-primary:hover {
|
||
background: var(--accent-hover);
|
||
color: #ffffff;
|
||
}
|
||
|
||
.btn-primary:active {
|
||
background: var(--accent-active);
|
||
}
|
||
|
||
.btn-secondary {
|
||
background: transparent;
|
||
color: var(--accent);
|
||
border: 1px solid var(--border);
|
||
}
|
||
|
||
.btn-secondary:hover {
|
||
border-color: var(--accent);
|
||
background: var(--accent);
|
||
color: #ffffff;
|
||
}
|
||
|
||
.btn-ghost {
|
||
background: transparent;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.btn-ghost:hover {
|
||
color: var(--text-primary);
|
||
background: var(--bg-surface);
|
||
}
|
||
|
||
.btn-sm {
|
||
padding: 8px 12px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.btn-lg {
|
||
padding: 16px 32px;
|
||
font-size: 18px;
|
||
}
|
||
|
||
.btn:disabled {
|
||
opacity: 0.5;
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
/* ===== Badges ===== */
|
||
.badge {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
padding: 4px 10px;
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
border-radius: var(--radius-sm);
|
||
}
|
||
|
||
.badge-accent {
|
||
background: var(--accent);
|
||
color: #ffffff;
|
||
}
|
||
|
||
.badge-outline {
|
||
background: transparent;
|
||
color: var(--accent);
|
||
border: 1px solid var(--accent);
|
||
}
|
||
|
||
.badge-muted {
|
||
background: var(--bg-surface);
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
/* ===== Tags ===== */
|
||
.tag {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
padding: 4px 10px;
|
||
font-size: 12px;
|
||
color: var(--text-muted);
|
||
background: var(--bg-surface);
|
||
border-radius: var(--radius-sm);
|
||
border: 1px solid var(--border);
|
||
}
|
||
|
||
.tag-accent {
|
||
background: var(--accent);
|
||
color: #ffffff;
|
||
border-color: var(--accent);
|
||
}
|
||
|
||
/* ===== Cards ===== */
|
||
.card {
|
||
background: var(--bg-surface);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-lg);
|
||
padding: 24px;
|
||
transition: all var(--transition-normal);
|
||
}
|
||
|
||
.card:hover {
|
||
border-color: var(--accent);
|
||
box-shadow: 0 4px 12px var(--shadow);
|
||
transform: translateY(-2px);
|
||
}
|
||
|
||
.card-elevated {
|
||
background: var(--bg-elevated);
|
||
border: none;
|
||
box-shadow: 0 2px 8px var(--shadow);
|
||
}
|
||
|
||
.card-featured {
|
||
border-top: 4px solid var(--accent);
|
||
}
|
||
|
||
/* ===== Section Heading ===== */
|
||
.section-heading {
|
||
margin-bottom: 48px;
|
||
}
|
||
|
||
.section-heading h2 {
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.section-heading p {
|
||
font-size: 18px;
|
||
}
|
||
|
||
/* ===== Social Links ===== */
|
||
.social-links {
|
||
display: flex;
|
||
gap: 16px;
|
||
}
|
||
|
||
.social-link {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
font-size: 14px;
|
||
color: var(--text-muted);
|
||
text-decoration: none;
|
||
transition: color var(--transition-fast);
|
||
}
|
||
|
||
.social-link:hover {
|
||
color: var(--accent);
|
||
}
|
||
|
||
.social-link:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
border-radius: 2px;
|
||
}
|
||
|
||
.social-link svg {
|
||
width: 20px;
|
||
height: 20px;
|
||
}
|
||
/* ===== Section Background Gradient ===== */
|
||
.section {
|
||
position: relative;
|
||
}
|
||
|
||
.section::before {
|
||
content: '';
|
||
position: absolute;
|
||
inset: 0;
|
||
background: linear-gradient(
|
||
to bottom,
|
||
transparent 0%,
|
||
var(--bg-primary) 10%,
|
||
var(--bg-primary) 90%,
|
||
transparent 100%
|
||
);
|
||
pointer-events: none;
|
||
z-index: -1;
|
||
}
|
||
|
||
/* ===== Hero ===== */
|
||
.hero {
|
||
display: grid;
|
||
grid-template-columns: 1fr 1fr;
|
||
gap: 64px;
|
||
align-items: center;
|
||
min-height: calc(100vh - 64px);
|
||
padding: 80px 0;
|
||
}
|
||
|
||
.hero-content {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 24px;
|
||
}
|
||
|
||
.hero-name {
|
||
font-size: clamp(32px, 5vw, 64px);
|
||
font-weight: 700;
|
||
color: var(--text-primary);
|
||
line-height: 1.1;
|
||
letter-spacing: -0.02em;
|
||
}
|
||
|
||
.hero-title {
|
||
font-size: clamp(18px, 2.5vw, 24px);
|
||
font-weight: 400;
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
.hero-tagline {
|
||
font-size: 18px;
|
||
color: var(--text-secondary);
|
||
white-space: pre-line;
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.hero-cta {
|
||
display: flex;
|
||
gap: 16px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.hero-visual {
|
||
position: relative;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.hero-photo {
|
||
width: 80%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
object-position: center top;
|
||
border-radius: 16px;
|
||
display: block;
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.hero {
|
||
position: relative;
|
||
min-height: 500px;
|
||
overflow: hidden;
|
||
}
|
||
.hero {
|
||
max-width: 100%;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
.hero-cta {
|
||
flex-direction: column;
|
||
}
|
||
|
||
.hero-cta .btn {
|
||
width: 100%;
|
||
}
|
||
|
||
.hero-visual {
|
||
position: absolute;
|
||
inset: 0;
|
||
z-index: 0;
|
||
}
|
||
|
||
.hero-content {
|
||
position: absolute;
|
||
z-index: 1;
|
||
background: rgba(0, 0, 0, 0.55);
|
||
padding: 32px 24px;
|
||
backdrop-filter: blur(4px);
|
||
width: 100%;
|
||
}
|
||
|
||
}
|
||
|
||
@media (min-width: 769px) and (max-width: 1200px) {
|
||
.hero-content {
|
||
padding-left: 16px;
|
||
padding-right: 16px;
|
||
}
|
||
}
|
||
|
||
/* ===== Expertise Grid ===== */
|
||
.expertise-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, 1fr);
|
||
gap: 24px;
|
||
}
|
||
|
||
.expertise-card {
|
||
background: var(--bg-surface);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-lg);
|
||
padding: 24px;
|
||
transition: all var(--transition-normal);
|
||
}
|
||
|
||
.expertise-card:hover {
|
||
border-color: var(--accent);
|
||
box-shadow: 0 4px 12px var(--shadow);
|
||
}
|
||
|
||
.expertise-card h3 {
|
||
font-size: 18px;
|
||
margin-bottom: 16px;
|
||
color: var(--accent);
|
||
}
|
||
|
||
.expertise-skills {
|
||
list-style: none;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
|
||
.expertise-skill {
|
||
font-size: 14px;
|
||
color: var(--text-secondary);
|
||
padding: 4px 0;
|
||
}
|
||
|
||
.expertise-skill::before {
|
||
content: '›';
|
||
color: var(--accent);
|
||
margin-right: 8px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
@media (max-width: 1024px) {
|
||
.expertise-grid {
|
||
grid-template-columns: repeat(2, 1fr);
|
||
}
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.expertise-grid {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
}
|
||
|
||
/* ===== Experience Timeline ===== */
|
||
.timeline {
|
||
position: relative;
|
||
padding-left: 32px;
|
||
}
|
||
|
||
.timeline::before {
|
||
content: '';
|
||
position: absolute;
|
||
left: 4px;
|
||
top: 0;
|
||
bottom: 0;
|
||
width: 2px;
|
||
background: var(--border);
|
||
}
|
||
|
||
.timeline-entry {
|
||
position: relative;
|
||
margin-bottom: 48px;
|
||
padding-bottom: 48px;
|
||
border-bottom: 1px solid var(--border);
|
||
}
|
||
|
||
.timeline-entry:last-child {
|
||
margin-bottom: 0;
|
||
padding-bottom: 0;
|
||
border-bottom: none;
|
||
}
|
||
|
||
.timeline-marker {
|
||
position: absolute;
|
||
left: -32px;
|
||
top: 4px;
|
||
width: 12px;
|
||
height: 12px;
|
||
border-radius: 50%;
|
||
border: 2px solid var(--accent);
|
||
background: var(--bg-primary);
|
||
}
|
||
|
||
.timeline-entry:last-child .timeline-marker {
|
||
background: var(--accent);
|
||
width: 14px;
|
||
height: 14px;
|
||
left: -33px;
|
||
top: 3px;
|
||
}
|
||
|
||
.timeline-header {
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.timeline-title {
|
||
font-size: 20px;
|
||
font-weight: 600;
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.timeline-company {
|
||
font-size: 16px;
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
.timeline-duration {
|
||
font-size: 14px;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.timeline-responsibilities {
|
||
list-style: none;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
margin-bottom: 24px;
|
||
}
|
||
|
||
.timeline-responsibilities li {
|
||
font-size: 14px;
|
||
color: var(--text-secondary);
|
||
padding-left: 16px;
|
||
position: relative;
|
||
}
|
||
|
||
.timeline-responsibilities li::before {
|
||
content: '•';
|
||
position: absolute;
|
||
left: 0;
|
||
color: var(--accent);
|
||
}
|
||
|
||
.achievement {
|
||
background: var(--bg-surface);
|
||
border-left: 4px solid var(--accent);
|
||
border-radius: 0 var(--radius-md) var(--radius-md) 0;
|
||
padding: 20px 24px;
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.achievement-title {
|
||
font-size: 18px;
|
||
font-weight: 600;
|
||
color: var(--text-primary);
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.achievement-context {
|
||
font-size: 14px;
|
||
color: var(--text-secondary);
|
||
margin-bottom: 12px;
|
||
}
|
||
|
||
.achievement-techs {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 8px;
|
||
margin-top: 12px;
|
||
}
|
||
|
||
.achievement-metric {
|
||
display: inline-block;
|
||
background: var(--accent);
|
||
color: #ffffff;
|
||
padding: 4px 12px;
|
||
border-radius: var(--radius-sm);
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
margin: 4px 4px 4px 0;
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.timeline {
|
||
padding-left: 0;
|
||
}
|
||
|
||
.timeline::before {
|
||
display: none;
|
||
}
|
||
|
||
.timeline-marker {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
/* ===== Project Cards Grid ===== */
|
||
.projects-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, 1fr);
|
||
gap: 24px;
|
||
}
|
||
|
||
.project-card {
|
||
background: var(--bg-surface);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-lg);
|
||
padding: 24px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
transition: all var(--transition-normal);
|
||
text-decoration: none;
|
||
color: inherit;
|
||
}
|
||
|
||
.project-card:hover {
|
||
border-color: var(--accent);
|
||
box-shadow: 0 4px 12px var(--shadow);
|
||
transform: translateY(-2px);
|
||
color: inherit;
|
||
}
|
||
|
||
.project-card-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: flex-start;
|
||
}
|
||
|
||
.project-card h3 {
|
||
font-size: 20px;
|
||
color: var(--text-primary);
|
||
margin: 0;
|
||
}
|
||
|
||
.project-card-summary {
|
||
font-size: 14px;
|
||
color: var(--text-secondary);
|
||
line-height: 1.6;
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 2;
|
||
-webkit-box-orient: vertical;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.project-card-techs {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 8px;
|
||
}
|
||
|
||
.project-card-metrics {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 8px;
|
||
}
|
||
|
||
.project-card-cta {
|
||
margin-top: auto;
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
color: var(--accent);
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.projects-grid {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
}
|
||
|
||
/* ===== Philosophy ===== */
|
||
.philosophy-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, 1fr);
|
||
gap: 24px;
|
||
margin-top: 32px;
|
||
}
|
||
|
||
.philosophy-card {
|
||
background: var(--bg-surface);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-lg);
|
||
padding: 24px;
|
||
transition: all var(--transition-normal);
|
||
}
|
||
|
||
.philosophy-card:hover {
|
||
border-color: var(--accent);
|
||
}
|
||
|
||
.philosophy-card h3 {
|
||
font-size: 18px;
|
||
color: var(--accent);
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.philosophy-card p {
|
||
font-size: 14px;
|
||
}
|
||
|
||
.philosophy-keywords {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
margin-top: 12px;
|
||
}
|
||
|
||
.interests-list {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 8px;
|
||
margin-top: 24px;
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.philosophy-grid {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
}
|
||
|
||
/* ===== Contact ===== */
|
||
.contact-links {
|
||
display: flex;
|
||
gap: 32px;
|
||
margin-top: 32px;
|
||
}
|
||
|
||
.contact-link {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
font-size: 16px;
|
||
color: var(--text-secondary);
|
||
text-decoration: none;
|
||
padding: 16px 24px;
|
||
background: var(--bg-surface);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-lg);
|
||
transition: all var(--transition-fast);
|
||
}
|
||
|
||
.contact-link:hover {
|
||
border-color: var(--accent);
|
||
color: var(--accent);
|
||
transform: translateY(-2px);
|
||
}
|
||
|
||
.contact-link svg {
|
||
width: 24px;
|
||
height: 24px;
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.contact-links {
|
||
flex-direction: column;
|
||
}
|
||
}
|
||
|
||
/* ===== Footer ===== */
|
||
.footer {
|
||
border-top: 1px solid var(--border);
|
||
padding: 32px 0;
|
||
margin-top: auto;
|
||
}
|
||
|
||
.footer-container {
|
||
max-width: var(--max-wide);
|
||
margin: 0 auto;
|
||
padding: 0 24px;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
}
|
||
|
||
.footer-text {
|
||
font-size: 14px;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.footer-links {
|
||
display: flex;
|
||
gap: 24px;
|
||
list-style: none;
|
||
}
|
||
|
||
.footer-link {
|
||
font-size: 14px;
|
||
color: var(--text-muted);
|
||
text-decoration: none;
|
||
transition: color var(--transition-fast);
|
||
}
|
||
|
||
.footer-link:hover {
|
||
color: var(--accent);
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.footer-container {
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
text-align: center;
|
||
}
|
||
|
||
.footer-links {
|
||
justify-content: center;
|
||
}
|
||
}
|
||
|
||
/* ===== Page Header ===== */
|
||
.page-header {
|
||
padding: 80px 0 48px;
|
||
text-align: center;
|
||
}
|
||
|
||
.page-header h1 {
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
/* ===== Breadcrumb ===== */
|
||
.breadcrumb {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
font-size: 14px;
|
||
color: var(--text-muted);
|
||
margin-bottom: 24px;
|
||
}
|
||
|
||
.breadcrumb a {
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.breadcrumb a:hover {
|
||
color: var(--accent);
|
||
}
|
||
|
||
.breadcrumb-separator {
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
/* ===== Form ===== */
|
||
.form-group {
|
||
margin-bottom: 24px;
|
||
}
|
||
|
||
.form-label {
|
||
display: block;
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
color: var(--text-primary);
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.form-input,
|
||
.form-textarea {
|
||
width: 100%;
|
||
padding: 12px 16px;
|
||
font-size: 16px;
|
||
font-family: inherit;
|
||
background: var(--bg-surface);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-md);
|
||
color: var(--text-primary);
|
||
transition: border-color var(--transition-fast);
|
||
}
|
||
|
||
.form-input:focus,
|
||
.form-textarea:focus {
|
||
outline: none;
|
||
border-color: var(--accent);
|
||
box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
|
||
}
|
||
|
||
.form-input::placeholder,
|
||
.form-textarea::placeholder {
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.form-textarea {
|
||
min-height: 120px;
|
||
resize: vertical;
|
||
}
|
||
|
||
/* ===== Filter bar ===== */
|
||
.filter-bar {
|
||
display: flex;
|
||
gap: 8px;
|
||
flex-wrap: wrap;
|
||
margin-bottom: 32px;
|
||
justify-content: center;
|
||
}
|
||
|
||
.filter-pill {
|
||
padding: 8px 16px;
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
background: transparent;
|
||
border: 1px solid var(--border);
|
||
border-radius: 100px;
|
||
color: var(--text-muted);
|
||
cursor: pointer;
|
||
transition: all var(--transition-fast);
|
||
font-family: inherit;
|
||
}
|
||
|
||
.filter-pill:hover {
|
||
border-color: var(--accent);
|
||
color: var(--accent);
|
||
}
|
||
|
||
.filter-pill.active {
|
||
background: var(--accent);
|
||
border-color: var(--accent);
|
||
color: #ffffff;
|
||
}
|
||
|
||
/* ===== Article Card ===== */
|
||
.article-card {
|
||
background: var(--bg-surface);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-lg);
|
||
padding: 24px;
|
||
margin-bottom: 16px;
|
||
transition: all var(--transition-normal);
|
||
text-decoration: none;
|
||
color: inherit;
|
||
}
|
||
|
||
.article-card:hover {
|
||
border-color: var(--accent);
|
||
box-shadow: 0 4px 12px var(--shadow);
|
||
transform: translateY(-2px);
|
||
}
|
||
|
||
.article-card h3 {
|
||
font-size: 20px;
|
||
color: var(--text-primary);
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.article-meta {
|
||
display: flex;
|
||
gap: 16px;
|
||
font-size: 14px;
|
||
color: var(--text-muted);
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
/* ===== Engineering Tabs ===== */
|
||
.engineering-tabs {
|
||
display: flex;
|
||
gap: 0;
|
||
border-bottom: 1px solid var(--border);
|
||
margin-bottom: 32px;
|
||
}
|
||
|
||
.engineering-tab {
|
||
padding: 12px 24px;
|
||
font-size: 16px;
|
||
font-weight: 500;
|
||
background: none;
|
||
border: none;
|
||
border-bottom: 2px solid transparent;
|
||
color: var(--text-muted);
|
||
cursor: pointer;
|
||
transition: all var(--transition-fast);
|
||
font-family: inherit;
|
||
}
|
||
|
||
.engineering-tab:hover {
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.engineering-tab.active {
|
||
color: var(--accent);
|
||
border-bottom-color: var(--accent);
|
||
}
|
||
|
||
/* ===== Content prose ===== */
|
||
.prose {
|
||
max-width: var(--max-content);
|
||
}
|
||
|
||
.prose h2 {
|
||
margin-top: 48px;
|
||
margin-bottom: 16px;
|
||
font-size: 28px;
|
||
}
|
||
|
||
.prose h3 {
|
||
margin-top: 32px;
|
||
margin-bottom: 12px;
|
||
font-size: 22px;
|
||
}
|
||
|
||
.prose p {
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.prose ul,
|
||
.prose ol {
|
||
margin-bottom: 16px;
|
||
padding-left: 24px;
|
||
}
|
||
|
||
.prose li {
|
||
margin-bottom: 8px;
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
.prose blockquote {
|
||
border-left: 4px solid var(--accent);
|
||
padding-left: 16px;
|
||
margin: 16px 0;
|
||
color: var(--text-secondary);
|
||
font-style: italic;
|
||
}
|
||
|
||
/* ===== Back to top ===== */
|
||
.back-to-top {
|
||
position: fixed;
|
||
bottom: 24px;
|
||
right: 24px;
|
||
width: 40px;
|
||
height: 40px;
|
||
border-radius: 50%;
|
||
background: var(--accent);
|
||
color: #ffffff;
|
||
border: none;
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
opacity: 0;
|
||
transform: translateY(10px);
|
||
transition: all var(--transition-normal);
|
||
z-index: 100;
|
||
}
|
||
|
||
.back-to-top.visible {
|
||
opacity: 1;
|
||
transform: translateY(0);
|
||
}
|
||
|
||
.back-to-top:hover {
|
||
background: var(--accent-hover);
|
||
}
|