@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.scroll-notice:hover .scroll-notice-content {
    animation-play-state: paused;
}

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --background: #020409;
    --surface: #1a212e;
    --text: #e5e7eb;
    --text-secondary: #a0aec0;
}

:root[class="light"] {
    --primary: #4f46e5;
    --secondary: #7c3aed;
    --accent: #0891b2;
    --background: #f9fafb;
    --surface: #f0f2f5;
    --text: #1f2937;
    --text-secondary: #4b5563;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    transition: all 0.3s ease;
}

html.dark body {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

html.light body {
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem;
    position: relative;
    z-index: 1;
}

html.dark .background-overlay {
    background: rgba(3, 7, 18, 0.8);
}

html.light .background-overlay {
    background: rgba(255, 255, 255, 0);
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transition: background 0.3s ease;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 0;
    margin-bottom: 0rem;
    border-bottom: 0px solid rgba(255, 255, 255, 0.1);
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

main {
    display: grid;
    gap: 2rem;
}

section {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-card:hover::before {
    opacity: 0.1;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-icon {
    width: 3rem;
    height: 3rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.1);
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.contact-info {
    display: grid;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    section {
        padding: 1.5rem;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* 高亮按钮样式 */
.highlight-btn {
    background-color: #0a6; /* 亮绿色背景 */
    color: #000; /* 黑色文字 */
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(25, 204, 0, 0.5);
}

.highlight-btn:hover {
    background-color: #085; /* 悬停时颜色变深 */
    box-shadow: 0 6px 15px rgba(25, 170, 0, 0.7);
}