/* ============================================
   5525物料社区 · 五月天主题样式 v2
   设计灵感：演唱会星空 / 蓝色荧光海 / 温柔呐喊
   ============================================ */

/* CSS 变量 —— 五月天蓝 */
:root {
    --mayday-blue: #224C98;
    --mayday-blue-light: #3A70C2;
    --mayday-blue-dark: #15356B;
    --mayday-blue-bg: rgba(34, 76, 152, 0.08);
    --star-white: #E8ECF1;
    --stage-gold: #C9A84C;
    --stage-gold-light: #E8D48B;
    --neon-cyan: #00D4FF;

    --success: #2ECC71;
    --warning: #F39C12;
    --danger: #E74C3C;
    --info: #3498DB;

    --text: #DDE4EF;
    --text-light: #8A97AE;
    --text-muted: #5A6780;

    --bg-deep: #0A0E17;
    --bg-surface: #111827;
    --bg-card: rgba(20, 28, 48, 0.85);
    --bg-card-hover: rgba(28, 38, 62, 0.92);
    --bg-glass: rgba(15, 23, 42, 0.7);
    --bg-input: rgba(30, 41, 65, 0.8);

    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-focus: rgba(34, 76, 152, 0.5);

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-blue: 0 0 30px rgba(34, 76, 152, 0.15);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 星空动态背景 */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1.5px 1.5px at 40% 10%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1.5px 1.5px at 70% 20%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 85% 55%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 15% 70%, rgba(255,255,255,0.35), transparent),
        radial-gradient(1.5px 1.5px at 50% 75%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 65% 80%, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 80% 70%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1.5px 1.5px at 35% 85%, rgba(255,255,255,0.35), transparent),
        radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 5% 50%, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 45% 60%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 75% 40%, rgba(255,255,255,0.35), transparent),
        radial-gradient(2px 2px at 20% 25%, rgba(200, 220, 255, 0.5), transparent),
        radial-gradient(2px 2px at 60% 55%, rgba(200, 220, 255, 0.4), transparent),
        radial-gradient(2px 2px at 88% 12%, rgba(200, 220, 255, 0.5), transparent),
        radial-gradient(600px 600px at 20% 10%, rgba(34, 76, 152, 0.04), transparent),
        radial-gradient(600px 600px at 80% 50%, rgba(34, 76, 152, 0.05), transparent),
        radial-gradient(800px 800px at 50% 80%, rgba(34, 76, 152, 0.03), transparent);
}

#app-wrapper {
    position: relative;
    z-index: 1;
}

a {
    color: var(--mayday-blue-light);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--neon-cyan); }

