/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000;
    --secondary-color: #666;
    --accent-color: #ff4d4d;
    --text-color: #333;
    --light-text: #fff;
    --bg-color: #fff;
    --border-color: #eaeaea;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 4px;
    --font-main: 'Helvetica Neue', Arial, sans-serif;
}



body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('../7205992b31c2686fbff3a20fd4436f0.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

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

/* 移除自定义鼠标 */
.cursor, .cursor-follower {
    display: none;
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--light-text);
    position: relative;
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--light-text);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* 确保所有页面的导航栏样式一致 */
.container .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

.container .nav-links {
    display: flex;
    gap: 30px;
    margin-right: 0;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--light-text);
    transition: var(--transition);
}

/* 主要内容 */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    overflow: visible;
}

/* 英雄区域 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

/* 添加中央光效 */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: pulseLight 4s ease-in-out infinite alternate, expandLight 2s ease-out forwards;
    z-index: 0;
}

@keyframes pulseLight {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.7;
    }
}

@keyframes expandLight {
    0% {
        width: 0;
        height: 0;
    }
    100% {
        width: 100%;
        height: 100%;
    }
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--light-text);
    opacity: 0.8;
}

/* 金属面具 */
.metal-mask {
    position: absolute;
    width: 35%;
    max-width: 450px;
    z-index: 10; /* 提高z-index，确保在所有元素之上 */
    opacity: 0;
    will-change: transform, opacity;
    pointer-events: none; /* 禁止鼠标事件 */
}

.left-mask {
    left: 5%; /* 向左侧移动 */
    bottom: 10%;
    transform: translateX(0) rotate(-5deg);
    animation: fadeInLeftMask 1.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards 0.5s;
}

.right-mask {
    right: 5%; /* 向右侧移动 */
    bottom: 10%;
    transform: translateX(0) rotate(5deg);
    animation: fadeInRightMask 1.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.metal-mask img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    transition: all 0.5s ease;
    transform-origin: center center;
}

@keyframes fadeInLeftMask {
    0% {
        opacity: 0;
        transform: translateX(-30px) rotate(-8deg);
    }
    60% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(-5deg);
    }
}

@keyframes fadeInRightMask {
    0% {
        opacity: 0;
        transform: translateX(30px) rotate(8deg);
    }
    60% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(5deg);
    }
}

/* 添加悬浮效果 */
.left-mask:hover img, .right-mask:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.6));
}

/* 作品预览 */
.work-preview {
    padding: 100px 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.work-item.large {
    grid-row: span 2;
}

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

.work-item:hover img {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: var(--light-text);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.work-item:hover .work-overlay {
    opacity: 1;
    transform: translateY(0);
}

.work-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.work-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 关于我 */
.about {
    padding: 100px 0;
    background-color: rgba(0, 0, 0, 0.8);
    margin: 50px 0;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--light-text);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.8;
    line-height: 1.8;
}

/* 小红书链接 */
.social {
    padding: 100px 0;
}

.social-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.social-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--light-text);
    position: relative;
    display: inline-block;
}

.social-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.social-link img {
    width: 150px;
    height: 150px;
    border-radius: var(--border-radius);
}

.social-info {
    color: var(--light-text);
    text-align: left;
}

.social-info p {
    margin-bottom: 20px;
    opacity: 0.8;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: var(--light-text);
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn:hover {
    background-color: #e63939;
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.4);
}

