/* ============================================================
   Apple 设计风格 · 软件定制工作室作品集
   ============================================================ */

:root {
  /* 苹果基础色板 */
  --bg: #f5f5f7;
  --bg-soft: #e8e8ed;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --line: #d2d2d7;
  --white: #ffffff;

  /* 项目品牌色 */
  --steel: #1d4ed8;
  --steel-2: #60a5fa;
  --steel-deep: #0b1530;
  --laser: #ff3b30;
  --laser-2: #ff9500;
  --laser-deep: #14100e;
  --ai: #6d28d9;
  --ai-2: #0ea5e9;
  --ai-deep: #0c0a1f;

  /* 阴影 */
  --shadow: 0 24px 70px -24px rgba(0, 0, 0, .18);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(0, 113, 227, .18); }

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

/* ============ 导航栏 ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 12px 0;
  background: rgba(245, 245, 247, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .2px;
}

.brand-mark {
  font-size: 13px;
  color: var(--steel);
  background: linear-gradient(135deg, var(--steel), var(--steel-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color .2s;
}

.nav-links a:hover { color: var(--text); }

.nav-links .nav-cta {
  color: var(--white);
  background: var(--text);
  padding: 7px 18px;
  border-radius: 980px;
  font-weight: 600;
  transition: transform .2s, background .2s;
}

.nav-links .nav-cta:hover { background: #000; transform: scale(1.03); }

/* ============ Hero ============ */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  position: relative;
  background:
    radial-gradient(720px 420px at 50% -8%, rgba(0, 113, 227, .09), transparent 65%),
    radial-gradient(560px 380px at 82% 12%, rgba(255, 59, 48, .05), transparent 60%),
    var(--bg);
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 26px;
}

.hero-title {
  font-size: clamp(44px, 7.2vw, 84px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.022em;
  max-width: 900px;
}

.grad-text {
  display: inline-block;
  background: linear-gradient(100deg, #0071e3 0%, #5e5ce6 45%, #ff375f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin-top: 26px;
  max-width: 620px;
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.55;
  color: var(--text-2);
  font-weight: 400;
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .1px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--text);
  color: var(--white);
}

.btn-primary:hover { transform: scale(1.04); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .35); }

.btn-ghost {
  background: rgba(0, 0, 0, .05);
  color: var(--text);
}

.btn-ghost:hover { background: rgba(0, 0, 0, .09); transform: scale(1.04); }

.btn-light {
  background: var(--white);
  color: var(--text);
}

.btn-light:hover { transform: scale(1.04); }

/* Hero 滚动提示 */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid rgba(0, 0, 0, .22);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 4px;
  height: 9px;
  border-radius: 4px;
  background: var(--text-2);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: .25; }
}