img { max-width: 100%; height: auto; display: block; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* 选中文本 */
::selection {
    background: rgba(34, 76, 152, 0.5);
    color: #fff;
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   导航栏 —— 透明玻璃
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.navbar .logo .logo-icon {
    font-size: 28px;
}
.navbar .logo span {
    background: linear-gradient(135deg, var(--mayday-blue-light), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    padding: 8px 18px;
    border-radius: 20px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-links a.active {
    color: #fff;
    background: rgba(34, 76, 152, 0.2);
    box-shadow: 0 0 20px rgba(34, 76, 152, 0.1);
}

.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-badge { position: relative; }
.nav-badge a { font-size: 20px; }
.nav-badge .badge {
    position: absolute;
    top: -6px; right: -8px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: pointer;
}
.nav-user .avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.15);
}
.nav-user > span {
    font-size: 14px; font-weight: 500; color: var(--text);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 180px;
    padding: 8px;
    display: none;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}
.user-dropdown.show { display: block; animation: fadeInDown 0.2s ease; }
.user-dropdown a {
    display: block;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 14px;
    transition: var(--transition);
}
.user-dropdown a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

/* ============================================
   公告条
   ============================================ */
.notice-bar {
    background: linear-gradient(90deg, var(--mayday-blue-dark), var(--mayday-blue), var(--mayday-blue-light));
    color: #fff;
    padding: 10px 24px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ============================================
   按钮系统
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--mayday-blue), var(--mayday-blue-light));
    color: #fff;
    box-shadow: 0 4px 15px rgba(34, 76, 152, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(34, 76, 152, 0.6);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1.5px solid var(--border-light);
}
.btn-outline:hover {
    border-color: var(--mayday-blue-light);
    color: #fff;
    background: rgba(34, 76, 152, 0.1);
}

.btn-ghost {
    background: transparent;
    color: var(--text-light);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 20px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 28px; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #111; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 18px; }

.btn-primary:disabled, .btn:disabled {
    opacity: 0.4; cursor: not-allowed; transform: none;
}

/* ============================================
   页面头部 Hero
   ============================================ */
.page-hero {
    text-align: center;
    padding: 50px 20px 30px;
    position: relative;
}
.page-hero .hero-subtitle {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--mayday-blue-light);
    margin-bottom: 10px;
    font-weight: 600;
}
.page-hero .hero-title {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 20%, var(--neon-cyan) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: 2px;
}
.page-hero .hero-desc {
    font-size: 15px;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   打卡墙 · 瀑布流 Masonry
   ============================================ */
.wall-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

.wall-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}
.wall-header h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.wall-header h2 .hl {
    background: linear-gradient(135deg, var(--stage-gold), var(--stage-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    grid-auto-rows: 10px;
    grid-auto-flow: dense;
}

@media (min-width: 1024px) {
    .wall-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

.wall-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-surface);
    transition: var(--transition-slow);
    /* 随机行高通过 JS 设置 */
}

.wall-item:hover {
    transform: translateY(-4px) scale(1.02);
    z-index: 10;
    box-shadow: 0 12px 40px rgba(34, 76, 152, 0.3);
}

.wall-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.wall-item:hover img {
    transform: scale(1.12);
}

.wall-item .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(transparent 40%, rgba(0,0,0,0.85));
    opacity: 0;
    transition: opacity 0.35s ease;
}
.wall-item:hover .overlay { opacity: 1; }

.wall-item .overlay .title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wall-item .overlay .meta {
    font-size: 11px;
    opacity: 0.8;
    display: flex;
    gap: 12px;
    align-items: center;
}
.wall-item .overlay .meta .avatar-mini {
    width: 20px; height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.3);
}

.wall-item .featured-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: linear-gradient(135deg, var(--stage-gold), #E8A84C);
    color: #111;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 2px 10px rgba(201, 168, 76, 0.4);
}

/* 打卡墙上传播放入口卡片 */
.wall-upload-card {
    cursor: pointer;
    background: linear-gradient(135deg, rgba(34,76,152,0.12), rgba(58,112,194,0.18));
    border: 2px dashed var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    transition: var(--transition);
}
.wall-upload-card:hover {
    background: linear-gradient(135deg, rgba(34,76,152,0.2), rgba(58,112,194,0.28));
    border-color: var(--mayday-blue-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(34,76,152,0.25);
}
.wall-upload-card .upload-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.wall-upload-card .upload-card-icon {
    font-size: 36px;
}
.wall-upload-card .upload-card-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--mayday-blue-light);
}
.wall-upload-card .upload-card-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   打卡墙模态框 — 大图预览
   ============================================ */
.wall-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.wall-modal.show { display: flex; }

.wall-modal-content {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.wall-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
    transition: var(--transition);
}
.wall-modal-close:hover { background: rgba(231, 76, 60, 0.8); }

.wall-modal-image {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    background: #000;
}

.wall-modal-info {
    padding: 24px;
}
.wall-modal-info .author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.wall-modal-info .author img {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
}
.wall-modal-info .author .name {
    font-weight: 700; font-size: 15px;
}
.wall-modal-info .desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 12px;
}
.wall-modal-info .meta-row {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.wall-modal-actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}
.wall-modal-actions .btn { flex: 1; }

/* 评论区 */
.comments-section {
    padding: 0 24px 24px;
}
.comments-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-light);
    display: flex; align-items: center; gap: 6px;
}

