/* ========== 基础变量 ========== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --text: #1f2937;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-gray: #f5f7fa;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --max-width: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ========== 按钮 ========== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .25s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost {
  border-color: rgba(255,255,255,.7);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.15); }

/* ========== 导航 ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all .3s ease;
  padding: 18px 0;
}
.navbar.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 24px; font-weight: 800; color: #fff; transition: color .3s; }
.logo span { color: var(--primary); }
.navbar.scrolled .logo { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,.9); font-size: 15px; transition: color .3s; }
.navbar.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
}
.nav-cta:hover { background: var(--primary-dark); }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
}
.navbar.scrolled .menu-toggle { color: var(--text); }

/* ========== 首屏 ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 12s ease forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,15,30,.72), rgba(10,15,30,.35));
}
.hero-content { position: relative; z-index: 1; color: #fff; }
.hero-content h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.25;
  margin-bottom: 18px;
  max-width: 640px;
}
.hero-content p {
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ========== 通用版块 ========== */
.section { padding: 96px 0; }
.section-gray { background: var(--bg-gray); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: 34px; margin-bottom: 12px; }
.section-head p { color: var(--text-muted); }

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

/* ========== 卡片 ========== */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon { font-size: 40px; margin-bottom: 14px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; }

/* ========== 案例 ========== */
.work-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.work-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform .5s ease;
}
.work-item:hover img { transform: scale(1.08); }
.work-item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: all .35s ease;
}
.work-item:hover figcaption { opacity: 1; transform: translateY(0); }
.work-item figcaption p { font-size: 13px; opacity: .8; }

/* ========== 团队 ========== */
.member-img {
  width: 110px; height: 110px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 18px;
  border: 4px solid var(--bg-gray);
}
.member-role { color: var(--primary); font-weight: 600; font-size: 14px; margin: 4px 0 8px; }

/* ========== 关于 ========== */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-text h2 { font-size: 32px; margin-bottom: 18px; }
.about-text > p { color: var(--text-muted); margin-bottom: 20px; }
.about-list { list-style: none; margin-bottom: 30px; }
.about-list li { padding: 6px 0; color: var(--text); }
.about-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 380px;
  object-fit: cover;
  width: 100%;
}

/* ========== 联系 ========== */
.contact-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-tip { margin-top: 12px; color: #16a34a; font-size: 14px; min-height: 20px; }
.contact-info {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info p { margin-bottom: 18px; color: var(--text-muted); }
.contact-info strong { color: var(--text); }

/* ========== 页脚 ========== */
.footer { background: #0f172a; color: rgba(255,255,255,.75); padding: 40px 0; }
.footer-inner { text-align: center; }
.footer-logo { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer-logo span { color: var(--primary); }

/* ========== 动效 ========== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text) !important; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .work-item img { height: 220px; }
}
