/* ===== 字体 ===== */
@font-face {
    font-family: 'Gallifreyan';
    src: url('assets/fonts/gallifreyan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== 时间领主设计令牌（TARDIS 蓝 + 暮光金 + 伽利弗雷紫）===== */
:root {
    --bg-dark: #060b15;
    --bg-panel: #0e1624;
    --tardis-blue: #003B6F;
    --tardis-blue-light: #0a4d8c;
    --twilight-gold: #C5A059;
    --gallifreyan-purple: #5B2C6F;
    --text-main: #e3eaf2;
    --text-dim: #8b9cb3;
    --accent: #58a6ff;
    --accent-alt: #a855f7;
    --border: #1f3a5c;
    --glow: rgba(88, 166, 255, 0.35);
    --nav-h: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.75;
    overflow-x: hidden;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .nebula-blob {
        animation: none !important;
    }
}

/* ---------- 顶部导航栏（TARDIS 圆窗风格） ---------- */
.top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    background: rgba(6, 11, 21, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Gallifreyan', serif;
    font-size: 1.5rem;
    color: var(--twilight-gold);
    letter-spacing: 0.05em;
}

.nav-brand-icon {
    font-size: 1.4em;
    filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.4));
}

.nav-links { display: flex; gap: 10px; align-items: center; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 8px;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    background: rgba(14, 22, 36, 0.4);
}

.nav-link:hover {
    color: var(--twilight-gold);
    background: rgba(197, 160, 89, 0.1);
    border-color: rgba(197, 160, 89, 0.35);
    box-shadow: 0 0 12px rgba(197, 160, 89, 0.2);
}

.nav-icon { color: var(--tardis-blue-light); font-size: 0.95em; opacity: 0.8; }

.nav-link-disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* ---------- 语言切换按钮 ---------- */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(14, 22, 36, 0.4);
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.lang-switcher:hover {
    color: var(--twilight-gold);
    border-color: rgba(197, 160, 89, 0.35);
    background: rgba(197, 160, 89, 0.1);
    box-shadow: 0 0 12px rgba(197, 160, 89, 0.2);
}

/* ---------- 背景层 ---------- */
.background-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* ---------- 星云（保留动画） ---------- */
.nebula {
    position: absolute;
    inset: -15%;
    z-index: 0;
    pointer-events: none;
    filter: blur(40px);
    opacity: 0.45;
}

.nebula-blob {
    position: absolute;
    border-radius: 50%;
    will-change: transform, filter;
}

.nebula-blue {
    width: 55%;
    height: 55%;
    top: 5%;
    left: 0%;
    background: radial-gradient(circle, rgba(0, 59, 111, 0.6) 0%, transparent 70%);
    animation:
        nebulaMove1 15s ease-in-out infinite alternate,
        nebulaHue1 10s ease-in-out infinite alternate;
}

.nebula-purple {
    width: 50%;
    height: 50%;
    top: 20%;
    right: 0%;
    background: radial-gradient(circle, rgba(91, 44, 111, 0.55) 0%, transparent 70%);
    animation:
        nebulaMove2 18s ease-in-out infinite alternate,
        nebulaHue2 12s ease-in-out infinite alternate;
}

.nebula-pink {
    width: 48%;
    height: 48%;
    bottom: 0%;
    left: 28%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.45) 0%, transparent 70%);
    animation:
        nebulaMove3 17s ease-in-out infinite alternate,
        nebulaHue3 14s ease-in-out infinite alternate;
}

@keyframes nebulaMove1 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(20%, 12%) scale(1.2); }
    100% { transform: translate(-15%, 20%) scale(1.1); }
}

@keyframes nebulaMove2 {
    0%   { transform: translate(0, 0) scale(1.1); }
    50%  { transform: translate(-18%, 22%) scale(1.3); }
    100% { transform: translate(15%, -12%) scale(1); }
}

@keyframes nebulaMove3 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(22%, -18%) scale(1.18); }
    100% { transform: translate(-18%, 12%) scale(1.12); }
}

@keyframes nebulaHue1 {
    0%   { filter: hue-rotate(0deg); }
    50%  { filter: hue-rotate(60deg); }
    100% { filter: hue-rotate(0deg); }
}

@keyframes nebulaHue2 {
    0%   { filter: hue-rotate(0deg); }
    50%  { filter: hue-rotate(-70deg); }
    100% { filter: hue-rotate(0deg); }
}

@keyframes nebulaHue3 {
    0%   { filter: hue-rotate(0deg); }
    50%  { filter: hue-rotate(50deg); }
    100% { filter: hue-rotate(0deg); }
}