.comment-list {
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 14px;
}
.comment-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.comment-item:last-child { border-bottom: none; }
.comment-item .avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}
.comment-item .content { flex: 1; min-width: 0; }
.comment-item .nickname {
    font-size: 13px; font-weight: 600;
    color: var(--mayday-blue-light);
}
.comment-item .text {
    font-size: 13px; color: var(--text-light);
    margin-top: 2px; line-height: 1.6;
}
.comment-item .time {
    font-size: 11px; color: var(--text-muted);
    margin-top: 4px;
}

.comment-input {
    display: flex; gap: 8px;
}
.comment-input input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1.5px solid transparent;
    border-radius: 24px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}
.comment-input input:focus {
    border-color: var(--border-focus);
    background: rgba(30, 41, 65, 1);
}

/* ============================================
   物料市集
   ============================================ */
.market-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

.market-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.market-header h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 分类筛选 Chips */
.market-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 6px 0;
    overflow-x: auto;
}
.filter-btn {
    padding: 8px 18px;
    border: 1.5px solid var(--border-light);
    border-radius: 24px;
    background: transparent;
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    font-weight: 500;
}
.filter-btn:hover { border-color: var(--mayday-blue-light); color: #fff; }
.filter-btn.active {
    background: var(--mayday-blue);
    border-color: var(--mayday-blue);
    color: #fff;
    box-shadow: 0 2px 12px rgba(34, 76, 152, 0.3);
}

/* 工具栏 */
.market-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}
.search-box { display: flex; gap: 8px; flex: 1; max-width: 400px; }
.search-box input {
    flex: 1;
    padding: 10px 18px;
    background: var(--bg-input);
    border: 1.5px solid transparent;
    border-radius: 24px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}
.search-box input:focus {
    border-color: var(--border-focus);
    background: var(--bg-surface);
}
.sort-select {
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-light);
    border-radius: 24px;
    color: var(--text-light);
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

/* 物料卡片 */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

.material-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    display: block;
    color: inherit;
}
.material-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 76, 152, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(34, 76, 152, 0.08);
}

.material-card .card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-deep);
}
.material-card .card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.material-card:hover .card-image img { transform: scale(1.08); }

.material-card .card-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(34, 76, 152, 0.9);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}
.material-card .card-tag.gift { background: rgba(46, 204, 113, 0.9); }
.material-card .card-tag.sell { background: rgba(243, 156, 18, 0.9); }
.material-card .card-tag.exchanged { background: rgba(90, 103, 128, 0.8); }

.material-card .card-body {
    padding: 16px;
}
.material-card .card-title {
    font-size: 15px; font-weight: 700;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}
.material-card .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}
.material-card .card-meta .author {
    display: flex; align-items: center; gap: 6px;
}
.material-card .card-meta .author img {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
}
.material-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   物料详情页
   ============================================ */
.detail-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 24px;
}
.detail-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}
.detail-gallery {
    display: flex;
    gap: 12px;
    padding: 24px;
    overflow-x: auto;
    background: var(--bg-deep);
}
.detail-gallery img {
    height: 360px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition);
}
.detail-gallery img:hover { transform: scale(1.02); }
.detail-info {
    padding: 24px;
}
.detail-info h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 14px;
}
.detail-tags {
    display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
}
.detail-tags .tag {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.tag-type { background: rgba(34, 76, 152, 0.2); color: var(--mayday-blue-light); }
.tag-exchange { background: rgba(46, 204, 113, 0.15); color: var(--success); }
.tag-condition { background: rgba(243, 156, 18, 0.15); color: var(--warning); }
.detail-desc {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 20px;
    white-space: pre-wrap;
}
.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}
.detail-meta .meta-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px;
}
.detail-meta .meta-label { color: var(--text-muted); }

.detail-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}
.detail-author img {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
}
.detail-author .name { font-weight: 700; }
.detail-author .bio { font-size: 13px; color: var(--text-light); }

.detail-actions {
    display: flex; gap: 12px; padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ============================================
   站内消息
   ============================================ */
.message-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 24px;
}
.message-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.message-layout {
    display: flex;
    gap: 20px;
    min-height: 70vh;
}

.message-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.message-sidebar h3 {
    font-size: 14px;
    font-weight: 600;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
}

