﻿/* night-shell.css — 蒂芙尼蓝 · 浅色权威主题 */

:root {
    --layout-max: 100%;
    --nav-pad-x: clamp(8px, 2.8vw, 14px);
    --header-full: 0px;
    --z-header: 9000;
    --z-dropdown: 9001;

    --page-canvas: #eefaf9;
    --page-canvas-edge: #8abfd4;
    --surface-top: #ffffff;
    --surface-card: #ffffff;
    --surface-card-inner: #f4fbfb;
    --surface-elevated: #e8f8f7;
    --shell-border: transparent;

    --text-main: #0f2f2e;
    --text-soft: rgba(15, 47, 46, 0.82);
    --text-heading: #007a7a;
    --text-muted: #5a8a88;
    --line-soft: rgba(10, 186, 181, 0.22);
    --line-strong: #b8e8e5;

    --accent: #0abab5;
    --accent-dark: #089691;
    --accent-soft: rgba(10, 186, 181, 0.12);
    --accent-border: rgba(10, 186, 181, 0.28);
    --btn-text: #ffffff;
    --btn-text-dark: #0a0a0a;
    --surface-hero: linear-gradient(180deg, #e8f8f7 0%, #ffffff 100%);
    --surface-primary: linear-gradient(135deg, #d4f3f1 0%, #ecfafa 100%);
    --surface-footer: linear-gradient(180deg, #f7fdfc 0%, #e8f8f7 100%);

    --color-green: #0abab5;
    --color-green-dark: #089691;
    --color-gold: #ffc107;
    --color-gold-dark: #e6ac00;
    --color-blue: #1a1a1a;
    --color-blue-dark: #0a0a0a;

    --shadow-soft: 0 8px 24px rgba(10, 186, 181, 0.1);
    --shadow-sm: 0 2px 8px rgba(10, 186, 181, 0.2);
    --shadow-accent: 0 4px 14px rgba(10, 186, 181, 0.18);
    --shadow-gold: 0 4px 14px rgba(255, 193, 7, 0.38);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--page-canvas);
    overflow-x: hidden;
}

html[data-ui-contain="1"] {
    background: var(--page-canvas-edge);
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--page-canvas);
    color: var(--text-main);
    font-family: Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

html[data-ui-contain="1"] body {
    background: var(--page-canvas-edge);
}

html[data-ui-contain="1"] {
    background: var(--page-canvas-edge);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.nav-state {
    position: fixed;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.site-header {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: var(--z-header);
    width: min(100%, var(--layout-max));
    transform: translateX(-50%);
    overflow: visible;
    border-inline: 1px solid var(--shell-border);
    box-shadow: 0 4px 20px rgba(10, 186, 181, 0.12);
}

.app-bar {
    display: grid;
    grid-template-columns: 24px 48px minmax(0, 1fr) max-content;
    align-items: center;
    gap: 8px;
    padding: calc(3px + env(safe-area-inset-top, 0px)) var(--nav-pad-x) 3px;
    background: #e8f8f7;
    border-bottom: 1px solid var(--line-strong);
}

#app-bar-on:not(:checked) ~ .site-header .app-bar {
    display: none;
}

.app-bar__close {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.16s ease;
}

.app-bar__close:hover {
    background: rgba(10, 186, 181, 0.18);
}

.app-bar__icon {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
}

.app-bar__copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.app-bar__text {
    margin: 0;
    padding: 0;
    color: var(--text-main);
    overflow: hidden;
    font-size: clamp(13px, 3.45vw, 15px);
    font-weight: 700;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-bar__bonus {
    color: var(--accent);
}

.app-bar__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 0.28rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: var(--btn-text-dark);
    font-size: clamp(11px, 3vw, 13px);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: var(--shadow-gold);
    transition: filter 0.16s ease, transform 0.16s ease;
}

.app-bar__download:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.nav-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 68px;
    padding: 8px var(--nav-pad-x);
    background: #ffffff;
    border-bottom: 1px solid var(--line-strong);
}

.hamburger-button {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.16s ease;
}

.hamburger-button:hover {
    background: rgba(10, 186, 181, 0.1);
}

.hamburger-button span {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #5a8a88;
    transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease;
}

.hamburger-button span:nth-child(1) { top: 14px; }
.hamburger-button span:nth-child(2) { top: 21px; }
.hamburger-button span:nth-child(3) { top: 28px; }

#nav-toggle:checked ~ .site-header .hamburger-button span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

#nav-toggle:checked ~ .site-header .hamburger-button span:nth-child(2) {
    opacity: 0;
}

#nav-toggle:checked ~ .site-header .hamburger-button span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

.site-logo {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    justify-content: flex-start;
    margin-left: 2px;
}

.site-logo img {
    width: clamp(80px, min(42vw, calc(100vw - 3.6rem)), 200px);
    height: clamp(28px, 5vw, 42px);
    object-fit: contain;
}

.header-cta {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    align-items: center;
    min-width: 0;
    margin-left: auto;
}

.header-cta__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    min-height: 44px;
    padding: 11px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
    color: var(--btn-text);
    font-size: clamp(13px, 3.4vw, 15px);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
    transition: filter 0.16s ease, transform 0.16s ease;
}

