/* ═══════════════════════════════════════════
   万创众筹 — 全局样式
   设计原则：移动端优先、极简、瀑布流
   ═══════════════════════════════════════════ */

/* ── CSS 变量 ─────────────────────── */
:root {
    /* 主色调 */
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --primary-light: #fdecea;

    /* 中性色 */
    --bg: #f5f5f5;
    --surface: #ffffff;
    --border: #e8e8e8;
    --text: #1a1a1a;
    --text-secondary: #666;
    --text-muted: #999;

    /* 语义色 */
    --success: #27ae60;
    --warning: #f39c12;
    --gold: #e6a817;

    /* 尺寸 */
    --nav-height: 48px;
    --category-height: 44px;
    --tab-bar-height: 56px;
    --card-radius: 12px;
    --btn-radius: 8px;
    --max-width: 1200px;

    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-overlay: 0 -4px 20px rgba(0,0,0,0.15);

    /* 动画 */
    --ease-out: cubic-bezier(0.25, 0.8, 0.25, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    padding-top: var(--nav-height);
    padding-bottom: var(--tab-bar-height);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
input { font: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(231, 76, 60, 0.28);
    outline-offset: 2px;
}

/* ── 通用组件 ─────────────────────── */
.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: var(--text);
}
.icon-btn:active { background: rgba(0,0,0,0.06); }
.icon-btn svg { width: 22px; height: 22px; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--btn-radius);
    padding: 12px 24px;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}
.btn-primary:active {
    background: var(--primary-dark);
    transform: scale(0.98);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar.large { height: 8px; border-radius: 4px; }

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #f39c12);
    border-radius: inherit;
    transition: width 0.6s var(--ease-out);
    min-width: 0;
}
.progress-fill.over { background: linear-gradient(90deg, var(--success), #2ecc71); }

.section-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    padding-left: 2px;
}

/* ── 顶部导航栏 ───────────────────── */
#top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

.nav-left .logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-icon { width: 28px; height: 28px; }
.logo-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
}

.nav-right { display: flex; gap: 4px; align-items: center; }
.avatar-btn svg { width: 24px; height: 24px; }

/* ── 分类检索栏 ───────────────────── */
#category-bar {
    position: sticky;
    top: var(--nav-height);
    z-index: 99;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    height: var(--category-height);
    overflow: hidden;
}

.category-list {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 12px;
    height: 100%;
    align-items: center;
    scrollbar-width: none;
}
.category-list::-webkit-scrollbar { display: none; }

.category-item {
    flex-shrink: 0;
    padding: 6px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: 20px;
    transition: all 0.25s;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    font-weight: 500;
}
.category-item.active {
    color: var(--primary);
    font-weight: 700;
    background: var(--primary-light);
}
.category-item:active { transform: scale(0.95); }

/* ── 宗旨宣言 ─────────────────────── */
.home-stage {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 8px 0;
}

.home-stage__intro {
    display: flex;
    justify-content: center;
    padding-top: 18px;
    padding-bottom: 8px;
}

.mission-banner {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 24px 26px;
    overflow: hidden;
    border-radius: 26px;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 214, 184, 0.9), transparent 26%),
        radial-gradient(circle at 12% 78%, rgba(255, 242, 206, 0.66), transparent 24%),
        linear-gradient(145deg, #fff8f4 0%, #fffefa 62%, #ffffff 100%);
    border: 1px solid rgba(231, 76, 60, 0.12);
    box-shadow: 0 22px 42px rgba(145, 60, 35, 0.09);
}

.mission-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.24), transparent 48%),
        repeating-linear-gradient(135deg, rgba(231, 76, 60, 0.035) 0 12px, transparent 12px 24px);
    pointer-events: none;
}

.mission-banner > * {
    position: relative;
    z-index: 1;
}

.mission-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(231, 76, 60, 0.09);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mission-banner__title {
    margin-top: 14px;
    font-size: 30px;
    line-height: 1.14;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}

.mission-banner__lead {
    margin-top: 12px;
    font-size: 17px;
    line-height: 1.6;
    font-weight: 700;
    color: #5d241b;
}

.mission-banner__body {
    margin-top: 14px;
    max-width: 640px;
    font-size: 14px;
    line-height: 1.82;
    color: var(--text-secondary);
}

.mission-banner--home {
    text-align: center;
}

.mission-banner--home .mission-banner__eyebrow,
.mission-banner--auth .mission-banner__eyebrow {
    margin-left: auto;
    margin-right: auto;
}

