/* ==================== 浅色系配色方案 ==================== */
:root {
    --nuxt-primary: #00DC82;
    --nuxt-primary-dark: #00C16A;
    --nuxt-secondary: #020420;
    --nuxt-surface: #FFFFFF;
    --nuxt-surface-light: #F3F4F6;
    --nuxt-text: #1F2937;
    --nuxt-text-muted: #6B7280;
    --nuxt-border: #E5E7EB;
    --nuxt-gradient-start: #00DC82;
    --nuxt-gradient-end: #00A86B;
    --nuxt-bg: #F9FAFB;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--nuxt-bg);
    color: var(--nuxt-text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nuxt-border);
    z-index: 1000;
    padding: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--nuxt-primary) 0%, var(--nuxt-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--nuxt-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
}

.nav-menu a {
    color: var(--nuxt-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: var(--nuxt-primary);
}

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

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

.nav-btn {
    padding: 10px 24px;
    background: var(--nuxt-primary);
    color: var(--nuxt-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--nuxt-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 220, 130, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--nuxt-text);
    transition: all 0.3s;
}

/* ==================== Hero 区域 ==================== */
.hero {
    display: flex;
    align-items: center;
    padding: 180px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 220, 130, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 220, 130, 0.1);
    color: var(--nuxt-primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 220, 130, 0.3);
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--nuxt-text);
}

.gradient-text {
    background: linear-gradient(135deg, var(--nuxt-gradient-start) 0%, var(--nuxt-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--nuxt-text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-visual {
    animation: fadeIn 1s ease-out 0.3s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.code-window {
    background: #F8F9FA;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 80px rgba(0, 220, 130, 0.1);
    border: 1px solid var(--nuxt-border);
}

.code-header {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-dots {
    display: flex;
    gap: 8px;
}

.code-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots .dot.red { background: #FF5252; }
.code-dots .dot.yellow { background: #FFD740; }
.code-dots .dot.green { background: #00DC82; }

.code-title {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.code-content {
    padding: 24px;
    background: #1E293B;
}

.code-content pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.code-content code {
    color: #E2E8F0;
}

.code-content .keyword {
    color: #C792EA;
    font-weight: 600;
}

.code-content .property {
    color: #82AAFF;
}

.code-content .string {
    color: #C3E88D;
}

.code-content .boolean {
    color: #F78C6C;
    font-weight: 600;
}

/* ==================== 项目区域 ==================== */
.projects {
    padding: 100px 20px;
    background: var(--nuxt-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--nuxt-text) 0%, var(--nuxt-text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 16px;
    color: var(--nuxt-text-muted);
}

.projects-grid {
    display: grid;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.project-card {
    background: var(--nuxt-surface);
    border: 1px solid var(--nuxt-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--nuxt-primary) 0%, var(--nuxt-gradient-end) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover {
    border-color: var(--nuxt-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 220, 130, 0.15);
}

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

.project-header {
    margin-bottom: 20px;
}

.project-title h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--nuxt-text);
}

.project-title p {
    font-size: 15px;
    color: var(--nuxt-primary);
    font-weight: 500;
}

.project-description {
    color: var(--nuxt-text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.project-stats {
    margin-bottom: 20px;
}

.button-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.github-btn {
    border-radius: 6px;
}

.button-wrapper img {
    height: 20px;
    border-radius: 4px;
}

.project-links {
    display: flex;
    gap: 12px;
}

.link-wrapper {
    display: flex;
    gap: 12px;
}

.project-links a {
    padding: 12px 24px;
    background: var(--nuxt-surface-light);
    color: var(--nuxt-text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid var(--nuxt-border);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-links a:hover {
    background: var(--nuxt-primary);
    color: var(--nuxt-secondary);
    border-color: var(--nuxt-primary);
}

.github-link:hover {
    background: #24292f;
    color: #fff;
    border-color: #24292f;
}

.gitee-link:hover {
    background: #c71d23;
    color: #fff;
    border-color: #c71d23;
}

/* ==================== 关于作者区域 ==================== */
.about {
    padding: 100px 20px;
    background: var(--nuxt-bg);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 220, 130, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.author-card {
    background: var(--nuxt-surface);
    border: 1px solid var(--nuxt-border);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.author-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, var(--nuxt-primary) 0%, var(--nuxt-gradient-end) 100%);
    border-radius: 0 0 4px 4px;
}

.author-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--nuxt-primary);
    box-shadow: 0 8px 24px rgba(0, 220, 130, 0.3);
    background: var(--nuxt-surface-light);
}

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

.author-card h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--nuxt-text);
}

.author-username {
    font-size: 16px;
    color: var(--nuxt-primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.author-email {
    color: var(--nuxt-text-muted);
    margin-bottom: 24px;
}

.author-bio {
    color: var(--nuxt-text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.author-links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-link {
    padding: 12px 28px;
    background: var(--nuxt-surface-light);
    color: var(--nuxt-text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid var(--nuxt-border);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-link:hover {
    background: var(--nuxt-primary);
    color: var(--nuxt-secondary);
    border-color: var(--nuxt-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 220, 130, 0.3);
}

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

/* ==================== 页脚 ==================== */
.footer {
    background: var(--nuxt-surface);
    border-top: 1px solid var(--nuxt-border);
    padding: 40px 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--nuxt-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--nuxt-primary);
}

.footer-police {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--nuxt-text-muted);
    font-size: 13px;
}

.footer-telecom {
    color: var(--nuxt-text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.footer-police img {
    width: 20px;
    height: auto;
}

.footer-copy {
    color: var(--nuxt-text-muted);
    font-size: 13px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 48px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nuxt-surface);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--nuxt-border);
        gap: 16px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-btn {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .code-content pre {
        font-size: 12px;
    }

    .section-title {
        font-size: 32px;
    }

    .author-card {
        padding: 32px 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }

    .footer-police {
        flex-direction: column;
        gap: 8px;
    }

    .author-links {
        flex-direction: column;
    }
}

/* ==================== 滚动条样式 ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--nuxt-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--nuxt-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--nuxt-primary);
}
