/* =====================================================================
   OSports 现代 UI 设计系统 (Modern Design System)
   定位：图片 / 体育图库站点  |  基调：亮色 + 橙红品牌色点缀
   说明：纯展示层样式，不侵入 JSP 后端逻辑，可作为改造基准套用到各页面
   ===================================================================== */

/* ---------- 1. 设计令牌 (Design Tokens) ---------- */
:root {
  /* 色彩 */
  --c-bg:            #f6f7f9;
  --c-surface:       #ffffff;
  --c-surface-2:     #f0f2f5;
  --c-surface-3:     #e9ecef;
  --c-border:        #e6e8eb;
  --c-border-strong: #d4d8dd;

  --c-text:          #1a1d21;
  --c-text-2:        #5b6470;
  --c-text-3:        #8a929c;

  /* 品牌橙红 */
  --brand:           #ff4d2e;
  --brand-dark:      #e23c1f;
  --brand-darker:    #c43217;
  --brand-light:     #fff1ed;
  --brand-ring:      rgba(255, 77, 46, .28);

  --c-overlay:       rgba(18, 20, 24, .62);

  /* 圆角 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* 阴影 */
  --sh-1: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --sh-2: 0 4px 12px rgba(16,24,40,.08), 0 2px 6px rgba(16,24,40,.06);
  --sh-3: 0 12px 28px rgba(16,24,40,.14), 0 4px 10px rgba(16,24,40,.08);
  --sh-brand: 0 8px 20px var(--brand-ring);

  /* 间距 */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;

  /* 字体 */
  --font: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* 布局 */
  --nav-h: 64px;
  --container: 1240px;
  --container-sm: 1080px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }

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

h1, h2, h3, h4, p { margin: 0; }

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--brand-ring); color: var(--c-text); }

/* 滚动条美化 */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
  background: var(--c-border-strong); border-radius: var(--r-pill);
  border: 2px solid var(--c-bg);
}
*::-webkit-scrollbar-thumb:hover { background: var(--c-text-3); }

/* ---------- 3. 布局容器 ---------- */
.os-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.os-container--narrow { max-width: var(--container-sm); }

/* ---------- 4. 顶部导航 ---------- */
.os-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.os-nav__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.os-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .2px;
  color: var(--c-text);
  white-space: nowrap;
}
.os-logo__mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 900;
  box-shadow: var(--sh-brand);
}
.os-logo small { color: var(--c-text-3); font-weight: 600; font-size: 11px; }

.os-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0; padding: 0;
}
.os-menu a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--c-text-2);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.os-menu a:hover { color: var(--c-text); background: var(--c-surface-2); }
.os-menu a.is-active { color: var(--brand-dark); background: var(--brand-light); }

.os-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--c-surface-2);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 7px 8px 7px 14px;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  min-width: 230px;
}
.os-search:focus-within {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring);
}
.os-search svg { flex: none; color: var(--c-text-3); }
.os-search input {
  border: 0; outline: 0; background: transparent;
  font-size: 14px; color: var(--c-text); width: 100%;
}
.os-search input::placeholder { color: var(--c-text-3); }

.os-nav__actions { display: flex; align-items: center; gap: var(--sp-2); }

/* 汉堡（移动端） */
.os-burger {
  display: none;
  border: 0; background: var(--c-surface-2);
  width: 40px; height: 40px; border-radius: var(--r-sm);
  color: var(--c-text);
}

/* ---------- 5. 按钮 ---------- */
.os-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: transform .12s var(--ease), background .18s var(--ease),
              box-shadow .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.os-btn:active { transform: translateY(1px); }

.os-btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: var(--sh-brand);
}
.os-btn--primary:hover { box-shadow: 0 10px 24px var(--brand-ring); }

.os-btn--ghost {
  background: #fff; color: var(--c-text);
  border-color: var(--c-border-strong);
}
.os-btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); }

.os-btn--soft {
  background: var(--brand-light); color: var(--brand-dark);
}
.os-btn--soft:hover { background: #ffe6df; }

.os-btn--sm { padding: 6px 13px; font-size: 13px; }
.os-btn--block { width: 100%; }

/* 组照详情页头部 */
.os-bag-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 15px 5px 25px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
}
.os-bag-header__main { min-width: 0; flex: 1; }
.os-bag-header__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-text);
}
.os-bag-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13px;
  color: var(--c-text-2);
}
.os-bag-header__divider { color: var(--c-text-3); }

/* ---------- 6. 标签 / 徽标 ---------- */
.os-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--c-surface-2);
  color: var(--c-text-2);
  border: 1px solid var(--c-border);
}
.os-tag--brand { background: var(--brand-light); color: var(--brand-dark); border-color: transparent; }
.os-tag--live  {
  background: var(--brand); color: #fff; border-color: transparent;
}
.os-tag--live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: os-pulse 1.6s infinite;
}
.os-tag--dark { background: rgba(0,0,0,.55); color: #fff; border-color: transparent; }

@keyframes os-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
  70%  { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* ---------- 7. 区块标题 ---------- */
.os-section { padding: var(--sp-7) 0; }
.os-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.os-section__title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .2px;
}
.os-section__title::before {
  content: "";
  width: 5px; height: 22px;
  border-radius: var(--r-pill);
  background: linear-gradient(var(--brand), var(--brand-dark));
}
.os-section__more {
  font-size: 14px; font-weight: 600; color: var(--c-text-2);
  display: inline-flex; align-items: center; gap: 4px;
  transition: color .18s var(--ease), gap .18s var(--ease);
}
.os-section__more:hover { color: var(--brand-dark); gap: 8px; }
.os-section__more .os-section__arrow { width: 16px; height: 16px; transition: transform .18s var(--ease); }
.os-section__more:hover .os-section__arrow { transform: translateX(3px); }

/* ---------- 8. 分类筛选 Chips ---------- */
.os-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.os-chip {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border-strong);
  background: var(--c-surface);
  color: var(--c-text-2);
  font-size: 14px;
  font-weight: 500;
  transition: all .18s var(--ease);
}
.os-chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.os-chip.is-active {
  background: var(--brand); color: #fff; border-color: var(--brand);
  box-shadow: var(--sh-brand);
}

/* ---------- 9. 英雄区 (Hero) ---------- */
.os-hero {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: var(--sh-3);
  isolation: isolate;
}
.os-hero__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.os-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.78) 100%);
}
.os-hero__body { padding: var(--sp-6); width: 100%; }
.os-hero__kicker {
  display: inline-flex; margin-bottom: var(--sp-3);
}
.os-hero__title {
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 800; line-height: 1.2;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
  max-width: 780px;
}
.os-hero__meta {
  margin-top: var(--sp-3);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  font-size: 14px; color: rgba(255,255,255,.86);
}
.os-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }

/* 英雄区缩略切换条 */
.os-hero__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.os-hero__thumb {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
  opacity: .72;
}
.os-hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.os-hero__thumb:hover { opacity: 1; transform: translateY(-2px); }
.os-hero__thumb.is-active { border-color: var(--brand); opacity: 1; }

/* ---------- 10. 图片卡片网格 (Photo Grid) ---------- */
.os-grid {
  display: grid;
  /* 列数可由后端注入(style="--cols: N")，媒体查询负责降级 */
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: var(--sp-4);
}
.os-grid--3 { --cols: 3; }

/* 卡片 */
.os-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.os-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
  border-color: var(--c-border-strong);
}

