/* Picka 官網 — 黑底白字，日系排版
   做法上的三個原則：
   1. 余白優先。區塊之間留大段空白，內容自己會分群，不需要卡片和陰影。
   2. 線只用一種粗細（1px）和一種顏色，靠位置而不是靠顏色區分層級。
   3. 字重壓低。標題用 300–400，不用粗體撐氣勢，靠字級和留白。 */

:root {
    color-scheme: dark;

    --ink: #0B0B0C;
    /* 底 */
    --ink-2: #121214;
    /* 稍亮的區塊底 */
    --paper: #F4F3F0;
    /* 主要文字 */
    --paper-2: #9C9C98;
    /* 次要文字 */
    --paper-3: #6A6A67;
    /* 更淡：註記 */
    --hair: rgba(244, 243, 240, .14);
    --brass: #C9A24A;
    /* 唯一的彩色，極少量 */

    --wrap: 1080px;
    --gut: 32px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: 'Zen Kaku Gothic New', 'Noto Sans TC', -apple-system, 'Segoe UI', 'Microsoft JhengHei', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 2;
    letter-spacing: .02em;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--paper);
}

:focus-visible {
    outline: 1px solid var(--paper);
    outline-offset: 4px;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gut);
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 16px;
    top: 16px;
    z-index: 30;
    background: var(--paper);
    color: var(--ink);
    padding: 10px 16px;
    text-decoration: none;
}

/* ---------- 頂列 ---------- */

.bar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 11, 12, .86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hair);
}

.bar-in {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 72px;
}

.mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: .06em;
}

.mark img {
    border-radius: 3px;
}

.barnav {
    display: flex;
    gap: 30px;
    margin-left: auto;
    font-size: 14px;
}

.barnav a {
    color: var(--paper-2);
    text-decoration: none;
}

.barnav a:hover {
    color: var(--paper);
}

/* ---------- 按鈕：細框，hover 才填滿 ---------- */

.btn {
    display: inline-block;
    border: 1px solid var(--hair);
    color: var(--paper);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .08em;
    line-height: 1;
    padding: 12px 20px;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn:hover {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
}

.btn-lg {
    padding: 17px 34px;
    font-size: 15px;
}

.btn-quiet {
    border-color: transparent;
    color: var(--paper-2);
}

.btn-quiet:hover {
    background: transparent;
    color: var(--paper);
    border-color: var(--hair);
}

.btn-solid {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
}

.btn-solid:hover {
    background: transparent;
    color: var(--paper);
}

/* ---------- 首屏 ---------- */

.hero {
    padding: 128px 0 0;
}

.kicker {
    margin: 0 0 40px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .34em;
    color: var(--brass);
}

.hero h1 {
    margin: 0 0 40px;
    font-size: clamp(2.7rem, 6.4vw, 5rem);
    font-weight: 300;
    line-height: 1.34;
    letter-spacing: .04em;
}

.lead {
    margin: 0;
    max-width: 30em;
    font-size: 1.06rem;
    color: var(--paper-2);
}

.acts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 48px;
}

/* 主角圖：後台一面，會員手機壓在左下角 */
.stage-wrap {
    margin-top: 112px;
}

.stage {
    position: relative;
    /* 右邊留出手機的位置，讓它壓在後台畫面的右緣，
       那一塊本來就是空白表格區，不會蓋掉任何資訊 */
    padding-right: 132px;
    padding-bottom: 48px;
}

.stage-desk {
    width: 100%;
    border: 1px solid var(--hair);
}

.stage-phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 208px;
    border: 1px solid var(--hair);
    background: var(--ink);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .55);
}

/* ---------- 區塊 ---------- */

.sec {
    padding: 132px 0 0;
}

.sec-line {
    border-top: 1px solid var(--hair);
    padding-top: 132px;
    margin-top: 132px;
}

.seclabel {
    margin: 0 0 28px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .28em;
    color: var(--paper-3);
}

.sec h2 {
    margin: 0 0 28px;
    font-size: clamp(1.65rem, 3.1vw, 2.4rem);
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: .04em;
}

.say {
    margin: 0;
    max-width: 32em;
    color: var(--paper-2);
}

.say a {
    color: var(--paper);
    text-underline-offset: 4px;
}

.note {
    margin: 36px 0 0;
    max-width: 32em;
    font-size: 14px;
    color: var(--paper-3);
}

.notes {
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
    max-width: 34em;
}

.notes li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--paper-2);
}

.notes li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    width: 10px;
    height: 1px;
    background: var(--paper-3);
}

/* ---------- 條列：左標題右說明，只靠細線分隔 ---------- */