.mission-banner--home .mission-banner__lead,
.mission-banner--home .mission-banner__body,
.mission-banner--auth .mission-banner__body {
    margin-left: auto;
    margin-right: auto;
}

.mission-banner--auth {
    max-width: 440px;
    text-align: center;
    margin-bottom: 20px;
    padding: 22px 22px 24px;
    border-radius: 24px;
    box-shadow: 0 16px 30px rgba(145, 60, 35, 0.07);
}

/* ── 瀑布流网格 ──────────────────── */
#project-feed {
    max-width: none;
    margin: 0;
    padding: 6px 0 10px;
    columns: 2;
    column-gap: 8px;
}

/* ── 项目卡片 ─────────────────────── */
.project-card {
    break-inside: avoid;
    margin-bottom: 8px;
    background: var(--surface);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.project-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
}

.card-cover {
    position: relative;
    background: #e0e0e0;
    overflow: hidden;
}
.card-cover img {
    width: 100%;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: #ddd;
}

.card-category-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.card-body {
    padding: 10px 12px 12px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-progress { margin-bottom: 8px; }

.progress-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 11px;
}
.progress-percent {
    color: var(--primary);
    font-weight: 700;
}
.progress-amount {
    color: var(--text-muted);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 8px;
}

.card-days.urgent { color: var(--primary); font-weight: 600; }
.card-tag-ended {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    background: #eee;
    color: var(--text-muted);
}

/* ── 加载提示 ─────────────────────── */
#load-more {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════
   项目详情浮层
   ═══════════════════════════════════ */
.detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.detail-overlay.open {
    transform: translateX(0);
}

.detail-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
}
.detail-header .icon-btn {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}

.detail-header-actions { display: flex; gap: 8px; }

/* 滚动容器 */
.detail-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 80px;
}
.detail-bottom-spacer { height: 70px; }

/* 封面 */
.detail-cover {
    width: 100%;
    aspect-ratio: 16/9;
    background: #ddd;
    overflow: hidden;
}
.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 基本信息 */
.detail-basic {
    background: var(--surface);
    padding: 16px;
    margin-bottom: 8px;
}
.detail-basic .detail-category {
    display: inline-block;
    font-size: 11px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-weight: 600;
}
.detail-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}
.detail-creator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}
.creator-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ddd;
}
.creator-verified {
    font-size: 10px;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 4px;
    padding: 0 4px;
}

/* 融资进度 */
.detail-funding {
    background: var(--surface);
    padding: 0 16px 16px;
    margin-bottom: 8px;
}
.funding-progress { margin-bottom: 14px; }

.funding-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}
.funding-stat {
    text-align: center;
    flex: 1;
}
.funding-stat .stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}
.funding-stat .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}
.funding-deadline {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 10px;
    background: #fafafa;
    border-radius: var(--btn-radius);
}
.funding-deadline strong { color: var(--primary); }

/* 支持档位 */
.detail-tiers {
    background: var(--surface);
    padding: 16px;
    margin-bottom: 8px;
}

.tier-card {
    border: 2px solid var(--border);
    border-radius: var(--card-radius);
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.tier-card:active { transform: scale(0.99); }
.tier-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.tier-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.tier-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}
.tier-tag {
    font-size: 10px;
    background: var(--primary);
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
}

.tier-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.tier-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.tier-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.tier-custom {
    border-style: dashed;
    text-align: center;
    opacity: 0.8;
}

/* Tab 切换 */
.detail-tabs {
    background: var(--surface);
    margin-bottom: 8px;
}
.tab-nav {
    display: flex;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--surface);
}
.tab-btn {
    flex: 1;
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    transition: all 0.2s;
    position: relative;
    font-weight: 500;
}
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s;
}
.tab-btn.active {
    color: var(--primary);
    font-weight: 700;
}
.tab-btn.active::after { width: 24px; }

.tab-count {
    font-size: 10px;
    background: #eee;
    color: var(--text-muted);
    padding: 1px 5px;
    border-radius: 8px;
    margin-left: 4px;
}

.tab-content { padding: 16px; }

/* 项目故事 */
.story-content { font-size: 14px; line-height: 1.7; color: var(--text-secondary); }
.story-content h3 { font-size: 16px; color: var(--text); margin: 16px 0 8px; }
.story-content h3:first-child { margin-top: 0; }
.story-content h4 { font-size: 14px; color: var(--text); margin: 14px 0 6px; }
.story-content p { margin-bottom: 10px; }
.story-content ul { padding-left: 18px; list-style: disc; margin-bottom: 10px; }
.story-content li { margin-bottom: 4px; }

