* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    list-style: none;
}

html, body,.section-wrapper{
    width: 100%;
    overflow-x: hidden; 
    list-style: none;
    position: relative;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1D2939;
    background-color: #F9FAFB;
    line-height: 1.6;
}

/* 基础样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    text-align: center;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #165DFF;
    color: white;
}

.btn-primary:hover {
    background-color: #0E4CD1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.btn-outline {
    border: 2px solid #165DFF;
    color: #165DFF;
    background: transparent;
}

.btn-outline:hover {
    background-color: rgba(22, 93, 255, 0.05);
    transform: translateY(-2px);
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section-white {
    background-color: white;
}

.section-gray {
    background-color: #f1f3f5;
}

.section-title {
    position: relative;
    margin-bottom: 4rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #165DFF;
    margin: 1rem auto 0;
}

.section-desc {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #666;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #165DFF;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
}

.nav-link:hover {
    color: #165DFF;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-content a {
    color: #1D2939;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f3f5;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem 0;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
}

.mobile-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f5;
}

.navbar.scrolled {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

/* 英雄区域 */
.hero {
    min-height: 100vh;
    padding-top: 8rem;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-1 {
    position: absolute;
    top: 20px;
    right: -200px;
    width: 400px;
    height: 400px;
    background-color: rgba(22, 93, 255, 0.1);
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
}

.hero-bg-2 {
    position: absolute;
    top: 30%;
    left: -200px;
    width: 400px;
    height: 400px;
    background-color: rgba(255, 125, 0, 0.1);
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    background-color: rgba(22, 93, 255, 0.1);
    color: #165DFF;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: linear-gradient(to right, #165DFF, #722ED1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    margin: 2rem 0;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.skill-tag {
    background-color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-tag .icon {
    color: #165DFF;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-text {
    color: #666;
    font-weight: 500;
}

.social-icon {
    font-size: 1.2rem;
    color: #666;
}

.social-icon:hover {
    color: #165DFF;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

.hobby-card {
    position: absolute;
    background-color: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 200px;
}

.hobby-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.hobby-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.hobby-desc {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0;
}

.hobby-card-1 {
    bottom: -20px;
    left: 5%;
}

.hobby-card-2 {
    top: -20px;
    right: 5%;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
}

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

.scroll-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

/* 关于我 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    max-width: 100%;
}

.about-img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.design-philosophy {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 300px;
}

.philosophy-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.philosophy-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(114, 46, 209, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #722ED1;
    font-size: 1.2rem;
}

.philosophy-title {
    font-weight: 600;
    margin-bottom: 0;
}

.philosophy-text {
    font-size: 0.9rem;
    color: #666;
}

.about-text {
    padding: 1rem 0;
}

.about-desc {
    margin-bottom: 1.5rem;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0 3rem;
}

.detail-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.detail-content {
    color: #666;
    font-size: 0.95rem;
}

/* 技能 */
.skills-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.skill-category {
    margin-bottom: 2rem;
}

.skill-bar-container {
    margin-bottom: 1.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
}

.skill-percent {
    color: #666;
}

.skill-bar {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: #165DFF;
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.tool-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(22, 93, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #165DFF;
    font-size: 1.2rem;
}

.tool-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.tool-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0;
}

/* 作品集展示 */
.projects {
    overflow: hidden;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    background-color: #f1f3f5;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: #165DFF;
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    aspect-ratio: 4/3;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem 1.5rem 1.5rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-tag {
    display: inline-block;
    background-color: rgba(22, 93, 255, 0.8);
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.project-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
}

.project-link {
    color: #165DFF;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    color: white;
}

.more-projects {
    text-align: center;
    margin-top: 3rem;
}

/* Contact Me */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 500;
    color: #333;
}

.form-input, .form-textarea, .form-select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: #165DFF;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-info {
    background-color: #f1f3f5;
    padding: 2.5rem;
    border-radius: 12px;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(22, 93, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #165DFF;
    flex-shrink: 0;
}

.info-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.info-content {
    color: #666;
    margin-bottom: 0;
}

.contact-social {
    margin-top: 3rem;
}

.social-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-social-links {
    display: flex;
    gap: 1rem;
}

.contact-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
}

.contact-social-icon:hover {
    background-color: #165DFF;
    color: white;
}

/* 页脚 */
.footer {
    background-color: #1D2939;
    color: white;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-desc {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-icon {
    color: #9ca3af;
    font-size: 1.2rem;
}

.footer-social-icon:hover {
    color: white;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link {
    color: #9ca3af;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #374151;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.copyright {
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-link {
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-bottom-link:hover {
    color: white;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #165DFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    border: none;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}


/* Games按钮样式 */
.game-button {
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    text-decoration: none;
}

/* 按钮主体 */
.button-base {
    width: 5rem;
    height: 5rem;
    position: relative;
    overflow: hidden;
    animation: float 3s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.button-base:hover {
    transform: scale(1.05);
}

/* Games icon */
.game-icon {
    width: 100%;
    height: 100%;
    padding: 0.5rem;
    object-fit: contain;
}

/* 动画定义 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 响应式调整 */
@media (min-width: 768px) {
    .button-base {
        width: 6rem;
        height: 6rem;
    }
}


/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content,
    .about-content,
    .skills-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        margin-top: 3rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .hobby-card {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-btn {
        display: block;
    }
    
    .about-details {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .hobby-card {
        width: 150px;
        padding: 0.8rem;
    }
    
    .design-philosophy {
        max-width: 250px;
        padding: 1rem;
        bottom: -20px;
        right: -20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .profile-img {
        width: 250px;
        height: 250px;
    }
    
    .hobby-card {
        display: none;
    }
    
    .design-philosophy {
        position: static;
        max-width: 100%;
        margin-top: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
}