:root {
  --bg: #08080a;
  --surface: #111115;
  --surface-hover: #1a1a20;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f6;
  --muted: #8e8e98;
  --accent: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.05em;
}

.brand-icon {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.btn-download {
  padding: 8px 18px;
  background: var(--text);
  color: #000;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-download:hover {
  opacity: 0.88;
}

/* 首屏 */
.hero {
  padding: 180px 32px 96px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn-primary, .btn-secondary {
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--text);
  color: #08080a;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

/* 通用区块 */
.section-block {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 20px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--muted);
  font-size: 15px;
}

/* 横向轮播控制 */
.slider-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ctrl-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  transition: border-color 0.2s;
}

.ctrl-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.slide-counter {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--muted);
}

/* 轮播容器 */
.carousel-wrapper {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.carousel-track {
  display: flex;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-card {
  min-width: 100%;
  display: flex;
  flex-direction: column;
}

.carousel-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.card-meta {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

.card-meta h3 {
  font-size: 16px;
  font-weight: 500;
}

.card-meta span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--muted);
}

/* 大头贴连拍展示框 */
.showcase-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.showcase-frame img {
  width: 100%;
  display: block;
}

/* 精修功能切换胶囊栏 */
.retouch-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
  background: var(--text);
  color: #000;
  border-color: var(--text);
  font-weight: 500;
}

/* 左右拖拽对比滑块 */
.compare-container {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  user-select: none;
  cursor: ew-resize;
  background: var(--surface);
}

.compare-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compare-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.compare-overlay .compare-img {
  width: 680px;
  max-width: none;
}

