/* 页面整体：把背景做成深蓝夜色，让“部署到公网”的横幅更醒目。 */
:root {
  color-scheme: dark;
  --bg: #07111e;
  --panel: rgba(14, 22, 37, 0.92);
  --panel-strong: #111d31;
  --paper: rgba(249, 247, 241, 0.96);
  --paper-border: #d7dbe4;
  --ink: #0f172a;
  --muted: #5d6878;
  --line: rgba(171, 196, 255, 0.14);
  --accent: #79ddc6;
  --accent-2: #7da8ff;
  --accent-warm: #f7b267;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #edf4ff;
  background:
    radial-gradient(circle at 12% 0%, rgba(121, 221, 198, 0.16), transparent 18%),
    radial-gradient(circle at 88% 8%, rgba(125, 168, 255, 0.16), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(247, 178, 103, 0.08), transparent 20%),
    linear-gradient(180deg, #04101d 0%, #09111d 52%, #03070d 100%);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 88%);
}

.page-shell {
  width: min(1040px, calc(100% - 24px));
  margin: 0 auto;
  padding: 22px 0 44px;
}

/* 顶部横幅：一眼让人看出这是公网部署后的页面。 */
.deployment-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(121, 221, 198, 0.18);
  background: linear-gradient(135deg, rgba(12, 28, 51, 0.98), rgba(18, 43, 74, 0.95));
  box-shadow: var(--shadow);
}

.deployment-banner::after {
  content: "";
  position: absolute;
  inset: auto -48px -72px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121, 221, 198, 0.18), transparent 68%);
  filter: blur(4px);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(121, 221, 198, 0.2);
  background: rgba(121, 221, 198, 0.06);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow--soft {
  border-color: rgba(125, 168, 255, 0.24);
  background: rgba(125, 168, 255, 0.08);
  color: #b8ccff;
}

.banner-copy h1 {
  margin: 14px 0 12px;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.banner-note {
  margin: 0;
  max-width: 60ch;
  color: rgba(237, 244, 255, 0.82);
  line-height: 1.8;
  font-size: 1.02rem;
}

.banner-metrics {
  display: grid;
  gap: 12px;
  align-content: start;
}

.metric-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.metric-card span {
  display: block;
  margin-bottom: 6px;
  color: rgba(237, 244, 255, 0.64);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  font-size: 1.24rem;
  line-height: 1.4;
  word-break: break-all;
}

/* resume-card：保留原来的简历内容，做成一张像纸一样的卡片。 */
.resume-card {
  width: min(800px, 100%);
  margin: 26px auto 0;
  padding: 0 40px 8px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper-border);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

/* 页面头部：把姓名和职业标题从正文里拉开，形成清楚的层级。 */
header {
  padding: 8px 0 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid #cbd5e1;
}

h1,
h2,
h3,
p {
  margin: 0;
}

header h1 {
  margin-bottom: 8px;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 2.5rem;
  line-height: 1.08;
  color: #0f172a;
  letter-spacing: 0.02em;
}

header p {
  color: #2563eb;
  font-size: 1.05rem;
  font-weight: 700;
}

main > section {
  padding: 24px 0;
  border-bottom: 1px solid #e2e8f0;
}

main > section:last-of-type {
  padding-bottom: 0;
  border-bottom: none;
}

h2 {
  margin-bottom: 16px;
  font-size: 1.4rem;
  line-height: 1.3;
  color: #0f172a;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
  line-height: 1.4;
  font-weight: 800;
  color: #1d4ed8;
}

p {
  margin-bottom: 12px;
  color: #334155;
  line-height: 1.85;
}

ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #334155;
}

li + li {
  margin-top: 8px;
}

article {
  margin-bottom: 16px;
  padding: 18px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
}

article:last-of-type {
  margin-bottom: 0;
}

address {
  padding: 16px 20px;
  font-style: normal;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

a {
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: #1d4ed8;
  border-bottom-color: currentColor;
}

strong {
  color: #0f172a;
}

time {
  color: #475569;
  font-variant-numeric: tabular-nums;
}

.deployment-footer {
  width: min(960px, 100%);
  margin: 24px auto 0;
}

.deployment-section {
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(171, 196, 255, 0.14);
  background: linear-gradient(180deg, rgba(12, 22, 39, 0.96), rgba(8, 14, 24, 0.98));
  box-shadow: var(--shadow);
  color: #edf4ff;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.section-head h2 {
  margin-bottom: 8px;
  color: #f5f9ff;
}

.section-note {
  max-width: 36ch;
  margin: 0;
  color: rgba(237, 244, 255, 0.7);
  line-height: 1.7;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.platform-card,
.compare-tile {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.platform-card h3,
.compare-tile strong {
  color: #f5f9ff;
}

.platform-card p,
.compare-tile p {
  margin-bottom: 0;
  color: rgba(237, 244, 255, 0.72);
}

.platform-chip,
.compare-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.platform-chip {
  color: #07111e;
  background: linear-gradient(135deg, var(--accent), #b2ffe6);
}

.compare-label {
  color: #b7cbff;
  border: 1px solid rgba(125, 168, 255, 0.22);
  background: rgba(125, 168, 255, 0.08);
}

.compare-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.compare-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compare-tile--static {
  border-color: rgba(121, 221, 198, 0.26);
}

@media (max-width: 880px) {
  .deployment-banner,
  .platform-grid,
  .compare-tiles {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .resume-card {
    padding: 0 24px 8px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 14px, 1040px);
    padding-top: 12px;
  }

  .deployment-banner,
  .deployment-section {
    padding: 18px;
    border-radius: 22px;
  }

  .resume-card {
    margin-top: 18px;
    padding: 0 18px 6px;
    border-radius: 22px;
  }

  header h1 {
    font-size: 2rem;
  }

  main > section {
    padding: 20px 0;
  }
}
