
#app, .reg-block {margin: 0 auto 40px; }

.res-t-section-title, .res-t-section .title {
  font-size: 30px; color: #260b07; font-weight: 700; text-align: center; margin-bottom: 28px;
}

.generate-ctn{    margin: 20px auto;
    border-radius: 14px;
    box-shadow: 11px 8px 42px 0 rgba(0, 0, 0, .05);
    background-color: #fff;
    max-width: 880px;
    padding: 40px 50px;}
.generate-ctn .tabs { display: flex; justify-content: space-between; gap: 10px; }
.generate-ctn .tab {
  flex: 1 0 0; border-radius: 12px; padding: 15px 10px; font-weight: 700; color: #260b07;
  background: rgba(254, 208, 148, .25); text-align: center; cursor: pointer; user-select: none;
}
.generate-ctn .tab.selected { background: #fed094; }
.generate-ctn .tab .num {
  display: inline-block; width: 22px; height: 22px; line-height: 22px; border-radius: 50%;
  background: #260b07; color: #fff; font-size: 12px; margin-right: 6px;
}

.pane { margin-top: 28px; }
.pane h2{text-align: center;padding: 10px 10px 30px;}
.hidden { display: none !important; }

.name-row { display: flex; gap: 16px; }
.name-row .field { flex: 1; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: #7a7a7a; margin-bottom: 6px; }
.field input {
  width: 100%; box-sizing: border-box; height: 46px; border: 1px solid #e9e6e6; border-radius: 12px;
  padding: 0 14px; font-size: 16px; color: #260b07; background: #fff; outline: none;
}
.field input:focus { border-color: #fed094; box-shadow: 0 0 0 3px rgba(254, 208, 148, .35); }
.f-img img{max-width: 200px;height: auto;object-fit: cover;}
.styles { display: flex; flex-wrap: wrap; gap: 4%; }
.format, .style {
  border-radius: 12px; border: 1px solid #e9e6e6; padding: 30px 24px; width: 48%; cursor: pointer;
  background: #fff; box-sizing: border-box; margin-bottom: 14px; position: relative;text-align: center;
}.style{padding: 30px 24px 0;}
.format.selected, .style.selected { background: #fff4e7; border-color: #fed094; }
.f-title { font-size: 18px; font-weight: 700; color: #260b07; margin-bottom: 8px; }
.f-demo { font-size: 16px; color: #7a7a7a; }
.f-desc { font-size: 13px; color: #7a7a7a; line-height: 1.6; }
.f-price { margin-top: 12px; }
.f-price .old { text-decoration: line-through; color: #928583; margin-right: 10px; }
.f-price .now { font-size: 22px; font-weight: 700; color: #ff9587; }

.reg-badge {
  position: absolute; top: 12px; right: 12px; border-radius: 10px; height: 20px; line-height: 20px;
  padding: 0 10px; font-size: 10px; font-weight: 700; color: #fff;
}
.reg-badge.simple { background: #53a551; }
.reg-badge.premium { background: #fed094; color: #260b07; }
.reg-badge.premium:after {
    content: "";
    height: 20px;
    width: 12px;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url(/assets/images/premium-icon.svg);
    display: block;
}

.actions { text-align: center; margin-top: 24px; }
#btnGenerate { min-width: 220px; }

.error-message { color: #d33; margin-top: 12px; font-size: 14px; }
.hint { color: #7a7a7a; font-size: 13px; margin-top: 14px; text-align: center; }

.loading { text-align: center; color: #7a7a7a; padding: 30px 0; }

.res-items { display: flex; flex-wrap: wrap; gap: 20px; margin: 50px auto; max-width: 600px; }
.share-box { margin: 22px auto 0; text-align: center; }
.share-label { font-weight: 600; color: #260b07; margin-bottom: 10px; }
.share-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 14px; border: 1px solid #ddd; border-radius: 999px; background: #fff; color: #260b07; font: inherit; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer; }
.share-btn:hover { background: #faf7f4; border-color: #ff9587; }
.share-ico { width: 15px; height: 15px; flex: none; fill: currentColor; }
.share-x .share-ico { fill: #0f1419; }
.share-fb .share-ico { fill: #1877f2; }
.share-pin .share-ico { fill: #e60023; }
.share-copy .share-ico { fill: #8a7c76; }
.share-note { font-size: 11px; color: #999; margin-top: 8px; }
.res-item {
  width: 48%; border-radius: 14px; box-shadow: 11px 8px 42px rgba(0, 0, 0, .05);
  background: #fff; padding: 20px; margin-bottom: 18px; box-sizing: border-box;
  min-width: 0; overflow: hidden;
}
.res-item .img-wrap {
  background:
    repeating-conic-gradient(#f5f2ee 0% 25%, #fff 0% 50%) 0 0 / 22px 22px;
  border-radius: 8px; padding: 10px; text-align: center;
}
.res-item img { max-width: 100%; height: auto; }
.res-actions { margin-top: 12px; display: flex; gap: 8px; justify-content: center; }
.reg-btn.small { height: 32px; line-height: 30px; padding: 0 16px; font-size: 12px; }
.reg-btn.wire { background: #fff; color: #7a7a7a; border: 1px solid #e9e6e6; }

.res-upgrade-section { margin-top: 30px; text-align: center; border-radius: 14px; padding: 30px; }
.res-upgrade-section .s-title { font-size: 22px; font-weight: 700; color: #260b07; }
.res-upgrade-section .s-desc { line-height: 1.7; color: #7a7a7a; margin: 10px 0 18px; }
.pcs-items {display: flex}
.pcs-item:first-child {
    border-radius: 12px 0 0 12px;
    border-right-width: 0;
}
.pcs-item {
    width: 50%;
    border: 2px solid #fed094;
    padding: 40px 40px 40px 40px;
    text-align: center;
    position: relative;
}
.reg-badge.simple:after {
    content: "FREE";
}
.pcs-item .reg-badge.simple {
    background-color: #d0d0d0;
}
.pcs-item .reg-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}
.pcs-item .reg-badge {
    padding: 0 12px;
    border-radius: 10px;
    text-align: center;
    height: 20px;
    line-height: 20px;
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    display: inline-block;
    vertical-align: top;
}
.pcs-item .title {
    color: #260b07;
    font-weight: 700;
    font-size: 16px;
}
.pcs-item .img img {
    max-width: 200px;
    height: auto;
    width: 100%;
}
.pcs-item:last-child {
    border-radius: 0 12px 12px 0;
    background-color: rgba(254, 208, 148, .23);
}
.premium-ctn { margin-top: 30px; background: #fff; border-radius: 14px; box-shadow: 11px 8px 42px rgba(0,0,0,.05); padding: 30px; }
.premium-ctn .title { font-size: 22px; font-weight: 700; color: #260b07; text-align: center; }
.price-row { text-align: center; margin: 16px 0; }
.price-row .old { text-decoration: line-through; color: #928583; margin-right: 12px; }
.price-row .now { font-size: 28px; font-weight: 700; color: #ff9587; }
.paypal-ctn { max-width: 320px; margin: 0 auto; }
.rescue-offer { margin-top: 24px; background: #fff4e7; border: 1px dashed #fed094; border-radius: 12px; padding: 20px; text-align: center; }
.rescue-offer .s-title { font-weight: 700; color: #260b07; font-size: 18px; }
.rescue-offer .s-desc { color: #7a7a7a; margin: 8px 0 14px; }

@media (max-width: 640px) {
  .format, .style, .res-item { width: 100%; }
  .name-row { flex-direction: column; }
  .generate-ctn{padding: 40px 20px;}
}

#btnGenerate:disabled, .reg-btn:disabled {
  background: #c9c6c3 !important; color: #6f6f6f !important; cursor: not-allowed;
  box-shadow: none; border-color: #c9c6c3;
}

.reg-btn.fluo:disabled:before { display: none !important; }

.res-t-section .desc { font-size: 15px; color: #7a7a7a; text-align: center; margin: 0 auto 24px; max-width: 620px; line-height: 1.7; }

.premium-ctn-page { margin: 20px auto; border-radius: 14px; box-shadow: 11px 8px 42px 0 rgba(0,0,0,.05); background: #fff; max-width: 880px; padding: 40px 50px; }
.upgrade-section { text-align: center; }
.premium-s-title { font-size: 30px; font-weight: 700; color: #260b07;align-items: center; gap: 10px; position: relative;}
.product { border-radius: 14px;
    box-shadow: 11px 8px 42px 0 rgba(0, 0, 0, .05);
    padding: 40px 20px;
    background-color: #fff;
    margin-top: 40px;}
.p-title { font-size: 20px; font-weight: 700; color: #260b07; }
.p-price { margin: 10px 0 18px; }
.p-price .barred { text-decoration: line-through; text-decoration-thickness: 1px;text-decoration-color: #928583;color: #928583; margin-right: 12px; font-size: 20px; }
.p-price .price { font-size: 34px; font-weight: 700; color: #ff9587; }
.btn-ctn { max-width: 360px; margin: 0 auto; text-align: center;}
.disclaimer { font-size: 12px; color: #928583; margin: 16px auto 0; max-width: 520px; line-height: 1.6; }
.disclaimer a { color: #ff9587; }
.hurry { margin-top: 14px; color: #ff9587; font-weight: 600; font-size: 14px; }
.payments { margin-top: 22px; }
.payments .secure { font-size: 13px; color: #7a7a7a; margin-bottom: 8px; }
.payments img { max-width: 200px; height: auto; }
.rescue-offer { margin-top: 26px; background: #fff4e7; border: 1px dashed #fed094; border-radius: 12px; padding: 22px; }
.rescue-offer .s-title { font-weight: 700; color: #260b07; font-size: 18px; }
.rescue-offer .s-desc { color: #7a7a7a; margin: 8px 0 16px; }
#rescueTimer,.timer { color: #ff9587; font-weight: 700; }

.app-page .banner {
    border-radius: 11px;
    background-color: #fee7c9;
    text-align: center;
    color: #260b07;
    padding: 10px;
}
.premium-s-title {
    font-size: 24px;
    color: #260b07;
    font-weight: 700;
    margin-bottom: 1.5em;
    margin-top: 1.5em;
}
.upgrade-section .title .reg-badge {
    margin-top: 5px;
    margin-left: 5px;
}
.upgrade-section .title .reg-badge {
    padding: 0 12px;
    border-radius: 10px;
    text-align: center;
    height: 20px;
    line-height: 20px;
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    display: inline-block;
    vertical-align: top;position:static
}

.section-margin-top {
    margin-top: 70px;
}
.premium-txt {
    font-size: 16px;
    line-height: 1.5;
}
.get-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.right .premium-s-title {
    font-size: 24px;
    color: #260b07;
    font-weight: 700;
    margin-bottom: 1.5em;
}
.premium-txt {
    font-size: 16px;
    line-height: 1.5;
}
.get-section .bullets {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}
.get-section .bullet .icon {
    background-color: #fed094;
    height: 42px;
    width: 42px;
    border-radius: 21px;
    margin: 0 auto;
    background-size: 40%;
    background-position: center center;
    background-repeat: no-repeat;
}
.get-section>* {
    width: 46%;
}
.get-section .left img{max-width: 280px;height: auto;width: 100%;}
.premium-s-title {
    font-size: 24px;
    color: #260b07;
    font-weight: 700;
    margin-bottom: 1.5em;
}

.faq-section > .title { margin: 0; }
.faq-items { display: grid; gap: 10px; margin-top: 20px;}
.faq-item {
    font-size: 16px;
    border: 1px solid #eee9e4;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item.open {
    border-color: #f6c9be;
    box-shadow: 0 6px 18px rgba(255, 149, 135, .14);
}
.faq-item .f-block {
    padding: 18px 52px 18px 20px;
    color: #260b07;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    text-align: left;
}
.faq-item .f-block:hover,
.faq-item.open .f-block { background: #fffaf7; }
.faq-item .foldable {
    overflow: hidden;
    line-height: 1.6;
    max-height: 0;
    -webkit-transition: max-height .35s ease;
    transition: max-height .35s ease;
}
.faq-item.open .foldable {
    max-height: 400px;
    -webkit-transition: max-height .45s ease;
    transition: max-height .45s ease;
}
.faq-item .content {
    padding: 4px 20px 18px;
    color: #7a7a7a;
    text-align: left;
}
.faq-item .button {
    position: absolute;
    top: 50%;
    right: 18px;
    width: 26px;
    height: 26px;
    margin-top: -13px;
    border-radius: 50%;
    background: #fdf1ec;
    color: #c96a55;
    text-align: center;
    transition: background .2s ease, color .2s ease;
}
.faq-item .button:after {
    content: "+";
    line-height: 26px;
    font-size: 18px;
    font-weight: 700;
}
.faq-item.open .button { background: #ff9587; color: #fff; }
.faq-item.open .button:after { content: "\2212"; }
.get-section .bullet .high {
    background-image: url(/assets/images/high.svg);
}.get-section .bullet .commercial {
    background-image: url(/assets/images/commercial.svg);
}.get-section .bullet .cheaper {
    background-image: url(/assets/images/cheaper.svg);
}
.icons-section .bullets {
    display: flex;
    text-align: center;
}
.icons-section .icon {
    height: 42px;
    width: 42px;
    margin: 0 auto;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}.icons-section .bullet:not(:last-child) {
    border-right: 1px solid #dfdbda;
}
.icons-section .bullet {
    width: 33.33%;
    padding: 20px 20px;
}.icons-section .bullet .txt {
    color: #260b07;
    max-width: 130px;
    margin: 10px auto 0 auto;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.3;
}
.icons-section .icon.safe {
    background-image: url(/assets/images/safe.svg);
}.icons-section .icon.quality {
    background-image: url(/assets/images/quality.svg);
}.icons-section .icon.secure {
    background-image: url(/assets/images/secure.svg);
}
@media (max-width: 640px) {
  .premium-ctn-page { padding: 40px 20px; }
}



plan-compare-section, faq-section, .plan-compare-s { display: block; }

.faq-item .f-block, .faq-item .content, .faq-item .title { text-align: left; }

@media (max-width: 640px) {
  .premium-ctn-page .upgrade-section .title,
  .premium-ctn-page .premium-s-title { font-size: 22px; }
  .product { padding: 28px 14px; }
  .banner { font-size: 13px; line-height: 1.5; padding: 10px 12px; }
  .get-section { flex-direction: column; }
  .get-section > * { width: 100%; }
  .get-section .left img { margin: 0 auto; display: block; }
  .pcs-items { flex-direction: column; }
  .pcs-item:first-child, .pcs-item:last-child,
  .pcs-item { width: 100%; border-radius: 12px; border-right-width: 2px; margin-bottom: 14px; }
  .icons-section .bullets { flex-direction: column; }
  .icons-section .bullet { width: 100%; border-right: none; border-bottom: 1px solid #dfdbda; }
  .faq-item .f-block { padding: 15px 46px 15px 16px; }
  .faq-item .content { padding: 4px 16px 16px; }
}

.gen-progress { max-width: 520px; margin: 24px auto 8px; text-align: center; }
.gen-progress.done .gp-bar { opacity: .35; }
.gp-bar { height: 8px; border-radius: 4px; background: #f0ece8; overflow: hidden; }
.gp-fill { height: 100%; width: 0; background: linear-gradient(90deg,#ff9587,#fed094); transition: width .5s ease; }
.gp-text { margin-top: 8px; font-size: 13px; color: #7a7a7a; }
.gp-spinner { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #e9e6e6; border-top-color: #ff9587; animation: gen-spin .8s linear infinite; vertical-align: -2px; margin-right: 8px; }
.gp-spinner.hidden { display: none; }
.res-item .img-wrap { position: relative; }
.res-item.refining .img-wrap img { opacity: .55; filter: grayscale(.2); }
.res-item .gen-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: rgba(38,11,7,.78); color: #fff; font-size: 12px; padding: 6px 12px; border-radius: 20px; white-space: nowrap; }

.res-item.waiting .img-wrap.placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; box-sizing: border-box; max-width: 100%; min-height: 130px;
  background: #faf7f4; border: 1px dashed #e7e1da; border-radius: 12px;
}

.gen-spinner {
  display: inline-block;
  width: 28px; height: 28px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 3px solid #efe9e4;
  border-top-color: #ff9587;
  animation: gen-spin .9s linear infinite;
}
.res-item.waiting .gen-spinner.big {
  width: 42px; height: 42px; border-width: 4px; border-color: #efe9e4;
  border-top-color: #ff9587; margin: 0;
}
.res-item .res-actions .reg-btn.disabled { opacity: .6; cursor: default; pointer-events: none; }



.res-item.waiting .ai-stage { color: #b4502f; }
.res-item.waiting .dots { display: inline-block; margin-left: 4px; vertical-align: middle; }
.res-item.waiting .dots .dot {
  display: inline-block; width: 3px; height: 3px; margin: 0 1px;
  border-radius: 50%; background: #ff9587; opacity: .5;
  animation: dot-bounce 1.2s infinite ease-in-out;
}
.res-item.waiting .dots .dot:nth-child(2) { animation-delay: .2s; }
.res-item.waiting .dots .dot:nth-child(3) { animation-delay: .4s; }
@keyframes dot-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

.ai-notice { background: #fff4f1; border: 1px solid #ffd9cf; color: #b4502f; font-size: 13px; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }


.res-item.waiting .img-wrap.placeholder {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.55);
  background: #d9c3e8;
  isolation: isolate;
}
/* 底层：柔和粉彩色环整圈旋转；inset 收小 → 容器内可见更多色带，明暗交替更明显；首尾同色无缝 */
.res-item.waiting .img-wrap.placeholder::before {
  content: "";
  position: absolute; inset: -60%; z-index: 0; pointer-events: none;
  background: conic-gradient(from 0deg at 50% 50%, #f9aac8, #ffe2b8, #fff7cf, #b9e8c9, #a8dcf5, #c2c8f0, #e2b8ee, #f9aac8);
  filter: blur(18px) saturate(115%);
  animation: irid-flow 10s linear infinite;
}
/* 上层：5 个粉彩光团各自漂移；中心提亮到近白，screen 叠加 → 划过时明暗清晰可见；首尾位置相同 → 无缝 */
.res-item.waiting .img-wrap.placeholder::after {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(ellipse, rgba(255,205,228,.95) 0%, rgba(255,178,212,.6) 40%, transparent 72%),
    radial-gradient(ellipse, rgba(255,225,185,.95) 0%, rgba(255,212,160,.6) 40%, transparent 72%),
    radial-gradient(ellipse, rgba(190,225,252,.95) 0%, rgba(170,218,250,.6) 40%, transparent 72%),
    radial-gradient(ellipse, rgba(220,200,250,.95) 0%, rgba(214,188,250,.6) 40%, transparent 72%),
    radial-gradient(ellipse, rgba(200,242,225,.95) 0%, rgba(185,240,215,.6) 40%, transparent 72%);
  background-size: 55% 70%, 55% 70%, 55% 70%, 55% 70%, 55% 70%;
  background-repeat: no-repeat;
  background-position: -30% -20%, 130% -25%, 130% 120%, -30% 120%, 50% -35%;
  mix-blend-mode: screen;
  opacity: .85;
  filter: blur(14px);
  animation: irid-blobs 7s ease-in-out infinite;
}
@keyframes irid-flow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes irid-blobs {
  0%,100% { background-position: -30% -20%, 130% -25%, 130% 120%, -30% 120%, 50% -35%; }
  25%     { background-position: 48% 25%, 72% 12%, 92% 78%, 8% 62%, 82% 48%; }
  50%     { background-position: 82% 78%, 12% 52%, 28% 10%, 62% 8%, 10% 92%; }
  75%     { background-position: 8% 52%, 62% 98%, 0% 70%, 92% 58%, 100% 12%; }
}
.res-item.waiting .img-wrap.placeholder .gen-spinner { position: relative; z-index: 2; }

.gen-overlay {
  position: fixed; inset: 0; background: rgba(255,252,248,.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 9999; text-align: center; padding: 20px;
}
.gen-overlay .spinner {
  width: 56px; height: 56px; border-radius: 50%; border: 5px solid #f0ece8;
  border-top-color: #ff9587; animation: gen-spin .9s linear infinite; margin-bottom: 22px;
}
.gen-overlay .g-title { font-size: 21px; font-weight: 700; color: #260b07; }
.gen-overlay .g-sub { font-size: 14px; color: #7a7a7a; margin-top: 12px; max-width: 440px; line-height: 1.7; }
@keyframes gen-spin { to { transform: rotate(360deg); } }


/* mobile: keep step tabs on a single line */
@media (max-width: 640px) {
  .generate-ctn .tabs { gap: 5px; }
  .generate-ctn .tab { padding: 14px 2px; font-size: 12px; white-space: nowrap; }
  .generate-ctn .tab .num { width: 16px; height: 16px; line-height: 16px; font-size: 10px; margin-right: 2px; }
}
