/* ============================================================
   晓晨技术 · 高端化样式
   设计语言：深空蓝 hero + 科技青/靛蓝渐变点缀 + 留白浅色作品区
   ============================================================ */

:root {
  --ink: #0b1220;            /* 深空墨色 */
  --ink-2: #111c33;
  --paper: #f6f8fb;         /* 浅色背景 */
  --paper-2: #eef2f8;
  --card: #ffffff;
  --text: #1d2735;
  --text-soft: #5b6677;
  --line: #e4e9f1;
  --brand: #2f6bff;         /* 科技蓝 */
  --brand-2: #14c8d8;       /* 青 */
  --brand-3: #7c5cff;       /* 靛紫 */
  --gold: #d9b25a;          /* 轻奢金，用于点缀 */
  --radius: 18px;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, .06);
  --shadow-md: 0 18px 44px rgba(15, 23, 42, .12);
  --shadow-lg: 0 30px 70px rgba(11, 18, 32, .28);
  --grad-brand: linear-gradient(120deg, #2f6bff 0%, #14c8d8 55%, #7c5cff 100%);
  --grad-ink: radial-gradient(120% 120% at 80% 0%, #1c2c52 0%, #0b1220 55%, #070d18 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI",
    system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: #0b1220;
  background-image: linear-gradient(90deg, rgba(47, 107, 255, .14), rgba(20, 200, 216, .08));
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 6px 16px rgba(0, 0, 0, .35);
}

.brand .name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .5px;
}

.brand .name small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, .55);
  letter-spacing: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
}

.nav a {
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  position: relative;
  padding: 6px 2px;
  transition: color .25s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--grad-brand);
  transition: width .3s ease;
}

.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }

.nav a.active { color: #fff; font-weight: 600; }
.nav a.active::after { width: 100%; }

.nav .cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(47, 107, 255, .35);
}
.nav .cta::after { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--grad-ink);
  padding: clamp(72px, 12vw, 130px) clamp(20px, 5vw, 64px) clamp(80px, 12vw, 120px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38% 50% at 18% 12%, rgba(47, 107, 255, .35), transparent 70%),
    radial-gradient(34% 46% at 88% 88%, rgba(20, 200, 216, .28), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -22px, 0) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, .7);
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  margin-bottom: 26px;
}

.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 12px var(--brand-2);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero h1 .accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 680px;
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(255, 255, 255, .82);
  margin: 0 0 34px;
}

.hero .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero .tags span {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #eaf1ff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
}

.hero .stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 64px);
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.hero .stats .item .num {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .stats .item .label {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  letter-spacing: 1px;
}

/* ---------- 区块通用 ---------- */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(60px, 9vw, 100px) clamp(20px, 5vw, 40px);
}

/* 锚点跳转时给吸顶导航留出空间，避免标题被遮挡 */
#works, #about, #contact { scroll-margin-top: 76px; }

.section-head {
  text-align: center;
  margin-bottom: 54px;
}

.section-head .kicker {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 12px 0 10px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--ink);
}

.section-head p {
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 auto;
  font-size: 16px;
}

/* ---------- 作品网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, border-color .4s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 107, 255, .35);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eef2f8, #e3eaf3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  will-change: transform;     /* GPU 合成，缩放更顺滑、不卡顿 */
}

.card:hover .card-media img { transform: scale(1.05); }

/* 图片可点开大图：鼠标变成放大镜，悬浮时右下角浮出提示 */
.card-media.zoomable { cursor: zoom-in; }
.card-media.zoomable::after {
  content: "点击看大图";
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  font-size: 12px;
  color: #fff;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(11, 18, 32, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .14);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.card-media.zoomable:hover::after { opacity: 1; transform: translateY(0); }

/* 封面加载失败时的占位文案，替代浏览器的破图图标 */
.card-media .card-ph {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8a97ab;
  font-size: 13px;
  letter-spacing: .5px;
  user-select: none;
}
.card-media .card-ph::before {
  content: "◫";
  font-size: 20px;
  opacity: .55;
}

.card-media .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;                 /* 始终浮于图片之上，悬浮缩放也不会被盖住 */
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 18, 32, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: background .35s ease, transform .35s ease;
}

