/* ============ 寻物智联 公共样式 ============ */

/* ---- 全局背景：点阵网格 ---- */
body {
    background-color: #f6f8fc !important;
    background-image: radial-gradient(rgba(59,130,246,0.05) 1px, transparent 1px), radial-gradient(rgba(16,185,129,0.05) 1px, transparent 1px);
    background-size: 36px 36px, 36px 36px;
    background-position: 0 0, 18px 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
}
h1, h2, h3, h4 { letter-spacing: -0.02em; }

/* ---- 玻璃拟态 ---- */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.glass-dark {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---- 渐变文字 ---- */
.text-gradient {
    background: linear-gradient(135deg, #3B82F6, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.title-gradient {
    background: linear-gradient(120deg, #3B82F6, #10B981 55%, #F59E0B);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---- 卡片 ---- */
.card-hover { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}
.card-art {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 20px;
    box-shadow: 0 8px 32px -12px rgba(30,41,59,0.14);
    transition: all .35s cubic-bezier(.4,0,.2,1);
}
.card-art:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -16px rgba(59,130,246,0.28);
    border-color: rgba(59,130,246,0.35);
}
.card-img-mask::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.18), transparent 45%);
    pointer-events: none;
}
.badge-glass {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ---- 漂浮光斑 ---- */
@keyframes blobFloat {
    0%   { transform: translate(0,0) scale(1); }
    33%  { transform: translate(40px,-30px) scale(1.12); }
    66%  { transform: translate(-25px,25px) scale(0.94); }
    100% { transform: translate(0,0) scale(1); }
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .22;
    animation: blobFloat 14s ease-in-out infinite;
    pointer-events: none;
}

/* ---- 按钮扫光 ---- */
.btn-glow { position: relative; overflow: hidden; }
.btn-glow::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
}
.btn-glow:hover::after { left: 130%; }

/* ---- 弹窗 ---- */
.modal-art {
    background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 22px;
    box-shadow: 0 32px 64px -20px rgba(15,23,42,0.35);
}

/* ---- 动画（环境不支持时保证初始可见） ---- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.5s ease-in-out; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.slide-up { animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes riseIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rise-in { animation: none; }

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    80%, 100% { transform: scale(1.3); opacity: 0; }
}
.pulse-ring { animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite; }

/* ---- 统计数字 ---- */
.stat-number {
    background: linear-gradient(135deg, #3B82F6, #10B981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---- 区块装饰线 ---- */
.section-rule {
    height: 4px;
    width: 56px;
    border-radius: 4px;
    background: linear-gradient(90deg, #3B82F6, #10B981);
    margin: 14px auto 0;
}

/* ---- 上传区 ---- */
.upload-zone {
    border: 2px dashed #CBD5E1;
    transition: all 0.3s ease;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: #3B82F6;
    background-color: rgba(59, 130, 246, 0.05);
}

/* ---- 头像 ---- */
.avatar-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.avatar-upload:hover .avatar-overlay { opacity: 1; }
.avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
}

/* ---- 输入框自动填充修复 ---- */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset;
    -webkit-text-fill-color: #1e293b;
}
.auth-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.1) inset;
    -webkit-text-fill-color: white;
}

/* ---- 无图占位 ---- */
.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #cbd5e1;
}

/* ============================================================
   拼贴版画主题（Collage Print Theme）— 艺术学院定制
   ============================================================ */
:root {
    --paper:        #F4EDDF;   /* 米色纸底 */
    --paper-card:   #FFFDF7;   /* 白色卡纸 */
    --paper-soft:   #EFE6D2;   /* 分区纸色 */
    --ink:          #20304F;   /* 墨蓝：描边/深色纸块 */
    --ink-soft:     #3A4A70;
    --c-blue:       #2E63B8;
    --c-orange:     #F28A2E;
    --c-yellow:     #F6C445;
    --c-green:      #3F9D6E;
    --c-red:        #E15B4F;
}

/* ---------- 1. 全局纸张底 ---------- */
.theme-collage {
    background-color: var(--paper) !important;
    background-image:
        radial-gradient(rgba(32,48,79,.05) 1px, transparent 1.4px),
        radial-gradient(rgba(242,138,46,.05) 1.2px, transparent 1.6px) !important;
    background-size: 26px 26px, 26px 26px !important;
    background-position: 0 0, 13px 13px !important;
}
.theme-collage .bg-slate-50 { background-color: rgba(255,255,255,0) !important; }
.theme-collage section.bg-white { background-color: rgba(255,253,247,.55) !important; }

