:root {
  --red: #e93625;
  --orange: #f07d45;
  --ink: #262626;
  --muted: #8b8b8b;
  --line: #e6e6e6;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.topbar {
  height: 114px;
  width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.brand {
  width: 330px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 64px;
  height: 64px;
  position: relative;
  display: block;
  border-left: 1px solid #bbb;
  border-radius: 50% 0 0 50%;
}

.brand-mark::before {
  content: "";
  width: 34px;
  height: 34px;
  position: absolute;
  right: 6px;
  top: 17px;
  border-radius: 50% 50% 0 50%;
  background: var(--red);
}

.brand b {
  display: block;
  font-size: 26px;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
}

.brand small {
  display: block;
  font-size: 8px;
  transform: scale(.75);
  transform-origin: left top;
}

#nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

#nav a {
  min-width: 108px;
  padding: 34px 0 12px;
  text-align: center;
  font-size: 18px;
  border-left: 1px dotted #ddd;
}

#nav a:last-child {
  border-right: 1px dotted #ddd;
}

#nav a.active,
#nav a:hover {
  color: #222;
  border-bottom: 2px solid var(--red);
}

.right-area {
  width: 150px;
  align-self: flex-start;
  padding-top: 10px;
  display: grid;
  gap: 8px;
  justify-items: end;
  font-size: 12px;
}

.right-area button {
  border: 0;
  background: #f5f5f5;
  padding: 5px 9px;
}

#menuButton { display: none; }

