/* 航康与小龙协作编年史 - 样式表 */

/* ===== 字体导入 ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

@font-face {
    font-family: "Tiempos Headline";
    src: url("assets/fonts/TestTiemposHeadline-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: "Tiempos Headline";
    src: url("assets/fonts/TestTiemposHeadline-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: "Tiempos Headline";
    src: url("assets/fonts/TestTiemposHeadline-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: "Sohne";
    src: url("assets/fonts/TestSohne-Buch.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: "Sohne";
    src: url("assets/fonts/TestSohne-Halbfett.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: "Sohne";
    src: url("assets/fonts/TestSohne-Kraftig.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: "Sohne";
    src: url("assets/fonts/TestSohne-BuchKursiv.otf") format("opentype");
    font-weight: 400;
    font-style: italic;
    font-weight: 400;
}

/* ===== CSS 变量 ===== */
 :root {
    --background: #faf9f5;
    --foreground: #3d3d3a;
    --card: #faf8f4;
    --card-foreground: #3d3d3a;
    --primary: #141413;
    --primary-foreground: #faf9f5;
    --secondary: #f5f4ed;
    --secondary-foreground: #3d3d3a;
    --muted: #f0eee6;
    --muted-foreground: #73726c;
    --accent: #f0eee6;
    --accent-foreground: #3d3d3a;
    --border: #f0eee6;
    --input: #f0eee6;
    --ring: #3d3d3a;
    --sidebar: #faf8f4;
    --sidebar-foreground: #3d3d3a;
    --sidebar-primary: #141413;
    --sidebar-primary-foreground: #faf9f5;
    --sidebar-accent: #f0eee6;
    --sidebar-accent-foreground: #3d3d3a;
    --sidebar-border: #f0eee6;
    --sidebar-ring: #3d3d3a;
    --danger: #b91c1c;
    --font-serif: "Tiempos Headline", "Noto Serif SC", serif;
    --font-sans: "Sohne", "Noto Sans SC", sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --shadow-sm: 0 1px 2px 0 rgba(20,20,19,0.04);
    --shadow-md: 0 10px 30px -18px rgba(20,20,19,0.16);
    --shadow-lg: 0 24px 60px -26px rgba(20,20,19,0.22);
    --shadow-xl: 0 36px 80px -32px rgba(20,20,19,0.24);
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 350ms ease;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --background: #262624;
        --foreground: #c2c0b6;
        --card: #252523;
        --card-foreground: #c2c0b6;
        --primary: #faf9f5;
        --primary-foreground: #141413;
        --secondary: #1f1e1d;
        --secondary-foreground: #c2c0b6;
        --muted: #1f1e1d;
        --muted-foreground: #9c9a92;
        --accent: #141413;
        --accent-foreground: #c2c0b6;
        --border: #1f1e1d;
        --input: #1f1e1d;
        --ring: #c2c0b6;
        --sidebar: #252523;
        --sidebar-foreground: #c2c0b6;
        --sidebar-primary: #faf9f5;
        --sidebar-primary-foreground: #141413;
        --sidebar-accent: #141413;
        --sidebar-accent-foreground: #c2c0b6;
        --sidebar-border: #1f1e1d;
        --sidebar-ring: #c2c0b6;
        --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.25);
        --shadow-md: 0 10px 30px -18px rgba(0,0,0,0.35);
        --shadow-lg: 0 24px 60px -26px rgba(0,0,0,0.42);
        --shadow-xl: 0 36px 80px -32px rgba(0,0,0,0.5);
    }
}

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.72;
    color: var(--foreground);
    background: var(--background);
    overflow-x: hidden;
}

/* ===== 纹理叠加层 ===== */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ===== 导航栏 ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--background) 82%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-sm) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: var(--font-sans);
    letter-spacing: -0.02em;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-family: var(--font-sans);
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-base);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== Hero 区域 ===== */
.hero {
    position: relative;
    min-height: 64vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    background: radial-gradient(circle at top, color-mix(in srgb, var(--secondary) 70%, transparent) 0%, transparent 45%), var(--background);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.04;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--foreground) 0%, var(--muted-foreground) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: clamp(1.08rem, 2.3vw, 1.42rem);
    color: var(--muted-foreground);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-meta {
    font-family: var(--font-sans);
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    align-items: center;
    color: var(--muted-foreground);
    font-size: 0.95rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-decoration {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -20px); }
}

/* ===== 主内容区域 ===== */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

/* ===== 章节 ===== */
.section {
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
}

.section-header {
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-family: var(--font-serif);
    letter-spacing: -0.02em;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    border-radius: 2px;
}

/* ===== 身份卡片 ===== */
.identity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.identity-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-base);
}

