/*
 * GPTKey 主题：暖米色纸张底 + 墨绿深色块 + 赤陶橙主色 + 金色钥匙点缀。
 * 在 gptgo-*.css 之后加载，覆盖配色、圆角、阴影，并提供首页新组件（gk-*）的样式。
 */

html[data-theme="light"] {
    --go-bg-a: #f6f1e7;
    --go-bg-b: #f6f1e7;
    --go-surface: #fffdf8;
    --go-surface-strong: #fffdf8;
    --go-surface-soft: rgba(29, 42, 38, .05);
    --go-text: #1d2a26;
    --go-muted: #56635e;
    --go-faint: #7c8681;
    --go-line: rgba(29, 42, 38, .16);
    --go-line-strong: #1d2a26;
    --go-accent: #b4541b;
    --go-accent-hover: #9a4515;
    --go-success: #2f7a4f;
    --go-danger: #b8323f;
    --go-shadow: 4px 4px 0 rgba(29, 42, 38, .9);
    --go-radius: 8px;
    --gk-ink: #16302b;
    --gk-ink-text: #f6f1e7;
    --gk-gold: #f2b544;
    --gk-gold-soft: #fbe7bd;
    --gk-dot: rgba(29, 42, 38, .09);
}

:root,
html[data-theme="dark"] {
    --go-bg-a: #101615;
    --go-bg-b: #101615;
    --go-surface: #18211f;
    --go-surface-strong: #1c2624;
    --go-surface-soft: rgba(239, 233, 220, .06);
    --go-text: #efe9dc;
    --go-muted: #aab3ad;
    --go-faint: #838d88;
    --go-line: rgba(239, 233, 220, .14);
    --go-line-strong: rgba(239, 233, 220, .5);
    --go-accent: #c8622a;
    --go-accent-hover: #d9733a;
    --go-success: #7cc79a;
    --go-danger: #f08a92;
    --go-shadow: 4px 4px 0 rgba(0, 0, 0, .55);
    --go-radius: 8px;
    --gk-ink: #0b1312;
    --gk-ink-text: #efe9dc;
    --gk-gold: #f2b544;
    --gk-gold-soft: rgba(242, 181, 68, .16);
    --gk-dot: rgba(239, 233, 220, .05);
}

/* ---------- 全局 ---------- */

body.gk-site {
    background-color: var(--go-bg-a);
    background-image: radial-gradient(var(--gk-dot) 1px, transparent 1px);
    background-size: 18px 18px;
    font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
    letter-spacing: 0;
}

body.gk-site::before {
    display: none;
}

.gk-site h1,
.gk-site h2,
.gk-site h3 {
    font-weight: 800;
    letter-spacing: -.01em;
}

/* 原有的大面板：去掉毛玻璃，改成实色 + 硬阴影 */
.gk-site .mini-workspace,
.gk-site .query-hero,
.gk-site .checkout-shell,
.gk-site .gptgo-detail-section,
.gk-site .order-results,
.gk-site .query-state {
    border: 1.5px solid var(--go-line-strong);
    background: var(--go-surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.gk-site .gptgo-btn-primary,
.gk-site .product-cta {
    border-radius: 6px;
    box-shadow: 2px 2px 0 var(--gk-ink);
    letter-spacing: .02em;
}

.gk-site .gptgo-btn-primary:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--gk-ink);
}

.gk-site .form-control {
    border-radius: 6px;
}

/* ---------- 顶部导航 ---------- */

.gk-site .gptgo-nav {
    border-bottom: 0;
    background: var(--gk-ink);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.gk-site .nav-primary .gptgo-brand {
    width: auto;
    height: 36px;
    margin-right: 1rem;
    gap: .5rem;
}

.gk-site .brand-logo {
    width: 30px;
    height: 30px;
}

.gk-wordmark {
    color: var(--gk-ink-text);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.gk-wordmark b {
    color: var(--gk-gold);
    font-weight: 800;
}

.gk-site .nav-primary .nav-item {
    border-radius: 4px;
    color: rgba(246, 241, 231, .72);
    font-size: .8rem;
}

.gk-site .nav-primary .nav-item:hover {
    background: rgba(246, 241, 231, .1);
    color: #f6f1e7;
}

.gk-site .nav-primary .nav-shopping {
    color: #f6f1e7;
}

.gk-site .mini-nav-actions button,
.gk-site .gptgo-theme-toggle {
    border: 1px solid rgba(246, 241, 231, .3) !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: rgba(246, 241, 231, .85) !important;
}

.gk-site .go-admin-tag {
    color: var(--gk-gold);
}

/* ---------- 首页：介绍区 ---------- */

.gk-home {
    display: grid;
    gap: 1.6rem;
    padding-top: 1.6rem;
    padding-bottom: 2.4rem;
}

.gk-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .9fr);
    gap: 1.25rem;
    align-items: stretch;
}