/* ============ 项目区公共布局 ============ */
.project {
  max-width: 1180px;
  margin: 0 auto;
  padding: 130px 24px;
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.project + .project { margin-top: -40px; }

/* ============ 窗口式预览卡片 ============ */
.project-window {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transform: translateY(0);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
  position: relative;
  z-index: 2;
}

.project-window:hover { transform: translateY(-6px); }

.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #ececf0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.traffic { display: flex; gap: 7px; }

.traffic i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.traffic i:nth-child(1) { background: #ff5f57; }
.traffic i:nth-child(2) { background: #febc2e; }
.traffic i:nth-child(3) { background: #28c840; }

.window-url {
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-2);
  background: rgba(255, 255, 255, .85);
  border-radius: 6px;
  padding: 5px 12px;
  margin-right: 32px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ 特钢商城 · 窗口内预览 ============ */
.steel-body {
  background:
    linear-gradient(160deg, rgba(29, 78, 216, .25), transparent 45%),
    radial-gradient(420px 260px at 20% 0%, rgba(96, 165, 250, .35), transparent 60%),
    var(--steel-deep);
  padding: 26px 28px 30px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.steel-nav { display: flex; align-items: center; gap: 14px; }

.steel-logo {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #60a5fa, #1d4ed8);
  flex-shrink: 0;
}

.steel-navline {
  height: 6px; width: 44px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .28);
}

.steel-navline.short { width: 28px; }

.steel-hero { padding-top: 18px; }

.steel-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  color: #bcd4ff;
  background: rgba(96, 165, 250, .16);
  border: 1px solid rgba(96, 165, 250, .35);
  padding: 4px 10px;
  border-radius: 980px;
  margin-bottom: 14px;
}

.steel-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.steel-sub { color: rgba(255, 255, 255, .7); font-size: 15px; margin-top: 6px; }

.steel-card {
  margin-top: 6px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.steel-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, .92);
  font-size: 13.5px;
  font-weight: 600;
}

.steel-dot { width: 8px; height: 8px; border-radius: 50%; background: #34c759; display: inline-block; margin-right: 8px; box-shadow: 0 0 10px #34c759; }

.steel-pct { color: #93c5fd; }

.steel-meter {
  margin: 14px 0;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .14);
  overflow: hidden;
}

.steel-meter i {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #1d4ed8, #60a5fa);
}

.steel-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.steel-tags span {
  font-size: 11.5px;
  font-weight: 600;
  color: #e6eeff;
  background: rgba(96, 165, 250, .2);
  border: 1px solid rgba(96, 165, 250, .3);
  padding: 4px 10px;
  border-radius: 6px;
}

.steel-stats {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.steel-stats > div {
  background: rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.steel-stats b { display: block; font-size: 20px; color: var(--white); }
.steel-stats span { font-size: 11px; color: rgba(255, 255, 255, .6); }

/* ============ 智龙激光 · 窗口内预览 ============ */
.laser-body {
  background:
    radial-gradient(480px 300px at 85% -10%, rgba(255, 59, 48, .35), transparent 60%),
    radial-gradient(400px 260px at 10% 110%, rgba(255, 149, 0, .22), transparent 60%),
    var(--laser-deep);
  padding: 26px 28px 30px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.laser-nav { display: flex; align-items: center; gap: 14px; }

.laser-logo {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff9500, #ff3b30);
  flex-shrink: 0;
}

.laser-navline {
  height: 6px; width: 44px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .25);
}

.laser-navline.short { width: 28px; }

.laser-contact {
  margin-left: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, .75);
  font-weight: 600;
}

.laser-hero { padding-top: 22px; }

.laser-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .6px;
  color: #ffb199;
  background: rgba(255, 59, 48, .16);
  border: 1px solid rgba(255, 59, 48, .4);
  padding: 4px 10px;
  border-radius: 980px;
  margin-bottom: 14px;
}

.laser-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.laser-sub { color: rgba(255, 255, 255, .72); font-size: 15px; margin-top: 6px; }

.laser-beam { position: relative; height: 3px; margin: 4px 0 14px; }

.laser-beam i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #ff453a 30%, #ffd60a 55%, #ff453a 75%, transparent);
  border-radius: 3px;
  box-shadow: 0 0 24px 4px rgba(255, 59, 48, .55);
  animation: beam 2.6s ease-in-out infinite;
}

@keyframes beam {
  0%, 100% { opacity: .55; transform: scaleX(.82); }
  50% { opacity: 1; transform: scaleX(1); }
}

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

.laser-cell {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  text-align: center;
}

.laser-cell b { display: block; font-size: 13px; color: rgba(255, 255, 255, .92); }
.laser-cell span { font-size: 11px; color: #ff9f0a; font-weight: 600; }

.laser-badge-bottom {
  margin-top: auto;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
  letter-spacing: 1px;
}

/* ============ 灵慧智能 · 窗口内预览（AI 对话） ============ */
.ai-body {
  background:
    radial-gradient(480px 300px at 90% -10%, rgba(34, 211, 238, .28), transparent 60%),
    radial-gradient(420px 280px at 5% 110%, rgba(109, 40, 217, .45), transparent 60%),
    var(--ai-deep);
  padding: 24px 26px 28px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ai-nav { display: flex; align-items: center; gap: 12px; }

.ai-logo {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #6d28d9);
  box-shadow: 0 0 18px rgba(34, 211, 238, .5);
  flex-shrink: 0;
}

.ai-brand { font-size: 14px; font-weight: 700; color: var(--white); }

.ai-online {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: #86efac;
  background: rgba(52, 199, 89, .14);
  border: 1px solid rgba(52, 199, 89, .35);
  padding: 3px 10px;
  border-radius: 980px;
}

.ai-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.ai-msg { display: flex; }
.ai-assistant { justify-content: flex-start; }
.ai-user { justify-content: flex-end; }

.ai-bubble {
  max-width: 78%;
  font-size: 13px;
  line-height: 1.6;
  padding: 11px 14px;
  border-radius: 16px;
}

.ai-assistant .ai-bubble {
  color: rgba(255, 255, 255, .94);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .14);
  border-bottom-left-radius: 4px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.ai-user .ai-bubble {
  color: var(--white);
  background: linear-gradient(135deg, #7c3aed, #0ea5e9);
  border-bottom-right-radius: 4px;
}

.ai-input {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 980px;
  padding: 10px 14px;
}

.ai-input-line {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .25);
}

.ai-send {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #0ea5e9);
  flex-shrink: 0;
}

/* ============ 项目信息区 ============ */
.project-info { padding-right: 8px; }

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-2);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.project-info h2 {
  font-size: clamp(34px, 4.6vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin-bottom: 14px;
}

.tagline {
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 18px;
  font-weight: 500;
}

.desc {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 26px;
}

.highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.highlights li {
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.highlights li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  transform: translateY(-1px);
}

.project-steel .highlights li::before { background: linear-gradient(135deg, var(--steel), var(--steel-2)); }
.project-laser .highlights li::before { background: linear-gradient(135deg, var(--laser), var(--laser-2)); }
.project-ai .highlights li::before { background: linear-gradient(135deg, var(--ai), var(--ai-2)); }

.highlights b {
  font-size: 16px;
  font-weight: 600;
  min-width: 104px;
  flex-shrink: 0;
  color: var(--text);
}

.highlights span { font-size: 15px; line-height: 1.55; color: var(--text-2); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 34px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.stat:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .18); }

.stat b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.project-steel .stat b { color: var(--steel); }
.project-laser .stat b { color: var(--laser); }
.project-ai .stat b { color: var(--ai); }

.stat span { font-size: 12px; color: var(--text-2); }

.btn-visit { margin-top: 2px; }

/* 智龙激光信息区（右侧时） */
.project-laser .project-info { padding-right: 0; padding-left: 8px; }

/* ============ 为什么选择我们 ============ */
.why {
  max-width: 1080px;
  margin: 0 auto;
  padding: 150px 24px 90px;
  text-align: center;
}

.why-title {
  font-size: clamp(32px, 4.6vw, 48px);
  letter-spacing: -0.022em;
  line-height: 1.18;
  margin-bottom: 64px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: left;
}

.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 26px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.why-num {
  width: 30px;
  height: 5px;
  border-radius: 3px;
  margin-bottom: 24px;
  display: block;
  background: linear-gradient(90deg, var(--steel), var(--steel-2));
}

.why-card:nth-child(2) .why-num { background: linear-gradient(90deg, #5856d6, #af52de); }
.why-card:nth-child(3) .why-num { background: linear-gradient(90deg, #0071e3, #64d2ff); }
.why-card:nth-child(4) .why-num { background: linear-gradient(90deg, var(--laser), var(--laser-2)); }

.why-card h3 { font-size: 20px; margin-bottom: 12px; }

.why-card p { font-size: 14.5px; line-height: 1.65; color: var(--text-2); }

/* ============ 联系我们 ============ */
.contact {
  padding: 60px 24px 120px;
}

.contact-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  background:
    linear-gradient(120deg, #0071e3 0%, #5856d6 55%, #af52de 100%);
  border-radius: 36px;
  padding: 84px 40px;
  color: var(--white);
  box-shadow: 0 30px 80px -30px rgba(0, 113, 227, .55);
}

.contact-inner h2 { font-size: clamp(32px, 4.4vw, 46px); letter-spacing: -0.022em; margin-bottom: 16px; }

.contact-inner p { font-size: 17px; opacity: .85; margin-bottom: 34px; }

.contact-email {
  display: inline-block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--white);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .32);
  padding: 15px 36px;
  border-radius: 980px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ============ Footer ============ */
.footer {
  text-align: center;
  padding: 34px 24px 44px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
}

/* ============ 滚动渐显动画 ============ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 响应式 ============ */
@media (max-width: 980px) {
  .project {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 90px 24px;
  }

  .project + .project { margin-top: 0; }

  .project-laser .project-info { padding-left: 0; }

  /* 激光项目：预览窗口放到信息下方 */
  .project-laser .project-window { order: 2; }
  .project-laser .project-info-rev { order: 1; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .why { padding: 110px 24px 70px; }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }

  .hero { min-height: 80vh; padding-top: 110px; }

  .window-url { margin-right: 0; }

  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 14px 8px; }
  .stat b { font-size: 19px; }

  .highlights b { min-width: 88px; font-size: 15px; }

  .why-grid { grid-template-columns: 1fr; }

  .steel-body, .laser-body { min-height: 330px; padding: 22px; }

  .laser-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ 无障碍：减弱动效 ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .steel-meter i, .laser-beam i, .scroll-dot { animation: none; }
  .project-window:hover { transform: none; }
}

/* 键盘焦点可见性 */
:focus-visible {
  outline: 3px solid rgba(0, 113, 227, .55);
  outline-offset: 3px;
  border-radius: 6px;
}
