
/* ============================================
   数字人生 - Moonshot 极简黑风格
   ============================================ */

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #0d0d0d;
    --text-primary: #f5f5f5;
    --text-secondary: #777777;
    --accent: #e2a85a;
    --accent-hover: #f0c080;
    --accent-glow: rgba(226, 168, 90, 0.15);
    --gradient: linear-gradient(135deg, #f0c080, #e2a85a);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-serif: 'Noto Serif SC', 'STSong', 'SimSun', serif;
    --font-sans: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
}

[data-theme="light"] {
    --bg-primary: #fafaf9;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent: #c47a2a;
    --accent-hover: #a06020;
    --accent-glow: rgba(196, 122, 42, 0.08);
    --border: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow: hidden;
    height: 100vh;
    transition: background var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
}

.main-scroll {
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

h1, h2, h3, .section-title, .nav-logo {
    font-family: var(--font-serif);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
    isolation: isolate;
}

.section::before {
    content: '';
    position: absolute;
    inset: 10% 6% auto 6%;
    height: 240px;
    background: radial-gradient(circle at center, rgba(226, 168, 90, 0.12), transparent 70%);
    pointer-events: none;
    filter: blur(12px);
    z-index: -1;
}

.section-kicker {
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    color: var(--accent);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 56px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: 0.05em;
    text-shadow: 0 0 22px rgba(226, 168, 90, 0.12);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    opacity: 0.6;
}

/* --- 导航栏 --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.95);
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

[data-theme="light"] .navbar {
    background: rgba(250, 250, 249, 0.95);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(250, 250, 249, 0.98);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

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

.nav-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background var(--transition);
}

.theme-toggle:hover {
    background: var(--border);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* --- Hero 区 --- */
.hero {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 30%, rgba(226,168,90,0.12), transparent 28%),
        radial-gradient(circle at 50% 80%, rgba(226,168,90,0.08), transparent 38%),
        #000;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, black 25%, transparent 75%);
    z-index: 0;
    animation: gridShift 20s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto 10% 8% 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(226,168,90,0.6), transparent);
    z-index: 0;
}

.hero-glow {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(226,168,90,0.15) 0%, rgba(180,120,60,0.05) 35%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulseGlow 5s ease-in-out infinite;
    filter: blur(50px);
}