.message-list {
    flex: 1;
    overflow-y: auto;
}
.message-item {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    cursor: pointer;
    transition: var(--transition);
    color: inherit;
}
.message-item:hover {
    background: rgba(255,255,255,0.03);
}
.message-item.active {
    background: rgba(34, 76, 152, 0.1);
    border-left: 3px solid var(--mayday-blue);
}
.message-item .avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.08);
}
.message-item .msg-content { flex: 1; min-width: 0; }
.message-item .msg-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 4px;
}
.message-item .msg-from { font-weight: 600; font-size: 14px; }
.message-item .msg-time { font-size: 11px; color: var(--text-muted); }
.message-item .msg-text {
    font-size: 13px; color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.message-item .msg-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-right: 4px;
}
.msg-tag-exchange { background: rgba(34, 76, 152, 0.2); color: var(--mayday-blue-light); }
.msg-tag-accept { background: rgba(46, 204, 113, 0.15); color: var(--success); }
.msg-tag-reject { background: rgba(231, 76, 60, 0.15); color: var(--danger); }

.message-chat {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-header img {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
}
.chat-header .name { font-weight: 700; font-size: 15px; }
.chat-header .ref { font-size: 12px; color: var(--text-muted); }

.chat-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.chat-body .empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-muted);
    font-size: 14px;
}
.chat-body .empty .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.3; }

.chat-msg {
    display: flex;
    gap: 10px;
    max-width: 75%;
}
.chat-msg.self {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.chat-msg .bubble {
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}
.chat-msg .bubble {
    background: rgba(255,255,255,0.05);
    border-top-left-radius: 4px;
}
.chat-msg.self .bubble {
    background: var(--mayday-blue);
    border-top-right-radius: 4px;
    color: #fff;
}

.chat-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}
.chat-footer input {
    flex: 1;
    padding: 12px 18px;
    background: var(--bg-input);
    border: 1.5px solid transparent;
    border-radius: 24px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}
.chat-footer input:focus {
    border-color: var(--border-focus);
    background: var(--bg-surface);
}

/* ============================================
   上传/发布表单
   ============================================ */
.upload-section {
    max-width: 720px;
    margin: 0 auto;
    padding: 30px 24px;
}
.upload-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}
.upload-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.upload-card .sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.image-upload-area {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
    background: rgba(255,255,255,0.01);
}
.image-upload-area:hover {
    border-color: var(--mayday-blue-light);
    background: rgba(34, 76, 152, 0.05);
}
.image-upload-area .icon { font-size: 42px; margin-bottom: 10px; }
.image-upload-area p { font-size: 14px; color: var(--text-muted); }
.image-upload-area input { display: none; }

.image-preview-list {
    display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px;
}
.image-preview-list .preview-item {
    width: 100px; height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}
.image-preview-list .preview-item img {
    width: 100%; height: 100%; object-fit: cover;
}
.image-preview-list .preview-item .remove {
    position: absolute;
    top: 4px; right: 4px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.image-preview-list .preview-item .remove:hover { background: var(--danger); }

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-light);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--border-focus);
    background: var(--bg-surface);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* ============================================
   登录/注册
   ============================================ */
.auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}
.auth-card h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 32px;
}
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   个人中心
   ============================================ */
.profile-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 24px;
}
.profile-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}
.profile-header .avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(34, 76, 152, 0.3);
}
.profile-header .info h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.profile-header .info p { color: var(--text-muted); font-size: 13px; }
.profile-stats {
    display: flex; gap: 30px; margin-top: 12px;
}
.profile-stats .stat { text-align: center; }
.profile-stats .stat .num {
    font-size: 22px; font-weight: 800;
    color: var(--mayday-blue-light);
}
.profile-stats .stat .label {
    font-size: 11px; color: var(--text-muted);
}

.profile-tabs {
    display: flex; gap: 4px; margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
}
.profile-tabs .tab {
    padding: 12px 20px;
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    color: var(--text-muted);
    background: none;
    border-top: none; border-left: none; border-right: none;
}
.profile-tabs .tab:hover { color: var(--text); }
.profile-tabs .tab.active {
    color: var(--mayday-blue-light);
    border-bottom-color: var(--mayday-blue-light);
}