.os-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-surface-3);
}
.os-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease), opacity .2s var(--ease);
}
.os-card:hover .os-card__media img { transform: scale(1.06); }
.os-card__media::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: var(--c-surface-3, #f0f2f5) url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%239ca3af%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Ccircle%20cx%3D%228.5%22%20cy%3D%228.5%22%20r%3D%221.5%22%2F%3E%3Cpolyline%20points%3D%2221%2015%2016%2010%205%2021%22%2F%3E%3C%2Fsvg%3E") no-repeat center / 48px;
  opacity: 0;
  transition: opacity .2s var(--ease);
  pointer-events: none;
}
.os-card__media.is-error::before { opacity: 1; }
.os-card__media.is-error img { opacity: 0; }
.os-card__stretched {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* 网格末尾「查看更多」虚拟卡片 */
.os-card--more {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  border: 1px dashed var(--c-border-strong, #d4d8dd);
  box-shadow: none;
  color: var(--c-text-2, #5b6470);
}
.os-card--more:hover {
  transform: translateY(-4px);
  border-color: var(--brand, #ff4d2e);
  color: var(--brand-dark, #e23b1c);
  box-shadow: var(--sh-2, 0 6px 18px rgba(16, 24, 40, .08));
}
.os-card--more__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--sp-5) var(--sp-3);
}
.os-card--more__icon { width: 32px; height: 32px; }
.os-card--more__text { font-size: 14px; font-weight: 700; }

/* 组照内单图卡片(保留购物车/下载等交互) */
.os-photo-card { position: relative; padding: 0; }
.os-photo-card .photoborder {
  border: 0;
  overflow: hidden;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}
/* 瀑布流中取消固定比例/尺寸，让图片按原始高度形成错落布局 */
.os-photo-masonry .os-photo-card .photoborder,
.os-masonry .os-photo-card .photoborder {
  aspect-ratio: auto !important;
  width: 100% !important;
  height: auto !important;
}
.os-photo-masonry .os-photo-card .photoborder > a,
.os-masonry .os-photo-card .photoborder > a {
  height: auto !important;
}
.os-photo-masonry .os-photo-card .photoborder img,
.os-masonry .os-photo-card .photoborder img {
  height: auto !important;
  object-fit: initial !important;
}

/* 组照详情页瀑布流 5 列 */
.os-photo-masonry { columns: 5; }
@media (max-width: 1080px) { .os-photo-masonry { columns: 4; } }
@media (max-width: 820px) { .os-photo-masonry { columns: 3; } }
@media (max-width: 560px) { .os-photo-masonry { columns: 2; } }
.os-photo-card .photoborder > a {
  display: block;
  height: 100%;
}
.os-photo-card .photoborder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.os-photo-card__body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.os-photo-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--c-text-2);
}
.os-photo-card__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--c-text-3);
}
.os-photo-card__warn:empty { display: none; }
.os-photo-card__bag {
  align-self: flex-start;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.os-photo-card__bag:hover { background: #ffe6df; }
.os-photo-card__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.os-photo-card__desc:empty { display: none; }
.os-photo-card__flag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 3px;
  margin-top: 2px;
  padding: 2px 9px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-text-2, #5b6470);
  background: rgba(16,24,40,.05);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.os-photo-card__flag:hover {
  color: var(--brand, #ff4d2e);
  background: var(--brand-light, #fff1ee);
}
.os-photo-card__flag svg { display: block; }

/* 购物车/下载复用组照卡片的悬浮图标按钮，hover 时从图片底部浮出 */
.os-photo-card__overlay {
  pointer-events: none;
}
.os-photo-card:hover .os-card__overlay { opacity: 1; }
.os-photo-card:hover .os-card__actions { transform: translateY(0); opacity: 1; }
.os-photo-card__overlay .os-card__actions { pointer-events: auto; }
.os-photo-card__limited-fab {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  color: #fff;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}
.os-photo-card .ellipsis { margin: 4px 0; }
.os-photo-card__top {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  padding: 2px 8px;
  font-size: 12px;
  color: #fff;
  background: #f0a04b;
}

/* 加入购物车后的状态：绿色描边 + 右上角徽标 */
.os-photo-card.is-incart .photoborder img,
.photoborder img.is-incart {
  box-shadow: 0 0 0 2px #2fae5f inset;
}
.os-photo-card.is-incart::after {
  content: "\2713 已加入";
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: #2fae5f;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
  pointer-events: none;
}

/* ---------- 18. 单图详情页 (Photo Detail) ---------- */
.os-photo-detail {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-5) var(--sp-7);
}
.os-photo-detail__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) 0 var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}
.os-photo-detail__brand img { height: 34px; width: auto; }

.os-photo-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--sp-6);
  align-items: start;
}
.os-photo-detail__media {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: var(--sp-4);
}
.os-photo-detail__media img,
.os-photo-detail__media object {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-sm);
}

.os-photo-detail__panel {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-4));
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.os-photo-detail__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-text);
}
.os-photo-detail__metalist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.os-photo-detail__meta { display: flex; gap: 10px; font-size: 13.5px; }
.os-photo-detail__meta--block { flex-direction: column; gap: 6px; }
.os-photo-detail__label { flex: none; width: 64px; color: var(--c-text-3); }
.os-photo-detail__value { color: var(--c-text); min-width: 0; }
.os-photo-detail__cats,
.os-photo-detail__links { display: flex; flex-wrap: wrap; gap: 6px; }
.os-photo-detail__cat { cursor: pointer; }
.os-link-brand { color: var(--brand-dark); font-weight: 600; }
.os-link-brand:hover { text-decoration: underline; }

/* 购买 / 下载卡片 */
.os-purchase {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  box-shadow: var(--sh-1);
}
.os-purchase__title { font-size: 14px; font-weight: 700; margin-bottom: var(--sp-3); }
.os-purchase__sizes { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--sp-3); }
.os-size-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.os-size-row:hover { border-color: var(--brand); }
.os-size-row:has(input:checked) { border-color: var(--brand); background: var(--brand-light); }
.os-size-row input { accent-color: var(--brand); }
.os-size-row.is-disabled { opacity: .5; cursor: not-allowed; }
.os-size-row__name { font-weight: 600; min-width: 42px; }
.os-size-row__dim { color: var(--c-text-2); }
.os-size-row__dpi { color: var(--c-text-3); font-size: 12px; }
.os-size-row__size { margin-left: auto; color: var(--c-text-2); font-size: 12px; }
.os-purchase__cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-3);
  font-size: 13px;
  color: var(--c-text-2);
}
.os-purchase__cart:hover { color: var(--brand-dark); }

/* 规格说明 */
.os-photo-detail__specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.os-photo-detail__specs > div { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.6; }
.os-photo-detail__specs dt { flex: none; width: 64px; color: var(--c-text-3); margin: 0; }
.os-photo-detail__specs dd { margin: 0; color: var(--c-text); min-width: 0; }

@media (max-width: 900px) {
  .os-photo-detail__layout { grid-template-columns: 1fr; }
  .os-photo-detail__panel { position: static; }
}

.os-photo-detail__media-img { cursor: zoom-in; }

/* 图片放大灯箱 (Lightbox) */
.os-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  background: var(--c-overlay);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
  opacity: 1;
  transition: opacity .2s var(--ease);
}
.os-lightbox[hidden] { display: none; }
.os-lightbox__img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-3);
  cursor: grab;
  transform-origin: center center;
  transition: transform .12s var(--ease);
  user-select: none;
  -webkit-user-drag: none;
}
.os-lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s var(--ease);
}
.os-lightbox__close:hover { background: rgba(255, 255, 255, .3); }
.os-lightbox__hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .45);
  color: rgba(255, 255, 255, .85);
  font-size: 12.5px;
  white-space: nowrap;
}

