@charset "UTF-8";

:root {
  --green: #103b2c;
  --green-dark: #0b2c22;
  --text: #252827;
  --muted: #777d78;
  --line: #d9ddda;
  --paper: #fff;
  --soft: #f8f9f7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  position: relative;
  margin: 0;
  min-width: 1055px;
  min-height: 1491px;
  background: var(--paper);
  color: var(--text);
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-kerning: normal;
  text-rendering: geometricPrecision;
  letter-spacing: 0;
}


a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: 879px;
  margin: 0 auto;
}

.site-header {
  width: 1055px;
  height: 52px;
  margin: 0 auto;
  background: #fff;
}

.header-inner {
  height: 52px;
  display: flex;
  align-items: center;
}

.brand {
  width: 292px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-name {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.brand-line {
  color: #8d918d;
  font: 12px/1 "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

.nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #747b76;
  font: 12px/1 "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

.nav a {
  position: relative;
  padding: 18px 0;
}

.nav .active {
  color: var(--green);
}

.nav .active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 1px;
  background: var(--green);
}

.header-cta {
  width: 83px;
  height: 25px;
  display: grid;
  place-items: center;
  margin-left: 28px;
  background: var(--green);
  color: #fff;
  font: 12px/1 "Microsoft YaHei", Arial, sans-serif;
}

.hero {
  position: relative;
  width: 1055px;
  height: 281px;
  margin: 0 auto;
  background: var(--hero-image, url("./assets/hero-slide-1.webp")) center top / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 14, 11, 0.86) 0%, rgba(7, 14, 11, 0.74) 41%, rgba(7, 14, 11, 0.12) 67%, rgba(7, 14, 11, 0.02) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.24) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 83px 0 0 64px;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: 38px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0;
}

.hero p {
  margin: 10px 0 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.primary-btn {
  width: 99px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  font: 12px/1 "Microsoft YaHei", Arial, sans-serif;
  text-shadow: none;
}

.primary-btn:hover,
.primary-btn:focus-visible {
  background: var(--green-dark);
}

.hero-arrow {
  position: absolute;
  z-index: 2;
  top: 128px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: rgba(0, 0, 0, 0.32);
}

.hero-prev {
  left: 32px;
}

.hero-next {
  right: 32px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.18);
}

.hero-dots button.active,
.hero-dots button:focus-visible {
  background: #fff;
}

.section {
  width: 1055px;
  margin: 0 auto;
  background: var(--paper);
}

.works {
  padding: 12px 0 0;
}

.section-head,
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.works .section-head {
  height: 50px;
}

.section-head h2,
.section-title h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 700;
}

.section-head p,
.section-title p {
  margin: 6px 0 0;
  color: #7d837e;
  font: 12px/1.1 "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

.tabs {
  display: flex;
  gap: 18px;
  padding-top: 3px;
}

.tabs button {
  min-width: 43px;
  height: 21px;
  border-radius: 8px;
  background: #e8e9e8;
  color: #8a8f8b;
  font: 11px/1 "Microsoft YaHei", Arial, sans-serif;
}

.tabs .active {
  background: var(--green);
  color: #fff;
}

.gallery-grid {
  position: relative;
  height: 254px;
  margin-top: 0;
}

.gallery-grid figure {
  position: absolute;
  margin: 0;
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid figure:nth-child(1) {
  left: 0;
  top: 0;
  width: 410px;
  height: 148px;
}

.gallery-grid figure:nth-child(2) {
  left: 418px;
  top: 0;
  width: 144px;
  height: 130px;
}

.gallery-grid figure:nth-child(3) {
  left: 572px;
  top: 0;
  width: 145px;
  height: 130px;
}

.gallery-grid figure:nth-child(4) {
  left: 727px;
  top: 0;
  width: 176px;
  height: 130px;
}

.gallery-grid figure:nth-child(5) {
  left: 0;
  top: 154px;
  width: 152px;
  height: 99px;
}

.gallery-grid figure:nth-child(6) {
  left: 161px;
  top: 154px;
  width: 151px;
  height: 99px;
}

.gallery-grid figure:nth-child(7) {
  left: 321px;
  top: 154px;
  width: 241px;
  height: 99px;
}

.gallery-grid figure:nth-child(8) {
  left: 572px;
  top: 144px;
  width: 328px;
  height: 109px;
}

.gallery-grid figure,
.style-card,
.creator-card,
.price-card {
  box-shadow: 0 8px 22px rgba(21, 31, 26, 0.08);
}

.gallery-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 10px 8px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 100%);
  color: #fff;
  font: 11px/1.2 "Microsoft YaHei", Arial, sans-serif;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.gallery-grid figure:hover figcaption {
  opacity: 1;
}

.outline-btn {
  width: 145px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px auto 0;
  border: 1px solid #9ea9a4;
  background: #f8f8f6;
  color: #5e6761;
  font: 12px/1 "Microsoft YaHei", Arial, sans-serif;
}

.style-section {
  padding: 4px 0 0;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(5, 175px);
  gap: 7px;
  margin-top: 13px;
}

.style-card {
  position: relative;
  height: 134px;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: #fff;
  text-align: left;
}

.style-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.style-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.58) 100%);
}

.style-card div {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 17px;
}

.style-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}

.style-card p {
  margin: 7px 0 0;
  font-size: 10px;
  letter-spacing: 0;
  font-family: Georgia, serif;
}

