/* E-Design sketch intro + case study */
.page-edx .site-header { background: rgba(27, 26, 24, 0.94); }
.page-edx main { padding-top: var(--header-h); }
.edx-sec { padding: clamp(3.5rem, 7vw, 6rem) 0; border-bottom: 1px solid var(--line); }
.edx-sec.tint { background: var(--paper-2); }
.edx-eyebrow { font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 1.4rem; }
.edx-h2 { font-size: var(--text-xl); line-height: 1.3; margin-bottom: 2rem; }
.sk { stroke: var(--ink); fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.sk-thin { stroke: var(--muted); fill: none; stroke-width: 0.8; }
.sk-gold { fill: var(--gold); fill-opacity: 0.38; stroke: none; }
.sk-gold-line { stroke: var(--gold-ink); fill: none; stroke-width: 1.2; }

/* hero */
.edx-hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.edx-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(0.8rem, 2vw, 1.6rem); align-items: center; }
.edx-pair figure { margin: 0; }
.edx-pair svg { display: block; width: 100%; height: auto; background: #faf8f4; border: 1px solid var(--line); border-radius: 4px; }
.edx-cap { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--text-sm); color: var(--muted); margin-top: 0.7rem; }
.edx-cap b { font-weight: 500; color: var(--text); }
.edx-pair .edx-arrow { width: 32px; color: var(--gold-ink); background: none; border: 0; }
.edx-hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.3; margin-top: clamp(2rem, 4vw, 3rem); }
.edx-sub { color: var(--muted); font-size: var(--text-lg); margin-top: 0.6rem; }
.edx-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.edx-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 1.5rem; border: 1px solid var(--ink); border-radius: 2px; text-decoration: none; font-size: var(--text-sm); letter-spacing: 0.04em; transition: background .2s, color .2s; }
.edx-btn.dark { background: var(--ink); color: var(--on-dark); }
.edx-btn.dark:hover { background: var(--ink-2); }
.edx-btn:not(.dark):hover { background: var(--ink); color: var(--on-dark); }

/* steps */
.edx-steps { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); position: relative; text-align: center; gap: 1rem; }
.edx-steps::before { content: ""; position: absolute; top: 34px; left: 10%; right: 10%; border-top: 1px dashed rgba(36,34,31,.3); }
.edx-ic { position: relative; width: 68px; height: 68px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; margin: 0 auto 0.9rem; }
.edx-ic svg { width: 28px; height: 28px; }
.edx-steps b { display: block; font-weight: 500; font-size: var(--text-lg); }
.edx-steps small { display: block; color: var(--muted); font-size: var(--text-sm); }
.edx-note { text-align: center; color: var(--muted); font-size: var(--text-sm); margin-top: 1.8rem; }

/* packages */
.edx-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.edx-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1.6rem; display: flex; min-width: 0; flex-direction: column; }
.edx-card.feat { border: 2px solid var(--gold-ink); }
.edx-card h3 { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: var(--text-base); }
.edx-badge { font-size: 0.72rem; background: var(--gold-ink); color: #fff; padding: 0.15rem 0.6rem; border-radius: 99px; font-weight: 400; white-space: nowrap; }
.edx-price { font-size: 2rem; font-weight: 500; margin: 0.6rem 0 0; line-height: 1.2; }
.edx-price small { font-size: var(--text-sm); color: var(--muted); font-weight: 400; }
.edx-twd { font-size: var(--text-xs); color: var(--muted); margin-bottom: 1.1rem; }
.edx-mini { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; margin-bottom: 1.1rem; }
.edx-mini > span { aspect-ratio: 4/3; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 0.7rem; color: var(--muted); }
.edx-mini svg { width: 26px; height: 20px; }
.edx-row { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--text-sm); padding: 0.55rem 0; border-top: 1px solid var(--line); }
.edx-row span:first-child { color: var(--muted); }
.edx-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.edx-chips span, .edx-chips a { font-size: var(--text-xs); padding: 0.4rem 0.95rem; border-radius: 99px; background: var(--paper-2); text-decoration: none; }
.edx-chips a { background: none; border: 1px solid rgba(36,34,31,.3); color: var(--muted); }
.edx-chips a:hover { color: var(--text); border-color: var(--ink); }