.identity-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.identity-card.highlight {
    border-color: var(--primary);
    background: linear-gradient(180deg, color-mix(in srgb, var(--card) 92%, var(--muted) 8%) 0%, var(--card) 100%);
}

.identity-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.identity-card h3 {
    font-family: var(--font-serif);
    letter-spacing: -0.02em;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--foreground);
}

.identity-role {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.identity-details {
    list-style: none;
}

.identity-details li {
    padding: var(--spacing-xs) 0;
    color: var(--muted-foreground);
    font-size: 0.95rem;
    line-height: 1.6;
}

.identity-details li::before {
    content: '▸';
    color: var(--primary);
    margin-right: var(--spacing-xs);
}

/* ===== 哲学框 ===== */
.philosophy-box {
    background: var(--secondary);
    border-left: 2px solid var(--ring);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.philosophy-box h4 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--foreground);
    margin-bottom: var(--spacing-md);
}

.philosophy-box blockquote {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 400;
    color: var(--foreground);
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-md);
    border-left: 3px solid var(--primary);
}

.philosophy-box p {
    color: var(--muted-foreground);
    line-height: 1.8;
}

/* ===== 时间线 ===== */
.timeline {
    position: relative;
    padding-left: var(--spacing-xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--color-accent) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
    padding-left: var(--spacing-lg);
}

.timeline-marker {
    position: absolute;
    left: -9px;
    top: 8px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border: 3px solid var(--background);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--color-primary-dark);
}

.timeline-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-base);
}

.timeline-content:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    font-family: var(--font-serif);
    letter-spacing: -0.018em;
    font-size: 1.5rem;
    color: var(--foreground);
    margin-bottom: var(--spacing-xs);
}

.timeline-date {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.timeline-content p {
    color: var(--muted-foreground);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.timeline-list {
    list-style: none;
    margin: var(--spacing-md) 0;
}

.timeline-list li {
    padding: var(--spacing-xs) 0;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.timeline-list li::before {
    content: '•';
    color: var(--foreground);
    font-weight: bold;
    margin-right: var(--spacing-sm);
}

.timeline-list strong {
    color: var(--foreground);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--muted);
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== 基础设施网格 ===== */
.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.infra-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-base);
}

.infra-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--foreground);
}

.infra-card h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -0.02em;
    font-size: 1.5rem;
    color: var(--foreground);
    margin-bottom: var(--spacing-sm);
}

.infra-desc {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    font-style: italic;
    font-weight: 400;
}

.infra-features {
    list-style: none;
}

.infra-features li {
    padding: var(--spacing-xs) 0;
    color: var(--muted-foreground);
    font-size: 0.95rem;
    line-height: 1.6;
}

.infra-features li::before {
    content: '→';
    color: var(--foreground);
    margin-right: var(--spacing-xs);
}

.architecture-note {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.architecture-note h4 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--foreground);
    margin-bottom: var(--spacing-md);
}

.architecture-note p {
    color: var(--muted-foreground);
    line-height: 1.8;
}

/* ===== 技能网格 ===== */
.skills-intro {
    margin-bottom: var(--spacing-xl);
    color: var(--muted-foreground);
    font-size: 1.1rem;
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.skill-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: all var(--transition-fast);
}

.skill-card:hover {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--card) 88%, var(--foreground) 12%);
    transform: translateY(-2px);
}

.skill-card h4 {
    font-family: var(--font-sans);
    letter-spacing: -0.01em;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--spacing-xs);
    font-family: 'SFMono-Regular', 'Consolas', monospace;
}

.skill-card p {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.6;
}

.skills-philosophy {
    background: var(--secondary);
    border-left: 2px solid var(--ring);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
}

.skills-philosophy h4 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--foreground);
    margin-bottom: var(--spacing-md);
}

.skills-philosophy p {
    color: var(--muted-foreground);
    line-height: 1.8;
}

/* ===== 偏好网格 ===== */
.preferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.pref-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-base);
}

.pref-card:hover {
    border-color: var(--foreground);
    box-shadow: var(--shadow-md);
}

.pref-card h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -0.015em;
    font-size: 1.25rem;
    color: var(--foreground);
    margin-bottom: var(--spacing-sm);
}

.pref-card p {
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* ===== 未来方向 ===== */
.future-directions {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.future-directions h3 {
    font-family: var(--font-serif);
    letter-spacing: -0.02em;
    font-size: 2rem;
    color: var(--foreground);
    margin-bottom: var(--spacing-lg);
}

.future-list {
    list-style: none;
}

.future-list li {
    padding: var(--spacing-md) 0;
    color: var(--muted-foreground);
    line-height: 1.8;
    border-bottom: 1px solid var(--border);
}

.future-list li:last-child {
    border-bottom: none;
}

.future-list li::before {
    content: '▸';
    color: var(--foreground);
    font-size: 1.2rem;
    margin-right: var(--spacing-sm);
}

.future-list strong {
    color: var(--foreground);
    font-weight: 600;
}

/* ===== 结语 ===== */
.closing-thoughts {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
}

.closing-thoughts h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--foreground);
    margin-bottom: var(--spacing-lg);
}