.style-card span {
  position: absolute;
  z-index: 1;
  right: 11px;
  bottom: 11px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.style-card.active {
  outline: 3px solid rgba(16, 59, 44, 0.48);
  outline-offset: -3px;
}

.style-note {
  min-height: 16px;
  margin: 8px 0 0;
  color: #6f7772;
  font: 11px/1.35 "Microsoft YaHei", Arial, sans-serif;
}

.pricing-section {
  padding: 10px 0 0;
}

.with-controls {
  align-items: center;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font: 12px/1 "Microsoft YaHei", Arial, sans-serif;
}

.mini-controls {
  display: flex;
  gap: 12px;
  padding-right: 18px;
}

.mini-controls span {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #b1b8b3;
  font: 17px/1 Arial, sans-serif;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.price-card {
  position: relative;
  height: 158px;
  padding: 12px 14px 34px;
  border: 1px solid #d2d6d3;
  background: #fff;
  border-radius: 2px;
}

.card-version {
  position: absolute;
  top: 13px;
  right: 14px;
  color: #8a928d;
  font: 10px/1 "Microsoft YaHei", Arial, sans-serif;
}

.price-card h3 {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1;
}

.price-card strong {
  display: block;
  color: #333;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.price-card strong span {
  margin-right: 4px;
  font: 12px/1 "Microsoft YaHei", Arial, sans-serif;
}

.price-card strong em {
  margin-left: 2px;
  color: #626762;
  font: 11px/1 "Microsoft YaHei", Arial, sans-serif;
}

.price-card p {
  margin: 6px 0 5px;
  color: #8a8f8b;
  font: 11px/1.1 "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

.price-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  margin-top: 3px;
  color: #5d665f;
  font: 11px/1.1 "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

.price-card li::before {
  content: "\2713";
  margin-right: 10px;
  color: var(--green);
}

.price-card button,
.booking-form button {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 22px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  font: 11px/1 "Microsoft YaHei", Arial, sans-serif;
}

.booking-form input,
.booking-form select {
  width: 100%;
  height: 31px;
  padding: 0 9px;
  border: 1px solid #cfd6d2;
  background: #fff;
  color: #333;
  font: 12px/1.2 "Microsoft YaHei", Arial, sans-serif;
}

.booking-message {
  margin: 0;
  color: #68716b;
  font: 11px/1.35 "Microsoft YaHei", Arial, sans-serif;
}

.creator-section {
  padding: 7px 0 8px;
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(4, 213px);
  gap: 14px;
  margin-top: 8px;
}

.creator-card {
  height: 91px;
  display: grid;
  grid-template-columns: 103px 1fr;
  background: #fff;
}

.creator-card img {
  width: 103px;
  height: 91px;
  object-fit: cover;
}

.creator-card div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 13px 0 0 13px;
}

.creator-card h3 {
  margin: 0;
  color: #666d68;
  font-size: 13px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-card p {
  margin: 8px 0 12px;
  color: #909691;
  font: 11px/1.1 "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

.creator-card a {
  margin-top: auto;
  padding-bottom: 10px;
  color: #606963;
  font: 11px/1 "Microsoft YaHei", Arial, sans-serif;
}

.reviews {
  position: relative;
  width: 1055px;
  height: 126px;
  margin: 0 auto;
  background: #15191a;
  color: #fff;
  overflow: hidden;
}

.reviews .shell {
  height: 100%;
  position: relative;
  padding-top: 13px;
}

.reviews h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1;
}

.reviews-sub {
  margin: 5px 0 0;
  color: #c0c5c1;
  font: 11px/1 "Microsoft YaHei", Arial, sans-serif;
}

.review-grid {
  position: absolute;
  left: 164px;
  right: 0;
  top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 270px);
  gap: 40px;
}

blockquote {
  margin: 0;
  min-height: 78px;
  padding-left: 20px;
  border-left: 1px solid #3c4140;
  color: #d8dcda;
  font: 11px/1.35 "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

blockquote p {
  margin: 0;
}

blockquote::before {
  content: "\201C";
  display: block;
  height: 13px;
  color: #7f8582;
  font: 30px/0.8 Georgia, serif;
}

blockquote footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

blockquote img {
  width: 25px;
  height: 25px;
  border-radius: 50%;
}

blockquote em {
  color: #b8beb9;
  font-style: normal;
}

.review-arrow {
  position: absolute;
  z-index: 1;
  top: 55px;
  width: 22px;
  height: 22px;
  border: 1px solid #4b5250;
  border-radius: 50%;
  background: transparent;
  color: #a4aaa7;
  font: 18px/1 Arial, sans-serif;
}

.review-prev {
  left: 32px;
}

.review-next {
  right: 66px;
}

.booking {
  width: 1055px;
  height: 124px;
  margin: 0 auto;
  background: url("./assets/cta-clean.jpg") center center / cover no-repeat;
  color: #fff;
}

.booking-inner {
  position: relative;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 18px;
  padding: 17px 0 0 10px;
}

.booking h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
}

.booking p {
  margin: 7px 0 9px;
  color: rgba(255, 255, 255, 0.88);
  font: 12px/1 "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif;
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 94px;
  gap: 8px;
  align-items: start;
  padding-top: 9px;
}

.booking-form button {
  position: static;
  width: 94px;
  height: 31px;
  background: #fff;
  color: #1b2722;
  font: 11px/1 "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif;
}

.booking-message {
  position: absolute;
  left: 358px;
  bottom: 22px;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer {
  width: 1055px;
  height: 89px;
  margin: 0 auto;
  background: linear-gradient(180deg, #222728 0%, #171b1c 100%);
  color: #b9c0bc;
  overflow: hidden;
  font: 9px/1.6 "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif;
}

.footer-inner {
  height: 70px;
  display: grid;
  grid-template-columns: 150px 90px 105px 105px 105px 210px 98px;
  gap: 14px;
  padding-top: 14px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  margin-bottom: 5px;
  font: 18px/1 "Noto Serif CJK SC", "SimSun", serif;
}

.footer-brand p,
.footer-contact p,
.footer-qr p {
  margin: 0;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.footer-col h3,
.footer-contact h3 {
  margin: 0 0 3px;
  color: #eef1ef;
  font: 10px/1.2 "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif;
}

.footer-col a {
  color: #aab1ad;
}

.footer-contact p {
  padding-left: 14px;
}

.footer-qr {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
}

.footer-qr img {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.copyright {
  margin: 0;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: #8f9693;
  font: 9px/1 "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif;
}

/* ── Member page ─────────────────────────────────────────── */

.member-page {
  background: #f0f3f1;
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

.member-main {
  width: 1055px;
  margin: 0 auto;
  background: #f0f3f1;
}

/* Hero */
.member-hero {
  background:
    linear-gradient(105deg, rgba(7, 26, 19, 0.92) 0%, rgba(7, 26, 19, 0.72) 50%, rgba(7, 26, 19, 0.22) 100%),
    url("./assets/hero-slide-2.webp") center center / cover no-repeat;
  color: #fff;
}

.member-hero-inner {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
}

.member-hero-text h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.member-hero-text p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

/* Summary card in hero */
.member-summary {
  flex-shrink: 0;
  width: 210px;
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.member-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.member-summary-divider {
  height: 1px;
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.18);
}

.summary-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.summary-state {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.summary-value {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 500;
}

.summary-credits {
  color: #7ee8b8;
}

.member-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.member-login-toggle,
.member-logout-btn {
  width: 100%;
  height: 32px;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  transition: background 0.15s;
}

.member-login-toggle {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.member-login-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
}

.member-logout-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
}

.member-logout-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Section spacing */
.member-section {
  padding: 20px 0 0;
}

.member-section-last {
  padding-bottom: 36px;
}

/* Section header */
.mc-section-header {
  margin-bottom: 14px;
}

.mc-section-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1a2620;
}

.mc-section-header p {
  margin: 4px 0 0;
  color: #7a8880;
  font-size: 12px;
}

/* Generic card */
.mc-card {
  border-radius: 10px;
  border: 1px solid #dde3df;
  background: #fff;
  box-shadow: 0 2px 12px rgba(16, 59, 44, 0.06);
}

/* Card header inside a card */
.mc-card-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid #edf0ed;
}

.mc-card-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a2620;
}

.mc-card-header p {
  margin: 4px 0 0;
  color: #8a9490;
  font-size: 12px;
}

/* Buttons */
.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  transition: opacity 0.15s, background 0.15s;
}

.mc-btn-primary {
  background: var(--green);
  color: #fff;
  border: 0;
}

.mc-btn-primary:hover {
  background: var(--green-dark);
}

.mc-btn-ghost {
  background: transparent;
  color: #6b7872;
  border: 1px solid #cdd5d0;
}

.mc-btn-ghost:hover {
  background: #f4f7f5;
}

/* Labels */
.mc-label {
  display: grid;
  gap: 5px;
  color: #4e5c56;
  font-size: 12px;
  font-family: inherit;
}

.mc-label span {
  font-weight: 500;
}

/* Auth modal */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 16, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.auth-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pay-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 910;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 16, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.pay-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal {
  position: relative;
  width: 400px;
  padding: 32px 28px 28px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(10, 20, 16, 0.22);
  transform: translateY(12px);
  transition: transform 0.2s;
}

.pay-modal {
  position: relative;
  width: 400px;
  padding: 32px 28px 28px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(10, 20, 16, 0.22);
}

.auth-modal-backdrop.is-open .auth-modal {
  transform: translateY(0);
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: #f0f3f1;
  color: #6b7872;
  font-size: 13px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}

.auth-modal-close:hover {
  background: #e2e8e4;
}

.auth-modal-backdrop.auth-required .auth-modal-close {
  display: none;
}

.auth-modal-header {
  margin-bottom: 18px;
}

.auth-modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1a2620;
}

.auth-modal-header p {
  margin: 5px 0 0;
  color: #8a9490;
  font-size: 12px;
}

.auth-modal .auth-tabs {
  margin-bottom: 16px;
}

.auth-modal .auth-subtabs {
  margin-bottom: 16px;
}

.auth-modal-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-wechat-panel {
  display: grid;
  gap: 14px;
}

.auth-wechat-qr-frame {
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid #d8dfda;
  border-radius: 12px;
  background: #fbfcfb;
}

.auth-wechat-qr-frame img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.auth-wechat-tip {
  margin: 0;
  color: #6f7a75;
  font-size: 13px;
  text-align: center;
}

.auth-wechat-refresh {
  width: 100%;
  height: 40px;
  border-radius: 8px;
}

.pay-plan-card {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #dde3df;
  border-radius: 12px;
  background: #f8faf9;
}

.pay-plan-name {
  color: #1a2620;
  font-size: 18px;
  font-weight: 700;
}

.pay-plan-price {
  margin-top: 8px;
  color: var(--green);
  font-size: 28px;
  font-weight: 700;
}

.pay-plan-desc {
  margin-top: 6px;
  color: #6f7a75;
  font-size: 13px;
}

.auth-modal-fields input {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #d0d8d3;
  border-radius: 7px;
  background: #fafcfb;
  color: #222;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.15s;
}

.auth-modal-fields input:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
}

.auth-submit-btn {
  width: 100%;
  height: 40px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  margin-top: 4px;
}

/* Inline field (code row) */
.inline-field {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 8px;
}

.inline-field button {
  height: 36px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  border: 0;
  white-space: nowrap;
}

.inline-field button:hover {
  background: var(--green-dark);
}

.captcha-field {
  grid-template-columns: 1fr 120px;
}

.captcha-field button {
  background: #f2f6f3;
  color: #264536;
  border: 1px solid #d3dbd6;
  font-weight: 600;
}

.captcha-field button:hover {
  background: #e7efea;
}

/* Segmented control */
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 7px;
  border: 1px solid #cdd5d0;
  overflow: hidden;
}

