:root {
    --primary-100:#658864;
    --primary-200:#B7B78A;
    --primary-300:#fdf6fd;
    --accent-100:#bc6c25;
    --accent-200:#ecd79b;
    --text-100:#292524;
    --text-200:#78716c;
    --bg-100:#DDDDDD;
    --bg-200:#EEEEEE;
    --bg-300:#d1d1d1;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-100);
    background-color: var(--bg-200);
    overflow-x: hidden;
}

/* Personal Info Section */
.personal-info {
    position: fixed;
    top: 135px;
    left: 40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    z-index: 100;
    width: 320px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: visible;
}

/* Pushpin Style */
.pushpin {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    width: 30px;
    height: 40px;
    animation: pushpinWiggle 6s ease-in-out infinite;
    transform-origin: center 35px;
}

@keyframes pushpinWiggle {
    0%, 100% { transform: translateX(-50%) rotate(-2deg); }
    50% { transform: translateX(-50%) rotate(2deg); }
}

.pushpin-head {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 50%, #c0c0c0 100%);
    border-radius: 50%;
    box-shadow: 
        -1px -1px 2px rgba(255,255,255,0.8),
        2px 2px 3px rgba(0,0,0,0.2);
}

.pushpin-body {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 25px;
    background: linear-gradient(90deg, #c0c0c0 0%, #e0e0e0 50%, #c0c0c0 100%);
    border-radius: 2px;
    box-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.pushpin::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(
        circle at center,
        rgba(255,255,255,0.9) 0%,
        rgba(255,255,255,0) 70%
    );
    border-radius: 50%;
}

.avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, var(--primary-100), var(--primary-200)) border-box;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.avatar:hover img {
    transform: scale(1.1);
}

.info-content {
    text-align: center;
    position: relative;
}

.info-content h3 {
    color: var(--text-100);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    background: linear-gradient(45deg, var(--primary-100), var(--text-100));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-content .email {
    color: var(--text-200);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.info-content .email:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.info-content .email i {
    margin-right: 0.5rem;
    color: var(--primary-100);
}

.info-content .email a {
    color: var(--text-200);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content .email a:hover {
    color: var(--primary-100);
}

.info-content .bio {
    color: var(--text-200);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 0.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--text-100);
    font-size: 1.4rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.social-links a:hover {
    color: var(--primary-100);
    transform: translateY(-3px) rotate(8deg);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Pin Style */
.pin {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
    z-index: 101;
    filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.2));
    transform-origin: center 30px;
    animation: pinWiggle 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pinWiggle {
    0%, 100% { transform: translateX(-50%) rotate(-5deg); }
    50% { transform: translateX(-50%) rotate(2deg); }
}

.pin-head {
    width: 24px;
    height: 24px;
    background: radial-gradient(
        circle at 40% 40%,
        #f0f0f0 0%,
        #d0d0d0 50%,
        #a0a0a0 100%
    );
    border-radius: 50%;
    position: relative;
    box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.2);
}

.pin-needle {
    width: 3px;
    height: 30px;
    background: linear-gradient(
        to right,
        #a0a0a0 0%,
        #e0e0e0 50%,
        #a0a0a0 100%
    );
    position: absolute;
    left: 50%;
    top: 90%;
    transform: translateX(-50%);
    border-radius: 0 0 2px 2px;
}

.pin::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .personal-info {
        position: static;
        margin: 100px auto 2rem;
        width: calc(100% - 40px);
    }
    
    main {
        margin-left: 0;
        width: 100%;
        padding: 0 20px;
    }
}

@media (min-width: 769px) {
    main {
        margin-left: 400px;
        width: calc(100% - 400px);
        padding-right: 40px;
    }
    
    .container {
        padding-left: 0;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-100);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
}

/* 在移动端隐藏自定义光标 */
@media (max-width: 768px) {
    .cursor {
        display: none;
    }
    
    /* 在移动端恢复默认光标 */
    * {
        cursor: auto !important;
    }
}

/* 打字机光标样式 */
.typing-cursor {
    display: inline-block;
    width: 3px;
    animation: blink 0.7s infinite;
    color: var(--text-100);
}

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

/* Remove navigation styles */
.navbar,
.nav-content,
.logo,
.menu-toggle,
.menu-overlay,
.menu-links {
    display: none;
}

/* 添加加载屏幕样式 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-200);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* 加载屏幕中的标题样式 */
.loading-screen .hero-title {
    font-size: 6rem; /* 增大字体大小 */
    color: var(--text-100);
    margin: 0;
    text-align: center;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .loading-screen .hero-title {
        font-size: 3.5rem; /* 移动端稍微小一点但仍然保持醒目 */
        padding: 0 1rem;
        white-space: normal;
        word-break: keep-all;
    }
}

.main-content {
    transition: opacity 0.5s ease;
}

/* 移除原来的hero section样式 */
.hero {
    display: none;
}

/* Sections */
section {
    padding: 8rem 0;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
}

h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--primary-100);
}

.large-text {
    font-size: 1.5rem;
    color: var(--text-200);
    line-height: 1.8;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    gap: 8rem;
    margin-top: 4rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.project-card:nth-child(even) {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "image content";
}

.project-card:nth-child(even) .project-content {
    grid-area: content;
}

.project-card:nth-child(even) .project-image {
    grid-area: image;
}

.project-content {
    padding-right: 2rem;
}

.project-category {
    color: var(--primary-100);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.project-card h3 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: var(--text-100);
}

.project-card p {
    color: var(--text-200);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.project-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.feature-tag {
    padding: 0.4rem 1rem;
    background: var(--bg-100);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-200);
}

.project-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-100);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

.project-link .arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.project-link:hover .arrow {
    transform: translateX(5px);
}

/* 添加分隔线 */
.project-card:not(:last-child) {
    padding-bottom: 8rem;
    border-bottom: 1px solid var(--bg-300);
}

@media (max-width: 1024px) {
    .project-card,
    .project-card:nth-child(even) {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "content"
            "image";
        gap: 3rem;
    }

    .project-content {
        padding-right: 0;
    }

    .project-card h3 {
        font-size: 2rem;
    }

    .project-card:not(:last-child) {
        padding-bottom: 6rem;
    }

    .projects-grid {
        gap: 6rem;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        gap: 4rem;
    }

    .project-features {
        gap: 0.5rem;
    }

    .feature-tag {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }

    .project-card:not(:last-child) {
        padding-bottom: 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
        padding: 0 1rem;
        white-space: normal;
        word-break: keep-all;
    }
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    color: var(--text-200);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem; /* 控制版权信息和备案信息之间的间距 */
}

/* 备案信息样式 */
.beian {
    margin-top: 0; /* 移除之前的顶部边距 */
}

.beian a {
    color: var(--text-200);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.beian a:hover {
    color: var(--primary-100);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Contact Section */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 4rem;
}

.contact-link {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-100);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-100);
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-100);
    transform: translateX(10px);
}

.contact-link:hover::after {
    width: 100%;
}

.link-text {
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.link-text i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.contact-link:hover .link-text i {
    transform: scale(1.1) rotate(-5deg);
}

.contact-link .arrow {
    margin-left: auto;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.contact-link:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .contact-links {
        margin-top: 2rem;
        gap: 1rem;
    }
    
    .link-text {
        font-size: 1.1rem;
    }
    
    .link-text i {
        font-size: 1.3rem;
    }
}

/* Animations */
@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 10px);
        opacity: 0;
    }
}