/* ============================================
   分页
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
    padding: 16px 0;
}
.pagination a {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-card);
    color: var(--text-light);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.pagination a:hover {
    background: rgba(34, 76, 152, 0.15);
    border-color: var(--mayday-blue-light);
    color: #fff;
}
.pagination a.active {
    background: var(--mayday-blue);
    border-color: var(--mayday-blue);
    color: #fff;
}

/* ============================================
   页脚
   ============================================ */
.footer {
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid var(--border);
    padding: 36px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 60px;
}
.footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.footer .footer-links a { color: var(--text-light); font-size: 13px; }
.footer p { opacity: 0.6; }

/* ============================================
   空状态
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state .icon { font-size: 60px; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text-light); }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* ============================================
   Toast
   ============================================ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    animation: slideIn 0.35s ease;
    max-width: 340px;
    backdrop-filter: blur(10px);
}
.toast-success { background: rgba(46, 204, 113, 0.9); }
.toast-error { background: rgba(231, 76, 60, 0.9); }
.toast-warning { background: rgba(243, 156, 18, 0.9); }
.toast-info { background: rgba(34, 76, 152, 0.9); }

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Loading
   ============================================ */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.loading-spinner::after {
    content: '';
    width: 36px; height: 36px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--mayday-blue-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   Hero Banner（首页专属）
   ============================================ */
.home-hero {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    padding: 70px 24px 30px;
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--mayday-blue-light), transparent);
}
.home-hero .hero-cta {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.home-hero .hero-emoji {
    font-size: 56px;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.home-hero h1 {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #fff 20%, var(--neon-cyan) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}
.home-hero .subtitle {
    font-size: 16px;
    color: var(--text-light);
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.8;
}
.home-hero .hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 30px;
}
.home-hero .hero-stats .s-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--stage-gold);
}
.home-hero .hero-stats .s-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================================
   浮动发布按钮（首页）
   ============================================ */
.fab-upload {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mayday-blue), var(--mayday-blue-light));
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(34, 76, 152, 0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse 2s ease-in-out infinite;
}
.fab-upload:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(34, 76, 152, 0.7);
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(34, 76, 152, 0.5); }
    50% { box-shadow: 0 4px 40px rgba(34, 76, 152, 0.8); }
}

/* 快速上传弹窗 */
.quick-upload-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.quick-upload-overlay.show { display: flex; }

.quick-upload-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}
.quick-upload-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.quick-upload-card .sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.quick-upload-card .upload-dropzone {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 16px;
    background: rgba(255,255,255,0.02);
}
.quick-upload-card .upload-dropzone:hover {
    border-color: var(--mayday-blue-light);
    background: rgba(34, 76, 152, 0.06);
}
.quick-upload-card .upload-dropzone .icon {
    font-size: 42px;
    margin-bottom: 10px;
}
.quick-upload-card .upload-dropzone p {
    font-size: 14px;
    color: var(--text-muted);
}
.quick-upload-card .upload-dropzone input { display: none; }
.quick-upload-card .preview-area {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.quick-upload-card .preview-area img {
    width: 80px; height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border);
}
.quick-upload-card .desc-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: var(--transition);
    font-family: inherit;
    resize: none;
    min-height: 80px;
}
.quick-upload-card .desc-input:focus {
    border-color: var(--border-focus);
    background: var(--bg-surface);
}
.quick-upload-card .actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: flex-end;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 768px) {
    .navbar .container { height: auto; padding: 10px 16px; flex-wrap: wrap; }
    .nav-links { order: 3; width: 100%; overflow-x: auto; padding-top: 8px; }
    .nav-links a { padding: 6px 12px; font-size: 13px; }
    .home-hero h1 { font-size: 28px; }
    .wall-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .market-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .message-layout { flex-direction: column; }
    .message-sidebar { width: 100%; max-height: 300px; }
    .detail-meta { grid-template-columns: 1fr; }
    .detail-actions { flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; }
    .profile-header { flex-direction: column; text-align: center; }
    .upload-card { padding: 24px; }
}