.segmented button {
  height: 32px;
  background: #fff;
  color: #6b7872;
  font-size: 11px;
  font-family: inherit;
  border: 0;
  border-right: 1px solid #cdd5d0;
  transition: background 0.12s, color 0.12s;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.active {
  background: var(--green);
  color: #fff;
  font-weight: 500;
}

/* Plan grid */
.member-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.member-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 18px 18px;
  border-radius: 10px;
  border: 1px solid #dde3df;
  background: #fff;
  box-shadow: 0 2px 12px rgba(16, 59, 44, 0.06);
  transition: box-shadow 0.18s, transform 0.18s;
}

.member-plan-card:hover {
  box-shadow: 0 6px 24px rgba(16, 59, 44, 0.12);
  transform: translateY(-2px);
}

.member-plan-card > span {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 2px 8px;
  border-radius: 20px;
  background: #eef3f0;
  color: #7a8880;
  font-size: 10px;
  font-weight: 500;
}

.member-plan-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #1a2620;
}

.member-plan-card strong {
  display: block;
  color: #1a2620;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.member-plan-card small {
  font-size: 13px;
  font-weight: 400;
  color: #5a6660;
  margin-right: 2px;
}

.member-plan-card em {
  font-size: 12px;
  font-style: normal;
  color: #8a9490;
  margin-left: 3px;
}

.member-plan-card p {
  margin: 8px 0 0;
  color: #6b7872;
  font-size: 12px;
  line-height: 1.4;
}

.member-plan-card ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.member-plan-card li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 5px;
  color: #4e5c56;
  font-size: 12px;
  line-height: 1.4;
}

.member-plan-card li::before {
  content: "✓";
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--green);
  font-weight: 700;
}

.member-plan-card button {
  width: 100%;
  height: 34px;
  margin-top: 14px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  border: 0;
  transition: background 0.15s;
}

.member-plan-card button:hover {
  background: var(--green-dark);
}

/* Workbench */
.member-workbench {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
}

/* AI form */
.ai-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 18px;
}

.credit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 7px;
  background: #f0f5f2;
  color: #5a6a62;
  font-size: 12px;
}

