/* 基础重置和全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 - 微透明效果 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(238, 241, 242, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    font-family: 'Brush Script MT', cursive;
    font-size: 24px;
    font-weight: 400;
    color: #333;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #666;
}

.nav-utils {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-util {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-util:hover {
    color: #666;
}


.nav-icon {
    width: 22px; /* 按宽度等比缩放以便不同形状的图标视觉一致 */
    height: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nav-util:hover .nav-icon {
    opacity: 1;
}

/* 单独为导航栏的搜索图标设置更合适的尺寸 */
.nav-util.search-icon .nav-icon,
.nav-util.camera-icon .nav-icon,
.nav-util.cart-icon .nav-icon {
    width: 22px; /* 保持与 .nav-icon 一致，必要时可单独覆盖 */
    height: auto;
}

/* Banner 主横幅样式 */
.banner {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
    color: white;
}

/* 固定在轮播上的文本层（不随 slide 移动） */
.carousel .banner-content.fixed {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none; /* 文本层不拦截鼠标，用于交互元素仍在下层 */
}

.carousel .banner-title {
    font-size: 48px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    line-height: 1.1;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel .banner-line1 { margin-bottom: 10px; }
.carousel .banner-line2 { margin-left: 0; }

/* 轮播结构 */
.carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-btn:focus { outline: none; }

.carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
}

.carousel-dots .dot.active {
    background: rgba(255,255,255,1);
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner-line1 {
    display: block;
    margin-bottom: 20px;
    margin-right: 100px;
}

.banner-line2 {
    display: block;
    margin-left: 100px;
}

/* 精选作品模块样式 */
.selected-works {
    padding: 80px 0;
    --selected-works-bottom: #F6F6F6;
    background: linear-gradient(180deg, #ffffff 70%, var(--selected-works-bottom) 100%);
    position: relative;
}

.selected-works::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -40px;
    height: 120px;
    background-image: url("img/矩形 5@1x.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateY(40%);
    pointer-events: none;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.title-main {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.title-sub {
    display: block;
    font-size: 16px;
    color: #666;
    font-weight: 400;
    text-transform: lowercase;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.work-card-2,
.work-card-4 {
    margin-top: 50%;
}

.work-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.work-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.work-title {
    padding: 20px 20px 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.work-details {
    display: block;
    padding: 0 20px 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.work-details:hover {
    color: #333;
}

/* 作品集模块样式 */
.portfolio {
    padding: 80px 0 0;
    background-color: #fff;
}

.portfolio-title {
    margin-bottom: 60px;
}

.portfolio-title .title-line {
    font-size: 24px;
    color: #333;
    margin: 0 20px;
}

.portfolio-content {
    display: grid;
    grid-template-columns: 0.6fr 1.4fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

/* 作品集左侧图片重叠效果 */
.portfolio-left {
    position: relative;
}

.portfolio-images {
    position: relative;
    width: 100%;
    height: 400px;
}

.portfolio-img-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 66.67%;
    height: 80%;
    object-fit: cover;
    border-radius: 8px;
    z-index: 1;
}

.portfolio-img-1 {
    position: absolute;
    bottom: -20px;
    right: 0;
    width: 75%;
    height: 90%;
    object-fit: cover;
    border-radius: 8px;
    z-index: 2;
}

/* 作品集右侧内容 */
.portfolio-right {
    padding: 28px; /* 统一并扩大内边距，右侧和底部现在与左侧一致 */
    position: relative;
    /* 用完整边框包裹整个区域 */
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    background-clip: padding-box;
    /* 向下扩散的阴影，颜色为黑色 30% 透明度 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 0;
}

.portfolio-brand {
    font-family: 'Brush Script MT', cursive;
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.portfolio-tagline {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    margin-bottom: 5px;
}

.portfolio-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.portfolio-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.portfolio-btn-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.portfolio-btn {
    display: inline-block;
    background-color: rgb(173, 157, 68);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.portfolio-btn:hover {
    background-color: rgb(145, 130, 55);
}

.portfolio-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    font-size: 20px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #666;
}

.social-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.portfolio-gallery {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    justify-content: space-between;
    align-items: flex-start;
}

.gallery-img {
    width: 150px;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-img:last-child {
    margin-top: 0;
}

/* 横向铺满的图片 */
.portfolio-full-image {
    width: 100%;
    margin-top: 0;
}

.full-width-img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    display: block;
    background-color: #f5f5f5;
}

/* 关于我模块样式 */
.about {
    padding: 80px 0;
    background-color: #fff;
}

.about-title {
    margin-bottom: 60px;
}

.about-title .title-line {
    font-size: 24px;
    color: #333;
    margin: 0 20px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: start;
    position: relative;
}

.about-left {
    position: relative;
    background-color: #f5f5f5;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.about-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: visible;
}

.about-image {
    width: 80%;
    height: 120%;
    object-fit: cover;
    border-radius: 8px;
    /* 图片凸出效果 - 上部超出容器，底部对齐 */
    position: absolute;
    bottom: 0;
    left: 10%;
    transform: translateX(30px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 2;
}


.about-right {
    background-color: #edecec;
    padding: 60px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.about-text {
    max-width: 500px;
    display: flex;
    flex-direction: column;
}

.about-intro {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-details {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.about-btn {
    display: inline-block;
    background-color: rgb(218, 207, 155);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    align-self: flex-end;
    width: fit-content;
}

.about-btn:hover {
    background-color: rgb(195, 185, 135);
}

/* 页脚样式 */
.footer {
    background-color: rgb(208, 198, 139);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: 'Brush Script MT', cursive;
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.footer-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #333;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
}

.contact-icon {
    margin-right: 8px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
}

.contact-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-copyright {
    font-size: 14px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav-links {
        gap: 20px;
        margin: 15px 0;
    }
    
    .nav-utils {
        gap: 15px;
    }
    
    .banner-title {
        font-size: 32px;
    }

    .carousel .banner-content.fixed .banner-title {
        font-size: 28px;
    }
    
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .portfolio-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .portfolio-gallery {
        flex-direction: column;
    }
    
    .gallery-img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .title-main {
        font-size: 28px;
    }
    
    .portfolio-brand {
        font-size: 28px;
    }
}
