:root {
    --primary: #FFF;
    --secondary: #000;
    --transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
    :root {
        --primary: #000;
        --secondary: #FFF;
    }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--primary);
    color: var(--secondary);
    line-height: 1.6;
    transition: var(--transition);
}
.container { max-width: 800px; margin: 10vh auto; padding: 0 2rem; position: relative; }
h1 { font-size: 3.5rem; margin-bottom: 1rem; letter-spacing: -0.03em; }

header {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 3;
    opacity: 0.95;
    transition: all 0.28s ease;
    max-width: 360px;
}
header h1 {
    font-size: 1.05rem;
    margin: 0;
    letter-spacing: 0.04em;
    font-weight: 600;
}
header p {
    margin: 0.35rem 0 0 0;
    color: rgba(255,255,255,0.9);
    font-size: 0.92rem;
    font-weight: 300;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.22,1,0.36,1), opacity 0.5s ease;
    opacity: 0;
}
header:hover p { max-height: 240px; opacity: 1; }
header h1 { color: #ffffff; }
h1 { font-size: 3.5rem; margin-bottom: 1rem; letter-spacing: -0.03em; }
.nav { margin: 0; position: absolute; top: 2rem; right: 2rem; opacity: 0; animation: fadeIn 0.8s 0.4s forwards; z-index: 4; }
.nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 1rem;
    margin-right: 1rem;
    position: relative;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}
.nav { transition: opacity 0.6s ease, transform 0.6s ease; }
.nav a { transition: color 0.45s ease, transform 0.45s ease, opacity 0.45s ease; }
.nav a:hover { transform: translateY(-3px); }
.nav a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: var(--transition);
}
.nav a .firstChar { display: inline-block; }
.nav a .firstChar { text-decoration: none; }
.nav a.active .firstChar {
    border-bottom: 2px solid rgba(255,255,255,0.95);
    padding-bottom: 4px;
    display: inline-block;
}
.nav a:hover:after { width: 100%; }
section { margin: 6rem 0; opacity: 0; animation: fadeIn 0.8s 0.6s forwards; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
.card-list {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.card {
    flex: 1 1 220px;
    min-width: 220px;
    max-width: 340px;
    background: #ffffff;
    color: #000000;
    box-shadow: 0 8px 24px rgba(2,6,23,0.08);
    padding: 1.2rem 1rem;
    transition: var(--transition);
    margin-bottom: 1.5rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card h3 { margin-bottom: 0.3rem; font-size: 1.1rem; }
.card p { font-size: 0.98rem; margin-bottom: 0.7rem; color: #333; }
.card a { color: #111; text-decoration: underline; font-size: 0.95rem; }
.about-section p { color: #ffffff; }
.about-section {
    margin: 0;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
}
/* 移动端优化 */
@media (max-width: 640px) {
    h1 { font-size: 2.5rem; }
    .container { margin: 5vh auto; }
    .card-list { flex-direction: column; gap: 1.2rem; }
    .card { max-width: 100%; }
    /* 移动端把导航放回文档流，避免遮挡 */
    .nav { position: static; margin: 3rem 0; }
}
body {
    position: relative;
    overflow-x: hidden;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url('image/JoergBacherle.jpg') center center no-repeat;
    background-size: cover; /* 铺满窗口 */
    background-position: center center;
    opacity: 0.9;           /* 降低透明度 */
    filter: blur(1px);       /* 降低模糊，图像更清晰 */
    pointer-events: none;
}
.container, header, section, nav {
    position: relative;
    z-index: 1;
}
/* 轻微噪点叠层，使用 SVG 噪点生成器，营造科技质感 */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06' /></svg>");
    background-repeat: repeat;
    background-size: cover;
    mix-blend-mode: overlay;
    opacity: 0.06;
}