:root {
    --bg: #06101f;
    --bg-soft: rgba(9, 24, 45, 0.78);
    --panel: rgba(8, 20, 37, 0.72);
    --panel-border: rgba(112, 210, 255, 0.16);
    --text: #eff8ff;
    --muted: #97aeca;
    --primary: #52d7ff;
    --primary-strong: #0dc7ff;
    --accent: #7bf7df;
    --shadow: 0 24px 80px rgba(1, 10, 20, 0.45);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --line: rgba(152, 216, 255, 0.12);
    --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    --sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--sans);
    background:
        radial-gradient(circle at 10% 10%, rgba(20, 122, 255, 0.28), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(58, 237, 255, 0.18), transparent 24%),
        linear-gradient(180deg, #04101f 0%, #071425 36%, #06101f 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 86%);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.page-shell {
    position: relative;
    overflow: clip;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(2, 11, 22, 0.52);
    border-bottom: 1px solid rgba(144, 216, 255, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand__logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-weight: 700;
    color: #02131e;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 14px 34px rgba(15, 199, 255, 0.3);
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand__text strong {
    font-size: 1rem;
}

.brand__text small,
.section-heading p,
.hero__description,
.hero__subtitle,
.profile-card__content p,
.post-card__content p,
.timeline-item p,
.about-panel p,
.site-footer__record p {
    color: var(--muted);
}

.nav-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(143, 209, 255, 0.1);
    border-radius: 999px;
    background: rgba(8, 18, 36, 0.7);
}

.nav-links a {
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.95rem;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover {
    background: rgba(82, 215, 255, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(143, 209, 255, 0.14);
    background: rgba(8, 18, 36, 0.7);
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: #edf8ff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
    position: relative;
    padding: 88px 0 36px;
}

.hero__content {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 28px;
    align-items: center;
}

.hero__copy {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--primary);
    font-size: 0.78rem;
    font-family: var(--mono);
    letter-spacing: 0.24em;
}

.eyebrow::before {
    content: "";
    width: 42px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary));
}

.hero h1,
.section-heading h2 {
    margin: 0;
    letter-spacing: -0.03em;
}

.hero h1 {
    font-size: clamp(2.9rem, 6vw, 5.2rem);
    line-height: 1.02;
}

.hero__subtitle {
    margin: 18px 0 10px;
    font-size: clamp(1.1rem, 2vw, 1.34rem);
}

.hero__description {
    max-width: 680px;
    font-size: 1.04rem;
    line-height: 1.85;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 138px;
    min-height: 48px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 600;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: #041520;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 18px 38px rgba(18, 197, 255, 0.25);
}

.button--ghost {
    border: 1px solid rgba(144, 216, 255, 0.16);
    background: rgba(7, 19, 33, 0.55);
}

.hero__tags,
.tag-row,
.profile-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero__tags {
    margin-top: 28px;
}

.hero__tags span,
.tag-row span,
.profile-card__tags span {
    padding: 8px 12px;
    border: 1px solid rgba(137, 220, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #dff8ff;
    font-size: 0.88rem;
}

.hero-card,
.profile-card,
.post-card,
.skill-card,
.about-panel {
    border: 1px solid var(--panel-border);
    background: linear-gradient(180deg, rgba(9, 24, 45, 0.9), rgba(5, 15, 28, 0.85));
    box-shadow: var(--shadow);
}

.hero-card {
    position: relative;
    padding: 24px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 36%);
    pointer-events: none;
}

.hero-card__header,
.site-footer__top,
.post-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hero-card__header {
    color: #dff8ff;
    font-family: var(--mono);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.hero-card__body {
    display: grid;
    gap: 16px;
}

.hero-card__body strong,
.about-panel strong {
    display: block;
    margin-bottom: 6px;
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(26px);
    opacity: 0.45;
    animation: floatGlow 8s ease-in-out infinite;
}

.hero__glow--left {
    width: 280px;
    height: 280px;
    left: -60px;
    top: 80px;
    background: rgba(33, 158, 255, 0.26);
}

.hero__glow--right {
    width: 240px;
    height: 240px;
    right: 4%;
    top: 30px;
    background: rgba(64, 244, 255, 0.16);
    animation-delay: -3s;
}

.section {
    padding: 42px 0;
}

.section--intro {
    padding-top: 18px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading p {
    line-height: 1.82;
}
