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

:root {
    --color-text: #1a1a1a;
    --color-text-light: #666;
    --color-bg: #ffffff;
    --color-border: #e5e5e5;
    --color-link: #0066cc;
    --color-link-hover: #0052a3;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --max-width: 700px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
}

/* Profile Section */
.profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--color-border);
}

.profile-text {
    flex: 1;
}

.name-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    flex-wrap: wrap;
}

.profile h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.03em;
}

.social-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.social-link {
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--color-link);
}

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

.chinese-name {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
    font-weight: 400;
}

.intro {
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.intro a {
    color: var(--color-link);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.intro a:hover {
    border-bottom-color: var(--color-link);
}

/* Products */
.products-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

/* Side Projects */
.side-projects {
    margin-bottom: var(--spacing-lg);
}

.side-projects h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.product-card {
    background: var(--color-bg);
    padding: var(--spacing-md);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: all 0.2s;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.product-card p {
    color: var(--color-text-light);
    line-height: 1.6;
}

.product-card-with-image {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.product-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.product-content {
    flex: 1;
}


/* Responsive */
@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2.5rem;
    }

    .container {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .profile {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    .featured-product h2 {
        font-size: 1.75rem;
    }

    .product-card-with-image {
        flex-direction: column;
        text-align: center;
    }

    .product-image {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--spacing-sm);
    }

    .profile-image {
        width: 80px;
        height: 80px;
    }
}
