/* ==========================================================================
   APK Directory —— Royal Rummy
   印度 rummy / 纸牌用户的暖金 + 深酒红视觉：奶油纸感底色、金色按钮、
   深色牌桌式 App 头部、花色装饰。独立样式，不依赖项目其它 CSS。
   命名前缀：ak-
   断点：1024 / 820 / 760 / 640 / 380
   ========================================================================== */

:root {
    --ak-max: 1000px;
    --ak-wrap: 1000px;

    --ak-bg: #f8f0e0;
    --ak-bg-deep: #f3e6ce;
    --ak-surface: #fffaf0;
    --ak-surface-2: #f7ecd9;

    --ak-ink: #3d0a14;
    --ak-ink-2: #5a1220;
    --ak-text: #2c1c1e;
    --ak-text-soft: #43302f;
    --ak-muted: #745b51;
    --ak-faint: #7d6659;

    --ak-border: #e7d7ba;
    --ak-border-strong: #d6bf98;

    --ak-gold: #b0740b;
    --ak-gold-ink: #8a5f10;
    --ak-gold-2: #e7a92f;
    --ak-gold-3: #f8c95c;

    --ak-red: #a4162a;
    --ak-red-strong: #7d0f1f;
    --ak-green: #156b4d;

    --ak-header-top: #450c17;
    --ak-header: #3a0913;
    --ak-header-2: #2c060e;
    --ak-panel-1: #4b0d18;
    --ak-panel-2: #330710;

    --ak-radius: 16px;
    --ak-radius-lg: 24px;
    --ak-shadow: 0 18px 40px -32px rgba(61, 10, 20, .55);
    --ak-shadow-lg: 0 34px 70px -58px rgba(61, 10, 20, .9);

    --ak-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body.ak {
    margin: 0;
    background-color: var(--ak-bg);
    background-image: radial-gradient(900px 420px at 50% -8%, rgba(227, 179, 74, .16), transparent 70%);
    color: var(--ak-text);
    font-family: var(--ak-font);
    font-size: 15.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* 四套印度纸牌风主题：只换深色主调与链接色，奶油底和金色按钮保持不变 */
body.ak[data-palette="emerald"] {
    --ak-ink: #083a2a;
    --ak-ink-2: #0f5138;
    --ak-red: #0f6b4f;
    --ak-red-strong: #0a4f3a;
    --ak-header-top: #0d3d2c;
    --ak-header: #082e21;
    --ak-header-2: #051f16;
    --ak-panel-1: #0c4632;
    --ak-panel-2: #06271b;
    --ak-shadow: 0 18px 40px -32px rgba(8, 58, 42, .55);
    --ak-shadow-lg: 0 34px 70px -58px rgba(5, 31, 22, .9);
}

body.ak[data-palette="midnight"] {
    --ak-ink: #101c3f;
    --ak-ink-2: #1a2b5c;
    --ak-red: #1d4ed8;
    --ak-red-strong: #1e40af;
    --ak-header-top: #131f44;
    --ak-header: #0c1633;
    --ak-header-2: #070f24;
    --ak-panel-1: #152552;
    --ak-panel-2: #0a1530;
    --ak-shadow: 0 18px 40px -32px rgba(16, 28, 63, .55);
    --ak-shadow-lg: 0 34px 70px -58px rgba(7, 15, 36, .9);
}

body.ak[data-palette="saffron"] {
    --ak-ink: #4a1f0a;
    --ak-ink-2: #6b2e0d;
    --ak-red: #c2410c;
    --ak-red-strong: #9a3412;
    --ak-header-top: #52240b;
    --ak-header: #3d1806;
    --ak-header-2: #2b1004;
    --ak-panel-1: #5a290d;
    --ak-panel-2: #341305;
    --ak-shadow: 0 18px 40px -32px rgba(74, 31, 10, .55);
    --ak-shadow-lg: 0 34px 70px -58px rgba(43, 16, 4, .9);
}

/* 基础链接不抢组件配色；正文与具体组件的链接再单独上色 */
:where(body.ak a) { color: inherit; text-decoration: none; }
:where(body.ak a:hover) { text-decoration: none; }
body.ak img { max-width: 100%; }

body.ak :focus-visible {
    outline: 2px solid var(--ak-gold-2);
    outline-offset: 3px;
}

/* ---------- 通用工具 ---------- */
.ak-sr-only,
.ak-skip:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.ak-skip {
    position: fixed;
    left: 12px;
    top: 10px;
    z-index: 90;
    padding: 9px 14px;
    border-radius: 9px;
    background: var(--ak-gold-3);
    color: var(--ak-ink);
    font-size: 13px;
    font-weight: 700;
}

.ak-main { display: block; min-height: 46vh; }

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

.ak-wrap--narrow { max-width: 800px; }

/* ---------- 页头：深酒红牌桌条 ---------- */
.ak-head {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, var(--ak-header-top) 0%, var(--ak-header) 55%, var(--ak-header-2) 100%);
    border-bottom: 1px solid rgba(227, 179, 74, .55);
    box-shadow: 0 12px 30px -26px rgba(0, 0, 0, .9);
}

.ak-head-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    max-width: var(--ak-max);
    margin: 0 auto;
    padding: 12px 20px;
}

