/* White vCard treatment, with the original page structure retained. */
:root {
  --smoky-black: #ffffff;
  --eerie-black-1: #f7f8fa;
  --eerie-black-2: #ffffff;
  --onyx: #f1f3f5;
  --jet: #e4e7ec;
  --white-1: #26303b;
  --white-2: #26303b;
  --light-gray: #596472;
  --light-gray-70: #77818e;
  --orange-yellow-crayola: #8b681f;
  --vegas-gold: #997b3e;
  --bg-gradient-onyx: linear-gradient(130deg,#e7e9ee,#f4f5f7);
  --bg-gradient-jet: linear-gradient(130deg,#ffffff,#fafbfc);
  --border-gradient-onyx: linear-gradient(130deg,#e5e7eb,#edf0f3);
  --bg-gradient-yellow-1: linear-gradient(135deg,#d0bd8e,#f4ead4);
  --bg-gradient-yellow-2: linear-gradient(135deg,#fff9e9,#ffffff);
  --text-gradient-yellow: linear-gradient(90deg,#aa8240,#d1b673);
  --shadow-1: 0 5px 22px #26354a06;
  --shadow-2: 0 8px 26px #26354a08;
  --shadow-3: 0 10px 35px #26354a0a;
  --shadow-4: 0 16px 45px #26354a09;
  --shadow-5: 0 12px 45px #26354a08;
  --qiran-ink: #28323e;
  --qiran-muted: #65717f;
  --qiran-accent: #8b681f;
}
html { color-scheme: light; }
body.vcard-body { background: #ffffff; color: var(--qiran-ink); }
body::-webkit-scrollbar-track { background: #ffffff; }
body::-webkit-scrollbar-thumb { background: #d8dde4; border-color: #f7f8fa; }
.sidebar, .page-article, .detail-article { background: #fff; border-color: #e4e7ec; }
.sidebar .avatar-box { background: #fff; border-radius: 18px; box-shadow: 0 3px 16px #26354a10; }
.sidebar .avatar-box img { object-fit: cover; object-position: 50% 25%; }
.info-content .title { background: #f1f3f5; color: #526071; }
.site-name, .sidebar-note, .contact-title, .social-item .social-link { color: #74808d; }
.sidebar-note { border-color: #e8ebef; }
.social-item .social-link:hover { color: var(--qiran-accent); }
.icon-box { color: #99762e; }
.info_more-btn { color: var(--qiran-accent); }
.navbar { background: #f9fafbec; border-color: #e4e7ec; }
.navbar-link { color: #606b79; }
.navbar-link:hover, .navbar-link.active { color: #876421; }
.navbar-link.active { font-weight: 600; }
.page-intro, .tiny-note, .about-text, .timeline-text, .video-details-copy { color: var(--qiran-muted); }
.welcome-heading, .section-title, .service-item-title, .account-overview h3,
.account-project h3, .work-record h3, .video-card h3, .tool-heading h3,
.project-hero h1, .project-story h2, .resume-heading h1, .resume-content h2 { color: var(--qiran-ink); }
.gold-text { color: #896a2f; }
.topic-row span { border-color: #e6dfce; color: #8c7345; background: #faf7ef; }
.service-item { padding: 24px; background: #fff; border: 1px solid #e4e8ed; box-shadow: 0 6px 22px #29354c04; }
.service-item::before { display: none; }
.service-item a { gap: 17px; }
.service-item-text { color: #65717e; line-height: 1.95; text-wrap: balance; overflow-wrap: anywhere; }
.copy-ending { display: inline; white-space: nowrap; }
.service-content-box { min-width: 0; }
.service-item:hover { border-color: #d6c9ad; box-shadow: 0 10px 28px #29354c08; }
.action-link, .button { color: #8b681f; background: #faf7ef; border-color: #e7ddc6; }
.action-link:hover, .button:hover { background: #f6efdf; border-color: #c8b581; }
.action-link.secondary { color: #606c7b; background: #fff; border-color: #e1e5eb; }
.subtle-link, .back-link, .note-link, .tool-card .link-row a { color: #8b681f; }
.about-method { padding-top: 3px; }
.method-list { display: grid; gap: 0; border: 1px solid #e5e8ed; border-radius: 14px; padding: 4px 22px; }
.method-list li { display: flex; gap: 20px; align-items: flex-start; padding: 19px 0; }
.method-list li + li { border-top: 1px solid #edf0f3; }
.method-number { flex: none; color: #b49b62; font: 18px/1.7 Georgia,serif; }
.method-list h4 { color: #34404e; font-size: 14px; font-weight: 500; margin: 0 0 4px; }
.method-list p { color: #77818d; font-size: 12px; line-height: 1.9; text-wrap: pretty; }
.off-work { margin-top: 24px; padding: 23px 25px; background: #faf9f5; border-radius: 12px; border: 1px solid #ece8df; }
.off-work-label { color: #9a8150; font-size: 11px; margin-bottom: 8px; }
.off-work p { color: #72766f; font-size: 13px; line-height: 2; text-wrap: pretty; }
.account-overview { position: relative; background: #fafbfc; border-color: #e4e8ee; grid-template-columns: minmax(0,1fr) 124px; }
.account-label { color: #927b45; }
.account-overview p { color: #6b7784; }
.account-avatar { position: relative; width: 116px; height: 116px; overflow: hidden; border-radius: 50%; background: #3535bf; box-shadow: 0 6px 22px #3535bf13; }
.account-avatar > img { position: absolute; width: 307.8125%; height: auto; max-width: none; left: -104.0625%; top: -170.3125%; }
.account-projects { grid-template-columns: minmax(0,1fr); gap: 19px; }
.account-project:last-child { grid-column: auto; }
.account-project.case-row { display: grid; grid-template-columns: minmax(130px,180px) minmax(0,1fr); align-items: center; gap: 28px; padding: 22px; background: #fff; border-color: #e5e8ed; }
.account-project .category { color: #a08446; }
.account-project p { color: #73808d; font-size: 13px; text-wrap: pretty; }
.account-project .case-role { font-size: 11px; color: #9099a5; margin: 18px 0 0; }
.case-content { min-width: 0; }
.case-cover { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; }
.case-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.case-cover-external { display: block; padding: 0; background: #f5f6f8; border: 1px solid #e1e6ec; transition: border-color .2s,box-shadow .2s; }
.case-cover-external:hover { border-color: #a8b7ca; box-shadow: 0 6px 18px #344c6b1c; }
.case-cover-external:focus-visible { outline: 2px solid #8b681f; outline-offset: 4px; }
.work-record { background: #faf8f2; border-color: #e9e2d3; }
.record-numbers strong { color: #96742b; font-variant-numeric: tabular-nums; }
.record-numbers span { color: #8d8c85; }
.video-filters button { color: #74808e; border-color: #e2e7ed; }
.video-filters button[aria-pressed="true"] { color: #866523; border-color: #d5c69f; background: #faf6ec; }
.video-poster, .video-poster img { background: #f3f4f6; }
.video-kind { color: #9b8042; }
.film-description, .tool-card p { color: #77818e; }
.video-duration { color: #fff; }
.empty-category { color: #8a929e; border-color: #e0e4e9; }
.empty-category strong { color: #8f7542; }
.timeline-item > span { color: #a08951; }
.skill-tags span { color: #6d7887; background: #f8f9fb; border-color: #e5e8ee; }
.contact-panel { background: #fbfcfd; border-color: #e4e8ee; }
.contact-panel .email-address { color: #916c21; }
.contact-panel > p { color: #7b8491; }
.copy-feedback { color: #9a7b38; }
.contact-socials { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; max-width: 620px; margin-top: 29px; perspective: 900px; }
.social-card { --tilt-x: 0deg; --tilt-y: 0deg; --pointer-x: 50%; --pointer-y: 50%; position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 174px; padding: 19px; overflow: hidden; border-radius: 17px; border: 1px solid #e3e7ed; box-shadow: 0 5px 12px #32415808; transform: perspective(700px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.social-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--pointer-x) var(--pointer-y),#ffffff68,transparent 65%); transition: opacity .25s; }
.social-card:hover, .social-card:focus-visible { transform: perspective(700px) translateY(-7px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); border-color: #91acd9; box-shadow: 0 15px 25px #293b5e1f,0 0 0 2px #9cbde92e; }
.social-card:hover::after { opacity: 1; }
.social-card-icon { width: 28px; height: 28px; margin-bottom: 22px; }
.social-card-icon svg { width: 100%; height: 100%; }
.social-card-title { font-size: 14px; font-weight: 500; }
.social-card-meta { font-size: 10px; margin-top: 8px; opacity: .68; }
.social-resume { color: #5e6774; background: linear-gradient(145deg,#fff,#edf1f5); }
.social-xhs { color: #fff; border-color: #ed2e4d; background: linear-gradient(145deg,#ff4c70,#ef1948); }
.social-xhs-word { width: auto; font-size: 15px; font-weight: 700; letter-spacing: -.5px; }
.social-github { color: #fff; border-color: #333b48; background: linear-gradient(145deg,#343d4b,#202732); }
#contact:not([hidden]) .social-card { animation: social-arrive .55s cubic-bezier(.22,.8,.35,1) both; }
#contact:not([hidden]) .social-card:nth-child(2) { animation-delay: .08s; }
#contact:not([hidden]) .social-card:nth-child(3) { animation-delay: .16s; }
@keyframes social-arrive { from { opacity: 0; translate: 0 15px; rotate: -3deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
.vcard-footer { color: #9aa2ad; }
.vcard-footer a { color: #7c8795; }
dialog.modal { color: #4b5665; background: #fff; border-color: #dce2e9; box-shadow: 0 20px 90px #1b293944; }
dialog.modal::backdrop { background: #1f2b3f88; backdrop-filter: blur(6px); }
.modal-head { border-color: #e9edf2; background: #fff; }
.modal-head h2 { color: #34404e; }
.modal-head button { color: #75808d; }
.modal-description { color: #85909f; }
.film-modal { width: min(900px,calc(100% - 30px)); }
.film-modal video { max-height: 76dvh; background: #15191f; }
.product-identity { color: #5c6877; }
.eyebrow, .project-facts dt { color: #a18b58; }
.project-hero .lead, .project-facts dd, .project-story p, .project-story ol { color: #788391; }
.project-story .usage-note { color: #87919d; background: #fafbfc; border-color: #c3ad77; }
.project-content, .project-next { border-color: #e6eaf0; }
.project-next { color: #987a36; }
.case-art { background: linear-gradient(135deg,#faf7ef,#f5f7fa); border-color: #e8e3d7; }
.case-art > span { color: #a58a4e; }
.case-art strong { color: #68715e; }
.case-art small { color: #969b91; }
.video-meta span { color: #927940; border-color: #e5dcc8; background: #faf7ef; }
.resume-heading p, .resume-heading a, .resume-content p, .resume-content li { color: #6b7785; }
.resume-content > section { border-color: #e5e9ee; }
.resume-content h2 small, .resume-content .evidence-note { color: #9d874f; }
@media (max-width: 579px) {
  .account-overview { display: block; padding: 21px; }
  .account-overview h3 { padding-right: 58px; font-size: 20px; }
  .account-avatar { position: absolute; top: 23px; right: 21px; width: 58px; height: 58px; }
  .account-overview p { margin-top: 17px; }
  .account-project.case-row { grid-template-columns: minmax(72px,90px) minmax(0,1fr); gap: 17px; padding: 16px; align-items: start; }
  .account-project h3 { font-size: 17px; margin: 6px 0 10px; text-wrap: balance; }
  .account-project p { font-size: 11px; line-height: 1.9; margin-bottom: 0; }
  .account-project .case-role { font-size: 9px; line-height: 1.9; margin-top: 12px; }
  .account-project .category { font-size: 9px; }
  .method-list { padding-inline: 17px; }
  .method-list li { gap: 14px; }
  .off-work { padding: 19px; }
  .service-item { padding: 21px 18px; }
  .service-item a { gap: 13px; }
  .service-icon-box img { width: 29px; height: 29px; }
  .service-item-text { font-size: 12px; }
  .contact-socials { gap: 9px; }
  .social-card { min-height: 143px; padding: 13px 10px; border-radius: 13px; }
  .social-card-icon { width: 24px; height: 24px; margin-bottom: 20px; }
  .social-xhs-word { width: auto; font-size: 13px; }
  .social-card-title { font-size: 12px; }
  .social-card-meta { font-size: 8px; }
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .social-card, .social-card:hover, .social-card:focus-visible { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  #contact:not([hidden]) .social-card { animation: none; }
}
@media print {
  body.vcard-body { background: #fff; }
}