/* deliverables */
.edx-gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.edx-tile svg { display: block; width: 100%; height: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.edx-tile h3 { font-size: var(--text-base); margin-top: 0.7rem; }
.edx-tile p { font-size: var(--text-xs); color: var(--muted); }
.edx-case { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; margin-top: 2rem; background: var(--ink); color: var(--on-dark); border-radius: 6px; overflow: hidden; text-decoration: none; transition: transform .4s var(--ease); }
.edx-case:hover { transform: translateY(-2px); }
.edx-case img { width: 100%; height: 100%; object-fit: cover; }
.edx-case-body { padding: clamp(1.4rem, 3vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; }
.edx-case-body .k { font-size: var(--text-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.edx-case-body h3 { font-size: var(--text-xl); font-family: var(--font-display-zh); line-height: 1.3; }
html[data-lang="en"] .edx-case-body h3 { font-family: var(--font-display); }
.edx-case-body p { color: var(--on-dark-muted); font-size: var(--text-sm); }
.edx-case-body .go { margin-top: 0.6rem; color: var(--on-dark); font-size: var(--text-sm); border-bottom: 1px solid var(--gold); align-self: flex-start; }

/* scope */
.edx-bnd { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: clamp(1.5rem, 3vw, 3rem); }
.edx-bnd h3 { font-size: var(--text-base); margin-bottom: 0.6rem; }
.edx-li { font-size: var(--text-sm); padding: 0.35rem 0; display: flex; gap: 0.6rem; }
.edx-li i { font-style: normal; width: 1em; color: var(--gold-ink); }
.edx-li.no i { color: var(--muted); }
.edx-prep { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-size: var(--text-sm); gap: .5rem; }
.edx-prep .edx-ic { width: 56px; height: 56px; margin-bottom: 0.5rem; background: #fff; }
.edx-prep .edx-ic svg { width: 22px; height: 22px; }
.edx-more { margin-top: 2.6rem; display: grid; gap: 0.6rem; }
.edx-more details { border-top: 1px solid var(--line); padding: 0.9rem 0 0.3rem; }
.edx-more summary { cursor: pointer; font-size: var(--text-sm); font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.edx-more summary::after { content: "+"; color: var(--gold-ink); font-size: 1.1rem; }
.edx-more details[open] summary::after { content: "−"; }
.edx-more details > div { padding: 0.8rem 0 0.6rem; font-size: var(--text-sm); color: var(--muted); }
.edx-units { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; }
.edx-units div { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 0.7rem; text-align: center; line-height: 1.4; }
.edx-units b { display: block; font-size: 1.4rem; font-weight: 500; color: var(--text); }
.edx-faq p { padding: 0.35rem 0; } .edx-faq b { color: var(--text); font-weight: 500; }
.edx-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.6rem; }
.edx-foot small { color: var(--muted); font-size: var(--text-xs); }

/* case page */
.cs-hero { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.cs-back { display: inline-block; font-size: var(--text-sm); color: var(--muted); text-decoration: none; margin-bottom: 1.6rem; }
.cs-back:hover { color: var(--text); }
.cs-hero h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); line-height: 1.3; }
.cs-lead { color: var(--muted); font-size: var(--text-lg); margin-top: 0.5rem; max-width: 40em; }
.cs-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; font-size: var(--text-sm); color: var(--muted); margin: 1.4rem 0 2.2rem; }
.cs-meta b { color: var(--text); font-weight: 500; margin-right: .4rem; }
.cs-pair { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(.6rem, 2vw, 1.2rem); margin-top: 2rem; }
.cs-pair figure { margin: 0; }
.zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 4px; overflow: hidden; }
.zoom img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.zoom:hover img { transform: scale(1.015); }
.zoom::after { content: ""; position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 3px; background: rgba(255,255,255,.88) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M7 1h4v4M5 11H1V7M11 1L7 5M1 11l4-4' fill='none' stroke='%231b1a18'/%3E%3C/svg%3E") center/13px no-repeat; }
.cs-cap { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--text-sm); color: var(--muted); margin-top: 0.6rem; }
.cs-cap b { color: var(--text); font-weight: 500; }
.cs-flag { font-size: var(--text-xs); color: var(--muted); margin-top: 1rem; }
.cs-steps { display: grid; grid-template-columns: 1.6fr 1.22fr; gap: 1rem; align-items: start; }
.cs-num { font-size: var(--text-xs); letter-spacing: .14em; color: var(--gold-ink); margin-top: .8rem; }
.cs-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
.cs-three .zoom { aspect-ratio: 4/3; } .cs-three .zoom img { height: 100%; object-fit: cover; }
.cs-sw { display: grid; grid-template-columns: repeat(5, 1fr); aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; }
.cs-sw i { display: flex; align-items: flex-end; padding: .5rem; font-style: normal; font-size: .66rem; color: rgba(255,255,255,.85); font-family: var(--font-body); }
.cs-sw i:first-child, .cs-sw i:nth-child(2) { color: rgba(27,26,24,.7); }
.cs-grid { columns: 3 260px; column-gap: 1rem; }
.cs-grid figure { break-inside: avoid; margin: 0 0 1rem; }
.cs-grid figcaption { font-size: var(--text-xs); color: var(--muted); margin-top: .45rem; }
.cs-end { text-align: center; }
.cs-end h2 { font-size: var(--text-xl); margin-bottom: .6rem; }
.cs-end p { color: var(--muted); }
.cs-end .edx-actions { justify-content: center; }

/* lightbox */
.edx-lb { position: fixed; inset: 0; z-index: 200; background: rgba(15,14,13,.96); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 3.5rem 1rem 1.2rem; }
.edx-lb.open { display: flex; }
.edx-lb img { max-width: 100%; max-height: calc(100% - 3rem); width: auto; height: auto; object-fit: contain; }
.edx-lb p { color: var(--on-dark-muted); font-size: var(--text-sm); margin-top: .9rem; text-align: center; }
.edx-lb button { position: absolute; background: none; border: 0; color: var(--on-dark); font-size: 1.8rem; width: 48px; height: 48px; cursor: pointer; opacity: .8; }
.edx-lb button:hover { opacity: 1; }
.edx-lb .x { top: .5rem; right: .5rem; } .edx-lb .pv { left: .5rem; top: 50%; } .edx-lb .nx { right: .5rem; top: 50%; }
body.lb-open { overflow: hidden; }

@media (max-width: 860px) {
  .edx-cards, .edx-bnd { grid-template-columns: minmax(0,1fr); }
  .edx-gal { grid-template-columns: repeat(2, 1fr); }
  .edx-case { grid-template-columns: 1fr; }
  .edx-units { grid-template-columns: repeat(2, 1fr); }
  .cs-steps { grid-template-columns: 1fr; }
  .cs-three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .edx-pair { grid-template-columns: 1fr; }
  .edx-pair .edx-arrow { transform: rotate(90deg); margin: 0 auto; }
  .edx-steps { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .edx-steps::before { display: none; }
  .edx-steps li:last-child { grid-column: 1 / -1; }
  .cs-three { grid-template-columns: 1fr; }
}

.edx-talk { display: grid; gap: .5rem; justify-items: end; text-align: right; max-width: 30rem; }
.edx-talk p b { display: block; font-weight: 500; font-size: var(--text-lg); margin-bottom: .2rem; }
.edx-talk p span { color: var(--muted); font-size: var(--text-sm); }
.edx-talk p b span { color: var(--text); font-size: inherit; }
.edx-talk .edx-actions { margin-top: .4rem; }
.edx-talk small { color: var(--muted); font-size: var(--text-xs); letter-spacing: .04em; }
@media (max-width: 760px) { .edx-talk { justify-items: start; text-align: left; } .edx-foot > small { order: 2; } }

.edx-fit-sec { border-top: 1px solid var(--line); }
html[data-lang="zh"] .edx-fit-sec .edx-h2 { font-family: var(--font-display-zh); }
html[data-lang="en"] .edx-fit-sec .edx-h2 { font-family: var(--font-display); }
.edx-fit { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1rem, 3vw, 2.4rem); }
.edx-fit article { border-top: 1px solid var(--gold); padding-top: 1.3rem; }
.edx-fit .edx-ic { width: 52px; height: 52px; margin: 0 0 .9rem; background: #fff; }
.edx-fit .edx-ic svg { width: 22px; height: 22px; }
.edx-fit h3 { font-size: var(--text-base); font-weight: 500; line-height: 1.45; margin-bottom: .45rem; }
.edx-fit p { color: var(--muted); font-size: var(--text-sm); line-height: 1.75; }
@media (max-width: 760px) { .edx-fit { grid-template-columns: minmax(0,1fr); gap: 1.6rem; } }
