:root {
  --paper: #fffdf8;
  --paper-soft: #f7fbfd;
  --ink: #111111;
  --muted: #5d6871;
  --blue: #2f94d8;
  --blue-soft: #dff0fa;
  --blue-line: #c4dce9;
  --deep-blue: #7f9bab;
  --card: rgba(255, 255, 255, 0.86);
  --shadow: 0 18px 45px rgba(72, 116, 145, 0.14);
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 20%, rgba(221, 235, 242, 0.9), transparent 24rem),
    linear-gradient(135deg, #fffdf8 0%, #fbfaf4 44%, #f2f8fb 100%);
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 22px;
  border: 3px solid var(--blue-line);
  border-radius: 54px;
  pointer-events: none;
  z-index: 0;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(22px, 5vw, 72px);
  background: rgba(255, 253, 248, 0.9);
  border-bottom: 1px solid rgba(196, 220, 233, 0.85);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  flex-direction: column;
  width: max-content;
}

.brand strong {
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand span {
  color: var(--deep-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 0;
}

.nav a,
.header-cta,
.hero-actions a,
.contact-actions a,
.video-item button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 2px solid transparent;
  border-radius: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.nav a {
  position: relative;
  min-width: 92px;
  border-width: 0 1px 0 0;
  border-color: rgba(47, 148, 216, 0.12);
  background: transparent;
  z-index: 0;
}

.nav a:last-child {
  border-right: 0;
}

.nav a::before,
.header-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(47, 148, 216, 0.2), rgba(196, 220, 233, 0.82));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
  z-index: -1;
}

.nav a:hover,
.nav a:focus-visible,
.hero-actions a:hover,
.hero-actions a:focus-visible {
  color: var(--blue);
  border-color: rgba(47, 148, 216, 0.16);
}

.nav a:hover::before,
.nav a:focus-visible::before,
.header-cta:hover::before,
.header-cta:focus-visible::before {
  transform: scaleX(1);
}

.header-cta,
.video-item button {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
  border-radius: 999px;
  box-shadow: 0 9px 20px rgba(47, 148, 216, 0.22);
  z-index: 0;
}

.header-cta::before {
  background: linear-gradient(135deg, #bfe3f6 0%, #ffffff 48%, #d8edf8 100%);
}

.header-cta:hover,
.header-cta:focus-visible,
.video-item button:hover,
.video-item button:focus-visible {
  transform: translateY(-2px);
}

.header-cta:hover,
.header-cta:focus-visible {
  color: var(--blue);
  background: var(--blue);
}

main {
  position: relative;
  z-index: 1;
  padding: 34px 0 72px;
}

.page-shell {
  width: min(var(--max), calc(100% - 68px));
  margin: 0 auto 34px;
  border: 3px solid var(--blue-line);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  scroll-margin-top: 104px;
}

.hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  min-height: calc(100vh - 138px);
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 3px solid #d8e9f3;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.74);
}

.portrait-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 10px;
  border: 3px solid #d9edf8;
  border-radius: 30px;
  background: #ffffff;
  overflow: hidden;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  border-radius: 22px;
}

.profile-card h1 {
  margin: 18px 0 2px;
  color: var(--blue);
  font-size: 52px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.intent {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
}

.quick-info {
  display: grid;
  gap: 12px;
  width: 100%;
}

.quick-info p {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.quick-info strong {
  display: block;
  color: #a8d2e8;
  font-size: 24px;
  line-height: 1.1;
}

.contact-mini {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 22px;
  font-weight: 900;
}

.contact-mini a {
  color: var(--ink);
}

.hero-main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 72px);
  border: 3px solid rgba(17, 17, 17, 0.08);
  border-radius: 36px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.56)),
    radial-gradient(circle at 100% 30%, rgba(216, 233, 243, 0.9), transparent 34rem);
  overflow: hidden;
}

.hero-main::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -22%;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background: rgba(232, 236, 231, 0.65);
  z-index: 0;
}

.hero-main > * {
  position: relative;
  z-index: 1;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-main h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 820px;
  margin: 24px 0 0;
  color: #222222;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
  max-width: 700px;
}

.hero-actions a {
  min-height: 86px;
  border-color: #d7e8f1;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 22px;
  box-shadow: 0 12px 26px rgba(72, 116, 145, 0.1);
}

.hero-actions a:hover,
.hero-actions a:focus-visible {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 12px 26px rgba(47, 148, 216, 0.2);
  transform: translateY(-3px);
}

.section-block {
  padding: clamp(26px, 4vw, 46px);
}

.section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 26px;
}

