/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航样式 */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

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

.logo {
    font-family: 'Staatliches', cursive;
    font-size: 24px;
    font-weight: 400;
    color: white;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff0000;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

/* 头部样式 */
.header {
    height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 1;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transition: all 0.3s ease;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.header h1 {
    font-family: 'Staatliches', cursive;
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 400;
    color: white;
    line-height: 0.9;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.header h2 {
    font-family: 'Staatliches', cursive;
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 400;
    color: #ff0000;
    line-height: 0.9;
    letter-spacing: 3px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-icon {
    width: 2px;
    height: 40px;
    background: white;
    position: relative;
    animation: scroll 2s infinite;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border: 2px solid white;
    border-radius: 50%;
    animation: scrollDot 2s infinite;
}

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

@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(32px); opacity: 0; }
}

/* 红色区域样式 */
.red-section {
    background-color: #ff0000;
    padding: 120px 0;
    color: white;
}

.red-section-title {
    font-family: 'Staatliches', cursive;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 80px;
    letter-spacing: 1px;
}

.red-section-content {
    display: flex;
    gap: 160px;
    align-items: flex-start;
}

.image-placeholder {
    flex: 1;
    min-height: 400px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.red-content {
    flex: 1;
    padding-top: 40px;
}

.red-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 400;
}

.red-button {
    display: inline-block;
    background: white;
    color: #ff0000;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.red-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 服务区域样式 */
.services {
    padding: 120px 0;
    background: #f8f8f8;
}

.services h3 {
    font-family: 'Staatliches', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 80px;
    line-height: 1.1;
    letter-spacing: 2px;
    color: #333;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    margin-top: 80px;
}

.service-item {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-item h4 {
    font-family: 'Staatliches', cursive;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #ff0000;
    letter-spacing: 1px;
}

.service-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
}

/* 作品展示区域样式 */
.portfolio {
    padding: 120px 0;
    background: white;
}

.portfolio h3 {
    font-family: 'Staatliches', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 80px;
    line-height: 1.1;
    letter-spacing: 2px;
    color: #333;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 80px;
}

.portfolio-item {
    aspect-ratio: 1;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* 联系区域样式 */
.contact {
    background-color: #ff0000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.main-title {
    font-family: 'Staatliches', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 60px;
    letter-spacing: 2px;
    color: #000000;
}

.email-section {
    font-family: 'Staatliches', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    letter-spacing: 2px;
}

.email-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.email-link:hover {
    opacity: 0.8;
}

.email-label {
    color: white;
}

.email-domain {
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .red-section-content {
        flex-direction: column-reverse;
        gap: 40px;
    }
    
    .image-placeholder {
        width: 100%;
        min-height: 250px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .red-section {
        padding: 80px 0;
    }
    
    .red-section-title {
        margin-bottom: 40px;
    }
    
    .image-placeholder {
        width: 100%;
        min-height: 200px;
    }
    
    .services, .portfolio {
        padding: 80px 0;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact {
        padding: 80px 0;
    }
}