.credit-bar strong {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.ai-form .mc-label input,
.ai-form .mc-label select,
.ai-form .mc-label textarea {
  width: 100%;
  border: 1px solid #d0d8d3;
  border-radius: 6px;
  background: #fafcfb;
  color: #222;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.15s;
}

.ai-form .mc-label input,
.ai-form .mc-label select {
  height: 36px;
  padding: 0 10px;
}

.ai-form .mc-label textarea {
  resize: vertical;
  min-height: 64px;
  padding: 8px 10px;
  line-height: 1.5;
}

.prompt-plan {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  min-height: 72px;
  padding: 9px;
  border: 1px solid #dce6e0;
  border-radius: 7px;
  background: #f8fbf9;
}

.prompt-plan:empty {
  display: none;
}

.prompt-plan img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  background: #eef3f0;
}

.prompt-plan .prompt-plan-images {
  width: 72px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  align-content: start;
}

.prompt-plan .prompt-plan-images img {
  width: 34px;
  height: 34px;
  border-radius: 4px;
}

.prompt-plan div {
  min-width: 0;
  display: grid;
  gap: 4px;
  align-content: center;
}

.prompt-plan strong {
  color: #26342e;
  font-size: 13px;
}

.prompt-plan p,
.prompt-plan span {
  margin: 0;
  color: #66746d;
  font-size: 12px;
  line-height: 1.45;
}

.ai-form .mc-label input:focus,
.ai-form .mc-label select:focus,
.ai-form .mc-label textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Upload field */
.upload-field {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.upload-field.is-visible {
  display: flex;
}

.upload-title {
  color: #4e5c56;
  font-size: 11px;
  font-weight: 500;
}

.upload-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.upload-history-trigger {
  flex: 0 0 auto;
  height: 26px;
  padding: 0 10px;
  border: 1px solid #d2dad5;
  border-radius: 999px;
  background: #fff;
  color: #4f5c56;
  font-size: 11px;
}

.upload-history-trigger:hover {
  border-color: #aab9b2;
  background: #f6faf7;
}

.upload-size-hint {
  color: #9aaa9e;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
}

/* Hidden native file input */
.upload-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Click/drop zone */
.upload-zone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  border-radius: 8px;
  border: 1.5px dashed #b8c8c0;
  background: #f4f8f5;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--green);
  background: #eef5f1;
}

.upload-zone-placeholder {
  color: #8a9490;
  font-size: 11px;
  pointer-events: none;
}

.upload-preview-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  padding: 10px;
}

.upload-preview-item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: #e9efec;
}

.upload-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview-item button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}

/* Clear button — top-right corner, only visible when has-preview */
.upload-clear {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s;
}

.upload-zone.has-preview .upload-clear {
  display: grid;
}

.upload-clear:hover {
  background: rgba(0, 0, 0, 0.65);
}

.upload-history-backdrop {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 16, 12, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.upload-history-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.upload-history-modal {
  position: relative;
  width: min(920px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e0e5e2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 80px rgba(10, 20, 16, 0.28);
  overflow: auto;
}

.upload-history-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef2f0;
  color: #5f6964;
  font-size: 13px;
  line-height: 1;
}

.upload-history-head {
  padding-right: 42px;
}

.upload-history-head h2 {
  margin: 0 0 4px;
  color: #18211d;
  font-size: 15px;
  line-height: 1.3;
}

.upload-history-head span {
  color: #7e8883;
  font-size: 12px;
}

.upload-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.upload-history-item {
  display: grid;
  gap: 6px;
  padding: 6px;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  background: #fff;
  color: #30403a;
  text-align: left;
}

.upload-history-item.is-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(16, 59, 44, 0.10);
}

.upload-history-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  background: #eef2ef;
}

.upload-history-item span {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.upload-history-item small {
  color: #88928d;
  font-size: 11px;
}

.upload-history-empty {
  margin: 0;
  color: #7e8883;
  font-size: 12px;
}

.upload-history-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.upload-history-actions button {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #d7ded9;
  border-radius: 6px;
  background: #fff;
  color: #323b36;
  font-size: 12px;
}

.upload-history-actions button:last-child {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* Cost line */
.cost-line {
  margin: 0;
  color: #6b7872;
  font-size: 12px;
}

.cost-line strong {
  color: var(--green);
  font-weight: 700;
}

/* Submit button */
.submit-ai {
  width: 100%;
  height: 38px;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  border: 0;
  transition: background 0.15s;
}

.submit-ai:hover {
  background: var(--green-dark);
}

/* Form messages */
.form-message {
  margin: 0;
  min-height: 16px;
  color: #5a7a6a;
  font-size: 12px;
  line-height: 1.4;
}

/* Record panel */
.record-panel {
  display: flex;
  flex-direction: column;
  padding: 18px;
  min-height: 380px;
}

.task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.task-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1a2620;
}

.task-head span {
  color: #8a9490;
  font-size: 12px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.result-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  border-radius: 8px;
  border: 1px solid #e4eae6;
  background: #f8fbf9;
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.result-card:hover {
  box-shadow: 0 3px 12px rgba(16, 59, 44, 0.09);
}

.result-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  width: 100px;
  height: 90px;
  background: #edf2ef;
}

.result-thumbs img {
  width: 100px;
  height: 90px;
  object-fit: cover;
}

.result-thumbs img:nth-child(n+2) {
  width: 49px;
  height: 44px;
}

.result-thumbs img:first-child:nth-last-child(n+2) {
  width: 49px;
  height: 44px;
}

.result-meta {
  min-width: 0;
  padding: 10px 12px;
}

.result-card strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #1a2620;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-card span {
  display: block;
  margin-top: 5px;
  color: #7a8880;
  font-size: 11px;
  line-height: 1.4;
}

.result-card a {
  display: inline-block;
  margin-top: 6px;
  color: var(--green);
  font-size: 11px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.empty-task {
  margin: auto;
  color: #9aaa9e;
  font-size: 13px;
  text-align: center;
}

/* Member studio layout */
.member-page {
  min-width: 1280px;
  min-height: 100vh;
  background: #f3f5f4;
  color: #202623;
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

.member-page .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  height: 68px;
  border-bottom: 1px solid #edf0ef;
  box-shadow: 0 8px 26px rgba(18, 34, 28, 0.06);
}

.member-page .header-inner {
  width: 100%;
  max-width: none;
  height: 68px;
  padding: 0 28px;
}

.member-page .brand {
  flex-shrink: 0;
  width: auto;
}

.member-page .brand-name {
  font-size: 24px;
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

.member-page .nav {
  flex: 1;
  justify-content: center;
  gap: 36px;
  font-size: 12px;
}

.member-page .nav a {
  padding: 26px 0;
}

.member-page .nav .active::after {
  bottom: 18px;
  height: 2px;
}

.member-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: 20px;
}

.member-nav-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #65716b;
  font-size: 11px;
  white-space: nowrap;
}

