/* 对齐 3d-web 首页视觉 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; min-height: 100%; background: #000; color: #fff; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; overflow-x: hidden; }

.home { width: 100%; min-height: 100vh; background: #000; }

/* ===== header ===== */
.header {
    width: 100%;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 1600;
    background: #000;
}
.header.sticky { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06); }
.dbtop {
    display: flex; align-items: center; justify-content: space-between;
    width: calc(100% - 68px); margin: 0 auto; height: 60px;
}
.dbtopleft {
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 44px;
    flex-shrink: 0;
}
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}
.brand-mark {
    display: block;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    line-height: 1.1;
}
.brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .04em;
    background: linear-gradient(90deg, #f5e6b8 0%, #f0d78c 48%, #d4af69 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.brand-sub {
    font-size: 11px;
    color: rgba(240, 215, 140, .55);
    letter-spacing: .08em;
}
@media (max-width: 720px) {
    .brand-sub { display: none; }
    .brand-name { font-size: 16px; }
    .brand-mark { width: 34px; height: 34px; }
}
.dbtopcenter { display: flex; align-items: center; height: 100%; flex: 1; }
.toptabitem {
    position: relative; cursor: pointer; margin-left: 5%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #767676;
}
.toptabitem .txt { white-space: nowrap; font-weight: 700; font-size: 14px; }
.toptabitem.active { color: #fff; }
.toptabitem .xhx {
    position: absolute; bottom: 20%; width: 15px; height: 4px;
    background: linear-gradient(90deg, #f0d78c 0%, #d4af69 100%);
    border-radius: 8px;
}
.dbtopright { display: flex; align-items: center; gap: 10px; color: #fff; }
.vip,
.login {
    cursor: pointer;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 32px;
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    line-height: 1;
    color: #181818;
    background: linear-gradient(135deg, #d4af69 0%, #f0d78c 100%);
    box-shadow: 0 2px 10px rgba(212, 175, 105, 0.28);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    flex-shrink: 0;
    white-space: nowrap;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}
.vip {
    min-width: 96px;
    padding-left: 14px;
    padding-right: 14px;
}
.login {
    min-width: 72px;
    width: auto;
}
.vip:hover,
.login:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 4px 14px rgba(212, 175, 105, 0.4);
}
.vip:active,
.login:active {
    transform: translateY(0);
    filter: brightness(0.98);
}
/* 兼容旧结构：若仍有 vip 图，强制同高 */
.vip .vipbg {
    display: block;
    height: 32px;
    width: auto;
    max-width: none;
    object-fit: contain;
}
.tx { cursor: pointer; margin-left: 15px; display: flex; align-items: center; position: relative; }

/*
 * 整页切换（图片处理 / 文生图）时服务端 HTML 仍是「登录」；
 * 内联脚本若检测到 localStorage 凭证会加 a3-client-auth，首屏直接显示头像占位，避免闪一下。
 */
html.a3-client-auth .dbtopright #loginBtn.login {
    display: none !important;
}
html.a3-client-auth .dbtopright #userBadge.tx {
    display: flex !important;
}
.avatar-circle {
    width: 42px; height: 42px; border-radius: 50%;
    background: #303030; color: #d4af69;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
}
.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    padding: 14px;
    box-sizing: border-box;
    background: #1a1a1a;
    border: 1px solid rgba(212, 175, 105, 0.28);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    z-index: 1700;
}
.user-menu[hidden] { display: none !important; }
.user-menu-head { margin-bottom: 12px; }
.user-menu-name {
    font-size: 14px; font-weight: 600; color: #fff; line-height: 20px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-menu-id {
    margin-top: 4px;
    font-size: 12px; color: #8a8a8a; line-height: 16px;
}
.user-menu-vip-time {
    margin-top: 6px;
    font-size: 12px; color: #c9a86c; line-height: 16px;
}
.user-menu-vip,
.user-menu-logout {
    height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.user-menu-vip {
    margin-bottom: 8px;
    background: linear-gradient(90deg, #f0d78c 0%, #d4af69 100%);
    color: #3d2e0e;
}
.user-menu-vip:hover { filter: brightness(1.05); }
.user-menu-logout {
    background: #262626;
    color: #d4af69;
    border: 1px solid rgba(212, 175, 105, 0.2);
}
.user-menu-logout:hover { background: #303030; }

/* ===== layout ===== */
.home-content {
    height: calc(100vh - 60px);
    padding: 20px 0 0 34px;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.left-border {
    width: 346px;
    height: calc(100vh - 60px);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(0,0,0,0));
    overflow: hidden;
    display: flex; justify-content: center; align-items: center;
    flex-shrink: 0;
}
.left {
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(23,23,23,1) 0%, rgba(0,0,0,1) 100%);
    background-image: url("/public/images/ai-3d/home/left-bg.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    border-radius: 21px;
    display: flex; flex-direction: column; align-items: center;
}

.type-switch {
    display: flex; justify-content: center; align-items: center;
    margin: 21px 21px 0;
    background: #181818;
    padding: 7px;
    border-radius: 12px;
    width: calc(100% - 42px);
}
.type-switch-bg {
    background: rgba(48,48,48,.01);
    border-radius: 12px;
    display: flex; width: 100%;
}
.type-item {
    flex: 1; line-height: 38px; text-align: center;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; border-radius: 12px;
}
.type-item img { height: 17px; }
.type-item .icon-on { display: none; }
.type-item .icon-off { display: inline-block; }
.type-item.active .icon-on { display: inline-block; }
.type-item.active .icon-off { display: none; }
.type-item div {
    padding-left: 10px; font-weight: 500; font-size: 16px; color: #d8d8d8;
}
.type-item.active { background: #303030; }
.type-item.active div { color: #d4af69; }

.left-content { flex: 1; width: 100%; overflow: hidden; }

/* ===== generation panel ===== */
.generation {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; position: relative;
}
.choose {
    height: 60px; display: flex; justify-content: center; align-items: center;
}
.choose-item {
    width: fit-content; font-weight: 400; font-size: 14px; color: #d8d8d8;
    text-align: center; line-height: 60px; position: relative;
    cursor: pointer; margin: 0 18px;
}
.choose-item.active::after {
    content: "";
    width: 48px; height: 3px;
    background: linear-gradient(270deg, #d4af69 0%, rgba(212,175,105,0) 99.29%);
    border-radius: 19px;
    position: absolute; left: 0; right: 0; bottom: 16px; margin: 0 auto;
}
.conditions {
    flex: 1; overflow: auto;
    display: flex; flex-direction: column; position: relative;
}
.conditions-box { flex: 1; }

.upload-simple-box { padding: 0 21px; margin-bottom: 15px; }
.upload-simple {
    padding: 23px 0;
    background: rgba(255,255,255,.06);
    border-radius: 12px;
    border: 1px dashed #576064;
    cursor: pointer;
}
.upload-simple img { display: block; margin: 0 auto; height: 28px; }
.upload-title1 {
    font-size: 12px; color: #fff; line-height: 18px; text-align: center; padding-top: 10px;
}
.upload-title2 {
    font-size: 12px; color: #848484; line-height: 18px; text-align: center; padding-top: 17px;
}
.simple-img-show {
    height: 152px;
    background: rgba(255,255,255,.06);
    border-radius: 12px;
    border: 1px dashed #576064;
    overflow: hidden; position: relative;
}
.simple-img-show > img { width: 100%; height: 100%; object-fit: contain; }
.remove-btn {
    width: 33px; height: 33px;
    background: rgba(0,0,0,.51);
    position: absolute; top: 8px; right: 8px;
    cursor: pointer;
    display: flex; justify-content: center; align-items: center;
    border-radius: 12px;
}
.remove-btn .remove { width: 17px; height: 17px; }

.upload-double {
    background: #181818;
    border-radius: 13px;
    border: 1px solid rgba(132,132,132,.3);
}
.upload-img-box {
    display: flex; flex-wrap: wrap; justify-content: center; padding-top: 10px;
}
.upload-double-box { margin: 5px; }
.upload-item {
    width: 126px; height: 126px;
    background: rgba(255,255,255,.06);
    border-radius: 12px;
    border: 1px dashed #576064;
    padding: 36px 0; cursor: pointer;
}
.upload-item img {
    width: 14px; height: 24px; margin: 0 auto; display: block; padding-top: 10px;
}
.upload-item p {
    font-weight: 700; font-size: 12px; color: #fff; line-height: 18px;
    text-align: center; padding-top: 12px;
}
.double-img-show {
    width: 126px; height: 126px;
    background: rgba(255,255,255,.06);
    border-radius: 12px;
    border: 1px dashed #576064;
    position: relative;
}
.double-img-show > img { width: 100%; height: 100%; object-fit: contain; }
.upload-double-title {
    font-size: 10px; color: #aaa; line-height: 18px;
    display: flex; align-items: center; padding: 10px 20px 15px;
}

.advice-relative {
    position: relative; display: flex; justify-content: end; align-items: center;
}
.advice {
    padding-top: 10px; display: flex; justify-content: end; align-items: center;
    cursor: pointer; width: fit-content;
}
.advice .tips { font-size: 12px; color: #767676; text-decoration: underline; }
.advice img { width: 13px; margin-right: 3px; display: block; }

.style-box {
    height: 34px; margin: 0 20px 15px;
    display: flex; align-items: center; justify-content: center;
}
.style-title { font-size: 14px; color: #fff; line-height: 18px; }
.style-name { flex: 1; font-size: 12px; color: #fff; }
.style-name .style-icon { width: 47px; margin-left: 8px; display: block; }
.style-select-1 {
    width: 134px; height: 34px; background: #323232; border-radius: 12px;
    display: flex; justify-content: center; align-items: center; cursor: pointer;
}
.style-select-1 .select-name {
    flex: 1; padding-left: 12px; font-size: 12px; color: #fff; line-height: 1.5;
}
.style-select-1 .down { width: 12px; height: 12px; margin: 0 15px 0 6px; }
.switch { width: 40px; margin-left: 6px; cursor: pointer; }

.desc-box {
    margin: 20px 20px 10px;
    background: rgba(255,255,255,.06);
    border-radius: 12px;
    border: 1px dashed #576064;
    padding: 9px;
}
.desc-box textarea {
    width: 100%; height: 135px; border: none; background: transparent;
    font-size: 12px; color: #fff; line-height: 22px; outline: none; resize: none;
    font-family: inherit;
}
.desc-count { text-align: right; font-size: 12px; color: #909598; }

.generation-btn {
    width: 275px; height: 54px; min-height: 54px;
    background: linear-gradient(135deg, #d4af69 0%, #f0d78c 100%);
    border-radius: 12px;
    margin: 35px auto;
    font-weight: 500; font-size: 16px; color: #181818;
    text-align: center; cursor: pointer; border: none;
    position: relative; overflow: hidden; display: block;
}
.generation-btn::before {
    content: "";
    background: linear-gradient(0deg, hsla(0,0%,100%,0), hsla(0,0%,100%,.5), hsla(0,0%,100%,0));
    width: 100%; height: 100%; left: -100%; top: 0;
    position: absolute; transform: skewX(-25deg); z-index: 2;
    transition: left .7s;
}
.generation-btn:hover::before { left: 100%; }
.generation-btn:disabled { opacity: .6; cursor: not-allowed; }

/* dropdowns */
.style-select-bg {
    position: fixed; inset: 0; z-index: 100;
}
.style-select, .module-select {
    width: 134px;
    background: rgba(48,48,48,.74);
    border-radius: 12px;
    position: absolute;
    z-index: 10;
    padding: 13px 7px;
    backdrop-filter: blur(10px);
}
.style-select .select-list { overflow: auto; height: 200px; width: 120px; }
.style-item {
    display: flex; align-items: center; margin-bottom: 6px;
    border-radius: 8px; padding: 6px; cursor: pointer;
}
.style-item img { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; background: #222; }
.style-item span { padding: 0 12px; flex: 1; font-size: 12px; color: #787878; }
.style-item.active, .style-item:hover { background: rgba(71,71,71,.5); }
.style-item.active span, .style-item:hover span { color: #fff; }
.module-option {
    width: 120px; height: 28px; line-height: 28px;
    font-size: 12px; color: #fff; border-radius: 8px; padding-left: 7px; cursor: pointer;
}
.module-option.active, .module-option:hover { background: rgba(71,71,71,.5); }

/* advice pop */
.advice-content {
    position: fixed; z-index: 120;
    width: 280px;
    background: rgba(24,24,24,.95);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 14px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.advice-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.advice-info { font-size: 11px; color: #aaa; line-height: 1.6; margin-bottom: 10px; }
.advice-img-box { display: flex; gap: 10px; align-items: center; }
.advice-img-conent img { width: 80px; border-radius: 8px; }
.advice-item { font-size: 11px; color: #ccc; line-height: 1.7; }
.advice-img-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.advice-img-item img { width: 100%; border-radius: 6px; }
.advice-img-item div { text-align: center; font-size: 11px; color: #999; margin-top: 2px; }

/* ===== right / create records ===== */
.right {
    flex: 1; padding-left: 13px; padding-right: 34px;
    overflow-x: hidden; overflow-y: auto;
    min-width: 0;
}
.right::-webkit-scrollbar { display: none; }

.create-right {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    padding-bottom: 20px;
    box-sizing: border-box;
}
.preview-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(240,215,140,.35), rgba(255,255,255,.08) 28%, rgba(255,255,255,0) 70%);
    padding: 1px;
    box-shadow: 0 18px 48px rgba(0,0,0,.45);
}
.preview-stage > .preview-head,
.preview-stage > .preview-body {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212,175,105,.08), transparent 55%),
        linear-gradient(180deg, #121212 0%, #0a0a0a 100%);
}
.preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 16px 20px;
    border-radius: 21px 21px 0 0;
    border-bottom: 1px solid rgba(212,175,105,.12);
}
.preview-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.preview-download {
    padding: 7px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #d4af69, #f0d78c);
    color: #181818;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(212,175,105,.25);
}
.preview-expand {
    color: #d4af69;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 8px;
    transition: color .2s;
}
.preview-expand:hover { color: #f0d78c; }
.preview-body {
    flex: 1;
    min-height: 0;
    border-radius: 0 0 21px 21px;
    position: relative;
    overflow: hidden;
}
.preview-idle,
.preview-loading {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 24px;
    box-sizing: border-box;
    position: relative;
}
.preview-idle-title {
    color: #f5f0e6;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 10px;
}
.preview-idle-sub {
    color: #8a8a8a;
    font-size: 13px;
    line-height: 1.7;
    max-width: 380px;
}

/* idle visual */
.preview-idle-visual {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 28px;
}
.idle-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(212,175,105,.18);
}
.idle-ring-a {
    animation: idleSpin 12s linear infinite;
    border-top-color: rgba(212,175,105,.55);
    border-right-color: transparent;
}
.idle-ring-b {
    inset: 14px;
    animation: idleSpin 8s linear infinite reverse;
    border-bottom-color: rgba(240,215,140,.45);
    border-left-color: transparent;
}
.idle-cube {
    position: absolute;
    inset: 42px;
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(212,175,105,.2), rgba(255,255,255,.04));
    border: 1px solid rgba(212,175,105,.28);
    box-shadow: inset 0 0 24px rgba(212,175,105,.08);
    transform-style: preserve-3d;
    animation: idleFloat 3.6s ease-in-out infinite;
}
.idle-cube span {
    position: absolute;
    background: rgba(212,175,105,.35);
}
.idle-cube span:nth-child(1) {
    width: 36%; height: 1px; left: 32%; top: 28%;
    box-shadow: 0 22px 0 rgba(212,175,105,.22), 0 44px 0 rgba(212,175,105,.14);
}
.idle-cube span:nth-child(2) {
    width: 1px; height: 36%; top: 32%; left: 28%;
    box-shadow: 22px 0 0 rgba(212,175,105,.22), 44px 0 0 rgba(212,175,105,.14);
}
.idle-cube span:nth-child(3) {
    width: 10px; height: 10px; border-radius: 50%;
    left: 50%; top: 50%; transform: translate(-50%, -50%);
    background: #d4af69;
    box-shadow: 0 0 18px rgba(212,175,105,.65);
}

/* generating scene */
.gen-scene {
    position: relative;
    width: 220px;
    height: 220px;
    margin-bottom: 26px;
}
.gen-glow {
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,105,.28), transparent 68%);
    filter: blur(8px);
    animation: genPulse 2.4s ease-in-out infinite;
}
.gen-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(212,175,105,.15);
}
.gen-orbit::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f0d78c;
    box-shadow: 0 0 12px rgba(240,215,140,.9);
    top: -4px;
    left: calc(50% - 4px);
}
.gen-orbit-1 {
    inset: 18px;
    animation: idleSpin 4.5s linear infinite;
}
.gen-orbit-2 {
    inset: 38px;
    animation: idleSpin 6.5s linear infinite reverse;
    border-style: dashed;
}
.gen-orbit-2::before {
    width: 6px; height: 6px; top: -3px; background: #d4af69;
}
.gen-orbit-3 {
    inset: 58px;
    animation: idleSpin 3.2s linear infinite;
}
.gen-orbit-3::before {
    width: 5px; height: 5px; top: -2.5px;
    background: #fff6d6;
}
.gen-core {
    position: absolute;
    inset: 78px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f0d78c, #b8923f);
    box-shadow:
        0 0 0 1px rgba(255,255,255,.15) inset,
        0 0 32px rgba(212,175,105,.55),
        0 8px 24px rgba(0,0,0,.35);
    animation: genPulse 2.4s ease-in-out infinite;
    overflow: hidden;
}
.gen-core-inner {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff4c8, #d4af69 45%, #8a6a2e 100%);
}
.gen-core-shine {
    position: absolute;
    inset: -40%;
    background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.45) 50%, transparent 60%);
    animation: genShine 2.8s ease-in-out infinite;
}
.gen-scan {
    position: absolute;
    left: 22px; right: 22px;
    height: 2px;
    top: 50%;
    background: linear-gradient(90deg, transparent, rgba(240,215,140,.95), transparent);
    box-shadow: 0 0 16px rgba(240,215,140,.55);
    animation: genScan 2.2s ease-in-out infinite;
}
.gen-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.gen-particles i {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #f0d78c;
    opacity: .0;
    animation: genParticle 2.8s ease-in-out infinite;
}
.gen-particles i:nth-child(1) { left: 18%; top: 22%; animation-delay: 0s; }
.gen-particles i:nth-child(2) { left: 78%; top: 18%; animation-delay: .3s; }
.gen-particles i:nth-child(3) { left: 12%; top: 58%; animation-delay: .6s; }
.gen-particles i:nth-child(4) { left: 86%; top: 52%; animation-delay: .9s; }
.gen-particles i:nth-child(5) { left: 30%; top: 82%; animation-delay: 1.1s; }
.gen-particles i:nth-child(6) { left: 68%; top: 78%; animation-delay: 1.4s; }
.gen-particles i:nth-child(7) { left: 48%; top: 10%; animation-delay: 1.7s; }
.gen-particles i:nth-child(8) { left: 52%; top: 90%; animation-delay: 2s; }

.gen-progress {
    width: min(280px, 70%);
    height: 4px;
    border-radius: 99px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
    margin-top: 18px;
}
.gen-progress-bar {
    height: 100%;
    width: 18%;
    border-radius: 99px;
    background: linear-gradient(90deg, #b8923f, #f0d78c, #d4af69);
    background-size: 200% 100%;
    animation: genBar 2.4s ease-in-out infinite, genBarFlow 1.6s linear infinite;
    box-shadow: 0 0 12px rgba(212,175,105,.45);
}
.gen-steps {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.gen-steps span {
    min-width: 48px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    color: #666;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    transition: all .35s ease;
}
.gen-steps span.on {
    color: #1a1408;
    background: linear-gradient(135deg, #d4af69, #f0d78c);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(212,175,105,.28);
}

.preview-ready {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.preview-viewer {
    position: relative;
    flex: 1;
    min-height: 0;
    background:
        radial-gradient(ellipse at center, rgba(212,175,105,.06) 0%, transparent 45%),
        radial-gradient(ellipse at center, #161616 0%, #080808 72%);
}
.preview-tip {
    flex-shrink: 0;
    text-align: center;
    padding: 11px;
    font-size: 12px;
    color: #7a7a7a;
    border-top: 1px solid rgba(212,175,105,.1);
    letter-spacing: .02em;
}

@keyframes idleSpin {
    to { transform: rotate(360deg); }
}
@keyframes idleFloat {
    0%, 100% { transform: translateY(0) rotateX(12deg) rotateY(-18deg); }
    50% { transform: translateY(-8px) rotateX(18deg) rotateY(-8deg); }
}
@keyframes genPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: .88; }
}
@keyframes genShine {
    0% { transform: translateX(-30%) rotate(18deg); }
    100% { transform: translateX(30%) rotate(18deg); }
}
@keyframes genScan {
    0%, 100% { transform: translateY(-58px); opacity: .2; }
    50% { transform: translateY(58px); opacity: 1; }
}
@keyframes genParticle {
    0%, 100% { opacity: 0; transform: translateY(0) scale(.6); }
    40% { opacity: .9; }
    100% { opacity: 0; transform: translateY(-18px) scale(1.2); }
}
@keyframes genBar {
    0% { width: 12%; }
    50% { width: 78%; }
    100% { width: 12%; }
}
@keyframes genBarFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .idle-ring-a, .idle-ring-b, .idle-cube,
    .gen-orbit, .gen-core, .gen-glow, .gen-core-shine, .gen-scan,
    .gen-particles i, .gen-progress-bar {
        animation: none !important;
    }
}

/* ===== home discover（首页 Banner + 素材） ===== */
.home-discover {
    height: calc(100vh - 60px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px 34px 40px;
    box-sizing: border-box;
}
.home-discover::-webkit-scrollbar { width: 0; height: 0; }
.home-banner { margin-bottom: 24px; }
.home-hero {
    position: relative;
    height: min(42vh, 360px);
    min-height: 240px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    background: #0a0a0a;
    box-shadow: 0 18px 48px rgba(0,0,0,.4);
}
.home-hero-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.home-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .55s ease;
}
.home-hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.home-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-hero-img {
    background-size: cover;
    background-position: center;
}
.home-hero-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 48%, rgba(0,0,0,.15) 100%),
        linear-gradient(180deg, transparent 50%, rgba(0,0,0,.35) 100%);
}
.home-hero-copy {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 56px;
    max-width: 560px;
}
.home-hero-kicker {
    font-size: 12px;
    letter-spacing: .18em;
    color: rgba(240,215,140,.75);
    margin-bottom: 10px;
    font-weight: 600;
}
.home-hero-title {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 800;
    color: #f5e6b8;
    line-height: 1.15;
    margin: 0 0 12px;
}
h1.home-hero-title {
    font: inherit;
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 800;
}
/* 非首页主标题：仅供爬虫识别，不影响版式 */
.a3-seo-h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.home-hero-desc {
    font-size: 14px;
    color: rgba(255,255,255,.78);
    line-height: 1.7;
    margin-bottom: 22px;
}
.home-hero-btn {
    width: fit-content;
    border: 0;
    cursor: pointer;
    padding: 11px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1408;
    background: linear-gradient(135deg, #d4af69, #f0d78c);
    box-shadow: 0 8px 22px rgba(212,175,105,.3);
}
.home-hero-dots {
    position: absolute;
    left: 56px;
    bottom: 22px;
    z-index: 3;
    display: flex;
    gap: 8px;
}
.home-hero-dots button {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: rgba(255,255,255,.28);
    transition: width .25s ease, background .25s ease;
}
.home-hero-dots button.is-active {
    width: 22px;
    background: #f0d78c;
}
.home-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(240, 215, 140, .22);
    background: rgba(12, 10, 6, .42);
    color: rgba(245, 230, 184, .88);
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.home-hero-nav svg {
    display: block;
    flex-shrink: 0;
}
.home-hero-nav.prev { left: 16px; }
.home-hero-nav.next { right: 16px; }
.home-hero-nav:hover {
    background: rgba(28, 22, 10, .72);
    border-color: rgba(240, 215, 140, .55);
    color: #f5e6b8;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .36);
}
.home-hero-nav:active {
    transform: translateY(-50%) scale(.96);
}

.home-materials .right-title { margin-bottom: 4px; }
.home-tools {
    margin-bottom: 32px;
}
.home-tools-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.home-tools-hint {
    font-size: 12px;
    color: #6e6e6e;
    letter-spacing: .02em;
}
.home-tools-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.home-tool-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 18px;
    min-height: 168px;
    background-color: #0c0c0c;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(240, 215, 140, .22);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .55),
        0 10px 28px rgba(0, 0, 0, .38);
    isolation: isolate;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.home-tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 215, 140, .48);
    box-shadow:
        0 0 0 1px rgba(240, 215, 140, .12),
        0 16px 36px rgba(0, 0, 0, .45);
}
.home-tool-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
    z-index: 0;
}
.home-tool-card:hover .home-tool-media {
    transform: scale(1.05);
}
.home-tool-mask {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .55) 48%, rgba(0, 0, 0, .86) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, .2) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, .2) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
    pointer-events: none;
}
.home-tool-copy {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 16px 16px 18px;
}
.home-tool-index {
    font-size: 11px;
    letter-spacing: .16em;
    color: rgba(240,215,140,.7);
    margin-bottom: 6px;
    font-weight: 600;
}
.home-tool-name {
    font-size: 15px;
    font-weight: 700;
    color: #f0d78c;
    margin-bottom: 4px;
    line-height: 1.25;
}
.home-tool-name.title1 { color: #d4c4ff; }
.home-tool-name.title2 { color: #ffc39a; }
.home-tool-name.title3 { color: #f0d78c; }
.home-tool-desc {
    font-size: 12px;
    color: rgba(255,255,255,.78);
    line-height: 1.5;
}
@media (max-width: 980px) {
    .home-hero { height: 280px; }
    .home-hero-copy { padding: 0 44px; }
    .home-hero-dots { left: 44px; }
    .home-tools-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .home-hero { min-height: 220px; height: 52vw; }
    .home-hero-copy { padding: 0 20px; max-width: 100%; }
    .home-hero-dots { left: 20px; bottom: 16px; }
    .home-hero-nav { display: none; }
    .home-tools-row { grid-template-columns: 1fr 1fr; }
    .home-tools-hint { display: none; }
}
.material-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 16px;
}
.material-item {
    position: relative;
    aspect-ratio: 1 / 1.2;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #111;
}
.material-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}
.material-item:hover img { transform: scale(1.04); }
.material-item .material-name {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 28px 10px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,.8));
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.material-empty {
    color: #787878;
    font-size: 14px;
    text-align: center;
    padding: 48px 0;
}
.material-more {
    margin: 24px auto 0;
    width: 140px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 12px;
    background: #171717;
    color: #d4af69;
    font-size: 13px;
    cursor: pointer;
}
.material-more:hover { background: #303030; }

.a3-page-footer {
    margin-top: 48px;
    padding: 20px 0 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}
.a3-page-footer-copy {
    font-size: 12px;
    line-height: 1.6;
    color: #787878;
}
.a3-page-footer-copy a {
    color: #787878;
    text-decoration: none;
}
.a3-page-footer-copy a:hover {
    color: #a0a0a0;
}
.a3-page-footer-kefu-trigger {
    color: #d4af69;
    text-decoration: none;
    cursor: pointer;
}
.a3-page-footer-kefu-trigger:hover {
    color: #f0d78c;
}
.a3-page-footer-kefu {
    position: relative;
    display: inline-block;
}
.a3-page-footer-kefu-pop {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: #171717;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
    z-index: 20;
    white-space: nowrap;
}
.a3-page-footer-kefu-pop::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 10px;
    height: 10px;
    background: #171717;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(-50%) rotate(45deg);
}
.a3-page-footer-kefu-pop img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    background: #fff;
    display: block;
}
.a3-page-footer-kefu-pop span {
    font-size: 12px;
    color: #b0b0b0;
}
.a3-page-footer-kefu:hover .a3-page-footer-kefu-pop,
.a3-page-footer-kefu:focus-within .a3-page-footer-kefu-pop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 1200px) {
    .material-list { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
    .material-list { grid-template-columns: repeat(2, 1fr); }
    .home-discover { padding: 16px 16px 32px; }
}

.right-top { padding-right: 34px; }
.top-list {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.top-list.top { margin-top: 13px; }
.top-item-border {
    overflow: hidden;
    display: flex; justify-content: center; align-items: center;
    background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,0));
    position: relative;
}
.top-bg-black {
    background: #000;
    width: calc(100% - 2px); height: calc(100% - 2px);
    border-radius: 16px;
    display: flex; justify-content: center; align-items: center;
    position: absolute; top: 1px; left: 1px;
}
.top-item {
    width: calc(100% - 2px); height: calc(100% - 2px);
    border-radius: 16px;
    display: flex; justify-content: center; align-items: center;
    position: absolute; top: 1px; left: 1px;
    cursor: pointer;
}
.top-left {
    padding-left: 33px; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
}
.top-title {
    font-weight: 800; font-size: 20px; color: #d4af69; line-height: 1.4;
}
.top-title.title1 { color: #9776ff; }
.top-title.title2 { color: #ffa776; }
.top-title.title3 { color: #e8c56a; }
.top-info {
    padding-top: 6%; font-weight: 400; font-size: 13px; color: #fff; line-height: 1.6;
}
.top-left > img {
    cursor: pointer; display: block; width: fit-content; height: 16.5%; margin-top: 8%;
}
.top-right {
    flex: 1; display: flex; justify-content: end; height: 100%; overflow: hidden;
}
.top-right .video { height: 100%; }
.right-content1 { width: 11.6vw; }
.right-content2 { width: 271px; }
.bg1 {
    background: linear-gradient(270deg, rgba(180,251,108,.06), rgba(0,0,0,0));
    width: 100%; height: 100%; top: 0; left: 0;
}
.bg2 { background: linear-gradient(270deg, rgba(234,163,255,.06), rgba(234,163,255,0)); }
.bg3 { background: linear-gradient(270deg, rgba(112,67,32,.06), rgba(234,163,255,0)); }
.bg4 { background: linear-gradient(270deg, rgba(39,193,188,.06), rgba(234,163,255,0)); }
.width1 {
    width: 59.6%; padding-top: 16.8%; overflow: hidden; border-radius: 16px;
}
.width2 {
    width: 39%; padding-top: 16.7%;
    background-image: url("/public/images/ai-3d/home/top-bg1.jpg");
    background-size: cover; background-position: right center; background-repeat: no-repeat;
}
.width3 {
    width: 49.7%; padding-top: 16.8%;
    background-image: url("/public/images/ai-3d/home/top-bg2.jpg");
    background-size: 100% 100%; background-position: center; background-repeat: no-repeat;
}
.width4 {
    width: 49.4%; padding-top: 16.8%;
    background-image: url("/public/images/ai-3d/home/top-bg3.jpg");
    background-size: 100% 100%; background-position: center; background-repeat: no-repeat;
}

.right-bottom { padding-top: 32px; padding-bottom: 40px; }
.right-title { display: flex; align-items: center; }
.right-title img { width: 22px; }
.right-title div {
    font-weight: 700; font-size: 16px; color: #fff; line-height: 32px; padding-left: 5px;
}
.square-list {
    display: flex; flex-wrap: wrap; margin: 20px 21px 0 0;
}
.square-item {
    width: 20%; aspect-ratio: 1/1.3; position: relative; cursor: pointer;
}
.square-item .square {
    position: absolute;
    background: #111 url("/public/images/ai-3d/home/module-bg.jpg") no-repeat center / 100% 100%;
    border-radius: 20px; overflow: hidden;
    top: 0; left: 0; right: 15px; bottom: 15px;
}
.square-item img { width: 100%; height: 100%; object-fit: cover; }
.square-item:hover { transform: translateY(-4px); transition: .2s; }

/* key modal */
.key-modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
}
.key-modal-overlay.show { display: flex; }
.key-modal {
    width: 360px; max-width: 90vw;
    background: #171717; border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px; padding: 28px; text-align: center;
}
.key-modal h3 { font-size: 18px; margin-bottom: 6px; }
.key-modal p { font-size: 13px; color: #9ca3af; margin-bottom: 16px; }
.key-modal input {
    width: 100%; padding: 12px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12); background: #0a0a0a; color: #fff;
    text-align: center; font: inherit;
}
.key-error { color: #f87171; font-size: 12px; margin-top: 8px; }
.key-modal button {
    margin-top: 16px; width: 100%; border: 0; border-radius: 12px; padding: 12px;
    font-weight: 700; cursor: pointer;
    background: linear-gradient(135deg, #d4af69 0%, #f0d78c 100%); color: #181818;
}

/* save pop */
.save-pop {
    position: fixed; inset: 0; z-index: 1500;
    background: rgba(0,0,0,.6);
    display: flex; align-items: center; justify-content: center;
}
.pop-center {
    width: 360px; background: #1a1a1a; border-radius: 16px;
    padding: 28px 24px; text-align: center;
    border: 1px solid rgba(255,255,255,.08);
}
.pop-center img { width: 72px; margin-bottom: 12px; }
.pop-center .tips { font-size: 14px; color: #ddd; line-height: 1.7; margin-bottom: 18px; }
.btn-border {
    width: 160px; margin: 0 auto; padding: 1px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d4af69, #f0d78c);
    cursor: pointer;
}
.btn-border > div {
    background: #1a1a1a; border-radius: 11px; padding: 10px;
    color: #fff; font-size: 14px;
}

/* capital overlay（资产列表）——顶栏下方整页盖住，不透出下方板块 */
.capital-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2500;
    background: #000;
    display: flex;
    flex-direction: column;
}
/* 打开任务/充值列表时隐藏主板块，避免「悬浮」透出精选转换等内容 */
body.a3-capital-open .a3-main-panel {
    visibility: hidden !important;
    pointer-events: none !important;
}
body.a3-capital-open {
    overflow: hidden;
}
.capital-header {
    height: 60px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; border-bottom: 1px solid rgba(255,255,255,.08); flex-shrink: 0;
}
.capital-title { color: #fff; font-size: 16px; font-weight: 600; }
.capital-refresh {
    color: #d4af69; font-size: 13px; cursor: pointer; padding: 6px 10px;
}
.capital-tabs {
    display: flex; gap: 16px; padding: 16px 24px; flex-shrink: 0;
}
.capital-tab {
    min-width: 96px; height: 36px; line-height: 36px; text-align: center;
    background: #171717; border-radius: 10px; font-size: 14px; color: #787878;
    cursor: pointer; padding: 0 12px;
}
.capital-tab.active { background: #303030; color: #d4af69; }
.capital-body {
    flex: 1; min-height: 0; overflow: auto; padding: 8px 18px 32px;
}
.capital-empty {
    height: 70%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #787878; font-size: 14px;
}
.capital-empty img { width: 220px; margin-bottom: 20px; opacity: .9; }
.capital-grid {
    display: flex; flex-wrap: wrap;
}
.capital-item {
    width: 16.66%; padding: 0 7px 15px; box-sizing: border-box;
}
.capital-card {
    position: relative; height: 20vw; max-height: 280px; min-height: 160px;
    background: #111; border-radius: 20px; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer;
}
.capital-card:hover { outline: 1px solid rgba(135,255,157,.35); }
.capital-type {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    min-width: 52px; height: 22px; line-height: 22px; text-align: center;
    padding: 0 8px; width: auto;
    background: rgba(0,0,0,.55); border-radius: 8px;
    font-size: 11px; color: #d4af69; white-space: nowrap;
}
.capital-card img.work-img {
    width: 100%; height: 100%; object-fit: cover;
}
.capital-card img.loading-icon {
    width: 72px; height: auto;
}
.capital-card .status-text {
    margin-top: 14px; font-size: 12px; color: #787878; text-align: center; padding: 0 12px;
}
.capital-meta {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
}
.capital-meta .time { font-size: 11px; color: #bebebe; }
.capital-meta .actions { display: flex; gap: 10px; align-items: center; }
.capital-meta .actions img {
    width: 18px; height: 18px; cursor: pointer; opacity: .9;
}
.capital-meta .actions img:hover { opacity: 1; }
@media (max-width: 1200px) {
    .capital-item { width: 25%; }
}
@media (max-width: 800px) {
    .capital-item { width: 50%; }
    .capital-card { height: 42vw; }
}

/* result overlay */
.result-overlay {
    position: fixed; inset: 0; z-index: 1600; background: #000;
    display: flex; flex-direction: column;
}
.result-header {
    height: 60px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.back-btn { cursor: pointer; color: #fff; font-size: 14px; }
.download-btn {
    padding: 8px 16px; border-radius: 10px;
    background: linear-gradient(135deg, #d4af69, #f0d78c);
    color: #181818; text-decoration: none; font-size: 13px; font-weight: 700;
}
.result-viewer { position: relative; flex: 1; min-height: 0; }
.result-tip {
    text-align: center; padding: 12px; font-size: 12px; color: #767676;
}

/* 3D 模型加载动效 */
.model-load-screen {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #f5e7c1;
    background: radial-gradient(circle at center, rgba(35,31,22,.72), rgba(0,0,0,.94) 62%);
    transition: opacity .45s ease, transform .45s ease;
}
.model-load-screen.is-done { opacity: 0; transform: scale(1.03); pointer-events: none; }
.model-load-screen.is-error { color: #f0b4a8; }
.model-load-orbit {
    position: relative;
    width: 76px;
    height: 76px;
    margin-bottom: 8px;
    border: 1px solid rgba(240,215,140,.2);
    border-radius: 50%;
    box-shadow: 0 0 34px rgba(212,175,105,.18), inset 0 0 24px rgba(212,175,105,.1);
    animation: model-load-breathe 2.2s ease-in-out infinite;
}
.model-load-orbit::before,
.model-load-orbit::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 2px solid transparent;
    border-top-color: #f0d78c;
    border-right-color: rgba(240,215,140,.35);
    border-radius: 50%;
    animation: model-load-spin 1.15s linear infinite;
}
.model-load-orbit::after { inset: 20px; border-top-color: #fff3c4; animation-duration: .75s; animation-direction: reverse; }
.model-load-orbit span { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff3c4; box-shadow: 0 0 12px #f0d78c; }
.model-load-orbit span:nth-child(1) { top: 5px; left: 35px; animation: model-load-dot 1.6s ease-in-out infinite; }
.model-load-orbit span:nth-child(2) { right: 7px; bottom: 18px; animation: model-load-dot 1.6s .35s ease-in-out infinite; }
.model-load-orbit span:nth-child(3) { left: 12px; bottom: 12px; animation: model-load-dot 1.6s .7s ease-in-out infinite; }
.model-load-title { font-size: 16px; letter-spacing: .16em; }
.model-load-stage { min-height: 18px; color: rgba(255,255,255,.56); font-size: 12px; }
.model-load-progress { width: min(260px, 52vw); height: 3px; overflow: hidden; border-radius: 9px; background: rgba(255,255,255,.12); }
.model-load-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9a743b, #fff0b0, #c7974f); box-shadow: 0 0 12px rgba(240,215,140,.65); transition: width .3s ease; }
.model-load-percent { color: rgba(255,255,255,.68); font-size: 11px; font-variant-numeric: tabular-nums; }
@keyframes model-load-spin { to { transform: rotate(360deg); } }
@keyframes model-load-breathe { 50% { transform: scale(1.06); box-shadow: 0 0 48px rgba(212,175,105,.28), inset 0 0 30px rgba(212,175,105,.16); } }
@keyframes model-load-dot { 50% { transform: scale(1.8); opacity: .42; } }

.a3-toast {
    position: fixed; left: 50%; top: 80px; transform: translateX(-50%);
    z-index: 3000; background: rgba(30,30,30,.95); color: #fff;
    padding: 10px 18px; border-radius: 10px; font-size: 13px;
    border: 1px solid rgba(255,255,255,.1);
}

/* 纹理 / 拓扑整页：复用 animate-page，补充演示图与参考图上传 */
.make-demo-title-img {
    height: 30px;
    display: block;
}
.make-demo-img {
    height: 100%;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}
.make-image-wrap {
    margin-top: 8px;
}
.make-image-upload {
    min-height: 110px;
}
.make-select {
    width: 100%;
    background: #1f1f1f;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    color: #fff;
    padding: 10px 12px;
    font-size: 13px;
}

@media (max-width: 900px) {
    .make-demo-img { width: 100%; height: 100%; object-fit: cover; }
}

/* ===== 3D动画 / 纹理 / 拓扑整页（对齐 3d-web） ===== */
.animate-page {
    height: calc(100vh - 60px);
    width: 100%;
    overflow: hidden;
}
.animate-content {
    height: 100%;
    padding: 20px 35px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
    box-sizing: border-box;
}
.animate-left-panel {
    position: relative;
}
.animate-left-head {
    width: calc(100% - 42px);
    margin: 18px 21px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.animate-back {
    width: 32px; height: 32px; border-radius: 8px;
    background: #303030; color: #d8d8d8;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; font-size: 16px;
}
.animate-back:hover { color: #d4af69; }
.left-title {
    font-weight: 500; font-size: 18px; color: #fff; line-height: 24px;
}
.animate-scroll {
    overflow: hidden auto;
}
.animate-generation .conditions {
    padding-bottom: 110px;
}
.anim-tips {
    display: flex;
    gap: 6px;
    padding: 12px 20px 0;
    color: #767676;
    font-size: 12px;
    line-height: 1.5;
}
.anim-tips img {
    width: 13px; height: 13px; margin-top: 2px; flex-shrink: 0;
}
.anim-mode-choose { height: 48px; }
.anim-model-preview {
    min-height: 120px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    background: #111;
    border-radius: 12px;
    margin: 0 20px;
}
.anim-model-name {
    color: #d8d8d8; font-size: 13px; padding: 0 40px;
    word-break: break-all; text-align: center; max-width: 100%;
}
.animate-title {
    padding: 16px 20px 0;
    font-size: 13px; color: #fff; line-height: 18px;
}
.animate-list {
    margin: 12px 16px 0;
    display: flex;
    flex-wrap: wrap;
    border: 1px dashed rgba(132,132,132,.3);
    background: #181818;
    border-radius: 13px;
    padding: 9px 8px 20px;
    max-height: 280px;
    overflow: auto;
}
.animate-item {
    margin: 6px 4px;
    width: 82px;
    cursor: pointer;
}
.animate-item .animate-img {
    width: 82px; height: 72px;
    background: #111;
    border-radius: 12px;
    border: 1px solid transparent;
    display: flex; align-items: center; justify-content: center;
    color: #787878; font-size: 18px; font-weight: 600;
}
.animate-item.active .animate-img {
    border-color: #87ff9d;
    color: #87ff9d;
}
.animate-item .animate-name {
    text-align: center;
    font-size: 12px; color: #fff;
    line-height: 16px; padding-top: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.anim-inline-select {
    width: 100%; background: transparent; border: none;
    color: #d8d8d8; font-size: 14px; outline: none; cursor: pointer;
}
.anim-inline-select option { color: #111; }

.animate-right-border {
    flex: 1;
    height: calc(100vh - 60px - 20px);
    margin-left: 13px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(0,0,0,0));
    overflow: hidden;
    display: flex; justify-content: center; align-items: center;
}
.animate-right {
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    background: #000;
    border-radius: 20px 20px 0 0;
}
.animate-right-bg {
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(80,80,80,.3) 0%, #020202 100%);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
}
.animate-right-heading {
    font-size: 28px; font-weight: 600; color: #fff; letter-spacing: 1px;
    background: linear-gradient(90deg, #f0d78c 0%, #d4af69 55%, #fff6d6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.animate-right-sub {
    text-align: center;
    font-weight: 300; font-size: 15px; color: #fff;
    line-height: 21px; padding-top: 15px;
}
.animate-demo-box {
    padding-top: 52px; padding-bottom: 20px; width: fit-content;
}
.animate-demo-title {
    display: flex; align-items: center; gap: 7px;
    font-size: 15px; color: #d8d8d8;
}
.animate-demo-icon { width: 16px; height: 16px; }
.animate-demo-media {
    height: min(25.25vw, 360px);
    margin-top: 30px;
    border-radius: 17px;
    overflow: hidden;
    background: #111;
}
.animate-demo-video {
    height: 100%;
    width: auto;
    display: block;
}

@media (max-width: 900px) {
    .animate-content { flex-direction: column; height: auto; overflow: auto; padding: 12px; }
    .animate-right-border { margin-left: 0; margin-top: 12px; height: auto; min-height: 320px; }
    .animate-demo-media { height: 220px; width: 100%; }
    .animate-demo-video { width: 100%; height: 100%; object-fit: cover; }
}

/* 订单记录列表 */
.order-list {
    display: flex; flex-direction: column; gap: 12px; max-width: 920px; margin: 0 auto;
}
.order-item {
    background: #171717; border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px; padding: 16px 18px;
}
.order-item-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; gap: 12px;
}
.order-name { color: #fff; font-size: 15px; font-weight: 600; }
.order-status {
    flex-shrink: 0; font-size: 12px; padding: 4px 10px; border-radius: 999px;
    background: #2a2a2a; color: #bdbdbd;
}
.order-status.paid { background: rgba(212,175,105,.15); color: #d4af69; }
.order-status.fail { background: rgba(220,80,80,.15); color: #ef7a7a; }
.order-status.refund { background: rgba(120,120,120,.2); color: #9a9a9a; }
.order-status.pending { background: rgba(90,140,220,.15); color: #7eb0ef; }
.order-item-row {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 4px 0; font-size: 13px; color: #8a8a8a;
}
.order-item-row span:last-child { color: #d0d0d0; text-align: right; word-break: break-all; }
.order-no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.order-money { color: #d4af69 !important; font-weight: 600; }

/* H5 菜单默认隐藏，仅窄屏媒体查询内显示 */
.nav-menu-btn { display: none; }
.nav-mask[hidden] { display: none !important; }

@media (max-width: 1100px) {
    .home-content { flex-direction: column; height: auto; overflow: auto; padding: 12px; }
    .left-border { width: 100%; height: auto; min-height: 0; }
    .left { min-height: 0; }
    .right { padding: 16px 0 0; min-height: 420px; }
    .preview-box, .preview-ready, .preview-idle { min-height: 360px; }
    .width1, .width2, .width3, .width4 { width: 100%; padding-top: 40%; margin-bottom: 12px; }
    .top-list { flex-direction: column; }
    .square-item { width: 33.33%; }
    .dbtop { width: calc(100% - 24px); gap: 8px; }
    .dbtopright { gap: 8px; }
    .vip,
    .login {
        height: 30px;
        font-size: 12px;
        padding: 0 12px;
    }
    .vip { min-width: 84px; }
    .login { min-width: 64px; }
    .vip .vipbg { height: 30px; }

    /* 手机：汉堡菜单 + 下拉导航（不影响 PC） */
    .nav-menu-btn {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        margin-right: 4px;
        padding: 10px 9px;
        border: 0;
        border-radius: 10px;
        background: #1a1a1a;
        cursor: pointer;
        flex-shrink: 0;
    }
    .nav-menu-btn span {
        display: block;
        height: 2px;
        width: 100%;
        border-radius: 2px;
        background: #f0d78c;
        transition: transform .2s ease, opacity .2s ease;
    }
    .home.nav-open .nav-menu-btn span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .home.nav-open .nav-menu-btn span:nth-child(2) { opacity: 0; }
    .home.nav-open .nav-menu-btn span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .dbtopcenter {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        z-index: 1590;
        flex: none;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        max-height: calc(100vh - 60px);
        overflow: auto;
        padding: 8px 12px 16px;
        background: #0a0a0a;
        border-bottom: 1px solid rgba(255,255,255,.08);
        box-shadow: 0 12px 28px rgba(0,0,0,.45);
    }
    .home.nav-open .dbtopcenter { display: flex; }
    .dbtopcenter .toptabitem {
        margin-left: 0;
        height: 48px;
        flex-direction: row;
        justify-content: flex-start;
        padding: 0 14px;
        border-radius: 10px;
        color: #b8b8b8;
    }
    .dbtopcenter .toptabitem .txt { font-size: 15px; }
    .dbtopcenter .toptabitem.active {
        color: #f5e6b8;
        background: rgba(212,175,105,.12);
    }
    .dbtopcenter .toptabitem .xhx {
        position: static;
        width: 6px;
        height: 6px;
        margin-left: 10px;
        border-radius: 50%;
    }
    .nav-mask {
        display: none;
        position: fixed;
        inset: 60px 0 0;
        z-index: 1580;
        background: rgba(0,0,0,.55);
    }
    .home.nav-open .nav-mask {
        display: block;
    }
    .home.nav-open .nav-mask[hidden] {
        display: block !important;
    }

    .animate-page { height: auto; min-height: calc(100vh - 60px); overflow: auto; }
    .animate-content {
        flex-direction: column;
        height: auto;
        padding: 12px;
        overflow: visible;
    }
    .animate-left-panel { width: 100%; }
}
