* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== 置顶联系栏（全局） ========== */
.top-contact-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: #ffeebb;
    text-align: center;
    padding: 10px 14px;
    font-size: 15px;
    color: #2c2218;
    box-shadow: 0 2px 6px rgba(100,78,55,0.12);
    line-height: 1.6;
}

/* PC端：手机换行标签不显示 */
.top-contact-bar .mobile-br {
    display: none;
}

.top-contact-bar a {
    color: #1f170e;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.top-contact-bar a:hover {
    color: #000000;
}

body {
    background-color: #fff8e8;
    background-image: radial-gradient(circle at 20% 0%, #fff9ef 0%, #fff8e8 60%, #fff5df 100%);
    color: #5c4b3c;
    font-family: system-ui, -apple-system, sans-serif;
    padding-top: 42px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 40px;
}

/* ========== PC顶部Header ========== */
.site-header {
    max-width: 1600px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.site-logo {
    height: 90px;
    width: auto;
    border-radius: 999px;
    box-shadow: 0 4px 0 #e2d5bf, 0 6px 12px rgba(100,78,55,0.12);
    flex-shrink: 0;
}

.brand-text {
    font-size: 20px;
    font-weight: 600;
    color: #4a3c30;
    line-height: 1.2;
    white-space: nowrap;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    color: #4a3c30;
    font-size: 32px;
}

/* ========== PC端导航按钮 ========== */
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
}

.nav-btn {
    border: none;
    background: #fff9ef;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 24px;
    color: #6b5a49;
    border-radius: 999px;
    transition: 0.18s ease;
    box-shadow: 0 4px 0 #d4c4b0, 0 6px 10px rgba(120,95,70,0.12);
}

.nav-btn.active {
    background: #ffdd77;
    color: #4b3c2e;
    box-shadow: 0 2px 0 #dbb85c, 0 3px 6px rgba(130,100,60,0.15);
    transform: translateY(2px);
}

.nav-btn:hover:not(.active) {
    background: #fff2d8;
    transform: translateY(1px);
    box-shadow: 0 3px 0 #d4c4b0, 0 5px 8px rgba(120,95,70,0.10);
}

/* ========== B站视频卡片 ========== */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 24px;
}

.video-card {
    background: #fffdf7;
    padding: 14px;
    border-radius: 22px;
    box-shadow: 0 6px 0 #e9ddca, 0 8px 14px rgba(110,85,60,0.11);
}

.video-card iframe {
    width: 100%;
    height: 320px;
    border-radius: 16px;
    border: none;
}

/* ========== 作品卡片网格 ========== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, 219px);
    justify-content: center;
    gap: 28px;
}

.card {
    background: #fffdf7;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: 0 5px 0 #e8dcc8, 0 8px 16px rgba(100,78,55,0.10);
    width: 219px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 0 #e2d5bf, 0 12px 20px rgba(100,78,55,0.14);
}

.card-img-wrap {
    width: 219px;
    height: 290px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f1e4;
}

.card-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
}

.card-text {
    padding: 12px 10px;
    font-size: 14px;
    text-align: center;
    color: #645342;
}

/* ========== 大图预览弹窗 ========== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(45,35,25,0.88);
    display: none;
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.show {
    display: flex;
}

#bigImg {
    max-width: 94%;
    max-height: 84vh;
    width: auto;
    height: auto;
    border-radius: 18px;
}

.light-title {
    color: #fff3e0;
    margin-top: 14px;
    font-size: 16px;
}

.close {
    position: absolute;
    top: 18px;
    right: 28px;
    font-size: 42px;
    color: #fff3e0;
    cursor: pointer;
}

/* ========== 微信二维码弹窗 ========== */
.wechat-qr-modal {
    position: fixed;
    inset: 0;
    background: rgba(45,35,25,0.88);
    display: none;
    z-index: 1002;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wechat-qr-modal.show {
    display: flex;
}

.wechat-qr-box {
    background: #fffdf7;
    padding: 18px;
    border-radius: 24px;
    position: relative;
    text-align: center;
    box-shadow: 0 8px 24px rgba(100,78,55,0.18);
    max-width: 240px;
    width: 100%;
}

.wechat-qr-box img {
    width: 180px;
    height: 180px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 12px;
}

.wechat-qr-box p {
    color: #5c4b3c;
    font-size: 15px;
    margin: 0;
}

.wechat-qr-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    color: #6b5a49;
    cursor: pointer;
    line-height: 1;
}

/* ========== 移动端（手机端专属，全部写在这个大括号里面） ========== */
@media(max-width: 768px) {

    body {
        padding-top: 160px;
    }

    /* 手机端联系栏：换行显示 */
    .top-contact-bar {
        font-size: 13px;
        padding: 8px 12px;
    }

    .top-contact-bar .mobile-br {
        display: block;
    }

    .top-contact-bar span {
        font-size: 14px;
    }

    /* 手机端Header */
    .site-header {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }

    .site-logo {
        height: 72px;
    }

    .brand-text {
        font-size: 17px;
    }

    /* 手机端导航栏吸顶，在联系栏下方 */
    .nav-menu {
        position: fixed;
        top: 58px;
        left: 0;
        right: 0;
        z-index: 998;
        background-color: #fff8e8;
        padding: 14px 10px;
        margin-bottom: 0;
        box-shadow: 0 2px 8px rgba(100,78,55,0.1);
    }

    .nav-btn {
        padding: 8px 18px;
    }

    h1 {
        font-size: 24px;
    }

    /* 手机端作品卡片：2列 */
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        padding: 0 8px;
        justify-content: stretch;
    }

    .card {
        width: 100%;
        border-radius: 18px;
    }

    .card-img-wrap {
        width: 100%;
        height: 220px;
    }

    /* 手机端视频：1列 */
    .video-gallery {
        grid-template-columns: 1fr;
    }

    .video-card iframe {
        height: 240px;
    }

}