.ak-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: #fff4dd;
}

.ak-brand img,
.ak-brand-mark {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.ak-brand img {
    padding: 2px;
    background: #fff6e2;
    border: 2px solid var(--ak-gold-2);
    box-shadow: 0 0 0 3px rgba(227, 179, 74, .12);
}

.ak-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff6e2;
    border: 2px solid var(--ak-gold-2);
    color: var(--ak-ink);
}

.ak-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.ak-brand-text strong {
    color: #fff4dd;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ak-brand-text small {
    margin-top: 3px;
    color: #d3ad7c;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ak-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    overflow-x: auto;
    scrollbar-width: none;
}

.ak-nav::-webkit-scrollbar { display: none; }

.ak-nav-link {
    padding: 8px 13px;
    border-radius: 999px;
    color: #e6cba4;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .015em;
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease;
}

.ak-nav-link:hover {
    color: #fff4dd;
    background: rgba(255, 246, 226, .08);
}

.ak-nav-link.is-active {
    background: linear-gradient(180deg, var(--ak-gold-3), var(--ak-gold-2));
    color: var(--ak-ink);
    box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .7);
}

/* ---------- 通知条 ---------- */
.ak-notice {
    max-width: var(--ak-wrap);
    margin: 16px auto 0;
    padding: 0 20px;
}

.ak-notice .notice-box {
    display: grid;
    gap: 5px;
    padding: 14px 17px;
    border: 1px solid #e6d2ab;
    border-left: 4px solid var(--ak-gold-2);
    border-radius: 14px;
    background: #fff6e4;
    color: #5e463c;
    font-size: 12.5px;
    line-height: 1.65;
    box-shadow: 0 10px 24px -26px rgba(61, 10, 20, .5);
}