/* ---------- 星点 ---------- */
.stars { position: absolute; inset: 0; pointer-events: none; }

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.3); }
}

/* ---------- 粒子画布 ---------- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
}

/* ---------- 内容层 ---------- */
.content {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Hero ---------- */
.hero {
    padding-top: calc(var(--nav-h) + 200px);
    padding-bottom: 100px;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    position: relative;
    isolation: isolate;
}

/* 时间漩涡装饰圆环 */
.time-vortex {
    position: absolute;
    /* ★ 修改这里：在 50% 的基础上加上 40px，让圆环往下沉 */
    top: calc(50% + 20px);
    left: 50%;
    width: 460px;
    height: 460px;
    margin-left: -230px;
    margin-top: -230px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
    border: 2px solid rgba(197, 160, 89, 0.35);
    border-radius: 50%;
    box-shadow:
        0 0 40px rgba(197, 160, 89, 0.15),
        inset 0 0 50px rgba(0, 59, 111, 0.3);
    animation: vortexSpinPulse 28s linear infinite;
}

/* 内部细环 */
.time-vortex::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(0, 59, 111, 0.3);
    border-radius: 50%;
}

.time-vortex::after {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px dashed rgba(197, 160, 89, 0.3);
    border-radius: 50%;
}

/* 修正后的动画，只影响旋转缩放 */
@keyframes vortexSpinPulse {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.04); }
    100% { transform: rotate(360deg) scale(1); }
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 720px;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

.hero-greeting {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: var(--twilight-gold);
    letter-spacing: 0.5em;
    padding-left: 0.5em;
    margin-bottom: 14px;
    text-transform: uppercase;
    font-weight: 600;
    filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.3));
}

.pixel-title-wrap {
    width: auto;
    max-width: 900px;
    padding: 0 8px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.pixel-title-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 115%;
    aspect-ratio: 1 / 1;
    background-image: url('assets/title-bg.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    filter: blur(1px);
    z-index: -1;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: normal;
    letter-spacing: 0.06em;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 48px 0;
    text-align: center;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.hero-title-en {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.55em;
    font-weight: 400;
    letter-spacing: 0.4em;
    opacity: 0.85;
    margin-top: 52px;
    color: var(--text-main);
    text-transform: uppercase;
}

.subtitle {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 10px auto 24px;
    position: relative;
    z-index: 2;
}

/* ---------- 技能标签 ---------- */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    max-width: 700px;
    padding: 0 16px;
}

.hero-tag {
    padding: 7px 18px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    background: rgba(0, 59, 111, 0.25);
    border: 1px solid rgba(197, 160, 89, 0.35);
    color: var(--twilight-gold);
    transition: all 0.25s ease;
    cursor: default;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-tag:hover {
    background: rgba(197, 160, 89, 0.15);
    border-color: var(--twilight-gold);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(197, 160, 89, 0.3);
}

/* ---------- 标签 Tooltip ---------- */
.hero-tag { position: relative; }

.hero-tag::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 160px;
    max-width: 260px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(6, 11, 21, 0.96);
    border: 1px solid rgba(197, 160, 89, 0.4);
    color: #d8e2ec;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.55;
    text-align: center;
    white-space: normal;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 100;
}

.hero-tag::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(197, 160, 89, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 100;
}

.hero-tag:hover::after,
.hero-tag:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------- Section ---------- */
.section {
    padding: 70px 0;
    border-bottom: 1px solid var(--border);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--twilight-gold);
    margin: 0;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.section-divider {
    font-family: 'Gallifreyan', serif;
    font-size: 1.6rem;
    color: rgba(197, 160, 89, 0.45);
    opacity: 0.8;
}

.section-subtitle {
    color: var(--text-dim);
    margin-bottom: 48px;
    font-size: 1rem;
    text-align: center;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover { color: #79c0ff; text-shadow: 0 0 8px var(--glow); }

/* ---------- 关于 ---------- */
.about-intro {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 32px;
    color: var(--text-main);
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 56px;
    justify-items: center;
}

.about-card {
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-panel);
    transition: all 0.3s ease;
    text-align: center;
    min-width: 150px;
}

.about-card:hover {
    border-color: var(--twilight-gold);
    background: rgba(197, 160, 89, 0.06);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(197, 160, 89, 0.12);
}

.about-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 600;
    display: block;
}

.about-value {
    font-size: 1.25rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* ---------- 名字来历 ---------- */
.name-origin {
    margin-top: 56px;
    padding: 28px 32px;
    border-left: 3px solid var(--twilight-gold);
    background: linear-gradient(90deg,
        rgba(197, 160, 89, 0.08) 0%,
        rgba(0, 59, 111, 0.06) 60%,
        transparent 100%);
    border-radius: 0 12px 12px 0;
    transition: all 0.4s ease;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- CIA 组织档案 ---------- */
.cia-lore {
    max-width: 760px;
    margin: 56px auto 0;
}

.cia-profile {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cia-profile-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-panel);
    align-items: center;
    transition: all 0.3s ease;
}

.cia-profile-row:hover {
    border-color: var(--twilight-gold);
    background: rgba(197, 160, 89, 0.06);
    transform: translateX(6px);
    box-shadow: 0 8px 24px rgba(197, 160, 89, 0.12);
}

.cia-profile-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--twilight-gold);
    font-weight: 600;
    white-space: nowrap;
}

