/* 统一字体：OPPO Sans（项目内置），fallback 到系统字体 */
@font-face {
    font-family: "OPPO Sans";
    src: url("fonts/OPPOSans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --site-nav-height: 4rem;
    --site-content-header-height: 4.67rem;
    --site-page-top-gap: clamp(3.5rem, 5vw, 4.5rem);
    --site-page-bottom-gap: clamp(3rem, 5vh, 5rem);
    --site-page-max-wide: 80rem;
    --site-page-max-medium: 64rem;
    --site-page-max-narrow: 56rem;
    --site-auth-slot-width: 20rem;
    --site-bg: #0a0b0e;
    --site-bg-deep: #13151a;
    --site-surface: rgba(33, 35, 41, 0.96);
    --site-surface-strong: rgba(33, 35, 41, 0.98);
    --site-surface-soft: rgba(33, 35, 41, 0.72);
    --site-border: #343940;
    --site-border-strong: #4a4f57;
    --site-text-primary: #edf7ff;
    --site-text-secondary: #cbd5e1;
    --site-text-muted: #9aa3b2;
    --site-text-faint: #6f7785;
    --site-accent: #cccccc;
    --site-accent-strong: #e5e5e5;
    --site-accent-soft: rgba(204, 204, 204, 0.16);
    --site-danger-soft: rgba(251, 113, 133, 0.16);
    --site-danger-text: #fb7185;
    --site-success-soft: rgba(255, 209, 102, 0.16);
    --site-success-text: #ffd166;
    --site-warning-soft: rgba(255, 209, 102, 0.16);
    --site-warning-text: #ffd166;
    --site-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
}

html {
    min-height: 100%;
    background: #0a0b0e;
    color: var(--site-text-primary);
    color-scheme: dark;
    scrollbar-gutter: stable both-edges;
    text-size-adjust: 100%;
}

html.site-pending body {
    opacity: 0;
}

html.site-ready body {
    opacity: 1;
}

body {
    min-height: 100%;
    margin: 0;
    font-family: "OPPO Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    line-height: 1.5;
    background: transparent;
    color: var(--site-text-primary);
    opacity: 1;
    transition: opacity 0.12s ease-out;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.site-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    position: relative;
    isolation: isolate;
}

.site-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at top, rgba(0, 0, 0, 0.72), transparent 82%);
    opacity: 0.48;
    z-index: -2;
}

.site-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03), transparent 45%);
    z-index: -3;
}

@supports (min-height: 100dvh) {
    .site-shell {
        min-height: 100dvh;
    }
}

#app-nav {
    min-height: var(--site-nav-height);
}

.site-nav-container,
.site-footer-shell {
    width: min(100%, calc(var(--site-page-max-wide) + 2rem));
    margin-inline: auto;
    padding-inline: 1rem;
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
}

.site-home-main {
    display: flex;
    flex-direction: column;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    position: relative;
    transition: opacity 160ms ease;
}

.site-home-main::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.03), transparent 25%);
}

.site-home-main .site-hero-section {
    flex: 1 0 auto;
}

.site-home-main .site-hero-copy {
    transform: translateY(clamp(-4rem, -4vh, -1rem));
}

body.index-page .gradient-text {
    background: linear-gradient(135deg, #ffd166 0%, #ffd166 55%, #ffd166 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.index-page .hero-bg {
    background:
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.04) 0%, transparent 30%);
}

.site-page {
    width: min(100%, calc(var(--site-page-max-wide) + 2rem));
    margin-inline: auto;
    padding-inline: 1rem;
    padding-top: calc(var(--site-nav-height) + var(--site-page-top-gap));
    padding-bottom: var(--site-page-bottom-gap);
}

.site-page--wide {
    max-width: calc(var(--site-page-max-wide) + 2rem);
}

.site-page--medium {
    max-width: calc(var(--site-page-max-medium) + 2rem);
}

.site-page--narrow {
    max-width: calc(var(--site-page-max-narrow) + 2rem);
}

.site-footer {
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
}

.site-global-nav {
    inset: 0 0 auto 0;
    min-height: var(--site-nav-height);
    position: fixed;
    width: 100%;
    z-index: 50;
    background: rgba(19, 21, 26, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--site-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.site-nav-row {
    min-height: var(--site-nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-nav-brand,
.site-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--site-text-primary);
}

.site-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.site-brand-mark--nav {
    width: 2rem;
    height: 2rem;
    border-radius: 0.85rem;
}

.site-brand-mark--modal {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.875rem;
    margin: 0 auto 0.875rem;
    background: linear-gradient(135deg, #ffd166, #ffe08a);
    color: #1a1c22;
    border: 0;
    box-shadow: none;
}

.site-brand-mark--footer {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.5rem;
}

.site-brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-brand-text,
.site-footer-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--site-text-primary);
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 2vw, 2rem);
    margin-left: auto;
}

