@font-face {
  font-family: '标小智无界黑';
  src: url('../assets/fonts/BiaoxiaozhiWujiehei.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --paper: #d7ddea;
  --blue: #173f68;
  --ink: #333;
  --shadow: 0 12px 32px rgb(24 51 84 / 13%), 0 2px 6px rgb(24 51 84 / 6%);
  --radius: 22px;
  color-scheme: light;
  font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  font-size: 24px;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 36px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
body.modal-open { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
button { border: 0; }
p, h1, h2, h3 { margin: 0; }
h1, h2, .intro-name { font-family: '标小智无界黑', 'Microsoft YaHei', sans-serif; font-size: 32px; font-weight: 400; color: var(--blue); }
h3 { font-size: 24px; font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; left: 20px; top: 12px; padding: 12px 20px; background: white; transform: translateY(-180%); border-radius: 8px; }
.skip-link:focus { transform: none; }
.page-intro { display: none; position: fixed; inset: 0; z-index: 50; place-items: center; background: var(--paper); pointer-events: none; }
.page-intro.is-active { display: grid; animation: intro-exit .75s .5s cubic-bezier(.76, 0, .24, 1) both; }
.intro-content { display: grid; justify-items: center; gap: 20px; padding: 24px; text-align: center; animation: intro-content .6s ease both; }
.intro-line { width: 1px; height: 64px; background: var(--blue); }
.intro-name { letter-spacing: .24em; margin-left: .24em; }
@keyframes intro-exit { to { clip-path: inset(0 0 100%); visibility: hidden; } }
@keyframes intro-content { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #fff; isolation: isolate; }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-poster img { width: 100%; height: 100%; object-fit: contain; }
.hero-video { background: white; }
.hero-video[hidden] { display: none; }
.scroll-guide { position: absolute; z-index: 2; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); width: 50px; height: 56px; display: grid; place-items: center; transform: translateX(-50%); border-radius: 30px; background: rgb(255 255 255 / 80%); box-shadow: 0 3px 18px rgb(23 63 104 / 8%); transition: background .2s; }
.scroll-guide:hover { background: white; }
.scroll-guide svg { width: 29px; height: 29px; fill: none; stroke: var(--blue); stroke-width: 1.8; animation: guide-in 1s 3.5s both; }
@keyframes guide-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.page-content { max-width: 1500px; padding: 0 48px; margin: 0 auto; }
.portfolio, .competencies, .contact { width: 100%; max-width: 1340px; margin-inline: auto; }
.section { padding-top: 104px; }
.section-heading { display: flex; align-items: center; gap: 40px; margin-bottom: 56px; }
.section-heading h2 { padding: 12px 0 12px 28px; border-left: 5px solid var(--blue); line-height: 1.55; flex-shrink: 0; }
.section-heading h2 span { display: block; }
.heading-line { height: 1px; flex: 1; background: rgb(23 63 104 / 16%); }
.profile-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; padding-left: 28px; }
.portrait-frame { position: relative; padding: 26px 0 26px 40px; max-width: 530px; }
.portrait-frame::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 64%; background: #1f5c93; }
.portrait-frame img { position: relative; width: 100%; border-radius: 16px; box-shadow: var(--shadow); }
.profile-copy { line-height: 1.85; overflow-wrap: anywhere; }
.profile-copy p + p { margin-top: 5px; }
.portfolio-nav { display: flex; gap: 12px 30px; flex-wrap: wrap; border-bottom: 1px solid rgb(23 63 104 / 16%); padding-bottom: 24px; }
.portfolio-nav a { padding: 8px 0; text-underline-offset: 8px; }
.work-group { padding-top: 64px; scroll-margin-top: 20px; }
.group-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.group-heading > span { letter-spacing: .06em; }
.work-card { display: block; position: relative; min-width: 0; width: 100%; padding: 0; border-radius: var(--radius); overflow: hidden; background: #edf0f5; box-shadow: var(--shadow); text-align: left; isolation: isolate; transition: transform .3s, box-shadow .3s; }
.work-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgb(24 51 84 / 20%); text-decoration: none; }
.work-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work-card:hover > img { transform: scale(1.025); }
.work-caption { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 5px; padding: 20px 24px; background: rgb(255 255 255 / 95%); backdrop-filter: blur(12px); border-radius: 12px; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; }
.work-caption-qr { padding-right: 112px; }
.card-qr { position: absolute; top: 50%; right: 20px; width: 76px; height: 76px; padding: 4px; object-fit: contain; background: #fff; border-radius: 5px; transform: translateY(-50%); }
.work-caption strong { font-size: 24px; line-height: 1.45; }
.work-caption > span { line-height: 1.5; }
.work-card:hover .work-caption, .work-card:focus-visible .work-caption { opacity: 1; transform: none; }
.web-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.web-grid .web-pc { width: calc((100% - 32px) * 727 / 1316); }
.web-grid .web-mobile { width: calc((100% - 32px) * 589 / 1316); }
.web-grid .work-card > img { height: auto; object-fit: contain; }
.web-classic { margin-inline: auto; }
.carousel { position: relative; }
.carousel-stage { position: relative; width: calc(100% - 80px); max-width: 1100px; aspect-ratio: 1559 / 809; margin-inline: auto; perspective: 1200px; touch-action: pan-y pinch-zoom; }
.carousel-slide { position: absolute; inset: 0; transition: transform .65s cubic-bezier(.22,.61,.36,1), opacity .55s, filter .55s; transform: translateX(0) scale(1); opacity: 0; visibility: hidden; }
.carousel-slide.is-current { visibility: visible; opacity: 1; z-index: 3; }
.carousel-slide.is-prev { visibility: visible; opacity: .65; transform: translateX(-6%) scale(.9); filter: brightness(.86); z-index: 1; pointer-events: none; }
.carousel-slide.is-next { visibility: visible; opacity: .65; transform: translateX(6%) scale(.9); filter: brightness(.86); z-index: 1; pointer-events: none; }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 28px; }
.arrow-button, .icon-button { flex-shrink: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgb(255 255 255 / 55%); transition: background .2s, transform .2s; }
.arrow-button:hover, .icon-button:hover { background: white; transform: scale(1.06); }
.arrow-button svg, .icon-button svg, .carousel-pause svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.carousel-caption { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 24px; min-width: 0; text-align: center; }
.carousel-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.carousel-pause { display: grid; place-items: center; width: 44px; height: 44px; background: transparent; border-radius: 50%; flex-shrink: 0; }
.aigc-list { display: grid; gap: 40px; }
.aigc-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.aigc-row .work-card { aspect-ratio: 731 / 407; }
.play-mark { position: absolute; display: grid; place-items: center; top: 50%; left: 50%; width: 62px; height: 62px; border-radius: 50%; transform: translate(-50%, -50%); background: rgb(255 255 255 / 85%); box-shadow: 0 4px 25px rgb(0 0 0 / 12%); }
.play-mark svg { width: 26px; height: 26px; fill: var(--ink); margin-left: 4px; }
.aigc-copy { position: relative; padding-left: 40px; }
.aigc-copy::before { content: ''; position: absolute; left: 0; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: #1f5c93; transform: translateY(-50%); }
.aigc-copy h3 { margin-bottom: 14px; line-height: 1.55; }
.aigc-copy p { line-height: 1.8; }
.aigc-copy .text-button { margin-top: 18px; padding: 0 0 5px; border-bottom: 1px solid #333; }
.text-button { background: transparent; }
.commerce-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.commerce-grid .work-card { aspect-ratio: 333 / 409; }
.commerce-grid .work-caption { padding: 15px; }
.two-grid { display: grid; width: 100%; max-width: 1120px; margin-inline: auto; grid-template-columns: 1fr 1fr; gap: 40px; }
.two-grid .work-card > img { height: auto; object-fit: contain; }
.skills-bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 50px; align-items: start; padding-inline: 24px; }
.skill-bar { width: 100%; max-width: 135px; justify-self: center; }
.skill-bar img { width: 100%; }
.motion-ready .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1); }
.motion-ready .reveal.is-visible { opacity: 1; transform: none; }
.motion-ready .skills-bars .skill-bar { clip-path: inset(0 0 100% 0); transform: translateY(-18px); opacity: 0; }
.motion-ready .skills-bars.is-visible .skill-bar { animation: bar-reveal 1.2s calc(var(--order) * .16s) cubic-bezier(.22,.61,.36,1) both; }
@keyframes bar-reveal { from { clip-path: inset(0 0 100% 0); opacity: 0; transform: translateY(-18px); } to { clip-path: inset(0); opacity: 1; transform: none; } }
.contact { padding-bottom: 96px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.contact-item { min-width: 0; text-align: center; line-height: 1.65; overflow-wrap: anywhere; }
.contact-item h3 { margin: 20px 0 8px; }
.qr-button, .site-qr { display: block; width: 100%; max-width: 240px; margin: 0 auto; padding: 12px; aspect-ratio: 1; background: #fff; box-shadow: var(--shadow); border-radius: 12px; }
.qr-button img { width: 100%; height: 100%; object-fit: contain; }
.site-qr { display: grid; place-items: center; }
.site-qr > svg { width: 55%; fill: none; stroke: var(--blue); stroke-width: 2; }
.site-qr img { width: 100%; height: 100%; object-fit: contain; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 38px max(48px, calc((100% - 1404px) / 2)); background: #c5cede; border-top: 1px solid rgb(23 63 104 / 15%); line-height: 1.7; }
.footer-info { display: grid; gap: 3px; }
.footer-info small { font-size: 12px; line-height: 1.6; }
.footer a { display: inline-flex; align-items: center; gap: 16px; }
.footer svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.back-to-top { position: fixed; z-index: 6; right: 28px; bottom: max(28px, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 56px; height: 56px; background: rgb(255 255 255 / 95%); backdrop-filter: blur(10px); box-shadow: var(--shadow); border-radius: 50%; animation: top-button .25s both; }
.back-to-top[hidden] { display: none; }
.back-to-top svg { width: 25px; height: 25px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
@keyframes top-button { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.work-dialog { padding: 0; border: 1px solid rgb(255 255 255 / 50%); border-radius: 20px; width: min(1400px, calc(100% - 64px)); max-width: none; height: min(960px, calc(100dvh - 64px)); max-height: none; background: #f0f2f7; color: var(--ink); overflow: hidden; box-shadow: 0 32px 120px rgb(0 0 0 / 25%); }
.work-dialog::backdrop { background: rgb(16 30 48 / 72%); backdrop-filter: blur(12px); }
.work-dialog[open] { animation: dialog-in .25s ease both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog-shell { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid #d9dee8; background: #fff; }
.dialog-header h3 { line-height: 1.45; }
.dialog-toolbar { padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 24px; }
.dialog-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-right: auto; }
.dialog-tabs:empty { display: none; }
.dialog-tab { background: #e0e6ee; padding: 8px 14px; border-radius: 8px; }
.dialog-tab[aria-pressed="true"] { background: #cad8e8; box-shadow: inset 0 -3px var(--blue); }
.dialog-viewport { flex: 1; min-height: 0; padding: 20px; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
#dialog-media { display: grid; justify-items: center; align-items: start; min-height: 100%; }
.dialog-image { display: block; max-width: 100%; width: auto; height: auto; margin: auto; box-shadow: 0 3px 22px rgb(23 63 104 / 8%); background: #fff; cursor: zoom-in; }
.dialog-image.is-zoomed { max-width: none; margin: 0; cursor: zoom-out; }
.dialog-viewport.is-zoomed #dialog-media { display: block; width: max-content; min-width: 100%; }
.dialog-video { width: 100%; max-height: 100%; margin: auto; object-fit: contain; background: #101318; }
.dialog-footer { padding: 12px 24px; display: flex; justify-content: center; align-items: center; gap: 24px; border-top: 1px solid #d9dee8; background: #fff; }
.dialog-footer p { line-height: 1.5; text-align: center; }
.dialog-footer .arrow-button { background: #edf0f5; }
.dialog-footer .arrow-button:disabled { opacity: .3; cursor: default; }
.dialog-footer .arrow-button[hidden], .dialog-toolbar[hidden] { display: none; }
.media-error { padding: 32px; text-align: center; line-height: 1.8; }
.noscript-message { padding: 24px; text-align: center; }
@media (min-width: 768px) and (max-width: 1100px) {
  .page-content { padding-inline: 36px; }
  .profile-layout { gap: 32px; padding-left: 0; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: start; }
  .portrait-frame { padding-left: 24px; }
  .aigc-row { gap: 32px; }
  .skills-bars { gap: 30px; padding-inline: 0; }
  .contact-grid { gap: 24px; }
}
@media (hover: none) {
  .work-caption { position: relative; left: auto; right: auto; bottom: auto; opacity: 1; transform: none; padding: 16px 20px; border-radius: 0; background: #f7f8fb; backdrop-filter: none; }
  .work-card { display: flex; flex-direction: column; }
  .work-card > img { flex: 1; min-height: 0; }
  .play-mark { top: 36%; }
  .commerce-grid .work-card, .two-grid .work-card, .web-grid .work-card { aspect-ratio: auto; }
  .commerce-grid .work-card > img { aspect-ratio: 333 / 409; }
  .two-grid .work-card > img, .web-grid .work-card > img { flex: none; }
  .aigc-row .work-caption { display: none; }
  .aigc-row .play-mark { top: 50%; }
  .carousel-slide .work-caption { display: none; }
}
@media (max-width: 767px) {
  :root { font-size: 12px; scroll-padding-top: 20px; }
  h1, h2, .intro-name { font-size: 20px; }
  h3, .work-caption strong { font-size: 16px; }
  .hero { aspect-ratio: 9 / 16; }
  .scroll-guide { width: 44px; height: 50px; bottom: max(18px, env(safe-area-inset-bottom)); }
  .page-content { padding-inline: 24px; }
  .section { padding-top: 64px; }
  .section-heading { gap: 24px; margin-bottom: 36px; }
  .section-heading h2 { padding-left: 20px; border-left-width: 4px; }
  .profile-layout { grid-template-columns: 1fr; gap: 34px; padding-left: 0; }
  .portrait-frame { width: min(100%, 370px); justify-self: center; padding: 20px 0 20px 28px; }
  .profile-copy { line-height: 1.85; }
  .profile-copy p + p { margin-top: 10px; }
  .portfolio-nav { gap: 8px 22px; padding-bottom: 20px; }
  .work-group { padding-top: 44px; }
  .group-heading { display: grid; gap: 8px; margin-bottom: 22px; }
  .group-heading > span { letter-spacing: .035em; }
  .web-grid, .two-grid, .commerce-grid { grid-template-columns: 1fr; gap: 24px; }
  .web-grid { display: grid; }
  .web-grid .web-mobile { width: 100%; }
  .web-grid .web-pc { display: none; }
  .web-classic { grid-column: auto; width: 100%; }
  .work-card { border-radius: 16px; display: flex; flex-direction: column; }
  .work-caption { position: relative; left: auto; right: auto; bottom: auto; opacity: 1; transform: none; padding: 17px 20px; border-radius: 0; background: #f7f8fb; backdrop-filter: none; }
  .work-caption-qr { padding-right: 94px; }
  .card-qr { right: 14px; width: 64px; height: 64px; }
  .web-grid .work-card, .commerce-grid .work-card, .two-grid .work-card { aspect-ratio: auto; }
  .work-card > img { flex: 1; min-height: 0; }
  .web-grid .work-card > img { flex: none; }
  .commerce-grid .work-card > img { aspect-ratio: 333 / 409; }
  .two-grid .work-card > img { flex: none; }
  .commerce-grid .work-caption { padding: 17px 20px; }
  .carousel-stage { width: 92%; margin-inline: auto; }
  .carousel-slide { display: block; }
  .carousel-slide .work-caption { display: none; }
  .carousel-controls { gap: 8px; margin-top: 20px; }
  .carousel-caption { flex: 1; gap: 6px; flex-direction: column; }
  .arrow-button, .icon-button { width: 44px; height: 44px; }
  .carousel-pause { width: 36px; }
  .aigc-list { gap: 36px; }
  .aigc-row { grid-template-columns: 1fr; gap: 22px; }
  .aigc-row .work-card { display: block; }
  .aigc-row .work-caption { display: none; }
  .aigc-copy { padding-left: 28px; }
  .aigc-copy::before { width: 12px; height: 12px; }
  .aigc-copy h3 { margin-bottom: 10px; }
  .aigc-copy .text-button { margin-top: 12px; }
  .skills-bars { gap: 18px; padding-inline: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .skill-bar { max-width: 100px; }
  .contact { padding-bottom: 64px; }
  .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .qr-button, .site-qr { max-width: 260px; }
  .contact-item h3 { margin-top: 16px; }
  .footer { padding: 30px 24px; gap: 12px; }
  .footer-info { width: 100%; }
  .back-to-top { width: 48px; height: 48px; right: 16px; bottom: max(18px, env(safe-area-inset-bottom)); }
  .work-dialog { width: calc(100% - 20px); height: calc(100dvh - 32px); border-radius: 14px; }
  .dialog-header { padding: 12px 14px; gap: 8px; }
  .dialog-header h3 { font-size: 16px; overflow-wrap: anywhere; }
  .dialog-toolbar { padding: 12px 14px; gap: 10px 18px; }
  .dialog-tab { padding: 8px 12px; }
  .dialog-viewport { padding: 10px; }
  .dialog-footer { padding: 10px 12px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .page-intro { display: none !important; }
  .motion-ready .reveal, .motion-ready .skills-bars .skill-bar { opacity: 1; transform: none; clip-path: none; }
}