.gk-hero-main {
    padding: 1.8rem 1.6rem;
    border: 1.5px solid var(--go-line-strong);
    border-radius: var(--go-radius);
    background: var(--go-surface);
    box-shadow: var(--go-shadow);
}

.gk-hero h1 {
    margin: .9rem 0 .8rem;
    font-size: clamp(1.6rem, 4vw, 2.35rem);
    line-height: 1.22;
}

.gk-hero h1 em {
    position: relative;
    color: var(--go-accent);
    font-style: normal;
    background: linear-gradient(transparent 62%, var(--gk-gold-soft) 62%);
}

.gk-hero-lead {
    max-width: 34rem;
    margin-bottom: 1.3rem;
    color: var(--go-muted);
    font-size: .92rem;
    line-height: 1.75;
}

.gk-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

.gk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .6rem 1.3rem;
    border: 1.5px solid var(--go-line-strong);
    border-radius: 6px;
    font-size: .86rem;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .15s ease;
}

.gk-btn:hover {
    transform: translate(-1px, -1px);
}

.gk-btn-solid {
    border-color: var(--gk-ink);
    background: var(--go-accent);
    color: #fff !important;
    box-shadow: 3px 3px 0 var(--gk-ink);
}

.gk-btn-ghost {
    background: transparent;
    color: var(--go-text) !important;
}

.gk-status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .28rem .7rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
}

.gk-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.gk-status.is-open {
    background: rgba(47, 122, 79, .12);
    color: var(--go-success);
}

.gk-status.is-open i {
    animation: gk-pulse 1.8s ease-in-out infinite;
}

.gk-status.is-closed {
    background: rgba(184, 50, 63, .1);
    color: var(--go-danger);
}

@keyframes gk-pulse {
    50% { opacity: .35; }
}

.gk-hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.3rem;
    border-radius: var(--go-radius);
    background: var(--gk-ink);
    color: var(--gk-ink-text);
    box-shadow: 4px 4px 0 var(--gk-gold);
}

.gk-hero-panel dl {
    display: grid;
    gap: .85rem;
    margin: 0;
}

.gk-hero-panel dl > div {
    padding-bottom: .75rem;
    border-bottom: 1px dashed rgba(246, 241, 231, .2);
}

.gk-hero-panel dt {
    color: var(--gk-gold);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.gk-hero-panel dd {
    margin: .2rem 0 0;
    font-size: .9rem;
    font-weight: 600;
}

.gk-site .gk-panel-qq {
    width: 100%;
    min-height: 42px;
    border: 0 !important;
    border-radius: 6px !important;
    background: var(--gk-gold) !important;
    color: #1d2a26 !important;
    font-weight: 800;
}

.gk-closed-bar {
    padding: .85rem 1.1rem;
    border: 1.5px solid var(--go-danger);
    border-radius: var(--go-radius);
    background: rgba(184, 50, 63, .07);
    color: var(--go-danger);
    font-size: .86rem;
    font-weight: 600;
}

/* ---------- 首页：商品票券 ---------- */

.gk-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .4rem 1rem;
    margin-bottom: .9rem;
}

.gk-section-head h2 {
    margin: 0;
    font-size: 1.3rem;
}

.gk-section-head span {
    color: var(--go-muted);
    font-size: .8rem;
}

.gk-ticket-list {
    display: grid;
    gap: 1rem;
}

.gk-ticket {
    border: 1.5px solid var(--go-line-strong);
    border-radius: var(--go-radius);
    background: var(--go-surface);
    box-shadow: var(--go-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}

.gk-ticket:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--gk-ink);
}

.gk-ticket-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    min-height: 100%;
}