.closing-thoughts p {
    color: var(--muted-foreground);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.closing-thoughts ul {
    list-style: none;
    margin: var(--spacing-md) 0;
}

.closing-thoughts ul li {
    padding: var(--spacing-xs) 0;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.closing-thoughts ul li::before {
    content: '✦';
    color: var(--primary);
    margin-right: var(--spacing-sm);
}

.final-quote {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 400;
    color: var(--foreground);
    text-align: center;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
}

/* ===== 页脚 ===== */
.footer {
    background: var(--secondary);
    border-top: 1px solid var(--border);
    padding: var(--spacing-xl) var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.footer-content p {
    margin: var(--spacing-xs) 0;
}

/* ===== 代码样式 ===== */
code {
    font-family: 'Courier New', monospace;
    background: var(--muted);
    color: var(--foreground);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

strong {
    color: var(--foreground);
    font-weight: 600;
}


body, .nav, .hero, .identity-card, .timeline-content, .infra-card, .skill-card, .pref-card, .future-directions, .closing-thoughts, .architecture-note, .skills-philosophy, .philosophy-box {
    transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
}


.theme-toggle {
    appearance:none; border:1px solid var(--border); background:var(--card); color:var(--foreground);
    border-radius:999px; padding:0.55rem 0.85rem; font:inherit; cursor:pointer; transition:all var(--transition-fast);
}
.theme-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.eyebrow { font-family: var(--font-sans); letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.hero-actions { display:flex; gap: .9rem; justify-content:center; flex-wrap:wrap; margin-top: 1.5rem; }
.hero-button { text-decoration:none; padding: .9rem 1.2rem; border-radius: 999px; font-family: var(--font-sans); font-weight:600; letter-spacing:-0.01em; transition: all var(--transition-fast); }
.hero-button.primary { background: var(--primary); color: var(--primary-foreground); }
.hero-button.secondary { background: var(--card); color: var(--foreground); border:1px solid var(--border); }
.hero-button:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hero-stats { margin-top: 2rem; display:grid; align-items:stretch; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.stat-card { text-align:left; background: color-mix(in srgb, var(--card) 90%, transparent); border:1px solid var(--border); border-radius: 1rem; padding: 1rem 1rem 1.1rem; box-shadow: var(--shadow-sm); }
.stat-card strong { display:block; font-family: var(--font-sans); letter-spacing:-0.01em; font-size:1rem; margin-bottom:.45rem; }
.stat-card span { display:block; color: var(--muted-foreground); font-size:.92rem; line-height:1.6; }
.content { max-width: 1280px; }
.section { margin-bottom: 4.5rem; }
.section-header { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; }
.section-line { background: linear-gradient(90deg, var(--foreground) 0%, transparent 100%); }
.timeline-content, .infra-card, .identity-card, .skill-card, .pref-card, .future-directions, .closing-thoughts, .architecture-note, .skills-philosophy, .philosophy-box { box-shadow: var(--shadow-sm); }
.timeline-content:hover, .infra-card:hover, .identity-card:hover, .skill-card:hover, .pref-card:hover { box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .hero-stats { grid-template-columns: 1fr; } .section-header { display:block; } }

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        min-height: 60vh;
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .content {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .timeline {
        padding-left: var(--spacing-lg);
    }

    .timeline-item {
        padding-left: var(--spacing-md);
    }

    .identity-grid,
    .infra-grid,
    .preferences-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 滚动条样式 ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== 选择文本样式 ===== */
::selection {
    background: var(--primary);
    color: var(--primary-foreground);
}

:root[data-theme="dark"] {
        --background: #262624;
        --foreground: #c2c0b6;
        --card: #252523;
        --card-foreground: #c2c0b6;
        --primary: #faf9f5;
        --primary-foreground: #141413;
        --secondary: #1f1e1d;
        --secondary-foreground: #c2c0b6;
        --muted: #1f1e1d;
        --muted-foreground: #9c9a92;
        --accent: #141413;
        --accent-foreground: #c2c0b6;
        --border: #1f1e1d;
        --input: #1f1e1d;
        --ring: #c2c0b6;
        --sidebar: #252523;
        --sidebar-foreground: #c2c0b6;
        --sidebar-primary: #faf9f5;
        --sidebar-primary-foreground: #141413;
        --sidebar-accent: #141413;
        --sidebar-accent-foreground: #c2c0b6;
        --sidebar-border: #1f1e1d;
        --sidebar-ring: #c2c0b6;
}
