:root {
  --page: #060a13;
  --navy: #091322;
  --card: rgba(20, 33, 52, .48);
  --accent: #d8bb8d;
  --accent-light: #f3dfbb;
  --text: #f7f9fc;
  --subtext: #aab5c5;
  --border: rgba(202, 219, 241, .16);
}

* { box-sizing: border-box; }
html { background: #000; }
body {
  margin: 0;
  color: var(--text);
  background: #000;
  font-family: "Microsoft YaHei", "PingFang SC", "Heiti SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; -webkit-tap-highlight-color: transparent; }

.card-page {
  position: relative;
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 90px;
  overflow: hidden;
  background:
    radial-gradient(circle at 96% 5%, rgba(67, 133, 226, .16), transparent 29%),
    linear-gradient(150deg, #0a1222 0%, #050914 70%, #03060c 100%);
}

.cover {
  position: relative;
  height: 286px;
  overflow: hidden;
  background: #07111f url("/assets/hero-background-v2.png") center 53% / cover no-repeat;
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 10, 19, .83), rgba(5, 10, 19, .39) 54%, rgba(5, 10, 19, .02) 100%), linear-gradient(0deg, #091323 0%, transparent 33%);
}
.cover-ambient { display: none; }
.cover-logo {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 20px;
  width: 107px;
  height: auto;
  opacity: .94;
}
.identity {
  position: absolute;
  z-index: 4;
  top: 55%;
  left: 20px;
  width: 52%;
  transform: translateY(-43%);
}
.identity h1 {
  margin: 0 0 10px;
  color: var(--accent-light);
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .1em;
}
.identity > p {
  margin: 0;
  color: #f5f8fe;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}
.identity i {
  display: block;
  width: 31px;
  height: 2px;
  margin: 14px 0 12px;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
}
.identity span {
  display: block;
  color: #b7c2d1;
  font-size: 11px;
  line-height: 1.72;
}
.cover-person {
  position: absolute;
  z-index: 2;
  right: -26px;
  bottom: -44px;
  width: 58%;
  height: 98%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(-10px 12px 17px rgba(0, 0, 0, .34));
}
.name-en {
  position: absolute;
  z-index: 4;
  left: 20px;
  bottom: 17px;
  margin: 0;
  color: rgba(194, 211, 235, .57);
  font-size: 8px;
  letter-spacing: .2em;
}
.name-en b { margin-left: 9px; color: var(--accent); }

.content { position: relative; z-index: 5; padding: 0 20px 4px; }
.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: linear-gradient(132deg, rgba(79, 112, 154, .23), rgba(26, 45, 73, .44) 43%, rgba(8, 19, 35, .32));
  box-shadow: inset 0 1px rgba(255, 255, 255, .19), inset 0 -1px rgba(110, 167, 236, .11), 0 16px 34px rgba(0, 0, 0, .25), 0 0 0 1px rgba(35, 88, 148, .08);
  backdrop-filter: blur(28px) saturate(150%) brightness(1.13);
  -webkit-backdrop-filter: blur(28px) saturate(150%) brightness(1.13);
}
.glass-card::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.12), transparent 21%, transparent 67%, rgba(114,176,255,.08));
  opacity: .85;
}

.actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 20px;
  padding: 0;
  min-height: 48px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.actions a, .actions button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 8px 5px;
  color: #f4f7fc;
  border: 1px solid rgba(194, 222, 255, .25);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(105, 146, 196, .24), rgba(23, 46, 79, .36));
  box-shadow: inset 0 1px rgba(255,255,255,.16), inset 0 -1px rgba(104,169,247,.12), 0 8px 18px rgba(0,0,0,.16);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.actions a:first-child {
  color: #2e2414;
  border-color: rgba(246, 222, 176, .72);
  background: linear-gradient(100deg, #f6dfb4, #c99d61);
  box-shadow: inset 0 1px rgba(255,255,255,.55), 0 5px 16px rgba(197,144,74,.16);
}
.actions i { font-size: 17px; }

.info-card { margin-top: 15px; padding: 18px 17px; }
.info-card header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.info-card h2, .qr-card h2 { margin: 0; color: var(--accent-light); font-size: 15px; line-height: 1; font-weight: 600; letter-spacing: .04em; }
.info-card header span { color: #a9b5c4; font-size: 22px; line-height: .7; font-weight: 200; }

.skill-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.skill { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.skill:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 9px; width: 1px; height: 42px; background: rgba(194, 212, 235, .13); }
.skill i { display: grid; place-items: center; width: 48px; height: 48px; color: var(--accent); border: 1px solid rgba(216, 187, 141, .32); border-radius: 50%; background: rgba(216, 187, 141, .06); font-size: 20px; font-style: normal; }
.skill p { margin: 0; color: #edf1f7; font-size: 11px; }
.intro-text { margin: 17px 0 0; padding-top: 13px; color: var(--subtext); border-top: 1px solid rgba(194, 212, 235, .11); font-size: 11px; line-height: 1.75; }

.business-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.business-item { position: relative; display: flex; flex-direction: column; align-items: center; padding: 2px 4px; text-align: center; }
.business-item:not(:last-child)::after { content: ""; position: absolute; top: 5px; right: 0; width: 1px; height: 65px; background: rgba(194, 212, 235, .11); }
.business-item i { display: grid; place-items: center; height: 29px; color: var(--accent); font-size: 22px; font-style: normal; }
.business-item h3 { margin: 8px 0 4px; color: #f1f5fa; font-size: 10px; line-height: 1.2; font-weight: 500; white-space: nowrap; }
.business-item p { margin: 0; color: #99a7b9; font-size: 8px; line-height: 1.45; transform: scale(.93); }

.contact-card { padding-bottom: 10px; }
.contact-card > a, .contact-card > button, .contact-card > div:not(header) { display: grid; grid-template-columns: 25px 1fr 22px; align-items: center; width: 100%; min-height: 40px; color: #cad3df; border: 0; border-top: 1px solid rgba(194, 212, 235, .09); background: transparent; text-align: left; text-decoration: none; font-size: 12px; cursor: pointer; }
.contact-card > a:first-of-type { margin-top: -2px; }
.contact-card i, .contact-card b { display: grid; place-items: center; color: var(--accent); font-style: normal; font-size: 15px; }
.contact-card b { justify-self: end; color: #95a5b8; font-size: 14px; }

.qr-card { display: grid; grid-template-columns: 89px 1fr; align-items: center; gap: 17px; margin-top: 15px; padding: 14px; }
.qr-placeholder { display: grid; place-content: center; justify-items: center; gap: 2px; width: 89px; height: 89px; border: 1px solid rgba(255, 255, 255, .42); border-radius: 10px; background: rgba(255, 255, 255, .93); box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.qr-placeholder > i { color: #0a1727; font-size: 37px; }
.qr-placeholder span { color: #0a1727; font-size: 8px; font-weight: 700; }
.qr-placeholder small { color: #7c6340; font-size: 8px; }
.qr-card p { margin: 9px 0 0; color: var(--subtext); font-size: 11px; line-height: 1.6; }

.bottom-nav { position: fixed; z-index: 20; bottom: 0; left: 50%; display: grid; grid-template-columns: 48px 1fr 1.16fr; gap: 8px; width: min(480px, 100%); padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); transform: translateX(-50%); border-top: 1px solid rgba(194, 212, 235, .12); background: rgba(5, 9, 16, .88); backdrop-filter: blur(18px); }
.bottom-nav a, .bottom-nav button { display: grid; place-items: center; min-height: 48px; color: #e7edf5; border: 1px solid rgba(194, 212, 235, .18); border-radius: 12px; background: rgba(30, 46, 67, .66); text-decoration: none; font-size: 12px; font-weight: 600; cursor: pointer; }
.bottom-nav a, .bottom-nav button {
  border-color: rgba(192, 220, 251, .30);
  background: linear-gradient(135deg, rgba(87, 125, 169, .46), rgba(22, 40, 65, .68));
  box-shadow: inset 0 1px rgba(255,255,255,.16), inset 0 -1px rgba(103,165,240,.12), 0 7px 18px rgba(0,0,0,.2);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
.bottom-nav button:first-child i { font-size: 18px; color: var(--accent-light); }
.bottom-nav .gold-button { color: #2e2414; border-color: rgba(255, 234, 197, .88); background: linear-gradient(112deg, rgba(255,238,200,.98), rgba(215,169,99,.95)); box-shadow: inset 0 1px rgba(255,255,255,.64), inset 0 -1px rgba(143,99,42,.16), 0 7px 20px rgba(197,144,74,.28); }
.toast { position: fixed; z-index: 30; bottom: 80px; left: 50%; padding: 10px 16px; color: #18202c; border-radius: 99px; background: #f2deb9; box-shadow: 0 8px 25px #000; font-size: 11px; transform: translateX(-50%); }

@media (prefers-reduced-motion: no-preference) {
  .identity { animation: copy-in .6s .06s both ease-out; }
  .cover-person { animation: person-in .65s both ease-out; }
  @keyframes copy-in { from { opacity: 0; transform: translateY(calc(-43% + 9px)); } to { opacity: 1; transform: translateY(-43%); } }
  @keyframes person-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
}
@media (min-width: 530px) { .card-page { margin: 24px auto; border-radius: 20px; box-shadow: 0 0 80px rgba(0,0,0,.6); } .bottom-nav { bottom: 14px; border: 1px solid rgba(194,212,235,.12); border-radius: 14px; } }
