:root {
  --black: #0a0a0a;
  --dark: #141414;
  --footer: #1a1a1a;
  --text: #333333;
  --muted: #999999;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  min-height: 100vh;
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 48px;
  background: #000;
}

.brand {
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
}

.brand span {
  opacity: 0.95;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.top-links a {
  color: #fff;
  font-size: 14px;
  opacity: 0.92;
  transition: opacity 0.2s;
}

.top-links a:hover {
  opacity: 1;
}

/* Hero */
.hero {
  margin-top: 56px;
  min-height: 520px;
  background: #0d0d0d url("../assets/images/bg-image.png") left center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 520px;
  padding: 40px 48px 40px 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-left {
  flex: 1;
  color: #fff;
  max-width: 520px;
  padding-left: 24px;
}

.hero-brand-block {
  width: fit-content;
  max-width: 100%;
}

.hero-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  background: #fff;
  border-radius: 15px;
}

.hero-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.hero-name {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.hero-slogan {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  font-family: "STXingkai", "华文行楷", "KaiTi", "楷体", cursive;
}

.hero-sub {
  margin: 18px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.04em;
  text-align: left;
}

.hero-phones {
  position: relative;
  width: 290px;
  height: 500px;
  flex-shrink: 0;
}

.phone {
  position: absolute;
  width: auto;
  object-fit: contain;
  display: block;
}

/* 右侧靠后 */
.phone-back {
  right: 0;
  top: 0;
  height: 400px;
  z-index: 1;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

/* 左侧靠前，压在右侧手机上 */
.phone-front {
  left: 0;
  top: 85px;
  height: 400px;
  z-index: 2;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.55));
}

/* Banner */
.banner {
  width: 100%;
  line-height: 0;
  background: #eee;
}

.banner img {
  width: 100%;
  height: min(42vw, 420px);
  object-fit: cover;
  display: block;
}

/* About */
.about {
  background: #fff;
  padding: 72px 24px 88px;
}

.about-copy {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.about-copy p {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 2.1;
  color: #333;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background: var(--footer);
  color: #cfcfcf;
  padding: 48px 48px 28px;
}

.footer-main {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 40px;
}

.footer-contact {
  text-align: left;
  min-width: 280px;
}

.footer-contact h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.footer-contact p {
  margin: 0 0 6px;
  font-size: 13px;
  color: #bdbdbd;
  line-height: 1.7;
}

.footer-bottom {
  text-align: center;
  padding-top: 8px;
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
  color: #8f8f8f;
}

.footer-bottom a {
  color: #8f8f8f;
}

.footer-bottom a:hover {
  color: #cfcfcf;
}

/* Sub pages */
.page-main {
  flex: 1;
  margin-top: 56px;
  padding: 40px 16px 64px;
  background: #f5f5f5;
  min-height: calc(100vh - 200px);
}

.page-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 4px;
  padding: 32px 28px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.page-title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #222;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

body.subpage {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.subpage .site-footer {
  margin-top: auto;
}

@media (max-width: 960px) {
  .topbar {
    padding: 0 20px;
  }

  .top-links {
    gap: 14px;
  }

  .top-links a {
    font-size: 13px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px 48px;
    min-height: auto;
  }

  .hero-left {
    max-width: 100%;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-brand-row {
    justify-content: center;
  }

  .hero-brand-text {
    text-align: left;
  }

  .hero-logo {
    width: 48px;
    height: 48px;
  }

  .hero-name {
    font-size: 24px;
  }

  .hero-slogan {
    font-size: 16px;
  }

  .hero-sub {
    text-align: left;
  }

  .hero-phones {
    width: 230px;
    height: 400px;
  }

  .phone-back,
  .phone-front {
    height: 320px;
  }

  .phone-front {
    top: 68px;
  }

  .site-footer {
    padding: 36px 20px 24px;
  }

  .footer-main {
    justify-content: center;
  }

  .footer-contact {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .topbar {
    height: auto;
    min-height: 50px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
  }

  .top-links {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .hero {
    margin-top: 80px;
    min-height: auto;
  }

  .hero-logo {
    width: 44px;
    height: 44px;
  }

  .hero-name {
    font-size: 22px;
  }

  .hero-slogan {
    font-size: 14px;
  }

  .hero-sub {
    font-size: 12px;
    margin-top: 14px;
  }

  .hero-phones {
    width: 190px;
    height: 330px;
  }

  .phone-back,
  .phone-front {
    height: 260px;
  }

  .phone-front {
    top: 55px;
  }

  .banner img {
    height: 180px;
  }

  .about {
    padding: 48px 18px 64px;
  }

  .about-copy p {
    font-size: 14px;
    line-height: 1.9;
  }

  .page-main {
    margin-top: 80px;
  }
}