.hero {
  height: 600px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 15% 25%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 33% 20%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 70% 18%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 84% 26%, #fff 0 1px, transparent 2px),
    linear-gradient(180deg, #121a45 0%, #746aa2 48%, #1c274b 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 55%, rgba(255,220,230,.55), transparent 21%),
    radial-gradient(circle at 55% 60%, rgba(96,100,155,.5), transparent 22%),
    linear-gradient(160deg, transparent 0 38%, rgba(0,0,0,.28) 39% 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 245px;
  background:
    linear-gradient(140deg, transparent 0 24%, #202747 25% 40%, transparent 41%),
    linear-gradient(155deg, transparent 0 46%, #12172f 47% 64%, transparent 65%),
    linear-gradient(170deg, transparent 0 65%, #2d344d 66% 78%, transparent 79%);
  opacity: .85;
}

.constellation {
  width: 470px;
  height: 240px;
  position: absolute;
  left: 410px;
  top: 82px;
  z-index: 2;
}

.constellation i {
  width: 10px;
  height: 10px;
  position: absolute;
  border-radius: 50%;
  background: #dfe4ff;
  box-shadow: 0 0 12px #fff;
}

.constellation i:nth-child(1) { left: 12px; top: 196px; }
.constellation i:nth-child(2) { left: 70px; top: 142px; }
.constellation i:nth-child(3) { left: 124px; top: 130px; }
.constellation i:nth-child(4) { left: 178px; top: 74px; }
.constellation i:nth-child(5) { left: 246px; top: 12px; }
.constellation i:nth-child(6) { left: 300px; top: 66px; }

.constellation::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 17px;
  width: 290px;
  height: 185px;
  background:
    linear-gradient(140deg, transparent 0 15%, rgba(255,255,255,.65) 16% 17%, transparent 18% 100%),
    linear-gradient(168deg, transparent 0 43%, rgba(255,255,255,.65) 44% 45%, transparent 46% 100%),
    linear-gradient(124deg, transparent 0 64%, rgba(255,255,255,.65) 65% 66%, transparent 67% 100%),
    linear-gradient(48deg, transparent 0 42%, rgba(255,255,255,.65) 43% 44%, transparent 45% 100%);
}

.label {
  position: absolute;
  color: #fff;
  font-size: 16px;
}

.label.one { left: 145px; top: 57px; }
.label.two { left: 184px; top: 124px; }

.side-panel {
  width: 500px;
  height: 600px;
  position: absolute;
  left: 54%;
  top: 0;
  z-index: 4;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 26px;
  background: rgba(0,0,0,.42);
}

.side-panel strong {
  color: red;
  font-size: 50px;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
}

.side-panel h1 {
  width: 360px;
  margin: 0;
  color: #fff;
  font-size: 56px;
  line-height: 1.75;
  text-align: center;
  letter-spacing: .12em;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
}

.up,
.down {
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 56px;
  line-height: 1;
}

.hero-dots {
  position: absolute;
  right: 18px;
  top: 260px;
  display: grid;
  gap: 12px;
}

.hero-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #fff;
}

.hero-dots span:last-child {
  background: #fff;
}

.catalog,
.intro,
.news-section,
.inner,
.detail {
  width: 1180px;
  margin: 38px auto 0;
}

.section-title {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 4px solid #f29a5d;
}

.section-title h2 {
  margin: 0;
  color: var(--red);
  font-size: 30px;
  font-weight: 400;
}

.section-title a {
  margin-left: auto;
  padding: 5px 22px;
  color: #fff;
  border-radius: 20px;
  background: var(--red);
  font-size: 12px;
}

.pencil {
  width: 70px;
  height: 70px;
  position: relative;
  display: block;
}

.pencil::before {
  content: "";
  width: 18px;
  height: 58px;
  position: absolute;
  left: 30px;
  top: 0;
  border-radius: 8px;
  background: linear-gradient(#f9b665, #d83c1d);
  transform: rotate(28deg);
}

.pencil::after {
  content: "";
  width: 48px;
  height: 48px;
  position: absolute;
  left: 0;
  bottom: 0;
  border: 3px solid rgba(255,100,100,.25);
  border-radius: 50%;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 22px 0;
}

.filter,
.page,
#jumpForm button,
.primary,
.footer button {
  border: 0;
  background: #f2f2f2;
}

.filter {
  padding: 8px 14px;
}

.filter.active,
.filter:hover,
.page.active,
.page:hover,
.primary {
  color: #fff;
  background: var(--red);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

.product-card {
  display: block;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  transition: .18s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 42px rgba(0,0,0,.13);
}

.cover {
  height: 170px;
  position: relative;
  overflow: hidden;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.24), transparent 20%),
    linear-gradient(135deg, #1c2460, #2fb1d2);
}

.product-card:nth-child(3n+2) .cover {
  background: linear-gradient(135deg, #344190, #48bddb);
}

.product-card:nth-child(3n) .cover {
  background: linear-gradient(135deg, #17335e, #dd5b31);
}

.cover b {
  position: absolute;
  right: 22px;
  bottom: -20px;
  opacity: .28;
  font-size: 110px;
}

.body {
  padding: 20px;
}

.body h3 {
  height: 58px;
  margin: 0 0 10px;
  overflow: hidden;
  line-height: 1.45;
}

.body p,
.intro p,
.news-item p,
.inner p,
.detail p {
  color: var(--muted);
  line-height: 1.8;
}

.body small {
  color: var(--red);
}

.body strong {
  display: block;
  margin-top: 14px;
  color: var(--red);
  font-size: 22px;
}

.body del {
  color: #aaa;
  font-size: 13px;
}

.pager {
  margin-top: 30px;
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.page,
#jumpForm button {
  padding: 8px 12px;
}

#jumpForm {
  margin-left: auto;
  color: var(--muted);
}

#jumpForm input {
  width: 58px;
  height: 34px;
  border: 1px solid var(--line);
  text-align: center;
}

.intro {
  padding: 36px;
  background: #f8f8f8;
}

.intro h2 {
  margin: 0 0 12px;
}

.intro ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.intro li {
  padding: 18px;
  background: #fff;
}

.intro b {
  display: block;
  color: var(--red);
  font-size: 36px;
}

.plain-title h2 {
  color: var(--red);
  font-size: 30px;
  font-weight: 400;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.news-item {
  display: block;
  padding: 18px;
  border-bottom: 3px solid var(--red);
  background: #f8f8f8;
}

.news-item time {
  color: var(--red);
}

.news-item b {
  display: block;
  margin: 10px 0;
  line-height: 1.55;
}

.inner {
  padding: 54px 42px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 24%),
    linear-gradient(135deg, #1b2457, #5f5e91);
}

.inner h1 {
  margin: 0 0 12px;
  font-size: 42px;
}

.inner p {
  color: rgba(255,255,255,.84);
}

.detail {
  padding: 34px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 38px;
}

.back {
  grid-column: 1 / -1;
  color: var(--red);
}

.buy {
  padding: 22px;
  align-self: start;
  background: #f7f7f7;
  border-top: 4px solid var(--red);
}

.mini {
  height: 112px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, #1c2460, var(--red));
}

.buy b {
  color: var(--red);
  font-size: 26px;
}

.buy del {
  color: #999;
  font-size: 14px;
}

.primary {
  min-height: 42px;
  padding: 0 18px;
}

.detail h2 {
  padding-left: 12px;
  border-left: 4px solid var(--red);
}

.modules {
  border-top: 1px solid var(--line);
}

.modules div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.modules strong {
  display: block;
  margin-bottom: 5px;
}

details {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

summary { cursor: pointer; font-weight: 700; }

.footer {
  width: 1180px;
  margin: 34px auto 0;
  padding: 18px 0 34px;
  display: flex;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: #666;
}

.footer span { margin-right: auto; }

.modal,
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.45);
}

.modal.open,
.search-modal.open { display: grid; }

.dialog {
  width: min(760px, 100%);
  position: relative;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  background: #fff;
}

.dialog aside {
  padding: 40px;
  color: #fff;
  background: linear-gradient(135deg, #1b2457, var(--red));
}

.dialog section { padding: 40px; }

.close {
  width: 38px;
  height: 38px;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  border: 0;
  background: #fff;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.tabs button {
  flex: 1;
  height: 38px;
  border: 0;
  background: #f0f0f0;
}

.tabs button.active {
  color: #fff;
  background: var(--red);
}

.auth-form { display: none; gap: 12px; }
.auth-form.active { display: grid; }
.auth-form label { display: grid; gap: 7px; color: var(--muted); }
.auth-form input:not([type="checkbox"]) { height: 40px; border: 1px solid var(--line); padding: 0 10px; }
.check { display: flex !important; align-items: center; }
#formMessage { min-height: 20px; color: var(--red); }

.search-box {
  width: min(760px, 100%);
  padding: 36px;
  background: #fff;
}

.search-box input {
  width: 100%;
  margin: 12px 0 18px;
  padding: 15px 0;
  border: 0;
  border-bottom: 2px solid var(--red);
  outline: 0;
  font-size: 34px;
}

.result {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.result span { color: var(--muted); white-space: nowrap; }

#toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  padding: 13px 18px;
  color: #fff;
  background: var(--red);
  opacity: 0;
  transform: translateY(10px);
  transition: .18s;
}

#toast.show { opacity: 1; transform: translateY(0); }
.empty { padding: 30px; color: var(--muted); background: #f7f7f7; }

@media (max-width: 1220px) {
  .topbar,
  .catalog,
  .intro,
  .news-section,
  .inner,
  .detail,
  .footer { width: 94%; }
  .side-panel { left: auto; right: 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .topbar { height: auto; padding: 18px 0; flex-wrap: wrap; }
  .brand { margin-right: auto; }
  #menuButton { display: inline-block; }
  #nav { order: 3; width: 100%; display: none; flex-direction: column; }
  .topbar.open #nav { display: flex; }
  #nav a { border: 0; text-align: left; padding: 12px 0; }
  .right-area { width: auto; }
  .side-panel { width: 100%; background: rgba(0,0,0,.38); }
  .constellation { left: 40px; transform: scale(.75); transform-origin: left top; }
  .intro ul, .news-grid, .detail, .dialog { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hero { height: 540px; }
  .side-panel h1 { font-size: 38px; width: 280px; }
  .side-panel strong { font-size: 38px; }
  .product-grid { grid-template-columns: 1fr; }
  #jumpForm { margin-left: 0; }
  .footer { display: block; }
}