.member-nav-status b {
  color: var(--green);
  font-weight: 600;
}

.member-page .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 94px;
  height: 32px;
  padding: 0 14px;
  margin: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
}

.member-header-actions .member-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 78px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #cfd8d3;
  border-radius: 6px;
  background: #fff;
  color: #4f5b55;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.member-header-actions .member-logout-btn:hover {
  background: #f3f7f5;
}

.member-avatar-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #e8eeea;
  box-shadow: 0 4px 14px rgba(16, 59, 44, 0.16);
  overflow: hidden;
}

.member-avatar-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-main {
  width: 100%;
  min-height: calc(100vh - 68px);
  background: #f3f5f4;
}

.member-studio-shell {
  display: grid;
  grid-template-columns: 420px minmax(500px, 1fr) 620px;
  gap: 18px;
  width: 100%;
  max-width: 1888px;
  margin: 0 auto;
  padding: 18px 20px;
}

.member-page .mc-card {
  border: 1px solid #e0e5e2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(24, 36, 31, 0.06);
}

.member-hidden-field {
  display: none !important;
}

.prompt-chip-groups.is-hidden,
.key-info-box.is-hidden {
  display: none;
}

.tool-panel {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: calc(100vh - 104px);
  padding: 22px 18px 20px;
}

.panel-title-row,
.generation-head,
.template-head,
.task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-title-row h1,
.generation-head h2,
.template-head h2 {
  margin: 0;
  color: #111a16;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.clear-prompt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 4px;
  background: transparent;
  color: #7e8883;
  font-size: 12px;
}

.tool-panel .credit-bar {
  padding: 9px 12px;
  border-radius: 7px;
  background: #eef4f1;
}

.task-type-switch {
  grid-template-columns: 1fr;
  margin-bottom: 2px;
}

.prompt-category-tabs {
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  margin-bottom: 2px;
}

.prompt-category-tabs:empty,
.prompt-category-tabs[hidden] {
  display: none;
}

.prompt-chip-groups {
  display: grid;
  gap: 10px;
}

.chip-group {
  display: grid;
  gap: 7px;
}

.chip-group > span,
.basic-settings h2 {
  color: #66716b;
  font-size: 11px;
  font-weight: 500;
}

.chip-group div {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px 10px;
}

.chip-group button {
  height: 28px;
  border: 1px solid #e0e5e2;
  border-radius: 5px;
  background: #fbfcfb;
  color: #6e7772;
  font-size: 11px;
}

.chip-group button.active,
.chip-group button:hover {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  font-weight: 500;
}

.basic-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(186px, 0.9fr);
  align-items: end;
  gap: 8px 10px;
  margin-top: 2px;
  padding-top: 13px;
  border-top: 1px solid #edf0ef;
}

.basic-settings h2 {
  grid-column: 1 / -1;
  margin: 0;
}

.basic-settings .form-row-2 {
  display: block;
  min-width: 0;
}

.basic-settings > .mc-label:not(.member-hidden-field) {
  display: grid;
  min-width: 0;
}

.basic-settings > .mc-label:not(.member-hidden-field) > span {
  min-height: 17px;
  font-size: 11px;
}

.basic-settings > .mc-label:not(.member-hidden-field) select {
  height: 34px;
  font-size: 12px;
}

.image-control {
  position: relative;
  z-index: 4;
}

.image-control-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.image-config-trigger,
.image-count-trigger {
  height: 34px;
  border: 1px solid #dbe2ef;
  border-radius: 8px;
  background: #fff;
  color: #202331;
  font-size: 12px;
  box-shadow: 0 1px 1px rgba(23, 34, 60, 0.03);
}

.image-config-trigger {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 0 8px;
}

.image-config-trigger [data-current-ratio-label],
.image-config-trigger [data-resolution-label] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-config-trigger i {
  width: 1px;
  height: 16px;
  background: #d9deea;
}

.image-count-trigger {
  width: 54px;
}

.count-control {
  position: relative;
}

.count-menu {
  position: absolute;
  right: 0;
  top: 40px;
  z-index: 6;
  display: grid;
  width: 228px;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #dfe5f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(31, 39, 66, 0.12);
}

.count-menu[hidden],
.image-control-popover[hidden] {
  display: none;
}

.count-menu > span {
  color: #555d70;
  font-size: 12px;
}

.count-slider-row {
  display: grid;
  grid-template-columns: 1fr 56px;
  align-items: center;
  gap: 12px;
}

.count-slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.count-slider-row input[type="number"] {
  width: 56px;
  height: 34px;
  border: 1px solid #dbe2ef;
  border-radius: 8px;
  color: #111827;
  font-size: 16px;
  text-align: center;
}

.image-control-popover {
  position: absolute;
  top: 42px;
  z-index: 5;
  display: grid;
  gap: 0;
  padding: 0;
  border: 1px solid #e4e9f4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 39, 66, 0.10), 0 2px 6px rgba(31, 39, 66, 0.06);
  overflow: hidden;
}

.image-control-popover section {
  padding: 14px 14px 12px;
}

.image-control-popover section + section {
  border-top: 1px solid #f0f3fa;
}

.image-control-popover section:first-child {
  border-radius: 14px 14px 0 0;
}

.image-control-popover section:last-child {
  border-radius: 0 0 14px 14px;
}

/* ratio section 撑满宽度，滚动不被截断 */
.image-control-popover section:nth-child(2) {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 14px;
}

.image-control-popover section:nth-child(2) h3 {
  padding-left: 14px;
  padding-right: 14px;
}

.image-control-popover h3 {
  margin: 0 0 8px;
  color: #8892a4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resolution-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 3px;
  border-radius: 10px;
  background: #f2f4fb;
}

.resolution-tabs button {
  min-width: 0;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  color: #555d70;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.resolution-tabs button:hover {
  background: rgba(255, 255, 255, 0.66);
}

.resolution-tabs button.active {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 4px rgba(31, 39, 66, 0.10);
}

.ratio-grid {
  display: flex;
  gap: 3px;
  padding: 3px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #f2f4fb;
}

.ratio-grid::-webkit-scrollbar {
  display: none;
}

.ratio-grid button {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 50px;
  border-radius: 8px;
  background: transparent;
  color: #353a4e;
  transition: background 0.15s, box-shadow 0.15s;
}

.ratio-grid button:hover {
  background: rgba(255, 255, 255, 0.7);
}

.ratio-grid button.active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(31, 39, 66, 0.10);
}

.ratio-grid b {
  font-size: 10px;
  font-weight: 600;
  color: inherit;
}

.ratio-symbol {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
}

