:root{
  --bg:#f4f2ec;
  --surface:#fbfaf6;
  --surface-strong:#ffffff;
  --surface-soft:#eef2ee;
  --ink:#17221e;
  --muted:#6d7a74;
  --line:#d8ded9;
  --line-strong:#c6d0c9;
  --forest:#183b31;
  --forest-2:#245747;
  --coral:#ff6b50;
  --coral-soft:#fff0eb;
  --mint:#5fd1a0;
  --danger:#c84b4b;
  --shadow:0 20px 55px rgba(33,47,41,.10);
  --shadow-soft:0 8px 28px rgba(33,47,41,.07);
  --radius:22px;
  color-scheme:light;
  font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;
}
html{scroll-behavior:smooth}
*{box-sizing:border-box}
body{
  margin:0;
  min-width:320px;
  min-height:100vh;
  background:
    radial-gradient(circle at 86% 7%,rgba(255,107,80,.10),transparent 22rem),
    radial-gradient(circle at 5% 22%,rgba(95,209,160,.10),transparent 24rem),
    var(--bg);
  color:var(--ink);
}
button,input,select,textarea{font:inherit}
button:focus-visible,a:focus-visible,label:focus-within,summary:focus-visible{
  outline:3px solid rgba(255,107,80,.28);
  outline-offset:3px;
}

/* Header */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  height:72px;
  padding:0 max(28px,calc((100vw - 1320px)/2));
  border-bottom:1px solid rgba(203,211,205,.86);
  background:rgba(251,250,246,.90);
  backdrop-filter:blur(18px);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand{display:flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none}
