/*! nju.atlas - core.css (基础核心样式) */

/* ========== CSS 变量 ========== */
:root {
    --primary: #5B2E8C;
    --primary-dark: #4A1D6E;
    --primary-light: #8B5CF6;
    --accent: #EC4899;
    --accent-light: #F472B6;
    --bg-primary: #ffffff;
    --bg-secondary: #F8F7FC;
    --bg-tertiary: #F3F0F8;
    --text-primary: #1E1B2E;
    --text-secondary: #6B6478;
    --text-tertiary: #A69DB4;
    --gray-50: #FAF9FB;
    --gray-100: #F4F2F7;
    --gray-200: #E8E4EF;
    --gray-300: #D5CFE0;
    --gray-400: #A69DB4;
    --gray-500: #7B7390;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --bottom-tab-height: 64px;
    --topbar-height: 52px;
    --shadow-xs: 0 1px 2px 0 rgba(91,46,140,0.04);
    --shadow-sm: 0 1px 3px 0 rgba(91,46,140,0.06), 0 1px 2px 0 rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(91,46,140,0.08), 0 2px 4px -1px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(91,46,140,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(91,46,140,0.12), 0 10px 10px -5px rgba(0,0,0,0.04);
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    --transition-fast: all 0.15s cubic-bezier(0.4,0,0.2,1);
    --atlas-purple: #6b21a5;
    --atlas-purple-deep: #2a0f42;
    --atlas-purple-soft: #a855f7;
    --atlas-ink: #171221;
    --atlas-muted: #686174;
    --atlas-bg: #f7f5fb;
    --atlas-card: rgba(255,255,255,0.9);
    --atlas-line: rgba(107,33,165,0.12);
    --atlas-shadow: 0 18px 48px rgba(74,29,110,0.11), 0 3px 12px rgba(20,16,31,0.06);
    --atlas-shadow-strong: 0 24px 70px rgba(74,29,110,0.17), 0 8px 20px rgba(20,16,31,0.08);
    --atlas-topbar: 68px;
    --atlas-bottombar: 66px;
    --z-tabbar: 2800;
    --z-topbar: 3000;
    --z-modal: 3100;
    --z-toast: 3200;
    --gradient-primary: linear-gradient(135deg, var(--atlas-purple), var(--atlas-purple-soft));
    /* 方案 E：杂志感按钮 */
    --btn-radius: 10px;
    --btn-primary-bg: #1a1721;
    --btn-primary-fg: #ffffff;
    --btn-border: #c8c2d0;
}

/* ========== 暗色模式 CSS 变量覆盖 ========== */
:root[data-theme="dark"] {
    --primary: #9D6FE8;
    --primary-dark: #7C3AED;
    --primary-light: #C4A7F3;
    --accent: #F472B6;
    --accent-light: #F9A8D4;
    --bg-primary: #1A1728;
    --bg-secondary: #14101E;
    --bg-tertiary: #1E1B2E;
    --text-primary: #EDE8F5;
    --text-secondary: #B0A8C4;
    --text-tertiary: #7B7390;
    --gray-50: #1E1B2E;
    --gray-100: #201D30;
    --gray-200: #2A2640;
    --gray-300: #3D3852;
    --gray-400: #6B6478;
    --gray-500: #8B84A0;
    --shadow-xs: 0 1px 2px 0 rgba(0,0,0,0.3);
    --shadow-sm: 0 1px 3px 0 rgba(0,0,0,0.4), 0 1px 2px 0 rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -1px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -2px rgba(0,0,0,0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5), 0 10px 10px -5px rgba(0,0,0,0.3);
    --atlas-purple: #9D6FE8;
    --atlas-purple-deep: #1A0F30;
    --atlas-purple-soft: #C4A7F3;
    --atlas-ink: #E8E4F0;
    --atlas-muted: #9F96B0;
    --atlas-bg: #14101E;
    --atlas-card: rgba(26, 23, 40, 0.92);
    --atlas-line: rgba(157, 111, 232, 0.15);
    --atlas-shadow: 0 18px 48px rgba(0,0,0,0.4), 0 3px 12px rgba(0,0,0,0.3);
    --atlas-shadow-strong: 0 24px 70px rgba(0,0,0,0.5), 0 8px 20px rgba(0,0,0,0.35);
    --gradient-primary: linear-gradient(135deg, #7C3AED, #C084FC);
    --btn-primary-bg: #e8e4f0;
    --btn-primary-fg: #1a1721;
    --btn-border: #3d3852;
}

/* ========== 暗色模式额外样式覆盖 ========== */
:root[data-theme="dark"] body { background: var(--bg-secondary); color: var(--text-primary); }
:root[data-theme="dark"] h1, :root[data-theme="dark"] h2, :root[data-theme="dark"] h3, :root[data-theme="dark"] h4, :root[data-theme="dark"] h5, :root[data-theme="dark"] h6 { color: var(--text-primary); }
:root[data-theme="dark"] a { color: var(--primary); }
:root[data-theme="dark"] a:hover { color: var(--accent); }
:root[data-theme="dark"] .modal { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); }
:root[data-theme="dark"] .modal-card { background: var(--bg-primary); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
:root[data-theme="dark"] .modal-card h2 { color: var(--primary); }
:root[data-theme="dark"] .modal-card input, :root[data-theme="dark"] .modal-card textarea, :root[data-theme="dark"] .modal-card select { background: var(--bg-secondary); border-color: var(--gray-300); color: var(--text-primary); }
:root[data-theme="dark"] .modal-close-btn { background: var(--bg-tertiary); color: var(--text-secondary); }
:root[data-theme="dark"] .secondary-btn { background: transparent; color: var(--text-primary); border-color: var(--btn-border); }
:root[data-theme="dark"] .secondary-btn:hover { border-color: var(--btn-primary-bg); color: var(--btn-primary-bg); background: transparent; }
:root[data-theme="dark"] .small-btn { background: transparent; color: var(--text-primary); border-color: var(--btn-border); }
:root[data-theme="dark"] .small-btn:hover { border-color: var(--btn-primary-bg); color: var(--btn-primary-bg); }
:root[data-theme="dark"] .close-btn { background: var(--bg-tertiary); color: var(--text-secondary); }
:root[data-theme="dark"] .switch-mode { color: var(--text-secondary); }
:root[data-theme="dark"] .switch-mode a { color: var(--primary); }
:root[data-theme="dark"] .location-suggestions { background: var(--bg-primary); border-color: var(--gray-300); }
:root[data-theme="dark"] .location-suggestions li { color: var(--text-primary); border-color: var(--gray-200); }
:root[data-theme="dark"] .location-suggestions li .suggestion-address { color: var(--text-tertiary); }
:root[data-theme="dark"] .time-mode-btn { border-color: var(--gray-300); background: var(--bg-primary); color: var(--text-primary); }
:root[data-theme="dark"] .time-mode-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
:root[data-theme="dark"] .time-mode-btn.active {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.38);
}
:root[data-theme="dark"] .time-mode-btn.active::after {
    box-shadow: 0 0 0 3px rgba(232, 228, 240, 0.24);
}
:root[data-theme="dark"] .map-preview-card { background: var(--bg-primary); border-color: var(--gray-200); }
:root[data-theme="dark"] .map-preview-header { border-color: var(--gray-100); }
:root[data-theme="dark"] .map-preview-title { color: var(--text-primary); }
:root[data-theme="dark"] .map-expand-btn { background: var(--bg-tertiary); border-color: var(--gray-200); color: var(--primary); }
:root[data-theme="dark"] .map-legend { border-color: var(--gray-100); background: var(--bg-secondary); }
:root[data-theme="dark"] .legend-item { color: var(--text-secondary); }
:root[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--gray-400); }
:root[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }

/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; width: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Roboto, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* ========== 滚动条 ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ========== 排版 ========== */
h1, h2, h3, h4, h5, h6 { color: var(--text-primary); font-weight: 700; line-height: 1.3; }
a { color: var(--primary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--accent); }
input, textarea, select { font-family: inherit; }
input::placeholder, textarea::placeholder { color: var(--text-tertiary); }
textarea { resize: vertical; min-height: 100px; }

/* ========== 按钮通用（方案 E：杂志感） ========== */
button { transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; cursor: pointer; }
.primary-btn, .secondary-btn, .small-btn {
    border: none;
    padding: 10px 20px;
    border-radius: var(--btn-radius);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: none;
}
.primary-btn {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-fg);
}
.primary-btn:hover { filter: brightness(1.08); }
.primary-btn:active { filter: brightness(0.95); }
.secondary-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--btn-border);
}
.secondary-btn:hover { border-color: var(--btn-primary-bg); color: var(--btn-primary-bg); }
.small-btn {
    background: transparent;
    color: var(--text-primary);
    padding: 5px 14px;
    font-size: 0.8rem;
    border: 1.5px solid var(--btn-border);
}
.small-btn:hover { border-color: var(--btn-primary-bg); color: var(--btn-primary-bg); }

/* ========== 模态框 ========== */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal);
}
.modal-card {
    background: var(--bg-primary);
    border-radius: 20px;
    width: 90%;
    max-width: 440px;
    padding: 24px 20px;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.34,1.56,0.64,1);
    max-height: 85vh;
    overflow-y: auto;
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close-btn:hover { background: var(--danger); color: white; }
.modal-card h2 {
    margin-bottom: 16px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}
