/* ============ 字体：走自托管镜像，不直连 Google ============ */
@import url('https://miaoda.feishu.cn/fonts/css2?family=Space+Grotesk:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

/* ============ tokens & base ============ */
:root {
  --bg: #0A0E1A;
  --bg-2: #0E1422;
  --surface: #141C2E;
  --surface-2: #182238;
  --line: rgba(150, 170, 210, 0.14);
  --line-2: rgba(150, 170, 210, 0.24);
  --fg: #E9EEF7;
  --dim: #9AA9C2;
  --faint: #6E7C93;
  --brand: #33D6BE;
  --brand2: #7A8BFF;
  --amber: #F2B25B;
  --grad: linear-gradient(92deg, #33D6BE 0%, #7A8BFF 100%);
  --font-d: 'Space Grotesk', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-b: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --radius: 10px;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(51, 214, 190, 0.25);
  color: #fff;
}

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

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.num {
  font-family: var(--font-d);
  font-variant-numeric: tabular-nums;
}

/* eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
  font-family: var(--font-d);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brand);
  opacity: 0.7;
}

/* section shell */
.sec {
  padding: 84px 0;
}

.sec-head {
  max-width: 680px;
  margin-bottom: 42px;
}

.sec-head h2 {
  font-size: clamp(26px, 4.5vw, 38px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 14px;
}

.sec-head p {
  margin-top: 14px;
  color: var(--dim);
  font-size: 16px;
}

/* ============ page hero (inner pages) ============ */
.page-hero {
  padding: calc(var(--nav-h) + 56px) 0 56px;
  position: relative;
  overflow: hidden;
}

.page-hero .grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(150, 170, 210, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 170, 210, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 60% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 60% 20%, #000 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .glow {
  position: absolute;
  top: -160px;
  right: -120px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  background: radial-gradient(circle, rgba(122, 139, 255, 0.5), rgba(51, 214, 190, 0.28), transparent 65%);
  pointer-events: none;
}

.page-hero .inner {
  position: relative;
}

.page-hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 16px;
}

.page-hero .sub {
  margin-top: 16px;
  max-width: 600px;
  color: var(--dim);
  font-size: 16px;
}

/* ============ nav ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .logo {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand .name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.brand .name small {
  display: block;
  font-family: var(--font-d);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  color: var(--faint);
  font-weight: 500;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 15px;
  color: var(--dim);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--brand);
}

.nav .nav-cta {
  display: none;
}

.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: 0.25s;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: rgba(10, 14, 26, 0.98);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  gap: 6px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
}

.drawer.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.drawer a {
  font-size: 17px;
  font-weight: 500;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
}

.drawer a:hover,
.drawer a.is-active {
  color: var(--brand);
}

.drawer .layui-btn {
  margin-top: 16px;
}

/* ============ hero ============ */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 70px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg .grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(150, 170, 210, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 170, 210, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 60% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 60% 20%, #000 0%, transparent 70%);
}

.hero-bg .glow {
  position: absolute;
  top: -160px;
  right: -120px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  background: radial-gradient(circle, rgba(122, 139, 255, 0.5), rgba(51, 214, 190, 0.28), transparent 65%);
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 38px;
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 22px;
}

.hero-copy h1 {
  font-size: clamp(34px, 6.6vw, 62px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-family: var(--font-b);
}

.hero-copy h1 .ac {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-d);
  font-weight: 700;
}

.hero-copy .sub {
  margin-top: 22px;
  max-width: 520px;
  color: var(--dim);
  font-size: 16.5px;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 22px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}

.stat .v {
  font-family: var(--font-d);
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
}

.stat .v em {
  font-style: normal;
  color: var(--brand);
  font-size: 18px;
}

.stat .l {
  font-size: 13px;
  color: var(--faint);
  margin-top: 2px;
}

.hero-fig {
  position: relative;
}

.hero-fig .frame {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
}

.hero-fig .frame img {
  width: 100%;
  height: auto;
  min-height: 240px;
  object-fit: cover;
}

.hero-fig .cap {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 14, 26, 0.72);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 9px 13px;
  font-size: 12.5px;
  color: var(--dim);
  backdrop-filter: blur(6px);
}

.hero-fig .cap b {
  color: var(--brand);
  font-family: var(--font-d);
  font-size: 14px;
}

/* ============ product philosophy ============ */
.phil-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.sol-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px 22px;
  transition: border-color 0.22s, transform 0.22s, background 0.22s;
}

.sol-card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  background: var(--surface-2);
}

.sol-card .ic {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(51, 214, 190, 0.16), rgba(122, 139, 255, 0.16));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.sol-card .ic svg {
  width: 22px;
  height: 22px;
  stroke: var(--brand);
}

.sol-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.sol-card p {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.65;
}