.rows {
    position: relative;
    margin: 64px 0 0;
}

/* 最上面那條線用 ::before 畫，捲到的時候才好讓它自己長出來。
   不支援捲動動畫的瀏覽器沒有 transform，線一樣在。 */
.rows::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--hair);
    transform-origin: left center;
}

.rows>div {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid var(--hair);
}

.rows dt {
    font-weight: 400;
    letter-spacing: .06em;
}

.rows dd {
    margin: 0;
    color: var(--paper-2);
    max-width: 36em;
}

/* ---------- 圖 ---------- */

.shot {
    margin: 0;
}

.shot img {
    width: 100%;
    border: 1px solid var(--hair);
}

.shot figcaption,
.phones figcaption {
    margin-top: 14px;
    font-size: 13px;
    color: var(--paper-3);
    letter-spacing: .04em;
}

.shot-wide {
    margin-top: 72px;
}

.pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 64px;
}

.phones {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-top: 72px;
}

/* 兩張手機時靠左排，不要把圖撐到半個版面寬 */
.phones-2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phones-2 figure:nth-child(n + 3) {
    display: none;
}

.phones figure {
    margin: 0;
}

.phones img {
    width: 100%;
    border: 1px solid var(--hair);
}

/* ---------- 內嵌時鐘 ---------- */

.live {
    margin: 64px 0 0;
    border: 1px solid var(--hair);
}

.live-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--hair);
    font-size: 13px;
    letter-spacing: .08em;
    color: var(--paper-3);
}

.live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brass);
}

.live-body {
    padding: 52px 20px 46px;
    text-align: center;
}

.clock {
    font-size: clamp(3.4rem, 9vw, 5.6rem);
    font-weight: 200;
    line-height: 1;
    letter-spacing: .06em;
    font-variant-numeric: tabular-nums;
}

.clock-bar {
    height: 1px;
    background: var(--hair);
    margin: 34px auto 0;
    max-width: 360px;
}

.clock-bar i {
    display: block;
    height: 100%;
    width: 37%;
    background: var(--brass);
}

.clock-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 26px;
    font-size: 13px;
    letter-spacing: .08em;
    color: var(--paper-3);
}

.clock-meta b {
    color: var(--paper);
    font-weight: 400;
}

/* ---------- 問答 ---------- */

.qa {
    margin-top: 72px;
    border-top: 1px solid var(--hair);
    max-width: 44em;
}

.qa details {
    border-bottom: 1px solid var(--hair);
}

.qa summary {
    cursor: pointer;
    list-style: none;
    padding: 22px 34px 22px 0;
    position: relative;
    font-size: 16px;
    letter-spacing: .04em;
}

.qa summary::-webkit-details-marker {
    display: none;
}

.qa summary::after {
    content: '';
    position: absolute;
    right: 6px;
    top: 50%;
    width: 11px;
    height: 1px;
    background: var(--paper-2);
}

.qa summary::before {
    content: '';
    position: absolute;
    right: 11px;
    top: 50%;
    width: 1px;
    height: 11px;
    margin-top: -5px;
    background: var(--paper-2);
    transition: opacity .18s ease;
}

.qa details[open] summary::before {
    opacity: 0;
}

.qa details p {
    margin: 0 0 24px;
    max-width: 34em;
    font-size: 15px;
    color: var(--paper-2);
}

/* ---------- 收尾 ---------- */

.close {
    margin-top: 150px;
    padding: 124px 0 132px;
    border-top: 1px solid var(--hair);
    background: var(--ink-2);
}

.close h2 {
    margin: 0 0 24px;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 300;
    letter-spacing: .06em;
}

.close .btn {
    margin-top: 44px;
}

.mail {
    margin: 22px 0 0;
    font-size: 14px;
    letter-spacing: .06em;
    color: var(--paper-3);
}

/* ---------- 頁尾 ---------- */

.foot {
    border-top: 1px solid var(--hair);
    padding: 48px 0 64px;
    font-size: 13px;
    color: var(--paper-3);
}

.foot p {
    margin: 0 0 14px;
}

.foot nav {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-bottom: 18px;
}

.foot a {
    color: var(--paper-2);
    text-decoration: none;
}

.foot a:hover {
    color: var(--paper);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.fine {
    color: var(--paper-3);
    opacity: .78;
}

/* ---------- 窄螢幕 ---------- */

@media (max-width: 900px) {
    .phones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .phones figure:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
    }

    .rows>div {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }
}

