/* ========== 基础与变量 ========== */
:root {
  --bg-dark: #0f0e14;
  --bg-card: #1a1822;
  --text: #e8e6e3;
  --text-muted: #9a9a9a;
  --accent: #d4a84b;
  --accent-hover: #e8be5c;
  --accent-orange: #c97d3a;
  --border: rgba(255, 255, 255, 0.08);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-dark);
  overflow-x: hidden;
}

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

/* ========== 布局 ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== 头部 ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 24px;
  background: rgba(15, 14, 20, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo-link {
  display: block;
  line-height: 0;
}

.header-logo {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 36px;
}

.nav a {
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========== 首屏 Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-card)
    url("../assets/images/image1.jpg") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 14, 20, 0.35) 0%,
    rgba(15, 14, 20, 0.6) 50%,
    var(--bg-dark) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-sub {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  line-height: 1.25;
}

.hero-desc {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: var(--text-muted);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ========== 产品展示区 ========== */
.section-showcase {
  position: relative;
  padding: 60px 0 80px;
  background: var(--bg-dark);
}

.section-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/image2.jpg") center / cover no-repeat;
  z-index: 0;
}

.section-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 14, 20, 0.75);
  z-index: 0;
}

.section-showcase .container {
  position: relative;
  z-index: 1;
}

.showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 380px;
  margin-bottom: 48px;
}

.showcase-laptop {
  z-index: 2;
  flex-shrink: 0;
}

.showcase-phone {
  display: flex;
  align-items: center;
  z-index: 1;
}

.showcase-phone-left {
  margin-right: -20px;
}

.showcase-phone-right {
  margin-left: -20px;
}

.device-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--border);
}

.device-frame.laptop {
  width: 560px;
}

.device-frame.laptop .device-screen {
  aspect-ratio: 16/10;
  padding: 24px;
  font-size: 1rem;
}

.device-frame.phone {
  width: 160px;
}

.device-frame.phone .device-screen {
  aspect-ratio: 9/19;
  padding: 16px;
  font-size: 0.75rem;
}

.device-screen {
  background: var(--bg-card);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
}

.feature-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
  padding: 24px;
  font-weight: 600;
  color: var(--accent);
  font-size: 1.05rem;
}

/* ========== 通用区块 ========== */
.section {
  padding: 80px 0;
}

.section-title {
  margin: 0 0 32px;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

/* ========== 公司介绍 ========== */
.section-company {
  position: relative;
  background: var(--bg-card);
}

.section-company::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/image3.jpg") center / cover no-repeat;
  z-index: 0;
}

.section-company::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 34, 0.82);
  z-index: 0;
}

.section-company .container {
  position: relative;
  z-index: 1;
}

.company-content {
  max-width: 720px;
  margin: 0 auto;
}

.company-content p {
  margin: 0 0 1em;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.company-content p:last-child {
  margin-bottom: 0;
}

/* ========== 关于我们 ========== */
.section-about {
  background: var(--bg-dark);
}

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

.about-content p {
  margin: 0 0 28px;
  color: var(--text-muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-orange) 100%);
  color: #1a1822;
  border: none;
}

.btn-primary:hover {
  opacity: 0.95;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========== 页脚 ========== */
.site-footer {
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .showcase-phone {
    display: none;
  }

  .showcase-laptop .device-frame.laptop {
    width: 90vw;
    max-width: 480px;
  }

  .feature-bar {
    gap: 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 14, 20, 0.98);
    padding: 16px;
    gap: 12px;
  }

  .section {
    padding: 56px 0;
  }

  .hero-title {
    font-size: 1.85rem;
  }
}