.site-nav-link {
    color: var(--site-text-muted);
    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.site-nav-link:hover {
    color: var(--site-accent);
}

.site-nav-link--active {
    color: var(--site-accent) !important;
    font-weight: 600;
}

.site-nav-link--mobile {
    display: block;
    padding-block: 0.2rem;
}

.site-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--site-border);
    border-radius: 0.9rem;
    background: rgba(18, 20, 24, 0.9);
    color: var(--site-text-secondary);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.site-nav-toggle:hover {
    border-color: var(--site-border-strong);
    color: var(--site-accent);
}

.site-nav-mobile-panel {
    display: none;
    border-top: 1px solid var(--site-border);
    background: rgba(19, 21, 26, 0.95);
    backdrop-filter: blur(20px);
}

.site-nav-mobile-panel:not(.hidden) {
    display: block;
}

.site-nav-mobile-inner {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.site-nav-auth-slot {
    min-width: var(--site-auth-slot-width);
    position: relative;
}

.site-nav-auth-slot-mobile {
    width: 100%;
    padding-top: 0.25rem;
}

.site-nav-auth-content {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    width: 100%;
}

.site-auth-pill,
.site-auth-points-badge {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 112px;
    gap: 0.75rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(204, 204, 204, 0.22);
    background: rgba(204, 204, 204, 0.12);
}

.site-auth-pill--skeleton {
    animation: site-pulse 1.4s ease-in-out infinite;
}

.site-auth-pill-skeleton-bar {
    display: block;
    width: 4rem;
    height: 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.site-auth-points-badge {
    color: #ffd166;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease;
}

.site-auth-points-badge:hover {
    background: rgba(204, 204, 204, 0.16);
    border-color: var(--site-border-strong);
}

.site-auth-points-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.site-auth-points-value {
    font-size: 0.875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.site-nav-login-btn,
.site-nav-account-btn {
    width: 105px;
    max-width: 105px;
    min-width: 105px;
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid var(--site-border);
}

.site-nav-login-btn {
    color: #0a0b0e;
    border-color: rgba(204, 204, 204, 0.18);
    background: linear-gradient(135deg, var(--site-accent-strong), var(--site-accent));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.site-nav-login-btn:hover {
    background: linear-gradient(135deg, #ffd166, #ffd166);
}

.site-nav-account-btn {
    justify-content: flex-end;
    color: var(--site-text-primary);
    background: rgba(33, 35, 41, 0.92);
}

.site-nav-account-btn:hover {
    border-color: var(--site-border-strong);
    background: rgba(40, 42, 48, 0.96);
}

.site-nav-account-btn--skeleton {
    background: rgba(33, 35, 41, 0.92);
    animation: site-pulse 1.4s ease-in-out infinite;
}

.site-nav-account-label {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

.site-auth-menu-panel {
    position: absolute;
    right: 0;
    margin-top: 0.5rem;
    width: 11rem;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--site-border);
    background: rgba(19, 21, 26, 0.98);
    box-shadow: var(--site-shadow);
    z-index: 1041;
}

.site-auth-menu-panel.hidden {
    display: none;
}

.site-auth-menu-item {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    border: 0;
    background: transparent;
    color: var(--site-text-primary);
    font-size: 0.875rem;
    text-align: left;
}

.site-auth-menu-item:hover {
    background: rgba(40, 42, 48, 0.96);
}

.site-auth-menu-item--danger {
    color: var(--site-danger-text);
}

.site-auth-modal-host {
    position: fixed;
    inset: 0;
    z-index: 1040;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.site-auth-modal-host.hidden {
    display: none;
}

.site-auth-modal-mask {
    position: fixed;
    inset: 0;
    background: #000;
}

.site-auth-modal-layer {
    position: relative;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.site-auth-modal-panel {
    position: relative;
    width: min(100%, 25rem);
    margin: auto;
    max-height: min(calc(100vh - 2rem), 44rem);
    overflow: auto;
    border-radius: 1rem;
    border: 1px solid var(--site-border);
    background: rgba(19, 21, 26, 0.98);
    box-shadow: var(--site-shadow);
}

@supports (min-height: 100dvh) {
    .site-auth-modal-layer {
        min-height: 100dvh;
    }

    .site-auth-modal-panel {
        max-height: min(calc(100dvh - 2rem), 44rem);
    }
}

.site-auth-modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--site-text-faint);
    font-size: 1.5rem;
    line-height: 1;
}

.site-auth-modal-close:hover {
    color: var(--site-text-primary);
}

.site-auth-modal-body {
    padding: 2.25rem 2rem 1.75rem;
}

.site-auth-modal-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-auth-modal-form.hidden {
    display: none;
}

.site-auth-modal-form--spaced {
    margin-top: 0.75rem;
}

.site-auth-input {
    width: 100%;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border-radius: 0.9rem;
    border: 1px solid var(--site-border);
    background: rgba(18, 20, 24, 0.92);
    color: var(--site-text-primary);
    outline: none;
}

.site-auth-input:focus {
    border-color: var(--site-border-strong);
    box-shadow: 0 0 0 3px rgba(204, 204, 204, 0.14);
}

.site-brand-mark-icon {
    color: #1a1c22;
}

.site-auth-modal-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.site-auth-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--site-text-primary);
    letter-spacing: 1px;
    margin: 0;
}

.site-auth-modal-subtitle {
    font-size: 0.8125rem;
    color: var(--site-text-faint);
    margin: 0.25rem 0 0;
}

.site-auth-input-wrap {
    position: relative;
}

.site-auth-input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--site-text-faint);
    pointer-events: none;
}

.site-auth-input--with-icon {
    padding-left: 2.5rem;
}

.site-auth-modal-footer {
    text-align: center;
    margin-top: 1.125rem;
    font-size: 0.75rem;
    color: var(--site-text-faint);
}

.site-auth-inline-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-auth-inline-input {
    flex: 1 1 auto;
}

.site-auth-inline-button,
.site-auth-submit {
    border: 1px solid rgba(204, 204, 204, 0.18);
    border-radius: 0.9rem;
    font-weight: 600;
}

.site-auth-inline-button {
    flex-shrink: 0;
    padding: 0.7rem 1rem;
    background: rgba(204, 204, 204, 0.08);
    color: var(--site-accent);
}

.site-auth-inline-button:hover {
    background: rgba(204, 204, 204, 0.14);
    border-color: var(--site-border-strong);
}

.meta-label {
    color: #92a8c6;
}

.device-status-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: calc(1em + 6px);
    padding-left: 6px;
    padding-right: 6px;
    border-radius: 9999px;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
}

