:root{
  --bg:#111111;
  --phone-bg:#f3f3f3;
  --white:#ffffff;
  --text:#111111;
  --text-2:#1a1a1a;
  --text-3:#666666;
  --text-4:#999999;
  --line:#e6e6e6;
  --line-2:#f0f0f0;
  --shadow:0 24px 80px rgba(0,0,0,.18);
  --card-shadow:0 10px 30px rgba(0,0,0,.06);
  --indigo:#111111;
  --indigo-2:#2a2a2a;
  --indigo-soft:#f1f1f1;
  --emerald:#111111;
  --emerald-soft:#f1f1f1;
  --amber:#555555;
  --amber-soft:#f2f2f2;
  --gray-soft:#f7f7f7;
  --rose:#111111;
  --rose-soft:#f1f1f1;
  --radius-xl:5px;
  --radius-lg:5px;
  --radius-md:5px;
  --radius-sm:5px;
  --safe-bottom:env(safe-area-inset-bottom,0px);
}

*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;}
html,body{height:100%;}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue",Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  font-size:14px;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
button,input,select{font:inherit;}
button{border:none;background:none;cursor:pointer;}
input,select{outline:none;border:none;}
svg{display:block;}

#app{
  min-height:100vh;
  position:relative;
  overflow-x:hidden;
}

@keyframes spin{to{transform:rotate(360deg);}}

.hidden{display:none !important;}

.login-page{
  display:block;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:0;
  background:
    radial-gradient(circle at 10% 5%, rgba(255,255,255,.94) 0 5%, transparent 26%),
    linear-gradient(145deg,#efefef 0%,#fbfbfb 48%,#f2f2f2 100%);
  color:#111111;
  min-height:100vh;
}

.login-page::before{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:28%;
  z-index:-2;
  opacity:.42;
  background:
    linear-gradient(152deg,transparent 0 18%,#dfdfdf 18.2% 29%,transparent 29.2%) 0 100%/38% 100% no-repeat,
    linear-gradient(28deg,transparent 0 36%,#ebebeb 36.2% 53%,transparent 53.2%) 100% 100%/62% 100% no-repeat;
}

.login-orbit{
  position:absolute;
  z-index:-1;
  border:1px solid rgba(17,17,17,.08);
  border-radius:50%;
  pointer-events:none;
}

.login-orbit::after{
  content:"";
  position:absolute;
  width:9px;height:9px;
  border-radius:50%;
  background:#111111;
  box-shadow:0 0 0 7px rgba(17,17,17,.08);
}

.login-orbit-one{width:460px;height:460px;left:-190px;top:-220px;}
.login-orbit-one::after{right:55px;bottom:55px;}
.login-orbit-two{width:560px;height:560px;right:-290px;bottom:-300px;}
.login-orbit-two::after{left:86px;top:62px;}

.login-shell{
  width:100%;
  max-width:480px;
  height:100vh;
  margin:0 auto;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.9);
  border-radius:0;
  background:rgba(255,255,255,.72);
  box-shadow:0 22px 70px rgba(0,0,0,.08),inset 0 1px rgba(255,255,255,.9);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.login-panel{
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  position:relative;
  overflow:hidden;
  color:var(--text);
  padding:36px 28px 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(17,17,17,.08), transparent 34%),
    radial-gradient(circle at 100% 16%, rgba(0,0,0,.04), transparent 24%),
    linear-gradient(180deg, rgba(245,245,245,.98) 0%, rgba(255,255,255,.98) 34%, rgba(248,248,248,.98) 100%);
}

.login-panel::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:160px;
  background:
    linear-gradient(135deg, rgba(17,17,17,.06) 0 18%, transparent 18.2% 100%),
    linear-gradient(225deg, rgba(17,17,17,.04) 0 14%, transparent 14.2% 100%);
  pointer-events:none;
}

.login-panel-hero{
  position:relative;
  display:flex;
  justify-content:center;
  margin:-6px 0 24px;
  padding:18px 0 10px;
}

.login-panel-hero::before{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  width:168px;
  height:168px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(17,17,17,.09) 0%, rgba(17,17,17,.04) 42%, transparent 72%);
  transform:translateX(-50%);
}