.section-heading > span {
  color: var(--blue);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 900;
  line-height: 1;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.1;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.advantage-grid article,
.ability-layout article {
  padding: 22px;
  border: 2px solid #d8e8f1;
  border-radius: 22px;
  background: var(--card);
}

.advantage-grid h3,
.ability-layout h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.advantage-grid p,
.ability-layout p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 24px;
}

.experience-card {
  position: relative;
  padding: 28px 32px;
  border: 3px solid #dce8ee;
  border-right: 12px solid var(--blue);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
}

.experience-head {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
}

.experience-head h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
}

.experience-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.role-time {
  display: grid;
  gap: 4px;
  min-width: max-content;
  text-align: right;
}

.role-time strong {
  font-size: 24px;
}

.role-time span {
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
}

.experience-card ul {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding-left: 20px;
}

.experience-card li {
  color: #202020;
  font-size: 17px;
  font-weight: 700;
}

.experience-card li::marker {
  color: var(--blue);
}

.ability-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.ability-layout article {
  overflow-wrap: anywhere;
}

.ability-list {
  display: grid;
  gap: 4px;
}

.ability-list span {
  display: block;
}

.portfolio-categories {
  display: grid;
  gap: 16px;
}

.category-card {
  border: 2px solid #d8e8f1;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.category-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 22px 24px;
  border: 0;
  background: linear-gradient(90deg, rgba(47, 148, 216, 0.14), rgba(255, 255, 255, 0.72));
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.category-toggle span {
  color: var(--blue);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.category-toggle strong {
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.1;
}

.category-toggle::after {
  content: "展开";
  justify-self: end;
  grid-column: 3;
  min-width: 72px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.category-toggle[aria-expanded="true"]::after {
  content: "收起";
}

.category-videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
}

.category-videos[hidden] {
  display: none;
}

.video-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 20px;
  border: 2px solid #d8e8f1;
  border-radius: 20px;
  background: #ffffff;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.video-item.has-poster {
  min-height: 220px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.video-item.has-poster[data-orientation="portrait"] {
  background-position: center 28%;
}

.video-item.has-poster h3 {
  color: #ffffff;
}

.video-item h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.video-item button {
  width: max-content;
  margin-top: auto;
  cursor: pointer;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(26px, 4vw, 46px);
}

.contact-actions {
  display: grid;
  gap: 10px;
}

.contact-actions a {
  border: 2px solid var(--blue-line);
  border-radius: 999px;
  background: #ffffff;
}

.contact-actions a:hover,
.contact-actions a:focus-visible {
  color: #ffffff;
  border-color: var(--blue);
  background: var(--blue);
}

.site-footer {
  width: min(100% - 36px, 1380px);
  margin: 0 auto 32px;
  padding: 18px 24px;
  border: 2px solid rgba(169, 211, 232, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.site-footer p {
  margin: 4px 0;
}

.footer-records {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
}

.site-footer a,
.site-footer span {
  color: var(--muted);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--blue);
}

.police-record {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.police-record img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 36, 50, 0.58);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  padding: 24px;
  border: 3px solid var(--blue-line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(24, 57, 78, 0.28);
}

.modal-panel.portrait-video {
  width: min(430px, calc(100vw - 24px));
}

.modal-panel.landscape-video {
  width: min(960px, calc(100vw - 24px));
}

.modal-panel h2 {
  margin: 0 46px 16px 0;
  font-size: clamp(24px, 4vw, 38px);
}

.modal-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 2px solid var(--blue-line);
  border-radius: 999px;
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 14px;
}

.modal-open-link:hover,
.modal-open-link:focus-visible {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.modal-panel video,
.video-placeholder {
  width: 100%;
  border: 2px solid var(--blue-line);
  border-radius: 18px;
  background: #111111;
}

.modal-panel.landscape-video video,
.modal-panel.landscape-video .video-placeholder {
  aspect-ratio: 16 / 9;
}

.modal-panel.portrait-video video,
.modal-panel.portrait-video .video-placeholder {
  aspect-ratio: 9 / 16;
  max-height: min(72vh, 760px);
}

.modal-panel video {
  object-fit: contain;
}

.modal-panel video {
  display: none;
}

.modal-panel.has-video video {
  display: block;
}

.modal-panel.has-video .video-placeholder {
  display: none;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  color: #ffffff;
  text-align: center;
}

.video-placeholder strong {
  font-size: 34px;
}

.video-placeholder p {
  max-width: 560px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.video-placeholder code {
  color: #bfe6ff;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

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

@media (max-width: 1120px) {
  .hero,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .profile-card {
    max-width: 430px;
  }

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

  .ability-layout,
  .hero-actions,
  .category-videos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  body::before {
    inset: 10px;
    border-radius: 28px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding: 14px 18px;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-cta {
    grid-column: 2;
    grid-row: 1;
  }

  .nav a {
    min-width: max-content;
  }

  .page-shell {
    width: min(100% - 28px, var(--max));
    border-radius: 28px;
  }

  .hero,
  .section-block,
  .contact-section {
    padding: 18px;
  }

  .hero-main,
  .profile-card {
    border-radius: 24px;
    padding: 22px;
  }

  .profile-card h1 {
    font-size: 44px;
  }

  .hero-main h2 {
    font-size: clamp(34px, 10vw, 56px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .section-heading,
  .experience-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .role-time {
    min-width: 0;
    text-align: left;
  }

  .advantage-grid,
  .ability-layout,
  .hero-actions,
  .category-videos {
    grid-template-columns: 1fr;
  }

  .hero-actions a {
    min-height: 64px;
    font-size: 18px;
  }

  .category-toggle {
    grid-template-columns: auto 1fr;
  }

  .category-toggle::after {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  body::before {
    display: none;
  }

  .site-header {
    position: sticky;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
  }

  .brand {
    width: 100%;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand span {
    font-size: 11px;
  }

  .header-cta {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-height: 42px;
  }

  .nav {
    grid-row: 3;
    gap: 8px;
    width: 100%;
    padding: 2px 0 4px;
  }

  .nav a {
    min-height: 34px;
    padding: 0 12px;
    min-width: max-content;
    border-right: 1px solid rgba(47, 148, 216, 0.18);
    background: rgba(255, 255, 255, 0.36);
    font-size: 13px;
  }

  main {
    padding: 16px 0 48px;
  }

  .page-shell {
    width: calc(100% - 18px);
    margin-bottom: 18px;
    border-width: 2px;
    border-radius: 22px;
    scroll-margin-top: 154px;
  }

  .hero {
    gap: 14px;
    min-height: auto;
  }

  .hero,
  .section-block,
  .contact-section {
    padding: 12px;
  }

  .profile-card {
    max-width: none;
    padding: 16px;
  }

  .portrait-wrap {
    max-width: 260px;
    margin: 0 auto;
    border-width: 2px;
    border-radius: 24px;
  }

  .portrait-wrap img {
    border-radius: 18px;
  }

  .profile-card h1 {
    font-size: 38px;
  }

  .intent {
    font-size: 20px;
  }

  .quick-info {
    gap: 10px;
  }

  .quick-info p {
    font-size: 15px;
  }

  .quick-info strong {
    font-size: 20px;
  }

  .contact-mini {
    margin-top: 20px;
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .hero-main {
    padding: 20px 16px 22px;
  }

  .hero-main::after {
    right: -38%;
    bottom: -20%;
    width: 25rem;
    height: 25rem;
  }

  .section-kicker {
    font-size: 13px;
  }

  .hero-main h2 {
    font-size: clamp(32px, 11vw, 44px);
    line-height: 1.14;
  }

  .hero-lead {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .hero-actions a {
    min-height: 58px;
    border-radius: 16px;
    font-size: 17px;
  }

  .section-heading {
    gap: 10px;
    margin-bottom: 18px;
  }

  .section-heading > span {
    font-size: 44px;
  }

  .section-heading h2,
  .contact-section h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .advantage-grid article,
  .ability-layout article {
    padding: 18px;
    border-radius: 18px;
  }

  .advantage-grid h3,
  .ability-layout h3 {
    font-size: 22px;
  }

  .experience-card {
    padding: 18px;
    border-width: 2px;
    border-right-width: 8px;
    border-radius: 20px;
  }

  .experience-head h3 {
    font-size: 24px;
  }

  .role-time strong,
  .role-time span {
    font-size: 18px;
  }

  .experience-card li {
    font-size: 15px;
  }

  .category-toggle {
    gap: 12px;
    padding: 16px;
  }

  .category-toggle span {
    font-size: 34px;
  }

  .category-toggle strong {
    font-size: 26px;
  }

  .category-videos {
    gap: 10px;
    padding: 12px;
  }

  .video-item {
    min-height: 132px;
    padding: 16px;
  }

  .video-item h3 {
    font-size: 20px;
  }

  .video-item button {
    min-height: 36px;
    padding: 0 14px;
    font-size: 14px;
  }

  .contact-section {
    gap: 18px;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions a {
    min-height: 42px;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .video-modal {
    padding: 12px;
  }

  .modal-panel {
    padding: 16px;
    border-width: 2px;
    border-radius: 20px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .modal-panel h2 {
    margin-right: 42px;
    font-size: 24px;
  }

  .video-placeholder strong {
    font-size: 24px;
  }

  .video-placeholder p {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
