@font-face {
    font-family: "SourceHanSansSC-ExtraLight";
    src: url("SourceHanSansSC-ExtraLight.ttf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "SourceHanSansSC-ExtraLight", "Microsoft YaHei", "PingFang SC", sans-serif;
    outline: none;
}

body {
    background-color: #fdfdfd;
    color: #333;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #fff;
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #333;
    font-family: "Microsoft YaHei", "PingFang SC", serif;
    text-transform: uppercase;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.trigger-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 99;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #ddd;
}

.fill-current{
    fill: currentcolor;
}
.hidden {
    display: none !important;
}

.trigger-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: background 0.3s;
    cursor: pointer;
}

.trigger-btn:hover {
    border: 1px solid #e0e0e0;
    background-color: #e9e9e9;
}

@media screen and (max-width: 768px) {
    .pc-nav-menu {
        display: none;
    }
    .trigger-menu {
        display: flex !important;
    }
    
    .mobile-nav-menu .nav-item {
        height: auto;
        border-bottom: 1px solid #f5f5f5;
    }
    .mobile-nav-menu .nav-item.active {
        background-color: #f9f9f9;
    }
    .mobile-nav-menu .nav-item.has-dropdown {
        flex-flow: column;
    }
    .mobile-nav-menu .nav-item:last-child {
        border-bottom: none;
    }
    
    .mobile-nav-menu .nav-item>a {
        display: flex;
        width: 100%;
        text-align: left;
        padding: 15px 20px;
    }

    .mobile-nav-menu .nav-item>a:hover {
        color: #000;
        background-color: #f9f9f9;
    }
    
    .mobile-nav-menu .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        padding: 0;
        margin-top: 10px;
    }
    .mobile-nav-menu .dropdown-menu .dropdown-item {
        box-shadow: none;
        background: transparent;
    }

    .mobile-nav-menu .dropdown-name {
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown-icon {
        transition: transform 0.3s ease;
    }
    
    .rotate-180 {
        transform: rotate(180deg);
    }
    
    .mobile-nav-menu .dropdown-menu a {
        padding: 15px 20px;
        border-top: 1px solid #f0f0f0;
        text-align: left;
        margin-left: 2rem;
    }
}

.nav-item {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-item>a {
    font-size: 15px;
    color: #555;
    transition: color 0.3s;
    padding: 0 5px;
    cursor: pointer;
}

.nav-item>a:hover {
    color: #000;
}

.nav-item.active>a {
    color: #000;
    font-weight: 800;
}

.dropdown-menu {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    padding: 15px 0;
    display: none;
    flex-direction: column;
    z-index: 101;
}

.dropdown-item {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.dropdown-menu a {
    display: block;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    color: #666;
    transition: background 0.2s, color 0.2s;
    border-radius: 5px;
}

.dropdown-menu a:hover {
    color: #000;
    background-color: #f9f9f9;
}

#search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.search-close-btn {
    position: absolute;
    top: 150px;
    right: 150px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.3s;
    opacity: 0.8;
}

.search-close-btn:hover {
    transform: rotate(90deg);
    opacity: 1;
}

.search-box-wrapper {
    display: flex;
    width: 600px;
    height: 52px;
}

.search-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-right: none;
    padding: 0 20px;
    font-size: 15px;
    color: #333;
    width: 100%;
    border-radius: 0;
}

.search-input::placeholder {
    color: #bbb;
    font-weight: 300;
}

.search-submit-btn {
    /*width: 110px;*/
    background-color: #424242;
    color: #fff;
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    padding: 0 2.5rem;
}

.search-submit-btn:hover {
    background-color: #000;
}

.mySwiper {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px - 160px);
    overflow: hidden;
    margin-top: 80px;
    /* Header height */
}

.swiper-slide {
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.swiper-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-top: 50px;
}