/* 悬浮时徽章更实、微微上抬，作为精致的视觉锚点而非被遮挡 */
.card:hover .card-media .badge {
  background: rgba(11, 18, 32, .82);
  transform: translateY(-1px);
}

.card-body {
  padding: 20px 22px 24px;
}

.card-body h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}

.card-body .type {
  font-size: 12.5px;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.card-body .desc {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0 0 16px;
  min-height: 40px;
}

.card-body .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  padding: 2px 0;
  cursor: pointer;
}
.card-body .more:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.card-body .more .arrow {
  transition: transform .3s;
}

.card:hover .card-body .more .arrow { transform: translateX(5px); }

/* 占位示例角标：仅用于新增的模拟卡片，换成真实内容后连标记一起删掉即可 */
.card-media .mock-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .5px;
  color: #4a5568;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(11, 18, 32, .08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(11, 18, 32, .10);
}

/* ---------- 占位封面：纯 CSS 画的界面缩略图 ----------
   仅服务于「示例」占位卡片，换成真实截图后整块删除即可 */
.ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* 带窗口标题栏的封面，顶部让出空间，避免被左上角徽章压住 */
.ph.ph-chrome { padding-top: 42px; }

.ph-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(11, 18, 32, .07);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(11, 18, 32, .10), 0 1px 2px rgba(11, 18, 32, .05);
  overflow: hidden;
}

.ph-win, .ph-web { width: 100%; height: 100%; }
.ph-phone { width: 44%; height: 100%; border-radius: 14px; }