.site-auth-submit {
    width: 100%;
    padding: 0.85rem 1rem;
    color: #0a0b0e;
    background: #ffd166;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.site-auth-submit:hover {
    background: #ffe08a;
}

.site-auth-modal-actions {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-auth-action-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--site-accent);
    font-weight: 600;
}

.site-auth-action-link:hover {
    text-decoration: underline;
}

.site-footer-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.site-footer-frame {
    padding: 1.5rem 0 2rem;
    background: var(--site-surface);
    border-top: 1px solid var(--site-border);
}

.site-footer-top {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.site-footer-brand {
    margin-right: 0;
    transform: translateY(1.5px);
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.site-footer-meta {
    color: rgb(148 163 184);
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: center;
}

.site-hero-section {
    padding-top: calc(var(--site-nav-height) + var(--site-page-top-gap));
    padding-bottom: clamp(4.5rem, 8vh, 6.5rem);
    min-height: min(54rem, 100dvh);
    display: flex;
    align-items: center;
    position: relative;
}

.site-hero-copy {
    max-width: 80rem;
}

.site-hero-title {
    min-height: clamp(8rem, 14vw, 12rem);
    line-height: 1.05;
    white-space: normal;
    animation: none !important;
    transform: none !important;
    will-change: auto;
}

.site-hero-title,
.site-hero-title * {
    animation: none !important;
    transform: none !important;
}

.site-hero-media-shell {
    position: relative;
}

.site-hero-media-frame {
    position: relative;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(204, 204, 204, 0.12), rgba(204, 204, 204, 0.18)),
        rgba(18, 20, 24, 0.98);
    border: 1px solid var(--site-border-strong);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.site-hero-media-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-hero-media-frame.is-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.35), rgba(255,255,255,0));
    transform: translateX(-100%);
    animation: site-hero-shimmer 1.6s infinite;
    z-index: 1;
}

@keyframes site-hero-shimmer {
    100% {
        transform: translateX(100%);
    }
}

a {
    color: inherit;
}

input,
select,
textarea {
    background: rgba(18, 20, 24, 0.92);
    color: var(--site-text-primary);
    border-color: var(--site-border);
}

input::placeholder,
textarea::placeholder {
    color: var(--site-text-faint);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--site-border-strong);
}