.slide-content h2 {
    font-size: 48px;
    font-weight: normal;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.slide-content p {
    font-size: 24px;
    font-weight: 300;
    opacity: 0.9;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    transition: background-color 0.3s;
}

.swiper-pagination-bullet:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.swiper-pagination-bullet-active {
    background-color: #fff;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    content: none !important;
}

/* =========================================
   新增：瀑布流作品展示区域样式
   ========================================= */
.gallery-section {
    padding: 120px 0 120px 0;
}

/* 头部文字区 */
.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-title {
    font-size: 36px;
    font-weight: 300;
    /* 细体，符合设计图 */
    color: #333;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.gallery-desc {
    font-size: 14px;
    color: #ccc;
    /* 浅灰色 */
    margin-bottom: 10px;
    font-weight: 300;
}

.gallery-count {
    font-size: 14px;
    color: #ccc;
    font-weight: 300;
}

/* 筛选标签栏 */
.filter-bar{
    display: flex;
    align-items: center;
    margin-bottom: 60px;
}

.filter-list {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    font-size: 14px;
    overflow-x: auto;
    padding: 15px 0;
    /* 隐藏滚动条但保持功能 */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    white-space: nowrap;
}

/* 隐藏Chrome, Safari等的滚动条 */
.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-label {
    color: #333;
    font-weight: bold;
    margin-right: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-list {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.filter-item {
    cursor: pointer;
    padding: 5px 12px;
    color: #888;
    transition: all 0.3s;
}

.filter-item:hover {
    color: #000;
}

.filter-item.active {
    background-color: #1a1a1a;
    color: #fff;
}

/* 瀑布流网格 */
.gallery-grid {
    margin: 0 auto;
    /* Masonry 需要宽度确定 */
    width: 100%;
}

/* 修复 Masonry 宽度塌陷问题 */
.gallery-grid:after {
    content: '';
    display: block;
    clear: both;
}

.gallery-item {
    width: 48%;
    /* 两列布局，中间留4%间隙 */
    margin-bottom: 60px;
    /* 卡片垂直间距 */
    float: left;
    /* Masonry 要求浮动 */
}

/* 间隙控制: Masonry通常通过百分比宽度控制，JS中设置gutter */
.gallery-gutter {
    width: 4%;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    /* 模拟设计图中的图片效果 */
    transition: opacity 0.3s;
}

.gallery-item img:hover {
    opacity: 0.9;
}

.item-title {
    margin-top: 25px;
    font-size: 24px;
    font-weight: 300;
    /* 细体标题 */
    color: #444;
    line-height: 1.4;
}

/* 响应式：小屏幕两列 */
@media (max-width: 768px) {
    .gallery-item {
        width: 48%;
        margin-bottom: 20px;
    }

    .gallery-gutter {
        width: 4%;
    }

    .item-title {
        font-size: 15px;
    }

    .filter-label {
        margin-right: 15px;
    }
    .filter-bar {
        display: block;
    }
    .filter-list {
        padding: 0;
        margin-top: 1rem;
        margin-bottom: 60px;
        gap: 12px;
    }

    .filter-item {
        padding: 8px 16px;
        font-size: 14px;
    }

    .search-box-wrapper {
        width: 90%;
    }

    .search-close-btn {
        top: 50px;
        right: 30px;
    }
}

footer {
    background: #fff;
    padding: 50px 0;
    border-top: 1px solid #eee;
    margin-top: 0;
}

.footer-inner {
    text-align: center;
    color: #999;
    font-size: 14px;
    font-weight: 300;
}

.footer-copyright {
    margin-bottom: 20px;
}

.footer-info {
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* =========================================
   详情页核心样式
   ========================================= */
.details-main {
    margin-top: 120px;
    margin-bottom: 80px;
}

/* 1. 顶部：图片轮播与信息 */
.product-intro {
    display: flex;
    gap: 60px;
    margin-bottom: 60px;
}

.product-gallery {
    max-width: 50%;
    margin-bottom: 40px;
    position: relative;
}

#myCarousel {
    --f-arrow-pos: 10px;
    --f-arrow-bg: rgba(255, 255, 255, 0.75);
    --f-arrow-hover-bg: rgba(255, 255, 255, 1);
    --f-arrow-color: #333;
    --f-arrow-width: 40px;
    --f-arrow-height: 40px;
    --f-arrow-svg-width: 20px;
    --f-arrow-svg-height: 20px;
    --f-arrow-svg-stroke-width: 2px;
    --f-arrow-border-radius: 50%;
    height: 650px;
    border: 0px solid #e0e0e0;
    overflow: hidden;
}

#myCarousel .f-carousel__slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

#myCarousel img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.myProductSwiper {
    flex: 1;
    position: relative;
    user-select: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.f-button{
    color: #fff !important;
    background: none !important;
}

.swiper-slide {
    display: flex;
    /* 消除img底部间隙 */
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* 轮播箭头 */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px !important;
    height: 30px !important;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    /* 默认隐藏 */
    transition: all 0.3s;
    z-index: 10;
}

.swiper-button-prev svg,
.swiper-button-next svg {
    width: 20px;
    height: 20px;
    stroke: #333;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-prev {
    left: 15px;
}

.swiper-button-next {
    right: 15px;
}

/* 鼠标悬停显示箭头 */
.myProductSwiper:hover .swiper-button-prev,
.myProductSwiper:hover .swiper-button-next {
    opacity: 1;
}

/* 轮播圆点 */
.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.8);
}

.swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.2);
}