.login-logo-wrap{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  width:122px;
  height:122px;
  border-radius:32px;
  background:rgba(255,255,255,.7);
  border:1px solid rgba(255,255,255,.92);
  box-shadow:0 18px 38px rgba(0,0,0,.08);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.login-logo{
  width:84px;
  height:auto;
  object-fit:contain;
  display:block;
}

.login-panel-head{
  position:relative;
  z-index:1;
  margin-bottom:25px;
  text-align:center;
}

.login-panel-kicker{font-size:11px;font-weight:700;letter-spacing:.16em;color:#555555;}

.login-panel-head h2{
  margin-top:8px;
  font-size:29px;
  line-height:1.25;
  letter-spacing:-.03em;
  color:#111111;
  font-weight:800;
}

.login-panel-head p{
  margin-top:8px;
  font-size:13px;
  color:#777777;
}

.login-mode-switch{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  padding:5px;
  background:#f1f1f1;
  border:1px solid #e6e6e6;
  border-radius:14px;
}

.login-mode-btn{
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:10px 12px;
  border-radius:10px;
  background:transparent;
  color:#777777;
  font-size:13px;
  font-weight:600;
  transition:background .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.login-mode-btn svg{width:18px;height:18px;}

.login-mode-btn.active{
  background:#fff;
  color:#111111;
  box-shadow:0 7px 18px rgba(0,0,0,.08);
}

.login-mode-panel{
  margin-top:20px;
  display:flex;
  flex-direction:column;
  gap:16px;
  animation:loginPanelIn .28s ease both;
}
@keyframes loginPanelIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}

.login-info-card{
  display:flex;align-items:center;gap:12px;
  padding:15px;
  border-radius:14px;
  background:#f7f7f7;
  border:1px solid #e6e6e6;
}

.login-info-icon{
  width:43px;height:43px;border-radius:13px;
  background:linear-gradient(145deg,#111111,#2a2a2a);
  color:#fff;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
  box-shadow:0 8px 18px rgba(0,0,0,.14);
}

.login-info-icon svg{width:22px;height:22px;}

.login-info-title{
  font-size:14px;
  font-weight:700;
  color:#111111;
}

.login-info-sub{
  margin-top:4px;
  font-size:13px;
  line-height:1.5;
  color:#777777;
}

.login-code-row{
  display:flex;
  gap:10px;
  align-items:center;
}

.login-code-row .field-input{
  flex:1;
  min-width:0;
}

.login-panel .field-block{gap:8px;}
.login-panel .block-label{font-size:12px;color:#666666;}
.login-panel .field-input{
  min-height:48px;
  border-radius:12px;
  border:1px solid #dddddd;
  background:#fafafa;
}
.login-panel .field-input:focus{border-color:#111111;background:#fff;box-shadow:0 0 0 4px rgba(17,17,17,.08);}

.code-btn{
  flex-shrink:0;
  min-height:48px;
  padding:10px 14px;
  border:1px solid #d8d8d8;
  border-radius:12px;
  background:#f3f3f3;
  color:#111111;
  font-size:13px;
  font-weight:600;
  transition:background .2s ease,border-color .2s ease;
}
.code-btn:hover{background:#ebebeb;border-color:#cfcfcf;}

.code-btn:disabled{
  opacity:.65;
  pointer-events:none;
}

.login-primary-btn{
  width:100%;
  min-height:46px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius:13px;
  color:#fff;
  font-size:13px;
  font-weight:700;
  letter-spacing:.02em;
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease;
}

.login-primary-btn.wechat{
  background:linear-gradient(135deg,#111111,#2a2a2a);
  box-shadow:0 13px 26px rgba(0,0,0,.18);
}

.login-primary-btn.sms{
  background:linear-gradient(135deg,#111111,#2a2a2a);
  box-shadow:0 13px 26px rgba(0,0,0,.18);
}
.login-primary-btn:hover{transform:translateY(-1px);filter:saturate(1.06);}
.login-primary-btn:active{transform:translateY(1px);}
.login-btn-arrow{position:absolute;right:18px;width:18px;height:18px;opacity:.78;}

.login-primary-btn .spinner{
  width:16px;height:16px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff;
  display:none;
  animation:spin .8s linear infinite;
}

.login-primary-btn.loading{
  pointer-events:none;
}

.login-primary-btn.loading .spinner{
  display:block;
}

.login-note{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  margin-top:16px;
  font-size:11px;
  color:#888888;
  text-align:center;
}
.login-note svg{width:15px;height:15px;color:#111111;flex-shrink:0;}
.login-note span{color:#555555;}
.login-note-link{
  color:#2563eb;
  text-decoration:none;
  font-weight:600;
}
.login-note-link:hover,.login-note-link:focus-visible{
  text-decoration:underline;
}

.login-mode-btn:focus-visible,.login-primary-btn:focus-visible,.code-btn:focus-visible{
  outline:3px solid rgba(17,17,17,.18);
  outline-offset:3px;
}

.device-shell{
  min-height:100vh;
  display:flex;align-items:center;justify-content:center;
  padding:24px 16px;
  position:relative;
  overflow:hidden;
}
.device-pattern{
  position:absolute;inset:0;
  background-image:radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size:20px 20px;
  pointer-events:none;
}

.phone-frame{
  width:100%;
  max-width:420px;
  height:min(850px, calc(100vh - 48px));
  background:var(--phone-bg);
  border:10px solid #020617;
  border-radius:20px;
  overflow:hidden;
  position:relative;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
}

.phone-content{
  flex:1;
  overflow:hidden;
  position:relative;
  background:var(--phone-bg);
}
.view{
  position:absolute;inset:0;
  display:flex;flex-direction:column;
  background:var(--phone-bg);
}
.view.hidden{display:none;}
.page-scroll{
  flex:1;
  overflow-y:auto;
  padding-bottom:calc(66px + var(--safe-bottom));
  -ms-overflow-style:none;
  scrollbar-width:none;
}
.page-scroll::-webkit-scrollbar{display:none;}
.page-scroll.with-submit{padding-bottom:calc(110px + var(--safe-bottom));}
.content-shell{
  max-width:420px;
  margin:0 auto;
  padding:10px;
}

.page-header{
  position:sticky;top:0;z-index:30;
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 12px;
  background:rgba(255,255,255,.98);
  border-bottom:1px solid #f1f5f9;
}
.page-title{
  font-size:14px;
  font-weight:600;
  color:#111827;
  letter-spacing:-.02em;
  flex:1;
  text-align:left;
}
.header-action{
  min-width:24px;
  min-height:24px;
  color:#9ca3af;
  display:flex;align-items:center;justify-content:center;
}
.header-action.right{justify-content:flex-end;}
.header-action.spacer{width:24px;}
.text-link{
  font-size:14px;
  color:#6b7280;
  font-weight:500;
  margin-left:12px;
}

.content-card{
  background:#fff;
  border:1px solid #f8fafc;
  border-radius:var(--radius-lg);
  padding:12px;
  box-shadow:var(--card-shadow);
}
.order-form{display:flex;flex-direction:column;gap:12px;}
.field-block{display:flex;flex-direction:column;gap:6px;}
.block-label{
  font-size:14px;
  font-weight:500;
  color:#374151;
}
.field-input{
  width:100%;
  padding:10px 12px;
  border-radius:var(--radius-sm);
  background:#f8f9fa;
  border:1px solid transparent;
  color:#1f2937;
  font-size:14px;
  transition:border-color .2s, background .2s, box-shadow .2s;
}
.field-input::placeholder{color:#9ca3af;}
.field-input:focus{
  background:#fff;
  border-color:rgba(31,186,99,.75);
  box-shadow:0 0 0 3px rgba(31,186,99,.08);
}

.select-wrap{position:relative;}
.select-wrap select{
  appearance:none;
  -webkit-appearance:none;
  padding-right:36px;
}
.select-icon{
  position:absolute;right:12px;top:50%;transform:translateY(-50%);
  color:#9ca3af;pointer-events:none;
}
.select-icon svg{width:16px;height:16px;}

.pkg-list{display:flex;flex-direction:column;gap:10px;}
.pkg-row{
  width:100%;
  text-align:left;
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 12px;
  border:1px solid #f3f4f6;
  border-radius:var(--radius-sm);
  background:#fff;
  transition:all .2s ease;
}
.pkg-row:hover{border-color:#e5e7eb;}
.pkg-row.selected{
  border-color:var(--indigo);
  background:rgba(233,249,240,.6);
  box-shadow:0 0 0 1px var(--indigo), 0 10px 20px rgba(31,186,99,.12);
}
.pkg-main{
  min-width:0;
}
.pkg-name-row{
  display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;
}
.pkg-name{
  font-size:14px;
  font-weight:600;
  color:#111827;
}
.pkg-sub{
  font-size:14px;
  color:#9ca3af;
}
.pkg-desc{
  margin-top:4px;
  font-size:14px;
  line-height:1.5;
  color:#9ca3af;
}
.pkg-price-group{
  display:flex;align-items:baseline;
  color:var(--indigo);
  flex-shrink:0;
}
.pkg-currency{
  font-size:14px;
  font-weight:600;
}
.pkg-price{
  font-size:18px;
  line-height:1;
  font-weight:700;
  margin-left:2px;
}
.pkg-unit{
  font-size:14px;
  color:#9ca3af;
  margin-left:2px;
}

.renew-row{
  display:flex;align-items:center;justify-content:space-between;
  padding-top:2px;
}
.renew-title{
  font-size:14px;
  font-weight:500;
  color:#1f2937;
}
.renew-sub{
  margin-top:2px;
  font-size:14px;
  color:#9ca3af;
}
.switch{position:relative;width:48px;height:28px;flex-shrink:0;}
.switch input{opacity:0;width:0;height:0;}
.slider{
  position:absolute;inset:0;border-radius:999px;background:#e5e7eb;transition:.2s;
}
.slider:before{
  content:"";position:absolute;left:2px;top:2px;width:24px;height:24px;border-radius:50%;
  background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.18);transition:.2s;
}
.switch input:checked + .slider{background:var(--indigo);}
.switch input:checked + .slider:before{transform:translateX(20px);}

.submit-panel{
  position:absolute;left:0;right:0;bottom:50px;z-index:35;
  padding:8px 10px 0;
  background:linear-gradient(to top, rgba(248,250,252,.95) 65%, rgba(248,250,252,0));
}
.submit-panel.hidden{display:none;}
.submit-btn{
  width:100%;
  padding:10px 12px;
  border-radius:var(--radius-sm);
  background:linear-gradient(135deg,var(--indigo),var(--indigo-2));
  color:#fff;
  font-size:14px;
  font-weight:500;
  box-shadow:0 14px 32px rgba(31,186,99,.26);
}
.submit-btn:disabled{opacity:.6;pointer-events:none;}

.bottom-nav{
  position:absolute;left:0;right:0;bottom:0;z-index:40;
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:0;
  height:50px;
  padding:4px 12px calc(4px + var(--safe-bottom));
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(18px);
  border-top:1px solid #f3f4f6;
  box-shadow:0 -10px 30px rgba(15,23,42,.08);
}
.bottom-tab{
  position:relative;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:1px;
  color:#9ca3af;
  padding:0;
  transition:transform .2s ease,color .2s ease;
}
.bottom-tab.active{
  color:var(--indigo);
  transform:none;
}
.bottom-tab-icon{
  width:16px;height:16px;
}
.bottom-tab span{
  font-size:12px;
  font-weight:500;
  letter-spacing:.02em;
}
.nav-badge{
  position:absolute;top:-1px;right:18px;
  width:16px;height:16px;border-radius:50%;
  background:var(--rose);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:9px;font-weight:800;
}
.nav-badge.hidden{display:none;}

.orders-filters{
  position:sticky;top:53px;z-index:25;
  display:flex;justify-content:space-around;
  padding:0 8px;
  background:#fff;
  border-bottom:1px solid #f1f5f9;
}
.filter-tab{
  position:relative;
  padding:10px 12px;
  font-size:14px;
  font-weight:500;
  color:#9ca3af;
  transition:color .2s;
}
.filter-tab.active{
  color:var(--indigo);
  font-weight:600;
}
.filter-tab.active::after{
  content:"";position:absolute;left:33%;right:33%;bottom:0;height:2px;border-radius:999px;background:var(--indigo);
}

.search-bar{
  position:relative;
  margin-bottom:10px;
}
.search-bar input{
  width:100%;
  padding:10px 12px 10px 34px;
  background:#fff;
  border:1px solid #f3f4f6;
  border-radius:var(--radius-sm);
  font-size:14px;
  color:#1f2937;
  box-shadow:var(--card-shadow);
}
.search-bar input::placeholder{color:#9ca3af;}
.search-bar input:focus{border-color:rgba(31,186,99,.75);}
.search-icon{
  position:absolute;left:12px;top:50%;transform:translateY(-50%);
  width:14px;height:14px;color:#9ca3af;
}

.empty-card{
  background:#fff;
  border:1px solid #f8fafc;
  border-radius:var(--radius-lg);
  padding:18px 14px;
  text-align:center;
  box-shadow:var(--card-shadow);
}
.empty-icon{
  width:48px;height:48px;margin:0 auto 14px;
  border-radius:50%;background:#f8fafc;color:#9ca3af;
  display:flex;align-items:center;justify-content:center;
}
.empty-icon svg{width:24px;height:24px;}
.empty-title{
  font-size:14px;font-weight:600;color:#1f2937;
}
.empty-sub{
  margin-top:4px;font-size:14px;color:#9ca3af;line-height:1.5;
}
.empty-btn{
  margin-top:12px;
  padding:8px 12px;
  border-radius:var(--radius-sm);
  background:var(--indigo);
  color:#fff;
  font-size:14px;
  font-weight:500;
}

.order-card{
  background:#fff;
  border:1px solid #f8fafc;
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--card-shadow);
  margin-bottom:10px;
}
.order-card-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 12px;
  background:rgba(248,250,252,.7);
  border-bottom:1px solid #f1f5f9;
  gap:8px;
}
.order-no{
  font-size:12px;
  color:#9ca3af;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  line-height:1.2;
}
.order-status{
  font-size:12px;font-weight:500;
  padding:4px 8px;border-radius:var(--radius-sm);border:1px solid transparent;
  line-height:1.2;
  white-space:nowrap;
  flex-shrink:0;
}
.status-done{background:#f1f1f1;color:#111111;border-color:#dddddd;}
.status-processing{background:#f4f4f4;color:#333333;border-color:#dddddd;}
.status-pending{background:#fafafa;color:#555555;border-color:#e3e3e3;}
.status-cancelled{background:#f3f3f3;color:#777777;border-color:#e5e5e5;}

.order-card-body{
  padding:12px;
}
.order-topline{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
}
.order-topline > div:first-child{
  min-width:0;
  flex:1;
}
.order-name{
  font-size:14px;
  font-weight:600;
  color:#111827;
}
.order-sub{
  display:inline-block;
  margin-left:8px;
  padding:2px 7px;
  border-radius:var(--radius-sm);
  background:#f1f5f9;
  color:#94a3b8;
  font-size:14px;
  font-weight:500;
}
.order-meta{
  margin-top:6px;
  font-size:12px;
  color:#9ca3af;
  line-height:1.55;
}
.order-price-tip{
  text-align:right;
  white-space:nowrap;
  flex-shrink:0;
}
.order-price-tip span:first-child{
  font-size:14px;color:#9ca3af;
}
.order-price-tip strong{
  margin-left:4px;
  font-size:14px;
  color:#1f2937;
}
.order-info-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 12px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid #f1f5f9;
}
.order-info-item{
  font-size:14px;
  color:#6b7280;
}
.order-info-item span{
  color:#9ca3af;
}
.order-info-item strong{
  color:#1f2937;
  font-weight:700;
}
.order-renew-on{color:var(--indigo);}
.order-time{
  margin-top:10px;
  font-size:14px;
  color:#9ca3af;
}
.order-inline-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.order-card-foot{
  display:flex;justify-content:flex-end;gap:8px;align-items:center;
  padding:10px 12px;
  background:rgba(248,250,252,.35);
  border-top:1px solid #f1f5f9;
  flex-wrap:wrap;
}
.order-foot-tip{
  font-size:14px;font-weight:500;color:#555555;
}
.outline-danger-btn,
.ghost-btn,
.solid-danger-btn{
  font-size:14px;font-weight:500;border-radius:var(--radius-sm);padding:7px 10px;
}
.outline-danger-btn{
  color:var(--rose);
  border:1px solid #dcdcdc;
  background:#fff;
}
.ghost-btn{
  background:#f1f5f9;
  color:#64748b;
}
.detail-btn{
  background:#111111;
  color:#ffffff;
}
.solid-danger-btn{
  background:var(--rose);
  color:#fff;
}
.delete-btn{
  display:inline-flex;align-items:center;gap:6px;
  color:#9ca3af;
  padding:7px 10px;border-radius:var(--radius-sm);
}
.delete-btn svg{width:14px;height:14px;}
.confirm-row{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
}
.confirm-row span{
  font-size:14px;font-weight:500;color:var(--rose);
}
.detail-modal{
  position:fixed;
  inset:0;
  z-index:40;
}
.detail-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.52);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
.detail-modal-panel{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  max-height:min(82vh,780px);
  overflow:hidden;
  background:linear-gradient(180deg,#ffffff 0%,#fbfbfb 100%);
  border-radius:22px 22px 0 0;
  box-shadow:0 -18px 40px rgba(0,0,0,.22);
}
.detail-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:18px 18px 14px;
  border-bottom:1px solid #efefef;
}
.detail-modal-kicker{
  font-size:11px;
  letter-spacing:.18em;
  color:#8a8a8a;
}
.detail-modal-head h3{
  margin-top:6px;
  font-size:22px;
  color:#111111;
  line-height:1.2;
}
.detail-modal-close{
  width:36px;
  height:36px;
  border-radius:50%;
  background:#f3f3f3;
  color:#111111;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.detail-modal-close svg{
  width:18px;
  height:18px;
}
.detail-modal-body{
  padding:16px 18px calc(18px + var(--safe-bottom));
  max-height:calc(min(82vh,780px) - 78px);
  overflow:auto;
}
.detail-modal-body::-webkit-scrollbar{display:none;}
.detail-summary-card{
  padding:14px;
  border:1px solid #ececec;
  background:linear-gradient(135deg,#111111 0%,#262626 100%);
  color:#ffffff;
  border-radius:18px;
}
.detail-summary-top{
  display:flex;
  justify-content:space-between;
  gap:14px;
}
.detail-summary-title{
  font-size:18px;
  font-weight:700;
  line-height:1.35;
}
.detail-summary-sub{
  margin-top:6px;
  font-size:12px;
  color:rgba(255,255,255,.72);
  line-height:1.5;
}
.detail-summary-price{
  text-align:right;
  white-space:nowrap;
}
.detail-summary-price span{
  display:block;
  font-size:12px;
  color:rgba(255,255,255,.68);
}
.detail-summary-price strong{
  display:block;
  margin-top:6px;
  font-size:24px;
  line-height:1;
}
.detail-summary-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.detail-summary-tags span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.1);
  font-size:12px;
}
.detail-section{
  margin-top:14px;
  border:1px solid #ededed;
  border-radius:18px;
  background:#ffffff;
  overflow:hidden;
}
.detail-section-head{
  padding:12px 14px;
  background:#f7f7f7;
  border-bottom:1px solid #efefef;
}
.detail-section-head h4{
  font-size:13px;
  letter-spacing:.06em;
  color:#444444;
}
.detail-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
}
.detail-item{
  padding:14px;
  border-right:1px solid #f1f1f1;
  border-bottom:1px solid #f1f1f1;
  min-width:0;
}
.detail-item:nth-child(2n){
  border-right:none;
}
.detail-item.full{
  grid-column:1 / -1;
}
.detail-label{
  display:block;
  font-size:12px;
  color:#8b8b8b;
  margin-bottom:6px;
}
.detail-value{
  display:block;
  font-size:14px;
  color:#111111;
  line-height:1.6;
  word-break:break-all;
}

.profile-hero{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,#111111 0%, #1d1d1d 46%, #2a2a2a 100%);
  color:#fff;
  padding:16px 12px 12px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.profile-glow{
  position:absolute;border-radius:50%;filter:blur(56px);pointer-events:none;
}
.glow-right{
  width:176px;height:176px;top:-48px;right:-6px;background:rgba(255,255,255,.08);
}
.glow-left{
  width:144px;height:144px;left:-10px;bottom:-56px;background:rgba(255,255,255,.05);
}
.profile-hero-content{
  position:relative;
  display:flex;flex-direction:column;align-items:center;text-align:center;
}
.profile-avatar-wrap{
  position:relative;
  width:64px;height:64px;
}
.profile-avatar-ring{
  position:absolute;inset:0;border-radius:50%;
  background:linear-gradient(135deg,rgba(255,255,255,.18),rgba(255,255,255,.06));
  filter:blur(8px);
  opacity:.65;
}
.profile-avatar{
  position:relative;
  z-index:2;
  width:64px;height:64px;
  border-radius:50%;
  padding:3px;
  background:rgba(255,255,255,.08);
  border:2px solid rgba(255,255,255,.18);
  display:flex;align-items:center;justify-content:center;
}
.profile-avatar svg{
  width:28px;height:28px;color:#fff;
}
.profile-avatar::before{
  content:"";
  width:100%;height:100%;border-radius:50%;
  background:linear-gradient(180deg,#222222,#111111);
  position:absolute;inset:0;
}
.profile-avatar svg{position:relative;z-index:1;}
.profile-online-dot{
  position:absolute;right:2px;bottom:2px;z-index:3;
  width:14px;height:14px;border-radius:50%;
  background:#ffffff;border:2px solid #111111;
}
.profile-name-row{
  margin-top:8px;
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center;
}
.profile-name-row h2{
  font-size:14px;font-weight:600;letter-spacing:-.02em;
}
.profile-badge{
  display:inline-flex;align-items:center;gap:4px;
  padding:3px 8px;border-radius:999px;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.16);
  color:#ffffff;
  font-size:14px;font-weight:500;
}
.profile-badge svg{width:12px;height:12px;color:#ffffff;}
.profile-subtitle{
  margin-top:4px;
  font-size:14px;
  font-weight:500;
  color:#ffffff;
  letter-spacing:0;
}
.profile-base-grid{
  width:100%;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.12);
}
.profile-base-card{
  text-align:left;
  padding:8px 10px;
  border-radius:var(--radius-sm);
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.12);
}
.profile-base-label{
  display:flex;align-items:center;gap:6px;
  font-size:14px;font-weight:500;color:#f3f3f3;
}
.profile-base-label svg{width:14px;height:14px;color:#ffffff;}
.profile-base-card p{
  margin-top:4px;
  font-size:14px;
  font-weight:600;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  line-height:1.3;
  word-break:break-all;
}
.profile-content-shell{
  padding-top:10px;
  padding-bottom:70px;
}
.profile-card{
  background:#fff;
  border:1px solid #f3f4f6;
  border-radius:var(--radius-lg);
  padding:12px;
  box-shadow:var(--card-shadow);
}
.profile-card-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding-bottom:10px;
  border-bottom:1px solid #f8fafc;
}
.profile-card-title-group{
  display:flex;align-items:center;gap:10px;
}
.profile-card-icon{
  width:24px;height:24px;border-radius:var(--radius-sm);
  background:var(--indigo-soft);color:var(--indigo);
  display:flex;align-items:center;justify-content:center;
}
.profile-card-icon svg{width:14px;height:14px;}
.profile-card-title{
  font-size:14px;font-weight:600;color:#111827;
}
.profile-more-btn{
  display:inline-flex;align-items:center;gap:4px;
  font-size:14px;font-weight:500;color:var(--indigo);
}
.profile-more-btn svg{width:14px;height:14px;}
.profile-stats-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;
  margin-top:10px;
}
.profile-stat-card{
  text-align:center;
  background:#f9fafb;
  border:1px solid #f3f4f6;
  border-radius:var(--radius-sm);
  padding:10px 8px;
}
.profile-stat-label{
  display:block;
  font-size:14px;color:#6b7280;
}
.profile-stat-card strong{
  display:inline-block;
  margin-top:4px;
  font-size:18px;
  font-weight:700;
}
.profile-stat-card:first-child strong{color:var(--indigo);}
.profile-stat-card:last-child strong{color:#0f172a;}
.profile-stat-card em{
  margin-left:4px;
  font-style:normal;
  font-size:14px;
  color:#9ca3af;
  font-weight:500;
}
.profile-order-list{
  margin-top:10px;
}
.profile-order-label{
  display:block;
  font-size:11px;
  font-weight:600;
  color:#9ca3af;
  letter-spacing:0;
}
.profile-order-item{
  margin-top:8px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px;
  border-radius:var(--radius-sm);
  background:rgba(249,250,251,.68);
  border:1px solid #f3f4f6;
}
.profile-order-left{
  display:flex;align-items:center;gap:10px;min-width:0;
}
.profile-order-dot{
  width:10px;height:10px;border-radius:50%;background:var(--indigo);
  box-shadow:0 0 0 6px rgba(17,17,17,.08);
  flex-shrink:0;
}
.profile-order-name{
  font-size:14px;font-weight:600;color:#111827;
}
.profile-order-sub{
  margin-top:2px;
  font-size:14px;color:#6b7280;
}
.profile-order-price{
  text-align:right;
}
.profile-order-price strong{
  font-size:14px;font-weight:600;color:#111827;
}
.profile-order-price span{
  display:inline-block;
  margin-top:4px;
  padding:2px 7px;
  border-radius:var(--radius-sm);
  font-size:14px;font-weight:500;
  color:#111111;background:#efefef;
}
.profile-empty{
  margin-top:10px;
  text-align:center;
  font-size:14px;
  color:#9ca3af;
  padding:8px 0;
}
.profile-logout-btn{
  width:100%;
  justify-content:center;
  margin-top:4px;
}
.profile-footnote{
  text-align:center;
  padding:16px 8px 0;
}
.profile-footnote p:first-child{
  font-size:14px;font-weight:500;color:#9ca3af;letter-spacing:0;
}
.profile-footnote p:last-child{
  margin-top:4px;
  font-size:14px;color:#d1d5db;
}

.toast{
  position:fixed;top:72px;left:50%;transform:translateX(-50%);
  z-index:140;
  min-width:180px;max-width:min(88vw,360px);
  padding:14px 16px;border-radius:16px;
  background:rgba(17,17,17,.92);color:#fff;
  text-align:center;font-size:13px;font-weight:700;
  opacity:0;pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
}
.toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}
.toast.success{
  background:#111111;
  color:#ffffff;
  border:1px solid #2d2d2d;
}
.toast.error{
  background:#f3f3f3;
  color:#111111;
  border:1px solid #dddddd;
}

.home-indicator{display:none;}

@media (max-width:800px){
  .login-page{overflow-x:hidden;overflow-y:auto;}
  .login-shell{max-width:480px;border-radius:0;}
  .login-panel{padding:36px 28px 26px;}
}

@media (max-width:520px){
  .login-panel{padding:max(28px,env(safe-area-inset-top)) 22px max(24px,env(safe-area-inset-bottom));}
  .login-panel::before{height:138px;}
  .login-panel-hero{margin:-2px 0 20px;padding-top:12px;}
  .login-logo-wrap{width:110px;height:110px;border-radius:28px;}
  .login-logo{width:76px;}
  .login-panel-head{margin-bottom:20px;}
  .login-panel-head h2{font-size:25px;}
  .login-mode-panel{margin-top:16px;gap:13px;}
  .login-note{margin-top:13px;font-size:10px;}
  .device-shell{padding:0;}
  .phone-frame{
    max-width:none;
    width:100%;
    height:100vh;
    border:none;
    border-radius:0;
    box-shadow:none;
  }
  .home-indicator{display:none;}
}

@media (max-width:360px){
  .login-page{padding:0;}
  .login-shell{border:none;border-radius:0;}
  .login-panel{padding:24px 19px;}
  .login-panel-hero{margin:0 0 18px;padding-top:8px;}
  .login-logo-wrap{width:96px;height:96px;border-radius:24px;}
  .login-logo{width:66px;}
  .login-mode-btn{padding:9px 7px;font-size:12px;}
  .login-info-card{padding:12px;}
  .login-code-row{gap:7px;}
  .code-btn{padding:9px 10px;font-size:12px;}
  .content-shell{padding:8px;}
  .content-card,.profile-card,.empty-card,.order-card{border-radius:var(--radius-lg);}
  .pkg-row{padding:10px;}
  .pkg-name-row{gap:6px;}
  .profile-name-row{gap:6px;}
  .detail-modal-head{padding:16px 14px 12px;}
  .detail-modal-body{padding:14px 14px calc(18px + var(--safe-bottom));}
  .detail-summary-top,
  .order-topline{flex-direction:column;}
  .detail-summary-price,
  .order-price-tip{text-align:left;}
  .detail-grid,
  .order-info-grid{grid-template-columns:1fr;}
  .detail-item{border-right:none;}
}

@media (max-height:680px){
  .login-panel{padding-top:23px;padding-bottom:20px;}
  .login-panel-hero{margin:0 0 18px;padding-top:8px;}
  .login-logo-wrap{width:96px;height:96px;}
  .login-logo{width:66px;}
}

@media (prefers-reduced-motion:reduce){
  .login-mode-panel{animation:none;}
  .login-mode-btn,.login-primary-btn{transition:none;}
}