.ratio-symbol::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1.5px solid #5a6078;
  border-radius: 3px;
  transform: translate(-50%, -50%);
}

.ratio-grid button.active .ratio-symbol::before {
  border-color: #3b6ef8;
}

.ratio-grid button.active b {
  color: #3b6ef8;
}

.ratio-symbol.smart::before {
  width: 11px;
  height: 11px;
}

.ratio-symbol.smart::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 4px;
  height: 4px;
  border: 1px solid #5a6078;
  border-radius: 2px;
  background: #fff;
}

.ratio-grid button.active .ratio-symbol.smart::after {
  border-color: #3b6ef8;
}

.ratio-symbol.square::before {
  width: 12px;
  height: 12px;
}

.ratio-symbol.portrait::before,
.ratio-symbol.tall::before {
  width: 8px;
  height: 14px;
}

.ratio-symbol.landscape::before,
.ratio-symbol.wide::before,
.ratio-symbol.ultra::before {
  width: 15px;
  height: 8px;
}

.ratio-symbol.ultra::before {
  width: 17px;
  height: 6px;
}

.dimension-row {
  display: grid;
  grid-template-columns: 1fr 20px 1fr;
  align-items: center;
  gap: 6px;
}

.dimension-row label {
  position: relative;
  display: block;
}

.dimension-row label span {
  position: absolute;
  left: 10px;
  top: 50%;
  color: #8892a4;
  font-size: 11px;
  font-weight: 600;
  transform: translateY(-50%);
  pointer-events: none;
}

.dimension-row input {
  width: 100%;
  height: 34px;
  padding: 0 10px 0 28px;
  border: 1px solid #dbe2ef;
  border-radius: 8px;
  background: #f8fafd;
  color: #303648;
  font-size: 13px;
  text-align: right;
  transition: border-color 0.15s, background 0.15s;
}

.dimension-row input:focus {
  outline: none;
  border-color: #3b6ef8;
  background: #fff;
}

.dimension-row em {
  width: 12px;
  height: 6px;
  justify-self: center;
  border-top: 1.5px solid #9aa0b4;
  border-bottom: 1.5px solid #9aa0b4;
  border-radius: 8px;
}

@media (max-width: 760px) {
  .basic-settings {
    grid-template-columns: 1fr;
  }

  .count-menu {
    right: auto;
    left: 0;
  }
}

.tool-panel .mc-label {
  gap: 6px;
}

.tool-panel .mc-label > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-panel .mc-label em {
  color: #a0aaa5;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
}

.tool-panel .mc-label input,
.tool-panel .mc-label select,
.tool-panel .mc-label textarea {
  width: 100%;
  border: 1px solid #d9dfdc;
  border-radius: 5px;
  background: #fff;
  color: #2f3733;
  font: 12px/1.45 "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

.tool-panel .mc-label input,
.tool-panel .mc-label select {
  height: 36px;
  padding: 0 10px;
}

.tool-panel .mc-label textarea {
  resize: vertical;
  min-height: 76px;
  padding: 10px;
}

.tool-panel .compact-textarea textarea {
  min-height: 62px;
}

.template-prompt-field {
  display: none;
}

.template-prompt-field.is-visible {
  display: grid;
}

.template-prompt-field textarea.is-locked {
  background: #f5f7f6;
  color: #66716b;
  cursor: not-allowed;
}

.key-info-box {
  display: grid;
  gap: 7px;
}

.key-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4e5c56;
  font-size: 11px;
  font-weight: 500;
}

.key-info-head em {
  color: #a0aaa5;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
}

.key-info-box p {
  min-height: 54px;
  margin: 0;
  padding: 10px;
  border: 1px solid #d9dfdc;
  border-radius: 5px;
  background: #fff;
  color: #4d5b55;
  font-size: 12px;
  line-height: 1.5;
}

.tool-panel .prompt-plan {
  grid-template-columns: 60px 1fr;
  min-height: 64px;
  padding: 8px;
  border-radius: 6px;
}

.tool-panel .prompt-plan img {
  width: 60px;
  height: 60px;
}

.tool-panel .prompt-plan .prompt-plan-images {
  width: 60px;
}

.tool-panel .prompt-plan .prompt-plan-images img {
  width: 28px;
  height: 28px;
}

.tool-panel .form-row-2 {
  gap: 8px;
}

.tool-panel .upload-zone {
  height: 86px;
}

.tool-panel .upload-preview-list {
  grid-template-columns: repeat(5, 1fr);
}

.tool-panel .cost-line {
  display: none;
}

.tool-panel .submit-ai {
  height: 38px;
  border-radius: 5px;
  font-size: 13px;
}

.creation-column {
  display: block;
  min-width: 0;
}

.history-panel,
.template-panel {
  padding: 20px;
}

.generation-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 20, 16, 0.58);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.generation-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.generation-modal {
  position: relative;
  width: min(1280px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 18px;
  border: 1px solid #e0e5e2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 80px rgba(10, 20, 16, 0.28);
  overflow: auto;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.18s ease;
}

.generation-modal-backdrop.is-open .generation-modal {
  transform: translateY(0) scale(1);
}

.generation-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef2f0;
  color: #5f6964;
  font-size: 13px;
  line-height: 1;
}

.generation-modal-close:hover {
  background: #dfe7e3;
}

.generation-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  margin-bottom: 12px;
  padding-right: 42px;
  gap: 10px 12px;
}

.generation-head div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.generation-head h2 {
  font-size: 13px;
}

.generation-head span,
.task-head h3 span {
  color: #8c9691;
  font-size: 11px;
  font-weight: 500;
}

.generation-head strong {
  color: #0b6a48;
  font-size: 11px;
  font-weight: 600;
  justify-self: end;
  white-space: nowrap;
}

.generation-preview {
  position: relative;
  width: 100%;
  min-height: min(48vh, 420px);
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #141b18;
  overflow: auto;
}

.generation-preview > img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78vh, 920px);
  object-fit: contain;
  cursor: zoom-in;
}

.generation-preview > img:hover {
  opacity: 0.96;
}

.generation-thumbs {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}

.generation-thumbs button {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  padding: 3px;
  border: 1px solid #d4ddd8;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}

.generation-thumbs button.active {
  border-color: var(--green);
}

.generation-thumbs button:hover {
  transform: translateY(-1px);
}

.generation-thumbs img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.generation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  background: none;
}

.generation-actions button {
  width: auto;
  min-width: 96px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #d7ded9;
  border-radius: 5px;
  background: #fff;
  color: #323b36;
  font-size: 12px;
}

.generation-actions button:hover {
  border-color: #aebbb5;
  background: #f7faf8;
}