.ak-notice .notice-box-title {
    color: var(--ak-ink);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ak-notice p { margin: 4px 0; }
.ak-notice p:first-child { margin-top: 0; }
.ak-notice p:last-child { margin-bottom: 0; }
.ak-notice a { color: var(--ak-red); text-decoration: underline; text-underline-offset: 2px; }

/* 折叠态：首屏只留一行，点击展开完整通知 */
.ak-notice-summary {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 15px;
    border: 1px solid #e6d2ab;
    border-left: 4px solid var(--ak-gold-2);
    border-radius: 13px;
    background: #fff6e4;
    box-shadow: 0 10px 24px -28px rgba(61, 10, 20, .5);
    cursor: pointer;
    list-style: none;
    transition: background .15s ease, border-color .15s ease;
}

.ak-notice-summary::-webkit-details-marker { display: none; }
.ak-notice-summary:hover { background: #fff0d4; border-color: #dbc08d; }

.ak-notice-mark {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--ak-gold-3), var(--ak-gold-2));
    color: var(--ak-ink);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.ak-notice-summary-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.ak-notice-summary-text strong {
    color: var(--ak-ink);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.ak-notice-summary-text span {
    margin-top: 1px;
    color: #75563f;
    font-size: 11.5px;
}

.ak-notice-chevron {
    flex: 0 0 auto;
    margin-left: auto;
    color: #8a6a3a;
    transition: transform .15s ease;
}

.ak-notice--collapsible[open] .ak-notice-chevron { transform: rotate(180deg); }

.ak-notice-panel {
    margin-top: 8px;
    padding: 14px 16px;
    border: 1px solid #e6d2ab;
    border-left: 4px solid var(--ak-gold-2);
    border-radius: 13px;
    background: #fff6e4;
}

.ak-notice-panel .notice-box {
    display: block;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

.ak-notice-panel .notice-box-title { display: none; }

/* ---------- 首屏 ---------- */
.ak-hero-band {
    background: linear-gradient(180deg, #fbf4e6 0%, #f6ead4 100%);
    border-bottom: 1px solid var(--ak-border);
}

.ak-hero {
    position: relative;
    overflow: hidden;
    padding: 48px 0 36px;
    text-align: center;
}

.ak-hero--compact { padding: 34px 0 30px; }

.ak-hero--compact .ak-hero-title { font-size: clamp(27px, 3.6vw, 38px); }

.ak-hero--compact .ak-hero-title::after { width: 64px; margin-top: 15px; }

.ak-hero > *:not(.ak-suits) {
    position: relative;
    z-index: 1;
}

.ak-suits {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.ak-suit {
    position: absolute;
    font-family: Georgia, "Times New Roman", serif;
    font-variant-emoji: text;
    line-height: 1;
    user-select: none;
}

.ak-suit--1 {
    left: 5%;
    top: 14%;
    color: var(--ak-ink);
    font-size: 128px;
    opacity: .06;
    transform: rotate(-14deg);
}

.ak-suit--2 {
    left: 13%;
    bottom: 2%;
    color: var(--ak-red);
    font-size: 82px;
    opacity: .08;
    transform: rotate(11deg);
}

.ak-suit--3 {
    right: 6%;
    top: 10%;
    color: var(--ak-gold-2);
    font-size: 150px;
    opacity: .16;
    transform: rotate(12deg);
}

.ak-suit--4 {
    right: 15%;
    bottom: 3%;
    color: var(--ak-ink);
    font-size: 92px;
    opacity: .05;
    transform: rotate(-8deg);
}

.ak-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 15px;
    padding: 6px 14px;
    border: 1px solid #e2c99d;
    border-radius: 999px;
    background: #fff8e8;
    color: #6b4c3f;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 #fff;
}

.ak-kicker svg { color: var(--ak-gold-ink); }

.ak-hero-title {
    max-width: 840px;
    margin: 0 auto;
    color: var(--ak-ink);
    font-size: clamp(30px, 4.4vw, 48px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.03em;
    text-wrap: balance;
}

.ak-hero-title::after {
    content: "";
    display: block;
    width: 82px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--ak-gold-2) 18%, var(--ak-gold-2) 82%, transparent);
}

.ak-lede {
    max-width: 64ch;
    margin: 16px auto 0;
    color: #6f574e;
    font-size: 16px;
    line-height: 1.65;
    text-wrap: pretty;
}

.ak-search {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 600px;
    margin: 26px auto 0;
    padding: 6px 6px 6px 16px;
    background: #fffdf8;
    border: 1px solid var(--ak-border-strong);
    border-radius: 16px;
    box-shadow: 0 14px 34px -28px rgba(61, 10, 20, .55);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.ak-search:focus-within {
    border-color: var(--ak-gold-2);
    box-shadow: 0 0 0 4px rgba(227, 179, 74, .18), 0 14px 34px -28px rgba(61, 10, 20, .55);
}

.ak-search-icon {
    flex: 0 0 auto;
    display: inline-flex;
    color: #a38b76;
}

.ak-search input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 2px;
    border: 0;
    background: transparent;
    color: var(--ak-ink);
    font: inherit;
    font-size: 16px;
    outline: 0;
    appearance: none;
}

.ak-search input::placeholder { color: #a38b76; }

.ak-search .ak-btn {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 11px;
}

.ak-hero-stats {
    display: flex;
    justify-content: center;
    margin: 26px auto 0;
}

.ak-hero-stats > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 28px;
    border-left: 1px solid #e0cfb0;
    line-height: 1.2;
}

.ak-hero-stats > div:first-child { border-left: 0; }

.ak-hero-stats strong {
    color: var(--ak-ink);
    font-size: 22px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.ak-hero-stats span {
    margin-top: 3px;
    color: var(--ak-gold-ink);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* ---------- 按钮：金色主操作 ---------- */
.ak-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: var(--ak-surface);
    color: var(--ak-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.ak-btn--accent {
    background: linear-gradient(180deg, var(--ak-gold-3) 0%, var(--ak-gold-2) 100%);
    border-color: #d19a2a;
    color: var(--ak-ink);
    box-shadow: 0 10px 22px -16px rgba(138, 95, 16, .8), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.ak-btn--accent:hover {
    background: linear-gradient(180deg, #ffd97a 0%, #efb53c 100%);
    color: var(--ak-ink);
    transform: translateY(-1px);
}

.ak-btn--ghost {
    background: #fffdf8;
    border-color: var(--ak-border-strong);
    color: var(--ak-ink-2);
}

.ak-btn--ghost:hover {
    border-color: var(--ak-gold-2);
    background: #fbf0d9;
    color: var(--ak-ink);
}

.ak-btn:active { transform: translateY(0); }

/* ---------- 分类胶囊 ---------- */
.ak-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 0;
}

.ak-chips a,
.ak-cat-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #dcc49c;
    border-radius: 999px;
    background: #fff8ea;
    color: var(--ak-ink-2);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.ak-chips a:hover,
.ak-cat-links a:hover {
    border-color: var(--ak-gold-2);
    background: #fff1d6;
    color: var(--ak-ink);
}

.ak-chips a.is-active {
    background: linear-gradient(180deg, var(--ak-gold-3), var(--ak-gold-2));
    border-color: #d19a2a;
    color: var(--ak-ink);
    box-shadow: 0 8px 18px -14px rgba(138, 95, 16, .85);
}

.ak-chips a span,
.ak-cat-links a span {
    padding: 1px 8px;
    border-radius: 999px;
    background: #f2e4c9;
    color: #7a5a2a;
    font-size: 10.5px;
    font-weight: 800;
}

.ak-chips a.is-active span {
    background: rgba(61, 10, 20, .12);
    color: var(--ak-ink);
}

/* ---------- 目录列表 ---------- */
.ak-directory { margin-top: 28px; }

.ak-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
}

.ak-section-head h2,
.ak-h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--ak-ink);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.ak-section-head h2::before,
.ak-h2::before {
    content: "";
    flex: 0 0 auto;
    width: 5px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--ak-gold-3), var(--ak-gold));
}

.ak-count {
    color: var(--ak-faint);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ak-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ak-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    padding: 13px 15px;
    background: var(--ak-surface);
    border: 1px solid var(--ak-border);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.ak-row:hover {
    border-color: #cfa96a;
    box-shadow: 0 16px 32px -28px rgba(61, 10, 20, .6), 0 0 0 1px rgba(227, 179, 74, .22);
}

@media (hover: hover) {
    .ak-row:hover { transform: translateY(-1px); }
    .ak-row:hover .ak-row-cta {
        background: var(--ak-ink);
        border-color: var(--ak-ink);
        color: #fff4dd;
    }
}

.ak-row:focus-within {
    border-color: var(--ak-gold-2);
    box-shadow: 0 0 0 3px rgba(227, 179, 74, .18);
}

.ak-row-logo {
    display: block;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 1px solid #dcc49c;
    border-radius: 14px;
    background: var(--ak-surface-2);
}

.ak-row-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.ak-logo-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--ak-muted);
}

.ak-row-body { min-width: 0; }

.ak-row-name {
    display: block;
    color: var(--ak-ink);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}

.ak-row-name:hover { color: var(--ak-red); }

.ak-row-meta {
    margin: 2px 0 0;
    color: var(--ak-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.ak-row-source {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 2px 0 0;
    color: var(--ak-faint);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.5;
}

.ak-row-source span:first-child { color: var(--ak-gold-ink); font-weight: 700; }

.ak-dot { color: #c7ae8b; }

.ak-row-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #d8c09a;
    border-radius: 10px;
    background: #fffdf8;
    color: var(--ak-red);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .01em;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.ak-row-cta svg { transition: transform .15s ease; }

@media (hover: hover) {
    .ak-row-cta:hover svg { transform: translateX(2px); }
}

.ak-row--compact { grid-template-columns: 46px minmax(0, 1fr) auto; padding: 11px 13px; }
.ak-row--compact .ak-row-logo { width: 46px; height: 46px; border-radius: 12px; }
.ak-row--compact .ak-row-name { font-size: 14.5px; }

.ak-empty {
    margin: 8px 0 0;
    padding: 24px 18px;
    border: 1px dashed var(--ak-border-strong);
    border-radius: 16px;
    background: var(--ak-surface);
    color: var(--ak-muted);
    font-size: 14px;
    text-align: center;
}

.ak-empty[hidden] { display: none; }

/* ---------- 分类链接 / 说明卡 ---------- */
.ak-cat-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 17px;
    border: 1px solid var(--ak-border);
    border-radius: 18px;
    background: #fff8ea;
}

.ak-cat-links h2 {
    flex: 1 0 100%;
    margin: 0 0 3px;
    color: var(--ak-ink);
    font-size: 14px;
    font-weight: 800;
}

.ak-note {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--ak-border);
    border-top: 3px solid var(--ak-gold-2);
    border-radius: 18px;
    background: var(--ak-surface);
    box-shadow: var(--ak-shadow);
}

.ak-note h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    color: var(--ak-ink);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.015em;
}

.ak-note h2::before {
    content: "";
    flex: 0 0 auto;
    width: 5px;
    height: 17px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--ak-gold-3), var(--ak-gold));
}