/* ============ projects ============ */
.projects {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.filter button {
  font-family: var(--font-b);
  font-size: 13.5px;
  color: var(--dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  cursor: pointer;
  transition: 0.2s;
}

.filter button.on {
  color: #061018;
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 600;
}

.filter button:hover:not(.on) {
  border-color: var(--brand);
  color: var(--brand);
}

.pj-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.pager .pg-info {
  margin-right: 18px;
  font-size: 13px;
  color: rgba(180, 188, 204, .7);
  letter-spacing: .3px;
}

.pager .pg {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  color: var(--text-1);
  font-size: 14px;
  font-family: inherit;
  line-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s, transform .15s;
}

.pager .pg:hover:not(:disabled):not(.on) {
  background: rgba(51, 214, 190, .15);
  color: var(--brand);
  transform: translateY(-1px);
}

.pager .pg.on {
  background: linear-gradient(135deg, #33D6BE, #7A8BFF);
  color: #0A0E1A;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(51, 214, 190, .32);
}

.pager .pg:disabled {
  opacity: .25;
  cursor: not-allowed;
}

.pager .pg-prev,
.pager .pg-next {
  width: 36px;
  background: transparent;
  font-size: 20px;
  color: var(--text-2);
}

.pj-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.22s, transform 0.22s, background 0.22s;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.pj-card:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
  background: var(--surface-2);
}

.pj-card .thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.pj-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s;
}

.pj-card:hover .thumb img {
  transform: scale(1.05);
}

.pj-card .thumb .idx {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-d);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #0A0E1A;
  background: rgba(233, 238, 247, 0.86);
  border-radius: 6px;
  padding: 3px 9px;
  backdrop-filter: blur(4px);
}

.pj-card .thumb .tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  color: var(--brand);
  border: 1px solid rgba(51, 214, 190, 0.45);
  background: rgba(10, 14, 26, 0.55);
  border-radius: 999px;
  padding: 3px 10px;
  backdrop-filter: blur(4px);
}

.pj-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pj-body h3 {
  font-size: 20px;
  font-weight: 700;
}

.pj-body .d {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.6;
  flex: 1;
}

.pj-body .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pj-body .tags span {
  font-size: 12px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 9px;
}

.pj-body .more {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--brand);
  font-weight: 600;
  margin-top: 6px;
}

.pj-body .more svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
}

.pj-card:hover .more svg {
  transform: translateX(4px);
}

/* ============ product detail ============ */
.detail {
  padding: calc(var(--nav-h) + 30px) 0 80px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--dim);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: 0;
}

.detail-back:hover {
  color: var(--brand);
}

.detail-nav {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.detail-nav .dn-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color .2s, background .2s;
  min-width: 0;
}

.detail-nav .dn-item:hover {
  border-color: var(--brand);
  background: var(--surface-2);
}

.detail-nav .dn-right {
  text-align: right;
  align-items: flex-end;
}

.detail-nav .dn-dir {
  font-size: 12px;
  color: var(--muted);
}

.detail-nav .dn-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
}

.detail-nav .dn-pos {
  flex: 0 0 auto;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .5px;
}

.detail-nav .dn-empty {
  flex: 1 1 0;
  min-height: 1px;
}

.detail-hero {
  margin-top: 22px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface);
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 详情页：多屏依次排列 */
.detail-hero.screens {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  aspect-ratio: auto;
  border: none;
  background: transparent;
  padding: 2px;
}

.detail-hero .screen {
  flex: 1 1 200px;
  max-width: 252px;
  aspect-ratio: 9 / 19;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--surface);
}

.detail-hero .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-head {
  margin-top: 26px;
}

.detail-head .m-cat {
  font-family: var(--font-d);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--brand);
  text-transform: uppercase;
}

.detail-head h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  margin: 8px 0 14px;
}

.detail-head .desc {
  color: var(--dim);
  font-size: 16px;
  line-height: 1.7;
  max-width: 760px;
}

.detail-head .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.detail-head .tags span {
  font-size: 12.5px;
  color: var(--brand);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 34px;
}

.detail-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px 22px;
}

.detail-panel h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.detail-feat {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.detail-feat li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--dim);
}

.detail-feat li svg {
  width: 17px;
  height: 17px;
  flex: none;
  stroke: var(--brand);
  margin-top: 3px;
}

.m-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.m-stats .s {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 16px;
}

.m-stats .s .v {
  font-family: var(--font-d);
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
}

.m-stats .s .l {
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 2px;
}

.m-tech .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.m-tech .tags span {
  font-size: 12.5px;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
}

