@charset "UTF-8";
/*!
 * 臻影库 —— base.css
 * 设计令牌 / 重置 / 排版 / 表单 / 按钮
 */

/* ==========================================================================
   1. 设计令牌
   ========================================================================== */

:root {
    /* 浅色（纸感） */
    --cs-paper: #f6f3ee;
    --cs-surface: #fffdf8;
    --cs-surface-2: #f1ece3;
    --cs-ink: #2c2416;
    --cs-ink-2: #3a3a3c;
    --cs-muted: #86868b;
    --cs-seal: #b5442d;
    --cs-seal-ink: #ffffff;
    --cs-gold: #c4a574;
    --cs-line: rgba(0, 0, 0, 0.07);
    --cs-line-strong: rgba(0, 0, 0, 0.12);
    --cs-chip: #efe9de;
    --cs-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --cs-shadow-lift: 0 10px 30px rgba(0, 0, 0, 0.12);
    --cs-overlay: rgba(24, 20, 16, 0.42);
    --cs-tag: rgba(0, 0, 0, 0.62);
    --cs-skeleton: #e8e4dc;

    /* 品牌色（不随主题变化） */
    --cs-brand-blue: #007aff;
    --cs-brand-blue-d: #0062cc;

    /* 尺寸与节奏 */
    --cs-page: 1200px;
    --cs-header-w: 1230px;
    --cs-radius: 12px;
    --cs-radius-s: 8px;
    --cs-radius-l: 16px;
    /* 海报专用圆角（比通用圆角更收敛，仅用于海报图与海报卡） */
    --cs-poster-radius: 8px;
    --cs-poster-radius-s: 6px;
    --cs-pill: 999px;
    --cs-gap: 16px;
    --cs-gap-lg: 24px;
    --cs-header-h: 119px;

    color-scheme: light;
}

/* ==========================================================================
   站点宽度（标准 / 宽屏 / 全宽）
   由「外观 → ZhenYing配置 → 基础 → 站点宽度」控制，输出在 html[data-cs-wrap]
   ========================================================================== */

html[data-cs-wrap="wide"] {
    --cs-page: 1600px;
    --cs-header-w: 1640px;
}

html[data-cs-wrap="full"] {
    --cs-page: 100%;
    --cs-header-w: 100%;
}

/* 全宽时左右留白随屏幕增大，避免内容贴边 */
html[data-cs-wrap="full"] .cs-wrap,
html[data-cs-wrap="full"] .cs-header-inner {
    padding-left: clamp(16px, 1.6vw, 44px);
    padding-right: clamp(16px, 1.6vw, 44px);
}

/* 手动深色 */
html[data-cs-theme="dark"] {
    --cs-paper: #161412;
    --cs-surface: #221f1b;
    --cs-surface-2: #2a2620;
    --cs-ink: #ece6dc;
    --cs-ink-2: #d8d0c4;
    --cs-muted: #9a9286;
    --cs-seal: #d46a52;
    --cs-seal-ink: #1a1512;
    --cs-gold: #c4a574;
    --cs-line: rgba(255, 255, 255, 0.08);
    --cs-line-strong: rgba(255, 255, 255, 0.16);
    --cs-chip: #332e28;
    --cs-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    --cs-shadow-lift: 0 10px 30px rgba(0, 0, 0, 0.55);
    --cs-overlay: rgba(8, 7, 6, 0.72);
    --cs-tag: rgba(0, 0, 0, 0.72);
    --cs-skeleton: #2a2620;

    color-scheme: dark;
}

/* 跟随系统 */
@media (prefers-color-scheme: dark) {
    html[data-cs-theme="auto"] {
        --cs-paper: #161412;
        --cs-surface: #221f1b;
        --cs-surface-2: #2a2620;
        --cs-ink: #ece6dc;
        --cs-ink-2: #d8d0c4;
        --cs-muted: #9a9286;
        --cs-seal: #d46a52;
        --cs-seal-ink: #1a1512;
        --cs-gold: #c4a574;
        --cs-line: rgba(255, 255, 255, 0.08);
        --cs-line-strong: rgba(255, 255, 255, 0.16);
        --cs-chip: #332e28;
        --cs-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
        --cs-shadow-lift: 0 10px 30px rgba(0, 0, 0, 0.55);
        --cs-overlay: rgba(8, 7, 6, 0.72);
        --cs-tag: rgba(0, 0, 0, 0.72);
        --cs-skeleton: #2a2620;

        color-scheme: dark;
    }
}

/* ==========================================================================
   2. 重置
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol, fieldset, legend, textarea, input, button {
    margin: 0;
    padding: 0;
}

ul, ol {
    list-style: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: var(--cs-paper);
    color: var(--cs-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--cs-ink);
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

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

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    cursor: pointer;
}

table {
    border-collapse: collapse;
    width: 100%;
}

hr {
    border: 0;
    border-top: 1px solid var(--cs-line);
    margin: 24px 0;
}

::selection {
    background: var(--cs-seal);
    color: var(--cs-seal-ink);
}

/* 滚动条 */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--cs-line-strong) transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-thumb {
    background: var(--cs-line-strong);
    border-radius: var(--cs-pill);
}

*::-webkit-scrollbar-track {
    background: transparent;
}

/* 无障碍 */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.cskip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    padding: 10px 18px;
    background: var(--cs-seal);
    color: var(--cs-seal-ink);
    border-radius: 0 0 var(--cs-radius-s) 0;
}

.cskip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 2px solid var(--cs-seal);
    outline-offset: 2px;
}

