/* ===== 区块通用样式 ===== */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ===== Hero 区块 ===== */
#hero {
    text-align: center;
}

#hero h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

#hero p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    margin: 0 auto;
    stroke: rgba(255, 255, 255, 0.5);
}

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

/* ===== 作品区块 ===== */
#works h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: bold;
    margin-bottom: 1rem;
}

#works .subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4rem;
}

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

.work-card {
    padding: 1.5rem;
    transition: transform 0.3s;
    cursor: pointer;
}

.work-card:hover {
    transform: scale(1.02);
}

.work-image {
    aspect-ratio: 16/9;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(112, 0, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.work-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.3), rgba(112, 0, 255, 0.3), rgba(0, 243, 255, 0.3));
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.work-image svg {
    width: 64px;
    height: 64px;
    stroke: rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.work-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.work-card h3:hover {
    color: var(--color-primary);
}

.work-card .category {
    color: var(--color-primary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.work-card .work-short-desc {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.work-card .work-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.work-card .work-year {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Courier New', monospace;
}

.work-card .work-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.work-card .work-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.work-card .work-link:hover {
    color: var(--color-secondary);
}

.work-card .work-link:hover svg {
    transform: translateX(4px);
}

.work-card p {
    color: rgba(255, 255, 255, 0.6);
}

/* ===== 关于区块 ===== */
#about .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    #about .about-grid {
        grid-template-columns: 1fr;
    }
}

#about p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.skills-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: transform 0.2s;
}

.skill-tag:hover {
    transform: scale(1.05);
}

.about-visual {
    aspect-ratio: 1;
    position: relative;
}

.ring {
    position: absolute;
    border: 2px solid rgba(0, 243, 255, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.ring:nth-child(1) {
    inset: 0;
    animation-duration: 20s;
}

.ring:nth-child(2) {
    inset: 15%;
    animation-duration: 25s;
}

.ring:nth-child(3) {
    inset: 30%;
    animation-duration: 30s;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.center-glow {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-glow::before {
    content: '';
    width: 128px;
    height: 128px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    filter: blur(64px);
    animation: pulse 3s ease-in-out infinite;
}

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

/* ===== 联系区块 ===== */
#contact {
    text-align: center;
}

#contact h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: bold;
    margin-bottom: 1rem;
}

#contact .subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    min-width: 200px;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.contact-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 243, 255, 0.3);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.contact-info {
    flex: 1;
}

.contact-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.25rem;
}

.contact-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .contact-links {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-link {
        width: 100%;
        min-width: auto;
    }
}