/* ---------- 正文排印 ---------- */
.ak-prose {
    color: var(--ak-text-soft);
    font-size: 14.8px;
    line-height: 1.75;
}

.ak-prose > :first-child { margin-top: 0; }
.ak-prose > :last-child { margin-bottom: 0; }

.ak-prose h2 {
    margin: 25px 0 10px;
    color: var(--ak-ink);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.35;
}

.ak-prose h3 {
    margin: 20px 0 8px;
    color: var(--ak-ink-2);
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.4;
}

.ak-prose p { margin: 0 0 12px; }
.ak-prose ul,
.ak-prose ol { margin: 0 0 14px; padding-left: 22px; }
.ak-prose li { margin: 4px 0; }
.ak-prose strong { color: var(--ak-ink); font-weight: 700; }

.ak-prose a {
    color: var(--ak-red);
    text-decoration: underline;
    text-decoration-color: rgba(184, 134, 11, .55);
    text-underline-offset: 3px;
}

.ak-prose a:hover { text-decoration-color: var(--ak-red); }

.ak-prose table {
    width: 100%;
    margin: 12px 0;
    border-collapse: collapse;
    font-size: 13.5px;
}

.ak-prose th,
.ak-prose td {
    padding: 8px 10px;
    border: 1px solid var(--ak-border);
    text-align: left;
    vertical-align: top;
}