.template-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 16, 12, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.template-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.template-modal {
  position: relative;
  width: min(960px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: 16px;
  border: 1px solid #e0e5e2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 80px rgba(10, 20, 16, 0.28);
  overflow: auto;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.18s ease;
}

.template-modal-backdrop.is-open .template-modal {
  transform: translateY(0) scale(1);
}

.template-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef2f0;
  color: #5f6964;
  font-size: 13px;
  line-height: 1;
}

.template-modal-close:hover {
  background: #dfe7e3;
}

.template-modal-head {
  padding-right: 42px;
}

.template-modal-head h2 {
  margin: 0 0 4px;
  color: #18211d;
  font-size: 15px;
  line-height: 1.3;
}

.template-modal-head span {
  color: #7e8883;
  font-size: 12px;
}

.template-modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: start;
  gap: 10px;
  margin-top: 12px;
}

.template-modal-image {
  aspect-ratio: var(--template-modal-image-ratio, 4 / 3);
  margin: 0;
  border-radius: 6px;
  background: #e7ebe8;
  overflow: hidden;
}

.template-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.template-modal-apply {
  width: 100%;
  height: 38px;
  margin-top: 12px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.template-modal-apply:hover {
  background: var(--green-dark);
}

.current-generation-card.is-template-applied .generation-actions {
  display: none;
}

.current-generation-card.is-template-applied .generation-preview {
  min-height: min(48vh, 420px);
}

.current-generation-card.is-template-applied [data-current-image] {
  filter: saturate(0.92);
}

.current-generation-card.is-generating .generation-thumbs,
.current-generation-card.is-generating .generation-actions {
  display: none;
}

.current-generation-card.is-generating .generation-preview::after {
  content: "AI 正在生成中，请稍候";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-top: 58px;
  background:
    linear-gradient(120deg, rgba(12, 22, 18, 0.44), rgba(16, 59, 44, 0.2), rgba(12, 22, 18, 0.44));
  background-size: 220% 100%;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  animation: generation-loading-wash 1.8s ease-in-out infinite;
}

.current-generation-card.is-generating .generation-preview::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 42px;
  height: 42px;
  margin: -42px 0 0 -21px;
  border: 3px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: generation-loading-spin 0.9s linear infinite;
}

.current-generation-card.is-generating [data-current-image] {
  filter: blur(2px) brightness(0.72) saturate(0.9);
}

@keyframes generation-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes generation-loading-wash {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.history-panel {
  padding: 12px;
  min-height: 286px;
}

.history-panel .task-head {
  margin-bottom: 6px;
}

.history-panel .task-head h3 {
  font-size: 13px;
}

.history-panel .task-head a {
  color: #7e8883;
  font-size: 11px;
}

.history-panel .result-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.sample-result-card {
  display: block;
  border-radius: 7px;
  border: 1px solid #e3e8e5;
  background: #fff;
  overflow: hidden;
}

.sample-result-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.history-thumb-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  aspect-ratio: 3 / 2;
  background: #e7ebe8;
  overflow: hidden;
}

.history-thumb-grid.count-1 {
  display: block;
}

.history-thumb-grid.count-2 {
  grid-template-columns: repeat(2, 1fr);
}

.history-thumb-grid.count-3 img:first-child {
  grid-row: span 2;
}

.history-thumb-grid img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.history-thumb-grid span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(17, 26, 22, 0.72);
  color: #fff;
  font-size: 11px;
}

.sample-result-card .result-meta {
  position: relative;
  padding: 5px 22px 6px 6px;
}

.sample-result-card strong {
  color: #8a918d;
  font-size: 11px;
  font-weight: 500;
}

.sample-result-card p {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 3px 0 0;
  min-height: 20px;
}

.sample-result-card p span {
  margin: 0;
  padding: 1px 4px;
  border-radius: 3px;
  background: #f3f5f4;
  color: #858e89;
  font-size: 10px;
}

.sample-result-card button {
  position: absolute;
  right: 6px;
  bottom: 7px;
  width: 14px;
  height: 14px;
  background: transparent;
  color: #69736d;
  font-size: 12px;
  line-height: 1;
}

.template-panel {
  min-height: calc(100vh - 104px);
  overflow: hidden;
}

.template-head {
  margin-bottom: 8px;
}

.template-head label {
  position: relative;
  width: 254px;
}

.template-head label span {
  position: absolute;
  left: 12px;
  top: 50%;
  color: #9aa39e;
  transform: translateY(-50%);
}

.template-head input {
  width: 100%;
  height: 30px;
  padding: 0 12px 0 34px;
  border: 1px solid #dbe2de;
  border-radius: 6px;
  background: #fbfcfb;
  color: #303834;
  font-size: 11px;
}

.template-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 32px;
  margin-bottom: 8px;
  padding: 0 8px;
  border-radius: 6px;
  background: #f4f6f5;
  overflow-x: auto;
  scrollbar-width: none;
}

.template-tabs::-webkit-scrollbar {
  display: none;
}

.template-tabs button {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  padding: 0;
  background: transparent;
  color: #27332d;
  font-size: 11px;
  font-weight: 400;
}

.template-tabs button.active {
  color: var(--green);
}

.template-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  background: var(--green);
}

.template-more-menu {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: -4px 0 12px;
  padding: 10px;
  border-radius: 7px;
  background: #f7f9f8;
}

.template-more-menu.is-open {
  display: grid;
}

.template-more-menu button {
  height: 30px;
  border: 1px solid #dce3df;
  border-radius: 5px;
  background: #fff;
  color: #5f6964;
  font-size: 12px;
}

.template-more-menu button.active,
.template-more-menu button:hover {
  border-color: var(--green);
  color: var(--green);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-height: calc(100vh - 240px);
  padding-right: 2px;
  overflow: auto;
}

.template-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 8px;
  color: #7f8a84;
  font-size: 12px;
  text-align: center;
}

.template-card {
  padding: 5px;
  border: 1px solid #e4e9e6;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.template-card.is-selected {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(16, 59, 44, 0.18);
}

.template-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 59, 44, 0.08);
}

.template-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background: #e7ebe8;
  overflow: hidden;
}

.template-preview > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-hover-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}

.template-hover-grid img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 3px;
  object-fit: cover;
}

.template-card:hover .template-hover-grid {
  opacity: 1;
  transform: scale(1);
}

.template-card h3 {
  margin: 5px 0 3px;
  color: #18211d;
  font-size: 12px;
  line-height: 1.2;
}

.template-card p,
.template-card span {
  display: block;
  margin: 0;
  color: #7e8883;
  font-size: 10px;
  line-height: 1.3;
}