button,
a,
input,
select,
textarea {
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

button:disabled,
.disabled,
.cursor-not-allowed {
    opacity: 0.58;
}

/*
 * Tailwind 工具类覆盖层
 * ------------------------------------------------------------------
 * 以下规则覆盖 Tailwind CSS 的默认工具类,将亮色主题的 Tailwind class
 * (.bg-white, .text-gray-900 等)映射为站点的暗色设计令牌。
 *
 * 覆盖原理:site_layout.css 在 tailwind.generated.css 之后加载,二者均
 * 为未分层(unlayered)规则且选择器特异性相同(单类选择器),同特异性
 * 规则按源序后者优先,故覆盖层无需 !important 即可胜过 Tailwind 默认
 * 工具类。body.<class> 规则的特异性(元素+类)高于单类工具类,同样
 * 无需 !important。已确认各页面 HTML 无内联 style 属性与之冲突。
 *
 * 本站 HTML 由后端/脚本动态生成,部分模板硬编码 Tailwind class;在不
 * 修改所有后端模板的前提下,此覆盖层以最低成本实现暗色主题统一。
 *
 * 长期替代方案:在 Tailwind config 中通过 extend.theme.colors 把
 * white/gray-50/gray-900/indigo-600 等映射为暗色令牌,届时可完全移除
 * 以下覆盖层;或改用 Tailwind dark: 变体并在 <html> 上挂 .dark class。
 * ------------------------------------------------------------------
 */

.bg-gray-50,
.bg-white {
    background: var(--site-surface);
    backdrop-filter: blur(16px);
}

body.bg-gray-50,
body.bg-white,
body.bg-white\/80,
body.bg-white\/95 {
    backdrop-filter: none;
    filter: none;
    transform: none;
}

.bg-white\/80 {
    background: rgba(19, 21, 26, 0.82);
    backdrop-filter: blur(18px);
}

.bg-white\/95 {
    background: rgba(19, 21, 26, 0.95);
    backdrop-filter: blur(20px);
}

.bg-gray-100,
.bg-gray-100\/80 {
    background: rgba(33, 35, 41, 0.92);
}

.bg-indigo-50 {
    background: rgba(204, 204, 204, 0.14);
}

.bg-indigo-100,
.bg-purple-100 {
    background: rgba(204, 204, 204, 0.12);
}

.bg-indigo-600 {
    background: linear-gradient(135deg, var(--site-accent-strong), var(--site-accent));
    color: #0a0b0e;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.hover\:bg-indigo-700:hover {
    background: linear-gradient(135deg, #ffd166, #ffd166);
    color: #0a0b0e;
}

.bg-gray-400 {
    background: linear-gradient(135deg, rgba(33, 35, 41, 0.95), rgba(48, 50, 56, 0.95));
}

.hover\:bg-gray-50:hover,
.hover\:bg-gray-200:hover {
    background: rgba(40, 42, 48, 0.96);
}

.text-gray-900,
.text-gray-800,
.text-gray-700 {
    color: var(--site-text-primary);
}

.text-gray-600,
.text-gray-500 {
    color: var(--site-text-muted);
}

.text-gray-400 {
    color: var(--site-text-faint);
}

.text-indigo-600,
.text-indigo-700 {
    color: var(--site-accent);
}

.hover\:text-indigo-600:hover {
    color: var(--site-accent);
}

.text-red-500,
.text-red-600,
.text-red-700 {
    color: var(--site-danger-text);
}

.text-emerald-700,
.text-emerald-600 {
    color: var(--site-success-text);
}

.text-sky-700,
.text-violet-700,
.text-amber-700 {
    color: #ffd166;
}

.border-gray-100,
.border-gray-200 {
    border-color: var(--site-border);
}

.border-indigo-100 {
    border-color: rgba(204, 204, 204, 0.22);
}

.border-indigo-600,
.hover\:border-indigo-200:hover {
    border-color: var(--site-border-strong);
}

.border-red-100 {
    border-color: rgba(255, 98, 126, 0.26);
}

.divide-gray-100 > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--site-border);
}

.bg-red-50 {
    background: var(--site-danger-soft);
}

.bg-emerald-50 {
    background: var(--site-success-soft);
}

.bg-sky-50,
.bg-violet-50 {
    background: rgba(204, 204, 204, 0.14);
}

.bg-amber-50 {
    background: var(--site-warning-soft);
}

.rounded-2xl,
.rounded-3xl,
.rounded-xl {
    border-color: var(--site-border);
}

.shadow-sm,
.shadow-lg,
.shadow-xl,
.shadow-2xl,
.hover\:shadow-md:hover {
    box-shadow: var(--site-shadow);
}

.shadow-indigo-100,
.shadow-indigo-200,
.shadow-gray-200\/30,
.shadow-gray-200\/50 {
    --tw-shadow-color: rgba(0, 0, 0, 0.64);
}

.ring-indigo-500,
.focus\:ring-indigo-500:focus {
    --tw-ring-color: rgba(204, 204, 204, 0.34);
}

.site-footer {
    position: relative;
}

.site-footer a:hover {
    color: var(--site-accent);
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(19, 21, 26, 0.95);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(204, 204, 204, 0.55), rgba(204, 204, 204, 0.55));
    border-radius: 999px;
    border: 2px solid rgba(19, 21, 26, 0.95);
}

@media (min-width: 640px) {
    .site-nav-container,
    .site-footer-shell {
        padding-inline: 1.5rem;
    }

    .site-page {
        padding-inline: 1.5rem;
    }
}