.header-cta__button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.header-cta__button:last-child {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: var(--btn-text-dark);
    box-shadow: var(--shadow-gold);
}

.header-cta__button:last-child .header-cta__badge {
    background: var(--color-blue-dark);
    color: var(--color-gold);
}

.header-cta__badge {
    position: absolute;
    top: -7px;
    right: -5px;
    padding: 2px 5px;
    border-radius: 4px;
    background: var(--color-gold);
    color: var(--btn-text-dark);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

.site-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: var(--z-dropdown);
    display: none;
    padding: 12px var(--nav-pad-x) 14px;
    background: var(--surface-top);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 12px 28px rgba(10, 186, 181, 0.22);
}

#nav-toggle:checked ~ .site-header .site-menu {
    display: block;
}

.site-menu__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.site-menu__links a {
    min-width: 0;
    min-height: 36px;
    padding: 11px 8px;
    overflow: hidden;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background 0.16s ease, color 0.16s ease;
}

.site-menu__links a:hover {
    background: var(--accent-soft);
    color: var(--text-heading);
}

.site-menu__links a.is-active {
    background: rgba(10, 186, 181, 0.18);
    color: var(--text-heading);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(10, 186, 181, 0.35);
}

.shell {
    position: relative;
    left: 50%;
    width: min(100%, var(--layout-max));
    max-width: 100%;
    min-height: 100vh;
    margin-inline: 0;
    transform: translateX(-50%);
    overflow-x: hidden;
    background: var(--surface-top);
    border-inline: 1px solid var(--shell-border);
}

.site-main {
    width: 100%;
    max-width: 100%;
    padding-top: var(--header-full);
    overflow-x: hidden;
}

.site-main > *,
.shell > footer,
.shell > .site-footer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.landing__container,
.prose,
.container {
    width: 100%;
    max-width: 100% !important;
    margin-inline: auto;
    padding-inline: var(--nav-pad-x);
    box-sizing: border-box;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}

.col-12,
.col-lg-6,
.col-md-6,
.col-lg-3,
.col-lg-4,
.col-lg-8,
.col-md-4,
.col-md-6,
.offset-lg-2 {
    flex: 1 1 100%;
    min-width: 0;
    padding: 0;
}

@media (max-width: 360px) {
    .app-bar {
        grid-template-columns: 24px 42px minmax(0, 1fr) max-content;
        gap: 6px;
    }

    .app-bar__icon {
        width: 42px;
        height: 42px;
    }

    .header-cta {
        gap: 4px;
    }

    .header-cta__button {
        min-width: 68px;
        min-height: 40px;
        padding: 9px 14px;
        font-size: 13px;
    }
}