.gk-ticket-body {
    padding: 1.3rem 1.4rem;
}

.gk-ticket-tag {
    display: inline-block;
    padding: .15rem .55rem;
    border-radius: 3px;
    background: var(--gk-ink);
    color: var(--gk-gold);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.gk-ticket-sms .gk-ticket-tag {
    background: var(--go-accent);
    color: #fff;
}

.gk-ticket h3 {
    margin: .7rem 0 .4rem;
    font-size: 1.08rem;
    line-height: 1.4;
}

.gk-ticket-body > p {
    margin-bottom: .9rem;
    color: var(--go-muted);
    font-size: .84rem;
    line-height: 1.65;
}

.gk-ticket-facts {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gk-ticket-facts li {
    padding: .25rem .6rem;
    border: 1px solid var(--go-line);
    border-radius: 4px;
    font-size: .74rem;
    font-weight: 600;
}

.gk-ticket-facts li span {
    margin-right: .35rem;
    color: var(--go-faint);
    font-weight: 500;
}

/* 右侧存根：虚线撕口 + 价格 */
.gk-ticket-stub {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: 1.2rem 1rem;
    border-left: 2px dashed var(--go-line-strong);
    background: var(--gk-gold-soft);
    border-radius: 0 var(--go-radius) var(--go-radius) 0;
    text-align: center;
}

.gk-ticket-stub::before,
.gk-ticket-stub::after {
    position: absolute;
    left: -11px;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--go-line-strong);
    border-radius: 50%;
    background: var(--go-bg-a);
    content: "";
}

.gk-ticket-stub::before {
    top: -11px;
}

.gk-ticket-stub::after {
    bottom: -11px;
}

.gk-ticket-price {
    color: var(--go-text);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
}

.gk-ticket-price small {
    margin-right: .1rem;
    font-size: .95rem;
}

.gk-ticket-price.gk-price-ask {
    font-size: 1.2rem;
}

.gk-ticket-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 40px;
    padding: .4rem 1rem;
    border: 1.5px solid var(--gk-ink);
    border-radius: 6px;
    background: var(--go-accent);
    color: #fff;
    font-size: .84rem;
    font-weight: 800;
    box-shadow: 2px 2px 0 var(--gk-ink);
}

.gk-ticket.is-sold-out .gk-ticket-cta {
    background: var(--go-faint);
}

.gk-ticket-note {
    color: var(--go-muted);
    font-size: .72rem;
}

/* ---------- 首页：流程 ---------- */

.gk-steps h2,
.gk-faq h2 {
    margin-bottom: .9rem;
    font-size: 1.3rem;
}

.gk-steps ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: gk-step;
}

.gk-steps li {
    position: relative;
    display: grid;
    gap: .25rem;
    padding: 1rem 1rem 1rem 3.2rem;
    border: 1.5px solid var(--go-line-strong);
    border-radius: var(--go-radius);
    background: var(--go-surface);
    counter-increment: gk-step;
}

.gk-steps li::before {
    position: absolute;
    top: 1rem;
    left: .95rem;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--gk-ink);
    color: var(--gk-gold);
    font-size: .8rem;
    font-weight: 800;
    content: counter(gk-step);
}

.gk-steps b {
    font-size: .88rem;
}

.gk-steps span {
    color: var(--go-muted);
    font-size: .76rem;
}

/* ---------- 首页：常见问题 ---------- */

.gk-faq details {
    border: 1.5px solid var(--go-line-strong);
    border-bottom-width: 0;
    background: var(--go-surface);
}

.gk-faq details:first-of-type {
    border-radius: var(--go-radius) var(--go-radius) 0 0;
}

.gk-faq details:last-of-type {
    border-bottom-width: 1.5px;
    border-radius: 0 0 var(--go-radius) var(--go-radius);
}

.gk-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem 1.1rem;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 700;
    list-style: none;
}

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

.gk-faq summary::after {
    flex: none;
    color: var(--go-accent);
    font-size: 1.2rem;
    font-weight: 400;
    content: "+";
}

.gk-faq details[open] summary::after {
    content: "−";
}

.gk-faq details p {
    margin: 0;
    padding: 0 1.1rem 1rem;
    color: var(--go-muted);
    font-size: .85rem;
    line-height: 1.75;
}