@media (max-width: 767px) {
    .site-nav-links {
        display: none;
    }

    .site-nav-toggle {
        display: inline-flex;
    }

    .site-nav-auth-slot {
        min-width: 0;
    }

    .site-nav-auth-content {
        justify-content: space-between;
    }

    .site-nav-login-btn,
    .site-nav-account-btn {
        width: auto;
        max-width: none;
        min-width: 105px;
    }

    .site-auth-modal-actions {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .site-footer-shell {
        text-align: center;
    }

    .site-footer-top {
        flex-direction: column;
        gap: 0.75rem;
    }

    .site-footer-links {
        gap: 1rem 1.25rem;
    }

    .site-footer-meta {
        font-size: 0.875rem;
    }

    .site-hero-section {
        align-items: flex-start;
        min-height: auto;
        padding-top: calc(var(--site-nav-height) + clamp(4.5rem, 12vw, 6rem));
        padding-bottom: clamp(3rem, 7vh, 4.5rem);
    }

    .site-home-main .site-hero-copy {
        transform: none;
    }

    .site-hero-title {
        min-height: 0;
        line-height: 1.08;
    }
}

@media (min-width: 768px) {
    .site-nav-mobile-panel {
        display: none !important;
    }
}

@keyframes site-pulse {
    0%, 100% {
        opacity: 0.62;
    }

    50% {
        opacity: 1;
    }
}

@media (max-height: 900px) {
    .site-hero-section {
        align-items: flex-start;
        min-height: auto;
        padding-top: calc(var(--site-nav-height) + clamp(5rem, 9vh, 6.5rem));
    }

    .site-home-main .site-hero-copy {
        transform: none;
    }
}

@media (max-height: 760px) {
    .site-hero-section {
        padding-top: calc(var(--site-nav-height) + clamp(5.5rem, 10vh, 7rem));
        padding-bottom: clamp(2.5rem, 5vh, 3.5rem);
    }

    .site-hero-title {
        min-height: 0;
        line-height: 1.06;
    }
}

@media (min-width: 3840px), (min-height: 2160px) {
    :root {
        --site-page-top-gap: clamp(3rem, 3.5vw, 4rem);
        --site-page-bottom-gap: clamp(2.5rem, 3.5vh, 4rem);
    }

    .site-footer > footer {
        padding-top: clamp(2rem, 2.2vh, 3rem) !important;
        padding-bottom: clamp(2rem, 2.2vh, 3rem) !important;
    }
}

.site-dialog-host {
    position: fixed;
    inset: 0;
    z-index: 1080;
    overflow-y: auto;
    overscroll-behavior: contain;
}

html.site-scroll-lock,
body.site-scroll-lock {
    overflow: hidden;
}

.site-dialog-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.site-dialog-layer {
    position: relative;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

@supports (min-height: 100dvh) {
    .site-dialog-layer {
        min-height: 100dvh;
    }
}

.site-dialog-panel {
    position: relative;
    width: min(100%, 26rem);
    margin: auto;
    max-height: min(calc(100vh - 2rem), 40rem);
    overflow: auto;
    border-radius: 1.25rem;
    border: 1px solid var(--site-border);
    background: rgba(19, 21, 26, 0.98);
    box-shadow: var(--site-shadow);
    color: var(--site-text-primary);
}

.site-dialog-body {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.site-dialog-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--site-text-primary);
}

.site-dialog-message {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--site-text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

.site-dialog-input {
    width: 100%;
    margin-top: 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid var(--site-border);
    background: rgba(18, 20, 24, 0.92);
    color: var(--site-text-primary);
    outline: none;
    font-size: 0.95rem;
}

.site-dialog-input:focus {
    border-color: var(--site-border-strong);
    box-shadow: 0 0 0 3px rgba(204, 204, 204, 0.14);
}

.site-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 1rem 1.5rem 1.25rem 1.5rem;
    flex-wrap: wrap;
}

.site-dialog-btn {
    min-width: 5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-dialog-btn--cancel {
    background: transparent;
    border-color: var(--site-border);
    color: var(--site-text-secondary);
}

.site-dialog-btn--cancel:hover {
    border-color: var(--site-border-strong);
    color: var(--site-text-primary);
}

.site-dialog-btn--confirm {
    background: linear-gradient(135deg, var(--site-accent-strong), var(--site-accent));
    color: #0a0b0e;
    border-color: rgba(204, 204, 204, 0.18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.site-dialog-btn--confirm:hover {
    background: linear-gradient(135deg, #ffd166, #ffd166);
}

.site-dialog-btn:focus-visible {
    outline: 2px solid var(--site-accent);
    outline-offset: 2px;
}

body.topup-history-page {
    font-family: "OPPO Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

html.site-pending body.topup-history-page {
    opacity: 0;
}

html.site-ready body.topup-history-page {
    opacity: 1;
}

body.topup-history-page .tab-btn-active {
    background: linear-gradient(135deg, #ffd166 0%, #ffd166 100%);
    color: #0a0b0e;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

body.topup-history-page .tab-btn-idle {
    background: rgba(28, 30, 36, 0.92);
    color: #92a8c6;
    border: 1px solid rgba(204, 204, 204, 0.18);
}

body.topup-history-page .skeleton-line {
    position: relative;
    overflow: hidden;
    background: rgba(28, 30, 36, 0.92);
}

body.topup-history-page .skeleton-line::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    animation: topup-history-shimmer 1.4s infinite;
}

@keyframes topup-history-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.sooc-subcard-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
}

.sooc-subcard-list-scroll {
    overflow-x: auto;
}

.sooc-subcard-list-inner {
    min-width: 900px;
}

.sooc-subcard-info {
    flex: 1 1 auto;
    min-width: 0;
}

.sooc-subcard-actions {
    flex: 0 0 320px;
    width: 320px;
    padding-top: 20px;
}

.sooc-subcard-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.sooc-subcard-btn-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.sooc-subcard-btn-wide {
    grid-column: 1 / -1;
}

.sidebar-layout { display: flex; gap: 1.5rem; max-width: 80rem; margin: 0 auto; padding: 1.5rem 1rem; align-items: flex-start; }
.sidebar-main { flex: 1; min-width: 0; }

/* 全局左侧导航栏：固定在浏览器左侧、置顶全高，所有页面通用 */
.site-shell aside {
    position: fixed !important;
    left: 0;
    top: 0;
    width: 14rem;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    background: var(--site-bg-deep);
    border-right: 1px solid var(--site-border);
    padding: 0 1rem 1.5rem;
    z-index: 40;
    view-transition-name: sidebar;
}
/* 跨文档视图过渡：切换页面时侧边栏保持稳定，主区平滑交替 */
@view-transition {
    navigation: auto;
}
/* 各页面最大内容宽度（wide 默认；medium/narrow 用于隐私/条款等长文本页） */
.site-page--wide   { --site-content-max: calc(var(--site-page-max-wide) + 2rem); }
.site-page--medium { --site-content-max: calc(var(--site-page-max-medium) + 2rem); }
.site-page--narrow { --site-content-max: calc(var(--site-page-max-narrow) + 2rem); }
/*
 * main 是 body(flex column) 的子元素。若用 width:auto + margin-right:auto，
 * cross 轴的 auto margin 会吸收剩余空间而非拉伸元素，导致 main 收缩到内容
 * 宽度并左对齐（内容少的页面会缩成窄条贴左）。改用 width:100% 显式占满，
 * 再以 margin-left:max(14rem, ...) 在侧边栏右侧居中，max-width 限制阅读宽度。
 */
.site-shell main {
    width: 100% !important;
    max-width: min(var(--site-content-max, calc(var(--site-page-max-wide) + 2rem)), calc(100% - 14rem)) !important;
    margin-left: max(14rem, calc((14rem + 100% - var(--site-content-max, calc(var(--site-page-max-wide) + 2rem))) / 2)) !important;
    margin-right: auto !important;
    padding: calc(1.5rem + var(--site-content-header-height)) 1rem 1.5rem !important;
}

/* 内容区顶部公司名标题栏：固定在侧边栏右侧、内容区顶端 */
.site-content-header {
    position: fixed;
    top: 0;
    left: 14rem;
    right: 0;
    height: var(--site-content-header-height);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    background: rgba(19, 21, 26, 0.85);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--site-border);
}
.site-content-header-name { font-size: calc(1.2rem + 2px); font-weight: 700; color: #ffd166; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.site-content-header-name.is-empty { color: var(--site-text-faint); font-weight: 500; }
/* 登录页不是内容页，隐藏公司名标题栏并还原 main 顶部留白 */
body.login-page .site-content-header { display: none; }
body.login-page.site-shell main { padding-top: 1.5rem !important; }
@media (max-width: 767px) {
    .site-content-header { left: 0; padding: 0 1rem; }
}
.site-shell .sidebar-layout,
.site-shell .max-w-7xl.mx-auto {
    display: block !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
}
.site-shell .sidebar-main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

.app-sidebar { display: flex; flex-direction: column; height: 100%; }
.app-sidebar-logo { display: flex; align-items: center; justify-content: center; gap: 0.5rem; height: var(--site-content-header-height); padding: 0; text-decoration: none; }
.app-sidebar-logo-img { width: 2rem; height: 2rem; }
.app-sidebar-logo-text { font-size: 1.25rem; font-weight: 700; color: #ffd166; }
.app-sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.app-sidebar-link { display: block; padding: 0.6rem 0.9rem; border-radius: 0.75rem; color: var(--site-text-secondary); font-size: 0.9rem; text-decoration: none; }
.app-sidebar-link:hover { background: var(--site-surface-soft); color: var(--site-text-primary); }
.app-sidebar-link--active { background: var(--site-accent-soft); color: var(--site-warning-text); }
.app-sidebar-logout { margin-top: 1rem; padding: 0.6rem 0.9rem; border-radius: 0.75rem; background: transparent; border: 1px solid var(--site-border); color: var(--site-text-muted); font-size: 0.9rem; cursor: pointer; }
.app-sidebar-logout:hover { background: var(--site-danger-soft); color: var(--site-danger-text); border-color: var(--site-danger-text); }

/* 侧边栏内嵌的账号/积分区（复用 renderAuthNav，纵向铺满窄列） */
.app-sidebar-auth { padding: 0.25rem 0.25rem 1rem; margin-bottom: 0.75rem; border-bottom: 1px solid var(--site-border); }
.app-sidebar .site-nav-auth-content { flex-direction: column; align-items: stretch; gap: 0.5rem; width: 100%; }
.app-sidebar .site-auth-points-badge { width: 100%; justify-content: space-between; }
.app-sidebar .site-nav-login-btn,
.app-sidebar .site-nav-account-btn { width: 100% !important; max-width: none !important; min-width: 0 !important; }
.app-sidebar .site-nav-login-btn { justify-content: center; }
.app-sidebar .site-nav-account-btn { justify-content: flex-start; }
/* 侧边栏已有直达链接，隐藏账号下拉菜单避免重复 */
.app-sidebar .site-auth-menu-panel { display: none !important; }

/* === 深色主题 tailwind 颜色覆盖（参考插件 web 端配色） === */
body.site-shell { background: var(--site-bg) !important; color: var(--site-text-primary) !important; }
.site-shell .bg-gray-50 { background-color: var(--site-bg-deep) !important; }
.site-shell .bg-gray-100 { background-color: var(--site-bg-deep) !important; }
.site-shell .bg-gray-400 { background-color: var(--site-text-faint) !important; }
.site-shell .bg-white { background-color: var(--site-surface) !important; }
.site-shell .text-gray-900 { color: var(--site-text-primary) !important; }
.site-shell .text-gray-700 { color: var(--site-text-secondary) !important; }
.site-shell .text-gray-600 { color: var(--site-text-muted) !important; }
.site-shell .text-gray-500 { color: var(--site-text-muted) !important; }
.site-shell .text-gray-400 { color: var(--site-text-faint) !important; }
.site-shell .border-gray-100 { border-color: var(--site-border) !important; }
.site-shell .border-gray-200 { border-color: var(--site-border) !important; }
.site-shell .border-emerald-100 { border-color: var(--site-border) !important; }
.site-shell .border-emerald-200 { border-color: var(--site-border) !important; }
.site-shell .border-indigo-100 { border-color: var(--site-border) !important; }
.site-shell .border-indigo-200 { border-color: var(--site-border) !important; }
.site-shell .border-indigo-600 { border-color: var(--site-accent) !important; }
.site-shell .border-red-100 { border-color: var(--site-danger-soft) !important; }
.site-shell .bg-indigo-600 { background-color: var(--site-accent) !important; color: #0a0b0e !important; }
.site-shell .bg-indigo-700 { background-color: var(--site-accent) !important; color: #0a0b0e !important; }
.site-shell .hover\:bg-indigo-700:hover { background-color: var(--site-accent-strong) !important; }
.site-shell .bg-indigo-50 { background-color: var(--site-accent-soft) !important; }
.site-shell .text-indigo-600 { color: var(--site-accent) !important; }
.site-shell .text-indigo-700 { color: var(--site-accent) !important; }
.site-shell .text-indigo-500 { color: var(--site-accent) !important; }
.site-shell .ring-indigo-500 { --tw-ring-color: var(--site-accent) !important; }
.site-shell .bg-emerald-600 { background-color: var(--site-success-text) !important; color: #0a0b0e !important; }
.site-shell .bg-emerald-50 { background-color: var(--site-success-soft) !important; }
.site-shell .text-emerald-700 { color: var(--site-success-text) !important; }
.site-shell .bg-red-50 { background-color: var(--site-danger-soft) !important; }
.site-shell .text-red-500 { color: var(--site-danger-text) !important; }
.site-shell .text-red-600 { color: var(--site-danger-text) !important; }
.site-shell .text-red-700 { color: var(--site-danger-text) !important; }
.site-shell .bg-amber-50 { background-color: var(--site-warning-soft) !important; }
.site-shell .text-amber-700 { color: var(--site-warning-text) !important; }
.site-shell .shadow-sm { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important; }
.site-shell .shadow-xl { box-shadow: var(--site-shadow) !important; }
.site-shell .shadow-2xl { box-shadow: var(--site-shadow) !important; }

/* 费用分布饼图自定义图例:饼图在上,图例在下横向排列,每项色块在上文字在下 */
.chart-distrib-wrap { display: flex; flex-direction: column; gap: 12px; }
#chart-trend { margin-top: 30px; }
.chart-distrib-wrap > #chart-distribution { height: 16rem; width: 100%; min-width: 0; }
.chart-distrib-legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chart-distrib-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 2px; border: none; background: transparent; cursor: pointer; border-radius: 4px; width: 84px; }
.chart-distrib-item:hover { background: rgba(255, 255, 255, 0.08); }
.chart-distrib-item.is-off { opacity: 0.4; }
.chart-distrib-swatch { display: block; width: 16px; height: 16px; border-radius: 3px; }
.chart-distrib-label { font-size: 12px; color: #fff; text-align: center; line-height: 1.2; word-break: break-all; }

/* 个人调用排行:最多显示约10条,超出滚动,表头固定 */
.ranking-scroll { max-height: 22rem; overflow-y: auto; }
.ranking-scroll thead th { position: sticky; top: 0; background: var(--site-surface); z-index: 1; }

/* 数据表格统一样式:固定列宽/统一间距/对齐/hover */
.data-table { width: 100%; font-size: 0.875rem; border-collapse: collapse; table-layout: fixed; }
.data-table th { padding: 0.625rem 1.25rem; text-align: center; color: #9ca3af; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, 0.12); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-table td { padding: 0.625rem 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }
.data-table .col-num { text-align: center; font-variant-numeric: tabular-nums; }
.data-table .col-center { text-align: center; }
.data-table .col-break { white-space: normal; word-break: break-all; overflow-wrap: anywhere; }
.data-table .col-nowrap { white-space: nowrap; }
.data-table .empty-row td { padding: 1.5rem; text-align: center; color: #9ca3af; }

/* 审计日志表格:对齐数据看板 data-table 样式(居中/省略号/统一间距),无行分割线 */
.audit-table { width: 100%; font-size: 0.875rem; border-collapse: collapse; table-layout: fixed; }
.audit-table thead tr { border-bottom: 1px solid var(--site-border); }
.audit-table th { padding: 0.625rem 1.25rem; text-align: center; color: var(--site-text-muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audit-table td { padding: 0.625rem 1.25rem; vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; color: var(--site-text-primary); }
.audit-table tbody tr:hover { background: var(--site-accent-soft); }
.audit-table .empty-row td { padding: 1.5rem; text-align: center; color: var(--site-text-faint); }
.audit-table th:nth-child(1), .audit-table td:nth-child(1) { width: 15%; }
.audit-table th:nth-child(2), .audit-table td:nth-child(2) { width: 14%; }
.audit-table th:nth-child(3), .audit-table td:nth-child(3) { width: 13%; }
.audit-table th:nth-child(4), .audit-table td:nth-child(4) { width: 33%; }
.audit-table th:nth-child(5), .audit-table td:nth-child(5) { width: 17%; }
.audit-table th:nth-child(6), .audit-table td:nth-child(6) { width: 8%; }

/* 列宽均分(table-layout:fixed 不指定 width 时浏览器均分);排名列居中,数据溢出省略号收敛在列内 */
.ranking-table th:nth-child(1), .ranking-table td:nth-child(1) { text-align: center; }

/* 状态颜色:成功绿/失败红/进行中黄 */
.status-ok { color: #10b981; font-weight: 500; }
/* 正常/在线状态标签:绿色胶囊(绕过 emerald 被主题覆盖成黄色的问题) */
.status-normal { background-color: rgba(16, 185, 129, 0.16) !important; color: #10b981 !important; }
.status-fail { color: #ef4444; font-weight: 500; }
.status-pending { color: #f59e0b; font-weight: 500; }

/* 日期范围控件 + 快捷范围按钮 */
.date-range-wrap { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 12px; background: rgba(0, 0, 0, 0.18); }
.date-range-input { background: transparent; border: none; color: #e5e7eb; padding: 4px; font-size: 0.875rem; outline: none; color-scheme: dark; min-width: 7.5rem; }
.date-range-input::-webkit-calendar-picker-indicator { filter: invert(0.8); cursor: pointer; }
.date-range-sep { color: #9ca3af; font-size: 0.8rem; }
.range-btn { padding: 6px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.15); background: transparent; color: #d1d5db; font-size: 0.8rem; cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s; }
.range-btn:hover { background: rgba(255, 255, 255, 0.08); }
.range-btn.is-active { background: var(--site-accent); color: #0a0b0e; border-color: var(--site-accent); }

/* 日期范围选择器(日历面板,连续选开始/结束) */
/* 筛选卡片:提升 z-index,避免日期弹窗被后续卡片的 backdrop-filter stacking context 遮挡 */
.filter-card { position: relative; z-index: 20; }
.filter-bar { position: relative; z-index: 100; }
.date-range-picker { position: relative; }
.range-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 10px; background: rgba(0, 0, 0, 0.18); color: #e5e7eb; font-size: 0.875rem; cursor: pointer; white-space: nowrap; }
.range-trigger:hover { background: rgba(255, 255, 255, 0.08); }
.range-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 1000; background: var(--site-bg-deep); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 12px; padding: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); width: 320px; }
.range-panel[hidden] { display: none; }
.range-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #e5e7eb; font-size: 0.875rem; font-weight: 500; }
.range-nav { background: transparent; border: none; color: #9ca3af; font-size: 1.25rem; cursor: pointer; padding: 0 10px; line-height: 1; }
.range-nav:hover { color: #fff; }
.range-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.range-weekdays span { text-align: center; color: #6b7280; font-size: 0.75rem; padding: 4px 0; }
.range-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.range-day, .range-day-blank { aspect-ratio: 1; border: none; background: transparent; color: #d1d5db; font-size: 0.8rem; cursor: pointer; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.range-day:hover { background: rgba(255, 255, 255, 0.12); }
.range-day.in-range { background: var(--site-accent-soft); border-radius: 0; }
.range-day.is-start { background: var(--site-accent); color: #0a0b0e; border-radius: 6px 0 0 6px; }
.range-day.is-end { background: var(--site-accent); color: #0a0b0e; border-radius: 0 6px 6px 0; }
.range-day.is-start.is-end { border-radius: 6px; }
.range-day-blank { cursor: default; }
.range-panel-footer { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.range-action { padding: 5px 12px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px; background: transparent; color: #d1d5db; font-size: 0.75rem; cursor: pointer; }
.range-action:hover { background: rgba(255, 255, 255, 0.08); }
.range-action-primary { background: var(--site-accent); color: #0a0b0e; border-color: var(--site-accent); }