/* 右侧信息区 */
.product-info {
    flex: 1;
    padding-top: 10px;
}

.art-title {
    font-size: 26px;
    line-height: 1.4;
    margin-bottom: 40px;
    font-weight: 400;
    color: #333;
}

.art-meta-list {
    font-size: 12px;
    color: #888;
    line-height: 2.2;
}

.art-meta-list span {
    color: #999;
    margin-right: 5px;
}

/* 2. 下载区域 */
.download-box-wrapper {
    margin-bottom: 40px;
}

.dash-box {
    border: 1px dashed #333;
    padding: 30px;
    position: relative;
    margin-bottom: 40px;
    background: #fff;
}

.dash-label {
    position: absolute;
    top: -10px;
    left: 30px;
    background: #fff;
    padding: 0 10px;
    font-size: 14px;
    font-weight: bold;
    color: #000;
}

.free-download-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 12px;
    color: #999;
    width: 60%;
}

.input-row {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

.grey-input {
    background: #f0f0f0;
    border: none;
    height: 36px;
    padding: 0 15px;
    font-size: 12px;
    width: 200px;
    color: #333;
}

.btn-black {
    background: #333;
    color: #fff;
    border: none;
    height: 36px;
    padding: 0 20px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-black:hover {
    background: #000;
}

.qr-code-area {
    position: relative;
    width: 130px;
    height: 130px;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 12px;
}

.qr-code-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.qr-text {
    position: absolute;
    z-index: 2;
}

.sponsor-inner {
    font-size: 12px;
    color: #999;
}

.sponsor-price {
    color: #333;
    font-weight: bold;
    margin: 0 3px;
}

.btn-sponsor {
    display: inline-block;
    margin-top: 15px;
    background: #444;
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 14px;
    cursor: pointer;
}

.btn-sponsor:hover {
    background: #222;
}

/* 3. 标签 */
.tags-row {
    margin-bottom: 60px;
    display: flex;
    gap: 15px;
}

.tag-btn {
    border: 1px solid #eee;
    background: #fff;
    padding: 8px 20px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.tag-btn:hover {
    border-color: #ccc;
}

/* 4. 艺术家卡片 */
.artist-card {
    border: 1px solid #f0f0f0;
    padding: 30px;
    display: flex;
    position: relative;
    background: #fff;
    margin-bottom: 80px;
}

.artist-label {
    position: absolute;
    left: 0;
    top: 75%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    font-size: 12px;
    letter-spacing: 2px;
    color: #000;
    font-weight: bold;
    margin-left: -10px;
    text-align: center;
    border-bottom: 4px solid;
    width: 5rem;
}

.artist-content {
    display: flex;
    gap: 30px;
    width: 100%;
    align-items: center;
}

.artist-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-text {
    flex: 1;
}

.artist-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.artist-bio {
    font-size: 12px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
    text-align: justify;
}

.artist-link {
    font-size: 12px;
    color: #999;
    text-decoration: underline;
}

/* 5. 相关推荐 */
.related-section h2 {
    font-size: 30px;
    font-weight: 300;
    margin-bottom: 30px;
    color: #333;
}

/* =========================================
   新增：居中模态框样式 (Modal)
   ========================================= */
#sponsor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* 稍微加深一点背景 */
    z-index: 9998;
    display: none;
    /* Flex 居中 */
    justify-content: center;
    align-items: center;
}

/* 模态框本体 */
#sponsor-modal {
    background: #fff;
    width: 480px;
    /* 宽度适中 */
    max-width: 90%;
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    /* 初始状态用于动画（可选） */
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease-out;
}

/* 激活状态 */
#sponsor-overlay.active #sponsor-modal {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.close-modal {
    cursor: pointer;
    width: 24px;
    height: 24px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.close-modal:hover {
    opacity: 1;
}

/* 内容样式 */
.modal-content-group {
    margin-bottom: 25px;
}

.label-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    display: block;
    font-weight: bold;
}

