:root {
  --red: #b42318;
  --red-2: #9b1c14;
  --ink: #1f2326;
  --muted: #5c656b;
  --line: #e4e6e8;
  --paper: #f2f3f5;
  --card: #fff;
  --bar: #2b2f33;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --inner: min(1180px, calc(100% - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.theme-hall {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: block !important;
  max-width: none !important;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
ul { margin: 0; padding: 0; list-style: none; }

.inner { width: var(--inner); margin: 0 auto; }
.ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico-sm { width: 14px; height: 14px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.topbar {
  background: var(--bar);
  color: rgba(255,255,255,.78);
  font-size: 12px;
}
.topbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 16px;
}
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-right a { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.topbar-right a:hover { color: #ffd4d0; }

.masthead { background: #fff; }
.masthead .inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  position: relative;
}
.masthead .brand {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink);
  text-align: center;
}
.nav-toggle {
  display: none;
  position: absolute;
  right: 0;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.tab-nav { background: #fff; border-top: 1px solid var(--line); border-bottom: 2px solid var(--red); }
.tab-nav .inner { display: flex; }
.tab-nav a {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.tab-nav a:hover { color: var(--red); background: #faf6f5; }
.tab-nav a.on {
  color: #fff;
  background: var(--red);
  font-weight: 600;
}
.nav-mask { display: none; }

.banner { padding: 20px 0 0; }
.banner-media {
  position: relative;
  height: 380px;
  background: #c5c9cc;
  overflow: hidden;
}
.banner-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.banner-media img.is-on, .banner-media img:only-child { opacity: 1; }
.banner-copy {
  background: #fff;
  border-top: 3px solid var(--red);
  padding: 18px 22px 20px;
}
.banner-copy h1 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.banner-copy p { margin: 0; color: var(--muted); }

.entry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px !important;
}
.entry-grid a {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px 18px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.entry-grid a:hover { border-color: var(--red); color: var(--red); }
.entry-grid .n { font-size: 12px; color: var(--red); letter-spacing: .08em; font-weight: 500; }

.home-cols {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
  padding: 20px 0 48px;
}
.col { background: #fff; border: 1px solid var(--line); min-width: 0; }
.col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}
.col-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.col-head a { font-size: 12px; color: var(--red); }
.news-board li a, .faq-list li a {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.news-board li:last-child a, .faq-list li:last-child a { border-bottom: 0; }
.news-board time { color: var(--muted); font-size: 13px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.news-board a:hover span, .faq-list a:hover span { color: var(--red); }
.prod-board { display: grid; grid-template-columns: 1fr 1fr; }
.prod-board a { display: block; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prod-board li:nth-child(2n) a { border-right: 0; }
.prod-board img { width: 100%; height: 110px; object-fit: cover; background: #eee; }
.prod-board span { display: block; padding: 10px 12px 12px; font-weight: 600; }
.intro-box { padding: 16px 18px 20px; }
.empty { padding: 28px 18px; color: var(--muted); }

.crumb { background: #fff; border-bottom: 1px solid var(--line); }
.crumb .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  font-size: 13px;
  color: var(--muted);
}
.crumb h1 { margin: 0; font-size: 16px; color: var(--ink); font-weight: 700; }
.crumb a:hover { color: var(--red); }

.page-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 28px 36px;
  margin: 20px auto 48px;
}
.page-photo { margin: 0 0 24px; }
.page-photo img { width: 100%; max-height: 360px; object-fit: cover; }

.news-list li a {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.news-list img { width: 160px; height: 100px; object-fit: cover; background: #eee; }
.news-list h2 { margin: 0 0 8px; font-size: 18px; }
.news-list p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.news-list time { color: var(--muted); font-size: 12px; }
.news-list a:hover h2 { color: var(--red); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 0 48px;
}
.p-card { background: #fff; border: 1px solid var(--line); overflow: hidden; color: inherit; }
.p-card img { width: 100%; height: 180px; object-fit: cover; background: #eee; }
.p-card-body { padding: 14px 16px 18px; }
.p-card-body h2 { margin: 0 0 8px; font-size: 16px; }
.p-card-body p { margin: 0; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card:hover { border-color: var(--red); }

.article h1 { margin: 0 0 10px; font-size: 26px; }
.article-sub { margin: 0 0 12px; color: var(--muted); }
.article-meta { display: flex; gap: 16px; color: var(--muted); font-size: 13px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.article-cover { margin: 0 0 20px; }
.article-cover img { width: 100%; max-height: 400px; object-fit: cover; }
.related { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.related h2 { margin: 0 0 8px; font-size: 16px; }
.faq-list .n { color: var(--red); width: 36px; flex-shrink: 0; }
.join-action { margin: 24px 0 8px; }

.prose, .rich-content { font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.prose p, .rich-content p { margin: 0 0 1em; }
.rich-content img { margin: 1em 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 22px;
  background: var(--red); color: #fff; border: 0; cursor: pointer; font-weight: 600;
}
.btn:hover { background: var(--red-2); }
.btn:disabled { opacity: .55; cursor: wait; }

.icon-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.icon-row-page { margin: 20px 0 0; }
.icon-cell {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.site-end .icon-cell { background: transparent; border: 0; color: #fff; }
.icon-cell .k { font-size: 12px; color: var(--muted); }
.site-end .icon-cell .k { color: rgba(255,255,255,.55); }
.icon-cell .v { font-weight: 600; word-break: break-all; }
.icon-cell .ico { color: var(--red); }

.c-form { margin-top: 20px; max-width: 720px; }
.c-form .row { margin-bottom: 16px; }
.c-form label { display: block; font-size: 13px; margin-bottom: 6px; }
.c-form label .req { color: var(--red); }
.c-form input, .c-form textarea {
  width: 100%; border: 1px solid var(--line); padding: 8px 10px; background: #fff; border-radius: 0; outline: none;
}
.c-form textarea { min-height: 120px; resize: vertical; }
.c-form input:focus, .c-form textarea:focus { border-color: var(--red); }
.c-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.map-frame { margin: 16px 0 48px; }
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }

.pager { margin-top: 24px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pagination .page-item .page-link, .pagination li a, .pagination li span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.pagination .active .page-link, .pagination li.active span, .pagination .active span {
  background: var(--red); color: #fff; border-color: var(--red);
}

.site-end { background: var(--bar); color: #fff; margin-top: 8px; padding-top: 28px; }
.site-end .inner.icon-row { padding-bottom: 24px; }
.legal { background: #1d2023; font-size: 12px; color: rgba(255,255,255,.55); }
.legal .inner { min-height: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.legal a { color: inherit; }
.friend-links { display: inline-flex; flex-wrap: wrap; gap: 8px 12px; }

.toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  background: var(--bar); color: #fff; padding: 12px 20px; font-size: 13px;
  opacity: 0; pointer-events: none; z-index: 70; transition: opacity .25s, transform .25s;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 960px) {
  .topbar { display: none; }
  .masthead .inner { justify-content: space-between; min-height: 64px; }
  .masthead .brand { font-size: 18px; letter-spacing: .04em; }
  .nav-toggle { display: inline-flex; }
  .tab-nav { display: none; }
  body.nav-open .tab-nav { display: block; }
  body.nav-open .tab-nav .inner { flex-direction: column; }
  body.nav-open .tab-nav a { flex: none; text-align: left; padding-left: 20px; }
  .nav-mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 20; }
  body.nav-open .nav-mask { display: block; }
  .tab-nav { position: relative; z-index: 30; }
  .banner-media { height: 220px; }
  .entry-grid, .home-cols, .card-grid, .icon-row, .icon-row-page { grid-template-columns: 1fr 1fr; }
  .news-list li a { grid-template-columns: 1fr; }
  .news-list img { width: 100%; height: 160px; }
  .c-pair { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .entry-grid, .home-cols, .card-grid, .icon-row { grid-template-columns: 1fr; }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.85em;
}
.lang-switch a { text-decoration: none; color: inherit; }
.lang-switch a.on { font-weight: 600; text-decoration: underline; }
.lang-switch span { opacity: 0.5; }

.product-price{font-weight:600;opacity:.9}
