/* P01 approved homepage. Standalone styles use dh- prefixes to avoid project collisions. */
@font-face{font-family:"DH Sans";src:url("assets/fonts/NotoSansSC.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:"DH Serif";src:url("assets/fonts/NotoSerifSC.woff2") format("woff2");font-style:normal;font-weight:200 900;font-display:swap}
@font-face{font-family:"DH Brush";src:url("assets/fonts/MaShanZheng.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap}

.dh-page{margin:0;background:#290203}
.dh-app{--dh-red:#c20810;--dh-red-deep:#960008;--dh-cream:#fff9e9;--dh-gold:#ffe3a4;--dh-blue:#173d89;--dh-nav-height:86px;position:relative;width:100%;max-width:480px;min-height:100svh;margin-inline:auto;padding-bottom:calc(var(--dh-nav-height) + env(safe-area-inset-bottom,0px) + 24px);background:#a00005 url("assets/backgrounds/BG-005_page_red.png") center top/100% auto repeat-y;color:#1b1511;font-family:"DH Sans","PingFang SC","Microsoft YaHei",sans-serif;line-height:1.5;-webkit-text-size-adjust:100%;text-size-adjust:100%;isolation:isolate;overflow-wrap:anywhere}
.dh-app,.dh-app *,.dh-app *::before,.dh-app *::after{box-sizing:border-box}
.dh-app :where(h1,h2,p,ul){margin:0}
.dh-app :where(ul){list-style:none;padding:0}
.dh-app :where(img){display:block;max-width:100%;object-fit:contain}
.dh-app :where(a){color:inherit;text-decoration:none}
.dh-app :where(button){margin:0;font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}
.dh-app button,.dh-app a{touch-action:manipulation}
.dh-app button:enabled,.dh-app a{cursor:pointer}
.dh-app button:disabled{opacity:1;cursor:not-allowed;-webkit-text-fill-color:currentColor}
.dh-app [hidden]{display:none!important}
.dh-app :is(a,button,[tabindex]):focus-visible{outline:3px solid #1571e7;outline-offset:3px}
.dh-app :is(a,button,[tabindex]){scroll-margin-top:20px;scroll-margin-bottom:calc(var(--dh-nav-height) + 32px)}
.dh-skip-link{position:absolute;top:8px;left:10px;z-index:20;padding:9px 14px;border-radius:8px;background:#fff9e9;color:#89000a!important;transform:translateY(-160%)}
.dh-skip-link:focus{transform:translateY(0)}
.dh-action{appearance:none;border:0}

/* Hero content participates in normal flow. Only decorative elements are absolute. */
.dh-hero{display:flex;flex-direction:column;min-height:clamp(252px,75.8vw,364px);padding:15px 12px 8px;background:#b5000b url("assets/backgrounds/BG-001_home_hero.png") center/100% 100% no-repeat}
.dh-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.dh-brand{display:flex;align-items:center;gap:7px;min-width:0;color:#fff9ed!important}
.dh-brand-lion{flex:none;width:45px;height:45px;filter:drop-shadow(0 2px 2px #7f1609)}
.dh-brand-words{display:flex;flex-direction:column}
.dh-brand-cn{font-family:"DH Serif","Songti SC",serif;font-size:1.18rem;font-weight:700;line-height:1.2;letter-spacing:.04em}
.dh-brand-en{margin-top:3px;font-family:Georgia,"Times New Roman",serif;font-size:.6rem;font-weight:600;line-height:1.2;letter-spacing:.13em}
.dh-service{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:4px 12px 4px 9px;border:1px solid #ffdc91;border-radius:99px;background:rgba(152,0,0,.82);color:#fff8eb!important;font-size:.85rem;line-height:1.35}
.dh-service img{flex:none;width:23px;height:23px}
.dh-hero-copy{width:46%;margin-top:29px;margin-left:auto;align-self:flex-end;color:#92040b;text-align:center}
.dh-hero-copy h1{font-family:"DH Brush","STKaiti","KaiTi",serif;font-size:clamp(1.9rem,9.6vw,2.875rem);font-weight:400;line-height:1.25;letter-spacing:.01em}
.dh-hero-slogan{margin-top:7px!important;font-family:"DH Serif","Songti SC",serif;font-size:.7rem;font-weight:700;line-height:1.65;letter-spacing:.025em;color:#b10610}
.dh-hero-rule{position:relative;display:block;width:32px;height:1px;margin:9px auto 0;background:#c2070e}
.dh-hero-rule::after{position:absolute;left:14px;top:-1.5px;width:4px;height:4px;background:#bd000b;transform:rotate(45deg);content:""}
.dh-video-play{display:flex;align-items:center;justify-content:center;flex:none;align-self:center;width:44px;height:44px;margin-top:auto!important;padding:10px;border:1px solid #fff8ea;border-radius:50%;background:rgba(51,34,20,.5);box-shadow:0 1px 4px #36060055}
.dh-video-play img{width:24px;height:24px;margin-left:3px}
.dh-video-play:enabled:hover{background:rgba(51,34,20,.72)}

.dh-main{display:grid;gap:8px;padding:0 9px}
.dh-shortcut-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.dh-shortcut-list li{display:flex;min-width:0}
.dh-shortcut{display:flex;align-items:center;justify-content:flex-start;gap:5px;width:100%;min-width:0;min-height:46px;padding:5px 6px;border:1px solid #ffebc6;border-radius:9px;background:linear-gradient(135deg,#fffdf5,#f5d6a7);box-shadow:0 1px 2px #51000044;font-size:.73rem;font-weight:600;line-height:1.4;text-align:left}
.dh-shortcut img{flex:none;width:clamp(27px,8.2vw,37px);height:34px}
.dh-shortcut span{min-width:0;overflow-wrap:anywhere}

.dh-wallet{padding:7px 9px 9px;border:1px solid #ffedc9;border-radius:13px;background:#f9dfbe url("assets/backgrounds/BG-002_wallet.png") center/100% 100% no-repeat;box-shadow:0 2px 6px #4e00001a}
.dh-section-title{display:flex;align-items:center;gap:10px;color:#af0710;font-family:"DH Serif","Songti SC",serif;font-size:1.4rem;font-weight:800;line-height:1.4}
.dh-section-title img{flex:none;width:28px;height:28px}
.dh-wallet-panel{display:grid;grid-template-columns:minmax(55px,24%) minmax(0,1fr);align-items:center;gap:8px;margin-top:5px;padding:4px 4px 5px;border:1px solid #ffffffaa;border-radius:11px;background:#ffffff30}
.dh-wallet-art{width:100%;height:auto;max-height:68px}
.dh-wallet-info{min-width:0}
.dh-balance-heading{display:flex;align-items:center;flex-wrap:wrap;column-gap:3px;color:var(--dh-blue)}
.dh-balance-label{font-size:.875rem;font-weight:600;line-height:1.45}
.dh-balance-toggle{display:flex;align-items:center;justify-content:center;flex:none;width:28px;min-height:28px;padding:4px;border:0;border-radius:50%;background:transparent}
.dh-balance-toggle img{width:21px;height:18px}
.dh-balance-toggle:hover{background:#174b8614}
.dh-balance-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px}
.dh-balance{display:flex;align-items:baseline;gap:5px;flex:1 1 auto;min-width:0;color:#e80016;font-size:1.85rem;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:-.025em;overflow-wrap:anywhere}
.dh-balance>span:last-child{min-width:0;overflow-wrap:anywhere}
.dh-currency{flex:none;font-size:1.2rem;letter-spacing:0}
.dh-wallet-actions{display:flex;align-items:center;justify-content:flex-end;flex:1 1 auto;gap:4px;min-width:0}
.dh-pill{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:32px;padding:4px 12px;border:1px solid transparent;border-radius:99px;font-size:.83rem;font-weight:500;line-height:1.4;text-align:center}
.dh-pill>span:first-child{min-width:0}
.dh-pill-outline{border-color:#f01522;background:#fffcf0e8;color:#e00413!important}
.dh-pill-red{border-color:#ffddba;background:linear-gradient(#ff241b,#d00005 53%,#a00000);color:#fff9ec!important}
.dh-pill-cream{border-color:#ffe6b3;background:#fffdf1;color:#aa0009!important}
.dh-chevron{display:inline-block;flex:none;width:7px;height:7px;border-top:1.6px solid currentColor;border-right:1.6px solid currentColor;transform:rotate(45deg)}
.dh-serial{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;min-height:36px;margin:5px 3px 0;padding:3px 9px;border:1px solid #ffffffc9;border-radius:10px;background:#fffcf3bd;color:#ed0814}
.dh-serial-title{display:inline-flex;align-items:center;gap:8px;font-size:.94rem;font-weight:500}
.dh-serial-title img{flex:none;width:19px;height:19px}
.dh-serial-status{color:#9b6f94;font-size:.84rem;font-weight:500}
.dh-serial-action{display:inline-flex;align-items:center;gap:8px;min-height:28px;margin-left:auto!important;padding:0;background:none;color:#e40513!important;font-size:.88rem;line-height:1.4}

.dh-history{display:grid;grid-template-columns:minmax(0,41%) minmax(0,59%);min-height:108px;padding:7px 8px 8px;border:1px solid #f9dc9e;border-radius:12px;background:#a50208 url("assets/backgrounds/BG-003_history.png") center/100% 100% no-repeat;color:#fff9e9;box-shadow:0 2px 3px #48000226}
.dh-history-content{grid-column:2;min-width:0}
.dh-history h2{font-family:"DH Serif","Songti SC",serif;font-size:1.48rem;font-weight:700;line-height:1.22;letter-spacing:-.04em;text-shadow:0 1px 2px #96000026}
.dh-history h2 span{display:block}
.dh-history-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px;margin-top:4px}
.dh-history-bottom p{font-size:.72rem;font-weight:500;line-height:1.4;text-shadow:0 1px 2px #8c0000}
.dh-history-bottom .dh-pill{min-height:30px;margin-left:auto;font-size:.79rem;padding-inline:11px}

.dh-company{position:relative;padding:7px 15px 24px;isolation:isolate}
.dh-company::before{position:absolute;inset:0;z-index:-1;border-radius:13px 13px 0 0;background:#fff7e9 url("assets/backgrounds/BG-004_company.png") center/100% 100% no-repeat;clip-path:polygon(0 0,100% 0,100% calc(100% - 18px),73% 100%,50% calc(100% - 9px),17% 100%,0 calc(100% - 18px));content:""}
.dh-company-body{display:flex;align-items:flex-start;flex-wrap:wrap;gap:12px;margin-top:6px}
.dh-company-photo{flex:.9 1 7rem;min-width:0}
.dh-company-photo img{width:100%;height:auto;aspect-ratio:1.612/1;object-fit:cover;border-radius:9px}
.dh-company-copy{flex:1.1 1 8.5rem;min-width:0}
.dh-company-copy p{color:#2d5c7e;font-size:.825rem;font-weight:400;line-height:1.58}
.dh-company-docs{float:right;margin-top:8px!important;max-width:100%;padding-inline:12px;font-size:.8rem}
.dh-footer-slogan{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:13px!important;color:#b80811;font-family:"DH Serif","Songti SC",serif;font-size:.81rem;font-weight:700;line-height:1.5;text-align:center;letter-spacing:.07em}
.dh-footer-slogan::before,.dh-footer-slogan::after{flex:1 1 10px;max-width:24px;height:1px;background:#df9a6e;content:""}
.dh-footer-slogan span{min-width:0}

/* Fixed navigation grows with text. JS measures its actual height for page/focus clearance. */
.dh-bottom-nav{position:fixed;z-index:10;left:50%;bottom:0;width:100%;max-width:480px;transform:translateX(-50%);padding:7px 7px calc(8px + env(safe-area-inset-bottom,0px));border:1px solid #f3b947;border-bottom:0;border-radius:22px 22px 0 0;background:linear-gradient(165deg,#d10902ee 0%,#9d0000f7 47%,#670000 100%);box-shadow:0 -4px 13px #9c02082a;color:#fff5df}
.dh-bottom-nav ul{display:grid;grid-template-columns:.8fr 1.15fr 1.52fr 1fr .75fr;align-items:stretch;gap:3px}
.dh-bottom-nav li{display:flex;min-width:0}
.dh-nav-item{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;width:100%;min-width:0;min-height:54px;padding:0;border:0;border-radius:8px;background:transparent;color:#fff6e4!important;font-size:.7rem;font-weight:400;line-height:1.4;text-align:center;overflow-wrap:anywhere}
.dh-nav-icon{display:flex;align-items:center;justify-content:center;flex:none;width:100%;height:30px}
.dh-nav-icon img{width:28px;height:28px}
.dh-nav-current .dh-nav-icon{filter:drop-shadow(0 0 4px #ffdf8c88)}
.dh-nav-featured{padding-top:0}
.dh-lion-disc{position:relative;top:-26px;width:62px;height:62px;margin-bottom:-32px;border:1px solid #ffe49d;border-radius:50%;background:radial-gradient(circle at 50% 45%,#ffad37 0%,#f33708 50%,#ac0000 77%);box-shadow:0 0 12px #ffb64999}
.dh-lion-disc img{width:47px;height:47px}
.dh-nav-featured>span:last-child{position:relative}

.dh-video-dialog{width:min(440px,calc(100vw - 24px));max-height:calc(100svh - 32px);margin:auto;padding:13px;border:1px solid #e4bb76;border-radius:14px;background:#fff7e8;color:#620008;box-shadow:0 15px 60px #0008}
.dh-video-dialog::backdrop{background:#220000bf}
.dh-video-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.dh-video-dialog h2{font-family:"DH Sans",sans-serif;font-size:1rem;line-height:1.5}
.dh-video-close{display:flex;align-items:center;justify-content:center;flex:none;width:36px;min-height:36px;padding:0;border:1px solid #c9957a;border-radius:50%;background:#fff9ee;color:#a1000a;font-family:Arial,sans-serif!important;font-size:1.5rem!important}
.dh-video{display:block;width:100%;max-height:65svh;background:#1b0505;border-radius:5px}
.dh-video-error{margin-top:10px!important;font-size:.875rem;line-height:1.5}
.dh-page:has(.dh-video-dialog[open]){overflow:hidden}

@media (max-width:359px){
  .dh-hero{padding-inline:10px}
  .dh-brand-lion{width:38px;height:38px}
  .dh-brand-cn{font-size:1.08rem}
  .dh-brand-en{font-size:.54rem}
  .dh-service{gap:4px;padding-inline:8px;font-size:.75rem}
  .dh-service img{width:20px;height:20px}
  .dh-hero-copy{width:48%;margin-top:26px}
  .dh-hero-slogan{font-size:.63rem}
  .dh-main{padding-inline:7px;gap:7px}
  .dh-shortcut-list{gap:5px}
  .dh-shortcut{gap:4px;padding-inline:4px;font-size:.69rem}
  .dh-shortcut img{width:27px;height:31px}
  .dh-wallet{padding-inline:7px}
  .dh-wallet-panel{grid-template-columns:minmax(50px,22%) minmax(0,1fr);gap:6px}
  .dh-serial{column-gap:9px;padding-inline:7px}
  .dh-serial-title{gap:5px;font-size:.86rem}
  .dh-serial-status{font-size:.77rem}
  .dh-serial-action{font-size:.8rem}
  .dh-company{padding-inline:12px}
  .dh-company-body{gap:10px}
  .dh-company-copy p{font-size:.77rem}
  .dh-company-docs{padding-inline:9px;font-size:.74rem}
  .dh-footer-slogan{font-size:.73rem;letter-spacing:.045em}
  .dh-bottom-nav{padding-inline:5px}
  .dh-nav-item{font-size:.625rem}
  .dh-lion-disc{width:58px;height:58px;top:-24px;margin-bottom:-28px}
}
@media (prefers-reduced-motion:no-preference){
  .dh-app a,.dh-app button{transition:background-color .15s ease,box-shadow .15s ease}
  .dh-app a:active,.dh-app button:enabled:active{filter:brightness(.95)}
}
