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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #F5E8C7;
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    background-color: #94A3B8;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    font-family: 'Brush Script MT', cursive;
    transform: rotate(-2deg);
}

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

.nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 10px;
}

.nav-links a:hover {
    transform: rotate(2deg) scale(1.05);
    color: #E87A90;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Banner */
.banner {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #94A3B8;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10,30 Q30,10 50,30 T90,30" stroke="rgba(255,255,255,0.1)" fill="none" stroke-width="2"/></svg>');
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.8), rgba(232, 122, 144, 0.3));
}

.banner .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.banner h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
    font-family: 'Brush Script MT', cursive;
    transform: rotate(-2deg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.banner p {
    font-size: 24px;
    color: #FFFFFF;
    font-style: italic;
}

/* 作品展示 */
.works {
    padding: 100px 0;
    background-color: #F5E8C7;
    text-align: center;
}

.works h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #94A3B8;
    font-family: 'Brush Script MT', cursive;
    transform: rotate(-1deg);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.work-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.work-item:hover {
    transform: rotate(1deg) scale(1.05);
}

.work-img {
    width: 100%;
    height: 250px;
    background-color: #94A3B8;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.work-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(148, 163, 184, 0.8), rgba(232, 122, 144, 0.5));
    transition: all 0.3s ease;
}

.work-item:hover .work-img::before {
    transform: scale(1.1);
    opacity: 0.8;
}

.work-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    font-family: 'Brush Script MT', cursive;
}

.btn {
    display: inline-block;
    background-color: #E87A90;
    color: #FFFFFF;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(232, 122, 144, 0.3);
}

.btn:hover {
    background-color: #94A3B8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(148, 163, 184, 0.4);
}

/* 创意理念 */
.concept {
    padding: 100px 0;
    background-color: #94A3B8;
    color: #FFFFFF;
    text-align: center;
}

.concept h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 40px;
    font-family: 'Brush Script MT', cursive;
    transform: rotate(-1deg);
}

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

.concept-content p {
    font-size: 18px;
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.8;
}

/* 联系模块 */
.contact {
    padding: 100px 0;
    background-color: #F5E8C7;
    text-align: center;
}

.contact h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #94A3B8;
    font-family: 'Brush Script MT', cursive;
    transform: rotate(-1deg);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-info p {
    font-size: 16px;
    color: #333333;
}

/* 页脚 */
footer {
    background-color: #94A3B8;
    color: #FFFFFF;
    padding: 30px 0;
    text-align: center;
}

footer p {
    font-size: 14px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .banner h1 {
        font-size: 40px;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 作品页 */
.works-page {
    padding: 100px 0;
    background-color: #F5E8C7;
}

.works-page h1 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #94A3B8;
    font-family: 'Brush Script MT', cursive;
    transform: rotate(-1deg);
}

.masonry-grid {
    column-count: 3;
    column-gap: 30px;
}

@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 1;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.masonry-item:hover {
    transform: rotate(1deg) scale(1.02);
}

.masonry-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.masonry-item:hover .masonry-img {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.masonry-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
    color: #333333;
    font-family: 'Brush Script MT', cursive;
}

/* 服务页 */
.services-page {
    padding: 100px 0;
    background-color: #F5E8C7;
}

.services-page h1 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #94A3B8;
    font-family: 'Brush Script MT', cursive;
    transform: rotate(-1deg);
}

.service-process {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 40px;
}

.process-step {
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px) rotate(2deg);
}

.process-icon {
    width: 120px;
    height: 120px;
    background-color: #94A3B8;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.process-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(148, 163, 184, 0.8), rgba(232, 122, 144, 0.5));
    transition: all 0.3s ease;
}

.process-step:hover .process-icon::before {
    transform: scale(1.1);
    opacity: 0.8;
}

.process-step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333333;
    font-family: 'Brush Script MT', cursive;
}

.process-step p {
    font-size: 14px;
    color: #666666;
}

/* 图片放大查看 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    display: block;
    margin: 10% auto;
    max-width: 90%;
    max-height: 80%;
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {transform: scale(0.1);}
    to {transform: scale(1);}
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 服务列表 */
.service-list {
    margin-top: 100px;
}

.service-list h2 {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #94A3B8;
    font-family: 'Brush Script MT', cursive;
    transform: rotate(-1deg);
}

.service-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.service-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: rotate(-1deg);
}

.service-item:hover {
    transform: rotate(1deg) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.service-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #E87A90;
    font-family: 'Brush Script MT', cursive;
}

.service-item ul {
    list-style: none;
}

.service-item li {
    padding: 10px 0;
    color: #333333;
    position: relative;
    padding-left: 20px;
}

.service-item li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #94A3B8;
    font-weight: bold;
}