/* 更新动态 */
.updates-timeline {
    border-left: 2px solid var(--border);
    padding-left: 16px;
}
.update-item {
    margin-bottom: 20px;
    position: relative;
}
.update-item::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}
.update-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.update-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}
.update-body {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}
.update-images img {
    border-radius: 8px;
    max-width: 100%;
}

/* 留言 */
.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ddd;
    flex-shrink: 0;
}
.comment-body { flex: 1; min-width: 0; }
.comment-author {
    font-size: 13px;
    font-weight: 600;
    display: inline;
}
.comment-time {
    font-size: 11px;
    color: var(--text-muted);
    display: inline;
    margin-left: 8px;
}
.comment-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.5;
}
.comment-reply {
    margin-top: 8px;
    padding: 8px 10px;
    background: #fafafa;
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}
.reply-badge {
    font-size: 10px;
    color: var(--primary);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

/* 详情底部固定栏 */
.detail-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-overlay);
}

/* ═══════════════════════════════════
   投资确认弹窗
   ═══════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-sheet {
    background: var(--surface);
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s var(--ease-spring);
}
.modal-overlay.open .modal-sheet {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 16px; }
.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.modal-close svg { width: 20px; height: 20px; }

.modal-body { padding: 16px; }

.modal-tier-summary {
    padding: 12px;
    background: var(--primary-light);
    border-radius: var(--btn-radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.modal-field { margin-bottom: 16px; }
.modal-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.input-with-prefix {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--btn-radius);
    overflow: hidden;
    transition: border-color 0.2s;
}
.input-with-prefix:focus-within { border-color: var(--primary); }
.input-with-prefix .prefix {
    padding: 0 12px;
    font-size: 16px;
    color: var(--text-muted);
    background: #fafafa;
    align-self: stretch;
    display: flex;
    align-items: center;
}
.input-with-prefix input {
    flex: 1;
    border: none;
    padding: 10px 12px;
    font-size: 15px;
    outline: none;
    min-width: 0;
}

.payment-options {
    display: flex;
    gap: 12px;
}
.payment-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--btn-radius);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    justify-content: center;
}
.payment-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}
.payment-option svg { width: 28px; height: 28px; border-radius: 50%; }

.modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 600;
}
.total-price {
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
}

.modal-agreement {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}
.modal-agreement a { color: var(--primary); text-decoration: underline; }

/* ═══════════════════════════════════
   底部导航栏
   ═══════════════════════════════════ */
#bottom-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--tab-bar-height);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    display: flex;
    padding-bottom: env(safe-area-inset-bottom);
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-muted);
    font-size: 10px;
    transition: color 0.2s;
}
.tab-item svg { width: 22px; height: 22px; }
.tab-item.active { color: var(--primary); }

/* ═══════════════════════════════════
   响应式布局
   ═══════════════════════════════════ */

/* 小屏手机: 单列 */
@media (max-width: 360px) {
    #project-feed { columns: 1; padding: 8px 4px; }
    .project-card { margin-bottom: 6px; }
    .card-body { padding: 8px 10px 10px; }
}

/* 平板: 3列 */
@media (min-width: 600px) {
    #top-nav { padding: 0 20px; }
    #category-bar { padding: 0 8px; }
    #project-feed { columns: 3; column-gap: 10px; padding: 12px 10px; }
    .project-card { margin-bottom: 10px; }
}

/* 桌面: 4列 */
@media (min-width: 960px) {
    #project-feed { columns: 4; column-gap: 12px; padding: 16px 12px; }
    .project-card { margin-bottom: 12px; }

    /* 桌面端 hover 效果 */
    .project-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }
    .tier-card:hover {
        border-color: var(--primary);
    }
}

/* 大屏桌面 */
@media (min-width: 1200px) {
    #project-feed { columns: 5; }
}

/* 横屏手机 / 小窗 */
@media (max-height: 500px) and (orientation: landscape) {
    #project-feed { columns: 3; }
    .detail-overlay .detail-header { padding: 4px 8px; }
}

/* ═══════════════════════════════════════════
   新增组件样式 — FAB · 表单 · 登录 · 审核 · 个人中心 · 股权
   ═══════════════════════════════════════════ */