.template-card button {
  width: 100%;
  height: 24px;
  margin-top: 5px;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.template-card button:hover {
  background: var(--green-dark);
}

.recharge-section {
  padding: 20px 20px 36px;
}

.recharge-inner {
  max-width: 1888px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(24, 36, 31, 0.05);
}

.member-status-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 40px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f4f7f5;
  color: #66716b;
  font-size: 13px;
}

.member-status-strip b {
  color: var(--green);
}

.member-status-strip .member-login-toggle,
.member-status-strip .member-logout-btn {
  width: auto;
  height: 30px;
  padding: 0 12px;
  margin-left: auto;
  border-radius: 5px;
  font-size: 12px;
  border: 1px solid #cfd8d3;
  background: #fff;
  color: #2a3830;
}

.member-status-strip .member-login-toggle:hover {
  background: #f0f5f2;
}

.member-status-strip .member-logout-btn {
  margin-left: 0;
  background: transparent;
  color: #65716b;
}

.member-status-strip .member-logout-btn:hover {
  background: #f0f5f2;
}

@media (max-width: 760px) {
  body {
    min-width: 0;
  }

  .shell,
  .site-header,
  .hero,
  .section,
  .member-main,
  .reviews,
  .booking,
  .site-footer {
    width: 100%;
  }

  .shell {
    padding: 0 16px;
  }

  .site-header {
    height: auto;
  }

  .header-inner {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 76px;
    gap: 10px;
    padding: 12px 16px;
  }

  .brand {
    width: auto;
    gap: 10px;
  }

  .brand-line {
    display: none;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
  }

  .nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 0;
  }

  .header-cta {
    grid-column: 2;
    grid-row: 1;
    width: 76px;
    margin-left: auto;
  }

  .hero {
    height: 360px;
  }

  .hero-content {
    padding: 92px 16px 0;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-arrow {
    display: none;
  }

  .section-head,
  .section-title,
  .booking-inner {
    display: block;
    height: auto;
  }

  .member-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 0;
    gap: 16px;
  }

  .tabs {
    margin-top: 12px;
    overflow-x: auto;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    height: auto;
  }

  .gallery-grid figure,
  .gallery-grid figure:nth-child(n) {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: 132px;
  }

  .style-grid,
  .pricing-grid,
  .auth-grid,
  .member-plan-grid,
  .member-workbench,
  .result-grid,
  .creator-grid,
  .footer-inner,
  .booking-form {
    grid-template-columns: 1fr;
  }

  .style-card,
  .price-card,
  .member-plan-card,
  .creator-card {
    width: 100%;
  }

  .price-card,
  .member-plan-card {
    height: auto;
    min-height: 0;
  }

  .price-card button,
  .member-plan-card button {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .member-summary {
    width: 100%;
  }

  .ai-form,
  .auth-panel .auth-grid,
  .record-panel {
    padding: 14px;
  }

  .auth-tabs,
  .auth-subtabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .prompt-plan {
    grid-template-columns: 64px 1fr;
  }

  .prompt-plan img {
    width: 64px;
    height: 64px;
  }

  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }

  .result-card {
    grid-template-columns: 90px 1fr;
  }

  .result-card img {
    width: 90px;
    height: 80px;
  }

  .reviews {
    height: auto;
    padding: 20px 0;
  }

  .reviews .shell {
    height: auto;
  }

  .review-grid {
    position: static;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
  }

  .review-arrow {
    display: none;
  }

  .booking {
    height: auto;
    background-size: cover;
  }

  .booking-inner {
    padding: 20px 16px 46px;
  }

  .booking-form {
    margin-top: 14px;
  }

  .booking-form button {
    width: 100%;
  }

  .booking-message {
    left: 16px;
    right: 16px;
    bottom: 18px;
  }

  .site-footer {
    height: auto;
  }

  .footer-inner {
    height: auto;
    gap: 12px;
    padding: 20px 16px;
  }

  .auth-modal {
    width: calc(100vw - 32px);
    padding: 24px 20px 20px;
  }

  .pay-modal {
    width: calc(100vw - 32px);
    padding: 24px 20px 20px;
  }
}

@media (max-width: 1600px) {
  .member-page {
    min-width: 1280px;
  }

  .member-studio-shell {
    grid-template-columns: 340px minmax(420px, 1fr) 500px;
    gap: 12px;
    padding: 14px 16px;
  }

  .tool-panel,
  .history-panel,
  .template-panel {
    padding: 16px;
  }

  .history-panel {
    padding: 10px;
  }

  .chip-group div {
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
  }

  .chip-group button {
    font-size: 12px;
  }

  .generation-preview {
    min-height: min(44vh, 380px);
  }

  .generation-thumbs {
    gap: 6px;
  }

  .generation-thumbs button {
    width: 72px;
    height: 72px;
  }

  .generation-actions {
    gap: 6px;
    justify-content: flex-start;
  }

  .generation-actions button {
    min-width: 88px;
  }

  .template-head {
    display: flex;
  }

  .template-head label {
    width: 190px;
    margin-top: 0;
  }

  .template-tabs {
    gap: 4px;
    padding: 0 6px;
  }

  .template-grid {
    gap: 5px;
  }

  .history-panel .result-grid {
    gap: 6px;
  }
}

@media (max-width: 1180px) {
  body.member-page {
    min-width: 0;
  }

  .member-page .site-header,
  .member-page .header-inner {
    height: auto;
  }

  .member-page .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 16px;
  }

  .member-page .brand {
    width: auto;
  }

  .member-page .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .member-header-actions {
    margin-left: 0;
  }

  .member-studio-shell {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .tool-panel,
  .template-panel {
    min-height: 0;
  }

  .template-grid,
  .history-panel .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .template-grid {
    max-height: none;
  }

  .generation-modal-backdrop {
    padding: 14px;
  }

  .upload-history-backdrop {
    padding: 14px;
  }

  .template-modal-backdrop {
    padding: 14px;
  }

  .generation-modal {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
    padding: 14px;
  }

  .generation-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .generation-head strong {
    justify-self: start;
  }

  .template-modal {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
    padding: 14px;
  }

  .upload-history-modal {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
    padding: 14px;
  }

  .template-modal-gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .generation-preview {
    min-height: min(40vh, 320px);
  }

  .generation-thumbs {
    padding-bottom: 4px;
  }

  .generation-actions {
    flex-wrap: wrap;
  }

  .member-status-strip {
    flex-wrap: wrap;
  }

  .member-status-strip .member-login-toggle {
    margin-left: 0;
  }
}