.ak-prose th { background: var(--ak-surface-2); font-weight: 700; }
.ak-prose blockquote {
    margin: 14px 0;
    padding: 2px 0 2px 15px;
    border-left: 3px solid var(--ak-gold-2);
    color: var(--ak-muted);
}

/* ---------- 面包屑 ---------- */
.ak-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-top: 16px;
    color: var(--ak-faint);
    font-size: 12.5px;
    line-height: 1.5;
}

.ak-crumbs a { color: var(--ak-ink-2); font-weight: 600; }
.ak-crumbs a:hover { color: var(--ak-red); }
.ak-crumbs [aria-current="page"] { color: var(--ak-text); font-weight: 600; }

.ak-wrap--app .ak-crumbs { padding-top: 20px; }

/* ---------- 详情页 ---------- */
.ak-wrap--app {
    max-width: 920px;
    padding-bottom: 52px;
}

.ak-app {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid var(--ak-border);
    border-radius: var(--ak-radius-lg);
    background: var(--ak-surface);
    box-shadow: var(--ak-shadow-lg);
}

/* 深酒红牌桌式头部：金色花色、奶油文字与金色下载按钮 */
.ak-app-head {
    position: relative;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) minmax(224px, 256px);
    align-items: start;
    gap: 20px;
    overflow: hidden;
    padding: 28px;
    background:
        radial-gradient(520px 260px at 16% 0%, rgba(227, 179, 74, .2), transparent 65%),
        linear-gradient(135deg, var(--ak-panel-1) 0%, var(--ak-panel-2) 100%);
    border-bottom: 2px solid rgba(227, 179, 74, .7);
}

