:root { --deep:#005870; --blue:#086880; --flow:#38a0c8; --sky:#38a8d0; --eco:#6fc5be; --mist:#f6fafb; --ink:#10232e; --muted:#68737a; --border:#d4e3ea; --white:#fff; --radius:8px; }
* { box-sizing:border-box; }
body { margin:0; background:var(--mist); color:var(--ink); font-family:"PingFang SC","HarmonyOS Sans SC",Inter,system-ui,sans-serif; }
button, input, select { font:inherit; }
.shell { max-width:1120px; margin:0 auto; padding-bottom:48px; }
.hero { min-height:280px; padding:48px 40px; display:flex; gap:24px; align-items:center; color:var(--white); background:linear-gradient(135deg,#003e52 0%,#005870 56%,#086880 100%); border-radius:0 0 24px 24px; }
.brand-mark { width:180px; height:auto; display:grid; place-items:center; flex:none; border-radius:0; background:transparent; }
.brand-mark img { display:block; width:180px; height:auto; object-fit:contain; }
.eyebrow { margin:0 0 8px; font-size:11px; letter-spacing:.16em; font-weight:800; opacity:.78; }
.eyebrow.blue { color:var(--blue); opacity:1; }
h1,h2,p { margin-top:0; } h1 { margin-bottom:12px; font-size:clamp(32px,5vw,56px); line-height:1.1; letter-spacing:-.04em; } h2 { margin-bottom:0; font-size:24px; }
.hero-copy { max-width:520px; margin-bottom:0; color:#dff7fb; line-height:1.7; }
.content-island { margin:-28px 24px 0; padding:24px; position:relative; background:var(--white); border:1px solid var(--border); border-radius:var(--radius); box-shadow:0 8px 22px rgba(0,88,112,.1); }
.steps { display:flex; gap:24px; padding-bottom:20px; border-bottom:1px solid var(--border); } .step { color:#9aa8ae; font-size:13px; } .step i { width:24px; height:24px; display:inline-grid; place-items:center; margin-right:6px; border-radius:50%; background:#e9f2f5; font-style:normal; } .step.is-active { color:var(--blue); font-weight:700; } .step.is-active i { color:var(--white); background:var(--blue); }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:16px; margin:28px 0 16px; } .section-heading.compact { margin-top:32px; } .quiet, small, .consent { color:var(--muted); font-size:12px; } .text-button { padding:0; border:0; color:var(--blue); background:none; cursor:pointer; }
.upload-grid, .preset-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; } .preset-grid { grid-template-columns:repeat(4,1fr); }
.upload-card { min-height:170px; padding:24px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; border:1px dashed var(--flow); border-radius:var(--radius); background:var(--mist); cursor:pointer; text-align:center; } .upload-card:hover { background:#ddf3f1; border-color:var(--eco); } .upload-card input { position:absolute; width:1px; height:1px; opacity:0; } .upload-icon { width:36px; height:36px; display:grid; place-items:center; margin-bottom:6px; color:var(--white); border-radius:16px; background:var(--flow); font-size:24px; } .file-name { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--blue); font-size:12px; }
.upload-preview { width:100%; max-width:210px; margin-top:8px; }
.photo-preview { display:flex; justify-content:center; gap:6px; }
.photo-preview:empty, .media-preview:empty { display:none; }
.photo-preview figure { position:relative; flex:0 0 44px; width:44px; height:44px; margin:0; overflow:hidden; border:1px solid var(--border); border-radius:7px; background:var(--white); }
.photo-preview img { display:block; width:100%; height:100%; object-fit:cover; }
.photo-preview figcaption { position:absolute; right:3px; bottom:3px; width:15px; height:15px; display:grid; place-items:center; border-radius:50%; color:var(--white); background:rgba(0,88,112,.76); font-size:9px; font-weight:800; }
.media-preview audio, .media-preview video { display:block; width:100%; border-radius:7px; }
.media-preview audio { height:34px; }
.media-preview video { height:54px; background:#10232e; object-fit:cover; }
.upload-card .photo-preview { width:auto !important; max-width:150px !important; display:flex !important; justify-content:center !important; gap:6px !important; }
.upload-card .photo-preview figure { flex:0 0 44px !important; width:44px !important; height:44px !important; max-width:44px !important; max-height:44px !important; }
.upload-card .photo-preview img { width:44px !important; height:44px !important; max-width:44px !important; max-height:44px !important; object-fit:cover !important; }
.preset { min-height:96px; padding:16px 8px; border:1px solid var(--border); border-radius:var(--radius); background:var(--white); color:var(--ink); cursor:pointer; } .preset span, .preset small { display:block; } .preset span { margin-bottom:4px; font-weight:700; } .preset.is-selected { border:2px solid var(--flow); box-shadow:0 0 0 3px rgba(56,160,200,.14); }
.inline-options { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-top:24px; } .inline-options label { display:flex; flex-direction:column; gap:8px; color:var(--muted); font-size:12px; } select, input[type="text"] { min-height:44px; padding:0 12px; color:var(--ink); border:1px solid var(--border); border-radius:8px; background:var(--white); }
input[type="text"]::placeholder { color:#9aa8ae; }
.primary-button { width:100%; min-height:52px; margin-top:28px; padding:0 20px; display:flex; justify-content:space-between; align-items:center; border:0; border-radius:8px; background:var(--blue); color:var(--white); font-weight:700; cursor:pointer; } .primary-button:hover { background:var(--deep); } .consent { margin:12px 0 0; text-align:center; line-height:1.5; }
@media (max-width:640px) { .shell { padding:0 0 32px; } .hero { min-height:260px; padding:32px 20px 56px; align-items:flex-start; } .brand-mark { width:130px; } .brand-mark img { width:130px; } .content-island { margin:-28px 12px 0; padding:18px; } .steps { gap:10px; justify-content:space-between; } .step { font-size:11px; } .step i { width:20px; height:20px; margin-right:3px; } .upload-grid, .preset-grid, .inline-options { grid-template-columns:1fr 1fr; gap:10px; } .upload-card { min-height:150px; padding:14px 8px; } .section-heading { align-items:flex-start; flex-direction:column; gap:8px; } .section-heading.compact { flex-direction:row; align-items:end; } h2 { font-size:20px; } }
.result-card { margin-top: 20px; padding: 16px; border: 1px solid #d4e3ea; border-radius: 8px; background: #fff; }
.result-card img { display: block; width: 100%; max-height: 520px; object-fit: contain; border-radius: 6px; margin-top: 8px; background: #f6fafb; }
.result-gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.result-gallery figure { position: relative; flex: 0 0 88%; margin: 0; scroll-snap-align: start; }
.result-gallery figure img { width: 100%; max-height: 520px; object-fit: contain; }
.result-gallery figcaption { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; border-radius: 12px; color: #fff; background: rgba(0,88,112,.76); font-size: 11px; }
.video-result { margin-top: 20px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); }.video-result video { display: block; width: 100%; max-height: 560px; border-radius: 6px; background: #10232e; }
.video-link-line { margin: 10px 0 0; text-align: center; }
.video-link-line a { color: var(--blue); font-size: 13px; font-weight: 800; text-decoration: none; }
.video-link-line a:hover { text-decoration: underline; }
.delivery-controls { margin-top: 24px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--mist); }
.control-block + .control-block { margin-top: 16px; }
.control-label { margin-bottom: 8px; color: var(--blue); font-size: 13px; font-weight: 800; }
.segmented { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.model-segmented { grid-template-columns: repeat(2, 1fr); }
.segmented button { min-height: 44px; border: 1px solid var(--border); border-radius: 7px; color: var(--ink); background: var(--white); cursor: pointer; font-weight: 700; }
.segmented button.is-selected { border-color: var(--flow); color: var(--white); background: var(--flow); box-shadow: 0 0 0 2px rgba(56,160,200,.16); }
.quantity-line { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; color: var(--muted); font-size: 13px; }
.quantity-line select { min-height: 36px; }
.ratio-segmented button { min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.ratio-shape { display: block; border: 2px solid currentColor; border-radius: 2px; opacity: .78; }
.ratio-shape.portrait { width: 18px; height: 30px; }.ratio-shape.wide { width: 32px; height: 18px; }.ratio-shape.square { width: 23px; height: 23px; }.ratio-shape.landscape { width: 30px; height: 23px; }.ratio-shape.portrait-small { width: 20px; height: 28px; }
.ratio-segmented span { font-size: 12px; }.model-segmented button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }.model-segmented small { color: var(--muted); font-size: 11px; }.model-segmented button.is-selected small { color: #e9fbff; }
.primary-button { justify-content: center; position: relative; }.primary-button span { position: absolute; right: 20px; }
.upload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.upload-card { min-width: 0; }
.upload-card .file-name { display: block; width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outfit-picker { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }.adjustment-label { margin-bottom: 8px; color: var(--blue); font-size: 12px; font-weight: 700; }.outfit-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }.outfit-options label { padding: 9px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--white); color: var(--ink); font-size: 12px; cursor: pointer; }.outfit-options input { margin-right: 4px; accent-color: var(--flow); }
@media (max-width:640px) { .outfit-options { grid-template-columns: repeat(2, 1fr); } }
.quantity-block { display: block; }.quantity-block > span { display: block; margin-bottom: 8px; }.quantity-segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }.quantity-segmented button { min-height: 42px; border: 1px solid var(--border); border-radius: 7px; color: var(--ink); background: var(--white); cursor: pointer; font-weight: 800; }.quantity-segmented button.is-selected { color: var(--white); border-color: var(--flow); background: var(--flow); }.quantity-block small { display: block; margin-top: 8px; }
.adjustments { margin-top: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--mist); }
.adjustment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.adjustment-grid label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; }
@media (max-width:640px) { .adjustment-grid { grid-template-columns: 1fr 1fr; } }
.role-panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--mist); }
.field { min-width: 0; display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 12px; }
.field span, .choice-title { color: var(--blue); font-size: 12px; font-weight: 800; }
.choice-section { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); }
.choice-title { margin-bottom: 10px; }
.chip-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.chip { min-height: 36px; padding: 0 8px; border: 1px solid var(--border); border-radius: 7px; color: var(--ink); background: var(--white); cursor: pointer; font-size: 12px; font-weight: 700; }
.chip.is-selected { color: var(--white); border-color: var(--flow); background: var(--flow); box-shadow: 0 0 0 2px rgba(56,160,200,.14); }
@media (max-width:860px) { .role-panel { grid-template-columns: repeat(2, 1fr); } .chip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width:640px) { .role-panel { grid-template-columns: 1fr; padding: 14px; } .choice-section { padding: 12px; } .chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* OpenLai platform integration */
#openlai-platform-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: block;
}

.ol-platform-bar {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(142, 166, 181, .24);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(14px);
}

.ol-platform-spacer { flex: 1; }

.ol-login,
.ol-wallet,
.ol-user {
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(0, 112, 128, .24);
  background: #fff;
  color: #102532;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(25, 57, 71, .08);
}

.ol-login {
  background: #006d7f;
  color: #fff;
  border-color: #006d7f;
}

.ol-wallet span {
  color: #687b89;
  font-size: 12px;
}

.ol-wallet strong {
  color: #006d7f;
  font-size: 17px;
}

.ol-user {
  max-width: min(320px, 38vw);
}

.ol-user i,
.ol-profile-head i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #08b9b5, #2f7bf2);
  color: #fff;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ol-user span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ol-profile-popover {
  position: fixed;
  right: clamp(20px, 4vw, 56px);
  top: 68px;
  z-index: 1000;
  width: 300px;
  padding: 18px;
  border: 1px solid #dce8ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 42, 54, .18);
}

.ol-profile-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f5;
}

.ol-profile-head strong,
.ol-profile-head span {
  display: block;
  max-width: 220px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ol-profile-head span {
  color: #6a7a88;
  font-size: 12px;
  margin-top: 3px;
}

.ol-profile-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  color: #5d6d78;
}

.ol-profile-popover button {
  width: 100%;
  height: 42px;
  margin-top: 8px;
  border-radius: 9px;
  border: 1px solid #dbe7ed;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.ol-recharge-mask,
.ol-notice-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(14, 24, 32, .58);
  backdrop-filter: blur(10px);
}

.ol-recharge,
.ol-notice {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  position: relative;
  border: 1px solid #d9e5ea;
  border-radius: 18px;
  background: #fff;
  color: #102532;
  box-shadow: 0 24px 80px rgba(15, 42, 54, .22);
  padding: 26px;
}

.ol-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 56px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid #d6e3ea;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.ol-recharge h3,
.ol-notice h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.ol-recharge p,
.ol-notice p {
  margin: 0 0 18px;
  color: #637487;
  line-height: 1.6;
}

.ol-packages,
.ol-pay-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.ol-packages button,
.ol-pay-methods button {
  min-height: 74px;
  border: 1px solid #d7e5eb;
  border-radius: 10px;
  background: #fff;
  color: #102532;
  cursor: pointer;
  font-weight: 800;
}

.ol-packages button strong,
.ol-packages button span {
  display: block;
}

.ol-packages button span {
  color: #6a7a88;
  font-size: 13px;
  margin-top: 5px;
}

.ol-packages button.is-selected,
.ol-pay-methods button.is-selected {
  border-color: #008997;
  background: #edfafa;
  box-shadow: inset 0 0 0 1px rgba(0, 137, 151, .15);
}

.ol-pay-methods {
  grid-template-columns: repeat(2, 1fr);
}

.ol-pay-methods button {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ol-pay-methods i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ol-pay-methods .wechat { background: #20c463; }
.ol-pay-methods .alipay { background: #2478ff; }

.ol-custom {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 10px;
  margin: 14px 0;
}

.ol-custom span {
  grid-column: 1 / -1;
  font-weight: 800;
}

.ol-custom input,
.ol-custom button {
  height: 48px;
  border-radius: 10px;
  border: 1px solid #d7e5eb;
  padding: 0 14px;
  background: #fff;
}

.ol-custom button,
.ol-pay-now {
  font-weight: 800;
  cursor: pointer;
}

.ol-summary {
  margin: 14px 0;
  padding: 16px;
  border-radius: 12px;
  background: #f7f6f1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ol-summary strong {
  font-size: 22px;
}

.ol-qr-panel {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid #e0e8ed;
  border-radius: 12px;
  background: #fbfdfe;
}

.ol-qr-placeholder,
.ol-qr-img {
  width: 150px;
  height: 150px;
  border: 1px dashed #cddce4;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #647684;
  background: #fff;
}

.ol-pay-now,
.ol-notice [data-action] {
  height: 48px;
  min-width: 128px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #006d7f;
}

.ol-pay-now {
  display: block;
  margin-left: auto;
  padding: 0 22px;
}

.ol-notice div:last-child {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.ol-notice button {
  height: 42px;
  min-width: 96px;
  border-radius: 9px;
  border: 1px solid #d7e5eb;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 720px) {
  .ol-packages,
  .ol-pay-methods,
  .ol-custom,
  .ol-qr-panel {
    grid-template-columns: 1fr;
  }
}