.hero-glow-secondary {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(226,168,90,0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulseGlow 5s ease-in-out 2.5s infinite;
    filter: blur(60px);
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
}

.hero-bg-terms {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-term {
    position: absolute;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    color: rgba(255,255,255,0.18);
    letter-spacing: 0.2em;
    animation: termFloat 8s ease-in-out infinite;
    white-space: nowrap;
    text-shadow: 0 0 30px rgba(255,255,255,0.06);
}

.hero-corners {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: rgba(226,168,90,0.3);
    border-style: solid;
}

.corner-tl { top: 40px; left: 40px; border-width: 1px 0 0 1px; }
.corner-tr { top: 40px; right: 40px; border-width: 1px 1px 0 0; }
.corner-bl { bottom: 40px; left: 40px; border-width: 0 0 1px 1px; }
.corner-br { bottom: 40px; right: 40px; border-width: 0 1px 1px 0; }

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    z-index: 2;
    padding: 0 24px;
    max-width: 900px;
    width: 100%;
}

.hero-logo {
    animation: fadeInUp 0.8s ease;
    z-index: 2;
    position: relative;
}

.logo-mark {
    font-size: 10rem;
    font-family: var(--font-serif);
    font-weight: 900;
    line-height: 1;
    display: inline-block;
    color: rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoFloat 6s ease-in-out infinite;
    letter-spacing: 0;
}

.hero-quote {
    font-size: 0.9rem;
    color: #555;
    letter-spacing: 0.12em;
    font-family: var(--font-sans);
    text-transform: uppercase;
}

.hero-quote-top {
    align-self: flex-start;
    margin-left: 8%;
    animation: fadeInUp 0.8s ease;
}

.hero-quote-bottom {
    align-self: flex-end;
    margin-right: 8%;
    animation: fadeInUp 0.8s ease 0.2s both;
    text-transform: none;
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.hero-brand {
    font-size: clamp(3.2rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.06em;
    font-family: 'STKaiti', 'KaiTi', '华文楷体', 'STXingkai', '华文行楷', cursive;
    white-space: nowrap;
    text-align: center;
    color: #d0d0d0;
    text-shadow: 0 0 28px rgba(226,168,90,0.06);
    background: linear-gradient(105deg, 
        #b0b0b0 0%,
        #d8d8d8 38%, 
        #f8f8f8 44%, 
        #d8d8d8 50%,
        #b0b0b0 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease 0.1s both, moonShine 6s ease-in-out infinite;
}

.brand-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    margin: 0 14px;
    vertical-align: middle;
    box-shadow: 0 0 16px rgba(226,168,90,0.6), 0 0 40px rgba(226,168,90,0.2);
    animation: dotPulse 2.5s ease-in-out infinite;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2px;
    animation: fadeInUp 0.8s ease 0.15s both;
}

.meta-chip {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(226, 168, 90, 0.35);
    background: rgba(226, 168, 90, 0.06);
    color: var(--accent);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.hero-intro {
    max-width: 680px;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.96rem;
    line-height: 1.8;
    margin-top: 0;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-typing {
    font-size: 1rem;
    color: #555;
    height: 1.6rem;
    animation: fadeInUp 0.8s ease 0.3s both;
    font-family: var(--font-sans);
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--accent);
    animation: blink 0.8s infinite;
    vertical-align: middle;
    margin-left: 2px;
}

.cursor {
    color: var(--accent);
    animation: blink 0.8s infinite;
}

.hero-desc {
    display: none;
}

.hero-buttons {
    display: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #444;
    font-size: 0.7rem;
    animation: fadeInUp 1s ease 0.6s both;
    z-index: 2;
    letter-spacing: 0.25em;
}

.scroll-arrow {
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

/* --- 按钮 --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 26px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--text-primary);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-outline:hover {
    border-color: rgba(255,255,255,0.4);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

/* --- 关于 --- */
.about-content {
    display: flex;
    gap: 64px;
    align-items: center;
}

.about-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #111;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #333;
}

.avatar-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.about-text h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.about-stats {
    display: flex;
    gap: 48px;
    margin-top: 28px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    font-family: var(--font-serif);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* --- 工作区 --- */
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-top: -36px;
    margin-bottom: 48px;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

.work-grid {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.work-card {
    background: var(--bg-card);
    padding: 28px 32px;
    transition: background var(--transition);
    display: flex;
    align-items: baseline;
    gap: 32px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.work-card:hover {
    background: #111;
}

.work-card .work-tag {
    font-size: 0.7rem;
    color: var(--accent);
    white-space: nowrap;
    min-width: 56px;
    font-family: var(--font-sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(226,168,90,0.25);
    border-radius: 4px;
    padding: 2px 8px;
    text-align: center;
    align-self: flex-start;
    margin-top: 2px;
}

.work-card .work-body {
    flex: 1;
    min-width: 0;
}

.work-card .work-body h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.work-card .work-body p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    font-family: var(--font-sans);
}

.work-card .work-arrow {
    color: var(--text-secondary);
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--transition);
    font-size: 0.9rem;
}

.work-card:hover .work-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* --- 专栏 --- */
.columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.eng-subsection {
    margin-bottom: 48px;
}

.eng-subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    letter-spacing: 0.04em;
    font-family: var(--font-sans);
}

.column-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition), background var(--transition);
    display: flex;
    flex-direction: column;
}

.column-card:hover {
    border-color: rgba(226,168,90,0.3);
    background: #111;
}

.column-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.column-card-emoji {
    font-size: 1.8rem;
}

.column-card-count {
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.06em;
    background: rgba(226,168,90,0.1);
    padding: 3px 10px;
    border-radius: 12px;
}

.column-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.column-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    flex: 1;
    font-family: var(--font-sans);
}

.column-card-link {
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: 16px;
    opacity: 0;
    transition: opacity var(--transition);
}

.column-card:hover .column-card-link {
    opacity: 1;
}

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

/* --- 认知与决策模型 --- */
.cog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.cog-column {
    background: linear-gradient(180deg, rgba(14, 14, 14, 0.92), rgba(10, 10, 10, 0.88));
    border: 1px solid rgba(226, 168, 90, 0.18);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255,255,255,0.04);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(12px);
}

.cog-column::after {
    content: '';
    position: absolute;
    inset: auto -10% -40% auto;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(226, 168, 90, 0.25), transparent 70%);
    filter: blur(12px);
    pointer-events: none;
}

.cog-column::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(226,168,90,0.9), transparent 60%);
    opacity: 0.9;
}

.cog-column-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(226,168,90,0.14), rgba(255,255,255,0.03));
    border: 1px solid rgba(226,168,90,0.18);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.cog-column-header i {
    color: var(--accent);
    font-size: 1rem;
}

.cog-cards {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.cog-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02));
    padding: 22px 24px;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    height: 100%;
    min-height: 200px;
}

.cog-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent 80%);
    opacity: 0;
    transition: opacity var(--transition);
}

.cog-card::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 40%;
    height: 180%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
    transform: translateX(-140%) rotate(10deg);
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.cog-card:hover {
    background: linear-gradient(180deg, rgba(24,24,24,0.95), rgba(18,18,18,0.9));
    border-color: rgba(226,168,90,0.4);
    transform: translateY(-4px);
    box-shadow: 0 24px 56px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.04);
}

.cog-card:hover::after {
    transform: translateX(290%) rotate(10deg);
}

.cog-card:hover::before {
    opacity: 1;
}

.cog-card-tag {
    font-size: 0.68rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(226,168,90,0.22);
    background: rgba(226,168,90,0.12);
    width: fit-content;
}

