/*
 * AI汽车维修系统 - 全局视觉升级层
 * 在不改动业务结构的前提下，统一品牌、交互与响应式体验。
 */
:root{
  --ui-primary:#0b82ff;
  --ui-primary-deep:#086be8;
  --ui-primary-soft:#eaf5ff;
  --ui-cyan:#37c6ff;
  --ui-ink:#10213e;
  --ui-muted:#70829f;
  --ui-line:rgba(71,119,170,.14);
  --ui-surface:rgba(255,255,255,.96);
  --ui-shadow-sm:0 5px 16px rgba(37,83,132,.07);
  --ui-shadow-md:0 12px 34px rgba(37,83,132,.11);
  --ui-shadow-lg:0 28px 80px rgba(23,58,100,.18);
  --ui-radius:14px;
}
html{scroll-behavior:smooth;background:#e7eef7}
body.ui-polished{
  min-height:100vh;
  color:var(--ui-ink);
  background:
    radial-gradient(circle at 14% 5%,rgba(63,170,255,.16),transparent 27rem),
    radial-gradient(circle at 88% 88%,rgba(53,208,255,.11),transparent 30rem),
    linear-gradient(145deg,#edf4fb 0%,#e3ebf5 48%,#eef4fa 100%);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
body.ui-polished .app{
  isolation:isolate;
  border:1px solid rgba(95,137,180,.10);
  box-shadow:var(--ui-shadow-lg);
}
body.ui-polished .app::after{
  content:"";
  position:absolute;
  z-index:50;
  inset:0;
  border-radius:inherit;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.86);
  pointer-events:none;
}
body.ui-polished button,
body.ui-polished [role="button"]{
  -webkit-tap-highlight-color:transparent;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease,background-color .18s ease,border-color .18s ease,color .18s ease;
}
body.ui-polished button:active,
body.ui-polished [role="button"]:active{transform:translateY(1px) scale(.992)}
@media (hover:hover){
  body.ui-polished button:hover,
  body.ui-polished [role="button"]:hover{filter:saturate(1.05) brightness(1.015)}
}
body.ui-polished :is(input,textarea,select){caret-color:var(--ui-primary)}
body.ui-polished :is(input,textarea,select):focus{
  outline:none;
  border-color:rgba(11,130,255,.48)!important;
  box-shadow:0 0 0 3px rgba(11,130,255,.10)!important;
}
body.ui-polished :is(button,a,input,textarea,select,[tabindex]):focus-visible{
  outline:2px solid rgba(11,130,255,.65);
  outline-offset:2px;
}
body.ui-polished :is(.card,.summary-card,.vehicle-card,.section-card,.info-card,.note-card,.sheet-card){
  border-color:var(--ui-line)!important;
  box-shadow:var(--ui-shadow-sm)!important;
  backdrop-filter:saturate(1.08) blur(8px);
}
body.ui-polished :is(.card,.summary-card,.vehicle-card,.section-card,.info-card,.note-card,.sheet-card)::selection{background:#cfe9ff}
body.ui-polished :is(.primary,.login,.confirm,.enter,.submit){
  background:linear-gradient(135deg,#3aaeff 0%,#0b82ff 55%,#086be8 100%)!important;
  box-shadow:0 10px 24px rgba(11,130,255,.24)!important;
  color:#fff!important;
}
@media (hover:hover){
  body.ui-polished :is(.primary,.login,.confirm,.enter,.submit):hover{
    transform:translateY(-1px);
    box-shadow:0 13px 28px rgba(11,130,255,.30)!important;
  }
}
body.ui-polished :is(.tab.active,.tabs .active,.nav-item.active){
  color:var(--ui-primary)!important;
}
body.ui-polished :is(.tab.active,.tabs .active){
  text-shadow:0 2px 12px rgba(11,130,255,.12);
}
body.ui-polished :is(.tag,.badge,.status,.priority){font-weight:600;letter-spacing:.01em}
body.ui-polished :is(.topbar,.head){position:relative}
body.ui-polished :is(h1,.title){letter-spacing:-.018em}
body.ui-polished :is(.section-head,.section-title) h2,
body.ui-polished .section-title{letter-spacing:-.01em}
body.ui-polished :is(dialog,.dialog,.sheet){
  border-color:rgba(64,111,162,.14)!important;
  box-shadow:0 30px 70px rgba(20,51,88,.24)!important;
}
body.ui-polished dialog::backdrop{background:rgba(17,35,59,.48);backdrop-filter:blur(3px)}
body.ui-polished .toast{box-shadow:0 10px 28px rgba(9,29,55,.22);backdrop-filter:blur(10px)}
body.ui-polished .bottom-nav{
  border-top-color:rgba(64,110,158,.10)!important;
  box-shadow:0 -8px 24px rgba(43,80,123,.06);
  backdrop-filter:blur(14px) saturate(1.15);
}
body.ui-polished img{image-rendering:auto}
body.ui-polished ::-webkit-scrollbar{width:5px;height:5px}
body.ui-polished ::-webkit-scrollbar-thumb{background:rgba(87,126,168,.24);border-radius:999px}
body.ui-polished ::-webkit-scrollbar-track{background:transparent}

/* 页面级微调：保持布局不变，只增强重点层级 */
body.page-01 .hero{filter:saturate(1.08) contrast(1.02)}
body.page-01 .field{border:1px solid rgba(82,132,181,.11);box-shadow:0 9px 24px rgba(42,91,142,.09)!important}
body.page-01 .login{letter-spacing:.06em}
body.page-01 .security{padding:7px 10px;border-radius:12px;background:rgba(255,255,255,.36);backdrop-filter:blur(6px)}
body.page-02 .store{border-color:rgba(76,125,174,.12)!important;box-shadow:0 8px 24px rgba(39,83,129,.08)!important}
body.page-02 .store.chosen{
  border-color:rgba(11,130,255,.42)!important;
  background:linear-gradient(145deg,#ffffff 0%,#f4faff 100%);
  box-shadow:0 0 0 3px rgba(11,130,255,.10),0 13px 30px rgba(39,83,129,.12)!important;
}
@media (hover:hover){body.page-02 .store:hover{transform:translateY(-2px);box-shadow:0 13px 30px rgba(39,83,129,.12)!important}}
body.page-03 .stats{border-color:rgba(63,119,175,.10)!important;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,252,255,.98))}
body.page-03 .stat strong{background:linear-gradient(135deg,#0b82ff,#36bfff);-webkit-background-clip:text;background-clip:text;color:transparent}
body.page-04 .tabs,
body.page-05 .tabs,
body.page-15 .tabs,
body.page-16 .tabs{background:rgba(255,255,255,.82);backdrop-filter:blur(10px)}
body.page-07 .plate,
body.page-19 .plate{filter:drop-shadow(0 8px 16px rgba(5,85,167,.16))}
body.page-09 .ai-card{background:linear-gradient(145deg,#fff 0%,#f7fbff 100%)!important}
body.page-09 .symptom.active{box-shadow:0 5px 14px rgba(11,130,255,.10)}
body.page-10 .summary-card,
body.page-16 .summary-card,
body.page-18 .summary-card{background:linear-gradient(145deg,#fff,#f7fbff)!important}
body.page-11 .status,
body.page-14 .status{box-shadow:0 4px 12px rgba(36,104,169,.08)}
body.page-12 .amount,
body.page-16 .amount,
body.page-17 .amount,
body.page-18 .summary-amount{font-variant-numeric:tabular-nums}
body.page-13 .step-button.active{box-shadow:0 6px 16px rgba(11,130,255,.13)}
body.page-19 .stage.completed,
body.page-19 .done{filter:saturate(1.06)}
body.page-20 .amount{font-variant-numeric:tabular-nums}

@media (max-width:480px){
  html,body.ui-polished{background:#f4f8fc}
  body.ui-polished .app{border:0!important;border-radius:0!important;box-shadow:none!important}
  body.ui-polished .app::after{display:none}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body.ui-polished *,body.ui-polished *::before,body.ui-polished *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