.ak-app-suit {
    position: absolute;
    right: 18px;
    top: -34px;
    color: var(--ak-gold-3);
    font-family: Georgia, "Times New Roman", serif;
    font-variant-emoji: text;
    font-size: 190px;
    line-height: 1;
    opacity: .08;
    transform: rotate(12deg);
    pointer-events: none;
    user-select: none;
}

.ak-app-logo {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    padding: 3px;
    overflow: hidden;
    border: 2px solid var(--ak-gold-2);
    border-radius: 24px;
    background: #fff6e2;
    box-shadow: 0 0 0 4px rgba(227, 179, 74, .12);
}

.ak-app-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.ak-app-title { position: relative; z-index: 1; min-width: 0; }

.ak-eyebrow {
    margin: 0 0 7px;
    color: var(--ak-gold-3);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ak-eyebrow-extra { white-space: nowrap; }

.ak-app-title h1 {
    margin: 0;
    color: #fff4dd;
    font-size: clamp(25px, 3.2vw, 34px);
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: -.03em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.ak-app-sub {
    margin: 8px 0 0;
    color: #d8b88e;
    font-size: 13.5px;
}

.ak-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.ak-tags li {
    padding: 3px 10px;
    border: 1px solid rgba(227, 179, 74, .38);
    border-radius: 999px;
    background: rgba(255, 246, 226, .06);
    color: #f0d6a5;
    font-size: 10.5px;
    font-weight: 700;
}

.ak-app-cta { position: relative; z-index: 1; min-width: 0; }

.ak-btn--download {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 13px;
    font-size: 14.5px;
    box-shadow: 0 18px 34px -20px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .65);
}

.ak-btn--download:hover { color: var(--ak-ink); }

.ak-fineprint {
    margin: 9px 0 0;
    color: #d3b089;
    font-size: 11px;
    line-height: 1.6;
    text-align: left;
}

.ak-app-intro {
    margin: 0;
    padding: 24px 28px 0;
    border-top: 0;
}

.ak-app-intro p { margin-bottom: 10px; }
.ak-app-intro p:last-child { margin-bottom: 0; }

.ak-facts-section { padding: 0 28px; margin-top: 24px; }

.ak-facts-section .ak-h2 { margin-bottom: 12px; font-size: 16.5px; }

.ak-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
}

.ak-facts > div {
    padding: 11px 13px;
    border: 1px solid #e8d5b3;
    border-radius: 12px;
    background: #f8eeda;
}

