/* ========================================
   TOP糯米 - 个人主页样式
   黑色背景 · 简洁高效
   ======================================== */

/* CSS Variables */
:root {
    --color-bg: #000000;
    --color-surface: rgba(0, 20, 0, 0.6);
    --color-border: rgba(0, 255, 65, 0.3);
    --color-text: #00ff41;
    --color-text-muted: #008f41;
    --color-accent: #00ff41;
    --color-accent-glow: rgba(0, 255, 65, 0.5);
    --color-accent-bg: rgba(0, 255, 65, 0.15);
    --color-secondary: #00ff41;
    --space-unit: 8px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Selection */
::selection {
    background: var(--color-accent);
    color: #000;
}

/* ========================================
   Layout
   ======================================== */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--space-unit) * 4) calc(var(--space-unit) * 3);
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--space-unit) * 4);
    width: 100%;
}

.info-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--space-unit) * 4);
    padding: calc(var(--space-unit) * 3);
}

/* Name Block */
.name-block {
    text-align: center;
}

.greeting {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-text-muted);
    margin-bottom: calc(var(--space-unit) * 1);
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    95% { opacity: 0.9; }
    96% { opacity: 1; }
}

.name {
    font-size: clamp(56px, 10vw, 96px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-accent);
    text-shadow:
        0 0 20px var(--color-accent),
        0 0 40px var(--color-accent);
    letter-spacing: 8px;
}

.title-badge {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--space-unit) * 1);
    margin-top: calc(var(--space-unit) * 3);
    padding: calc(var(--space-unit) * 1) calc(var(--space-unit) * 3);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 13px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-badge::before {
    content: '>';
    animation: blink 1s step-end infinite;
}

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

/* Bio */
.bio {
    text-align: left;
}

.bio-text {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.9;
    margin-bottom: calc(var(--space-unit) * 2);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
    text-indent: 2em;
}

.bio-text:last-child {
    margin-bottom: 0;
}

.bio-text strong {
    color: var(--color-accent);
    font-weight: 600;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(var(--space-unit) * 1.5);
}

.tag {
    padding: calc(var(--space-unit) * 0.8) calc(var(--space-unit) * 2);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 12px;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    cursor: default;
}

.tag:hover, .tag:active {
    background: var(--color-accent-bg);
    border-color: var(--color-accent);
    color: var(--color-text);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5), 0 0 40px rgba(0, 255, 65, 0.3), 0 0 60px rgba(0, 255, 65, 0.1);
}

.tag.primary {
    background: var(--color-accent-bg);
    border-color: rgba(0, 255, 65, 0.5);
    color: var(--color-accent);
}

/* Social Links */
.social-links {
    display: flex;
    gap: calc(var(--space-unit) * 2);
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #000;
    box-shadow: 0 0 20px var(--color-accent-glow);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--space-unit) * 2);
    padding: calc(var(--space-unit) * 3);
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer-text {
    order: 2;
    font-size: 12px;
    color: var(--color-text-muted);
}

.footer-text a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    text-shadow: 0 0 10px var(--color-accent);
}

.footer-text .beian {
    margin-left: 8px;
    opacity: 0.7;
}

.footer-text .beian a {
    color: var(--color-text-muted);
}

.footer-text .beian a:hover {
    color: var(--color-accent);
    text-shadow: none;
}

/* ========================================
   Section Styles
   ======================================== */
.section {
    width: 100%;
    margin-top: calc(var(--space-unit) * 5);
}

.section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-text);
    margin-bottom: calc(var(--space-unit) * 3);
    text-align: center;
    position: relative;
    font-weight: 500;
}

.section-title::before,
.section-title::after {
    content: '//';
    margin: 0 calc(var(--space-unit) * 2);
    opacity: 0.5;
}

/* Interests Grid */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: calc(var(--space-unit) * 2);
}

.interest-item {
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: calc(var(--space-unit) * 2.5);
    text-align: center;
    transition: all 0.3s ease;
}

.interest-item:hover, .interest-item:active {
    background: var(--color-accent-bg);
    border-color: var(--color-accent);
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.5),
        0 0 40px rgba(0, 255, 65, 0.3),
        0 0 60px rgba(0, 255, 65, 0.1);
}

.interest-icon {
    font-size: 10px;
    display: block;
    margin-bottom: calc(var(--space-unit) * 1.5);
    color: var(--color-text-muted);
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: color 0.3s ease;
}

.interest-item:hover .interest-icon, .interest-item:active .interest-icon {
    color: var(--color-text);
}

.interest-icon::before {
    content: '';
}

.interest-icon::after {
    content: '';
}

.interest-item h3 {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.interest-item:hover h3, .interest-item:active h3 {
    color: var(--color-text);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .hero {
        gap: calc(var(--space-unit) * 3);
    }

    .info-section {
        padding: calc(var(--space-unit) * 2);
    }

    .tags {
        gap: calc(var(--space-unit) * 1);
    }

    .tag {
        font-size: 11px;
        padding: calc(var(--space-unit) * 0.6) calc(var(--space-unit) * 1.5);
    }

    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: calc(var(--space-unit) * 4) calc(var(--space-unit) * 3);
    }

    .name {
        font-size: 40px;
        letter-spacing: 4px;
    }

    .bio-text {
        font-size: 14px;
    }
}

/* ========================================
   Cursor Glow
   ======================================== */
.cursor-glow {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
}