.cia-profile-value {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
}

.cia-profile-motto .cia-profile-value {
    color: #fff;
    font-weight: 600;
}

.motto-zh {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-dim);
    font-style: italic;
}

/* ---------- 新增动画效果 ---------- */

@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.float-anim {
    animation: floatUp 6s ease-in-out infinite;
}

@keyframes breatheGlow {
    0%, 100% { box-shadow: 0 0 12px rgba(197, 160, 89, 0.2); }
    50% { box-shadow: 0 0 24px rgba(197, 160, 89, 0.5), 0 0 40px rgba(88, 166, 255, 0.2); }
}

.breathe-anim {
    animation: breatheGlow 4s ease-in-out infinite;
}

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

.slide-fade-in {
    animation: slideFadeIn 0.8s ease forwards;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.ring-pulse {
    animation: ringPulse 5s ease-in-out infinite;
}

.name-origin:hover {
    border-left-color: var(--accent-alt);
    background: linear-gradient(90deg,
        rgba(197, 160, 89, 0.12) 0%,
        rgba(88, 166, 255, 0.06) 60%,
        transparent 100%);
}

.name-origin-quote {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-main);
    font-style: italic;
    letter-spacing: 0.02em;
}

.quote-mark {
    color: var(--twilight-gold);
    font-size: 1.8em;
    font-style: normal;
    opacity: 0.7;
    line-height: 0;
    vertical-align: -0.2em;
}

.name-origin-source {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-align: right;
    letter-spacing: 0.05em;
}

/* ---------- 成员卡片 ---------- */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-panel);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    text-align: center;
}

.member-card:hover {
    border-color: var(--twilight-gold);
    background: rgba(197, 160, 89, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 0 24px rgba(197, 160, 89, 0.15);
    color: inherit;
}

.member-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tardis-blue), var(--tardis-blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(197, 160, 89, 0.3);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-initial {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0;
}

.member-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.member-role {
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.member-bio {
    font-size: 0.72rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
    word-break: break-word;
}

.member-group {
    margin-top: 56px;
}

.member-group:first-of-type {
    margin-top: 24px;
}

.member-group-title {
    font-size: 1.2rem;
    color: var(--twilight-gold);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
    letter-spacing: 0.06em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-group-title::before {
    content: '⟡';
    color: rgba(197, 160, 89, 0.5);
    font-size: 1.1em;
}

/* ---------- 作品列表 ---------- */
.works-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 24px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.work-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: #0b1420;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.work-card:hover {
    background: #121c2a;
    color: inherit;
}

.work-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #131d29;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.work-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
}

.work-info {
    flex-grow: 1;
    min-width: 0;
}

.work-info h3 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.work-info p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    margin-right: 14px;
}

.stat-downloads {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    transition: opacity 0.3s ease;
}

.stat-label {
    color: var(--text-dim);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.work-arrow {
    color: var(--text-dim);
    font-size: 1.2rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.work-card:hover .work-arrow {
    color: var(--twilight-gold);
    transform: translate(2px, -2px);
}

/* ---------- 加入我们 ---------- */
.join-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 40px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.join-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-panel);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    text-align: center;
}

.join-card:hover {
    border-color: var(--twilight-gold);
    background: rgba(197, 160, 89, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 0 24px rgba(197, 160, 89, 0.15);
    color: inherit;
}

.join-icon {
    font-size: 1.9rem;
    color: var(--twilight-gold);
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.3));
}