/* ---------- 2. 导航栏：剪贴纸板 ---------- */
.theme-collage nav.glass {
    background: rgba(255,252,244,.95) !important;
    border-bottom: 3px solid var(--ink) !important;
    backdrop-filter: blur(6px);
}
.theme-collage .nav-link {
    position: relative;
    padding: 4px 2px;
}
.theme-collage .nav-link.active {
    color: var(--ink) !important;
    font-weight: 700;
}
.theme-collage .nav-link.active::after {
    content: '';
    position: absolute;
    left: -4px; right: -4px; bottom: -6px;
    height: 9px;
    background: var(--c-yellow);
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    z-index: -1;
    transform: rotate(-1deg);
}
.theme-collage #mobileMenu {
    background: var(--paper-card) !important;
    border-top: 2px solid var(--ink) !important;
}

/* ---------- 3. 拼贴横幅（页头模板） ---------- */
.collage-banner {
    position: relative;
    background: var(--ink) !important;
    border-bottom: none !important;
    overflow: hidden;
}
.collage-banner > * { position: relative; z-index: 2; }
/* 色块层 */
.collage-banner .cb-shapes {
    position: absolute !important;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.collage-banner .cb-shapes .shape {
    position: absolute;
    border: 2px solid rgba(255,255,255,.18);
    opacity: .92;
}
.cb-s1 { width: 340px; height: 340px; background: var(--c-blue);   top: -140px; right: -70px;  transform: rotate(18deg); }
.cb-s2 { width: 220px; height: 220px; background: var(--c-orange); bottom: -110px; left: -60px; transform: rotate(-14deg); }
.cb-s3 { width: 150px; height: 150px; background: var(--c-green);  top: 18%; left: 8%;  transform: rotate(10deg); opacity: .55 !important; }
.cb-s4 { width:  90px; height:  90px; background: var(--c-yellow); bottom: 22%; right: 16%; transform: rotate(-10deg); }
/* 波点叠层 */
.collage-banner .cb-dots {
    position: absolute !important;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.16) 1.6px, transparent 1.6px);
    background-size: 24px 24px;
    z-index: 1;
    pointer-events: none;
}
/* 撕纸底边 */
.tear-edge {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='22' viewBox='0 0 120 22' preserveAspectRatio='none'%3E%3Cpath d='M0 13 L10 4 L20 14 L30 3 L40 13 L50 6 L60 15 L70 3 L80 14 L90 6 L100 15 L110 4 L120 12 L120 22 L0 22 Z' fill='%23F4EDDF'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 120px 22px;
    z-index: 3;
    pointer-events: none;
}