/* ---------- 20. 图片列表页 (Photo List) ---------- */
.os-photo-list { padding: var(--sp-3) 0; }

.os-list-tipbar {
  display: flex;
  justify-content: center;
  margin-bottom: var(--sp-4);
}
.os-list-tipbar__form { margin: 0; }
.os-list-tipbar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  transition: background .18s var(--ease);
}
.os-list-tipbar__link:hover { background: #ffe3c2; }

.os-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: var(--sp-3) 0;
}
.os-pager__count { color: var(--c-text-2); font-size: 13.5px; white-space: nowrap; }
.os-pager__nav { display: flex; align-items: center; gap: 6px; margin: 0; flex-wrap: wrap; }
.os-pager__num,
.os-pager__arrow {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 13.5px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.os-pager__num:hover:not(.is-active):not(.is-disabled),
.os-pager__arrow:hover:not(.is-disabled) {
  border-color: var(--brand);
  color: var(--brand);
}
.os-pager__num.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  cursor: default;
}
.os-pager__arrow.is-disabled,
.os-pager__num.is-disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}
.os-pager__ellipsis {
  padding: 0 4px;
  color: var(--c-text-2);
  user-select: none;
}
.os-pager__jump { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.os-pager__jumplabel { font-size: 13.5px; color: var(--c-text-2); white-space: nowrap; }
.os-pager__input {
  width: 48px;
  padding: 6px 8px;
  text-align: center;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  background: var(--c-surface);
}
.os-pager__input:focus { outline: none; border-color: var(--brand); }

.os-pager__more { display: flex; justify-content: center; margin: var(--sp-3) 0; }
.os-pager__morelink {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: #f4ed75;
  color: #000;
  font-weight: 600;
  font-size: 13.5px;
  transition: background .18s var(--ease);
}
.os-pager__morelink:hover { background: #efe63f; }

/* ---------- 21. 近期更新列表 (Recent List) ---------- */
.os-recent { padding: var(--sp-4) 0; }

.os-recent__section { margin-bottom: var(--sp-6); }

.os-recent__head {
  display: flex;
  align-items: center;
  margin-bottom: var(--sp-3);
}
.os-recent__head::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--brand);
  margin-right: 10px;
}
.os-recent__head-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
}

.os-recent__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  overflow: hidden;
}
.os-recent__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}
.os-recent__item:last-child { border-bottom: none; }
.os-recent__item:hover { background: var(--c-surface-2); }

.os-recent__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 1;
  min-width: 0;
  color: var(--c-text);
}
.os-recent__link:hover .os-recent__title { color: var(--brand); }

.os-recent__time {
  flex-shrink: 0;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--c-text-3);
  white-space: nowrap;
}
.os-recent__title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--c-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.os-recent__count {
  flex-shrink: 0;
  font-size: 12.5px;
  color: var(--c-text-3);
}

.os-recent__item.is-read .os-recent__link,
.os-recent__item.is-read .os-recent__time,
.os-recent__item.is-read .os-recent__title,
.os-recent__item.is-read .os-recent__count { color: #adaaad; }
.os-recent__item.is-read .os-recent__link:hover .os-recent__title { color: #adaaad; }

/* 悬浮遮罩 */
.os-card__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--sp-3);
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.6) 100%);
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.os-card:hover .os-card__overlay { opacity: 1; }
.os-card__actions {
  display: flex; gap: var(--sp-2);
  transform: translateY(8px);
  opacity: 0;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.os-card:hover .os-card__actions { transform: translateY(0); opacity: 1; }
.os-icon-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  border: 0;
  font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.94);
  color: var(--c-text);
  backdrop-filter: blur(4px);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.os-icon-btn--brand { background: var(--brand); color: #fff; }
.os-icon-btn--brand:hover { background: var(--brand-dark); }
.os-icon-btn:hover { background: #fff; }

/* 角标 */
.os-card__badge {
  position: absolute; top: var(--sp-3); left: var(--sp-3);
  z-index: 2;
}
.os-card__badge--right { left: auto; right: var(--sp-3); }

/* 卡片信息 */
.os-card__body { padding: var(--sp-3) var(--sp-3) var(--sp-4); }
.os-card__title {
  font-size: 14.5px; font-weight: 700; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.os-card__meta {
  margin-top: 6px;
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: 12.5px; color: var(--c-text-3);
}
.os-card__author { color: var(--c-text-2); font-weight: 600; }
.os-card__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--c-border-strong); }

/* ---------- 11. Masonry 瀑布流 ---------- */
.os-masonry {
  columns: 4;
  column-gap: var(--sp-4);
}
.os-masonry > .os-card {
  break-inside: avoid;
  margin-bottom: var(--sp-4);
}
.os-masonry .os-card__media { aspect-ratio: auto; }

/* ---------- 12. 分页 ---------- */
.os-pager {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: var(--sp-6);
}
.os-pager a, .os-pager span {
  min-width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-2); font-size: 14px; font-weight: 600;
  transition: all .18s var(--ease);
}
.os-pager a:hover { border-color: var(--brand); color: var(--brand-dark); }
.os-pager .is-active {
  background: var(--brand); color: #fff; border-color: var(--brand);
  box-shadow: var(--sh-brand);
}
.os-pager .is-disabled { opacity: .45; pointer-events: none; }

/* ---------- 13. 统计条 ---------- */
.os-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-1);
}
.os-stat__num { font-size: 28px; font-weight: 800; color: var(--c-text); }
.os-stat__num em { color: var(--brand); font-style: normal; }
.os-stat__label { font-size: 13px; color: var(--c-text-3); margin-top: 2px; }

