/* 想印 — auto-playing guide */
.gd { padding: clamp(40px, 6vw, 80px) 0 clamp(70px, 9vw, 120px); }
.gd-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: clamp(28px, 4vw, 48px); }
.gd-title { font-size: clamp(38px, 6vw, 80px); font-weight: 700; letter-spacing: -.045em; line-height: 1.06; }
.gd-sub { color: var(--muted); max-width: 34em; margin-top: 14px; font-size: clamp(15px, 1.4vw, 18px); }
.gd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(18px, 2.4vw, 32px); align-items: start; max-width: 1400px; }
@media (max-width: 980px) { .gd-grid { grid-template-columns: 1fr; } }

/* browser frame */
.gd-frame { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(11, 14, 23, .08), 0 60px 110px -60px rgba(11, 14, 23, .55), 0 30px 60px -40px rgba(47, 107, 255, .35); }
.gd-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #F3F5F9; border-bottom: 1px solid var(--line); }
.gd-bar i { width: 11px; height: 11px; border-radius: 50%; background: #E2E6EE; }
.gd-bar i:nth-child(1) { background: #FF6B5F; } .gd-bar i:nth-child(2) { background: #FFC23D; } .gd-bar i:nth-child(3) { background: #29C940; }
.gd-url { margin-left: 14px; flex: 1; max-width: 420px; height: 24px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 500 12px/24px var(--latin); color: var(--muted); padding: 0 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gd-view { --k: 1; position: relative; aspect-ratio: 1440 / 900; overflow: hidden; background: var(--paper); }
.gd-pages { position: absolute; left: 0; top: 0; width: 1440px; transform-origin: 0 0; transform: scale(var(--k)) translate3d(calc(var(--sx, 0) * -1px), calc(var(--sy, 0) * -1px), 0); transition: transform 1.1s cubic-bezier(.65, 0, .25, 1); }
.gd-page { position: absolute; left: 0; top: 0; width: 1440px; max-width: none; opacity: 0; transition: opacity .6s ease; }
.gd-page.is-on { opacity: 1; }
.gd-spot { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .95), 0 0 0 9px rgba(47, 107, 255, .35), 0 0 36px 10px rgba(47, 107, 255, .35), 0 0 0 200vmax rgba(11, 14, 23, .58); transition: left 1.1s cubic-bezier(.65, 0, .25, 1), top 1.1s cubic-bezier(.65, 0, .25, 1), width 1.1s cubic-bezier(.65, 0, .25, 1), height 1.1s cubic-bezier(.65, 0, .25, 1), opacity .4s; }
.gd-spot::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); animation: gd-pulse 1.8s ease-out infinite; }
@keyframes gd-pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.06); } }
.gd-cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -4px 0 0 -4px; pointer-events: none; transition: left 1.1s cubic-bezier(.65, 0, .25, 1) .25s, top 1.1s cubic-bezier(.65, 0, .25, 1) .25s, opacity .3s; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 10-7 1.5L9.5 21z' fill='%230B0E17' stroke='white' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.gd-cursor.is-click::after { content: ""; position: absolute; left: -10px; top: -10px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; animation: gd-click .7s ease-out forwards; }
@keyframes gd-click { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.4); } }

/* caption + controls */
.gd-side { position: sticky; top: calc(var(--head) + 20px); display: grid; gap: 14px; }
@media (max-width: 980px) { .gd-side { position: static; } }
.gd-card { padding: 24px 24px 20px; border-radius: 24px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(11, 14, 23, .35); }
.gd-count { display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--muted); }
.gd-count b { font-size: 22px; color: var(--ink); font-weight: 700; }
.gd-chap { margin-left: auto; font: 600 11px var(--font); letter-spacing: .14em; padding: 5px 10px; border-radius: 999px; color: var(--blue); background: rgba(47, 107, 255, .08); }
.gd-step-t { font-size: clamp(22px, 2vw, 26px); font-weight: 700; letter-spacing: -.02em; margin: 14px 0 8px; }
.gd-step-d { color: var(--muted); min-height: 5.4em; }
.gd-card.is-swap .gd-step-t, .gd-card.is-swap .gd-step-d { animation: gd-in .6s var(--ease); }
@keyframes gd-in { from { opacity: 0; transform: translateY(10px); } }
.gd-timer { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 16px 0 16px; }
.gd-timer i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--c), var(--blue), var(--violet)); }
.gd-ctrl { display: flex; align-items: center; gap: 8px; }
.gd-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); transition: background .2s, transform .2s; }
.gd-btn:hover { background: #fff; transform: translateY(-1px); }
.gd-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gd-btn.is-main { width: 52px; height: 52px; background: var(--ink); color: #fff; box-shadow: none; }
.gd-btn.is-main svg { fill: currentColor; stroke: none; }
.gd-btn.is-main .i-pause { fill: none; stroke: currentColor; stroke-width: 2.6; }
.gd-btn.is-main .i-play, .gd.is-paused .gd-btn.is-main .i-pause { display: none; }
.gd.is-paused .gd-btn.is-main .i-play { display: block; }
.gd-try { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; }
.gd-try:hover { text-decoration: underline; }
.gd-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
@media (max-width: 980px) { .gd-chapters { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .gd-chapters { grid-template-columns: repeat(2, 1fr); } }
.gd-chapters button { position: relative; width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; text-align: left; font-size: 14px; overflow: hidden; transition: background .2s; }
.gd-chapters button span { font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.gd-chapters button i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .4s; }
.gd-chapters button:hover { background: #fff; }
.gd-chapters button[aria-current="true"] { background: #fff; box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.gd-end { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: clamp(34px, 5vw, 60px); }
@media (prefers-reduced-motion: reduce) { .gd-pages, .gd-spot, .gd-cursor { transition: none; } .gd-spot::after { animation: none; } }

/* phone: taller window zoomed onto the step, caption laid over the picture */
.gd-ov { display: none; }
@media (max-width: 699px) {
	.gd-view { aspect-ratio: 4 / 5; }
	.gd-ov { display: block; position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 4; padding: 12px 14px; border-radius: 14px; background: rgba(11, 14, 23, .86); color: #fff; font-size: 14px; line-height: 1.6; backdrop-filter: blur(6px); }
	.gd-ov b { display: block; font-size: 16px; margin-bottom: 2px; }
	.gd-card .gd-step-t, .gd-card .gd-step-d { display: none; }
	.gd-card { padding: 14px 16px; }
	.gd-timer { margin: 10px 0; }
}