/* ---------- 4. 横幅文字：胶带标签 / 色块高亮 ---------- */
.cb-tape {
    display: inline-block;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    background: repeating-linear-gradient(45deg, var(--c-yellow) 0 12px, #EAB233 12px 24px);
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    transform: rotate(-2deg);
    box-shadow: 3px 3px 0 rgba(0,0,0,.35);
    margin-bottom: 18px;
}
.cb-title { color: #fff; }
.cb-title mark, .mark-yellow {
    background: var(--c-yellow);
    color: var(--ink) !important;
    padding: 0 .18em 0 .22em;
    border: 2px solid var(--ink);
    border-radius: 8px;
    display: inline-block;
    transform: rotate(-1.5deg);
    -webkit-text-fill-color: var(--ink);
}

/* ---------- 5. 卡纸卡片（覆盖玻璃拟态） ---------- */
.theme-collage .card-art {
    background: var(--paper-card);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 2px solid var(--ink);
    border-radius: 14px !important;
    box-shadow: 6px 6px 0 rgba(32,48,79,.9);
    position: relative;
}
.theme-collage .card-art:hover {
    transform: translate(-2px, -3px);
    box-shadow: 9px 9px 0 rgba(32,48,79,.9);
    border-color: var(--ink);
}
/* 卡片顶部小胶带 */
.tape {
    position: absolute;
    width: 96px; height: 26px;
    top: -11px; left: 26px;
    background: repeating-linear-gradient(45deg, rgba(246,196,69,.9) 0 10px, rgba(242,138,46,.85) 10px 20px);
    border: 1px solid rgba(32,48,79,.55);
    transform: rotate(-3deg);
    box-shadow: 1px 2px 3px rgba(0,0,0,.2);
    z-index: 5;
}
/* 徽章：拼贴小标签 */
.theme-collage .badge-glass {
    border: 1.5px solid var(--ink);
    border-radius: 6px !important;
    box-shadow: 2px 2px 0 rgba(0,0,0,.25);
    font-weight: 600;
}

/* ---------- 6. 按钮：硬阴影印刷感 ---------- */
.theme-collage .btn-glow {
    border: 2px solid var(--ink);
    border-radius: 12px !important;
    box-shadow: 4px 4px 0 var(--ink);
}
.theme-collage .btn-glow:hover {
    transform: translate(2px, 2px) !important;
    box-shadow: 1px 1px 0 var(--ink);
}
.theme-collage .btn-glow::after { display: none; }

/* ---------- 7. 区块标题：多色块拼贴短线 ---------- */
.theme-collage .section-rule {
    width: 84px;
    height: 10px;
    border-radius: 4px;
    background:
        linear-gradient(90deg, var(--c-blue) 0 28%, var(--c-yellow) 28% 52%, var(--c-green) 52% 76%, var(--c-orange) 76% 100%);
    border: 1.5px solid var(--ink);
    margin: 10px auto 0;
}

/* ---------- 8. 弹窗 / 输入框 / 上传区 ---------- */
.theme-collage .modal-art {
    background: var(--paper-card);
    border: 2px solid var(--ink);
    border-radius: 16px !important;
    box-shadow: 10px 10px 0 rgba(32,48,79,.9);
}
.theme-collage .upload-zone {
    background: var(--paper-card);
    border: 2px dashed var(--ink);
    border-radius: 14px;
}
.theme-collage .upload-zone:hover, .theme-collage .upload-zone.dragover {
    border-color: var(--c-blue);
    background: rgba(46,99,184,.05);
}
.theme-collage input, .theme-collage select, .theme-collage textarea {
    border-radius: 10px !important;
}
.theme-collage .card-art input, .theme-collage .card-art select {
    border: 1.5px solid var(--ink) !important;
    background: #fff !important;
}
.theme-collage .img-placeholder { background: var(--paper-soft); color: #B7A98E; }

/* ---------- 9. 拼贴装饰画（模板化布局） ---------- */
.collage-frame {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}
.collage-frame img {
    display: block;
    width: 100%; height: auto;
    border: 4px solid var(--paper-card);
    border-radius: 10px;
    box-shadow: 7px 7px 0 rgba(0,0,0,.35);
}
.collage-frame.tilt-l img { transform: rotate(-3deg); }
.collage-frame.tilt-r img { transform: rotate(3deg); }

/* ---------- 10. 统计数字 ---------- */
.theme-collage .stat-number {
    background: var(--c-yellow);
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: var(--ink);
    padding: 2px 10px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    display: inline-block;
    transform: rotate(-1.5deg);
}

/* ---------- 11. 统一拼贴页脚 ---------- */
.collage-footer {
    background: var(--ink);
    color: #C7D0E2;
    border-top: 3px solid var(--ink);
}
.footer-bands { display: flex; height: 12px; }
.footer-bands span { flex: 1; }
.footer-bands .b1 { background: var(--c-blue); }
.footer-bands .b2 { background: var(--c-yellow); }
.footer-bands .b3 { background: var(--c-green); }
.footer-bands .b4 { background: var(--c-orange); }
.footer-bands .b5 { background: var(--c-red); }
.footer-bands .b6 { background: var(--c-blue); }
.collage-footer .footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 34px 1.5rem 26px;
}
.collage-footer a { color: #C7D0E2; }
.collage-footer a:hover { color: #fff; }

/* ---------- 12. 首页 hero 专属 ---------- */
.hero-search {
    border: 2px solid var(--ink) !important;
    border-radius: 16px !important;
    box-shadow: 8px 8px 0 rgba(0,0,0,.35);
}

/* ---------- 13. 深色表单卡片（登录页） ---------- */
.theme-collage .paper-dark-card {
    background: rgba(255,255,255,.08);
    border: 2px solid rgba(255,255,255,.35);
    border-radius: 20px;
    box-shadow: 8px 8px 0 rgba(0,0,0,.35);
    backdrop-filter: blur(10px);
}

/* ---------- 14. 发布/表单白色卡片内的标签 ---------- */
.theme-collage .feature-tile {
    border: 2px solid var(--ink);
    border-radius: 12px;
}
/* 页脚顶部 6 色拼贴带（自动生成，无需 HTML） */
.collage-footer::before {
    content: '';
    display: block;
    height: 12px;
    background: linear-gradient(90deg,
        var(--c-blue)   0 16.66%,
        var(--c-yellow) 16.66% 33.33%,
        var(--c-green)  33.33% 50%,
        var(--c-orange) 50% 66.66%,
        var(--c-red)    66.66% 83.33%,
        var(--c-blue)   83.33% 100%);
}
/* ==================== 校园地图组件 ==================== */
.campus-map-wrap { background:#EDF2EC; }
.campus-map-svg { display:block; width:100%; height:auto; }
.campus-zone rect { transition: filter .15s ease, stroke .15s ease; }
.campus-zone:hover rect { filter: brightness(0.96); stroke:#3B82F6; }
.campus-zone text { pointer-events:none; user-select:none; }

/* ===== 热力密度色阶图例（网页端公开页 / 管理端共用） ===== */
.heat-legend { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.heat-legend-bar {
    display:inline-block; width:96px; height:10px; border-radius:6px; margin-right:2px;
    border:1px solid rgba(32,48,79,.25);
    background:linear-gradient(90deg, #0E9F8E 0%, #EAB308 38%, #EA580C 70%, #E11D48 100%);
}