.cog-card h4 {
    font-size: 0.98rem;
    margin-bottom: 7px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.cog-card p {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.7;
    font-family: var(--font-sans);
    flex: 1;
}

.cog-card-arrow {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(226,168,90,0.12);
    color: var(--accent);
    border: 1px solid rgba(226,168,90,0.24);
    opacity: 0.9;
    transform: translateX(-6px);
    transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

.cog-card:hover .cog-card-arrow {
    opacity: 1;
    transform: translateX(0);
    background: rgba(226,168,90,0.22);
}

/* --- 现实生活锚点 --- */
.micro-grid {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.micro-card {
    background: var(--bg-card);
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: background var(--transition);
}

.micro-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.micro-card-link:hover {
    background: #111;
}

.micro-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
    line-height: 1.4;
}

.micro-body {
    flex: 1;
    min-width: 0;
}

.micro-date {
    font-size: 0.75rem;
    color: #444;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.micro-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    font-family: var(--font-sans);
}

.micro-readmore {
    font-size: 0.8rem;
    color: var(--accent);
    display: inline-block;
    margin-top: 6px;
    opacity: 0;
    transition: opacity var(--transition);
}

.micro-card-link:hover .micro-readmore {
    opacity: 1;
}

/* --- 关于 · 联系方式 --- */
.about-contact {
    margin-top: 20px;
}

.about-contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.about-contact-link:hover {
    color: var(--accent);
}

/* --- 留言板 --- */
.comments {
    padding: 80px 0 100px;
}

.comment-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
}

.comment-form {
    margin-bottom: 40px;
}

.comment-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-form input,
.comment-form textarea {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    color: #ccc;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: border-color var(--transition);
    outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent);
}

.comment-form input {
    flex: 1;
}

.comment-form textarea {
    width: 100%;
    height: 90px;
    resize: vertical;
    box-sizing: border-box;
}

.comment-submit {
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}

.comment-submit:hover {
    background: var(--accent-hover);
}

.comment-loading {
    text-align: center;
    color: #555;
    font-size: 0.9rem;
}

.comment-item {
    padding: 20px 0;
    border-bottom: 1px solid #1a1a1a;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-nick {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.95rem;
}

.comment-time {
    color: #444;
    font-size: 0.8rem;
}

.comment-text {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.7;
    word-break: break-word;
}

.comment-empty {
    text-align: center;
    color: #444;
    padding: 40px 0;
    font-size: 0.95rem;
}

/* --- 页脚 --- */
.footer {
    text-align: center;
    padding: 48px 0;
    border-top: 1px solid var(--border);
    color: #444;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.footer-icp {
    margin-top: 8px;
    font-size: 0.75rem;
}

.footer-icp a {
    color: #555;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-icp a:hover {
    color: var(--text-secondary);
}

.beian-icon {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 4px;
}

/* --- 动画 --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

@keyframes gridShift {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 80px 80px, -80px 0; }
}

@keyframes termFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.12; }
    25% { transform: translateY(-20px) translateX(10px); opacity: 0.22; }
    50% { transform: translateY(-10px) translateX(-5px); opacity: 0.16; }
    75% { transform: translateY(-30px) translateX(8px); opacity: 0.08; }
}

@keyframes shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes moonShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes dotPulse {
    0%, 100% { transform: scale(0.8); opacity: 0.6; box-shadow: 0 0 8px rgba(226,168,90,0.3); }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 24px rgba(226,168,90,0.8), 0 0 60px rgba(226,168,90,0.3); }
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- 滚动显示动画 --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- 响应式 --- */
@media (max-width: 768px) {
    .hero-content {
        gap: 12px;
        padding: 0 16px;
    }

    .hero-logo {
        margin: 0;
    }

    .logo-mark {
        font-size: 5rem;
    }

    .hero-brand {
        font-size: 2rem;
        white-space: normal;
        letter-spacing: 0.04em;
        font-weight: 400;
    }

    .brand-dot {
        width: 10px;
        height: 10px;
        margin: 0 8px;
    }

    .hero-quote-top {
        margin-left: 4%;
        font-size: 0.7rem;
        letter-spacing: 0.06em;
    }

    .hero-quote-bottom {
        margin-right: 4%;
        font-size: 0.7rem;
    }

    .hero-intro {
        font-size: 0.88rem;
        max-width: 88%;
    }

    .hero-typing {
        font-size: 0.85rem;
    }

    .hero-greeting {
        display: none;
    }

    .corner {
        width: 20px;
        height: 20px;
    }

    .corner-tl { top: 20px; left: 20px; }
    .corner-tr { top: 20px; right: 20px; }
    .corner-bl { bottom: 20px; left: 20px; }
    .corner-br { bottom: 20px; right: 20px; }

    .bg-term:nth-child(n+5) { display: none; }

    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .about-stats {
        justify-content: center;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .work-card {
        flex-direction: column;
        gap: 8px;
        padding: 20px 24px;
    }

    .work-card .work-tag {
        min-width: auto;
        align-self: flex-start;
    }

    .cog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cog-column {
        padding: 16px;
    }

    .cog-card {
        padding: 18px 18px;
    }

    .micro-card {
        padding: 16px 20px;
        gap: 12px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: right var(--transition);
        border-left: 1px solid var(--border);
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }
}