:root {
  color-scheme: light;
  --ink: #243b31;
  --text: #303c35;
  --muted: #879087;
  --green: #2d5443;
  --green-dark: #203f32;
  --sage: #eaf0e6;
  --line: #e9ece5;
  --paper: #f6f7f2;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--text); font-size: 14px; line-height: 1.6; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; border: 0; background: transparent; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .48; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #9db69b; outline-offset: 4px; }
button { transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s; }
button:active:not(:disabled) { transform: translateY(1px); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
.icon { width: 20px; height: 20px; display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.hidden { display: none !important; }
.site-header { height: 82px; background: #ffffffd9; border-bottom: 1px solid #e5e9df; }
.header-inner { max-width: 1224px; margin: auto; padding: 0 40px; display: flex; align-items: center; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--green); flex: 0 0 295px; }
.brand > svg { width: 44px; height: 30px; }
.brand-cn { font-family: 'Songti SC', 'STSong', 'SimSun', serif; font-size: 27px; line-height: 1.13; letter-spacing: 4px; font-weight: 600; }
.brand-en { display: block; font-family: 'Helvetica Neue', sans-serif; font-size: 8px; letter-spacing: 2.05px; margin-top: 7px; font-weight: 500; }
.main-nav { height: 100%; display: flex; align-items: center; gap: 38px; }
.nav-link { height: 100%; position: relative; padding: 0 2px; color: #899087; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.nav-link.active { color: var(--green); font-weight: 600; }
.nav-link.active::after { content: ''; position: absolute; width: 24px; height: 3px; border-radius: 3px 3px 0 0; bottom: 0; left: calc(50% - 12px); background: var(--green); }
.nav-count { font-size: 10px; border-radius: 5px; background: #edf0ea; padding: 0 5px; font-weight: 500; line-height: 17px; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 23px; }
.prototype-badge { border: 1px solid #e0e6d8; background: #f4f7ef; font-size: 11px; color: #66785d; border-radius: 20px; padding: 6px 11px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.prototype-badge i { width: 5px; height: 5px; background: #91a779; border-radius: 50%; }
.help-button { font-size: 12px; color: #7a837a; display: flex; align-items: center; gap: 6px; padding: 6px 0; }
.help-button .icon { width: 17px; height: 17px; }
.help-button:hover { color: var(--green); }
.main-shell { max-width: 1224px; padding: 28px 40px 0; margin: auto; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.eyebrow { font-size: 9px; font-weight: 500; letter-spacing: 2.4px; color: #7a8b6b; display: flex; align-items: center; gap: 7px; }
.eyebrow > span { height: 5px; width: 5px; border-radius: 50%; background: #94a67b; }
.mobile-disclosure { display: none; }
h1 { margin-top: 8px; color: #263d31; font-size: clamp(25px, 2.3vw, 33px); line-height: 1.45; font-weight: 550; letter-spacing: 1.3px; }
.intro-description { color: #75816d; font-size: 12px; margin-top: 6px; letter-spacing: .4px; }
.journey { display: flex; align-items: center; margin-top: 17px; gap: 13px; }
.journey-step { display: flex; align-items: center; gap: 8px; color: #a5aba0; font-size: 11px; white-space: nowrap; }
.journey-step b { width: 24px; height: 24px; font-size: 9px; border: 1px solid #dfe4d8; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 500; background: #f2f4ec; }
.journey-step b .icon { width: 12px; height: 12px; }
.journey-step.done { color: #7a8b6b; }
.journey-step.done b { background: #e6eddf; border-color: #e6eddf; }
.journey-step.current { color: var(--green); font-weight: 600; }
.journey-step.current b { background: var(--green); color: #fff; border-color: var(--green); }
.journey-line { width: 28px; height: 1px; background: #dde2d5; }
.studio-grid { display: grid; grid-template-columns: .94fr 1fr; gap: 26px; align-items: stretch; }
.panel { background: #fff; border: 1px solid #e6eae0; border-radius: 15px; box-shadow: 0 4px 16px #33482803; overflow: hidden; }
.preview-panel { padding: 0 14px; scroll-margin-top: 20px; }
.panel-top { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 4px; }
.panel-top h2 { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.panel-top h2 .icon { width: 17px; height: 17px; color: #7d8976; }
.icon-button { width: 30px; height: 30px; display: inline-flex; justify-content: center; align-items: center; color: #81907e; padding: 0; border-radius: 7px; }
.icon-button .icon { width: 17px; height: 17px; }
.icon-button:hover { background: #edf2e8; color: var(--green); }
.photo-stage { aspect-ratio: 1; overflow: hidden; position: relative; border-radius: 8px; background: #d9d9cf; isolation: isolate; }
.portrait { width: 100%; height: 100%; object-fit: cover; }
.photo-stage.dragging::after { content: '松开即可导入照片'; display: grid; place-items: center; position: absolute; inset: 0; background: #274e40e8; color: #fff; font-size: 19px; z-index: 10; border: 3px dashed #c6d6ad; }
.stage-top { display: flex; justify-content: space-between; align-items: start; position: absolute; top: 16px; left: 16px; right: 16px; }
.photo-label { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #ffffff66; background: #ffffffe6; border-radius: 5px; color: #5e6b59; padding: 5px 8px; font-size: 10px; box-shadow: 0 2px 10px #00000004; }
.photo-label .icon { width: 12px; height: 12px; }
.stage-expand { background: #ffffffcc; border-radius: 5px; width: 29px; height: 29px; color: #6c7566; display: grid; place-items: center; }
.stage-expand .icon { width: 15px; height: 15px; }
.stage-expand:hover { background: #fff; }
.photo-hint { position: absolute; display: flex; align-items: center; gap: 11px; bottom: 19px; left: 19px; right: 19px; background: #fffffff0; backdrop-filter: blur(10px); border-radius: 8px; padding: 13px 14px; box-shadow: 0 2px 10px #00000003; }
.tiny-star { color: #7c9065; font-size: 27px; font-weight: 200; line-height: 1; }
.photo-hint strong { display: block; color: #41503c; font-size: 12px; font-weight: 550; letter-spacing: .5px; }
.photo-hint div > span { display: block; color: #7d8970; margin-top: 3px; font-size: 10px; }
.photo-actions { display: flex; align-items: center; height: 61px; gap: 10px; }
.upload-button { border: 1px solid #dfe6d8; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 16px; border-radius: 6px; font-size: 11px; color: #506447; }
.upload-button .icon { width: 15px; height: 15px; }
.upload-button:hover { background: #f0f4ec; border-color: #b7c5ab; }
.camera-button { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #8b9583; padding: 7px; }
.camera-button .icon { width: 15px; height: 15px; }
.camera-button:hover { color: var(--green); }
.action-spacer { flex: 1; }
.text-button { display: inline-flex; gap: 6px; align-items: center; font-size: 11px; color: #738366; padding: 6px 0; }
.text-button:hover { color: var(--green-dark); }
.text-button .icon { width: 14px; height: 14px; }
.demo-button { padding-right: 5px; font-size: 10px; }
.muted { color: #a0a99a; }
.privacy-note { display: flex; align-items: center; gap: 5px; color: #939c8c; font-size: 10px; border-top: 1px solid #f0f2eb; height: 35px; justify-content: center; }
.privacy-note > .icon { width: 12px; height: 12px; }
.privacy-note button { display: inline-grid; place-items: center; padding: 0; margin-left: 2px; }
.privacy-note button .icon { width: 11px; height: 11px; }
.catalog-panel { display: flex; flex-direction: column; padding: 22px 22px 0; height: calc((min(100vw, 1224px) - 106px) * .94 / 1.94 + 122px); min-height: 0; }
.catalog-heading { display: flex; justify-content: space-between; align-items: center; }
.section-number { font-family: 'Helvetica Neue', sans-serif; font-size: 8px; letter-spacing: 1.8px; color: #99a38e; margin-bottom: 6px; }
.catalog-heading h2 { font-size: 17px; font-weight: 550; letter-spacing: .5px; }
.catalog-heading h2 span { font-size: 10px; color: #9aa38e; background: #f2f5ee; padding: 3px 7px; border-radius: 4px; margin-left: 7px; vertical-align: middle; font-weight: 400; }
.catalog-tools { display: flex; align-items: center; gap: 7px; margin-top: 20px; margin-bottom: 17px; }
.filter-pill { border-radius: 5px; padding: 5px 11px; font-size: 10px; color: #8e9786; background: #f5f7f1; border: 1px solid transparent; }
.filter-pill:hover { color: var(--green); border-color: #d9e2d0; }
.filter-pill.active { background: var(--green); color: #fff; }
.demo-catalog { margin-left: auto; font-size: 9px; color: #a6ae9e; white-space: nowrap; }
.search-row { display: flex; gap: 8px; align-items: center; margin-bottom: 13px; }
.search-row label { display: flex; align-items: center; gap: 7px; background: #f6f8f2; padding: 7px 10px; border-radius: 6px; flex: 1; }
.search-row .icon { width: 15px; height: 15px; color: #87927b; }
.search-row input { background: transparent; border: 0; min-width: 0; width: 100%; font-size: 11px; outline: none; color: var(--text); }
.search-row input::placeholder { color: #a2ab99; }
.catalog-scroll { height: 0; min-height: 240px; flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d4ddc9 transparent; padding: 1px 4px 8px 1px; overscroll-behavior: contain; }
.products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.product-card { text-align: left; border: 1.5px solid #e9ece4; border-radius: 9px; padding: 0; overflow: hidden; position: relative; background: #fff; }
.product-card:hover { border-color: #b9c7ac; box-shadow: 0 2px 9px #45593c08; }
.product-card.selected { border-color: #658156; box-shadow: 0 0 0 1px #65815612; }
.product-visual { height: clamp(104px, 8.9vw, 125px); position: relative; background: #f7f8f3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card.selected .product-visual { background: #f0f4e9; }
.product-visual > img { width: 87%; height: auto; margin-top: 13px; transition: transform .3s; }
.product-card:hover .product-visual > img { transform: translateY(-3px); }
.product-tag { position: absolute; top: 10px; left: 10px; color: #798a67; font-size: 9px; letter-spacing: .2px; }
.select-mark { position: absolute; top: 9px; right: 9px; border: 1px solid #dce3d4; border-radius: 50%; width: 16px; height: 16px; background: #fff; color: #fff; display: grid; place-items: center; }
.selected .select-mark { background: #688557; border-color: #688557; }
.select-mark .icon { width: 11px; height: 11px; stroke-width: 2; }
.tried-tag { position: absolute; bottom: 5px; right: 8px; color: #869877; font-size: 8px; display: flex; align-items: center; gap: 2px; }
.tried-tag .icon { width: 9px; height: 9px; }
.product-caption { padding: 11px 12px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-caption h3 { font-size: 13px; font-weight: 550; color: #41503a; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.product-caption h3 span { color: #819071; font-size: 9px; font-weight: 400; letter-spacing: .1px; }
.product-caption p { margin-top: 4px; color: #839372; font-size: 10px; display: flex; align-items: center; gap: 5px; }
.product-caption p i { width: 2px; height: 2px; border-radius: 50%; background: #b7bfac; }
.color-dot { border: 2px solid #fff; outline: 1px solid #e2e7dc; background: var(--swatch); width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.selection-footer { border-top: 1px solid var(--line); padding: 14px 0 10px; margin-top: 8px; }
.selected-info { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 0 1px 13px; }
.selected-swatch { width: 30px; height: 30px; border-radius: 6px; position: relative; flex: 0 0 auto; }
.selected-swatch::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(130deg, #ffffff44, transparent); }
.selected-info > span:nth-child(2) { flex: 1; }
.selected-info strong { font-size: 11px; font-weight: 550; display: flex; align-items: center; gap: 12px; }
.selected-info strong span { font-size: 10px; color: #7c8e69; font-weight: 400; }
.selected-info small { display: block; font-size: 9px; color: #8c9a7d; margin-top: 2px; letter-spacing: .2px; }
.selected-info .icon { width: 14px; height: 14px; color: #9faa94; }
.primary-button, .secondary-button, .danger-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 7px; font-size: 12px; line-height: 1.6; font-weight: 500; border: 1px solid transparent; }
.primary-button { background: var(--green); color: #fff; }
.primary-button:hover:not(:disabled) { background: var(--green-dark); box-shadow: 0 4px 10px #203f3212; }
.secondary-button { border-color: #dfe6d6; background: #f9faf6; color: #667d56; }
.secondary-button:hover:not(:disabled) { border-color: #aabf98; background: #f0f4e9; }
.danger-button { background: #a75443; color: #fff; }
.danger-button:hover { background: #8e4335; }
.primary-button .icon, .secondary-button .icon, .danger-button .icon { width: 16px; height: 16px; }
.generate-button { width: 100%; height: 46px; }
.generate-button span:not(.button-spinner) { flex: 1; text-align: left; padding-left: 2px; letter-spacing: 1px; }
.generate-button > .icon:first-child { margin-left: 0; width: 18px; height: 18px; }
.generation-note { display: flex; justify-content: center; align-items: center; gap: 4px; color: #829472; font-size: 9px; margin-top: 9px; letter-spacing: .15px; }
.generation-note .icon { width: 10px; height: 10px; }
.result-actions { display: grid; grid-template-columns: .8fr 1fr; gap: 9px; }
.regenerate-button { width: 100%; display: flex; justify-content: center; align-items: center; gap: 5px; font-size: 9px; color: #8a9980; padding: 9px 0 0; }
.regenerate-button .icon { width: 11px; height: 11px; }
.tips-strip { display: flex; align-items: center; gap: 13px; margin-top: 23px; padding: 15px 20px; border: 1px solid #e4e9db; border-radius: 9px; background: #eef2e7; }
.tips-icon { width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; background: #e3ebd9; color: #8ca172; }
.tips-icon .icon { width: 19px; height: 19px; }
.tips-strip strong { display: block; font-size: 11px; color: #687c55; font-weight: 550; }
.tips-strip p { font-size: 10px; color: #97a18a; margin-top: 3px; }
.tips-strip .text-button { margin-left: auto; font-size: 10px; color: #8a9c78; }
.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 24px; color: #a8b09e; font-size: 9px; }
.site-footer > span { display: flex; align-items: center; gap: 8px; }
.site-footer > span > svg { width: 24px; height: 16px; opacity: .6; }
.site-footer button { font-size: 9px; display: inline-flex; align-items: center; gap: 6px; color: #a0aa96; padding: 3px 0; }
.site-footer button .icon { width: 11px; height: 11px; }
.preview-switch { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); background: #ffffffdf; padding: 4px; border: 1px solid #ffffffaa; backdrop-filter: blur(8px); border-radius: 25px; display: flex; gap: 3px; box-shadow: 0 2px 14px #0000000a; }
.preview-switch button { padding: 6px 14px; font-size: 10px; border-radius: 20px; color: #8d9880; white-space: nowrap; }
.preview-switch button.active { background: var(--green); color: #fff; }
.feedback-strip { display: flex; justify-content: center; align-items: center; gap: 20px; padding-top: 19px; font-size: 10px; color: #859479; }
.feedback-strip > span { display: flex; align-items: center; gap: 6px; }
.feedback-strip .icon { width: 14px; height: 14px; }
.feedback-button { display: flex; align-items: center; gap: 5px; border: 1px solid #e0e7d6; padding: 5px 10px; border-radius: 20px; background: #fff; font-size: 10px; }
.feedback-button:hover { background: #edf2e4; }
.feedback-strip strong { font-size: 10px; font-weight: 500; }
.empty-stage { background: #f3f5ed; border: 1px dashed #c9d4ba; }
.upload-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; padding: 20px; }
.upload-empty > .icon { width: 49px; height: 49px; color: #a6b895; stroke-width: 1; margin-bottom: 20px; }
.upload-empty h3 { font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.upload-empty p { color: #8b9980; font-size: 11px; margin-bottom: 25px; }
.upload-empty .primary-button { margin-bottom: 8px; }
.upload-empty small { margin-top: 20px; color: #a1ae96; font-size: 9px; }
.no-products { text-align: center; padding: 70px 10px; color: #91a27f; }
.no-products > .icon { width: 28px; height: 28px; }
.no-products h3 { font-size: 14px; font-weight: 500; margin: 12px 0 8px; }
.no-products p { font-size: 11px; margin-bottom: 8px; }
.processing-overlay, .failure-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #273d3266; backdrop-filter: blur(5px); z-index: 3; overflow: hidden; }
.processing-card { background: #ffffffed; padding: 30px 33px 22px; border-radius: 13px; text-align: center; width: 77%; position: relative; z-index: 1; box-shadow: 0 8px 40px #1b332f12; }
.processing-orbit { border: 1px solid #dfe8d5; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #728e59; margin: 0 auto 18px; position: relative; }
.processing-orbit::after { content: ''; position: absolute; inset: -4px; border: 2px solid transparent; border-top-color: #8da77a; border-radius: 50%; animation: spin 2s linear infinite; }
.processing-orbit .icon { width: 25px; height: 25px; }
.processing-card h3 { font-size: 17px; font-weight: 500; }
.processing-card > p { font-size: 11px; color: #909e84; margin-top: 7px; }
.processing-steps { display: flex; justify-content: space-between; gap: 16px; margin: 25px 0 20px; }
.processing-steps span { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #b1bba7; }
.processing-steps b { width: 19px; height: 19px; display: grid; place-items: center; background: #edf1e6; border-radius: 50%; font-size: 9px; font-weight: 400; }
.processing-steps .current { color: var(--green); }
.processing-steps .current b { color: #fff; background: var(--green); }
.processing-steps .done { color: #94a581; }
.processing-card small { font-size: 9px; color: #a0ad92; }
.scan-line { position: absolute; width: 100%; height: 100px; background: linear-gradient(transparent, #d8f5a62b); border-bottom: 1px solid #dfefc2a3; animation: scan 2.5s ease-in-out infinite alternate; }
.button-spinner { height: 15px; width: 15px; border: 1.5px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.failure-overlay > div { width: 80%; padding: 30px; background: #fffefa; text-align: center; border-radius: 12px; }
.failure-overlay > div > .icon { width: 36px; height: 36px; color: #af9c7f; margin-bottom: 15px; }
.failure-overlay h3 { font-size: 17px; font-weight: 500; }
.failure-overlay p { font-size: 11px; color: #9a9c8c; margin: 12px 0 20px; }
.failure-overlay .text-button { display: block; margin: 6px auto 15px; }
.failure-overlay small { font-size: 9px; color: #b1ad9c; }
.history-panel { padding: 28px; min-height: 540px; }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.history-heading h2 { font-size: 20px; font-weight: 500; }
.history-heading h2 span { font-size: 12px; color: #95a183; margin-left: 8px; }
.history-heading p { font-size: 11px; color: #96a08d; margin-top: 8px; }
.history-heading > div:last-child { display: flex; gap: 10px; flex-shrink: 0; }
.history-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.history-card { border: 1px solid #e5eadc; border-radius: 10px; overflow: hidden; }
.history-photo { display: block; width: 100%; padding: 0; position: relative; aspect-ratio: 1; overflow: hidden; }
.history-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.history-photo:hover img { transform: scale(1.035); }
.history-disclosure { position: absolute; top: 9px; left: 9px; background: #ffffffe0; border-radius: 4px; padding: 3px 6px; font-size: 8px; color: #839572; }
.history-card-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px; }
.history-card h3 { font-size: 13px; font-weight: 500; }
.history-card h3 small { font-size: 9px; color: #9da990; display: block; margin-top: 2px; font-weight: 400; }
.compare-check { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #dde5d3; border-radius: 50%; color: transparent; }
.compare-check .icon { width: 13px; height: 13px; }
.compare-check.checked { background: var(--green); color: #fff; border-color: var(--green); }
.history-empty { height: 350px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.history-empty > svg { width: 70px; height: 45px; color: #bdcbb0; margin-bottom: 25px; }
.history-empty h3 { font-size: 20px; font-weight: 500; }
.history-empty p { font-size: 12px; color: #9ba78f; margin: 12px 0 25px; }
.modal { border: 1px solid #e2e8da; border-radius: 18px; padding: 38px; width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 50px); color: var(--text); background: #fffefa; box-shadow: 0 30px 100px #0c231d33; overflow-y: auto; }
.modal::backdrop { background: #1b302b66; backdrop-filter: blur(6px); }
.modal-close { position: absolute; right: 15px; top: 15px; z-index: 2; background: #f3f5ee; }
.modal .eyebrow { margin-top: 3px; font-size: 8px; letter-spacing: 2px; }
.modal h2 { font-size: 24px; line-height: 1.5; font-weight: 500; margin: 10px 0 14px; letter-spacing: .3px; }
.modal h2 > small { font-size: 14px; color: #9aaa89; }
.modal > p:not(.eyebrow) { font-size: 12px; color: #88937d; line-height: 1.9; margin-bottom: 16px; }
.notice-box { background: #eef3e7; padding: 16px; border: 1px solid #e3eadb; border-radius: 9px; margin: 20px 0; }
.notice-box strong { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: #668151; margin-bottom: 8px; }
.notice-box .icon { width: 16px; height: 16px; }
.notice-box p { font-size: 11px; color: #8a9b7b; line-height: 1.9; }
.modal-buttons { display: flex; gap: 10px; margin-top: 25px; justify-content: flex-end; }
.modal-buttons > button { flex: 1; padding-left: 12px; padding-right: 12px; }
.full-width { width: 100%; }
.modal-symbol { width: 48px; height: 48px; border-radius: 50%; background: #f4e9df; color: #b89177; display: grid; place-items: center; margin-bottom: 20px; }
.modal-symbol .icon { width: 24px; height: 24px; }
.muted-copy { color: #a1ab96 !important; font-size: 10px !important; }
.photo-guide-illustration { height: 115px; background: #eef2e7; border: 1px dashed #ccd9bd; border-radius: 9px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; color: #8ea579; margin: 20px 0; }
.photo-guide-illustration > .icon { width: 33px; height: 33px; stroke-width: 1.1; }
.photo-guide-illustration > span { font-size: 10px; letter-spacing: 2px; }
.guide-list > p { display: flex; align-items: flex-start; gap: 13px; margin: 17px 0; font-size: 11px; color: #929f86; }
.guide-list b { color: #90a678; font-size: 12px; font-weight: 400; line-height: 2; }
.guide-list strong { display: block; color: #516644; font-size: 12px; font-weight: 500; margin-bottom: 3px; }
.detail-product { background: #f2f5ec; height: 160px; display: flex; align-items: center; justify-content: center; border-radius: 10px; margin: 20px 0; }
.detail-product > img { width: 88%; }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 15px 0; margin-bottom: 15px; border-top: 1px solid #e7ecdf; border-bottom: 1px solid #e7ecdf; }
.spec-grid > span { font-size: 9px; color: #a1ae94; }
.spec-grid strong { display: block; font-size: 11px; color: #6e845b; font-weight: 500; margin-top: 5px; }
.dimension-note { text-align: center; background: #f7f8f2; border-radius: 6px; padding: 12px; margin-bottom: 13px; }
.dimension-note b { font-size: 14px; font-weight: 500; color: #76896a; letter-spacing: 2px; }
.dimension-note span { display: block; font-size: 9px; color: #9ea992; margin-top: 5px; }
.wide-modal { width: min(1120px, calc(100vw - 40px)); }
.comparison-grid { display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); gap: 15px; margin-top: 25px; }
.comparison-grid figure { margin: 0; border: 1px solid #e6eadf; border-radius: 10px; overflow: hidden; background: #fff; }
.comparison-grid figure > img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.comparison-grid figcaption { padding: 15px; }
.comparison-grid figcaption strong { display: block; font-size: 13px; font-weight: 500; }
.comparison-grid figcaption strong small { font-size: 10px; margin-left: 9px; color: #a1ad96; font-weight: 400; }
.comparison-grid figcaption > span { font-size: 10px; color: #9ba890; }
.comparison-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 23px; }
.comparison-footer > span { font-size: 10px; color: #a2ad97; }
.comparison-footer > span .icon { width: 12px; height: 12px; }
.image-modal { max-width: 650px; padding: 15px; background: #f8faf3; }
.image-modal .fullscreen-photo { width: 100%; border-radius: 10px; max-height: calc(100dvh - 150px); object-fit: contain; }
.image-modal > p { margin: 12px 0 0 !important; text-align: center; font-size: 10px !important; }
.feedback-options { display: flex; flex-direction: column; gap: 9px; margin: 20px 0; }
.feedback-option { width: 100%; text-align: left; background: #f4f7ee; border: 1px solid #e5ebdc; border-radius: 7px; padding: 13px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: #839672; }
.feedback-option > .icon { width: 16px; height: 16px; }
.feedback-option > .icon:last-child { width: 13px; height: 13px; margin-left: auto; }
.feedback-option:hover { background: #eaf0e1; border-color: #bdcfa9; }
.adjust-preview, .crop-preview { width: min(100%, 300px); aspect-ratio: 1; position: relative; margin: 20px auto; border-radius: 10px; overflow: hidden; background: #e5e8dd; }
.adjust-preview > img:first-child { width: 100%; height: 100%; object-fit: cover; }
#adjust-frame { position: absolute; max-width: none; height: auto; }
.slider-fields { display: flex; flex-direction: column; gap: 13px; }
.slider-fields label { display: flex; align-items: center; gap: 14px; font-size: 10px; color: #91a080; }
.slider-fields input { flex: 1; min-width: 0; accent-color: #62814c; height: 15px; }
.slider-fields output { width: 35px; font-size: 10px; color: #688052; text-align: right; }
.crop-preview > img { max-width: none; position: absolute; }
.crop-guide { position: absolute; inset: 0; pointer-events: none; border: 1px solid #ffffff88; background: linear-gradient(90deg, transparent 33.2%, #ffffff40 33.3%, transparent 33.6%, transparent 66.5%, #ffffff40 66.6%, transparent 66.9%), linear-gradient(transparent 33.2%, #ffffff40 33.3%, transparent 33.6%, transparent 66.5%, #ffffff40 66.6%, transparent 66.9%); }
.slider-fields + .muted-copy { margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; padding: 13px 20px; background: #213d32f2; color: #f8fbf3; border: 1px solid #ffffff22; border-radius: 9px; box-shadow: 0 8px 25px #203b331a; z-index: 99; font-size: 12px; max-width: calc(100vw - 32px); width: max-content; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan { from { top: -100px; } to { top: calc(100% - 100px); } }

@media (max-width: 1100px) {
  .header-inner { padding: 0 28px; }
  .brand { flex-basis: 235px; }
  .main-shell { padding: 28px 28px 0; }
  .header-right { gap: 14px; }
  .main-nav { gap: 25px; }
  .help-button span { display: none; }
  .journey { gap: 8px; }
  .journey-line { width: 15px; }
  .studio-grid { gap: 19px; }
  .catalog-panel { padding: 18px 17px 0; height: calc((100vw - 75px) * .94 / 1.94 + 122px); }
  .catalog-tools { gap: 5px; margin-top: 17px; margin-bottom: 14px; }
  .filter-pill { padding: 4px 9px; }
  .demo-catalog { font-size: 8px; }
  .product-visual { height: 97px; }
  .product-caption h3 span { display: none; }
  .catalog-heading h2 { font-size: 15px; }
  .catalog-heading h2 span { font-size: 9px; }
  .generation-note { font-size: 7.5px; }
  .history-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 940px) {
  .header-inner { padding: 0 22px; }
  .brand { flex-basis: auto; margin-right: 45px; }
  .prototype-badge { font-size: 9px; padding: 5px 8px; }
  .intro { display: block; }
  .journey { margin-top: 20px; gap: 12px; }
  .journey-line { width: 30px; }
  .main-shell { max-width: 700px; padding: 28px 22px 0; }
  h1 { font-size: 29px; }
  .studio-grid { grid-template-columns: 1fr; gap: 22px; }
  .preview-panel { padding: 0 13px; }
  .photo-stage { aspect-ratio: 1; }
  .catalog-panel { padding: 23px 20px 0; height: auto; }
  .catalog-heading h2 { font-size: 18px; }
  .catalog-heading h2 span { font-size: 11px; }
  .filter-pill { padding: 6px 15px; font-size: 11px; }
  .catalog-tools { gap: 8px; margin-top: 20px; margin-bottom: 19px; }
  .catalog-scroll { height: 405px; flex: none; }
  .product-visual { height: 135px; }
  .product-caption h3 span { display: inline; }
  .product-caption { padding: 12px 14px; }
  .selection-footer { padding-top: 17px; }
  .generate-button { height: 49px; }
  .generation-note { font-size: 9px; margin-bottom: 2px; }
  .tips-strip { padding: 15px; }
  .tips-strip .text-button { font-size: 9px; flex-shrink: 0; }
  .history-panel { padding: 22px; }
  .history-heading { align-items: flex-start; flex-direction: column; }
  .history-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .wide-modal { padding: 30px 22px 22px; }
  .comparison-grid { gap: 10px; }
  .comparison-grid figcaption { padding: 10px; }
  .comparison-grid figcaption strong small { display: block; margin: 3px 0 0; }
  .comparison-grid figcaption > span { font-size: 9px; }
}
@media (max-width: 520px) {
  .site-header { height: 69px; }
  .header-inner { padding: 0 17px; }
  .brand { gap: 8px; margin-right: auto; }
  .brand > svg { width: 32px; height: 25px; }
  .brand-cn { font-size: 22px; letter-spacing: 3px; }
  .brand-en { font-size: 6px; letter-spacing: 1.5px; margin-top: 5px; }
  .main-nav { gap: 19px; }
  .nav-link { font-size: 11px; gap: 4px; }
  .nav-count { font-size: 8px; line-height: 14px; padding: 0 4px; }
  .header-right { margin-left: 14px; }
  .prototype-badge { display: none; }
  .help-button { color: #8fa17e; }
  .help-button .icon { width: 17px; height: 17px; }
  .main-shell { padding: 25px 17px 0; }
  .eyebrow { font-size: 8px; letter-spacing: 2px; }
  .mobile-disclosure { display: inline-block; margin-left: auto; letter-spacing: 0; font-size: 8px; color: #738964; background: #eaf0e2; border-radius: 4px; padding: 3px 6px; }
  h1 { font-size: 25px; letter-spacing: .4px; margin-top: 10px; }
  .intro-description { font-size: 10px; margin-top: 9px; letter-spacing: 0; }
  .journey { margin-top: 22px; justify-content: space-between; gap: 5px; }
  .journey-step { font-size: 10px; gap: 6px; }
  .journey-step b { width: 22px; height: 22px; }
  .journey-line { flex: 1; max-width: 22px; margin: 0 4px; }
  .intro { margin-bottom: 22px; }
  .panel { border-radius: 12px; }
  .preview-panel { padding: 0 10px; }
  .panel-top { height: 48px; padding: 0 3px; }
  .panel-top h2 { font-size: 12px; }
  .photo-stage { aspect-ratio: 1; }
  .photo-hint { left: 11px; right: 11px; bottom: 12px; padding: 11px; gap: 9px; }
  .photo-hint strong { font-size: 11px; }
  .photo-hint div > span { font-size: 8px; margin-top: 3px; }
  .tiny-star { font-size: 23px; }
  .stage-top { top: 11px; left: 11px; right: 11px; }
  .photo-label { font-size: 8px; padding: 4px 7px; }
  .stage-expand { width: 25px; height: 25px; }
  .stage-expand .icon { width: 12px; height: 12px; }
  .photo-actions { gap: 5px; height: 56px; }
  .upload-button { font-size: 10px; padding: 7px 11px; }
  .camera-button { font-size: 10px; gap: 4px; padding: 7px 6px; }
  .privacy-note { font-size: 8px; height: 33px; }
  .demo-button { font-size: 9px; }
  .catalog-panel { padding: 20px 15px 0; }
  .catalog-heading h2 { font-size: 16px; }
  .catalog-heading h2 span { font-size: 9px; padding: 3px 5px; margin-left: 3px; }
  .catalog-tools { gap: 5px; }
  .filter-pill { font-size: 10px; padding: 5px 10px; }
  .demo-catalog { font-size: 7px; }
  .catalog-scroll { height: 360px; }
  .products-grid { gap: 10px; }
  .product-visual { height: 106px; }
  .product-tag { font-size: 7px; top: 9px; left: 8px; }
  .product-caption { padding: 10px; }
  .product-caption h3 { font-size: 11px; gap: 4px; }
  .product-caption h3 span { font-size: 7px; }
  .product-caption p { font-size: 8px; }
  .color-dot { width: 10px; height: 10px; }
  .select-mark { width: 14px; height: 14px; top: 8px; right: 8px; }
  .selection-footer { padding: 15px 0 12px; }
  .selected-info strong { gap: 9px; }
  .selected-info strong span { font-size: 9px; }
  .generate-button { height: 47px; font-size: 12px; }
  .generation-note { font-size: 8px; }
  .tips-strip { padding: 14px 12px; gap: 10px; position: relative; margin-top: 20px; }
  .tips-icon { width: 29px; height: 29px; flex-shrink: 0; }
  .tips-strip strong { font-size: 10px; }
  .tips-strip p { font-size: 8px; max-width: 235px; }
  .tips-strip .text-button { display: none; }
  .site-footer { flex-direction: column; align-items: center; gap: 9px; padding: 20px 0; font-size: 8px; }
  .site-footer button { font-size: 8px; }
  .feedback-strip { gap: 12px; flex-wrap: wrap; }
  .feedback-strip > span { width: 100%; justify-content: center; }
  .processing-card { padding: 22px 20px 18px; width: 83%; }
  .processing-card h3 { font-size: 15px; }
  .processing-steps { gap: 12px; margin-top: 20px; margin-bottom: 17px; }
  .processing-steps span { font-size: 9px; }
  .processing-orbit { width: 45px; height: 45px; margin-bottom: 14px; }
  .processing-card small { font-size: 8px; }
  .failure-overlay > div { padding: 23px; width: 87%; }
  .failure-overlay h3 { font-size: 15px; }
  .failure-overlay p { font-size: 10px; }
  .preview-switch { bottom: 24px; }
  .preview-switch button { padding: 5px 12px; font-size: 9px; }
  .history-panel { padding: 18px; min-height: 450px; }
  .history-heading h2 { font-size: 17px; }
  .history-heading p { font-size: 10px; }
  .history-heading > div:last-child { width: 100%; }
  .history-heading button { flex: 1; font-size: 10px; padding: 9px; }
  .history-grid { gap: 11px; }
  .history-card-footer { padding: 10px; }
  .history-card h3 { font-size: 12px; }
  .history-card h3 small { font-size: 8px; }
  .history-disclosure { font-size: 7px; top: 6px; left: 6px; padding: 2px 5px; }
  .history-empty h3 { font-size: 17px; }
  .history-empty p { font-size: 10px; }
  .modal { padding: 32px 23px 24px; border-radius: 14px; max-height: calc(100dvh - 30px); }
  .modal h2 { font-size: 21px; margin-top: 12px; }
  .modal > p:not(.eyebrow) { font-size: 11px; }
  .modal-buttons { gap: 8px; }
  .modal-buttons button { font-size: 10px; padding: 10px 7px; }
  .wide-modal { width: calc(100vw - 24px); padding: 30px 17px 20px; }
  .comparison-grid { grid-template-columns: repeat(var(--columns), minmax(145px, 1fr)); overflow-x: auto; padding-bottom: 7px; gap: 10px; scroll-snap-type: x mandatory; }
  .comparison-grid figure { scroll-snap-align: start; }
  .comparison-grid figcaption { padding: 10px; }
  .comparison-grid figcaption strong { font-size: 12px; }
  .comparison-grid figcaption strong small { font-size: 9px; }
  .comparison-grid figcaption > span { font-size: 8px; }
  .comparison-footer { align-items: flex-start; flex-direction: column; gap: 15px; }
  .comparison-footer > span { font-size: 9px; }
  .comparison-footer button { align-self: stretch; }
  .toast { font-size: 11px; bottom: 20px; padding: 12px 16px; }
  .crop-preview, .adjust-preview { width: min(100%, 270px); }
  .spec-grid { gap: 8px; }
  .spec-grid strong { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Cloud try-on: keep the complete reference and generated portrait visible. */
.cloud-studio { grid-template-columns: minmax(0, .96fr) minmax(0, 1fr); align-items: start; }
.cloud-stage { aspect-ratio: 2 / 3; background: #edf0e8; }
.cloud-stage .portrait { object-fit: contain; }
.reference-panel { padding: 26px; display: flex; flex-direction: column; }
.reference-number { color: #98a38e; font-size: 9px; letter-spacing: 1px; }
.reference-description { color: #8a9680; font-size: 11px; margin: 12px 0 22px; line-height: 1.9; }
.glasses-drop { position: relative; display: flex; align-items: center; justify-content: center; height: 230px; padding: 20px; background: repeating-conic-gradient(#f1f4ed 0 25%, #f8faf5 0 50%) 50% / 20px 20px; border: 1px solid #e6ebde; border-radius: 10px; overflow: hidden; }
.glasses-drop > img { width: 100%; height: 100%; object-fit: contain; }
.reference-label { position: absolute; bottom: 10px; left: 12px; background: #ffffffe8; border-radius: 4px; padding: 3px 8px; font-size: 9px; color: #829270; }
.glasses-drop.dragging { border: 2px dashed #6c8b58; background: #e9f0e0; }
.reference-actions { display: flex; align-items: center; gap: 20px; margin: 15px 0 23px; }
.reference-actions .secondary-button { padding: 9px 18px; font-size: 11px; }
.reference-tips { padding: 15px 17px; background: #f6f8f1; border-radius: 8px; margin-bottom: 24px; }
.reference-tips strong { font-size: 11px; color: #6e805f; font-weight: 550; }
.reference-tips p { margin-top: 6px; font-size: 10px; color: #8c9b7f; line-height: 1.9; }
.reference-tips > span { display: block; font-size: 9px; color: #a0ab96; margin-top: 10px; }
.cloud-generation { padding-top: 19px; border-top: 1px solid var(--line); }
.cloud-generation .generation-note { font-size: 10px; }
.cloud-disclaimer { font-size: 9px; color: #99a18e; line-height: 1.9; text-align: center; margin-top: 10px; }
.cloud-result-actions { margin-top: 20px; }
.front-confirm { display: flex; gap: 10px; margin-bottom: 18px; }
.front-confirm strong { font-size: 12px; color: #587346; font-weight: 550; }
.front-confirm p { font-size: 10px; color: #8e9e80; line-height: 1.8; margin-top: 5px; }
.step-badge { width: 25px; height: 25px; border-radius: 50%; background: #eaf1e2; display: grid; place-items: center; flex-shrink: 0; color: #7f9a66; }
.step-badge .icon { width: 14px; height: 14px; }
.angle-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin: 13px 0 0; }
.angle-tab { min-width: 0; border: 1px solid #e5ebdd; border-radius: 6px; padding: 9px 2px; background: #f8faf5; }
.angle-tab strong { display: block; font-size: 10px; font-weight: 500; white-space: nowrap; }
.angle-tab small { display: block; color: #9aa88d; font-size: 8px; margin-top: 3px; }
.angle-tab.active { border-color: #839b70; background: #eaf1e1; color: #496638; }
.preview-caption { font-size: 10px; color: #8d9b7f; text-align: center; line-height: 1.9; padding: 13px 7px 0; }
.service-notice { display: flex; align-items: center; gap: 10px; padding: 13px 17px; background: #edf2e6; border: 1px solid #e0e8d5; color: #6e805f; border-radius: 9px; margin: 0 0 20px; font-size: 11px; }
.service-notice > p { flex: 1; }
.service-notice > .icon { width: 16px; height: 16px; }
.service-notice .text-button { flex-shrink: 0; }
.warning { background: #fbf4e8; color: #997b48; border-color: #eee0c6; }
.view-notice { border: 1px solid #eadcc4; border-radius: 7px; padding: 11px 13px; margin-top: 11px; font-size: 10px; line-height: 1.9; overflow-wrap: anywhere; }
.view-notice small { display: block; font-size: 9px; }
.inline-progress { display: flex; align-items: center; gap: 9px; background: #eff4e9; padding: 12px; color: #6b8258; font-size: 10px; border-radius: 7px; margin-bottom: 17px; }
.inline-progress .button-spinner { border-color: #d5e0cb; border-top-color: #76905f; flex-shrink: 0; }
.inline-progress .text-button { margin-left: auto; flex-shrink: 0; font-size: 10px; }
.input-confirm-image { max-width: 100%; width: 100%; max-height: 350px; object-fit: contain; background: #f0f3eb; border-radius: 8px; margin: 18px 0; }
.history-photo { aspect-ratio: 2 / 3; background: #eef2e9; }
.history-photo img { object-fit: contain; }
.history-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 11px; color: #96a38b; }
.history-placeholder .icon { width: 32px; height: 32px; }
.comparison-grid figure > img { aspect-ratio: 2 / 3; object-fit: contain; background: #eef2e9; }
@media (max-width: 1100px) {
  .reference-panel { padding: 22px; }
  .reference-number { display: none; }
  .glasses-drop { height: 210px; }
}
@media (max-width: 940px) {
  .cloud-studio { grid-template-columns: 1fr; }
  .cloud-stage { aspect-ratio: 2 / 3; max-height: 680px; }
  .reference-panel { padding: 23px; }
  .glasses-drop { height: 240px; }
}
@media (max-width: 520px) {
  .reference-panel { padding: 20px 16px; }
  .cloud-stage { aspect-ratio: 2 / 3; }
  .glasses-drop { height: 190px; }
  .reference-actions { gap: 16px; }
  .reference-tips { margin-bottom: 19px; }
  .service-notice { font-size: 10px; flex-wrap: wrap; padding: 12px; gap: 7px; }
  .service-notice .secondary-button { width: 100%; padding: 8px; font-size: 10px; }
  .angle-tabs { gap: 4px; }
  .angle-tab strong { font-size: 8px; }
  .angle-tab small { font-size: 7px; }
  .privacy-note { font-size: 7px; }
  .preview-caption, .view-notice { font-size: 9px; }
}