/* ── FAB 上架按钮 ─────────────────── */
.fab-btn {
    position: fixed;
    bottom: 76px;
    right: 16px;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--primary);
    color: #fff;
    padding: 10px 16px;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.4);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.fab-btn svg { width: 18px; height: 18px; }
.fab-btn:active { transform: scale(0.95); }

/* ── 导航栏扩展 ──────────────────── */
.back-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 0;
}
.back-link svg { width: 20px; height: 20px; }

.nav-center { flex: 1; text-align: center; }
.nav-title { font-size: 16px; font-weight: 700; }

.admin-badge {
    font-size: 10px;
    background: var(--primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* ── 表单系统 ────────────────────── */

.form-section {
    background: var(--surface);
    padding: 16px;
    margin-bottom: 8px;
    border-radius: var(--card-radius);
}
.section-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    margin-top: -8px;
}

.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.form-label.required::after { content: ' *'; color: var(--primary); }

.form-input, .form-textarea, .form-select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--btn-radius);
    padding: 10px 12px;
    font-size: 15px;
    outline: none;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.2s;
    font-family: inherit;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--primary);
}

.form-textarea { resize: vertical; min-height: 80px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.form-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-row { display: flex; gap: 12px; }
.form-col { flex: 1; }
.form-col-sm { flex: 0 0 100px; }
.form-col-wide { flex: 2; }

.form-agreement {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
}
.form-agreement a { color: var(--primary); text-decoration: underline; }

.form-bottom-spacer { height: 80px; }

/* ── 动态列表项 ──────────────────── */
.list-item-card {
    position: relative;
    border: 2px solid var(--border);
    border-radius: var(--card-radius);
    padding: 14px;
    margin-bottom: 10px;
    background: #fafafa;
}

.item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: #eee;
}
.item-remove:active { background: #ddd; }
.item-remove svg { width: 14px; height: 14px; }

.btn-add-item {
    display: block;
    width: 100%;
    padding: 10px;
    border: 2px dashed var(--border);
    border-radius: var(--btn-radius);
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    margin-top: 8px;
    transition: all 0.2s;
}
.btn-add-item:active { border-color: var(--primary); color: var(--primary); }

/* ── 封面上传 ────────────────────── */
.cover-upload { display: flex; align-items: center; gap: 8px; }
.cover-upload .form-input { flex: 1; }
.upload-divider { font-size: 12px; color: var(--text-muted); }

.btn-upload {
    padding: 10px 16px;
    border: 2px solid var(--primary);
    border-radius: var(--btn-radius);
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.btn-upload:active { background: var(--primary-light); }

.cover-preview {
    margin-top: 8px;
    position: relative;
    display: inline-block;
}
.cover-preview img {
    width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.cover-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
}

/* ── 提交底部栏 ──────────────────── */
.submit-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-overlay);
    z-index: 100;
}

.submit-main { padding-bottom: 80px; }

