/* =========================================================================
   ac.css —— ac-* 账户中心主题（account center theme）
   -------------------------------------------------------------------------
   【抽取产物】来源：account-center/orders/inquiries/… 等 7 个 ac 页内联 <style>
   中共用的 ac 基础骨架（:root --ac-* 变量、body.ac-page、.ac-shell 等）。
   依赖：请在 css/common.css 之后、页面内联 <style> 之前加载。
   说明：页面专属样式（.ac-nav/.ac-content/各页表单表格等）保留在各页内联。
   ========================================================================= */

/* ---- 主题变量 ---- */
:root {
  color-scheme: light;
  --ac-blue: #078fc8;
  --ac-blue-dark: #0078ad;
  --ac-ink: #071526;
  --ac-body: #526b7e;
  --ac-muted: #758a9a;
  --ac-line: #d8e5ec;
  --ac-soft: #f3f8fb;
  --ac-success: #237a63;
  --ac-warning: #a4691c;
  --ac-danger: #ad3f53;
  --ac-radius: 9px;
  --ac-ease: cubic-bezier(.16, 1, .3, 1);
}

html {
  min-width: 320px;
  background: #fff;
  scroll-behavior: smooth;
}

body.ac-page {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ac-ink);
  background: #fff;
  font-family: "Geist", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ac-page button, .ac-page input, .ac-page select, .ac-page textarea {
  font: inherit;
}
.ac-page a {
  color: inherit;
}
.ac-page button, .ac-page a, .ac-page input, .ac-page select, .ac-page textarea {
  -webkit-tap-highlight-color: transparent;
}
.ac-page :focus-visible {
  outline: 2px solid var(--ac-blue);
  outline-offset: 3px;
}

.ac-main {
  min-height: calc(100dvh - 72px);
}

.ac-shell {
  width: min(calc(100% - 48px), 1400px);
  margin-inline: auto;
}
@media (max-width:1024px) {
  .ac-shell {
    width: min(calc(100% - 40px), 920px);
  }
}
@media (max-width:760px) {
  .ac-shell {
    width: min(calc(100% - 28px), 600px);
  }
}

/* ---- 侧边栏（.ac-sidebar / .ac-nav）----
   由 6 个 ac 页内联重复段并入；页面专属字阶预设保留各页内联。 */
.ac-sidebar {
  position: sticky;
  top: 104px;
  min-width: 0;
}
.ac-sidebar-title {
  margin: 0 0 15px;
  color: #8a9ba8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ac-nav {
  display: grid;
  gap: 2px;
}
.ac-nav button, .ac-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--ac-radius);
  color: #617789;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s var(--ac-ease), background .2s var(--ac-ease), transform .2s var(--ac-ease);
}
.ac-nav button:hover, .ac-nav a:hover {
  color: var(--ac-blue-dark);
  background: #f1f8fb;
  transform: translateX(2px);
}
.ac-nav button.is-active, .ac-nav a.is-active {
  color: var(--ac-blue-dark);
  background: #e9f6fb;
}
.ac-nav svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}
.ac-sidebar-note {
  margin: 25px 0 0;
  padding: 18px 14px;
  border-top: 1px solid var(--ac-line);
  color: #748999;
  font-size: 11px;
  line-height: 1.55;
}
.ac-sidebar-note strong {
  display: block;
  margin-bottom: 4px;
  color: #29465c;
  font-size: 12px;
}
@media (max-width:1024px) {
  .ac-sidebar {
    position: static;
    overflow: auto;
    margin-inline: -2px;
    padding: 2px;
    scrollbar-width: none;
  }
  .ac-sidebar::-webkit-scrollbar {
    display: none;
  }
  .ac-sidebar-title, .ac-sidebar-note {
    display: none;
  }
  .ac-nav {
    display: flex;
    min-width: max-content;
  }
  .ac-nav button, .ac-nav a {
    width: auto;
    min-height: 39px;
    padding-inline: 12px;
  }
  .ac-nav button:hover, .ac-nav a:hover {
    transform: none;
  }
}

/* ---- 面包屑 / hero / content（ac 页头与内容布局）----
   由 7 个 ac 页内联重复段并入；各页字阶预设保留内联。 */
.ac-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: #718798;
  font-size: 11px;
  font-weight: 650;
}
.ac-breadcrumb a {
  text-decoration: none;
}
.ac-breadcrumb a:hover {
  color: var(--ac-blue);
}
.ac-breadcrumb svg {
  width: 13px;
  height: 13px;
}
.ac-hero {
  padding: 50px 0 42px;
  border-bottom: 1px solid var(--ac-line);
  background: linear-gradient(120deg, #fff 0%, #fff 64%, #f1f8fb 100%);
}
.ac-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.ac-hero h1 {
  margin: 0;
  font-size: clamp(44px, 4.6vw, 66px);
  line-height: .96;
  letter-spacing: -.047em;
}
.ac-hero p {
  max-width: 58ch;
  margin: 14px 0 0;
  color: var(--ac-body);
  font-size: 14px;
  line-height: 1.65;
}
.ac-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
}
.ac-content {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 72px;
  padding: 48px 0 104px;
  align-items: start;
}
@media (max-width:1100px) {
  .ac-content {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 38px;
  }
}
@media (max-width:1024px) {
  .ac-content {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 31px;
  }
}
@media (max-width:760px) {
  .ac-hero {
    padding: 35px 0 30px;
  }
  .ac-hero-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .ac-hero h1 {
    font-size: 46px;
  }
  .ac-hero-actions {
    width: 100%;
    padding: 0;
  }
  .ac-hero-actions .ac-button {
    flex: 1;
  }
  .ac-content {
    padding-bottom: 72px;
  }
}

.ac-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  max-width: min(380px, calc(100vw - 44px));
  padding: 13px 16px;
  border: 1px solid rgba(7, 143, 200, .18);
  border-radius: var(--ac-radius);
  color: #fff;
  background: rgba(6, 28, 44, .95);
  box-shadow: 0 18px 50px rgba(7, 34, 53, .2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s var(--ac-ease), transform .25s var(--ac-ease);
  font-size: 14px;
  line-height: 1.5;
}
.ac-toast.is-visible {
  opacity: 1;
  transform: none;
}

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