.compare-handle {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.handle-line {
  position: absolute;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
}

.handle-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.label-tag {
  position: absolute;
  bottom: 16px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  font-size: 12px;
  color: #fff;
  pointer-events: none;
  font-weight: 500;
}

.label-left { left: 16px; }
.label-right { right: 16px; }

/* 页脚 */
.footer {
  text-align: center;
  padding: 80px 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.footer p {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .card-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
}


/* Responsive and accessible corrections to the supplied layout. */
:root{scroll-padding-top:96px}button{font:inherit}a:focus-visible,button:focus-visible,[tabindex]:focus-visible{outline:2px solid #ddd;outline-offset:4px}[hidden]{display:none!important}.brand-icon{filter:invert(1)}.nav-inner{gap:20px}.hero{max-width:1080px}.hero h1{font-size:clamp(42px,5.5vw,78px);letter-spacing:-.05em;line-height:1.2}.hero p{max-width:670px;margin-left:auto;margin-right:auto;line-height:1.9}.hero-actions{flex-wrap:wrap}.carousel-wrapper{border-radius:6px}.carousel-card{flex:0 0 100%;min-width:0}.carousel-card img{aspect-ratio:1376/768;object-fit:contain}.carousel-track{touch-action:pan-y}.card-meta{gap:16px}.card-meta span{font-size:11px}.section-block{border-top:1px solid var(--border)}.section-header p{max-width:750px;line-height:1.9}.showcase-frame{border-radius:6px}.showcase-frame img{aspect-ratio:1376/768;object-fit:contain}.demo-status{font-size:12px;line-height:1.9;color:var(--muted);margin-bottom:24px;padding:16px 18px;border:1px solid var(--border);background:var(--surface)}.compare-container{--position:50%;border-radius:6px;cursor:crosshair}.compare-overlay{inset:0;width:100%;clip-path:inset(0 calc(100% - var(--position)) 0 0)}.compare-overlay .compare-img{width:100%;height:100%;max-width:100%}.compare-handle{left:var(--position)}.handle-line{width:1px}.handle-circle{width:30px;height:28px;border-radius:2px;box-shadow:none}.compare-range{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;z-index:5;cursor:crosshair;touch-action:pan-y}.compare-container:focus-within{outline:2px solid #ddd;outline-offset:4px}.label-tag{z-index:3;backdrop-filter:none;border-radius:2px;font-size:10px;padding:6px 9px}.retouch-tabs{gap:8px}.tab-btn{border-radius:4px}.ctrl-btn{border-radius:3px}.download-action{border:0;margin-top:24px;cursor:pointer}#downloadStatus{margin-top:20px;line-height:1.8}.footer h3{font-weight:500}.skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip-link:focus{position:fixed;z-index:200;left:16px;top:12px;background:#111;padding:12px;color:white}.btn-download{white-space:nowrap}.slider-controls{flex-shrink:0}.carousel-track:focus-visible{outline-offset:-4px}
@media(max-width:900px){.nav-links{gap:18px}.nav-links a{font-size:12px}.nav-inner{padding:16px 24px}.btn-download{font-size:11px;padding:8px 12px}.brand{white-space:nowrap}.hero{padding-top:155px}}
@media(max-width:768px){:root{scroll-padding-top:128px}.nav-inner{flex-wrap:wrap;gap:15px;padding:14px 20px}.nav-links{display:flex;order:3;width:100%;justify-content:space-between;border-top:1px solid var(--border);padding-top:12px;gap:10px}.nav-links a{font-size:11px}.hero{padding:166px 20px 64px}.hero h1{font-size:clamp(35px,8vw,56px)}.hero p{font-size:13px;margin-top:20px;margin-bottom:28px}.btn-primary,.btn-secondary{padding:11px 18px;border-radius:4px;font-size:12px}.hero-actions{gap:10px}.section-block{padding:50px 20px}.section-header{margin-bottom:24px;gap:20px}.section-header h2{font-size:24px;font-weight:500}.section-header p{font-size:12px}.card-meta{padding:16px;gap:7px}.card-meta h3{font-size:14px}.card-meta span{font-size:10px}.tab-btn{font-size:10px;padding:8px 10px}.demo-status{font-size:10px;padding:12px}.label-tag{font-size:9px;bottom:10px}.label-left{left:10px}.label-right{right:10px}.footer{padding:55px 20px}.footer h3{font-size:22px}.footer p{font-size:12px}.brand{font-size:15px}.brand-icon{width:22px;height:22px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}html{scroll-behavior:auto}}

/* AIGC photograph comparison and direct style navigation. */
.aigc-hint{font-size:12px;color:var(--muted);margin:-12px 0 24px;line-height:1.8}
.aigc-compare{position:relative;width:min(100%,580px);aspect-ratio:688/768;margin:0 auto;overflow:hidden;background:var(--surface);cursor:crosshair;isolation:isolate}
.carousel-card .aigc-photo{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:contain}
.aigc-before{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--position)) 0 0)}
.aigc-divider{position:absolute;left:var(--position);top:0;bottom:0;width:1px;background:#fff;pointer-events:none;z-index:2}
.aigc-divider span{position:absolute;left:0;top:50%;transform:translate(-50%,-50%);width:28px;height:30px;display:grid;place-items:center;background:#f4f4f5;color:#141414;font-size:13px;border-radius:2px}
.aigc-label{position:absolute;bottom:16px;padding:5px 9px;background:#18181a;color:#f2f2f2;font-size:11px;pointer-events:none;z-index:3}.original-label{left:16px}.result-label{right:16px}
.aigc-range{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:crosshair;touch-action:pan-y;z-index:4}.aigc-compare:focus-within{outline:2px solid #eee;outline-offset:-3px}
.style-specs{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--border);margin:0 24px}.style-specs>div{padding:16px 12px;border-right:1px solid var(--border)}.style-specs>div:first-child{padding-left:0}.style-specs>div:last-child{border-right:0}.style-specs dt{font-size:10px;color:var(--muted);margin-bottom:5px}.style-specs dd{font-size:12px}
.pair-view{border-top:1px solid var(--border);padding:16px 24px}.pair-view summary{cursor:pointer;color:var(--muted);font-size:12px;width:fit-content}.pair-view summary:focus-visible{outline:2px solid #eee;outline-offset:4px}.carousel-card .pair-view img{width:100%;height:auto;margin-top:16px;aspect-ratio:1376/768;object-fit:contain}
.style-thumbnails{display:flex;position:relative;gap:10px;overflow-x:auto;padding:18px 0 6px;scrollbar-width:thin;scroll-padding:8px}.style-thumb{display:flex;align-items:center;gap:10px;flex:1 0 145px;background:var(--surface);border:1px solid var(--border);border-radius:3px;color:var(--muted);padding:8px;cursor:pointer;transition:border-color 200ms cubic-bezier(.16,1,.3,1),color 200ms cubic-bezier(.16,1,.3,1)}.style-thumb img{width:40px;height:48px;object-fit:cover}.style-thumb span{font-size:11px;text-align:left}.style-thumb b{font-family:Consolas,monospace;font-variant-numeric:tabular-nums;font-size:10px;font-weight:400;display:block}.style-thumb[aria-pressed=true]{border-color:#eee;color:var(--text)}.style-thumb:focus-visible{outline-offset:-3px}
@media(max-width:768px){.aigc-hint{font-size:11px;margin-top:0}.style-specs{grid-template-columns:repeat(2,1fr);margin:0 16px}.style-specs>div{padding:12px 0}.style-specs>div:nth-child(even){border-right:0;padding-left:12px}.style-specs dd{font-size:11px}.pair-view{padding:14px 16px}.style-thumb{flex-basis:135px}.aigc-label{font-size:10px;bottom:10px}.original-label{left:10px}.result-label{right:10px}}
@media(prefers-reduced-motion:reduce){.style-thumb{transition:none}}