/* ── 登录页 ──────────────────────── */
.auth-body {
    background:
        radial-gradient(circle at top center, rgba(255, 240, 232, 0.95), transparent 40%),
        linear-gradient(180deg, #faf8f7 0%, #f3f2f1 100%);
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 0;
}

.auth-container {
    max-width: 520px;
    margin: 0 auto;
    padding: 34px 20px 28px;
}

.auth-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-logo { text-align: center; margin-bottom: 20px; }
.auth-logo svg {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    filter: drop-shadow(0 10px 18px rgba(231, 76, 60, 0.12));
}
.auth-logo h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.auth-logo p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.auth-card {
    background: var(--surface);
    width: 100%;
    border-radius: 24px;
    padding: 24px 22px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 18px 36px rgba(23, 18, 16, 0.07);
}

.auth-tabs {
    display: flex;
    margin-bottom: 24px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 3px;
}
.auth-tab {
    flex: 1;
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    color: var(--text-muted);
    transition: all 0.2s;
}
.auth-tab.active {
    background: #fff;
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.flex-grow { flex: 1; }

.input-row {
    display: flex;
    gap: 8px;
}
.btn-code {
    padding: 10px 14px;
    border: 1px solid var(--primary);
    border-radius: var(--btn-radius);
    color: var(--primary);
    font-size: 13px;
    white-space: nowrap;
    font-weight: 600;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-code:disabled { opacity: 0.5; border-color: var(--border); color: var(--text-muted); }

.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 10px; }

.auth-back {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
}
.auth-back a { color: var(--text-muted); }

/* ── 通用按钮变体 ────────────────── */
.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--primary);
    border-radius: var(--btn-radius);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-outline:active { background: var(--primary-light); }

.btn-success {
    background: var(--success);
    color: #fff;
    border-radius: var(--btn-radius);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-success:active { opacity: 0.85; }

.btn-danger {
    background: var(--primary);
    color: #fff;
    border-radius: var(--btn-radius);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-danger:active { opacity: 0.85; }

.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 6px; }
.btn-text {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    padding: 4px 0;
}

/* ── 状态标签 ────────────────────── */
.status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}
.status-pending { background: #fef3cd; color: #b8860b; }
.status-approved { background: #d4edda; color: #155724; }
.status-rejected { background: #fce4e4; color: #a71d2a; }

/* ── 管理员审核页 ────────────────── */

.admin-body { padding-bottom: 0; }
.admin-main { padding: 8px 0 40px; }

.admin-tabs {
    display: flex;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--nav-height);
    z-index: 99;
}
.admin-tab {
    flex: 1;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: var(--text-secondary);
    position: relative;
    transition: all 0.2s;
}
.admin-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s;
}
.admin-tab.active { color: var(--primary); }
.admin-tab.active::after { width: 32px; }

.tab-badge {
    font-size: 10px;
    background: #eee;
    color: var(--text-muted);
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 4px;
}

.admin-card {
    background: var(--surface);
    margin: 8px;
    padding: 16px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
}
.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.admin-card-title { font-size: 16px; font-weight: 600; flex: 1; margin-right: 8px; }

.admin-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.admin-card-meta span { white-space: nowrap; }

.admin-review-note {
    font-size: 13px;
    color: var(--primary);
    padding: 8px 10px;
    background: #fff5f5;
    border-radius: 6px;
    margin-bottom: 8px;
}

.admin-expand { margin: 8px 0; }
.admin-expand-content {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.admin-detail-section { margin-bottom: 12px; }
.admin-detail-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.admin-mini-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 3px 0;
}

.admin-cover-thumb {
    max-width: 200px;
    max-height: 120px;
    border-radius: 6px;
    object-fit: cover;
}

.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.admin-actions .btn-success,
.admin-actions .btn-danger { flex: 1; text-align: center; }

.admin-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }

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

/* ── 个人中心 ────────────────────── */
.profile-body { padding-bottom: 0; }
.profile-main { padding: 0 12px 40px; }

.profile-card {
    background: var(--surface);
    border-radius: var(--card-radius);
    padding: 20px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.profile-phone { font-size: 13px; color: var(--text-muted); }

.btn-logout {
    font-size: 12px;
    color: var(--primary);
    padding: 6px 12px;
    border: 1px solid var(--primary);
    border-radius: var(--btn-radius);
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-logout:active { background: var(--primary-light); }

.profile-admin-entry { margin-top: 12px; }
.profile-admin-entry .btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.admin-pending-badge {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.profile-section { margin-top: 20px; }

.profile-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}
.profile-empty p { margin-bottom: 4px; }

.profile-project-card {
    background: var(--surface);
    border-radius: var(--card-radius);
    padding: 14px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}
.profile-project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}
.profile-project-header h4 { font-size: 15px; font-weight: 600; flex: 1; margin-right: 8px; }
.profile-project-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}
.profile-project-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
}
.profile-reject-reason {
    font-size: 12px;
    color: var(--primary);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
}

.profile-actions { margin-top: 20px; padding-bottom: 20px; }

/* ── 股权计算弹窗样式 ────────────── */
.modal-equity {
    background: #fafafa;
    border-radius: var(--card-radius);
    padding: 14px;
    margin-bottom: 16px;
}

.equity-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.equity-table { margin-bottom: 0; }

.equity-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 5px 0;
}
.equity-row.highlight {
    font-weight: 700;
    color: var(--text);
    font-size: 14px;
}

.equity-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

.equity-hint {
    font-size: 11px;
    margin-top: 8px;
}