.join-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.join-desc {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ---------- 页脚 Logo（图片版） ---------- */
.gallifreyan-circle {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    opacity: 0.8;
    animation: gallifreyanSpin 20s linear infinite;
    border: none;
    box-shadow: none;
}

.gallifreyan-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.gallifreyan-circle::before,
.gallifreyan-circle::after {
    display: none;
}

@keyframes gallifreyanSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* 强制页脚文字居中 */
footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer p {
    width: 100%;
    text-align: center;
    margin: 0;
}

/* ---------- 滚动显现 ---------- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 左侧内容导航 ---------- */
.side-nav {
    position: fixed;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 10px;
    border-radius: 36px;
    background: rgba(6, 11, 21, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    transition: opacity 0.3s;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
}

.side-link:hover {
    color: var(--twilight-gold);
}

.side-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.side-link:hover .side-dot {
    background: var(--twilight-gold);
    box-shadow: 0 0 10px var(--twilight-gold);
    transform: scale(1.4);
}

.side-link.active {
    color: var(--twilight-gold);
}

.side-link.active .side-dot {
    background: var(--twilight-gold);
    box-shadow: 0 0 12px var(--twilight-gold), 0 0 4px var(--twilight-gold);
    transform: scale(1.5);
}

.side-link.active .side-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--twilight-gold);
    opacity: 0.5;
    animation: dotPulse 2s ease-out infinite;
}

@keyframes dotPulse {
    0%   { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

.side-label {
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.side-nav:hover .side-label,
.side-link.active .side-label {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- 关于卡片 Tooltip ---------- */
.about-card {
    position: relative;
}

.about-card::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 140px;
    max-width: 220px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(6, 11, 21, 0.96);
    border: 1px solid rgba(197, 160, 89, 0.4);
    color: #d8e2ec;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.55;
    text-align: center;
    white-space: normal;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 100;
}

.about-card::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(197, 160, 89, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 100;
}

.about-card:hover::after,
.about-card:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================================================
   ★ 手机端适配（彻底修复标题炸裂和间距过大的问题）
   ========================================================= */
@media (max-width: 900px) {
    .side-nav {
        left: 50%;
        top: auto;
        bottom: 16px;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 12px;
        padding: 10px 16px;
        border-radius: 999px;
        background: rgba(6, 11, 21, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .side-label {
        display: none;
    }

    .side-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 700px) {
    :root {
        --nav-h: 48px;
    }

    .top-nav {
        height: var(--nav-h);
    }

    .nav-inner {
        padding: 0 8px;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-link {
        padding: 7px 12px;
        font-size: 0.85rem;
    }

    .nav-text {
        display: none;
    }

    .nav-icon {
        font-size: 1.2rem;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    /* 修复首屏 Hero 区域 */
    .hero {
        padding-top: calc(var(--nav-h) + 120px);
        padding-bottom: 80px;
    }

    .time-vortex {
        /* ★ 调整圆环的大小和位置 */
        width: 340px;
        height: 340px;
        margin-left: -170px;
        margin-top: -170px;

        /* ★ 核心：在 50% 的基础上往下偏移，比如 40px，让它包住标题 */
        top: calc(50% + -35px);
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 3.2rem);
        margin-bottom: 20px; /* 缩小底部边距 */
    }

    /* ★ 重点修复：英文副标题在手机端挤压换行的问题 */
    .hero-title-en {
        letter-spacing: 0.15em; /* 缩小字间距 */
        padding-left: 0.15em;   /* 配合字间距居中 */
        font-size: 0.5em;       /* 稍微缩小字号 */
        margin-top: 16px;       /* 减小原本过大的上边距 */
        line-height: 1.3;       /* 换行更紧凑 */
    }

    .subtitle {
        font-size: 0.9rem;
        padding: 0 12px;
        line-height: 1.6;
    }

    .hero-tags {
        gap: 8px;
        margin-top: 24px;
        padding: 0 8px;
    }

    .hero-tag {
        font-size: 0.72rem;
        padding: 6px 14px;
    }

    .about-intro {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .about-card {
        padding: 14px 16px;
    }

    .about-value {
        font-size: 1.1rem;
    }

    .name-origin {
        padding: 22px 24px;
    }

    .name-origin-quote {
        font-size: 1rem;
        line-height: 1.8;
    }

    .work-card {
        padding: 14px 16px;
        gap: 14px;
    }

    .work-icon {
        width: 44px;
        height: 44px;
    }

    .work-info h3 {
        font-size: 0.95rem;
    }

    .work-info p {
        font-size: 0.78rem;
    }

    .section {
        padding: 56px 0;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .content {
        padding: 0 16px;
    }

    footer {
        padding-bottom: 100px; /* 增加底部留白，防止被悬浮的 side-nav 遮挡 */
    }
}

@media (max-width: 400px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-tag {
        font-size: 0.68rem;
        padding: 5px 10px;
    }
}