:root {
  --bg: #07111f;
  --bg-soft: #0b1a2e;
  --card: rgba(12, 28, 52, 0.72);
  --card-solid: #10233c;
  --line: rgba(90, 196, 255, 0.18);
  --text: #e9f3ff;
  --muted: #9bb3cc;
  --accent: #3ce7ff;
  --accent-dim: rgba(60, 231, 255, 0.14);
  --shadow: 0 24px 60px rgba(1, 8, 24, 0.45);
  --radius: 22px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  min-width: 0;
  text-align: left;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(48, 164, 255, 0.18), transparent 55%),
    var(--bg);
}

#loading {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050d18;
}

#loading > img {
  width: min(180px, 28vw);
  margin: 0;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0;
  height: auto;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

header.is-scrolled {
  background: rgba(7, 17, 31, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--line);
}

#head {
  width: min(1120px, calc(100% - 40px));
  min-width: 0;
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

#head::after {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 8px 20px rgba(0, 0, 0, 0.3);
}

#head > div,
#big-box {
  width: auto;
  float: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

#head > div a,
#big-box a {
  display: inline-flex;
  align-items: center;
  text-align: center;
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

#head > div a > p,
#big-box a > p {
  margin: 0;
  color: inherit;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
}

#head > div a:hover,
#big-box a:hover,
#head > div a > p:hover {
  color: var(--accent) !important;
  background: var(--accent-dim);
}

.hero {
  position: relative;
  width: 100%;
  min-height: 460px;
  overflow: hidden;
}

#banner {
  width: 100%;
  height: min(68vh, 760px);
  min-height: 460px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 180px;
  background: linear-gradient(to bottom, rgba(7, 17, 31, 0), var(--bg));
  pointer-events: none;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 8px;
}

#intro,
#pro {
  position: static;
  top: auto;
  width: min(1120px, calc(100% - 40px));
  height: auto;
  opacity: 1;
}

#introduction {
  background: var(--card);
  background-image: none;
  height: auto;
  width: 100%;
  padding: 56px 48px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.jianjie {
  margin: 0 auto;
  display: block;
  height: auto;
}

.jianjie div:nth-child(1) {
  width: 100%;
}

#profile {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

#profile-title {
  width: min(250px, 70%);
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

#profile > div {
  color: var(--muted);
  text-align: left;
}

#profile > div > p:nth-child(1) {
  font-size: 28px;
  text-align: center;
  font-weight: 650;
  color: var(--text);
  margin: 28px auto 22px;
  letter-spacing: 0.02em;
}

#profile > div > p {
  font-size: 16px;
  letter-spacing: 0.02em;
  line-height: 1.85;
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 14px;
}

.mdagshbgenglish {
  background: transparent;
  height: auto;
  text-align: center;
  padding: 32px 0 16px;
}

#product-title {
  width: min(250px, 70%);
  margin-bottom: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

#chanpin,
#chanpin2 {
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

#chanpin2 > div:nth-child(2),
.product-visual {
  width: 100%;
  padding: 0;
}

#chanpin2 > div:nth-child(2) > img,
.product-visual img {
  width: 100%;
  border-radius: 18px;
  display: block;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

#chanpinjieshao {
  width: 100%;
  text-align: left;
}

#chanpinjieshao div > p,
#chanpinjieshao div > .textindent {
  color: var(--muted);
  text-align: left;
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1.85;
  font-weight: 400;
  margin: 0;
}

.MdagshIcon {
  width: 100%;
  height: auto;
  min-height: 60px;
  font-size: 24px;
  font-weight: 650;
  color: var(--text);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 18px;
}

.MdagshIcon::before {
  content: "";
  display: inline-block;
  width: 56px;
  height: 56px;
  background: url(img/icon.png) no-repeat center;
  background-size: cover;
  margin-right: 12px;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line), 0 8px 18px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

#line {
  width: min(1120px, calc(100% - 40px));
  height: auto;
  background: transparent;
  position: relative;
  margin: 24px auto 0;
  padding: 16px 0 8px;
}

#line > img {
  display: none;
}

#contact-us {
  position: static;
  width: 100%;
  height: auto;
  max-width: none;
  min-width: 0;
  margin: 0 auto;
  display: block;
  box-shadow: var(--shadow);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 40px 40px;
}

#number {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

#number > p:nth-child(1) {
  color: var(--text);
  margin: 0 0 28px;
  font-size: 28px;
  font-weight: 650;
}

#number > p:nth-child(2),
#number > p:nth-child(3) {
  display: none;
}

.emailIcon {
  width: 100%;
  height: auto;
  font-size: 16px;
  display: block;
  margin: 10px 0;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
}

.emailIcon span {
  font-family: var(--font);
  color: var(--text);
}

.site-footer {
  margin-top: 56px;
  padding: 28px 20px 40px;
  border-top: 1px solid var(--line);
  background: rgba(5, 12, 22, 0.8);
}

.footer {
  height: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
  color: var(--text);
}

.footer a {
  display: inline-flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer a img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

#top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px;
  cursor: pointer;
  z-index: 80;
  display: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s ease;
}

#top:hover {
  transform: translateY(-2px);
}

#top > img {
  width: 100%;
  display: block;
}

.CfadeInUp {
  animation: 0.9s ease forwards;
}

@-webkit-keyframes CfadeInUp {
  from {
    transform: translateY(28px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes CfadeInUp {
  from {
    transform: translateY(28px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  #banner,
  .hero {
    min-height: 420px;
    height: min(52vh, 620px);
  }

  #introduction,
  #chanpin,
  #chanpin2,
  #contact-us {
    padding: 28px 22px;
  }

  #chanpin,
  #chanpin2 {
    grid-template-columns: 1fr;
  }

  #profile > div > p:nth-child(1),
  #number > p:nth-child(1) {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  #head {
    width: calc(100% - 24px);
    padding: 12px 0;
    gap: 12px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  #head > div a,
  #big-box a {
    padding: 6px 8px;
  }

  #head > div a > p,
  #big-box a > p {
    font-size: 12px;
  }

  .section,
  #intro,
  #pro,
  #line {
    width: calc(100% - 24px);
  }

  #banner,
  .hero {
    min-height: 320px;
    height: min(42vh, 480px);
  }

  #top {
    right: 16px;
    bottom: 16px;
    width: 40px;
  }
}