/* 页脚 */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--light-text);
    padding: 50px 30px;
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--light-text);
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* 动画 */
.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .work-grid {
        grid-template-rows: repeat(3, 250px);
    }
    
    .work-item.large {
        grid-row: span 1;
        grid-column: span 2;
    }
    
    .social-link {
        flex-direction: column;
    }
    
    .metal-mask {
        width: 35%;
        bottom: 15%;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        backdrop-filter: blur(10px);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 250px);
    }
    
    .work-item.large {
        grid-column: auto;
    }
    
    .about-content h2,
    .social-content h2 {
        font-size: 2rem;
    }
    
    .metal-mask {
        width: 30%;
        bottom: 20%;
        right: 5%;
    }
    
    .main-title {
        font-size: 3rem;
        letter-spacing: 5px;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .corner-decoration {
        width: 20px;
        height: 20px;
    }
    
    .top-left, .bottom-left {
        left: 20px;
    }
    
    .top-right, .bottom-right {
        right: 20px;
    }
    
    .top-left, .top-right {
        top: 20px;
    }
    
    .bottom-left, .bottom-right {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .metal-mask {
        width: 40%;
        bottom: 30%;
        right: 0;
    }
    
    .main-title {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
    
    .subtitle {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }
    
    .description {
        font-size: 0.7rem;
        letter-spacing: 3px;
    }
    
    .corner-decoration {
        display: none;
    }
}

/* 面具容器 */
.masks-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: visible;
    z-index: 1;
}

/* 英雄区域文字和线条 */
.hero-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    z-index: 2;
    opacity: 0;
    animation: fadeInText 1.5s ease forwards 1.8s;
    perspective: 1000px;
}

.hero-text-content {
    text-align: center;
    color: #fff;
    transform-style: preserve-3d;
    position: relative;
}

/* 水波动画效果 */
.subtitle {
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px) rotateX(30deg);
    animation: waterRise 1.2s ease-out forwards 1.8s;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.main-title {
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 4.5rem;
    font-weight: 600;
    letter-spacing: 8px;
    margin: 10px 0;
    background: linear-gradient(to right, #ffffff, #f5f5f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotateX(45deg);
    animation: waterRise 1.5s ease-out forwards 2.2s;
}

.description {
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 3px;
    opacity: 0;
    margin-top: 10px;
    transform: translateY(20px) rotateX(30deg);
    animation: waterRise 1.2s ease-out forwards 2.6s;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

@keyframes waterRise {
    0% {
        opacity: 0;
        transform: translateY(40px) rotateX(45deg);
        filter: blur(10px) brightness(0.8);
    }
    50% {
        opacity: 0.5;
        filter: blur(5px) brightness(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
        filter: blur(0) brightness(1);
    }
}

/* 水波纹效果 */
.main-title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    animation: waterRipple 2s ease-out forwards 3s;
}

@keyframes waterRipple {
    0% {
        width: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        width: 80%;
        opacity: 0.6;
    }
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);
    opacity: 0;
    animation: fadeIn 1s ease forwards 2.3s, waterPulse 4s ease-in-out infinite 3.5s;
}

@keyframes waterPulse {
    0% {
        opacity: 0.3;
        width: 40%;
    }
    50% {
        opacity: 0.7;
        width: 60%;
    }
    100% {
        opacity: 0.3;
        width: 40%;
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* 线条上的点 */
.line-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
}

.left-dot {
    right: 0;
    animation: fadeInDot 0.5s ease forwards 2.8s;
}

.right-dot {
    left: 0;
    animation: fadeInDot 0.5s ease forwards 2.8s;
}

@keyframes fadeInDot {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 角落装饰元素 */
.corner-decoration {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
}

.top-left {
    top: 100px; /* 向下移动 */
    left: 50px;
    border-right: none;
    border-bottom: none;
    animation: fadeInCorner 0.8s ease forwards 2.5s;
}

.top-right {
    top: 100px; /* 向下移动 */
    right: 50px;
    border-left: none;
    border-bottom: none;
    animation: fadeInCorner 0.8s ease forwards 2.7s;
}

.bottom-left {
    display: none;
}

.bottom-right {
    bottom: 50px;
    right: 50px;
    border-left: none;
    border-top: none;
    animation: fadeInCorner 0.8s ease forwards 3.1s;
}

@keyframes fadeInCorner {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 页面容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 50px;
    position: relative;
}

@media (max-width: 768px) {
    .container {
        padding: 80px 15px 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 70px 10px 20px;
    }
} 