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

body {
    font-family: 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f4ee;
}

/* 装饰性星号 - 简洁协调分布 */
.star {
    position: fixed;
    font-size: 3rem;
    opacity: 0.5;
    z-index: 10;
    pointer-events: none;
}

/* 左侧星星 - 4个 */
.star.left-1 { color: #FFB6C1; top: 12%; left: 3%; }
.star.left-2 { color: #87CEEB; top: 38%; left: 4%; }
.star.left-3 { color: #FFB6C1; top: 64%; left: 3%; }
.star.left-4 { color: #87CEEB; top: 90%; left: 4%; }

/* 右侧星星 - 4个 */
.star.right-1 { color: #87CEEB; top: 10%; right: 3%; }
.star.right-2 { color: #FFB6C1; top: 36%; right: 4%; }
.star.right-3 { color: #87CEEB; top: 62%; right: 3%; }
.star.right-4 { color: #FFB6C1; top: 90%; right: 6%; }

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

/* 顶部导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f8f4ee;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    letter-spacing: 1px;
}

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

.nav-links a {
    color: #4a4a4a;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #d4b896;
    transition: width 0.3s ease;
}

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

.mobile-menu {
    display: none;
    cursor: pointer;
}

.mobile-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 首页Hero区 */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f4ee;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(248,244,238,0.9) 0%, rgba(248,244,238,1) 100%);
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
}

#hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    letter-spacing: 2px;
}

.job-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #666;
    font-weight: 400;
}

.slogan {
    font-size: 1.1rem;
    margin-bottom: 45px;
    color: #888;
    font-style: italic;
}

.btn-group {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #d4b896;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 184, 150, 0.3);
}

.btn:hover {
    background-color: #c4a886;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 184, 150, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #d4b896;
    border: 1px solid #d4b896;
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: #d4b896;
    color: #333;
    box-shadow: 0 2px 8px rgba(212, 184, 150, 0.3);
}

/* 关于我 */
#about {
    padding: 100px 0;
    background-color: #f8f4ee;
}

#about h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

.about-content {
    max-width: 100%;
    width: 90%;
    margin: 0 auto;
    line-height: 1.8;
    text-align: center;
}

.about-content p,
.about-content div {
    margin-bottom: 30px;
    color: #555;
    line-height: 1.8;
    display: block;
    clear: both;
    white-space: normal;
    text-align: left;
    display: inline-block;
    width: 100%;
    max-width: 900px;
}

/* 作品集 */
#portfolio {
    padding: 100px 0;
    background-color: #f8f4ee;
}

#portfolio h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    color: #333;
}

/* 作品汇总 */
.portfolio-summary {
    margin-bottom: 80px;
}
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.summary-category {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f8f4ee;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-category-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #d4b896;
    padding-bottom: 10px;
    display: inline-block;
}

.summary-note {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: -10px;
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-5px);
}

.summary-image {
    width: 100%;
    height: 300px;
    background-color: white;
    border-radius: 4px;
    margin-bottom: 10px;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.summary-image.wechat-image {
    height: 300px;
    background-size: contain !important;
    background-color: white;
}

.summary-item h4 {
    font-size: 0.9rem;
    color: #333;
    text-align: center;
}

.portfolio-category {
    margin-bottom: 80px;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #555;
    border-bottom: 2px solid #d4b896;
    padding-bottom: 10px;
}

.portfolio-categories h4.category-title {
    font-size: 1.3rem;
    border-bottom: 1px solid #d4b896;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-content {
    padding: 20px;
    position: relative;
}

.card-image {
    height: 400px;
    background-color: white;
    border-radius: 4px;
    margin-top: 20px;
}

.card-content h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.card-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    margin-bottom: 10px;
}

.card-details {
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    display: none;
}

.card-details h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.card-details p {
    color: #666;
}

/* 大卡片样式 */
.large-card {
    transform: scale(1.05);
    max-width: 800px;
    margin: 0 auto;
}

.large-image {
    height: 600px;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* 案例滑动样式 */
.category-section {
    margin-bottom: 80px;
}

.case-slider {
    position: relative;
    overflow: auto;
    max-height: 800px;
    margin-bottom: 30px;
    scroll-snap-type: y mandatory;
}

.case-slide {
    scroll-snap-align: start;
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-in-out;
}

.case-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.case-controls .control-btn {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #d4b896;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.case-controls .control-btn:hover {
    background-color: #c4a886;
    transform: translateY(-2px);
}

/* 作品集翻页功能 */
.portfolio-slider {
    position: relative;
    margin-bottom: 40px;
}

.slider-page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.slider-page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-controls .control-btn {
    width: auto;
    height: auto;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #d4b896;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-controls .control-btn:hover {
    background-color: #c4a886;
    transform: translateY(-2px);
}

/* 联系我 */
#contact {
    padding: 100px 0;
    background-color: #f8f4ee;
}

#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

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

.contact-info {
    margin-bottom: 40px;
    text-align: left;
}

.contact-info p {
    margin-bottom: 15px;
    color: #555;
}

.social-media ul {
    list-style: none;
    margin-top: 10px;
}

.social-media li {
    margin-bottom: 10px;
    color: #555;
}

/* 底部版权 */
footer {
    padding: 30px 0;
    background-color: #f8f4ee;
    text-align: center;
    border-top: 1px solid #e8e0d6;
}

footer p {
    color: #888;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-menu {
        display: block;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    .job-title {
        font-size: 1.2rem;
    }

    .slogan {
        font-size: 1rem;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
    }

    #about h2,
    #portfolio h2,
    #contact h2 {
        font-size: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2rem;
    }

    .job-title {
        font-size: 1rem;
    }

    .slogan {
        font-size: 0.9rem;
    }

    #about h2,
    #portfolio h2,
    #contact h2 {
        font-size: 1.8rem;
    }

    .category-title {
        font-size: 1.5rem;
    }
}