.brand-mark{
  width:39px;height:39px;border-radius:15px 15px 13px 17px;
  display:grid;place-items:center;
  background:var(--coral);color:#fff;font-weight:950;
  box-shadow:0 8px 18px rgba(255,107,80,.24);
}
.brand div{display:flex;flex-direction:column}
.brand strong{font-size:17px;letter-spacing:-.02em}
.brand small{margin-top:2px;color:#829089;font-size:10px}
.top-nav{display:flex;align-items:center;gap:9px}
.top-nav>button{
  height:36px;padding:0 12px;border:0;border-radius:999px;
  background:transparent;color:#586760;font-size:12px;font-weight:750;cursor:pointer;
}
.top-nav>button:hover{background:#e9ede9;color:var(--forest)}
.top-nav .owner-entry{padding:0 16px;border:1px solid var(--line-strong);background:#fff;color:var(--forest)}
.local-pill{
  display:flex;align-items:center;gap:7px;
  padding:7px 11px;border:0;background:#eaf4ee;color:#36755d;
  border-radius:999px;font-size:11px;
}
.local-pill i{width:7px;height:7px;border-radius:50%;background:#49bd88;box-shadow:0 0 0 4px rgba(73,189,136,.12)}

/* Public landing */
main{max-width:1320px;margin:auto;padding:0 28px 64px}
.hero{
  max-width:none;
  margin:0;
  padding:56px 0 46px;
  display:grid;
  grid-template-columns:1.06fr .94fr;
  align-items:center;
  gap:64px;
}
.hero-copy{min-width:0}
.eyebrow{
  margin:0;
  color:#e65840;
  font-size:11px;
  font-weight:900;
  letter-spacing:.18em;
}
.hero h1{
  margin:13px 0 18px;
  max-width:690px;
  font-family:"Songti SC","STSong",Georgia,serif;
  font-size:clamp(42px,4.6vw,64px);
  line-height:1.1;
  letter-spacing:-.055em;
  color:#16231e;
}
.hero h1 em{font-style:normal;color:var(--coral)}
.hero-copy>p:not(.eyebrow){
  max-width:620px;margin:0;color:#5d6f67;font-size:16px;line-height:1.8;
}
.hero-actions{display:flex;gap:10px;margin-top:25px}
.hero-actions button{
  min-height:46px;padding:0 21px;border-radius:999px;cursor:pointer;font-size:12px;font-weight:850;
}
.hero-primary{border:0;background:var(--forest);color:#fff;box-shadow:0 11px 24px rgba(24,59,49,.16)}
.hero-primary:hover{background:var(--forest-2);transform:translateY(-1px)}
.hero-primary span{margin-left:7px}
.hero-secondary{border:1px solid var(--line-strong);background:rgba(255,255,255,.58);color:var(--forest)}
.hero-secondary:hover{background:#fff}
.trust-row{display:flex;flex-wrap:wrap;gap:17px;margin-top:23px;color:#74817c;font-size:10px}
.trust-row span::first-letter{color:#279a6e}
.hero-visual{position:relative;min-height:350px}
.preview-window{
  position:absolute;inset:9px 5px 16px 28px;
  padding:17px;border-radius:26px;
  background:#1b2c27;
  box-shadow:0 30px 70px rgba(38,51,46,.22);
  transform:rotate(1.2deg);
}
.preview-window-head{height:22px;display:flex;align-items:center;justify-content:space-between;color:#c8d3cf;font-size:9px}
.preview-window-head>span{display:flex;gap:5px}
.preview-window-head i{width:7px;height:7px;border-radius:50%;background:#ff745e}
.preview-window-head i:nth-child(2){background:#ffc451}
.preview-window-head i:nth-child(3){background:#65dca3}
.preview-window-head b{font-weight:750;color:#aebcb6}
.preview-canvas{
  height:232px;margin-top:8px;border-radius:17px;
  display:grid;place-items:center;overflow:hidden;
}
.sprite-demo{position:relative;width:112px;height:150px;filter:drop-shadow(0 14px 8px rgba(31,48,40,.17))}
.sprite-demo span{
  position:absolute;left:30px;top:17px;width:60px;height:60px;
  border-radius:46% 46% 44% 44%;background:#edbd95;
  box-shadow:0 -10px 0 3px #263d58,0 -15px 0 -1px #e7b547;
}
.sprite-demo span::before,.sprite-demo span::after{
  content:"";position:absolute;top:27px;width:7px;height:10px;border-radius:50%;background:#243345;
}
.sprite-demo span::before{left:14px}.sprite-demo span::after{right:14px}
.sprite-demo i{
  position:absolute;left:13px;bottom:5px;width:90px;height:78px;border-radius:45% 45% 26% 26%;
  background:linear-gradient(125deg,#345074 0 43%,#e6b63c 44% 54%,#b64d49 55%);
}
.sprite-demo b{
  position:absolute;left:-24px;bottom:49px;width:158px;height:5px;border-radius:6px;
  background:#394b57;transform:rotate(-13deg);
}
.sprite-demo b::before{content:"";position:absolute;left:-10px;top:-5px;border-right:20px solid #d8e4e5;border-top:8px solid transparent;border-bottom:8px solid transparent}
.frame-strip{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin-top:10px}
.frame-strip i{
  height:27px;border-radius:7px;border:1px solid #375149;background:#253c35;position:relative;
}
.frame-strip i::after{content:"";position:absolute;left:50%;top:5px;width:12px;height:17px;border-radius:6px 6px 4px 4px;background:#e8b84b;transform:translateX(-50%)}
.frame-strip i:nth-child(even)::after{transform:translate(-50%,2px) rotate(5deg)}
.floating-chip{
  position:absolute;padding:11px 13px;border:1px solid var(--line);border-radius:13px;
  background:#fff;box-shadow:var(--shadow-soft);font-size:10px;
}
.floating-chip strong,.floating-chip small{display:block}.floating-chip small{margin-top:4px;color:#6f7e77}
.chip-clean{right:-18px;top:-4px}.chip-clean small{color:#259567}
.chip-ready{left:-15px;bottom:0}

/* Workflow picker */
.task-section{scroll-margin-top:90px;padding-top:8px}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:15px}
.section-heading h2{margin:7px 0 0;font-size:25px;letter-spacing:-.035em}
.section-heading>p{margin:0;color:#74817b;font-size:11px}
.tool-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.tool-card{
  position:relative;min-height:104px;padding:17px;
  display:grid;grid-template-columns:49px minmax(0,1fr) auto;gap:13px;align-items:center;
  border:1px solid var(--line);border-radius:19px;background:rgba(251,250,246,.88);
  color:var(--ink);text-align:left;cursor:pointer;box-shadow:0 1px 0 rgba(255,255,255,.75);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.tool-card:hover{transform:translateY(-2px);border-color:#b8c7be;box-shadow:var(--shadow-soft)}
.tool-card.active{border-color:#ee8b77;background:#fff8f4;box-shadow:0 10px 30px rgba(232,101,76,.08)}
.tool-icon{width:49px;height:49px;border-radius:15px;background:#e7ece8;display:grid;place-items:center;color:#38564b;font-size:20px}
.tool-card.active .image-icon{background:#ffe1d8;color:#df5a41}
.video-icon{background:#e2eee9;color:#29775b}.ai-icon{background:#eee7f7;color:#7b54a5}
.tool-card>span:nth-child(2){min-width:0}
.tool-card strong{display:block;font-size:13px}
.tool-card small{display:block;margin-top:6px;color:#718079;font-size:10px;line-height:1.45}
.tool-card>b{position:absolute;right:15px;top:12px;padding:4px 7px;border-radius:999px;background:#edf0ed;color:#718078;font-size:8px;letter-spacing:.04em}
.tool-card.active>b{background:#ffe7df;color:#d65f47}
.tool-card>i{font-style:normal;width:29px;height:29px;border:1px solid #d1d8d3;border-radius:50%;display:grid;place-items:center;margin-top:22px}
.owner-card{background:linear-gradient(135deg,#faf7fc,#fbfaf6)}

/* Workspace selector */
.tabs{
  position:sticky;top:84px;z-index:30;
  scroll-margin-top:84px;
  margin-top:27px;padding:7px;
  display:flex;align-items:center;gap:6px;
  border:1px solid var(--line);border-radius:16px;
  background:rgba(251,250,246,.92);backdrop-filter:blur(16px);
  box-shadow:0 8px 24px rgba(39,52,47,.06);
}
.tabs-label{padding:0 10px;color:#87938d;font-size:10px;font-weight:800;letter-spacing:.08em}
.tab{
  height:42px;padding:0 14px;border:0;border-radius:11px;
  display:flex;align-items:center;gap:8px;
  background:transparent;color:#66746e;font-size:11px;font-weight:800;cursor:pointer;
}
.tab i{font-style:normal}.tab b{padding:3px 6px;border-radius:999px;background:#ece5f4;color:#78569f;font-size:8px}
.tab.active{border:0;background:var(--forest);color:#fff;box-shadow:0 8px 18px rgba(24,59,49,.14)}
.tab.owner-tab{margin-left:auto}
.tab.owner-tab.active{background:#5e426f}

/* Workspaces */
.workspace{display:none;grid-template-columns:330px minmax(0,1fr);gap:18px;padding-top:36px}
.workspace.active{display:grid}
.workspace-intro{
  grid-column:1/-1;
  display:flex;align-items:end;justify-content:space-between;gap:24px;
  padding:16px 4px 2px;
}
.workspace-intro h2{margin:5px 0 6px;font-size:25px;letter-spacing:-.035em}
.workspace-intro p{margin:0;color:#718079;font-size:11px}
.workspace-kicker{color:#e56048;font-size:9px;font-weight:900;letter-spacing:.14em}
.flow-steps{display:flex;align-items:center;gap:7px;padding-bottom:2px}
.flow-steps span{display:flex;align-items:center;gap:6px;color:#8a9690;font-size:9px;font-weight:750}
.flow-steps b{width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:#e4e8e5;color:#75817b;font-size:9px}
.flow-steps span.active{color:var(--forest)}.flow-steps span.active b{background:var(--coral);color:#fff}
.flow-steps span.complete{color:#378264}.flow-steps span.complete b{background:#dceee4;color:#2a7b59}
.flow-steps>i{width:20px;height:1px;background:#d0d7d2}
.owner-security{padding:8px 11px;border:1px solid #ded2e7;border-radius:999px;background:#f3edf7;color:#76558e;font-size:10px}
.controls,.stage-wrap{
  border:1px solid var(--line);border-radius:var(--radius);
  background:rgba(251,250,246,.94);box-shadow:var(--shadow-soft);
}
.controls{height:max-content;padding:20px}
.stage-wrap{padding:17px;min-width:0}
.step{display:flex;align-items:center;gap:11px;margin-bottom:14px}
.step>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#ffe2da;color:#dc5a42;font-size:11px;font-weight:900}
.step>div{display:flex;flex-direction:column}.step strong{font-size:13px}.step small{margin-top:3px;color:#839089;font-size:9px}
.divider{height:1px;margin:20px 0;background:#e1e5e2}
.file-button{
  min-height:94px;height:auto;padding:14px;border:1.5px dashed #b9c7bf;border-radius:15px;
  background:#f2f5f1;color:var(--forest);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  cursor:pointer;text-align:center;
}
.file-button:hover{border-color:#69a98f;background:#edf5f0}
.file-button>span{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#dfe8e2;font-size:18px;margin-bottom:3px}
.file-button b{font-size:12px}.file-button small{color:#819088;font-size:9px;font-weight:500}.file-button input{display:none}
.smart-summary{
  display:flex;gap:10px;align-items:flex-start;padding:11px;border-radius:12px;
  background:#edf4ef;border:1px solid #d8e7dd;
}
.smart-dot{flex:none;width:9px;height:9px;margin-top:4px;border-radius:50%;background:#47b986;box-shadow:0 0 0 4px rgba(71,185,134,.12)}
.smart-summary strong{display:block;color:#275b47;font-size:11px}.smart-summary small{display:block;margin-top:4px;color:#6f857a;font-size:8px;line-height:1.45}
.primary,.secondary{
  min-height:43px;height:auto;border-radius:12px;display:flex;align-items:center;justify-content:center;
  padding:9px 12px;font-size:11px;font-weight:850;text-decoration:none;cursor:pointer;
}
.primary{width:100%;border:0;margin-top:13px;background:var(--forest);color:#fff;box-shadow:0 8px 18px rgba(24,59,49,.12)}
.primary:hover{background:var(--forest-2)}
.secondary{width:100%;margin-top:9px;border:1px solid var(--line-strong);background:#fff;color:var(--forest)}
.secondary:hover{border-color:#8fac9e;background:#f7faf8}
.primary:disabled,.secondary:disabled{opacity:.4;cursor:not-allowed;box-shadow:none}
.controls>label,.advanced-body>label,.advanced-body .field-row label,.advanced-body .two-col label{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:7px;
  margin:12px 0;color:#52645c;font-size:11px;
}
.controls output,.advanced-body output{color:#e05f48;font-variant-numeric:tabular-nums;font-weight:800}
.controls input[type=range],.advanced-body input[type=range]{width:100%;accent-color:var(--coral)}
.field-row,.two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.field-row label.check{justify-content:flex-start}
input[type=color]{width:39px;height:29px;border:0;padding:0;background:transparent}
input[type=number],select,.text-input{
  width:100%;height:38px;border:1px solid var(--line-strong);border-radius:9px;
  padding:0 10px;background:#fff;color:var(--ink);
}
.advanced-settings{margin-top:12px;border:1px solid #dfe4e0;border-radius:12px;background:#f6f7f4;overflow:hidden}
.advanced-settings summary{
  min-height:48px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;
  cursor:pointer;list-style:none;color:#465850;
}
.advanced-settings summary::-webkit-details-marker{display:none}
.advanced-settings summary span{display:flex;flex-direction:column}.advanced-settings summary b{font-size:10px}.advanced-settings summary small{margin-top:3px;color:#87928d;font-size:8px}
.advanced-settings summary i{font-style:normal;transition:transform .18s ease}.advanced-settings[open] summary i{transform:rotate(180deg)}
.advanced-body{padding:2px 12px 11px;border-top:1px solid #e1e5e2;background:#fff}
.message{margin:9px 0 0;color:#77847e;font-size:10px;line-height:1.55;word-break:break-word}
.message.error{color:var(--danger)}.message.estimate{padding:9px 10px;border:1px solid #dde3de;border-radius:9px;background:#f1f4f1;color:#53665d}
.message.estimate strong{color:#e25f47}
.stage-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 2px 13px}
.stage-head>div:first-child{display:flex;flex-direction:column;gap:4px}.stage-head strong{font-size:12px}.stage-head small{color:#85918b;font-size:8px}
.stage-head>span,.privacy-note{color:#71817a;font-size:9px}
.stage,.video-stage{
  min-height:500px;border:1px solid #e0e4e1;border-radius:16px;
  display:grid;place-items:center;overflow:auto;position:relative;background-color:#e4e9e6;
}
.stage{background:#edf0ed}
.stage canvas{max-width:100%;max-height:720px;cursor:crosshair;display:none}
.stage:not(.empty) canvas{display:block}
.empty-copy{max-width:390px;padding:28px;display:flex;flex-direction:column;align-items:center;text-align:center;color:#76847d;gap:8px}
.empty-copy>span{width:47px;height:47px;border-radius:16px;display:grid;place-items:center;background:#dfe7e1;color:#39735c;font-size:23px}
.empty-copy strong{color:#33473e;font-size:12px}.empty-copy small{font-size:9px}.empty-copy em{font-style:normal;color:#9aa49f;font-size:8px}
.stage.drag-over,.video-stage.drag-over,.ai-image-stage.drag-over{border-color:var(--coral);box-shadow:inset 0 0 0 3px rgba(255,107,80,.12);background-color:#fff4f0}
.stage:not(.empty) .empty-copy,.video-stage:not(.empty) .empty-copy{display:none}
.checker{
  background-color:#e3e8e5;
  background-image:linear-gradient(45deg,#cbd3cf 25%,transparent 25%),linear-gradient(-45deg,#cbd3cf 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#cbd3cf 75%),linear-gradient(-45deg,transparent 75%,#cbd3cf 75%);
  background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0;
}
.result-card{margin-top:14px;padding:13px;border:1px solid var(--line);border-radius:14px;background:#fff}
.tip{margin-top:14px;padding:11px 13px;border:0;border-radius:12px;background:#edf4ef;color:#61746b;font-size:10px}
.tip strong{color:#315e4b}.tip p{margin:4px 0 0;line-height:1.55}

/* Video, AI and result components */
.video-stage{min-height:520px}.video-stage img{max-width:100%;max-height:720px;display:none}.video-stage:not(.empty) img{display:block}
.preview-switch{display:flex;padding:3px;border:1px solid var(--line);border-radius:9px;background:#eef1ee}
.preview-switch button{height:29px;padding:0 10px;border:0;border-radius:7px;background:transparent;color:#76837d;font-size:9px;font-weight:800;cursor:pointer}
.preview-switch button.active{background:#fff;color:var(--forest);box-shadow:0 2px 8px rgba(35,48,43,.08)}
.access-gate{margin-bottom:18px;padding:15px;border:1px solid #ded1e8;border-radius:15px;background:linear-gradient(145deg,#f4eef8,#fbfaf6)}
.access-gate strong{color:#6f4e85}.access-gate small{color:#85768e}
.quick-flow-card{
  margin:0 0 19px;padding:14px;border:1px solid #f0c6ba;border-radius:15px;
  background:linear-gradient(145deg,#fff5f0,#fbfaf6);box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}
.motion-builder{margin-bottom:14px}
.motion-canvas{
  position:relative;min-height:520px;overflow:hidden;border:1px solid #d9dfdb;border-radius:20px;
  background-color:#f3f5f1;
  background-image:radial-gradient(#ccd6cf 1px,transparent 1px);
  background-size:20px 20px;
}
.motion-canvas::before{
  content:"";position:absolute;inset:50% auto auto 50%;width:390px;height:390px;
  border:1px dashed #cdd8d1;border-radius:50%;transform:translate(-50%,-50%);
}
.motion-source{
  position:absolute;z-index:3;left:50%;top:50%;width:230px;height:285px;transform:translate(-50%,-50%);
  display:grid;place-items:center;overflow:hidden;border:2px solid #fff;border-radius:24px;
  background:#e4e9e6;box-shadow:0 18px 45px rgba(38,58,49,.16);cursor:pointer;
}
.motion-source img{display:none;width:100%;height:100%;object-fit:contain;background:var(--checker,#e3e8e5)}
.motion-source.has-image img{display:block}.motion-source.has-image #motionSourceEmpty{display:none}
.motion-source>span{padding:24px;display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;color:#5f7168}
.motion-source>span b{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:#d8e4dc;color:#2f7458;font-size:24px}
.motion-source>span strong{font-size:13px}.motion-source>span small{font-size:9px;color:#829088}
.motion-source>em{
  position:absolute;left:50%;bottom:9px;transform:translateX(-50%);padding:5px 9px;border-radius:999px;
  background:rgba(24,59,49,.82);color:#fff;font-size:8px;font-style:normal;white-space:nowrap;
}
.motion-node{
  position:absolute;z-index:4;width:136px;min-height:72px;padding:11px 12px;
  display:grid;grid-template-columns:25px 1fr;gap:2px 8px;align-items:center;text-align:left;
  border:1px solid #cad5ce;border-radius:15px;background:rgba(255,255,255,.94);color:#405249;
  box-shadow:0 8px 22px rgba(37,57,48,.08);cursor:pointer;transition:.18s ease;
}
.motion-node:hover{transform:translateY(-2px);border-color:#e58a76;box-shadow:0 12px 26px rgba(60,48,43,.12)}
.motion-node>span{grid-row:1/3;width:25px;height:25px;border-radius:8px;display:grid;place-items:center;background:#e5ebe7;color:#60726a;font-size:8px;font-weight:900}
.motion-node strong{font-size:11px}.motion-node small{color:#87938d;font-size:8px}
.motion-node.active{border-color:#ef7c65;background:#fff4ef;box-shadow:0 10px 26px rgba(232,99,74,.14)}
.motion-node.active>span{background:var(--coral);color:#fff}.motion-node.active strong{color:#d85740}
.motion-node.custom{border-style:dashed}.motion-node.custom>span{font-size:16px;background:#eee5f4;color:#76528b}
.node-top{left:50%;top:22px;transform:translateX(-50%)}.node-top:hover{transform:translate(-50%,-2px)}
.node-right{right:22px;top:50%;transform:translateY(-50%)}.node-right:hover{transform:translateY(calc(-50% - 2px))}
.node-bottom{left:50%;bottom:22px;transform:translateX(-50%)}.node-bottom:hover{transform:translate(-50%,-2px)}
.node-left{left:22px;top:50%;transform:translateY(-50%)}.node-left:hover{transform:translateY(calc(-50% - 2px))}
.node-custom{right:35px;bottom:37px}
.motion-line{position:absolute;z-index:1;left:50%;top:50%;height:1px;background:#bac8bf;transform-origin:left center}
.line-top{width:124px;transform:rotate(-90deg)}.line-right{width:160px}.line-bottom{width:124px;transform:rotate(90deg)}
.line-left{width:160px;transform:rotate(180deg)}.line-custom{width:190px;transform:rotate(38deg);background:#d3bfdc}
.motion-selection{
  margin-top:10px;padding:11px 13px;display:grid;grid-template-columns:auto 1fr;gap:3px 10px;
  border:1px solid #e0e5e1;border-radius:12px;background:#fff;
}
.motion-selection>span{grid-row:1/3;padding:5px 7px;border-radius:8px;background:#fff0ea;color:#db6048;font-size:8px;font-weight:900}
.motion-selection strong{font-size:10px}.motion-selection small{color:#819088;font-size:8px}
.custom-motion-panel{
  margin-top:10px;padding:14px;border:1px solid #d9cbe2;border-radius:14px;background:#f8f3fa;
}
.custom-motion-panel>div{display:flex;flex-direction:column;gap:4px}.custom-motion-panel>div strong{color:#68477a;font-size:11px}.custom-motion-panel>div small{color:#85778d;font-size:8px}
.custom-motion-panel label{display:flex;flex-direction:column;gap:6px;margin-top:11px;color:#66566f;font-size:9px}
.custom-motion-panel textarea{width:100%;resize:vertical;border:1px solid #d7c9df;border-radius:10px;padding:10px;background:#fff;color:#35483f;font:inherit;line-height:1.55}
.motion-quick-actions{
  margin-top:10px;padding:13px;border:1px solid #ecd1c7;border-radius:14px;background:#fff8f4;
  display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:5px 14px;align-items:center;
}
.motion-quick-actions .check{font-size:9px;color:#6e5f58}.motion-quick-actions .primary{margin:0}
.motion-quick-actions>small{grid-column:1/-1;color:#8b766d;font-size:8px}
.quick-frame-host{margin-top:14px}.quick-frame-host .frame-editor{margin-top:0;border-color:#b9dec9;background:#fff}
.quick-flow-title{display:flex;align-items:center;gap:10px}
.quick-flow-title>span{
  flex:none;padding:4px 7px;border-radius:999px;background:var(--coral);color:#fff;
  font-size:8px;font-weight:900;letter-spacing:.08em;
}
.quick-flow-title>div{display:flex;flex-direction:column;gap:3px}
.quick-flow-title strong{color:#4b3e38;font-size:11px}.quick-flow-title small{color:#8c746b;font-size:8px}
.quick-flow-route{
  margin-top:11px;display:flex;align-items:center;justify-content:space-between;gap:4px;
  color:#9a6a5e;font-size:8px;font-weight:800;white-space:nowrap;
}
.quick-flow-route span{padding:5px 6px;border-radius:7px;background:rgba(255,255,255,.78)}
.quick-flow-route i{font-style:normal;color:#d89b8d}
.quick-generate{background:linear-gradient(135deg,#e75e47,#ff826b);box-shadow:0 10px 22px rgba(231,94,71,.2)}
.quick-generate:hover{background:linear-gradient(135deg,#d94f39,#f16f59)}
.quick-flow-status{
  margin-bottom:14px;padding:14px 15px;border:1px solid #e0d6e7;border-radius:14px;
  background:linear-gradient(145deg,#faf6fc,#fffaf6);
}
.quick-status-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.quick-status-head>div{display:flex;align-items:center;gap:9px}
.quick-status-head span{padding:4px 7px;border-radius:999px;background:#ece2f3;color:#76538e;font-size:8px;font-weight:900}
.quick-status-head strong{font-size:11px;color:#4f4058}
.quick-progress{display:flex;align-items:center;margin-top:13px;gap:7px}
.quick-progress span{display:flex;align-items:center;gap:6px;color:#9a929d;font-size:8px;font-weight:800;white-space:nowrap}
.quick-progress span b{width:21px;height:21px;border-radius:50%;display:grid;place-items:center;background:#e8e5e8;color:#8a838d;font-size:8px}
.quick-progress>i{flex:1;min-width:10px;height:1px;background:#ded8e0}
.quick-progress span.active{color:#684778}.quick-progress span.active b{background:#75518a;color:#fff}
.quick-progress span.complete{color:#2f7c5c}.quick-progress span.complete b{background:#dcefe5;color:#287453}
.quick-flow-status[data-stage="ready"]{border-color:#b9dec9;background:linear-gradient(145deg,#eef8f2,#fbfaf6)}
.quick-flow-status[data-stage="error"]{border-color:#efb7aa;background:#fff4f1}
.quick-flow-status>p{margin:10px 0 0;color:#7e7283;font-size:9px;line-height:1.55}
.quick-flow-status[data-stage="ready"]>p{color:#397358}.quick-flow-status[data-stage="error"]>p{color:#bc4d3b}
.ai-locked .controls>:not(.access-gate){opacity:.34;filter:grayscale(.25);pointer-events:none;user-select:none}
.ai-locked>.stage-wrap{opacity:1;filter:none;pointer-events:none;user-select:none}
.ai-locked>.stage-wrap>*{opacity:.43}
.ai-locked>.stage-wrap .stage-head{opacity:1}
.model-card{border:1px solid #d9cde3;background:#f5f0f7}.model-card strong{color:#6e4a83}.model-card span{color:#7c6d85}
.preset-button{border:1px solid var(--line);background:#fff;color:#6d7973}.preset-button.active{border-color:#e77b66;background:#fff1ec;color:#d95c44;box-shadow:none}
.prompt-editor,.history-panel{border-color:var(--line);background:#fff}
.prompt-editor textarea{color:#35483f}.history-settings{background:#f0f3f0}.history-settings input{background:#fff;color:var(--ink);border-color:var(--line)}
.history-item{border-color:var(--line);background:#f9faf8}.history-actions a,.history-actions button{border-color:var(--line);background:#fff;color:var(--forest)}
.history-badge{background:#e5f2ea;color:#287453}
.mini-button{border:1px solid var(--line-strong);background:#fff;color:var(--forest)}.mini-button:hover{border-color:#8fac9e}
.transparent-result,.frame-editor{border-color:var(--line);background:#fff}
.transparent-head small,.transparent-head>span{color:#7a8780}
.crop-controls,.playback-controls{background:#f5f7f4;border-color:var(--line)}
.frame-thumb{background:#fff;border-color:var(--line)}.frame-thumb.selected{border-color:var(--coral);box-shadow:0 0 0 2px rgba(255,107,80,.14)}

/* Footer */
.site-footer{
  margin-top:44px;padding:25px 4px 0;border-top:1px solid var(--line);
  display:flex;justify-content:space-between;gap:24px;color:#7c8882;font-size:9px;
}
.site-footer>div{display:flex;align-items:center;gap:14px}.site-footer strong{color:var(--forest);font-size:13px}

@media(max-width:1050px){
  .hero{gap:34px}.hero-visual{min-height:310px}.preview-canvas{height:205px}
  .workspace{grid-template-columns:300px minmax(0,1fr)}
  .flow-steps{display:none}
}
@media(max-width:850px){
  .topbar{padding:0 16px}.top-nav>button:not(.owner-entry),.local-pill{display:none}
  main{padding:0 14px 45px}
  .hero{grid-template-columns:1fr;padding:38px 0 30px;gap:28px}
  .hero h1{font-size:42px}.hero-visual{min-height:300px;max-width:600px;width:100%;margin:auto}
  .tool-cards{grid-template-columns:1fr}
  .tool-card{min-height:92px}
  .tabs{top:79px;overflow-x:auto;justify-content:flex-start;scrollbar-width:none}
  .tabs::-webkit-scrollbar{display:none}.tabs-label{display:none}.tab{flex:none}.tab.owner-tab{margin-left:0}
  .workspace.active{grid-template-columns:1fr}.workspace-intro{align-items:flex-start}
  .controls{order:1}.stage-wrap{order:2}
  .stage,.video-stage{min-height:390px}
  .section-heading{align-items:flex-start}.section-heading>p{display:none}
  .site-footer,.site-footer>div{flex-direction:column;align-items:flex-start}.site-footer{gap:12px}.site-footer>div{gap:6px}
  .motion-canvas{min-height:500px}
}
@media(max-width:520px){
  .brand small{display:none}.topbar{height:64px}
  .hero{padding-top:29px}.hero h1{font-size:35px;line-height:1.13}.hero-copy>p:not(.eyebrow){font-size:13px}
  .hero-actions{display:grid}.hero-actions button{width:100%}
  .trust-row{gap:8px 12px}.hero-visual{min-height:250px}.preview-window{inset:6px 5px 12px 8px;padding:12px}.preview-canvas{height:168px}
  .frame-strip{display:none}.sprite-demo{transform:scale(.8)}
  .floating-chip{padding:8px 9px}.chip-clean{right:0}.chip-ready{left:0}
  .task-section{padding-top:0}.section-heading h2{font-size:21px}
  .tool-card{grid-template-columns:43px minmax(0,1fr) auto;padding:13px}.tool-icon{width:43px;height:43px}.tool-card>b{display:none}
  .tabs{margin-top:18px}.tab{padding:0 11px}.tab span{font-size:10px}
  .workspace{padding-top:12px}.workspace-intro{padding:10px 2px 0}.workspace-intro h2{font-size:21px}.workspace-intro p{line-height:1.5}
  .controls,.stage-wrap{border-radius:17px}.controls{padding:16px}.stage-wrap{padding:12px}
  .field-row,.two-col,.history-settings{grid-template-columns:1fr}
  .stage,.video-stage{min-height:310px}.stage-head{align-items:flex-start}.privacy-note{display:none}
  .result-card,.ai-preview-grid,.result-actions{grid-template-columns:1fr}
  .quick-flow-route{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr}.quick-flow-route span{text-align:center;padding:5px 3px}
  .quick-progress{display:grid;grid-template-columns:1fr 1fr;gap:8px}.quick-progress>i{display:none}.quick-progress span{white-space:normal}
  .motion-canvas{min-height:500px}.motion-canvas::before{width:300px;height:300px}
  .motion-source{width:150px;height:205px;border-radius:18px}
  .motion-node{width:104px;min-height:57px;padding:8px;grid-template-columns:20px 1fr;gap:1px 5px}
  .motion-node>span{width:20px;height:20px}.motion-node strong{font-size:9px}.motion-node small{font-size:7px}
  .node-top{top:14px}.node-bottom{bottom:14px}.node-left{left:5px}.node-right{right:5px}.node-custom{right:7px;bottom:79px}
  .line-left,.line-right{width:105px}.line-top,.line-bottom{width:105px}.line-custom{width:130px}
  .motion-quick-actions{grid-template-columns:1fr}.motion-quick-actions>small{grid-column:1}
  .preview-switch button{padding:0 7px}
}

/* 2026-07 commercial polish */
.hero-workflow-art{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.015);transition:transform .55s ease}
.preview-window:hover .hero-workflow-art{transform:scale(1.045)}
.preview-window{overflow:hidden}
.frame-strip i{overflow:hidden}
.frame-strip i::before{
  content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 30%,rgba(95,209,160,.16),transparent 70%);
  transform:translateX(-100%);animation:frameScan 3.6s ease-in-out infinite;
}
.frame-strip i:nth-child(2)::before{animation-delay:.18s}.frame-strip i:nth-child(3)::before{animation-delay:.36s}
.frame-strip i:nth-child(4)::before{animation-delay:.54s}.frame-strip i:nth-child(5)::before{animation-delay:.72s}.frame-strip i:nth-child(6)::before{animation-delay:.9s}

.product-proof{
  margin-top:16px;padding:10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;
  border:1px solid var(--line);border-radius:18px;background:rgba(251,250,246,.72);
}
.product-proof article{min-width:0;padding:13px 14px;display:flex;align-items:center;gap:12px;border-radius:13px;transition:background .18s ease,transform .18s ease}
.product-proof article:hover{background:#fff;transform:translateY(-1px)}
.product-proof article>span{
  flex:none;width:31px;height:31px;border-radius:10px;display:grid;place-items:center;
  background:#e7efe9;color:#39715a;font-size:9px;font-weight:950;
}
.product-proof article:nth-child(2)>span{background:#fff0ea;color:#db6048}
.product-proof article:nth-child(3)>span{background:#eee7f5;color:#75538c}
.product-proof strong,.product-proof small{display:block}.product-proof strong{font-size:11px}.product-proof small{margin-top:4px;color:#7a8881;font-size:8px;line-height:1.45}

.ai-side-upload{min-height:76px}
.ai-model-settings .advanced-body>label{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:12px 0;color:#52645c;font-size:10px}
.ai-model-settings .preset-grid{margin-top:10px}
.ai-model-settings .secondary{margin-top:8px}

.motion-builder{position:relative}
.motion-canvas{isolation:isolate;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.motion-canvas::after{
  content:"";position:absolute;z-index:0;inset:0;pointer-events:none;
  background:radial-gradient(circle at 50% 50%,rgba(95,209,160,.10),transparent 31%),linear-gradient(130deg,transparent 30%,rgba(255,255,255,.45),transparent 70%);
}
.motion-source{
  width:230px;height:285px;transition:width .26s ease,height .26s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.motion-source:hover{transform:translate(-50%,-50%) scale(1.012);box-shadow:0 22px 50px rgba(38,58,49,.2)}
.motion-source.drag-over{
  border-color:var(--coral);box-shadow:0 0 0 5px rgba(255,107,80,.15),0 22px 50px rgba(38,58,49,.2);background:#fff5f1;
}
.motion-source.drag-over::after{
  content:"松开即可上传";position:absolute;z-index:5;inset:10px;display:grid;place-items:center;
  border:2px dashed var(--coral);border-radius:17px;background:rgba(255,248,244,.9);color:#d95841;font-size:12px;font-weight:900;
}
.motion-source.has-image{background-color:#e5eae7;background-image:linear-gradient(45deg,#cfd7d3 25%,transparent 25%),linear-gradient(-45deg,#cfd7d3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#cfd7d3 75%),linear-gradient(-45deg,transparent 75%,#cfd7d3 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}
.motion-source img{background:transparent}
.motion-node{backdrop-filter:blur(12px)}
.motion-node.active::after{
  content:"";position:absolute;inset:-5px;border:1px solid rgba(239,124,101,.33);border-radius:19px;
  animation:motionPulse 2.1s ease-out infinite;pointer-events:none;
}
.motion-line{overflow:hidden}
.quick-flow-status[data-stage="generating"] .quick-progress span.active b,
.quick-flow-status[data-stage="registering"] .quick-progress span.active b,
.quick-flow-status[data-stage="processing"] .quick-progress span.active b{animation:statusPulse 1.35s ease-in-out infinite}

.ai-result-inspector{
  margin:14px 0;border:1px solid var(--line);border-radius:15px;background:#fff;overflow:hidden;
}
.ai-result-inspector>summary{
  min-height:57px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;
  cursor:pointer;list-style:none;background:#f7f8f5;color:#42564c;
}
.ai-result-inspector>summary::-webkit-details-marker{display:none}
.ai-result-inspector>summary span{display:flex;flex-direction:column;gap:4px}
.ai-result-inspector>summary b{font-size:11px}.ai-result-inspector>summary small{color:#84918a;font-size:8px}
.ai-result-inspector>summary i{font-style:normal;transition:transform .18s ease}
.ai-result-inspector[open]>summary i{transform:rotate(180deg)}
.ai-inspector-body{padding:14px;border-top:1px solid var(--line)}
.ai-inspector-body .prompt-editor{margin-top:12px}

.history-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.history-item{
  display:flex;flex-direction:column;gap:0;padding:0;min-width:0;overflow:hidden;border-radius:14px;background:#f9faf8;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.history-item:hover{transform:translateY(-2px);border-color:#b9c8bf;box-shadow:0 12px 28px rgba(37,57,48,.09)}
.history-video-wrap{position:relative;aspect-ratio:16/9;overflow:hidden;background-color:#e4e9e6;background-image:linear-gradient(45deg,#cbd3cf 25%,transparent 25%),linear-gradient(-45deg,#cbd3cf 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#cbd3cf 75%),linear-gradient(-45deg,transparent 75%,#cbd3cf 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}
.history-video{width:100%;height:100%;display:block;object-fit:contain;background:#dfe5e1}
.history-video-state{height:100%;display:grid;place-items:center;padding:20px;text-align:center;background:linear-gradient(145deg,#f4f0f6,#f6f8f5);color:#735a7d;font-size:10px;font-weight:850}
.history-video-state.failed{background:#fff1ee;color:#bb4f40}
.history-content{padding:12px;display:flex;flex-direction:column;gap:10px;min-height:0}
.history-main{gap:5px}.history-title strong{font-size:11px}
.history-actions{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
.history-actions .primary-history{border-color:#2d6754;background:var(--forest);color:#fff}
.history-actions .primary-history:hover{background:var(--forest-2)}
.rich-empty{grid-column:1/-1;margin:0;padding:16px;display:flex;align-items:center;justify-content:center;gap:18px;text-align:left;border:1px dashed #cbd5cf;border-radius:14px;background:#f8f9f6}
.rich-empty img{width:112px;height:84px;object-fit:cover;border-radius:12px}.rich-empty p{max-width:280px;margin:0;color:#738078;font-size:10px;line-height:1.6}

.delivery-guide{
  margin-top:54px;padding:28px 34px;display:grid;grid-template-columns:230px minmax(0,1fr);align-items:center;gap:34px;
  border:1px solid #cfdbd3;border-radius:26px;background:linear-gradient(135deg,#edf5ef,#fbfaf6 64%);box-shadow:var(--shadow-soft);overflow:hidden;
}
.delivery-guide img{width:230px;height:190px;object-fit:cover;border-radius:22px;box-shadow:0 18px 36px rgba(32,54,45,.12);transform:rotate(-2deg)}
.delivery-guide span{color:#d85f48;font-size:9px;font-weight:950;letter-spacing:.16em}
.delivery-guide h2{margin:8px 0 9px;font-family:"Songti SC","STSong",Georgia,serif;font-size:28px;letter-spacing:-.04em}
.delivery-guide p{max-width:720px;margin:0;color:#64746c;font-size:11px;line-height:1.75}
.delivery-guide button{margin-top:16px;min-height:42px;padding:0 17px;border:0;border-radius:999px;background:var(--forest);color:#fff;font-size:10px;font-weight:900;cursor:pointer}
.delivery-guide button:hover{background:var(--forest-2);transform:translateY(-1px)}.delivery-guide button b{margin-left:7px}

.primary,.secondary,.mini-button,.tool-card,.hero-actions button,.delivery-guide button{transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease,border-color .16s ease}
.primary:not(:disabled):active,.secondary:not(:disabled):active,.mini-button:not(:disabled):active,.hero-actions button:active,.delivery-guide button:active{transform:translateY(1px) scale(.995)}

@keyframes frameScan{0%,45%{transform:translateX(-110%)}70%,100%{transform:translateX(110%)}}
@keyframes motionPulse{0%{opacity:.7;transform:scale(.98)}75%,100%{opacity:0;transform:scale(1.08)}}
@keyframes statusPulse{0%,100%{box-shadow:0 0 0 0 rgba(117,81,138,.25)}50%{box-shadow:0 0 0 6px rgba(117,81,138,0)}}

@media(max-width:850px){
  .product-proof{grid-template-columns:1fr}.product-proof article{padding:10px 12px}
  .history-list{grid-template-columns:1fr}
  .delivery-guide{grid-template-columns:170px minmax(0,1fr);padding:24px;gap:24px}
  .delivery-guide img{width:170px;height:150px}
}
@media(max-width:520px){
  .product-proof{padding:7px}.product-proof small{font-size:8px}
  .motion-source{width:150px;height:205px}
  .history-panel{padding:11px}
  .rich-empty{flex-direction:column;text-align:center}.rich-empty img{width:130px;height:95px}
  .delivery-guide{margin-top:34px;grid-template-columns:1fr;padding:19px;text-align:center}
  .delivery-guide img{width:150px;height:132px;margin:auto}.delivery-guide h2{font-size:23px}.delivery-guide button{width:100%}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
