/* Qiran's content and components on codewithsadee's MIT-licensed vCard. */
:root { --ff-poppins: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
html { scroll-behavior: smooth; color-scheme: dark; }
body { color: #d7d7da; font-size: 14px; line-height: 1.85; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, [tabindex="0"]:focus-visible { outline: 2px solid #ffdb70; outline-offset: 5px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 10px; left: 12px; transform: translateY(-160%); z-index: 100; padding: 8px 16px; background: #ffdb70; color: #191919; border-radius: 8px; }
.skip-link:focus { transform: none; }
.vcard-layout { align-items: flex-start; }
.main-content { min-width: 0; }
.sidebar .avatar-box { overflow: hidden; flex: none; background: #343436; }
.sidebar .avatar-box img { width: 80px; height: 80px; object-fit: contain; object-position: center; }
.sidebar .info-content .name { letter-spacing: 2px; font-weight: 500; }
.sidebar .info-content .title { font-size: 11px; letter-spacing: .3px; }
.site-name { display: block; color: #99999f; margin-top: 9px; font-size: 10px; letter-spacing: 1px; }
.info_more-btn { display: flex; align-items: center; gap: 5px; font-size: 10px; }
.info_more-btn svg { width: 13px; height: 13px; }
.sidebar.active { max-height: 800px; }
.contact-item .icon-box { flex: none; width: 38px; height: 38px; }
.contact-item .icon-box svg { width: 18px; height: 18px; }
.contact-info { max-width: calc(100% - 50px); width: calc(100% - 50px); }
.contact-title { font-size: 10px; letter-spacing: .5px; }
.contact-info :is(.contact-link,address,span) { font-size: 12px; font-weight: 400; }
.social-list { flex-wrap: wrap; gap: 16px; padding: 4px 0 0; }
.social-item .social-link { font-size: 11px; }
.social-item .social-link:hover { color: #ffdb70; }
.sidebar-note { margin-top: 20px; padding: 13px 0 0; border-top: 1px solid #383838; color: #96969b; font-size: 11px; line-height: 1.9; }
.navbar-list { flex-wrap: nowrap; gap: 0; justify-content: space-around; padding: 0 5px; }
.navbar-link { padding: 18px 7px; white-space: nowrap; font-size: 11px; line-height: 1.5; }
.navbar-link.active { color: #ffdb70; }
.page-article { padding-bottom: 30px; }
.page-article.active { display: block; }
.page-article .article-title { margin-bottom: 27px; font-size: 26px; letter-spacing: .4px; font-weight: 600; }
.page-intro { color: #aaaab1; font-size: 13px; line-height: 1.95; margin: -5px 0 28px; max-width: 650px; }
.welcome-heading { color: #f6f6f7; font-size: clamp(26px,3.1vw,37px); line-height: 1.5; font-weight: 500; letter-spacing: -.5px; margin-bottom: 17px; }
.about-text { margin-bottom: 30px; font-weight: 400; font-size: 14px; line-height: 2.05; }
.about-text p + p { margin-top: 14px; }
.gold-text { display: inline; color: #ffdb70; }
.topic-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0; }
.topic-row span { padding: 5px 10px; border: 1px solid #45423a; border-radius: 7px; font-size: 11px; color: #d9cda4; background: #292821; }
.section-title { margin: 30px 0 20px; color: #f6f6f7; font-size: 20px; font-weight: 500; }
.section-title small { display: block; margin-top: 7px; color: #99999f; font-size: 11px; font-weight: 400; }
.service-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.service-item { position: relative; padding: 23px; border-radius: 14px; background: var(--border-gradient-onyx); box-shadow: var(--shadow-2); }
.service-item::before { content: ""; position: absolute; inset: 1px; z-index: 0; border-radius: inherit; background: var(--bg-gradient-jet); }
.service-item > * { position: relative; }
.service-item a { display: flex; gap: 19px; align-items: flex-start; }
.service-icon-box { margin: 2px 0 0; flex: none; }
.service-icon-box img { width: 35px; height: 35px; object-fit: contain; }
.service-content-box { text-align: left; }
.service-item-title { color: #f3f3f3; font-size: 15px; margin: 0 0 7px; font-weight: 500; }
.service-item-text { font-size: 12px; line-height: 1.9; color: #b3b3b8; }
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 25px 0 5px; }
.action-link, .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 17px; border: 1px solid #494333; border-radius: 10px; background: #2b2923; color: #ffdb70; font-size: 12px; line-height: 1.7; }
.action-link:hover, .button:hover { background: #343027; border-color: #7c6b3c; }
.action-link.secondary { color: #c6c6cb; background: #252526; border-color: #3d3d40; }
.subtle-link { display: inline-flex; color: #ffdb70; font-size: 12px; gap: 8px; }
.tiny-note { color: #99999f; font-size: 11px; line-height: 1.9; }
.current-note { padding: 20px 22px; border: 1px solid #3c392d; border-radius: 12px; background: #27261f; margin-top: 28px; }
.current-note .note-label { color: #d7bd6f; font-size: 10px; letter-spacing: 1px; margin-bottom: 6px; }
.current-note p { color: #bfbcb2; font-size: 13px; line-height: 1.9; }
.tool-shortcuts { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.tool-shortcuts a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px; background: #252526; border: 1px solid #38383b; border-radius: 12px; font-size: 10px; color: #bbbcc2; text-align: center; }
.tool-shortcuts img { width: 44px; height: 44px; border-radius: 10px; }
.tool-shortcuts a:hover { border-color: #7b6d46; color: #ffdb70; }
.account-overview { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 24px; background: #252526; border: 1px solid #3b3b3e; border-radius: 14px; }
.account-overview h3 { font-size: 22px; font-weight: 500; color: #f3f3f5; margin-bottom: 8px; }
.account-overview p { color: #b3b3ba; font-size: 13px; }
.account-label { display: inline-block; font-size: 10px; color: #d9bf74; margin-bottom: 8px; }
.account-thumb { width: 100%; max-width: 160px; border-radius: 10px; background: white; }
.account-projects { display: grid; gap: 16px; margin-top: 24px; }
.account-project { padding: 22px; border: 1px solid #38383a; border-radius: 12px; background: linear-gradient(120deg,#29292b,#232325); }
.account-project .category { font-size: 10px; color: #d1b970; letter-spacing: .6px; }
.account-project h3 { color: #f3f3f4; font-size: 19px; font-weight: 500; margin: 9px 0; }
.account-project p { font-size: 12px; color: #acacb3; margin-bottom: 14px; line-height: 1.95; }
.work-record { padding: 22px; border-radius: 12px; border: 1px solid #3c392f; background: #26251f; margin-top: 24px; }
.work-record h3 { font-size: 14px; color: #d9d7cf; font-weight: 500; }
.record-numbers { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; margin: 15px 0; }
.record-numbers strong { color: #ffdb70; font-size: 27px; font-weight: 500; line-height: 1.4; }
.record-numbers span { color: #b8b5a9; font-size: 10px; }
.video-filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 22px; }
.video-filters button { padding: 7px 11px; font-size: 11px; color: #b5b5bc; border: 1px solid #3c3c3f; border-radius: 8px; }
.video-filters button[aria-pressed="true"] { color: #ffdb70; border-color: #73643e; background: #302b20; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.video-poster { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 5; border-radius: 13px; overflow: hidden; background: #29292c; }
.video-poster img { height: 100%; width: 100%; object-fit: contain; background: #252527; transition: transform .2s; }
.video-poster:hover img { transform: scale(1.025); }
.play-icon { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #171719bd; border: 1px solid #ffffff59; color: #ffdb70; font-size: 14px; padding-left: 3px; }
.video-duration { position: absolute; bottom: 10px; right: 10px; padding: 2px 6px; border-radius: 5px; color: #eee; font-size: 10px; background: #141414aa; }
.video-kind { display: block; color: #c2a85e; font-size: 10px; margin-top: 16px; }
.video-card h3 { color: #f1f1f3; font-size: 16px; line-height: 1.7; font-weight: 500; margin: 6px 0 8px; }
.film-description { color: #a5a5ad; font-size: 12px; line-height: 1.9; margin-bottom: 10px; }
.empty-category { border: 1px dashed #46423a; border-radius: 12px; padding: 34px 24px; color: #aaaab1; font-size: 13px; }
.empty-category strong { color: #e0d1a2; margin-bottom: 8px; font-size: 17px; font-weight: 500; }
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 21px; }
.tool-card { min-width: 0; }
.vcard-body .tool-art.demo-art { height: clamp(290px,30vw,360px); border-radius: 13px; }
.tool-heading { display: flex; align-items: center; gap: 11px; margin: 16px 0 9px; }
.tool-heading img { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.tool-heading h3 { font-size: 16px; line-height: 1.65; font-weight: 500; color: #f3f3f5; }
.tool-card p { font-size: 12px; color: #a6a6af; line-height: 1.9; }
.tool-card .link-row { gap: 15px; margin-top: 15px; }
.tool-card .link-row a { font-size: 11px; color: #d9bd72; }
.timeline { margin-bottom: 30px; }
.timeline .title-wrapper { margin-bottom: 22px; gap: 15px; }
.timeline .title-wrapper .h3 { font-size: 20px; font-weight: 500; }
.timeline-item-title { font-size: 16px; font-weight: 500; }
.timeline-item > span { font-size: 11px; color: #cdb66d; margin: 6px 0 10px; }
.timeline-text { color: #b4b4bc; font-size: 13px; font-weight: 400; line-height: 1.95; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.skill-tags span { padding: 7px 12px; color: #c0c0c6; background: #2b2b2e; border: 1px solid #3c3c40; border-radius: 8px; font-size: 12px; }
.contact-panel { padding: 24px; background: #252526; border: 1px solid #3b3b3e; border-radius: 14px; }
.contact-panel .email-address { color: #ffdb70; font-size: clamp(19px,4vw,30px); line-height: 1.7; overflow-wrap: anywhere; margin: 15px 0; }
.copy-feedback { font-size: 11px; color: #d5c68e; min-height: 22px; }
.vcard-footer { max-width: 1200px; margin: 0 auto 30px; padding: 0 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 10px; color: #7f7f86; }
.vcard-footer a { display: inline; color: #a8a8b0; }
dialog.modal { position: fixed; margin: auto; width: min(840px,calc(100% - 30px)); max-height: 92dvh; overflow: auto; border: 1px solid #4b4b4d; border-radius: 16px; color: #dedee3; background: #202022; box-shadow: 0 25px 100px #000a; padding: 0; }
dialog.modal::backdrop { background: #070708d9; backdrop-filter: blur(6px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; border-bottom: 1px solid #39393b; }
.modal-head h2 { color: #ededf0; font-size: 15px; font-weight: 500; }
.modal-head button { width: 36px; height: 36px; text-align: center; color: #ddd; font-size: 26px; }
.film-modal video { display: block; width: 100%; max-height: 72dvh; background: #101011; }
.modal-description { padding: 15px 20px; color: #adadb5; font-size: 12px; }
dialog.account-modal { max-width: 410px; }
.account-modal > img { width: 100%; max-height: 63dvh; object-fit: contain; background: #fff; }
.account-modal > p, .account-modal > a { margin: 17px 20px; font-size: 12px; }
.back-link { display: inline-block; color: #c7ae64; font-size: 11px; margin: 12px 0 26px; }
.project-hero { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.product-identity { display: flex; align-items: center; gap: 12px; color: #d8d8df; margin: 0 0 17px; font-size: 13px; }
.product-identity img { width: 48px; height: 48px; border-radius: 12px; }
.eyebrow { color: #b59d60; font-size: 9px; letter-spacing: 1px; margin-bottom: 10px; }
.project-hero h1 { color: #f2f2f4; font-size: clamp(27px,4vw,36px); line-height: 1.65; font-weight: 500; margin: 0 0 15px; }
.project-hero .lead { font-size: 13px; line-height: 2; color: #b2b2bc; }
.project-hero .button { margin-top: 22px; }
.note-link { display: inline-flex; margin: 12px 0 0; font-size: 12px; color: #ffdb70; }
.vcard-body .project-hero .tool-visual.demo-art { max-width: 360px; justify-self: center; }
.project-content { margin-top: 34px; padding-top: 28px; border-top: 1px solid #39393c; display: grid; grid-template-columns: 1fr; gap: 30px; }
.project-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; font-size: 12px; }
.project-facts dt { color: #9b8955; font-size: 9px; margin-bottom: 7px; letter-spacing: .5px; }
.project-facts dd { color: #b5b5be; margin: 0; }
.project-story h2 { color: #ededf0; font-size: 19px; font-weight: 500; margin: 0 0 13px; }
.project-story p, .project-story ol { color: #b1b1bc; font-size: 13px; line-height: 2; margin-bottom: 24px; }
.project-story ol { padding-left: 20px; }
.project-story ol li { list-style: decimal; }
.project-story .usage-note { color: #92929c; font-size: 11px; background: #272729; padding: 14px 17px; border-left: 2px solid #8c7944; }
.project-next { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #39393c; font-size: 11px; color: #cdb573; }
.case-art { min-height: 240px; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 30px; border-radius: 16px; background: linear-gradient(135deg,#34312a,#24262a); border: 1px solid #494337; }
.case-art > span { font-size: 9px; color: #c5ac69; letter-spacing: 1px; }
.case-art strong { color: #eeeadf; font-size: 25px; line-height: 1.7; font-weight: 500; }
.case-art small { font-size: 11px; color: #a5a39e; }
.video-detail-player { width: 100%; max-height: 680px; background: #141415; border: 1px solid #3b3b3d; border-radius: 13px; margin: 24px 0; }
.video-details-copy { color: #b4b4bd; font-size: 13px; line-height: 2; }
.video-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.video-meta span { color: #d6c48b; background: #302c23; border: 1px solid #494132; border-radius: 7px; padding: 5px 10px; font-size: 11px; }
.resume-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.resume-heading h1 { color: #f1f1f3; font-size: 32px; margin-bottom: 12px; }
.resume-heading p, .resume-heading a { font-size: 13px; color: #bcbcc4; }
.resume-content > section { padding: 22px 0; border-top: 1px solid #38383b; }
.resume-content h2 { color: #eeeeef; font-size: 17px; font-weight: 500; margin-bottom: 14px; }
.resume-content h2 small { display: block; font-size: 11px; color: #b6a36c; margin-top: 6px; }
.resume-content p, .resume-content li { color: #b8b8c0; font-size: 13px; line-height: 2; }
.resume-content ul { padding-left: 18px; }
.resume-content li { list-style: disc; margin-bottom: 8px; }
.resume-content .evidence-note { color: #a89869; font-size: 11px; margin-top: 15px; }
@media (min-width: 580px) {
  .sidebar .avatar-box img { width: 115px; height: 115px; }
  .sidebar { max-height: 192px; }
  .sidebar.active { max-height: 800px; }
  .navbar-link { font-size: 13px; padding: 20px 12px; }
  .page-article .article-title { font-size: 30px; }
  .account-overview { grid-template-columns: 1fr 135px; align-items: center; }
  .service-list { grid-template-columns: 1fr 1fr; }
  .account-projects { grid-template-columns: 1fr 1fr; }
  .account-project:last-child { grid-column: 1 / -1; }
  .project-hero { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .navbar { padding: 0 12px; }
  .navbar-list { gap: 2px; padding: 0; }
  .navbar-link { font-size: 12px; padding: 21px 13px; }
  .page-article, .detail-article { padding-top: 30px; }
  .page-article .article-title { margin-bottom: 31px; max-width: 250px; }
  .detail-article { padding-top: 74px; }
}
@media (min-width: 1250px) {
  .vcard-layout { max-width: 1230px; width: calc(100% - 60px); }
  .sidebar { width: 270px; flex: 0 0 270px; max-height: none; height: auto; padding: 35px 25px; }
  .sidebar-info { gap: 23px; }
  .sidebar .avatar-box img { width: 130px; height: 130px; }
  .sidebar .site-name { text-align: center; }
  .sidebar .contact-info { max-width: calc(100% - 50px); }
  .sidebar .contact-item { gap: 12px; }
  .sidebar .contact-info :is(.contact-link,address,span) { font-size: 12px; }
  .sidebar .separator { margin: 25px 0; }
  .info_more-btn { display: none; }
  .main-content { flex: 1; width: calc(100% - 295px); min-width: 0; }
  .main-content > article { width: 100%; }
  .project-content { grid-template-columns: .75fr 1.5fr; gap: 35px; }
  .project-facts { display: block; }
  .project-facts > div { margin-bottom: 24px; }
}
@media (max-width: 579px) {
  .sidebar { max-height: 130px; }
  .navbar { padding-bottom: env(safe-area-inset-bottom,0px); }
  .navbar-link { font-size: 10px; padding: 18px 5px; }
  .page-article .article-title { font-size: 25px; }
  .video-grid, .tools-grid { grid-template-columns: 1fr; gap: 26px; }
  .video-poster { aspect-ratio: 4 / 4.6; }
  .vcard-body .tool-art.demo-art { height: 370px; }
  .tool-shortcuts { gap: 7px; }
  .tool-shortcuts a { padding: 13px 5px; font-size: 9px; }
  .tool-shortcuts img { width: 35px; height: 35px; border-radius: 8px; }
  .account-thumb { display: none; }
  .record-numbers strong { font-size: 24px; }
  .welcome-heading { font-size: 27px; }
  .project-hero h1 { font-size: 28px; }
  .vcard-footer { margin-bottom: 95px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { background: #fff; color: #111; }
  .sidebar, .navbar, .vcard-footer, .back-link, #print-resume { display: none !important; }
  .vcard-layout { display: block; margin: 0; width: 100%; max-width: none; }
  .main-content, .main-content > article { width: 100%; min-width: 0; max-width: none; margin: 0; padding: 0; border: 0; background: #fff; box-shadow: none; }
  .resume-content :is(h1,h2,p,li,a,small) { color: #222; }
  .resume-content { font-size: 10pt; }
}