.ak-facts dt {
    color: var(--ak-gold-ink);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ak-facts dd {
    margin: 4px 0 0;
    color: var(--ak-ink);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.ak-related { padding: 0 28px 28px; margin-top: 28px; }
.ak-related .ak-section-head { margin-bottom: 13px; }

.ak-related .ak-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

/* ---------- 手机吸底下载条 ---------- */
.ak-sticky { display: none; }

/* ---------- 静态页 / 404 ---------- */
.ak-card {
    margin-top: 14px;
    padding: 28px;
    border: 1px solid var(--ak-border);
    border-top: 3px solid var(--ak-gold-2);
    border-radius: var(--ak-radius-lg);
    background: var(--ak-surface);
    box-shadow: var(--ak-shadow);
}

.ak-card h1 {
    margin: 0 0 16px;
    color: var(--ak-ink);
    font-size: clamp(25px, 3.4vw, 31px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.025em;
}

.ak-card .ak-kicker { margin-bottom: 13px; }

.ak-404 {
    position: relative;
    margin-top: 26px;
    padding: 58px 24px;
    overflow: hidden;
    border: 1px solid var(--ak-border);
    border-top: 3px solid var(--ak-gold-2);
    border-radius: var(--ak-radius-lg);
    background: var(--ak-surface);
    text-align: center;
    box-shadow: var(--ak-shadow);
}

.ak-404::before {
    content: "♠ ♥ ♦ ♣";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-8deg);
    color: var(--ak-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-variant-emoji: text;
    font-size: 120px;
    letter-spacing: .18em;
    opacity: .04;
    white-space: nowrap;
    pointer-events: none;
}

.ak-404 > * { position: relative; z-index: 1; }

.ak-404-code {
    margin: 0;
    color: var(--ak-gold);
    font-size: 54px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.04em;
}

.ak-404 h1 { margin: 12px 0 9px; color: var(--ak-ink); font-size: 23px; letter-spacing: -.02em; }

.ak-404 p {
    max-width: 48ch;
    margin: 0 auto 22px;
    color: var(--ak-muted);
    font-size: 14.5px;
}

.ak-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* ---------- 页脚：深酒红 ---------- */
.ak-foot {
    margin-top: 44px;
    background: linear-gradient(180deg, var(--ak-header) 0%, var(--ak-header-2) 100%);
    border-top: 3px solid var(--ak-gold-2);
    color: #e8d3b2;
}

.ak-foot-inner {
    display: grid;
    gap: 17px;
    max-width: var(--ak-max);
    margin: 0 auto;
    padding: 32px 20px 34px;
}

.ak-foot-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px 30px;
}

.ak-foot-brand strong {
    color: #fff4dd;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .01em;
}

.ak-foot-brand p {
    max-width: 44ch;
    margin: 5px 0 0;
    color: #c6a67d;
    font-size: 12.5px;
}

.ak-foot-suits {
    margin: 8px 0 0;
    color: var(--ak-gold-2);
    font-family: Georgia, "Times New Roman", serif;
    font-variant-emoji: text;
    font-size: 13px;
    letter-spacing: .38em;
    opacity: .7;
}

.ak-foot-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 18px;
    font-size: 13px;
    font-weight: 600;
}

.ak-foot-nav a { color: #d6b78d; }
.ak-foot-nav a:hover { color: #fff4dd; }

.ak-foot-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 15px 16px;
    border: 1px solid rgba(227, 179, 74, .25);
    border-radius: 13px;
    background: rgba(255, 246, 226, .04);
    color: #c9ab83;
    font-size: 11.5px;
    line-height: 1.7;
}

.ak-foot-notice p { margin: 0; }
.ak-foot-notice strong { color: #f0d6a5; font-weight: 700; }

.ak-badge-18 {
    flex: 0 0 auto;
    padding: 1px 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--ak-gold-3), var(--ak-gold-2));
    color: var(--ak-ink);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .03em;
    line-height: 1.7;
}

.ak-foot-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 246, 226, .09);
    color: #a98a66;
    font-size: 11.5px;
}

.ak-foot-bottom p { margin: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .ak-app-head { grid-template-columns: 90px minmax(0, 1fr) minmax(210px, 230px); gap: 18px; }
    .ak-app-logo { width: 90px; height: 90px; }
}