.gk-faq-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem 1rem;
    margin-top: 1rem;
    color: var(--go-muted);
    font-size: .8rem;
}

/* 本设备最近的订单 */
.gk-site .go-recent,
.gk-site .go-find-help {
    border: 1.5px dashed var(--go-line-strong);
    border-radius: var(--go-radius);
    background: var(--go-surface);
}

/* ---------- 页脚 ---------- */

.gk-footer {
    margin-top: 1rem;
    border-top: 1.5px solid var(--go-line-strong);
}

.gk-footer .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 1rem;
    color: var(--go-muted);
}

.gk-footer-links {
    display: inline-flex;
    gap: 1rem;
}

.gk-footer-links a {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* ---------- 购买页 ---------- */

.gk-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: 1.2rem 0 .9rem;
    color: var(--go-muted);
    font-size: .8rem;
}

.gk-crumbs a {
    color: var(--go-accent) !important;
    font-weight: 600;
}

.gk-site .checkout-shell {
    box-shadow: var(--go-shadow);
}

.gk-site .checkout-product {
    border-right: 1.5px dashed var(--go-line-strong);
}

.gk-cover {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .2rem;
    overflow: hidden;
    min-height: 200px;
    padding: 1.4rem 1.5rem;
    border-radius: 6px;
    background: var(--gk-ink);
    color: var(--gk-ink-text);
}

.gk-cover::before {
    position: absolute;
    top: -40px;
    right: -30px;
    width: 190px;
    height: 190px;
    border: 26px solid var(--gk-gold);
    border-radius: 50%;
    opacity: .9;
    content: "";
}

.gk-cover::after {
    position: absolute;
    top: 55px;
    right: 150px;
    width: 120px;
    height: 26px;
    border-radius: 4px;
    background: var(--gk-gold);
    content: "";
}

.gk-cover-sms {
    background: var(--go-accent);
}

.gk-cover-sms::before,
.gk-cover-sms::after {
    border-color: #f6f1e7;
    background: transparent;
    opacity: .3;
}

.gk-cover-sms::after {
    background: #f6f1e7;
}

.gk-cover-kicker {
    position: relative;
    color: var(--gk-gold);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.gk-cover-sms .gk-cover-kicker {
    color: #fff3dd;
}

.gk-cover strong {
    position: relative;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.2;
}

.gk-cover small {
    position: relative;
    opacity: .82;
}

.gk-site .checkout-highlights span,
.gk-site .checkout-flow span {
    border-radius: 4px;
}

.gk-site .section-kicker,
.gk-site .mini-kicker {
    color: var(--go-accent);
    letter-spacing: .1em;
}

.gk-guide .guide-block {
    border-radius: var(--go-radius);
}

/* ---------- 订单页 / 查询页 ---------- */

.gk-site .go-pay-amount mark,
.gk-site .go-pay-steps mark {
    background: var(--gk-gold-soft);
    color: var(--go-accent);
}

.gk-site .status-badge {
    border-radius: 4px;
}

/* ---------- 手机 ---------- */

@media (max-width: 760px) {
    .gk-home {
        padding-top: 1rem;
        gap: 1.2rem;
    }

    .gk-hero {
        grid-template-columns: 1fr;
    }

    .gk-hero-main {
        padding: 1.3rem 1.1rem;
    }

    .gk-ticket-link {
        grid-template-columns: 1fr;
    }

    .gk-ticket-stub {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        border-top: 2px dashed var(--go-line-strong);
        border-left: 0;
        border-radius: 0 0 var(--go-radius) var(--go-radius);
    }

    .gk-ticket-stub::before,
    .gk-ticket-stub::after {
        top: -11px;
        left: auto;
    }

    .gk-ticket-stub::before {
        left: -11px;
    }

    .gk-ticket-stub::after {
        right: -11px;
        bottom: auto;
    }

    .gk-ticket-note {
        width: 100%;
        text-align: left;
    }

    .gk-steps ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gk-site .nav-primary .nav-item {
        padding: .4rem .45rem;
        font-size: .74rem;
    }

    .gk-wordmark {
        display: none;
    }

    .gk-site .checkout-product {
        border-right: 0;
        border-bottom: 1.5px dashed var(--go-line-strong);
    }
}