/* ============ about ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.about-grid .txt p {
  color: var(--dim);
  font-size: 16px;
  margin-bottom: 16px;
  max-width: 600px;
}

.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 22px;
}

.value {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--surface);
}

.value .ic {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(51, 214, 190, 0.16), rgba(122, 139, 255, 0.16));
  display: flex;
  align-items: center;
  justify-content: center;
}

.value .ic svg {
  width: 19px;
  height: 19px;
  stroke: var(--brand);
}

.value h4 {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 3px;
}

.value p {
  font-size: 13.5px;
  color: var(--dim);
  margin: 0;
}

.about-fig {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  align-self: start;
}

.about-fig img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.milestones {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.mile {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}

.mile .y {
  font-family: var(--font-d);
  font-weight: 700;
  color: var(--brand);
  font-size: 15px;
}

.mile p {
  font-size: 14px;
  color: var(--dim);
}

/* ============ contact ============ */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.contact .glow {
  position: absolute;
  bottom: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 420px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  background: radial-gradient(circle, rgba(51, 214, 190, 0.4), rgba(122, 139, 255, 0.32), transparent 65%);
}

.contact-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.contact-inner h2 {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 900;
  line-height: 1.25;
}

.contact-inner h2 .ac {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-d);
}

.contact-inner p {
  margin: 16px auto 0;
  color: var(--dim);
  max-width: 560px;
  font-size: 16px;
}

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 44px;
  text-align: left;
}

.c-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px 22px;
}

.c-card .k {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--faint);
  text-transform: uppercase;
  font-family: var(--font-d);
}

.c-card .v {
  font-size: 18px;
  font-weight: 700;
  margin-top: 7px;
  font-family: var(--font-b);
  white-space: nowrap;
}

.c-card .v a {
  color: var(--fg);
}

.c-card .v a:hover {
  color: var(--brand);
}

/* ============ contact page ============ */
.contact-page {
  padding: 40px 0 80px;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 26px;
  max-width: 720px;
}

.form-card .form-title {
  font-size: 24px;
  font-weight: 700;
  margin-top: 12px;
}

.form-card .form-sub {
  color: var(--dim);
  font-size: 14.5px;
  margin-top: 6px;
}

.form-card .layui-form-label {
  white-space: nowrap;
}

.form-grid .layui-form-label {
  color: var(--dim);
  font-size: 13px;
  font-family: var(--font-b);
}

.form-note {
  font-size: 13px;
  color: var(--faint);
  margin-top: 14px;
}

/* ============ footer ============ */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
}

.foot {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
}

.foot-brand .brand .name small {
  color: var(--faint);
}

.foot-brand p {
  font-size: 13.5px;
  color: var(--faint);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.foot-cols h5 {
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  font-weight: 600;
}

.foot-cols a {
  display: block;
  font-size: 14px;
  color: var(--faint);
  padding: 4px 0;
  transition: color 0.2s;
}

.foot-cols a:hover {
  color: var(--brand);
}

.foot-bottom {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--faint);
}

/* ============ not found ============ */
.nf {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 30px) 20px 60px;
}

.nf .code {
  font-family: var(--font-d);
  font-size: 90px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.nf h2 {
  margin: 14px 0 8px;
  font-size: 22px;
}

.nf p {
  color: var(--dim);
  margin-bottom: 26px;
}

/* ============ layui overrides (dark theme) ============ */
.layui-btn {
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 600;
  border-radius: 9px;
  height: auto;
  line-height: normal;
  padding: 11px 20px;
  border: 1px solid transparent;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.2s, color 0.2s, border-color 0.2s;
}

.tj-primary.layui-btn {
  background: var(--grad);
  color: #061018;
}

.tj-primary.layui-btn:hover {
  background: var(--grad);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -10px rgba(51, 214, 190, 0.55);
  color: #061018;
}

.tj-ghost.layui-btn {
  background: transparent;
  border-color: var(--line-2);
  color: var(--fg);
}

.tj-ghost.layui-btn:hover {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}

.layui-input,
.layui-textarea {
  background: var(--bg);
  border-color: var(--line-2);
  color: var(--fg);
  border-radius: 8px;
}

.layui-input:focus,
.layui-textarea:focus {
  border-color: var(--brand) !important;
}

.layui-textarea {
  min-height: 120px;
}

/* ============ responsive ============ */
@media (min-width: 560px) {
  .detail-feat {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 640px) {
  .pj-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (min-width: 720px) {
  .phil-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .hero-inner {
    grid-template-columns: 1.02fr 0.98fr;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 24px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .foot {
    flex-direction: row;
    justify-content: space-between;
  }

  .foot-cols {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
}

@media (min-width: 820px) {
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 52px;
  }

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

  .values .value {
    flex-direction: column;
  }
}

@media (min-width: 920px) {
  .nav-links {
    display: flex;
  }

  .nav .nav-cta {
    display: inline-flex;
  }

  .burger {
    display: none;
  }
}

@media (min-width: 960px) {
  .pj-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .contact-cards {
    grid-template-columns: repeat(3, auto);
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