/* ── 通用页面增强 ────────────────── */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: var(--btn-radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-outline:active {
    background: #f8f8f8;
    border-color: #d8d8d8;
}

.notice-card,
.page-card,
.message-item,
.legal-section,
.not-found-wrap {
    background: var(--surface);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.messages-body,
.legal-body {
    padding-top: var(--nav-height);
}

.not-found-body {
    padding-top: 0;
}

.messages-main,
.legal-main,
.not-found-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 16px 12px 28px;
}

.page-card,
.notice-card,
.legal-section {
    padding: 18px;
    margin-bottom: 14px;
}

.notice-card {
    background: linear-gradient(135deg, #fff6f2 0%, #ffffff 100%);
    border-color: #f2ddd7;
}

.page-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.page-lead {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.summary-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #f2e1dd;
    border-radius: 12px;
    padding: 12px;
}

.summary-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.summary-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.page-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.page-actions > * {
    flex: 1;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-item {
    padding: 16px;
}

.message-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.message-tag {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.message-time,
.legal-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.message-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.message-text,
.legal-section p,
.legal-section li {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
}

.message-text strong {
    color: var(--text);
}

.message-empty {
    padding: 20px 16px;
    text-align: center;
    color: var(--text-secondary);
    background: var(--surface);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
}

.legal-section h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text);
}

.legal-section h3 {
    font-size: 15px;
    margin: 18px 0 8px;
    color: var(--text);
}

.legal-list {
    padding-left: 18px;
    list-style: disc;
}

.legal-list li + li {
    margin-top: 8px;
}

.inline-link {
    color: var(--primary);
    font-weight: 600;
}

.site-footer {
    max-width: var(--max-width);
    margin: 28px auto 0;
    padding: 22px 16px calc(22px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, #fff8f5 0%, #fff 100%);
    border-top: 1px solid #f0ddd8;
    color: var(--text-secondary);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
}

.site-footer__brand {
    min-width: 0;
}

.site-footer__eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

.site-footer__title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.site-footer__copy {
    font-size: 13px;
    line-height: 1.75;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.site-footer__card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #f1e3df;
    border-radius: 14px;
    padding: 14px;
}

.site-footer__label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.site-footer__value,
.site-footer__value a {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

.site-footer__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f0e2de;
    font-size: 12px;
    color: var(--text-muted);
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer__links a {
    color: var(--text-secondary);
}

.site-footer__note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.auth-body .site-footer {
    max-width: 520px;
    margin: 18px auto 0;
    padding: 18px 0 0;
    background: transparent;
    border-top: none;
}

.auth-body .site-footer__inner,
.auth-body .site-footer__grid {
    grid-template-columns: 1fr;
}

.auth-body .site-footer__brand {
    padding: 0 4px;
}

.auth-body .site-footer__card {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 20px rgba(145, 60, 35, 0.04);
}

.auth-body .site-footer__meta {
    margin-top: 14px;
    padding: 14px 4px 0;
}

.not-found-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.not-found-wrap {
    width: 100%;
    max-width: 520px;
    padding: 28px 24px;
    text-align: center;
    background: linear-gradient(180deg, #fff7f3 0%, #ffffff 100%);
}

.not-found-code {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.not-found-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.not-found-copy {
    color: var(--text-secondary);
    line-height: 1.7;
}

.not-found-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ── 工具类 ──────────────────────── */
.submit-body, .admin-body, .profile-body {
    padding-top: var(--nav-height);
}
.submit-body #top-nav, .admin-body #top-nav, .profile-body #top-nav {
    position: fixed;
}

/* ── 桌面优化 ────────────────────── */
@media (min-width: 600px) {
    .fab-btn { bottom: 88px; right: 24px; }
    .auth-container { padding-top: 60px; }
    .form-section { border-radius: 12px; padding: 20px; }
    .mission-banner {
        padding: 28px 30px 30px;
    }
}

@media (max-width: 599px) {
    .home-stage {
        padding-left: 8px;
        padding-right: 8px;
    }

    .home-stage__intro {
        padding-top: 14px;
        padding-bottom: 8px;
    }

    .mission-banner {
        max-width: 100%;
        padding: 18px 18px 20px;
        border-radius: 22px;
    }

    .mission-banner__title {
        font-size: 24px;
    }

    .mission-banner__lead {
        font-size: 15px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .page-actions,
    .not-found-actions {
        flex-direction: column;
    }

    .site-footer {
        padding: 18px 12px calc(18px + env(safe-area-inset-bottom, 0px));
    }

    .site-footer__inner,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-container {
        padding: 28px 16px 24px;
    }

    .auth-card {
        padding: 20px 18px;
        border-radius: 22px;
    }

    .auth-body .site-footer {
        padding-top: 14px;
    }
}
