:root {
  color-scheme: light;
  --page: #f4f6f8;
  --surface: rgba(255, 255, 255, .86);
  --surface-solid: #fff;
  --text: #181d24;
  --muted: #717b88;
  --line: rgba(22, 30, 42, .1);
  --teal: #24cdbb;
  --teal-deep: #119f93;
  --purple: #7569e9;
  --pink: #ef629d;
  --night: #10151e;
  --night-2: #171724;
  --night-line: rgba(255, 255, 255, .09);
  --shadow: 0 24px 70px rgba(25, 35, 48, .1);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(36, 205, 187, .3); outline-offset: 3px; }
[hidden] { display: none !important; }

.page-glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.page-glow i { position: absolute; border-radius: 50%; filter: blur(15px); opacity: .5; }
.page-glow i:nth-child(1) { width: 520px; height: 520px; left: -220px; top: 190px; background: rgba(36, 205, 187, .14); }
.page-glow i:nth-child(2) { width: 480px; height: 480px; right: -190px; top: 30px; background: rgba(117, 105, 233, .12); }
.page-glow i:nth-child(3) { width: 360px; height: 360px; right: 20%; bottom: -240px; background: rgba(239, 98, 157, .08); }

.service-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px max(24px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(247, 249, 250, .84);
  backdrop-filter: blur(20px);
}
.service-brand { min-width: 0; display: flex; align-items: center; gap: 11px; justify-self: start; }
.service-brand > span { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; box-shadow: 0 9px 25px rgba(36, 205, 187, .22); }
.service-brand img { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
.service-brand div { min-width: 0; display: flex; flex-direction: column; line-height: 1; }
.service-brand strong { overflow: hidden; font-size: 14px; letter-spacing: .5px; white-space: nowrap; text-overflow: ellipsis; }
.service-brand small { margin-top: 7px; color: #939ba5; font-size: 7px; font-weight: 750; letter-spacing: 1.6px; }
.service-header nav { display: flex; align-items: center; gap: 7px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .65); }
.service-header nav a { padding: 9px 13px; border-radius: 10px; color: #6f7883; font-size: 11px; transition: .2s; }
.service-header nav a:hover { color: var(--text); background: rgba(255,255,255,.8); }
.service-header nav a.active { background: var(--night); color: #fff; box-shadow: 0 7px 18px rgba(20, 27, 37, .15); }
.service-actions { display: flex; align-items: center; justify-self: end; gap: 9px; }
.service-actions button { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-solid); cursor: pointer; }
.service-actions > a { height: 39px; display: flex; align-items: center; gap: 18px; padding: 0 15px; border-radius: 12px; background: var(--teal); color: #103b37; font-size: 10px; font-weight: 750; transition: transform .2s, box-shadow .2s; }
.service-actions > a:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(36,205,187,.24); }

.service-main { width: min(calc(100% - 40px), 1320px); margin: 0 auto; padding: 20px 0 64px; }
.service-breadcrumb { display: flex; align-items: center; gap: 9px; margin: 0 2px 14px; color: #929aa4; font-size: 9px; }
.service-breadcrumb a:hover { color: var(--teal-deep); }
.service-breadcrumb strong { color: #636d78; font-weight: 650; }

.apple-service {
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, .73fr) minmax(510px, 1.27fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 24%, rgba(19, 185, 166, .18), transparent 31%),
    radial-gradient(circle at 88% 6%, rgba(113, 89, 218, .13), transparent 27%),
    linear-gradient(135deg, #10171e, #12141d 58%, #151522);
  color: #eef1f4;
  box-shadow: 0 32px 100px rgba(16, 22, 31, .22);
}
.apple-service::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(120deg, #000, transparent 80%); }
.apple-intro, .account-directory { position: relative; z-index: 1; min-width: 0; }
.apple-intro { display: flex; flex-direction: column; padding: 42px 38px 36px; border-right: 1px solid var(--night-line); }
.rocket-mark { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid rgba(93, 232, 216, .2); border-radius: 19px; background: linear-gradient(145deg, rgba(46, 209, 190, .13), rgba(117, 105, 233, .12)); box-shadow: inset 0 0 20px rgba(70,222,205,.05), 0 13px 35px rgba(0,0,0,.15); }
.rocket-mark svg { width: 42px; height: 42px; }
.intro-kicker { color: #77828c; font-size: 8px; font-weight: 850; letter-spacing: 2.6px; }
.apple-intro h1 { margin: 9px 0 9px; background: linear-gradient(100deg, #ff6576, #ff934f 66%, #ffbc65); background-clip: text; -webkit-background-clip: text; color: transparent; font-size: clamp(28px, 2.4vw, 36px); line-height: 1.14; letter-spacing: -1.2px; }
.apple-intro > p:not(.safety-note) { margin: 0; color: #89949e; font-size: 10px; line-height: 1.7; }
.live-state { width: max-content; max-width: 100%; display: flex; align-items: center; gap: 8px; margin: 20px 0; padding: 8px 12px; border: 1px solid rgba(50, 218, 198, .18); border-radius: 18px; background: rgba(36, 205, 187, .07); color: #93aea9; font-size: 8px; }
.live-state i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #35dcc6; box-shadow: 0 0 13px rgba(53,220,198,.8); animation: pulse 1.7s ease-in-out infinite; }
.live-state.degraded { border-color: rgba(246, 187, 91, .2); color: #c2aa83; }
.live-state.degraded i { background: #e8ad54; box-shadow: 0 0 12px rgba(232,173,84,.55); }
@keyframes pulse { 50% { opacity: .45; transform: scale(.78); } }

.safety-note { display: flex; align-items: flex-start; gap: 9px; margin: 15px 1px 0; color: #747e87; font-size: 8px; line-height: 1.65; }
.safety-note > span:first-child { width: 19px; height: 19px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(239,181,85,.38); border-radius: 50%; color: #eeb95e; }
.safety-note strong { display: block; color: #b5bbc1; }

.account-directory { padding: 39px 38px 34px; }
.directory-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.directory-heading > div > span { display: block; margin-bottom: 5px; color: #747d88; font-size: 8px; font-weight: 850; letter-spacing: 2.2px; }
.directory-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.8px; }
.directory-heading button { height: 34px; padding: 0 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.045); color: #a6afb8; cursor: pointer; font-size: 8px; transition: .18s; }
.directory-heading button:hover { border-color: rgba(36,205,187,.34); color: #5bdfd0; }
.directory-heading button:disabled { cursor: wait; opacity: .5; }
.source-summary { margin: 17px 0 10px; overflow: hidden; padding: 8px 12px; border: 1px solid rgba(117,105,233,.2); border-radius: 18px; background: rgba(117,105,233,.09); color: #ada5ec; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.account-overview { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; border: 1px solid var(--night-line); border-bottom: 0; border-radius: 15px 15px 0 0; background: rgba(5, 9, 14, .34); color: #87919a; font-size: 8px; }
.account-overview strong { color: #fff; font-size: 16px; }
.account-overview small { color: #68737d; font-size: 7px; }
.account-panel { min-height: 252px; overflow: hidden; border: 1px solid var(--night-line); border-radius: 0 0 15px 15px; background: rgba(4, 8, 13, .28); }
.loading-state, .empty-state { min-height: 250px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: #74808a; font-size: 9px; text-align: center; }
.loading-state i { width: 20px; height: 20px; border: 2px solid rgba(36,205,187,.15); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state strong { color: #cbd0d5; font-size: 12px; }
.empty-state span { color: #78838d; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px; }
.account-grid:not(.expanded) .account-card.is-overflow { display: none; }
.account-card { min-width: 0; padding: 13px; border: 1px solid rgba(139,130,181,.17); border-radius: 14px; background: linear-gradient(145deg, rgba(36,35,50,.94), rgba(28,32,43,.91)); transition: transform .2s, border-color .2s; }
.account-card:hover { border-color: rgba(74,220,201,.3); transform: translateY(-2px); }
.account-head { display: flex; align-items: center; gap: 8px; }
.account-head strong { min-width: 0; flex: 1; overflow: hidden; color: #f2f3f6; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.account-head > span { max-width: 82px; overflow: hidden; padding: 4px 7px; border-radius: 7px; background: rgba(224,74,139,.12); color: #e89aba; font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }
.account-meta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; margin: 9px 0 12px; color: #727c86; font-size: 7px; }
.account-status { display: inline-flex; align-items: center; gap: 5px; color: #a2a9af; white-space: nowrap; }
.account-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #31cfaa; box-shadow: 0 0 8px rgba(49,207,170,.65); }
.account-meta em { overflow: hidden; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.account-meta time { white-space: nowrap; }
.account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.account-actions button { min-width: 0; height: 34px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 7px; border: 1px solid rgba(255,255,255,.075); border-radius: 9px; background: rgba(255,255,255,.055); color: #bcc1c7; cursor: pointer; font-size: 8px; font-weight: 650; transition: .18s; }
.account-actions button:hover { border-color: rgba(36,205,187,.45); background: rgba(36,205,187,.1); color: #70e4d7; }
.account-actions button:disabled { cursor: wait; opacity: .5; }
.account-actions svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.expand-button { width: 100%; height: 38px; margin-top: 10px; border: 1px solid var(--night-line); border-radius: 10px; background: rgba(255,255,255,.035); color: #9099a2; cursor: pointer; font-size: 8px; }
.expand-button:hover { border-color: rgba(117,105,233,.34); color: #b9b1ee; }
.expand-button span { margin-left: 5px; color: #8b7de3; }

.visual-guide-section { margin-top: 18px; padding: 27px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.guide-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.guide-heading > div > span { color: var(--teal-deep); font-size: 8px; font-weight: 850; letter-spacing: 2px; }
.guide-heading h2 { margin: 6px 0 0; color: var(--text); font-size: 24px; letter-spacing: -.7px; }
.guide-heading p { margin: 0; color: #8a939d; font-size: 9px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.guide-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #f8f9fb; box-shadow: 0 12px 35px rgba(26,35,45,.06); transition: transform .2s, border-color .2s, box-shadow .2s; }
.guide-card:hover { border-color: rgba(36,205,187,.38); box-shadow: 0 17px 42px rgba(26,35,45,.1); transform: translateY(-2px); }
.guide-card-title { min-height: 58px; display: flex; justify-content: center; flex-direction: column; padding: 0 17px; border-bottom: 1px solid var(--line); background: var(--surface); }
.guide-card-title b { color: var(--text); font-size: 12px; }
.guide-card-title small { margin-top: 5px; color: #8c959e; font-size: 8px; }
.guide-card img { width: 100%; height: auto; display: block; background: #fff; }

.download-return { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 18px; padding: 24px 27px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.download-return > div > span { color: var(--teal-deep); font-size: 8px; font-weight: 800; letter-spacing: 1.5px; }
.download-return h2 { margin: 6px 0 5px; font-size: 19px; letter-spacing: -.5px; }
.download-return p { margin: 0; color: #808995; font-size: 9px; }
.download-return > a { height: 42px; display: flex; align-items: center; gap: 25px; flex: 0 0 auto; padding: 0 17px; border-radius: 12px; background: var(--night); color: #fff; font-size: 9px; font-weight: 700; }
.download-return > a span { color: var(--teal); }
footer { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 max(24px, calc((100vw - 1320px) / 2)); border-top: 1px solid var(--line); color: #9199a3; font-size: 8px; }
footer b { color: #68717b; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: 30px; padding: 10px 16px; border-radius: 10px; background: #222731; color: #fff; box-shadow: 0 13px 35px rgba(0,0,0,.25); font-size: 10px; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: .22s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.dark { color-scheme: dark; --page: #0f1217; --surface: rgba(25, 29, 35, .9); --surface-solid: #1b2026; --text: #eef1f4; --muted: #929ba5; --line: rgba(255,255,255,.09); --shadow: 0 24px 70px rgba(0,0,0,.2); }
.dark .service-header { background: rgba(16,19,24,.86); }
.dark .service-header nav { background: rgba(255,255,255,.035); }
.dark .service-header nav a:hover { background: rgba(255,255,255,.06); }
.dark .service-header nav a.active { background: var(--teal); color: #0c302d; }
.dark .service-breadcrumb strong, .dark .download-return p, .dark footer b { color: #9ba4ae; }
.dark .download-return > a { background: var(--teal); color: #0b302c; }
.dark .download-return > a span { color: #0b302c; }
.dark .guide-card { border-color: rgba(255,255,255,.1); background: #fff; }

@media (max-width: 980px) {
  .service-header { grid-template-columns: 1fr auto; }
  .service-header nav { display: none; }
  .apple-service { grid-template-columns: 1fr; }
  .apple-intro { border-right: 0; border-bottom: 1px solid var(--night-line); }
}

@media (max-width: 620px) {
  .service-header { min-height: 62px; gap: 10px; padding: 8px 12px; }
  .service-brand { gap: 8px; }
  .service-brand > span { width: 38px; height: 38px; border-radius: 12px; }
  .service-brand strong { max-width: 140px; font-size: 12px; }
  .service-brand small { margin-top: 5px; font-size: 6px; }
  .service-actions { gap: 7px; }
  .service-actions button { width: 38px; height: 38px; }
  .service-actions > a { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .service-actions > a { font-size: 0; }
  .service-actions > a span { font-size: 18px; }
  .service-main { width: calc(100% - 20px); padding: 11px 0 38px; }
  .service-breadcrumb { margin-bottom: 9px; }
  .apple-service { border-radius: 20px; }
  .apple-intro { padding: 24px 18px 20px; }
  .rocket-mark { width: 50px; height: 50px; margin-bottom: 16px; border-radius: 15px; }
  .rocket-mark svg { width: 34px; height: 34px; }
  .intro-kicker { font-size: 7px; letter-spacing: 2px; }
  .apple-intro h1 { margin-top: 7px; font-size: 27px; letter-spacing: -.8px; }
  .apple-intro > p:not(.safety-note) { font-size: 9px; }
  .live-state { margin: 15px 0; }
  .safety-note { margin-top: 12px; }
  .account-directory { padding: 23px 14px 20px; }
  .directory-heading h2 { font-size: 22px; }
  .source-summary { margin-top: 14px; }
  .account-overview { flex-wrap: wrap; padding: 8px 11px; }
  .account-overview small { flex: 0 0 100%; }
  .account-panel { min-height: 210px; }
  .loading-state, .empty-state { min-height: 208px; }
  .account-grid { grid-template-columns: 1fr; padding: 9px; }
  .account-card { padding: 13px 12px; }
  .account-grid:not(.expanded) .account-card:nth-child(n+5) { display: none; }
  .visual-guide-section { padding: 16px 13px; border-radius: 18px; }
  .guide-heading { align-items: flex-start; flex-direction: column; gap: 7px; margin-bottom: 14px; }
  .guide-heading h2 { font-size: 21px; }
  .guide-heading p { line-height: 1.5; }
  .guide-grid { grid-template-columns: 1fr; gap: 14px; }
  .guide-card { border-radius: 14px; }
  .guide-card-title { min-height: 54px; padding: 0 14px; }
  .download-return { align-items: stretch; flex-direction: column; gap: 17px; padding: 20px; border-radius: 17px; }
  .download-return > a { justify-content: space-between; }
  footer { min-height: 82px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; padding: 15px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
