body { font-size: 18px; }
.naoshang-gallery {
margin: 32px 0;
} .ng-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 14px;
color: #555;
font-size: 16px;
}
.ng-header b { color: #c0392b; font-size: 18px; } .ng-grid {
display: grid;
gap: 8px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.ng-grid .ng-item {
position: relative;
aspect-ratio: 1 / 1;
overflow: hidden;
border-radius: 10px;
background: #f0f0f0;
cursor: zoom-in;
transition: transform .15s ease;
}
.ng-grid .ng-item:active { transform: scale(0.96); }
.ng-grid .ng-item img {
width: 100%; height: 100%; object-fit: cover;
display: block;
}
.ng-grid .ng-item img[loading="lazy"] {
background: linear-gradient(90deg, #e8e8e8 25%, #f7f7f7 50%, #e8e8e8 75%);
background-size: 200% 100%;
animation: ng-shimmer 1.4s infinite;
}
@keyframes ng-shimmer {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
} .ng-pager {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
margin-top: 20px;
padding: 14px 10px;
background: #fafafa;
border-radius: 12px;
flex-wrap: wrap;
}
.ng-page-btn {
width: 48px;
height: 48px;
aspect-ratio: 1 / 1;
padding: 0 6px;
border: 2px solid #ddd;
border-radius: 10px;
background: #fff;
color: #333;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all .15s;
}
.ng-page-btn:hover:not(:disabled) {
border-color: #c0392b;
color: #c0392b;
transform: translateY(-1px);
}
.ng-page-btn:active:not(:disabled) { transform: translateY(0); }
.ng-page-btn.active {
background: #c0392b;
color: #fff;
border-color: #c0392b;
box-shadow: 0 2px 8px rgba(192,57,43,.3);
}
.ng-page-btn:disabled {
background: #f0f0f0;
color: #aaa;
border-color: #e0e0e0;
cursor: not-allowed;
} .ng-prev-page, .ng-next-page {
min-width: 96px;
font-size: 15px;
} .ng-page-dot {
padding: 0 6px;
color: #999;
font-size: 16px;
} .ng-lightbox {
position: fixed; inset: 0;
background: #000;
z-index: 9999;
display: none;
align-items: center;
justify-content: center;
overflow: hidden;
animation: ng-fade .15s ease;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
}
.ng-lightbox.active { display: flex; }
@keyframes ng-fade {
from { opacity: 0; }
to   { opacity: 1; }
}
.ng-lightbox img {
max-width: 100vw;
max-height: 88vh;
object-fit: contain;
display: block;
-webkit-user-drag: none;
user-select: none;
} .ng-tap-left, .ng-tap-right {
position: absolute;
top: 12vh;
height: 76vh;
width: 35%;
z-index: 10001;
}
.ng-tap-left  { left: 0; }
.ng-tap-right { right: 0; } .ng-close, .ng-prev, .ng-next {
position: absolute;
border-radius: 50% !important; aspect-ratio: 1 / 1; background: rgba(255,255,255,.35);
backdrop-filter: blur(6px) saturate(140%);
-webkit-backdrop-filter: blur(6px) saturate(140%);
border: 1px solid rgba(255,255,255,.45);
color: #fff;
width: 52px; height: 52px;
cursor: pointer;
display: flex; align-items: center; justify-content: center;
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
font-weight: 400;
line-height: 1;
box-shadow: 0 2px 12px rgba(0,0,0,.28);
z-index: 10002;
transition: background .15s, transform .15s, opacity .15s; opacity: .82;
}
.ng-close:hover, .ng-prev:hover, .ng-next:hover {
background: rgba(255,255,255,.82);
color: #111;
opacity: 1;
transform: scale(1.06);
}
.ng-close:active, .ng-prev:active, .ng-next:active {
transform: scale(0.9);
opacity: 1;
} .ng-close {
top: 20px; right: 20px;
font-size: 22px;
} .ng-prev, .ng-next {
top: 50%;
transform: translateY(-50%);
font-size: 26px;
font-variant-numeric: tabular-nums;
}
.ng-prev { left: 18px; }
.ng-next { right: 18px; } .ng-prev:hover, .ng-next:hover { transform: translateY(-50%) scale(1.06); }
.ng-prev:active, .ng-next:active { transform: translateY(-50%) scale(0.9); } .ng-counter {
position: absolute;
bottom: 18px; left: 50%;
transform: translateX(-50%);
color: #fff; font-size: 22px; font-weight: 700;
background: rgba(0,0,0,.55);
padding: 8px 22px; border-radius: 24px;
letter-spacing: 1px;
min-width: 120px; text-align: center;
opacity: .88;
} .ng-hint {
position: absolute;
bottom: 70px; left: 50%;
transform: translateX(-50%);
color: rgba(255,255,255,.7);
font-size: 16px;
animation: ng-hint-fade 5s ease forwards;
pointer-events: none;
}
@keyframes ng-hint-fade {
0% { opacity: 0; }
15% { opacity: 1; }
85% { opacity: 1; }
100% { opacity: 0; }
} @media (max-width: 600px) {
body { font-size: 19px; } .ng-grid {
grid-template-columns: repeat(2, 1fr);
gap: 6px;
} .ng-lightbox img { max-height: 92vh; max-width: 100vw; }
.ng-close, .ng-prev, .ng-next {
width: 44px; height: 44px;
aspect-ratio: 1 / 1;
border-radius: 50% !important;
font-size: 22px;
}
.ng-prev { left: 10px; }
.ng-next { right: 10px; }
.ng-close { top: 14px; right: 14px; }
.ng-counter { font-size: 20px; padding: 8px 20px; bottom: 22px; }
.ng-tap-left, .ng-tap-right { width: 40%; } .ng-pager { gap: 6px; padding: 10px 8px; }
.ng-page-btn {
width: 44px;
height: 44px;
aspect-ratio: 1 / 1;
padding: 0 4px;
font-size: 15px;
border-radius: 10px;
}
.ng-prev-page, .ng-next-page { min-width: 84px; font-size: 14px; }
} .ng-strip { margin: 24px 0 8px; }
.strip-head {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 12px;
margin-bottom: 14px;
color: #555;
font-size: 16px;
}
.strip-head > span:first-child { flex: 1 1 auto; }
.strip-head b { color: #c0392b; font-size: 18px; }
.strip-count {
font-weight: 700;
color: #333;
font-variant-numeric: tabular-nums;
min-width: 84px;
text-align: right;
}
.strip-toggle {
height: 42px;
padding: 0 16px;
border: 2px solid #ddd;
border-radius: 8px;
background: #fff;
color: #333;
font-size: 15px;
font-weight: 600;
cursor: pointer;
}
.strip-toggle:hover { border-color: #c0392b; color: #c0392b; }
.strip-viewport {
overflow-x: auto;
overflow-y: hidden;
scroll-snap-type: x mandatory;
-webkit-overflow-scrolling: touch;
scrollbar-width: thin;
padding: 4px 2px 14px;
cursor: grab;
}
.strip-viewport:focus { outline: 3px solid rgba(192,57,43,.35); outline-offset: 4px; border-radius: 26px; }
.strip-viewport.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.strip-track {
display: flex;
gap: 18px;
margin: 0;
padding: 0;
list-style: none;
}
.strip-item {
flex: 0 0 78%;
scroll-snap-align: center;
aspect-ratio: 4 / 3;
border-radius: 22px;
overflow: hidden;
background: #ececec;
box-shadow: 0 10px 28px rgba(0,0,0,.12);
cursor: zoom-in;
list-style: none;
}
.strip-item img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
-webkit-user-drag: none;
user-select: none;
}
.strip-bar {
display: flex;
align-items: center;
gap: 14px;
margin-top: 8px;
}
.strip-btn {
min-width: 56px;
height: 52px;
padding: 0 18px;
border: 2px solid #ddd;
border-radius: 10px;
background: #fff;
color: #2c2c2c;
font-size: 1.05rem;
font-weight: 700;
cursor: pointer;
transition: all .15s;
white-space: nowrap;
}
.strip-btn:hover { border-color: #c0392b; color: #c0392b; }
.strip-btn:active { transform: scale(.96); }
.strip-progress {
flex: 1;
height: 10px;
background: #eee;
border-radius: 999px;
overflow: hidden;
}
.strip-progress-fill {
height: 100%;
width: 2%;
background: #c0392b;
border-radius: 999px;
transition: width .25s ease;
}
.strip-hint {
text-align: center;
color: #8a8a8a;
font-size: 15px;
margin-top: 10px;
transition: opacity .4s;
}
.strip-hint.is-hidden { opacity: 0; }
@media (min-width: 900px) {
.strip-item { flex: 0 0 58%; }
}
@media (max-width: 600px) {
.strip-item { flex: 0 0 80%; border-radius: 18px; }
.strip-track { gap: 14px; }
.strip-btn { height: 50px; min-width: 50px; padding: 0 12px; font-size: 1rem; }
.strip-bar { gap: 10px; }
.strip-count { min-width: 70px; }
}