/* 窗口标题栏 / 浏览器地址栏 */
.ph-bar {
  flex: 0 0 auto;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  background: #e9eff7;
  border-bottom: 1px solid #dce5f1;
}
.ph-bar i { width: 6px; height: 6px; border-radius: 50%; background: #ccd7e7; }
.ph-bar i:first-child { background: #e6b8bc; }
.ph-bar i:nth-child(2) { background: #e8d3ab; }
.ph-bar i:nth-child(3) { background: #b9dcc7; }
.ph-pill { flex: 1; height: 9px; margin-left: 4px; border-radius: 5px; background: #dde6f3; }

/* 桌面窗口：侧边导航 + 柱状图 */
.ph-body { flex: 1; min-height: 0; display: flex; gap: 8px; padding: 10px; }
.ph-nav {
  width: 22%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px 6px;
  border-radius: 6px;
  background: #f5f8fc;
}
.ph-nav span { height: 5px; border-radius: 3px; background: #dde7f3; }
.ph-nav span:first-child { background: #cddffd; }
.ph-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.ph-chart {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
  background: #f7fafd;
}
.ph-chart b { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #8fb2ff, #2f6bff); opacity: .9; }
.ph-chart b:nth-child(even) { background: linear-gradient(180deg, #9fe0e8, #14c8d8); }
.ph-line { height: 6px; border-radius: 3px; background: #e1e9f4; }

/* 手机小程序：封面 + 功能格 + 底部标签栏 */
.ph-notch {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: #e6ecf6;
  transform: translateX(-50%);
}
.ph-phone-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 12px 8px 8px; }
.ph-hero {
  flex: 1;
  min-height: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #d9e6ff, #b9d2ff);
  box-shadow: inset 0 -14px 24px rgba(47, 107, 255, .08);
}
.ph-tiles { display: flex; gap: 4px; }
.ph-tiles span { flex: 1; height: 15px; border-radius: 4px; background: #e9f0fa; }
.ph-tiles span:nth-child(2) { background: #d3e2ff; }
.ph-tab {
  flex: 0 0 auto;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid #eef2f8;
}
.ph-tab i { width: 5px; height: 5px; border-radius: 50%; background: #e0e7f2; }
.ph-tab i:first-child { background: #7fa4ff; }

/* 浏览器窗口：深色主视觉 + 三栏内容 */
.ph-web-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.ph-band { height: 40%; border-radius: 7px; background: linear-gradient(120deg, #26375f, #0b1220); }
.ph-cols { flex: 1; min-height: 0; display: flex; gap: 6px; }
.ph-cols > div { flex: 1; border-radius: 6px; background: #f2f7fd; border: 1px solid #e5edf7; }
.ph-cols > div:nth-child(1) { background: #eaf2ff; border-color: #d8e6fb; }

/* ---------- 关于 ---------- */
.about {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.about-grid h2 {
  font-size: clamp(24px, 3.6vw, 36px);
  color: var(--ink);
  margin: 0 0 18px;
  font-weight: 800;
}

.about-grid p {
  color: var(--text-soft);
  font-size: 16px;
  margin: 0 0 16px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.about-list li .ic {
  width: 26px; height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(47, 107, 255, .1);
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

.about-card {
  background: var(--grad-ink);
  color: #fff;
  border-radius: 22px;
  padding: 34px 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--grad-brand);
  opacity: .35;
  filter: blur(30px);
}

.about-card h3 {
  position: relative;
  margin: 0 0 8px;
  font-size: 20px;
}

.about-card p {
  position: relative;
  color: rgba(255, 255, 255, .72);
  font-size: 14.5px;
  margin: 0 0 20px;
}

.about-card .contact-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 15px;
}

.about-card .contact-row .k {
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
  width: 56px;
  flex: none;
}

.about-card .contact-row .v { color: #fff; font-weight: 600; letter-spacing: .5px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  text-align: center;
  padding: 40px 20px 36px;
  font-size: 14px;
}

.site-footer .fname {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.site-footer a { color: rgba(255, 255, 255, .8); border-bottom: 1px dashed rgba(255,255,255,.3); }
.site-footer .copy { margin-top: 18px; color: rgba(255, 255, 255, .45); font-size: 12.5px; }

/* 配置里的多行文案按换行原样显示 */
.hero p.lead, .section-head p, .about-grid p { white-space: pre-line; }


/* ---------- 入场动画 ---------- */
/* 仅在启用 JS 时隐藏，保证无脚本环境下内容始终可见 */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; padding: 10px 16px; gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .brand .name { font-size: 16px; }
  .brand .name small { display: none; }
  .nav { width: 100%; justify-content: space-between; gap: 6px; }
  .nav a { font-size: 14px; padding: 6px 2px; }
  .nav a.hide-sm { display: none; }
  .nav .cta { padding: 8px 14px; font-size: 13.5px; }
  .grid { grid-template-columns: 1fr; }
  .about-list { grid-template-columns: 1fr; }
  .hero .stats { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   大图预览（灯箱）
   首页产品卡片点封面时使用，纯 JS 动态创建，无需页面里写结构
   ============================================================ */
.xc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 24px;
  background: rgba(7, 13, 24, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
}
.xc-lightbox.open { opacity: 1; visibility: visible; }

.xc-lb-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 82vh;
}
.xc-lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  background: #0f1626;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  transform: scale(.96);
  transition: transform .28s cubic-bezier(.2, .7, .2, 1);
  cursor: default;
}
.xc-lightbox.open img { transform: scale(1); }

.xc-lb-cap {
  max-width: 90vw;
  color: rgba(255, 255, 255, .78);
  font-size: 13.5px;
  letter-spacing: .5px;
  text-align: center;
  word-break: break-word;
}

.xc-lb-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.xc-lb-close:hover { background: rgba(255, 255, 255, .2); transform: rotate(90deg); }

/* 大图打开时禁止页面滚动 */
body.xc-lb-lock { overflow: hidden; }

@media (max-width: 640px) {
  .xc-lightbox { padding: 24px 14px; }
  .xc-lb-close { top: 14px; right: 14px; width: 36px; height: 36px; font-size: 22px; }
  .xc-lightbox img { max-width: 96vw; max-height: 76vh; }
}
