@charset "utf-8";
{
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scrollbar-gutter: stable;
}

body {
  font-family: 'SourceHanSansCN-Light', Arial, Verdana, "Segoe UI", "Lucida Grande", Helvetica, Sans-serif;
  font-size: 1.4rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  color: #000;
  background: #fff;
  position: relative;
}

div, h1, h2, h3, h4, h5, h6, ul, ol, li, dl, dd, dt, img, p, form {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: normal;
}

header, section, footer, aside, nav, main, article, figure {
  display: block;
}

ul, ol, li {
  list-style: none;
}

i, em {
  font-style: normal;
}

input, textarea {
  outline: none;
  -webkit-appearance: none;
}

table {
  border-collapse: collapse;
}

img {
  border: 0;
  vertical-align: middle;
}

/* 链接样式 */
a {
  color: #000;
  text-decoration: none;
  outline: none;
  cursor: pointer;
}

a:link, a:visited {
  color: #333;
  text-decoration: none;
}

a:hover {
  color: #333;
  text-decoration: none;
}

a:active {
  star: expression(this.onFocus = this.blur());
  color: #bc2931;
}
.ldd {
    margin-top: 3px;
    padding: 0px 5px;
}
/* 工具类 */
.container {
  width: 100%;
}

.bgcol-f8 {
  background: #f8f8f8;
}