@media (max-width: 820px) {
    .ak-suits { display: none; }
    .ak-brand-text small { display: none; }

    .ak-app-head { grid-template-columns: 78px minmax(0, 1fr); gap: 16px; padding: 22px; }
    .ak-app-logo { width: 78px; height: 78px; border-radius: 20px; }
    .ak-app-logo img { border-radius: 15px; }
    .ak-app-cta { grid-column: 1 / -1; }
    .ak-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ak-fineprint { text-align: left; }

    .ak-app-intro { padding: 20px 22px 0; }
    .ak-facts-section { padding: 0 22px; }
    .ak-related { padding: 0 22px 22px; }
    .ak-related .ak-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
    .ak-head-inner {
        flex-wrap: wrap;
        gap: 0;
        padding: 10px 16px 0;
    }
    .ak-brand { padding-bottom: 9px; }
    .ak-brand-text small { display: none; }

    .ak-nav {
        order: 3;
        width: calc(100% + 32px);
        margin: 0 -16px;
        padding: 0 8px;
        border-top: 1px solid rgba(227, 179, 74, .18);
    }
    .ak-nav-link { padding: 10px 10px; font-size: 12.5px; }

    .ak-wrap { padding: 0 16px; }
    .ak-notice { padding: 0 16px; }

    .ak-hero { padding: 34px 0 28px; }
    .ak-hero--compact { padding: 24px 0 24px; }
    .ak-hero-title { font-size: clamp(25px, 6.4vw, 31px); }
    .ak-hero--compact .ak-hero-title { font-size: 26px; }
    .ak-hero-stats > div { padding: 0 20px; }

    .ak-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-right: -16px;
        padding-right: 16px;
        scrollbar-width: none;
    }
    .ak-chips::-webkit-scrollbar { display: none; }

    .ak-app { border-radius: 20px; }
    .ak-app-suit { font-size: 150px; }
    .ak-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ak-related .ak-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    body.ak { font-size: 15px; }

    .ak-lede { display: none; }
    .ak-hero--compact .ak-lede { display: block; margin-top: 13px; font-size: 13.5px; }
    .ak-hero-title::after { width: 64px; margin-top: 14px; }
    .ak-search { margin-top: 19px; padding-left: 13px; }
    .ak-search .ak-btn { padding: 0 16px; }
    .ak-hero-stats { margin-top: 21px; }
    .ak-hero-stats > div { padding: 0 16px; }
    .ak-hero-stats strong { font-size: 18px; }
    .ak-hero-stats span { font-size: 8.5px; }

    .ak-row { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 11px; padding: 11px 12px; }
    .ak-row-logo { width: 50px; height: 50px; border-radius: 12px; }
    .ak-row-name { font-size: 14.5px; }
    .ak-row-cta { min-height: 36px; padding: 0 11px; font-size: 11.5px; }
    .ak-row-cta svg { display: none; }

    .ak-row--compact { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 9px 11px; }
    .ak-row--compact .ak-row-logo { width: 44px; height: 44px; }

    .ak-eyebrow-extra { display: none; }
    .ak-app-suit { display: none; }

    .ak-app-head { padding: 19px; border-radius: 0; }
    .ak-app-logo { width: 72px; height: 72px; border-radius: 18px; }
    .ak-app-logo img { border-radius: 13px; }
    .ak-app-title h1 { font-size: 24px; }
    .ak-app-sub { font-size: 12.5px; }
    .ak-app-intro { padding: 18px 18px 0; }
    .ak-facts-section { padding: 0 18px; margin-top: 20px; }
    .ak-related { padding: 0 18px 20px; }
    .ak-facts > div { padding: 10px 11px; }

    .ak-note { padding: 19px 17px; }
    .ak-card { padding: 21px 18px; }
    .ak-404 { padding: 42px 18px; }
    .ak-404::before { font-size: 86px; }
    .ak-foot { margin-top: 32px; }
}

@media (max-width: 380px) {
    .ak-kicker {
        gap: 5px;
        padding: 5px 10px;
        font-size: 9.5px;
        letter-spacing: .07em;
        white-space: nowrap;
    }
    .ak-hero-title { font-size: 23px; }
    .ak-search input { font-size: 15px; }
    .ak-nav { padding: 0 4px; }
    .ak-nav-link { padding: 10px 7px; font-size: 12px; }
    .ak-hero-stats > div { padding: 0 13px; }
}

@media (max-width: 700px) {
    .ak-sticky {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        background: var(--ak-header);
        background: color-mix(in srgb, var(--ak-header) 94%, transparent);
        border-top: 1px solid rgba(227, 179, 74, .55);
        box-shadow: 0 -14px 32px -26px rgba(0, 0, 0, .9);
        -webkit-backdrop-filter: saturate(160%) blur(12px);
        backdrop-filter: saturate(160%) blur(12px);
        transform: translateY(110%);
        transition: transform .2s ease;
    }

    .ak-sticky.is-visible { transform: translateY(0); }

    .ak-has-sticky .ak-main { padding-bottom: 78px; }
    .ak-has-sticky .ak-foot-inner { padding-bottom: calc(34px + 70px); }

    .ak-sticky-logo {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        overflow: hidden;
        border: 1px solid rgba(227, 179, 74, .55);
        border-radius: 9px;
        background: #fff6e2;
        color: var(--ak-ink);
    }

    .ak-sticky-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }

    .ak-sticky-meta {
        display: flex;
        flex-direction: column;
        min-width: 0;
        line-height: 1.3;
    }

    .ak-sticky-meta strong {
        overflow: hidden;
        color: #fff4dd;
        font-size: 13px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ak-sticky-meta small {
        overflow: hidden;
        color: #cbaa80;
        font-size: 10.5px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ak-sticky-btn {
        flex: 0 0 auto;
        min-height: 40px;
        margin-left: auto;
        padding: 0 15px;
        border-radius: 9px;
        font-size: 12.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.ak *,
    body.ak *::before,
    body.ak *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