/* ==========================================================================
   3. 排版
   ========================================================================== */

.cs-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cs-seal);
}

.cs-page-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.cs-page-desc {
    margin-top: 8px;
    font-size: 14px;
    color: var(--cs-muted);
    line-height: 1.75;
}

.cs-page-desc a {
    color: var(--cs-seal);
    font-weight: 600;
}

.cs-section-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.cs-muted {
    color: var(--cs-muted);
}

.cs-hidden {
    display: none !important;
}

/* ==========================================================================
   4. 表单
   ========================================================================== */

.cs-field {
    margin-bottom: 16px;
}

.cs-field > label,
.cs-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cs-ink);
}

.cs-label .cs-req {
    color: var(--cs-seal);
    margin-left: 2px;
}

.cs-input,
.cs-select,
.cs-textarea,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--cs-ink);
    background: var(--cs-surface);
    border: 1px solid var(--cs-line-strong);
    border-radius: var(--cs-radius-s);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.cs-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--cs-muted);
    opacity: 0.75;
}

.cs-input:focus,
.cs-select:focus,
.cs-textarea:focus,
input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    border-color: var(--cs-seal);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cs-seal) 18%, transparent);
}

textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.7;
}

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    accent-color: var(--cs-seal);
}

.cs-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--cs-muted);
    line-height: 1.6;
}

.cs-msg {
    min-height: 18px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--cs-seal);
}

.cs-msg.is-ok {
    color: #2e9e5b;
}

/* 验证码 / 输入按钮组合 */
.cs-input-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.cs-input-row .cs-input {
    flex: 1;
    min-width: 0;
}

.cs-input-row .cs-btn-ghost {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* 开关 */
.cs-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--cs-muted);
    cursor: pointer;
    user-select: none;
}

.cs-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cs-switch i {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: var(--cs-pill);
    background: var(--cs-line-strong);
    transition: background-color 0.2s ease;
}

.cs-switch i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.cs-switch input:checked + i {
    background: var(--cs-seal);
}

.cs-switch input:checked + i::after {
    transform: translateX(18px);
}

/* 选项按钮组（求片页的网盘需求等） */
.cs-choice-set {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cs-choice {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    font-size: 14px;
    color: var(--cs-ink);
    background: var(--cs-surface);
    border: 1px solid var(--cs-line-strong);
    border-radius: var(--cs-radius-s);
    cursor: pointer;
    user-select: none;
    transition: all 0.18s ease;
}

.cs-choice:hover {
    border-color: var(--cs-seal);
}

.cs-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cs-choice.is-on,
.cs-choice:has(input:checked) {
    background: var(--cs-seal);
    border-color: var(--cs-seal);
    color: var(--cs-seal-ink);
}

.cs-choice img {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   5. 按钮
   ========================================================================== */

.cs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: var(--cs-radius-s);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.cs-btn.is-block {
    width: 100%;
}

.cs-btn.is-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.cs-btn.is-lg {
    padding: 15px 30px;
    font-size: 16px;
}

/* 主按钮：金橙渐变（与参考站“兑换 / 主操作”一致） */
.cs-btn-primary {
    background: linear-gradient(135deg, #e0b174, #c98f4e);
    color: #241c12;
    box-shadow: 0 4px 14px rgba(201, 143, 78, 0.28);
}

.cs-btn-primary:hover {
    filter: brightness(1.06);
    color: #241c12;
    transform: translateY(-1px);
}

/* 实心朱红 */
.cs-btn-seal {
    background: var(--cs-seal);
    color: var(--cs-seal-ink);
}

.cs-btn-seal:hover {
    filter: brightness(1.08);
    color: var(--cs-seal-ink);
}

/* 蓝色主行动（登录 / 搜索 / 提交） */
.cs-btn-blue {
    background: var(--cs-brand-blue);
    color: #fff;
}

.cs-btn-blue:hover {
    background: var(--cs-brand-blue-d);
    color: #fff;
}

.cs-btn-ghost {
    background: var(--cs-surface-2);
    color: var(--cs-ink);
    border-color: var(--cs-line-strong);
}

.cs-btn-ghost:hover {
    background: var(--cs-chip);
    color: var(--cs-ink);
}

.cs-btn-outline {
    background: transparent;
    color: var(--cs-ink);
    border-color: var(--cs-line-strong);
}

.cs-btn-outline:hover {
    border-color: var(--cs-seal);
    color: var(--cs-seal);
}

.cs-btn[disabled],
.cs-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    filter: none !important;
}

.cs-btn.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

.cs-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--cs-surface-2);
    color: var(--cs-ink);
    transition: all 0.18s ease;
}

.cs-icon-btn:hover {
    background: var(--cs-chip);
    color: var(--cs-ink);
}

/* 标签 / 徽标 */
.cs-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    border-radius: var(--cs-pill);
    background: var(--cs-chip);
    color: var(--cs-ink-2);
}

.cs-tag.is-seal {
    background: var(--cs-seal);
    color: var(--cs-seal-ink);
}

.cs-tag.is-gold {
    background: color-mix(in srgb, var(--cs-gold) 24%, transparent);
    color: var(--cs-gold);
}

.cs-tag.is-hot {
    background: linear-gradient(135deg, #ff7a45, #f0512a);
    color: #fff;
}

.cs-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

/* 骨架屏 */
.cs-skeleton {
    background: var(--cs-skeleton);
    border-radius: var(--cs-radius);
    animation: cs-pulse 1.4s ease-in-out infinite;
}

@keyframes cs-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