.modal-card input, .modal-card textarea, .modal-card select {
    width: 100%;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--gray-300);
    background: var(--bg-secondary);
    transition: var(--transition-fast);
    font-size: 0.88rem;
    color: var(--text-primary);
}
.modal-card input:focus, .modal-card textarea:focus, .modal-card select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(91,46,140,0.08);
    background: var(--bg-primary);
}
.modal-actions { display: flex; gap: 12px; margin: 16px 0 0; }

/* ========== 用户名片弹窗（查看他人资料） ========== */
.user-card-modal {
    max-width: 400px;
    width: min(92vw, 400px);
    padding: 0;
    overflow: hidden;
    position: relative;
}
.user-card-modal .user-card-close-btn {
    top: 10px;
    right: 10px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
:root[data-theme="dark"] .user-card-modal .user-card-close-btn {
    background: rgba(30, 30, 36, 0.88);
}
.user-card-cover {
    width: 100%;
    aspect-ratio: 3 / 1;
    height: auto;
    min-height: 88px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}
.user-card-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
@media (max-width: 768px) {
    .user-card-cover {
        aspect-ratio: 2 / 1;
        min-height: 80px;
    }
}
.user-card-body {
    position: relative;
    padding: 0 20px 22px;
    text-align: center;
}
.user-card-body.is-loading {
    visibility: hidden;
}
.user-card-avatar {
    width: 76px;
    height: 76px;
    margin: -38px auto 10px;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    background: var(--bg-secondary);
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.user-card-name {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}
.user-card-campus {
    margin: 0 0 8px;
    font-size: 0.82rem;
    color: var(--text-tertiary);
}
.user-card-campus:empty { display: none; }
.user-card-bio {
    margin: 0 0 10px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.user-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 14px;
    min-height: 0;
}
.user-card-tags:empty { display: none; }
.user-card-tag {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--btn-border);
}
.user-card-stats {
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 12px 0 16px;
    border-top: 1px solid var(--btn-border);
    border-bottom: 1px solid var(--btn-border);
    margin-bottom: 16px;
}
.user-card-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 48px;
}
.user-card-stat-num {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}
.user-card-stat-label {
    font-size: 0.72rem;
    color: var(--text-tertiary);
}
.user-card-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.user-card-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 120px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--btn-border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.user-card-action-btn.primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-fg);
    border-color: var(--btn-primary-bg);
}
.user-card-action-btn:disabled {
    opacity: 0.55;
    cursor: default;
}
.user-card-loading {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    background: var(--bg-primary);
    z-index: 4;
}
.user-card-modal.is-loading .user-card-loading {
    display: flex;
}
.switch-mode {
    text-align: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.switch-mode a { color: var(--primary); cursor: pointer; font-weight: 600; }

.auth-email-hint {
    margin: -4px 0 12px;
    font-size: 0.78rem;
    color: var(--text-tertiary);
    line-height: 1.4;
}
.code-row { display: flex; gap: 8px; align-items: center; }
.code-row input { flex: 1; min-width: 0; }
.code-row button { white-space: nowrap; }
.close-btn {
    background: var(--bg-tertiary);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.close-btn:hover { background: var(--danger); color: white; }

/* ========== Toast 提示（多条自上而下瀑布排列） ========== */
.toast-container {
    position: fixed;
    top: calc(var(--topbar-height) + 12px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    width: min(92vw, 420px);
    max-height: calc(100vh - var(--topbar-height) - 24px - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
}
.toast {
    position: relative;
    width: 100%;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-fg);
    padding: 10px 24px;
    border-radius: var(--btn-radius);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    text-align: center;
    line-height: 1.4;
    word-break: break-word;
    flex-shrink: 0;
    animation: toastIn 0.22s ease;
}
.toast-leaving {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .toast-container {
        width: calc(100vw - 28px);
    }
    .toast {
        padding: 10px 18px;
        font-size: 0.82rem;
    }
}

/* ========== 通用 inline 加载转圈（GPU transform，全站复用） ========== */
.atlas-inline-spinner {
    display: inline-block;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border: 2px solid color-mix(in srgb, var(--text-tertiary) 35%, transparent);
    border-top-color: var(--btn-primary-bg);
    border-radius: 50%;
    box-sizing: border-box;
    contain: strict;
    animation: atlasInlineSpin 0.72s linear infinite;
}
@keyframes atlasInlineSpin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .atlas-inline-spinner {
        animation-duration: 1.4s;
    }
}

/* ========== 工具类 ========== */
.flex-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.page-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.page-header-flex h2 { font-size: 1.1rem; font-weight: 700; }

/* ========== 地点搜索自动补全 ========== */
.location-search-wrapper { position: relative; flex: 1; min-width: 0; }
.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: var(--bg-primary);
    border: 1px solid var(--gray-300);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    list-style: none;
    padding: 0;
    margin: 0;
}
.location-suggestions li {
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    border-bottom: 1px solid var(--gray-200);
    transition: background 0.15s;
}
.location-suggestions li:last-child { border-bottom: none; border-radius: 0 0 12px 12px; }
.location-suggestions li:hover, .location-suggestions li.active {
    background: rgba(91,46,140,0.06);
    color: var(--primary);
}
.location-suggestions li .suggestion-name { display: block; font-weight: 500; }
.location-suggestions li .suggestion-address {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.location-suggestions li.suggestion-empty, .location-suggestions li.suggestion-loading {
    color: var(--text-tertiary);
    cursor: default;
    pointer-events: none;
    text-align: center;
    padding: 14px;
}

/* ========== 时间选择器 ========== */
.time-mode-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}
.time-mode-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}
.time-mode-btn {
    flex: 1;
    padding: 8px 6px;
    border: 1.5px solid var(--btn-border);
    border-radius: var(--btn-radius);
    background: transparent;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-primary);
    white-space: nowrap;
    position: relative;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.time-mode-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.22);
    opacity: 0;
    transition: box-shadow 0.16s ease, opacity 0.16s ease;
    pointer-events: none;
}
.time-mode-btn.active {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-fg);
    border-color: var(--btn-primary-bg);
    font-weight: 700;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.18);
}
.time-mode-btn.active::after {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}
.time-mode-btn:hover:not(.active) {
    border-color: var(--btn-primary-bg);
    color: var(--btn-primary-bg);
    transform: translateY(-1px);
}
.time-mode-btn:active {
    transform: translateY(0);
}
.scheduled-time-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.scheduled-time-line { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.scheduled-time-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.scheduled-time-hint { font-size: 0.72rem; color: var(--text-tertiary); font-weight: 700; padding-left: 2px; }
.scheduled-time-col input {
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
}
.scheduled-time-input-wrap {
    position: relative;
    display: block;
    width: 100%;
}
.scheduled-time-input-wrap input {
    width: 100%;
    margin-bottom: 0;
    padding-right: 2.5rem;
    cursor: pointer;
}
/* 隐藏原生图标，改由右侧按钮统一触发 showPicker */
.scheduled-time-input-wrap input::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
    appearance: none;
}
.scheduled-time-picker-btn {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    background: center / 1rem no-repeat;
    cursor: pointer;
    opacity: 0.88;
}
.scheduled-time-picker-btn:hover { opacity: 1; }
.scheduled-time-input-wrap--date .scheduled-time-picker-btn {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B2E8C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}
.scheduled-time-input-wrap--time .scheduled-time-picker-btn {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B2E8C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15.5 14.5'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .scheduled-time-input-wrap input[type="date"],
:root[data-theme="dark"] .scheduled-time-input-wrap input[type="time"] {
    color-scheme: dark;
}
:root[data-theme="dark"] .scheduled-time-input-wrap--date .scheduled-time-picker-btn {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .scheduled-time-input-wrap--time .scheduled-time-picker-btn {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15.5 14.5'/%3E%3C/svg%3E");
}
.partner-field-label {
    display: block;
    margin: 4px 2px 6px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-secondary);
}
.partner-form-row-labeled { gap: 10px; }
.partner-field-inline {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.partner-field-inline .partner-field-label {
    margin: 0 2px 6px;
}
.partner-form-row { display: flex; gap: 8px; }
.partner-form-row input { flex: 1; min-width: 0; }

/* ========== 线框图标 ========== */
/*
 * FA 免费版 Regular(far) 只有 ~160 个图标，多数业务图标仅有 Solid(fas)。
 * 统一用 fas + 描边模拟镂空线框效果。
 */
i.fas {
    -webkit-text-stroke: 1.05px currentColor;
    -webkit-text-fill-color: transparent;
    paint-order: stroke fill;
}
.filter-chip i,
.guide-chip i,
.partner-card-stats i,
.post-detail-stats i,
.post-detail-meta i,
.partner-card-type i,
.ai-candidate-meta i,
.guide-meta i,
.guide-rating i,
.profile-email-line i,
.profile-campus i,
.profile-status i,
.primary-btn.small i,
.detail-action-btn i,
.join-btn i {
    margin-right: 0.35em;
}
.filter-chip i,
.guide-chip i {
    font-size: 0.88em;
    opacity: 0.88;
}
.icon-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: icon-spin 0.8s linear infinite;
    vertical-align: -0.125em;
}
@keyframes icon-spin {
    to { transform: rotate(360deg); }
}

/* ========== 卡片通用按压效果 ========== */
.filter-chip:active, .join-btn:active, .primary-btn:active, .secondary-btn:active,
.small-btn:active, .detail-action-btn:active, .fab-create-group:active {
    filter: brightness(0.92);
}

/* ========== 响应式基础 ========== */
@media (max-width: 768px) {
    .map-preview-card,
    .map-preview-body,
    .map-container,
    #previewMap,
    #fullMap {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }
}
.map-container, #previewMap, #fullMap { width: 100%!important; height: 100%!important; display: block; }