@media (max-width: 720px) {
    :root {
        --gut: 20px;
    }

    body {
        line-height: 1.95;
    }

    .bar-in {
        height: 60px;
        gap: 16px;
    }

    .barnav {
        display: none;
    }

    .btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    .btn-lg {
        padding: 15px 26px;
        font-size: 14px;
    }

    .hero {
        padding-top: 72px;
    }

    .kicker {
        margin-bottom: 28px;
        letter-spacing: .26em;
    }

    .acts {
        margin-top: 36px;
    }

    .stage-wrap {
        margin-top: 64px;
    }

    /* 窄螢幕不疊圖：後台整張攤開，手機接在下面 */
    .stage {
        padding-right: 0;
        padding-bottom: 0;
    }

    .stage-phone {
        position: static;
        width: 62%;
        margin: 20px auto 0;
        box-shadow: none;
    }

    .sec {
        padding-top: 88px;
    }

    .sec-line {
        margin-top: 88px;
        padding-top: 88px;
    }

    .rows {
        margin-top: 44px;
    }

    .pair,
    .phones {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        margin-top: 48px;
    }

    .phones figure:last-child {
        max-width: none;
    }

    .live,
    .shot-wide,
    .qa {
        margin-top: 48px;
    }

    .close {
        margin-top: 96px;
        padding: 84px 0 88px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ==========================================================================
   動畫
   原則跟排版一樣：慢、少、準。全部用長的緩動曲線，位移只有十幾像素，
   沒有彈跳也沒有縮放。只有兩種時機：
   1. 首屏載入時跑一次，字一行一行進來，後台畫面像螢幕開機一樣抹開。
   2. 往下捲時由捲動位置驅動，不是計時器 —— 捲多少進來多少，往回捲會退回去。
   捲動驅動用 animation-timeline: view()，不支援的瀏覽器就是靜態頁，
   內容不會被藏住，也不需要 JavaScript。
   ========================================================================== */

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes draw {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* 由左往右抹開，像螢幕亮起來 */
@keyframes wipe {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes breathe {

    0%,
    100% {
        opacity: .3;
    }

    50% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: no-preference) {

    /* ---- 首屏：載入時跑一次 ---- */
    .hero .kicker,
    .hero h1 span,
    .hero .lead,
    .hero .acts,
    .stage-phone {
        animation: rise 1s cubic-bezier(.16, 1, .3, 1) both;
    }

    .hero h1 span {
        display: block;
    }

    .hero .kicker {
        animation-delay: .05s;
    }

    .hero h1 span:nth-child(1) {
        animation-delay: .16s;
    }

    .hero h1 span:nth-child(2) {
        animation-delay: .26s;
    }

    .hero h1 span:nth-child(3) {
        animation-delay: .36s;
    }

    .hero .lead {
        animation-delay: .52s;
    }

    .hero .acts {
        animation-delay: .62s;
    }

    /* 整頁只有這一張圖用抹開的方式進場，其他圖都只是淡入 */
    .stage-desk {
        animation: wipe 1.4s cubic-bezier(.16, 1, .3, 1) .72s both;
    }

    .stage-phone {
        animation-delay: 1.15s;
    }

    /* 「上線中」的小圓點，這個動是有意義的 */
    .live-dot {
        animation: breathe 2.6s ease-in-out infinite;
    }
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {

        .sec .seclabel,
        .sec h2,
        .sec .say,
        .sec h3,
        .sec .note,
        .notes li,
        .rows>div,
        .shot,
        .phones figure,
        .live,
        .qa details,
        .close h2,
        .close .say,
        .close .btn,
        .close .mail {
            animation-name: rise;
            animation-duration: auto;
            animation-timing-function: cubic-bezier(.16, 1, .3, 1);
            animation-fill-mode: both;
            animation-timeline: view();
            animation-range: entry 6% entry 44%;
        }

        /* 條列一行一行進來，靠它們本來就不同高度形成錯落，不另外寫 delay */
        .rows>div {
            animation-range: entry 2% entry 34%;
        }

        .notes li {
            animation-range: entry 4% entry 30%;
        }

        /* 分隔線自己長出來 */
        .rows::before {
            transform: scaleX(0);
            animation-name: draw;
            animation-duration: auto;
            animation-timing-function: cubic-bezier(.16, 1, .3, 1);
            animation-fill-mode: both;
            animation-timeline: view();
            animation-range: entry 4% entry 38%;
        }
    }
}

/* 滑過截圖時外框亮一點，只有這一個 hover 效果 */
.shot img,
.phones img {
    transition: border-color .5s ease;
}

.shot:hover img,
.phones figure:hover img {
    border-color: rgba(244, 243, 240, .32);
}
