:root:not(.ddid-app-ready) body > #app { display: none !important; }
:root.ddid-app-ready #ddid-prerender { display: none !important; }

#ddid-prerender,
#ddid-prerender * { box-sizing: border-box; }

#ddid-prerender {
  min-height: 100vh;
  background: #f7f8fa;
  color: #1d1d1f;
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.ddid-static-shell a { color: inherit; text-decoration: none; }
.ddid-static-header {
  height: 72px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  gap: 42px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e5e7eb;
}
.ddid-static-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .02em;
  background: #fff;
}
.ddid-static-header nav { display: flex; align-items: center; gap: 28px; color: #73767d; font-weight: 600; }
.ddid-static-header nav a:first-child { color: #3978e8; }
.ddid-static-actions { margin-left: auto; }

.ddid-static-main { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 48px; }
.ddid-static-hero {
  min-height: 318px;
  padding: 46px 40px;
  display: flex;
  align-items: flex-start;
  border: 1px solid #d9dee8;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background: #07142d url('/uploads/banner/ddid-accounts-hero-desktop-v2.jpg') center/cover no-repeat;
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
}
.ddid-static-hero div { max-width: 720px; }
.ddid-static-hero span { display: inline-block; padding: 4px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: 12px; }
.ddid-static-hero h1 { margin: 20px 0 10px; font-size: 32px; line-height: 1.25; letter-spacing: -.025em; }
.ddid-static-hero p { max-width: 720px; margin: 0; color: rgba(255,255,255,.84); font-size: 15px; line-height: 1.8; }
.ddid-static-page-heading { margin: 8px 0 24px; padding: 24px 28px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; }
.ddid-static-page-heading h1 { margin: 0 0 8px; font-size: 28px; }
.ddid-static-page-heading p { margin: 0; color: #6b7280; }

.ddid-static-catalog { display: grid; grid-template-columns: 238px minmax(0,1fr); gap: 24px; margin-top: 64px; align-items: start; }
.ddid-static-sidebar { padding: 18px; background: #fff; border: 1px solid #e1e5ec; border-radius: 16px; }
.ddid-static-sidebar h2 { margin: 0 0 14px; padding-left: 10px; border-left: 4px solid #3978e8; font-size: 18px; }
.ddid-static-sidebar nav { display: grid; gap: 6px; }
.ddid-static-sidebar a { min-height: 42px; padding: 9px 12px; display: flex; align-items: center; gap: 10px; border-radius: 11px; color: #666b74; }
.ddid-static-sidebar a.is-active { background: #3978e8; color: #fff; }
.ddid-static-sidebar a.is-selected:not(.is-active) { background: #eef4ff; color: #2867d6; }
.ddid-static-category img { object-fit: cover; border-radius: 5px; }
.ddid-static-list { min-width: 0; }
.ddid-static-search { height: 42px; margin-bottom: 18px; padding: 10px 16px; color: #a0a5ad; background: #fff; border: 1px solid #dfe3e9; border-radius: 13px; }
.ddid-static-group { margin-bottom: 26px; }
.ddid-static-group h2 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.ddid-static-group h2 > span { width: 4px; height: 21px; border-radius: 4px; background: #3978e8; }
.ddid-static-group h2 small { color: #9aa0a8; font-weight: 500; }
.ddid-static-product {
  min-height: 82px;
  margin-bottom: 9px;
  padding: 10px 17px 10px 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e0e4ea;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15,23,42,.025);
}
.ddid-static-product > img { flex: 0 0 auto; object-fit: cover; border-radius: 11px; }
.ddid-static-product-copy { min-width: 0; flex: 1; }
.ddid-static-product-copy small { margin-right: 12px; color: #898f98; }
.ddid-static-product-copy strong { display: inline; font-size: 15px; }
.ddid-static-product-copy em { display: inline-block; margin: 7px 5px 0 0; padding: 2px 7px; color: #3874cf; background: #edf5ff; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 600; }
.ddid-static-product-copy em:last-child { color: #32865d; background: #edf9f3; }
.ddid-static-product > b { min-width: 90px; text-align: right; font-size: 15px; }
.ddid-static-product > i { color: #8e949d; font-size: 24px; font-style: normal; }
.ddid-static-empty { padding: 60px 20px; text-align: center; color: #8b9199; background: #fff; border: 1px solid #e4e7ec; border-radius: 14px; }

.ddid-static-breadcrumb { margin: 8px 0 18px; color: #777d86; }
.ddid-static-breadcrumb span { padding: 0 9px; color: #b1b5bc; }
.ddid-static-detail { padding-top: 34px; }
.ddid-static-detail-card { padding: 32px; display: grid; grid-template-columns: 360px 1fr; gap: 42px; background: #fff; border: 1px solid #e0e4ea; border-radius: 18px; }
.ddid-static-detail-card > img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid #edf0f4; border-radius: 16px; }
.ddid-static-detail-card small { color: #717780; }
.ddid-static-detail-card h1 { margin: 10px 0 14px; font-size: 28px; line-height: 1.35; }
.ddid-static-detail-card p { color: #666d76; }
.ddid-static-price { margin: 28px 0 10px; color: #2867d6; font-size: 30px; font-weight: 800; }
.ddid-static-stock { color: #33865f !important; }
.ddid-static-buy { margin-top: 18px; padding: 12px 32px; display: inline-block; color: #fff; background: #3978e8; border-radius: 12px; font-weight: 700; }

.ddid-seo-fallback,
.ddid-static-article { padding-top: 42px; }
.ddid-seo-fallback,
.ddid-static-article article { max-width: 900px; margin: 0 auto; padding: 36px; background: #fff; border: 1px solid #e0e4ea; border-radius: 18px; }
.ddid-seo-fallback h1,
.ddid-static-article h1 { margin: 0 0 14px; font-size: 30px; line-height: 1.35; }
.ddid-seo-fallback p,
.ddid-static-article p { color: #5f6670; line-height: 1.85; }
.ddid-seo-fallback ul { padding-left: 20px; }
.ddid-seo-fallback li { margin: 8px 0; }
.ddid-seo-fallback a { color: #2867d6; }
.ddid-static-lead { padding-bottom: 18px; border-bottom: 1px solid #e6e9ee; font-size: 16px; }
.ddid-static-footer { min-height: 150px; padding: 38px max(24px, calc((100vw - 1240px) / 2)); display: flex; gap: 18px; align-items: flex-start; color: #777d86; background: #fff; border-top: 1px solid #e5e7eb; }
.ddid-static-footer strong { color: #20242a; font-size: 20px; }
.ddid-static-footer span:last-child { margin-left: auto; }

@media (max-width: 760px) {
  .ddid-static-header { height: 62px; padding: 0 14px; gap: 14px; }
  .ddid-static-brand { min-width: 64px; height: 36px; }
  .ddid-static-header nav { gap: 14px; font-size: 12px; }
  .ddid-static-header nav a:nth-child(n+3), .ddid-static-actions { display: none; }
  .ddid-static-main { width: calc(100% - 24px); padding-top: 14px; }
  .ddid-static-hero { min-height: 260px; padding: 24px 20px; background-image: url('/uploads/banner/ddid-accounts-hero-mobile-v2.jpg'); }
  .ddid-static-hero h1 { margin-top: 14px; font-size: 24px; }
  .ddid-static-hero p { font-size: 13px; }
  .ddid-static-catalog { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .ddid-static-sidebar { overflow: hidden; padding: 13px; }
  .ddid-static-sidebar h2 { font-size: 16px; }
  .ddid-static-sidebar nav { display: flex; overflow: hidden; }
  .ddid-static-sidebar a { flex: 0 0 auto; min-height: 36px; padding: 7px 10px; }
  .ddid-static-category img { display: none; }
  .ddid-static-product { min-height: 76px; padding-right: 10px; gap: 10px; }
  .ddid-static-product > img { width: 52px; height: 52px; }
  .ddid-static-product-copy small { display: none; }
  .ddid-static-product-copy strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .ddid-static-product-copy em:nth-of-type(n+2) { display: none; }
  .ddid-static-product > b { min-width: 72px; font-size: 13px; }
  .ddid-static-detail-card { padding: 18px; grid-template-columns: 1fr; gap: 22px; }
  .ddid-static-detail-card > img { max-width: 280px; margin: 0 auto; }
  .ddid-static-footer { padding: 28px 18px; flex-direction: column; }
  .ddid-static-footer span:last-child { margin-left: 0; }
  .ddid-seo-fallback, .ddid-static-article article { padding: 24px 20px; }
}