/* 产品列表项 (jnpro-item) */
.jnpro-item {
    position: relative;
    text-align: left;
    font-size: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.jnpro-item .jnp {
  color: #333;
  margin: 0.75rem 0 0rem;
  height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jnp-mon {
    color: red;
    margin: 0px 0px 0px;
}

.jnp-mon span {
  font-size: 2rem;
  font-weight: 500;
}

.img-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

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

.jnpro-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 3px;
  margin: 8px;
  border-radius: 5px;
}

/* 纪念品列表网格布局*/
.jinianProducts-list {
max-width: 720px;
}

.jinianProducts-list .row > div {
  padding: 0 5px;
  margin-bottom: 1rem;
}

/* 分类选项卡 (ag-o-tab) */
/* 分类选项卡 (ag-o-tab) */
.ag-o-tab, .ag-o-taba {
    background: #fff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-top: 1px solid #eee;
    padding:0.8rem 0.5rem;
    width: 100%;
    display: flex;
    align-items: flex-start;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
}

.ag-o-tab span, .ag-o-taba span {
  color: #fff;
  font-size: 14px;
  border-radius: 1rem;
  background: #1992FA;
  margin-right: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  min-width: 120px;
}

.ag-o-tab a {
  padding: 0.2rem 0rem;
  font-size: 14px;
}

.alist a {
  padding: 0.2rem 0.5rem;
}
.ag-o-tab a.active, .ag-o-taba a.active {
  background: #1992FA;
  border-radius: 1rem;
  color: #fff;
}

.ag-o-tab a:not(.activee) span, .ag-o-taba a:not(.activee) span {
  color: black;
  background-color: #fff;
}

.alist {
  flex-grow: 1;
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
}

/* 推广按钮组 (ag-o-tabo) */
.ag-o-tabo {
display: flex;
gap: 10px;
margin: 0 auto 8px;
justify-content: center;
}

.ag-o-tabo a {
  padding: 5px 14px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 48px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.ag-o-taba a {
  padding: 0.2rem 0rem;
  font-size: 14px;
}

body > form:first-of-type {
position: sticky;
top: 0;
z-index: 1000;
padding: 7px 4px;
margin: 0 auto -2px;
}
.unified-search {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 48px;           /* 胶囊圆角，更现代 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    transition: box-shadow 0.2s, border-color 0.2s;
    overflow: hidden;
}
.unified-search .btn-search-icon:focus {
    outline: none;
    box-shadow: none;
}
.unified-search .form-control {
    flex: 1;
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 10px 16px;
    font-size: 1.6rem;
    outline: none;
}
.unified-search .form-control:focus {
    background-color: transparent !important;
    border: none !important;
}
.unified-search .btn-search-icon {
    background: transparent;
    border: none;
    padding: 8px 16px 8px 8px;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    width: 52px;
    height: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
.unified-search .btn-search-icon:hover {
    opacity: 0.7;
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: #ffffffcc;
    backdrop-filter: blur(8px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    opacity: 0; 
    visibility: hidden;
    z-index: 9990;
    transition: all 0.3s ease;
}
/* 新增：显示状态类 */
.back-to-top.show {
    opacity: 1; /* 完全不透明 */
    visibility: visible; /* 恢复可见 */
}
.back-to-top:hover {
    background-color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.load-more {
            text-align: center;
            padding: 15px 0;
            color: #999;
            font-size: 12px;
        }
.empty-tip {
            margin-top: 36px;
            font-size: 14px;
            color: #999;
}

    .toast-copy {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: rgba(0, 0, 0, 0.75);
        color: #fff;
        padding: 12px 24px;
        border-radius: 8px;
        font-size: 14px;
        z-index: 9999;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        text-align: center;
        white-space: nowrap;
    }
    .toast-copy.show {
        opacity: 1;
    }
input[type="search"]::-webkit-search-cancel-button {
  display: none !important;
}
.search-wrap {
  position: relative;
}
.clear-icon {
  position: absolute;
  right: 55px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: none; 
  z-index: 99;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m14.48 12 6.982-6.982a1.754 1.754 0 0 0-2.48-2.48L12 9.517l-6.982-6.98a1.754 1.754 0 0 0-2.48 2.48L9.517 12l-6.98 6.982a1.754 1.754 0 1 0 2.48 2.48L12 14.482l6.981 6.98a1.754 1.754 0 0 0 2.481-2.48z' fill='%236c757d'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.form-control {
  padding-right: 50px;
}

       .video-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.6);
            z-index: 10000;
            display: none;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(3px);
        }
        .video-modal.show { display: flex; }
        .video-card {
            width: 92%;
            max-width: 860px;
            background: #fff;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 20px 35px -12px rgba(0,0,0,0.35);
            animation: fadeUp 0.2s ease;
            margin-top: -5vh;
        }
        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        /* 标题容器 - 保持高度不变，顶部留空让标题上移 */
.video-title-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 顶部对齐，强化上移 */
    padding-right: 12px;
    padding-top: 0; /* 清除顶部内边距 */
    margin-bottom: -8px;
        height: 40px;
    overflow: hidden;
    margin-left: 23px;
}
/* 标题：缩小字体 + 负margin继续上移 + 保持框高不变 */
.video-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e2a3a;
    /* 强化：强制单行+超长省略，绝不换行 */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-top: -1px;
    line-height: 1.2;
}
.video-id {
    font-size: 12px;
    font-weight: 400;
    color: #667788;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* 新增：固定ID位置，绝不被标题挤动 */
    flex-shrink: 0;
}
/* 标题框：严格保持原有高度不变 */
.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px; /* 保持原有内边距，框高不变 */
    background: #fff;
    border-bottom: 1px solid #eef2f5;
    min-height: 50px; /* 固定标题框高度 */
}
        .video-close {
            background: #f0f2f5;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 18px;
            font-weight: bold;
            color: #2c3e4e;
            transition: 0.2s;
        }
        .video-close:hover { background: #e4e8ec; }
.video-wrapper video {
    width: 100%;
    aspect-ratio: 16 / 9;  /* 强制占位宽高比 */
    max-height: 65vh;
    display: block;
}
        /* 移动端适配 */
        @media (max-width: 768px) {
            .video-card { width: 96%; border-radius: 20px; }
            .video-header { padding: 8px 14px; } /* 移动端进一步减少内边距 */
            .video-title { font-size: 14px; }
            .video-id { font-size: 12px; margin-top: 1px; } /* 移动端编号字体更小 */
            .video-close { width: 30px; height: 30px; }
            .video-wrapper video { max-height: 55vh; }
            .video-title-wrap {margin-bottom: -12px}
        }
        
@media (max-width: 767px) {
  #murl { height: 220px; }
}
@media (min-width: 768px) {
  #murl { height: 500px; }
}

.modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); 
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s ease-in-out;
    z-index: 1000; 
}

.modal-bg.show {

    opacity: 1;
}

.modal-bg.hide {
    opacity: 0;
}
.modal-id {
font-weight: bold;

}

.modal-content {
    background: white;
     padding: 10px 10px 0 10px;
    border-radius: 10px;
    text-align: center;
    max-width: 90%; 
    width: auto; 
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh; 
    object-fit: contain; 
    border-radius: 10px; 
}

#musicPlayerContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 5px 0;
}
#musicPlayer {
  width: 90%;
  max-width: 600px;
}
.separator {
  content: "";
  display: inline-block;
  width: 100%;
  height: 1px;
  background-color: #ccc;
  margin: 0 5px;
}
.jnpro-item .music-item {
    display: flex;
    align-items: center;
}

.jinianProducts-list .jnpro-item p.jnp.active-title {
  font-size: 17px;
  font-weight: bold; 
}
.ag-o-tabe{background: #fff;margin-bottom: 1rem;padding: 0.5rem 0.2rem;box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);  border-radius: 16px;}