/* ---------- 14. 页脚 ---------- */
.os-footer {
  margin-top: var(--sp-8);
  background: #15181c;
  color: #c9ced6;
  padding: var(--sp-7) 0 var(--sp-5);
}
.os-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--sp-6);
}
.os-footer .os-logo { color: #fff; }
.os-footer .os-logo small { color: #8b929c; }
.os-footer p { color: #9aa1ab; font-size: 13.5px; margin-top: var(--sp-3); max-width: 320px; }
.os-footer h4 { color: #fff; font-size: 14px; margin-bottom: var(--sp-3); }
.os-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.os-footer a { color: #9aa1ab; font-size: 13.5px; transition: color .18s var(--ease); }
.os-footer a:hover { color: var(--brand); }
.os-footer__bar {
  margin-top: var(--sp-6); padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  justify-content: space-between;
  font-size: 12.5px; color: #7b828c;
}

/* ---------- 15. 工具类 ---------- */
.os-flex { display: flex; }
.os-between { justify-content: space-between; }
.os-center { align-items: center; }
.os-gap-2 { gap: var(--sp-2); }
.os-gap-3 { gap: var(--sp-3); }
.os-mt-4 { margin-top: var(--sp-4); }
.os-mt-5 { margin-top: var(--sp-5); }
.os-mb-4 { margin-bottom: var(--sp-4); }
.os-text-2 { color: var(--c-text-2); }
.os-text-3 { color: var(--c-text-3); }
.os-hidden { display: none !important; }

/* ---------- 17. Chrome 组件：顶部导航 / 搜索条 / 分类菜单 / 侧边栏 ---------- */

/* ===== os-topnav 顶部导航 ===== */
.os-topnav {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--sh-1);
}
.os-topnav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
}
.os-topnav__brand { display: flex; align-items: center; flex-shrink: 0; }
.os-topnav__logo { height: 40px; width: auto; }
.os-topnav__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.os-topnav__login {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.os-topnav__login input {
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: 13px;
  color: var(--c-text);
  outline: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.os-topnav__login input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}
.os-topnav__user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.os-topnav__cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--c-text);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.os-topnav__cart:hover { background: var(--brand-light); border-color: transparent; color: var(--brand-dark); }
.os-topnav__cart svg { width: 20px; height: 20px; }
.os-topnav__quota { font-size: 12px; color: var(--c-text-3); }
.os-topnav__quota strong { color: var(--brand); }

.os-topnav__dropdown { position: relative; }
.os-topnav__dropbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--c-text);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.os-topnav__dropbtn:hover { background: var(--brand-light); color: var(--brand-dark); border-color: transparent; }
.os-topnav__dropbtn::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.os-topnav__user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  flex-shrink: 0;
}
.os-topnav__user-name { font-weight: 500; }
.os-topnav__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  display: none;
  flex-direction: column;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  z-index: 1200;
}
/* 按钮与菜单之间的 8px 空隙架一座透明桥，避免鼠标移入空隙时菜单消失 */
.os-topnav__menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.os-topnav__dropdown:hover .os-topnav__menu,
.os-topnav__dropdown:focus-within .os-topnav__menu { display: flex; }
.os-topnav__menu a {
  padding: 9px 12px;
  font-size: 13px;
  color: var(--c-text);
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.os-topnav__menu a:hover { background: var(--brand-light); color: var(--brand-dark); }
.os-topnav__menu-logout {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--c-border);
}
.os-topnav__menu-logout:hover { background: #fff0f0; color: #d92b2b; }

.os-topnav__links {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.os-topnav__links::-webkit-scrollbar { display: none; }
.os-topnav__links a,
.os-topnav__more {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  color: var(--c-text-2);
  font-size: 14px;
  border-radius: var(--r-sm);
  transition: background .18s var(--ease), color .18s var(--ease);
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.os-topnav__links a:hover,
.os-topnav__more:hover { background: var(--c-surface-2); color: var(--c-text); }

/* ===== os-searchbar 搜索条 ===== */
.os-searchbar {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 16px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.os-searchbar__main { flex: 1 1 auto; min-width: 0; }
.os-searchbar__tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 4px;
  flex-basis: 100%;
}
.search-tab, .search-tab-act {
  padding: 6px 16px;
  font-size: 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border-strong);
  background: #fff;
  color: var(--c-text-2);
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.search-tab-act {
  background: var(--brand-light);
  border-color: transparent;
  color: var(--brand-dark);
  font-weight: 600;
}
.os-searchbar__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.os-searchbar__field {
  position: relative;
  flex: 1 1 0;
  min-width: 220px;
}
.os-searchbar__field input[name="keywords"] {
  width: 100%;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-size: 14px;
  color: var(--c-text);
  background: #fff;
  outline: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.os-searchbar__field input[name="keywords"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring);
}
#sug_div_ { z-index: 100; }
.os-searchbar__form #searchBtn { padding: 10px 28px; border-radius: var(--r-pill); }
.os-searchbar__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}
.os-searchbar__filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--c-text-2);
}
/* Custom select (replaces native <select> popup, keeps native for submit) */
.os-select { position: relative; display: inline-block; vertical-align: middle; }
.os-native-select {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0; opacity: 0;
  overflow: hidden; clip: rect(0 0 0 0); pointer-events: none;
}
.os-select__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 76px; padding: 6px 12px;
  font-size: 13px; line-height: 1.4; color: var(--c-text);
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border-strong, #d4d8dd);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.os-select__trigger:hover { border-color: var(--brand, #ff4d2e); }
.os-select.is-open .os-select__trigger {
  border-color: var(--brand, #ff4d2e);
  box-shadow: 0 0 0 3px var(--brand-ring, rgba(255,77,46,.18));
}
.os-select__text { flex: 1 1 auto; text-align: left; white-space: nowrap; }
.os-select__caret { flex: 0 0 auto; display: inline-flex; transition: transform .18s var(--ease); }
.os-select.is-open .os-select__caret { transform: rotate(180deg); }
.os-select__menu {
  position: absolute; z-index: 60;
  top: calc(100% + 6px); left: 0; min-width: 100%;
  max-height: 280px; overflow-y: auto;
  padding: 6px;
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e6e8eb);
  border-radius: var(--r-md, 12px);
  box-shadow: 0 14px 34px rgba(16,24,40,.16);
  display: none;
}
.os-select.is-open .os-select__menu { display: block; }
.os-select__option {
  padding: 8px 12px; border-radius: 8px;
  font-size: 13.5px; color: var(--c-text, #1a1d21);
  cursor: pointer; white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.os-select__option:hover { background: var(--brand-light, #fff1ee); color: var(--brand-dark, #e23b1c); }
.os-select__option.is-selected { background: var(--brand, #ff4d2e); color: #fff; }
.os-select__group { padding: 2px 0; }
.os-select__group-label {
  padding: 8px 12px 4px; font-size: 12px; font-weight: 700;
  color: var(--c-text-2, #5b6470);
}

.os-searchbar__tools {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.os-searchbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.os-searchbar__links a {
  font-size: 13px;
  color: var(--c-text-2);
  padding: 4px 8px;
  border-radius: var(--r-sm);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.os-searchbar__links a:hover { background: var(--brand-light); color: var(--brand-dark); }

/* ===== os-menubar 分类导航条 ===== */
.os-menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: var(--c-bg);
}
.os-menubar__main {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.os-menubar__main::-webkit-scrollbar { display: none; }
.os-menubar__item { position: relative; flex-shrink: 0; }
.os-menubar__item > a {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-2);
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-pill);
  transition: all .18s var(--ease);
  white-space: nowrap;
}
.os-menubar__item > a:hover { border-color: var(--brand); color: var(--brand-dark); }
.os-menubar__item > a.menu_selected,
.os-menubar__item > a.menu_sub_selected { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: var(--sh-brand); }
.os-menubar__item > a[style*="color:red"] { color: var(--brand-dark) !important; }
.os-menubar__item > a.menu_selected[style*="color:red"],
.os-menubar__item > a.menu_sub_selected[style*="color:red"] { color: #fff !important; }
.os-menubar__tip {
  flex: 0 0 auto;
  max-width: 180px;
  font-size: 12px;
  color: var(--c-text-3);
}
.os-menubar__tip marquee { color: var(--brand); }

/* ===== 下拉菜单板（header / menubar 共用） ===== */
.menu_board {
  background: #fff !important;
  border: 1px solid var(--c-border) !important;
  border-radius: var(--r-md) !important;
  box-shadow: var(--sh-3) !important;
  overflow: hidden;
  padding: 4px 0;
}
.menu_board table, .menu_board tbody, .menu_board tr, .menu_board td { background: transparent !important; }
.menu_board td { padding: 0 !important; cursor: pointer; transition: background .15s var(--ease); }
.menu_board td.menu_over { background: var(--brand-light) !important; }
.menu_board td.menu_normal { background: #fff !important; }
.menu_board .menu,
.menu_board .menu_selected,
.menu_board .menu_sub_selected {
  display: block;
  padding: 9px 16px !important;
  color: var(--c-text) !important;
  font-size: 14px;
  white-space: nowrap;
  line-height: 1.45;
}
.menu_board td.menu_over .menu,
.menu_board td.menu_over .menu_selected,
.menu_board td.menu_over .menu_sub_selected { color: var(--brand-dark) !important; font-weight: 600; }
.menu_board .menu_selected,
.menu_board .menu_sub_selected { background: transparent !important; }

/* ===== os-sidebar 侧边栏 ===== */
.os-sidebar {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  overflow: hidden;
  width: 180px;
}
.os-sidebar__title {
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  background: var(--brand);
  color: #fff;
  letter-spacing: .5px;
}
.os-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.os-sidebar__list + .os-sidebar__list { border-top: 1px solid var(--c-border); }
.os-sidebar__list li a {
  display: block;
  padding: 8px 14px;
  color: var(--c-text-2);
  font-size: 14px;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.os-sidebar__list li a:hover { background: var(--brand-light); color: var(--brand-dark); }

/* ===== os-btn 按钮 ===== */
.os-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.os-btn--primary { background: var(--brand); color: #fff; }
.os-btn--primary:hover { background: var(--brand-dark); }
.os-btn--ghost {
  background: #fff;
  color: var(--c-text-2);
  border-color: var(--c-border-strong);
}
.os-btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ===== 通用内容组件（提示框 / 面板 / 工具条 / 表格 / 网格） ===== */
.os-notice {
  margin: 0 0 18px;
  padding: 12px 16px;
  background: #fff8e6;
  border: 1px solid #ffe08a;
  border-radius: var(--r-md, 10px);
  color: #8a6d00;
  font-size: 13px;
  line-height: 1.7;
}
.os-panel {
  background: #fff;
  border: 1px solid var(--c-border, #e6e8eb);
  border-radius: var(--r-lg, 14px);
  overflow: hidden;
}
.os-panel__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-border, #e6e8eb);
}
.os-panel__bar .count { font-size: 13px; color: var(--c-text-2, #5b6470); }
.os-panel__bar .pager { display: flex; align-items: center; gap: 10px; }
.os-panel__bar .pg-info { font-size: 13px; color: var(--c-text-2, #5b6470); }
.os-panel__bar form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.os-panel__bar img,
.os-panel__bar input[type=image] { vertical-align: middle; }
.os-panel__bar .goto { display: inline-flex; align-items: center; gap: 6px; }
.os-panel__bar .goto input[name=page] {
  width: 48px;
  padding: 6px 8px;
  border: 1px solid var(--c-border-strong, #d4d8dd);
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
}

.os-table { width: 100%; border-collapse: collapse; }
.os-table thead th {
  padding: 12px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-2, #5b6470);
  background: var(--c-surface-2, #f0f2f5);
  border-bottom: 1px solid var(--c-border, #e6e8eb);
  white-space: nowrap;
}
.os-table tbody td {
  padding: 12px 14px;
  text-align: center;
  font-size: 14px;
  color: var(--c-text, #1a1d21);
  border-bottom: 1px solid var(--c-border, #e6e8eb);
  vertical-align: middle;
}
.os-table tbody tr:nth-child(even) { background: #fafbfc; }
.os-table tbody tr:hover { background: var(--brand-light, #ffece8); }
.os-table tbody tr:last-child td { border-bottom: 0; }
.os-table .ta-l { text-align: left; }
.os-table .thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--c-surface-2, #f0f2f5);
  display: inline-block;
}
.os-table .pid { color: var(--c-text-2, #5b6470); font-size: 12px; }
.os-table-wrap { width: 100%; overflow-x: auto; }
.os-callout {
  margin: 0 0 18px;
  padding: 12px 16px;
  background: var(--c-surface-2, #f0f2f5);
  border: 1px solid var(--c-border, #e6e8eb);
  border-radius: var(--r-md, 10px);
  font-size: 13px;
  line-height: 1.7;
}
.os-callout dt { font-weight: 700; color: var(--c-text, #1a1d21); margin-top: 6px; }
.os-callout dd { margin: 0 0 6px; color: var(--c-text-2, #5b6470); }

.os-baglist { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.os-baglist__item {
  display: flex;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--c-border, #e6e8eb);
  border-radius: var(--r-md, 12px);
  background: #fff;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.os-baglist__item:hover { border-color: var(--c-border-strong, #d4d8dd); box-shadow: var(--sh-2, 0 6px 18px rgba(16,24,40,.08)); }
.os-baglist__thumb { flex: 0 0 160px; }
.os-baglist__thumb img { width: 160px; height: 120px; object-fit: cover; border-radius: 8px; background: var(--c-surface-2, #f0f2f5); display: block; }
.os-baglist__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.os-baglist__title { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.os-baglist__title a { color: var(--c-text, #1a1d21); }
.os-baglist__title a:hover { color: var(--brand-dark, #e23c1f); }
.os-baglist__meta { font-size: 13px; color: var(--c-text-2, #5b6470); line-height: 1.6; flex: 1 1 auto; }
.os-baglist__foot { display: flex; justify-content: flex-end; padding-top: 8px; }
@media (max-width: 560px) {
  .os-baglist__item { flex-direction: column; }
  .os-baglist__thumb, .os-baglist__thumb img { flex-basis: auto; width: 100%; height: 160px; }
}

.os-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.os-grid__card {
  background: #fff;
  border: 1px solid var(--c-border, #e6e8eb);
  border-radius: var(--r-md, 12px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s var(--ease), border-color .15s var(--ease);
}
.os-grid__card:hover { border-color: var(--c-border-strong, #d4d8dd); box-shadow: var(--sh-2, 0 6px 18px rgba(16,24,40,.08)); }
.os-grid__thumb {
  aspect-ratio: 4 / 3;
  background: var(--c-surface-2, #f0f2f5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.os-grid__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.os-grid__body { padding: 10px 12px; font-size: 13px; }
.os-grid__title { font-weight: 600; color: var(--c-text, #1a1d21); margin-bottom: 4px; }
.os-grid__meta { color: var(--c-text-2, #5b6470); font-size: 12px; line-height: 1.5; }

/* 表单字段（编辑/搜索页通用） */
.os-form { padding: 18px; }
.os-form__section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text, #1a1d21);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border, #e6e8eb);
}
.os-form__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.os-form__label {
  flex: 0 0 84px;
  padding-top: 8px;
  font-size: 13px;
  color: var(--c-text-2, #5b6470);
  text-align: right;
}
.os-form__control { flex: 1 1 320px; min-width: 0; }
.os-form__control textarea,
.os-form__control input[type=text],
.os-form__control select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--c-border-strong, #d4d8dd);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  color: var(--c-text, #1a1d21);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.os-form__control textarea:focus,
.os-form__control input[type=text]:focus,
.os-form__control select:focus {
  border-color: var(--brand, #ff4d2e);
  box-shadow: 0 0 0 3px var(--brand-ring, rgba(255,77,46,.18));
  outline: none;
}
.os-form__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: var(--sp-5, 20px);
  padding-top: var(--sp-4, 16px);
  border-top: 1px solid var(--c-border, #e6e8eb);
}

.os-photoedit {
  display: flex;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--c-border, #e6e8eb);
  border-radius: var(--r-md, 12px);
  margin-bottom: 12px;
  background: #fff;
}
.os-photoedit__media { flex: 0 0 120px; text-align: center; }
.os-photoedit__media img { max-width: 120px; border-radius: 8px; background: var(--c-surface-2, #f0f2f5); }
.os-photoedit__links { margin-top: 8px; display: flex; gap: 10px; justify-content: center; align-items: center; font-size: 12px; color: var(--c-text-2, #5b6470); }

.os-photoedit__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}
.os-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-surface-2, #f0f2f5);
  color: var(--c-text-2, #5b6470);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .12s var(--ease), color .12s var(--ease);
}
.os-iconbtn svg { width: 18px; height: 18px; display: block; }
.os-iconbtn:hover { transform: translateY(-1px); box-shadow: var(--sh-2, 0 6px 18px rgba(16,24,40,.08)); }
.os-iconbtn--brand { background: var(--brand, #ff4d2e); color: #fff; }
.os-iconbtn--brand:hover { box-shadow: 0 6px 16px rgba(255,77,46,.35); }
.os-iconbtn--ghost { background: var(--c-surface-2, #f0f2f5); color: var(--c-text-2, #5b6470); }
.os-iconbtn--ghost:hover { background: #e7eaee; color: var(--c-text, #1a1d21); }
.os-photoedit__body { flex: 1 1 auto; min-width: 0; }
@media (max-width: 560px) {
  .os-photoedit { flex-direction: column; }
  .os-photoedit__media { flex-basis: auto; }
}

.dir-list { display: flex; flex-direction: column; gap: 10px; }
.dir-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--c-border, #e6e8eb);
  border-radius: var(--r-md, 12px);
  background: #fff;
}
.dir-list__name { font-size: 14px; color: var(--c-text, #1a1d21); word-break: break-all; }

.os-inline-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--c-text-2, #5b6470);
}
.os-inline-field select {
  width: auto;
  padding: 7px 8px;
  border: 1px solid var(--c-border-strong, #d4d8dd);
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  color: var(--c-text, #1a1d21);
}

/* ===== 移动端适配 ===== */
@media (max-width: 820px) {
  .os-topnav__bar { flex-wrap: wrap; }
  .os-topnav__brand { order: 1; }
  .os-topnav__actions { order: 2; }
  .os-topnav__links { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .os-searchbar { flex-direction: column; }
  .os-searchbar__tools { width: 100%; }
  .os-menubar { flex-wrap: wrap; }
  .os-menubar__main { overflow-x: auto; flex-wrap: nowrap; }
  .site-main { flex-direction: column; }
  .site-aside { width: 100%; }
  .os-sidebar { width: 100%; }
  .os-form__label { flex-basis: 100%; text-align: left; padding-top: 0; }
  .os-panel__bar { flex-direction: column; align-items: stretch; }
  .os-panel__bar .pager { justify-content: center; }
  .os-panel__bar .goto { justify-content: center; }
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1080px) {
  .os-grid { --cols: 3; }
  .os-masonry { columns: 3; }
  .os-stats { grid-template-columns: repeat(2, 1fr); }
  .os-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --nav-h: 58px; }
  .os-menu, .os-search { display: none; }
  .os-burger { display: inline-flex; align-items: center; justify-content: center; }
  .os-search--mobile { display: flex; }
  .os-grid { --cols: 2; }
  .os-grid--3 { --cols: 2; }
  .os-masonry { columns: 2; }
  .os-hero { min-height: 380px; }
  .os-hero__thumbs { grid-template-columns: repeat(2, 1fr); }
  .os-section { padding: var(--sp-6) 0; }
}

/* ===== Photographer bag list (bag_list.jsp) ===== */
.baglist { display: flex; flex-direction: column; gap: 14px; }
.baglist__toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e6e8eb);
  border-radius: var(--r-md, 12px);
  font-size: 13px; color: var(--c-text-2, #5b6470);
}
.baglist__count { font-weight: 600; color: var(--c-text, #1a1d21); }
.baglist__nav { display: inline-flex; align-items: center; gap: 10px; }
.baglist__form { display: inline-flex; align-items: center; }
.baglist__arrow { width: 26px; height: 26px; border: 0; background: none; cursor: pointer; vertical-align: middle; }
.baglist__arrow--off { opacity: .4; cursor: default; }
.baglist__pages { color: var(--c-text-2, #5b6470); }
.baglist__jump { display: inline-flex; align-items: center; gap: 6px; }
.baglist__jump-input {
  width: 42px; padding: 5px 6px; text-align: center;
  border: 1px solid var(--c-border-strong, #d4d8dd);
  border-radius: 8px; font-size: 13px;
  background: #fff; color: var(--c-text, #1a1d21);
}
.bag-card {
  display: flex; gap: 16px; padding: 14px;
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e6e8eb);
  border-radius: var(--r-md, 12px);
  box-shadow: var(--sh-1, 0 1px 3px rgba(16,24,40,.06));
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.bag-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2, 0 6px 18px rgba(16,24,40,.08)); border-color: var(--c-border-strong, #d4d8dd); }
.bag-card__thumb {
  flex: 0 0 168px; width: 168px; height: 124px;
  border-radius: var(--r-sm, 10px); overflow: hidden;
  background: var(--c-surface-3, #eef0f3);
}
.bag-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.bag-card:hover .bag-card__thumb img { transform: scale(1.04); }
.bag-card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.bag-card__title { font-size: 15px; font-weight: 700; color: var(--c-text, #1a1d21); }
.bag-card__title .count { color: var(--c-text-3, #9aa1ab); font-weight: 600; }
.bag-card__date { margin-top: 4px; font-size: 12.5px; color: var(--c-text-3, #9aa1ab); }
.bag-card__descn { margin-top: 6px; font-size: 13px; color: var(--c-text-2, #5b6470); line-height: 1.55; }
.bag-card__actions { margin-top: auto; padding-top: 10px; display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 560px) {
  .bag-card { flex-direction: column; }
  .bag-card__thumb { flex-basis: auto; width: 100%; height: 160px; }
}

@media (max-width: 560px) {
  .os-container { padding: 0 var(--sp-4); }
  .os-grid, .os-grid--3 { --cols: 1; }
  .os-masonry { columns: 1; }
  .os-stats { grid-template-columns: 1fr 1fr; }
  .os-footer__grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .os-section__title { font-size: 19px; }
}

/* ===== Account select (account/select.jsp) ===== */
.acct-select { margin: 0 auto; }
.acct-select__sub {
  font-size: 14px; color: var(--c-text-2, #5b6470);
  align-self: center; margin: 0;
}
.acct-select__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4, 16px);
}
.acct-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 26px 22px;
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e6e8eb);
  border-radius: var(--r-lg, 16px);
  box-shadow: var(--sh-1, 0 1px 3px rgba(16, 24, 40, .06));
  text-decoration: none; color: var(--c-text, #1a1d21);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.acct-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3, 0 12px 30px rgba(16, 24, 40, .12));
  border-color: var(--brand, #ff4d2e);
}
.acct-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--c-surface-2, #f0f2f5); margin-bottom: 16px;
}
.acct-card__icon img { width: 32px; height: 32px; object-fit: contain; }
.acct-card__title { font-size: 18px; font-weight: 800; color: var(--c-text, #1a1d21); margin: 0 0 8px; }
.acct-card__desc { font-size: 13.5px; color: var(--c-text-2, #5b6470); line-height: 1.6; margin: 0; flex: 1; }
.acct-card__go {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--brand-dark, #e23b1c);
}
.acct-card__go svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.acct-card:hover .acct-card__go svg { transform: translateX(4px); }
.acct-card--brand .acct-card__icon { background: rgba(255, 77, 46, .12); }
.acct-card--brand .acct-card__go { color: var(--brand, #ff4d2e); }

.acct-social {
  margin-top: var(--sp-5, 20px);
  padding: 22px 20px;
  background: var(--c-surface, #fff);
  border: 1px dashed var(--c-border-strong, #d4d8dd);
  border-radius: var(--r-lg, 16px);
  text-align: center;
  animation: acct-social-in .25s var(--ease);
}
@keyframes acct-social-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.acct-social__tip { font-size: 14px; color: var(--c-text-2, #5b6470); margin: 0 0 16px; }
.acct-social__list { display: inline-flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.acct-social__item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.acct-social__item img {
  width: 118px; height: 118px; object-fit: contain;
  border-radius: 12px; background: #fff; border: 1px solid var(--c-border, #e6e8eb); padding: 6px;
}
.acct-social__item span { font-size: 13px; color: var(--c-text, #1a1d21); font-weight: 600; }

@media (max-width: 768px) {
  .acct-select__grid { grid-template-columns: 1fr; }
  .acct-select__sub { display: none; }
}

/* ===== Minimal brand bar (common/menu_blank.jsp) ===== */
.os-brandbar {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 var(--sp-5, 20px);
  background: var(--c-surface, #fff);
  border-bottom: 1px solid var(--c-border, #e6e8eb);
}
.os-brandbar__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  transition: opacity .15s var(--ease);
}
.os-brandbar__logo:hover { opacity: .78; }
.os-brandbar__mark {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: var(--brand, #ff4d2e);
}
.os-brandbar__name {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  color: var(--c-text, #1a1d21);
}

/* ===== Agreement page (account/agreement.jsp) ===== */
.agreement { max-width: 880px; margin: 0 auto; }
.agreement__card {
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e6e8eb);
  border-radius: var(--r-lg, 16px);
  box-shadow: var(--sh-2, 0 6px 18px rgba(16, 24, 40, .08));
  overflow: hidden;
}
.agreement__head {
  padding: var(--sp-5, 20px) var(--sp-6, 28px);
  border-bottom: 1px solid var(--c-border, #e6e8eb);
  background: linear-gradient(180deg, var(--c-surface-2, #f7f8fa), var(--c-surface, #fff));
}
.agreement__title {
  margin: 0;
  font-size: 22px; font-weight: 800; color: var(--c-text, #1a1d21);
  letter-spacing: .5px;
}
.agreement__hint {
  margin: 6px 0 0; font-size: 13px; color: var(--c-text-2, #5b6470);
}
.agreement__body {
  max-height: 460px;
  overflow-y: auto;
  padding: var(--sp-5, 20px) var(--sp-6, 28px);
  scrollbar-width: thin;
  scrollbar-color: var(--c-border-strong, #d4d8dd) transparent;
}
.agreement__body::-webkit-scrollbar { width: 8px; }
.agreement__body::-webkit-scrollbar-thumb {
  background: var(--c-border-strong, #d4d8dd); border-radius: 8px;
}
.agreement__body p {
  margin: 0 0 14px;
  font-size: 14px; line-height: 1.95; color: var(--c-text-2, #5b6470);
  text-align: justify;
}
.agreement__body p:last-child { margin-bottom: 0; }
.agreement__body p strong { color: var(--c-text, #1a1d21); }
.agreement__foot {
  padding: var(--sp-5, 20px);
  border-top: 1px solid var(--c-border, #e6e8eb);
  text-align: center;
  background: var(--c-surface-2, #f7f8fa);
}
.agreement__form { display: inline-flex; }

/* ===== Account forms (account/register.jsp, profile.jsp) ===== */
.account-form { max-width: 720px; margin: 0 auto; }
.account-card {
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e6e8eb);
  border-radius: var(--r-lg, 16px);
  box-shadow: var(--sh-2, 0 6px 18px rgba(16, 24, 40, .08));
  overflow: hidden;
}
.account-card__head {
  padding: var(--sp-5, 20px) var(--sp-6, 28px);
  border-bottom: 1px solid var(--c-border, #e6e8eb);
  background: linear-gradient(180deg, var(--c-surface-2, #f7f8fa), var(--c-surface, #fff));
}
.account-card__title {
  margin: 0; font-size: 22px; font-weight: 800; color: var(--c-text, #1a1d21); letter-spacing: .5px;
}
.account-card__hint { margin: 6px 0 0; font-size: 13px; color: var(--c-text-2, #5b6470); }
.account-card__hint .req { color: var(--brand, #ff4d2e); margin-right: 2px; }

.os-form { padding: var(--sp-5, 20px) var(--sp-6, 28px); }
.os-form__group {
  margin: var(--sp-5, 20px) 0 var(--sp-3, 12px);
  font-size: 15px; font-weight: 800; color: var(--c-text, #1a1d21);
  padding-left: 10px; border-left: 4px solid var(--brand, #ff4d2e);
}
.os-form__group:first-of-type { margin-top: 0; }
.os-form__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: start;
  gap: 12px;
  padding: 10px 0;
}
.os-form__label {
  font-size: 14px; font-weight: 600; color: var(--c-text, #1a1d21);
  padding-top: 9px;
}
.os-form__label .req { color: var(--brand, #ff4d2e); margin-left: 2px; }
.os-form__control { display: flex; flex-direction: column; gap: 5px; }
.os-form input[type="text"],
.os-form input[type="password"],
.os-form textarea {
  width: 100%; max-width: 360px;
  padding: 9px 12px; font-size: 14px; line-height: 1.4;
  border: 1px solid var(--c-border-strong, #d4d8dd);
  border-radius: var(--r-sm, 10px);
  background: #fff; color: var(--c-text, #1a1d21);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.os-form input:focus,
.os-form textarea:focus {
  outline: none; border-color: var(--brand, #ff4d2e);
  box-shadow: 0 0 0 3px var(--brand-ring, rgba(255, 77, 46, .15));
}
.os-form textarea { resize: vertical; }
.req-note { color: var(--brand-dark, #e23c1f); font-size: 12px; line-height: 1.5; }
.os-form__captcha { width: 80px; height: 30px; border-radius: 6px; cursor: pointer; vertical-align: middle; margin-left: 8px; }
.os-form__radios { display: flex; gap: 22px; align-items: center; padding-top: 6px; flex-wrap: wrap; }
.os-form__radios label { font-size: 14px; color: var(--c-text, #1a1d21); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
@media (max-width: 600px) {
  .os-form__row { grid-template-columns: 1fr; gap: 4px; }
  .os-form__label { padding-top: 0; }
  .os-form input[type="text"],
  .os-form input[type="password"],
  .os-form textarea { max-width: 100%; }
}

/* ===== Result / success state (account/success.jsp) ===== */
.os-result {
  max-width: 540px;
  margin: var(--sp-7, 48px) auto;
  padding: var(--sp-7, 48px) var(--sp-6, 36px);
  text-align: center;
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e6e8eb);
  border-radius: var(--r-lg, 16px);
  box-shadow: var(--sh-1, 0 1px 3px rgba(16, 24, 40, .06));
}
.os-result__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: var(--sp-4, 16px);
  border-radius: 50%;
  background: rgba(34, 197, 94, .12);
  color: #16a34a;
}
.os-result__icon svg { width: 38px; height: 38px; }
.os-result__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--c-text, #1a1d21);
}
.os-result__desc {
  margin: 0 0 var(--sp-5, 20px);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--c-text-2, #5b6470);
}
.os-result__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== About page (about.jsp) ===== */
.about-page {  margin: 0 auto; }
.about-page__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--sp-4, 16px); flex-wrap: wrap;
  border-bottom: 1px solid var(--c-border, #e6e8eb);
  padding-bottom: var(--sp-3, 12px); margin-bottom: var(--sp-5, 20px);
}
.about-page__crumb { font-size: 13px; color: var(--c-text-2, #5b6470); margin: 0; }
.about-hero {
  padding: var(--sp-6, 36px) var(--sp-5, 20px);
  margin-bottom: var(--sp-5, 20px);
  background: linear-gradient(135deg, rgba(255,77,46,.10), rgba(255,77,46,.02));
  border: 1px solid var(--c-border, #e6e8eb);
  border-radius: var(--r-lg, 16px);
}
.about-hero__brand {
  margin: 0 0 8px; font-size: 30px; font-weight: 800; color: var(--brand-dark, #e23b1c);
  letter-spacing: .5px;
}
.about-hero__lead { margin: 0; font-size: 15px; color: var(--c-text-2, #5b6470); line-height: 1.6; }
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4, 16px);
  margin-bottom: var(--sp-6, 32px);
}
.about-stat {
  text-align: center; padding: var(--sp-4, 16px) var(--sp-3, 12px);
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e6e8eb);
  border-radius: var(--r-md, 12px);
}
.about-stat strong { display: block; font-size: 26px; font-weight: 800; color: var(--brand, #ff4d2e); line-height: 1.1; }
.about-stat span { font-size: 13px; color: var(--c-text-2, #5b6470); }
.about-body { font-size: 15px; line-height: 1.9; color: var(--c-text, #1a1d21); }
.about-body p { margin: 0 0 var(--sp-4, 16px); text-align: justify; }
@media (max-width: 600px) {
  .about-stats { grid-template-columns: 1fr; }
  .about-hero__brand { font-size: 24px; }
}

/* ===== Contact page (contact.jsp) ===== */
.contact-page { margin: 0 auto; }
.contact-page__intro {
  font-size: 14.5px; line-height: 1.8; color: var(--c-text-2, #5b6470);
  margin: 0 0 var(--sp-5, 20px);
}
.contact-page__intro a { color: var(--brand-dark, #e23b1c); font-weight: 700; text-decoration: none; }
.contact-page__intro a:hover { text-decoration: underline; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4, 16px);
}
.contact-card {
  padding: var(--sp-4, 16px) var(--sp-5, 20px);
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e6e8eb);
  border-radius: var(--r-md, 12px);
}
.contact-card--wide { grid-column: 1 / -1; }
.contact-card h3 {
  margin: 0 0 12px; padding-bottom: 10px;
  font-size: 15px; font-weight: 800; color: var(--brand-dark, #e23b1c);
  border-bottom: 1px solid var(--c-border, #e6e8eb);
}
.contact-card p { margin: 0 0 6px; font-size: 14px; line-height: 1.7; color: var(--c-text, #1a1d21); }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card strong { color: var(--c-text, #1a1d21); }
@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ===== Jobs page (jobs.jsp) ===== */
.jobs-page { margin: 0 auto; }
.jobs-page__intro { font-size: 14.5px; line-height: 1.8; color: var(--c-text-2, #5b6470); margin: 0 0 var(--sp-5, 20px); }
.jobs-list { display: flex; flex-direction: column; gap: var(--sp-4, 16px); }
.job-card {
  padding: var(--sp-5, 20px);
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e6e8eb);
  border-left: 3px solid var(--brand, #ff4d2e);
  border-radius: var(--r-md, 12px);
}
.job-card__head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px dashed var(--c-border, #e6e8eb);
}
.job-card__title { margin: 0; font-size: 17px; font-weight: 800; color: var(--c-text, #1a1d21); }
.job-card__count {
  margin-left: 8px; font-size: 13px; font-weight: 700; color: #fff;
  background: var(--brand, #ff4d2e); padding: 1px 8px; border-radius: 999px;
}
.job-card__meta { font-size: 13px; color: var(--c-text-2, #5b6470); }
.job-card__sec { margin: 14px 0 8px; font-size: 14px; font-weight: 800; color: var(--brand-dark, #e23b1c); }
.job-card__sec:first-child { margin-top: 0; }
.job-list { margin: 0; padding: 0; list-style: none; }
.job-list li {
  position: relative; padding-left: 18px; margin-bottom: 6px;
  font-size: 14px; line-height: 1.7; color: var(--c-text, #1a1d21);
}
.job-list li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand, #ff4d2e);
}
.job-card__note {
  margin: 12px 0 0; padding: 8px 12px;
  font-size: 13.5px; font-weight: 600; color: var(--brand-dark, #e23b1c);
  background: rgba(255,77,46,.08); border-radius: var(--r-sm, 8px);
}
.jobs-benefits {
  margin-top: var(--sp-5, 20px);
  padding: var(--sp-5, 20px);
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e6e8eb);
  border-radius: var(--r-md, 12px);
}
.jobs-benefits h3 { margin: 0 0 14px; font-size: 16px; font-weight: 800; color: var(--c-text, #1a1d21); }
.jobs-benefits__grid { display: flex; flex-wrap: wrap; gap: 10px; }
.jobs-benefits__tag {
  font-size: 13px; color: var(--c-text, #1a1d21);
  background: var(--c-surface-2, #f0f2f5); border-radius: 999px; padding: 6px 14px;
}
.jobs-cta {
  margin-top: var(--sp-5, 20px);
  padding: var(--sp-6, 36px) var(--sp-5, 20px);
  text-align: center;
  background: linear-gradient(135deg, rgba(255,77,46,.12), rgba(255,77,46,.03));
  border: 1px solid var(--c-border, #e6e8eb);
  border-radius: var(--r-lg, 16px);
}
.jobs-cta p { margin: 0 0 14px; font-size: 15px; line-height: 1.7; color: var(--c-text, #1a1d21); }
.jobs-cta a { color: var(--brand-dark, #e23b1c); font-weight: 800; text-decoration: none; }
.jobs-cta a:hover { text-decoration: underline; }
.jobs-cta__time { font-size: 13px; color: var(--c-text-2, #5b6470); margin-top: 12px; }

/* ===== Pagination bar (bag_list / search_bag_list / topic_show) ===== */
.os-pager {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
  padding: 10px 16px;
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e6e8eb);
  border-radius: var(--r-lg, 16px);
  font-size: 13px;
  color: var(--c-text-2, #5b6470);
}
.os-pager__count { flex: 0 0 auto; font-weight: 600; color: var(--c-text, #1a1d21); }
.os-pager__center {
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.os-pager__info { color: var(--c-text-2, #5b6470); }
.os-pager__info b, .os-pager__info strong { color: var(--brand-dark, #e23b1c); }
.os-pager__arrow {
  box-sizing: border-box;
  width: 34px; height: 34px; padding: 6px;
  border: 1px solid var(--c-border-strong, #d4d8dd);
  border-radius: 50%;
  background: var(--c-surface, #fff);
  cursor: pointer; vertical-align: middle;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.os-pager__arrow:hover { border-color: var(--brand, #ff4d2e); background: var(--brand-light, #fff1ee); }
.os-pager__arrow--off { opacity: .35; cursor: default; pointer-events: none; }
.os-pager__arrow { color: var(--c-text-2, #5b6470); }
.os-pager__arrow svg { display: block; width: 18px; height: 18px; }
.os-pager__jump { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; }
.os-pager__input {
  width: 46px; padding: 6px 8px; text-align: center;
  border: 1px solid var(--c-border-strong, #d4d8dd); border-radius: 8px;
  font-size: 13px; color: var(--c-text, #1a1d21);
}
.os-pager__input:focus {
  outline: none; border-color: var(--brand, #ff4d2e);
  box-shadow: 0 0 0 3px var(--brand-ring, rgba(255,77,46,.18));
}
.os-pager__btn {
  padding: 6px 14px; border: 0; border-radius: 8px;
  background: var(--brand, #ff4d2e); color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .18s var(--ease);
}
.os-pager__btn:hover { background: var(--brand-dark, #e23b1c); }
@media (max-width: 560px) {
  .os-pager { justify-content: center; }
  .os-pager__count, .os-pager__jump { flex: 1 1 100%; justify-content: center; }
}