.grey-box {
    background: #f9f9f9;
    padding: 15px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

.summary-box {
    background: #f9f9f9;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

.btn-pay {
    width: 100%;
    background: #333;
    color: #fff;
    border: none;
    padding: 14px 0;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
    border-radius: 2px;
}

.btn-pay:hover {
    background: #000;
}

/* 响应式 */
@media (max-width: 768px) {
    .product-intro {
        flex-direction: column;
        gap: 30px;
    }

    .product-gallery {
        max-width: 100%;
    }
    
    #myCarousel {
        height: 300px;
    }

    .artist-card {
        padding: 20px;
        margin-bottom: 40px;
    }

    .artist-label {
        left: 50%;
        top: -20px;
        transform: translateX(-50%);
        background: #fff;
        margin-left: 0;
    }

    .artist-card::before {
        display: none;
    }

    .artist-content {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-left: 0;
        text-align: center;
    }

    .artist-text {
        text-align: center;
    }

    .artist-avatar {
        margin-bottom: 15px;
    }

    .artist-bio {
        text-align: left;
    }

    .slide-content h2 {
        font-size: 30px;
    }
    .slide-content p {
        font-size: 15px;
    }
    
    .art-title {
        font-size: 18px;
    }

    .free-download-inner {
        flex-direction: column-reverse;
        align-items: center;
        gap: 20px;
    }

    .code-input-group {
        width: 100%;
    }
}

/* =========================================
   关于页面核心样式
   ========================================= */
.about-section {
    padding-top: 150px;
    /* 给Header留出空间，并增加顶部留白 */
    padding-bottom: 100px;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 1000px;
    /* 限制内容宽度，增加阅读舒适度 */
    margin: 0 auto;
}

.page-title {
    font-size: 34px;
    font-weight: 300;
    /* 细体标题 */
    color: #333;
    margin-bottom: 60px;
    letter-spacing: 1px;
}

.text-content p {
    font-size: 14px;
    line-height: 2;
    /* 宽松的行高 */
    color: #888;
    /* 浅灰色字体 */
    margin-bottom: 30px;
    text-align: justify;
    /* 两端对齐 */
}

/* 关于页脚样式 */
footer {
    background: #fff;
    padding: 50px 0;
    border-top: 1px solid #eee;
}

.footer-inner {
    text-align: center;
    color: #999;
    font-size: 12px;
    font-weight: 300;
}

.footer-copyright {
    margin-bottom: 20px;
    color: #999;
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.back-to-top:hover {
    background-color: #555;
    transform: translateY(-3px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}