/* ============================================================
   博物馆讲解H5 - 大气美观样式 v3.0
   设计风格：深色博物馆风 + 毛玻璃 + 金色点缀 + 移动端自适应
   ============================================================ */

/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(160deg, #0a1628 0%, #0f2847 35%, #1a3a5c 70%, #0d1f35 100%);
    background-attachment: fixed;
    color: #e8e8e8;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 14px; }

/* ========== 应用容器 ========== */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: transparent;
    padding-bottom: 70px;
}

/* ========== 顶部Header（毛玻璃） ========== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(10, 22, 40, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.header-left, .header-right { display: flex; align-items: center; gap: 8px; min-width: 60px; }
.header-right { justify-content: flex-end; }
.header-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #f0e6d2;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.btn-back {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #d4af37;
    transition: all 0.2s;
}
.btn-back:active { transform: scale(0.92); background: rgba(212,175,55,0.2); }
.btn-login {
    padding: 6px 14px;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a1a1a;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
}
.btn-user { display: flex; align-items: center; }
.avatar-sm {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(212,175,55,0.4);
}
.avatar-md {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(212,175,55,0.4);
    flex-shrink: 0;
}
.avatar-placeholder {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #8b6914);
    color: #1a1a1a;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: bold;
}
.avatar-placeholder.lg { width: 72px; height: 72px; font-size: 28px; }
.avatar-placeholder.md { width: 40px; height: 40px; font-size: 16px; }

/* 语言选择器 */
.lang-selector select {
    background: rgba(255,255,255,0.08);
    color: #d4af37;
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 12px;
    outline: none;
    cursor: pointer;
}

/* ========== 用户主页 ========== */
.user-profile-page { padding-bottom: 80px; }
.user-profile-header {
    position: relative;
    padding: 40px 20px 30px;
    text-align: center;
    background: linear-gradient(180deg, rgba(26,42,71,0.9) 0%, rgba(15,23,42,0.95) 100%);
    border-bottom: 1px solid rgba(212,175,55,0.15);
}
.user-profile-avatar {
    width: 90px; height: 90px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(212,175,55,0.5);
    box-shadow: 0 0 40px rgba(212,175,55,0.25);
}
.user-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-profile-name { font-size: 22px; font-weight: 700; color: #f0f0f0; margin: 0 0 4px; }
.user-profile-account { font-size: 13px; color: rgba(232,232,232,0.5); margin: 0 0 12px; }
.user-profile-bio { font-size: 14px; color: rgba(232,232,232,0.8); max-width: 400px; margin: 0 auto 16px; line-height: 1.6; }
.user-profile-stats {
    display: flex; justify-content: center; align-items: center;
    gap: 24px; margin: 16px auto;
    padding: 16px 24px;
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    max-width: 360px;
}
.user-contact {
    margin: 20px auto 0;
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
    border: 1px solid rgba(212,175,55,0.15);
    max-width: 360px;
    text-align: left;
}
.user-contact h3 { font-size: 14px; color: #d4af37; margin: 0 0 12px; }
.contact-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(232,232,232,0.9); margin-bottom: 8px; }
.contact-label { color: rgba(232,232,232,0.6); }
.contact-value { font-weight: 600; }
.btn-copy { padding: 4px 12px; font-size: 12px; background: rgba(212,175,55,0.15); color: #d4af37; border: 1px solid rgba(212,175,55,0.3); border-radius: 20px; cursor: pointer; }
.contact-qrcode { margin-top: 12px; text-align: center; }
.contact-qrcode p { font-size: 13px; color: rgba(232,232,232,0.6); margin: 0 0 8px; }
.wechat-qrcode-img { width: 140px; height: 140px; object-fit: cover; border-radius: 12px; border: 2px solid rgba(212,175,55,0.3); }
.user-posts-section { padding: 20px; }
.user-posts-list { display: flex; flex-direction: column; gap: 16px; }
.user-post-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 16px; backdrop-filter: blur(10px); }
.post-avatar-link { display: block; flex-shrink: 0; }
.post-avatar-link .post-avatar, .post-avatar-link .post-avatar-placeholder { cursor: pointer; }

/* ========== 个人资料编辑表单 ========== */
.nfc-bind-card .form-group { margin-bottom: 14px; }
.nfc-bind-card .form-group label { display: block; font-size: 13px; color: rgba(232,232,232,0.7); margin-bottom: 6px; font-weight: 500; }
.nfc-bind-card .form-input { width: 100%; padding: 10px 14px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: #f0f0f0; font-size: 14px; box-sizing: border-box; }
.nfc-bind-card .form-input:focus { outline: none; border-color: rgba(212,175,55,0.5); }
.nfc-bind-card textarea.form-input { resize: vertical; min-height: 70px; font-family: inherit; }
.btn-full { width: 100%; padding: 12px; background: linear-gradient(135deg, #d4af37, #b8941f); color: #1a2a47; border: none; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.btn-full:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(212,175,55,0.3); }

/* ========== 折叠面板（设置中心） ========== */
.settings-center { padding: 0 16px 16px; }
.accordion-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: border-color 0.2s;
}
.accordion-item:hover { border-color: rgba(212,175,55,0.2); }
.accordion-item.open { border-color: rgba(212,175,55,0.35); }
.accordion-header {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    cursor: pointer;
    user-select: none;
    gap: 12px;
}
.accordion-icon { font-size: 20px; flex-shrink: 0; }
.accordion-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #f0f0f0;
}
.accordion-arrow {
    font-size: 12px;
    color: rgba(232,232,232,0.5);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.accordion-content .nfc-bind-card,
.accordion-content .bg-settings-card {
    margin: 0 14px 14px;
    padding: 16px;
    background: rgba(0,0,0,0.15);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* ========== 底部导航（毛玻璃） ========== */
.app-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 100;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 12px;
    color: rgba(232, 232, 232, 0.5);
    font-size: 11px;
    transition: all 0.25s;
    border-radius: 12px;
}
.nav-item svg { transition: all 0.25s; }
.nav-item.active {
    color: #d4af37;
    transform: translateY(-2px);
}
.nav-item.active svg { filter: drop-shadow(0 0 6px rgba(212,175,55,0.5)); }
.nav-item:active { transform: scale(0.92); }

/* ========== 通用卡片（毛玻璃） ========== */
.glass-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin: 16px;
}

/* ========== 首页Hero区 ========== */
.museum-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    margin-bottom: 0;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(10,22,40,0.3) 0%, rgba(10,22,40,0.6) 50%, rgba(10,22,40,0.95) 100%),
                linear-gradient(135deg, #1a3a5c 0%, #2c5f8a 40%, #1a5276 70%, #0d1f35 100%);
    z-index: 0;
}
.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(212,175,55,0.12) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(44,95,138,0.3) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, -2%) rotate(1deg); }
}
.hero-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(212,175,55,0.06) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(212,175,55,0.04) 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 24px 32px;
}
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.05));
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 20px;
    font-size: 12px;
    color: #d4af37;
    letter-spacing: 2px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}
.hero-title {
    font-size: 32px;
    font-weight: 700;
    color: #f5f0e1;
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 14px;
    color: rgba(212,175,55,0.8);
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(232,232,232,0.75);
}
.meta-item svg { color: #d4af37; flex-shrink: 0; }
.hero-city {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(212,175,55,0.6);
}
.hero-scroll-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(212,175,55,0.5);
    z-index: 2;
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ========== 搜索和导航区 ========== */
.search-nav-section {
    padding: 16px;
    background: rgba(10, 22, 40, 0.5);
    backdrop-filter: blur(10px);
}
.search-form { display: flex; gap: 10px; margin-bottom: 14px; }
.search-input {
    flex: 1;
    padding: 12px 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 24px;
    color: #f0e6d2;
    font-size: 14px;
    outline: none;
    transition: all 0.25s;
}
.search-input::placeholder { color: rgba(232,232,232,0.4); }
.search-input:focus {
    border-color: rgba(212,175,55,0.5);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}
.search-btn {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a1a1a;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.search-btn:active { transform: scale(0.92); }
.nav-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(232,232,232,0.6);
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s;
}
.nav-tab.active {
    background: linear-gradient(135deg, rgba(212,175,55,0.25), rgba(212,175,55,0.08));
    border-color: rgba(212,175,55,0.4);
    color: #d4af37;
}
.city-tab { position: relative; }
.city-select {
    position: absolute;
    opacity: 0;
    width: 100%; height: 100%;
    cursor: pointer;
    left: 0; top: 0;
}
.location-result {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 12px;
    font-size: 13px;
    color: #d4af37;
}

/* ========== 博物馆切换 ========== */
.museum-switcher {
    padding: 10px 16px;
    background: rgba(10,22,40,0.3);
}
.museum-list-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.museum-list-scroll::-webkit-scrollbar { display: none; }
.museum-chip {
    padding: 7px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    white-space: nowrap;
    color: rgba(232,232,232,0.7);
    transition: all 0.2s;
}
.museum-chip.active {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a1a1a;
    border-color: transparent;
    font-weight: 600;
}

/* ========== 通用区块标题 ========== */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 0 16px;
}
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #f0e6d2;
    letter-spacing: 1px;
}
.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(212,175,55,0.4), transparent);
}
.section-desc {
    font-size: 12px;
    color: rgba(232,232,232,0.4);
    margin-left: auto;
}

/* ========== 博物馆介绍 ========== */
.museum-intro { padding: 24px 16px; }
.intro-text {
    font-size: 14px;
    line-height: 1.9;
    color: rgba(232,232,232,0.75);
    text-align: justify;
}
.intro-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 24px;
    padding: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 16px;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37, #f0e6d2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 12px;
    color: rgba(232,232,232,0.5);
    margin-top: 4px;
}

/* ========== 展区卡片 ========== */
.areas-section { padding: 8px 0 24px; }
.areas-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 16px;
}
.area-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 4px solid var(--area-color, #d4af37);
    border-radius: 16px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.area-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100px; height: 100%;
    background: radial-gradient(circle at right center, var(--area-color, #d4af37), transparent 70%);
    opacity: 0.08;
}
.area-card:active { transform: scale(0.98); }
.area-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212,175,55,0.3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.area-card:hover .area-icon {
    transform: scale(1.05);
}
.area-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--area-color, #d4af37), rgba(0,0,0,0.3));
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.area-info { flex: 1; min-width: 0; }
.area-name {
    font-size: 17px;
    font-weight: 600;
    color: #f0e6d2;
    margin-bottom: 4px;
}
.area-desc {
    font-size: 12px;
    color: rgba(232,232,232,0.5);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.area-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.area-count {
    font-size: 11px;
    color: #d4af37;
    background: rgba(212,175,55,0.1);
    padding: 2px 8px;
    border-radius: 8px;
}
.area-arrow { color: rgba(212,175,55,0.5); font-size: 18px; }

/* ========== 使用提示 ========== */
.tips-section { padding: 0 16px 24px; }
.tips-card {
    background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(212,175,55,0.02));
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 16px;
    padding: 20px;
}
.tips-icon { font-size: 28px; margin-bottom: 10px; }
.tips-card h3 {
    font-size: 16px;
    color: #d4af37;
    margin-bottom: 12px;
}
.tips-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tips-list li {
    font-size: 13px;
    color: rgba(232,232,232,0.7);
    padding-left: 16px;
    position: relative;
}
.tips-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-size: 10px;
}

/* ========== 文物详情页 ========== */
.artifact-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #0a1628;
    overflow: hidden;
}
.gallery-main {
    width: 100%; height: 100%;
    position: relative;
}
.gallery-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}
.gallery-slide.active { opacity: 1; }
.gallery-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.gallery-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 64px;
    background: linear-gradient(135deg, #1a3a5c, #0d1f35);
}
.gallery-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.gallery-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s;
}
.gallery-dot.active {
    background: #d4af37;
    width: 20px;
    border-radius: 4px;
}
.gallery-back {
    position: absolute;
    top: 16px; left: 16px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    z-index: 10;
}

/* 打卡提示条 */
.checkin-prompt-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.05));
    border-bottom: 1px solid rgba(212,175,55,0.2);
    font-size: 13px;
    color: #d4af37;
}
.checkin-prompt-bar.checked {
    background: linear-gradient(135deg, rgba(17,153,142,0.2), rgba(17,153,142,0.05));
    border-color: rgba(17,153,142,0.3);
    color: #38ef7d;
}
.checkin-link { color: inherit; text-decoration: underline; }

/* 文物详情 */
.artifact-detail { padding: 20px 16px; }
.detail-header { margin-bottom: 20px; }
.artifact-title {
    font-size: 24px;
    font-weight: 700;
    color: #f5f0e1;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.artifact-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    padding: 4px 12px;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 12px;
    font-size: 12px;
    color: #d4af37;
}

/* 语音讲解 */
.audio-guide {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 24px;
}
.audio-guide-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.audio-guide-icon { font-size: 20px; }
.audio-guide-title {
    font-size: 15px;
    font-weight: 600;
    color: #f0e6d2;
}
.audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-play {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a1a1a;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(212,175,55,0.3);
}
.btn-play:active { transform: scale(0.92); }
.audio-progress { flex: 1; }
.progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f0e6d2);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s;
}
.audio-time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(232,232,232,0.4);
    margin-top: 4px;
}
.btn-speed {
    padding: 6px 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    font-size: 12px;
    color: #d4af37;
    flex-shrink: 0;
}
.audio-tip {
    margin-top: 10px;
    font-size: 11px;
    color: rgba(232,232,232,0.35);
    text-align: center;
}

/* 讲解文字 */
.description-section { margin-bottom: 20px; }
.description-text {
    font-size: 14px;
    line-height: 2;
    color: rgba(232,232,232,0.75);
    text-align: justify;
    padding: 0 16px;
}

/* 所属展区 */
.related-area { padding: 0 16px 20px; }
.related-area-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    font-size: 14px;
    color: #d4af37;
    transition: all 0.2s;
}
.related-area-link:active { transform: scale(0.98); }

/* ========== 动态区 ========== */
.posts-section { padding: 8px 0 24px; }
.post-composer {
    margin: 0 16px 20px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
}
.composer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.composer-name {
    font-size: 14px;
    font-weight: 600;
    color: #f0e6d2;
}
.composer-textarea {
    width: 100%;
    min-height: 70px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #f0e6d2;
    font-size: 14px;
    resize: vertical;
    outline: none;
    margin-bottom: 10px;
}
.composer-textarea::placeholder { color: rgba(232,232,232,0.35); }
.composer-textarea:focus { border-color: rgba(212,175,55,0.3); }

/* 发布选项 */
.composer-options {
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 10px;
}
.option-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
    flex-wrap: wrap;
}
.option-label { font-size: 13px; color: rgba(232,232,232,0.5); }
.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: rgba(232,232,232,0.7);
    cursor: pointer;
}
.checkpoint-select {
    padding: 6px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 13px;
    color: #f0e6d2;
    outline: none;
}

/* 语音录制 */
.composer-voice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.btn-voice {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 13px;
    color: rgba(232,232,232,0.7);
    transition: all 0.2s;
}
.btn-voice.recording {
    background: rgba(245,87,108,0.2);
    border-color: rgba(245,87,108,0.4);
    color: #f5576c;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.voice-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.voice-preview audio { flex: 1; height: 32px; }
.btn-voice-remove {
    padding: 4px 10px;
    background: rgba(245,87,108,0.15);
    border-radius: 10px;
    font-size: 12px;
    color: #f5576c;
}
.voice-timer {
    font-size: 13px;
    color: #f5576c;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* 发布操作 */
.composer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-upload {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 13px;
    color: rgba(232,232,232,0.7);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-upload:active { transform: scale(0.95); }
.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}
.preview-img-wrap {
    position: relative;
    width: 60px; height: 60px;
}
.preview-img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.btn-remove-img {
    position: absolute;
    top: -6px; right: -6px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #f5576c;
    color: #fff;
    font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.btn-submit {
    margin-left: auto;
    padding: 10px 24px;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a1a1a;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(212,175,55,0.25);
}
.btn-submit:active { transform: scale(0.95); }
.btn-submit:disabled { opacity: 0.5; }

.composer-login-prompt {
    text-align: center;
    padding: 20px;
}
.composer-login-prompt p {
    color: rgba(232,232,232,0.5);
    margin-bottom: 12px;
    font-size: 14px;
}
.btn-primary {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a1a1a;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.btn-sm { padding: 6px 16px; font-size: 13px; }

/* 动态列表 */
.posts-list { padding: 0 16px; }
.post-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
}
.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.post-user-info { flex: 1; min-width: 0; }
.post-username {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #f0e6d2;
}
.post-time {
    font-size: 11px;
    color: rgba(232,232,232,0.35);
}
.post-badges { display: flex; gap: 4px; }
.btn-delete-post {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(245,87,108,0.1);
    color: #f5576c;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}
.post-content {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(232,232,232,0.8);
    margin-bottom: 10px;
    word-break: break-word;
}
.post-images {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.post-image {
    width: calc(33.33% - 4px);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}
.post-audio { margin-bottom: 10px; }
.post-audio audio { width: 100%; height: 36px; }
.post-artifact-ref {
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 12px;
    color: rgba(232,232,232,0.4);
}
.post-artifact-ref a { color: #d4af37; }

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(232,232,232,0.35);
}
.empty-state.large { padding: 60px 20px; }
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-state p { margin: 4px 0; font-size: 14px; }
.empty-sub { font-size: 12px; opacity: 0.6; }

/* 图片查看器 */
.image-viewer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.image-viewer.active { display: flex; }
.image-viewer img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

/* ========== 个人中心 ========== */
.profile-header {
    position: relative;
    padding: 40px 20px 24px;
    background: linear-gradient(180deg, rgba(212,175,55,0.15) 0%, transparent 100%);
}
.profile-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(212,175,55,0.12), transparent 60%);
}
.profile-info {
    position: relative;
    text-align: center;
}
.profile-avatar {
    width: 80px; height: 80px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(212,175,55,0.4);
    box-shadow: 0 0 30px rgba(212,175,55,0.2);
    position: relative;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 10px;
    text-align: center;
    padding: 4px 0;
    opacity: 0;
    transition: opacity 0.2s;
}
.profile-avatar:hover .avatar-overlay { opacity: 1; }
.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #f5f0e1;
    margin-bottom: 4px;
}
.profile-account {
    font-size: 13px;
    color: rgba(212,175,55,0.6);
    margin-bottom: 18px;
}
.profile-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}
.profile-stats .stat-item { text-align: center; }
.profile-stats .stat-number {
    font-size: 22px;
    font-weight: 700;
    color: #d4af37;
}
.profile-stats .stat-label {
    font-size: 11px;
    color: rgba(232,232,232,0.45);
    margin-top: 2px;
}
.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,0.1);
}
.btn-logout {
    position: absolute;
    top: 16px; right: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(245,87,108,0.15);
    border: 1px solid rgba(245,87,108,0.2);
    border-radius: 16px;
    font-size: 12px;
    color: #f5576c;
}

/* 足迹总结 */
.footprint-summary { padding: 0 16px 8px; }
.footprint-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212,175,55,0.12);
    border-radius: 18px;
    padding: 20px;
}
.footprint-progress {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}
.progress-ring {
    width: 76px; height: 76px;
    border-radius: 50%;
    background: conic-gradient(#d4af37 calc(var(--percent) * 1%), rgba(255,255,255,0.08) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.progress-percent {
    width: 58px; height: 58px;
    border-radius: 50%;
    background: rgba(10,22,40,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #d4af37;
}
.footprint-text { flex: 1; }
.footprint-text h3 {
    font-size: 16px;
    color: #f0e6d2;
    margin-bottom: 6px;
}
.footprint-text p {
    font-size: 13px;
    color: rgba(232,232,232,0.6);
    margin: 2px 0;
}
.remaining-hint strong { color: #f5576c; font-size: 15px; }
.all-done { color: #38ef7d; font-weight: 600; }
.btn-footprint {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 14px;
    font-size: 12px;
    color: #d4af37;
}
.footprint-checkpoints {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.mini-checkpoint {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 11px;
    background: rgba(255,255,255,0.04);
    color: rgba(232,232,232,0.35);
}
.mini-checkpoint.checked {
    background: rgba(212,175,55,0.12);
    color: #d4af37;
}

/* NFC绑定 */
.nfc-bind-section { padding: 16px; }
.nfc-bind-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(102,126,234,0.15);
    border-radius: 18px;
    padding: 20px;
}
.nfc-msg { margin-bottom: 12px; font-size: 13px; }
.msg-success { color: #38ef7d; }
.msg-error { color: #f5576c; }
.nfc-bound p { margin: 6px 0; font-size: 14px; color: rgba(232,232,232,0.7); }
.nfc-id-display code {
    background: rgba(102,126,234,0.15);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #a5b4fc;
}
.nfc-hint { font-size: 12px; color: rgba(232,232,232,0.4); }
.btn-unbind {
    margin-top: 12px;
    padding: 8px 20px;
    background: rgba(245,87,108,0.15);
    border: 1px solid rgba(245,87,108,0.3);
    border-radius: 18px;
    color: #f5576c;
    font-size: 13px;
}
.nfc-bind-form {
    display: flex;
    gap: 8px;
    margin: 14px 0;
}
.nfc-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #f0e6d2;
    font-size: 14px;
    outline: none;
}
.nfc-input::placeholder { color: rgba(232,232,232,0.3); }
.btn-bind-nfc {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.nfc-tip { font-size: 12px; color: rgba(232,232,232,0.35); margin-top: 8px; }

/* 背景设置 */
.bg-settings { padding: 0 16px 16px; }
.bg-settings-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 20px;
}
.bg-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 14px 0;
}
.bg-preset {
    aspect-ratio: 1;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.bg-preset.active {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.2);
}
.bg-preset:active { transform: scale(0.95); }
.bg-upload-btn {
    width: 100%;
    padding: 12px;
    background: rgba(212,175,55,0.1);
    border: 1px dashed rgba(212,175,55,0.3);
    border-radius: 12px;
    color: #d4af37;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    display: block;
}
.bg-reset-btn {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: rgba(245,87,108,0.1);
    border: 1px solid rgba(245,87,108,0.2);
    border-radius: 12px;
    color: #f5576c;
    font-size: 13px;
    cursor: pointer;
}

/* 动态标签 */
.post-stats-inline { display: flex; gap: 8px; margin-left: auto; }
.tag-private, .tag-public {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
}
.tag-private { background: rgba(243,156,18,0.12); color: #f39c12; }
.tag-public { background: rgba(52,152,219,0.12); color: #3498db; }
.tag-private-small, .tag-public-small, .tag-checkpoint, .tag-checkin-time {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: rgba(232,232,232,0.5);
}
.tag-checkpoint { background: rgba(212,175,55,0.1); color: #d4af37; }

/* ========== 足迹打卡页 ========== */
.checkin-page { padding: 16px; }
.checkin-progress-card {
    background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(102,126,234,0.15));
    backdrop-filter: blur(16px);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 16px;
}
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.progress-header h2 { font-size: 18px; color: #f5f0e1; }
.progress-text { font-size: 14px; color: #d4af37; font-weight: 600; }
.progress-bar-container {
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 12px;
}
.checkin-progress-card .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f0e6d2);
    border-radius: 5px;
    transition: width 0.6s ease;
}
.progress-hint { font-size: 13px; color: rgba(232,232,232,0.7); }
.progress-hint strong { color: #f5576c; font-size: 16px; }

.login-prompt {
    text-align: center;
    padding: 28px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    margin-bottom: 16px;
}
.login-prompt p { color: rgba(232,232,232,0.5); margin-bottom: 14px; font-size: 14px; }

.checkpoint-list { margin-bottom: 24px; }
.checkpoint-card {
    display: flex;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    opacity: 0.55;
    transition: all 0.3s;
}
.checkpoint-card.checked {
    opacity: 1;
    border: 1px solid rgba(212,175,55,0.3);
    box-shadow: 0 4px 20px rgba(212,175,55,0.1);
}
.checkpoint-image-wrap {
    position: relative;
    width: 110px;
    min-height: 110px;
    flex-shrink: 0;
}
.checkpoint-image { width: 100%; height: 100%; object-fit: cover; }
.checkpoint-image-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px;
    background: linear-gradient(135deg, #1a3a5c, #0d1f35);
}
.checkpoint-badge {
    position: absolute;
    top: 8px; left: 8px;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}
.checked-badge { background: rgba(212,175,55,0.85); color: #1a1a1a; }
.unchecked-badge { background: rgba(0,0,0,0.5); color: rgba(255,255,255,0.7); }
.checkpoint-info {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
}
.checkpoint-info h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 600;
    color: #f0e6d2;
}
.checkpoint-info p {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: rgba(232,232,232,0.45);
    flex: 1;
    line-height: 1.5;
}
.checkin-time { font-size: 12px; color: #d4af37; }
.btn-checkin {
    align-self: flex-start;
    padding: 7px 16px;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a1a1a;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

/* 打卡时间线 */
.checkin-timeline { margin-top: 8px; }
.timeline { position: relative; padding-left: 28px; }
.timeline-item { position: relative; padding-bottom: 22px; }
.timeline-dot {
    position: absolute;
    left: -28px;
    top: 4px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #d4af37;
    border: 3px solid rgba(10,22,40,0.9);
    box-shadow: 0 0 0 2px rgba(212,175,55,0.4);
}
.timeline-line {
    position: absolute;
    left: -22px;
    top: 20px;
    width: 2px;
    height: calc(100% - 10px);
    background: rgba(255,255,255,0.08);
}
.timeline-content {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 14px;
}
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.timeline-header strong { font-size: 14px; color: #f0e6d2; }
.timeline-time { font-size: 11px; color: rgba(232,232,232,0.4); }
.timeline-link { font-size: 12px; color: #d4af37; }

/* ========== 碰碰交友页 ========== */
.social-page { padding: 16px; }
.social-intro {
    background: linear-gradient(135deg, rgba(240,147,251,0.15), rgba(245,87,108,0.1));
    backdrop-filter: blur(16px);
    border: 1px solid rgba(240,147,251,0.2);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 16px;
}
.social-intro h2 { font-size: 22px; color: #f5f0e1; margin-bottom: 6px; }
.social-intro p { font-size: 14px; color: rgba(232,232,232,0.6); }

.publish-box {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 16px;
}
.publish-box textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #f0e6d2;
    font-size: 14px;
    resize: vertical;
    outline: none;
    margin-bottom: 12px;
    box-sizing: border-box;
}
.publish-box textarea::placeholder { color: rgba(232,232,232,0.3); }
.publish-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}
.publish-tools { display: flex; gap: 8px; }
.tool-btn {
    padding: 7px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    font-size: 13px;
    color: rgba(232,232,232,0.7);
    cursor: pointer;
    transition: all 0.2s;
}
.tool-btn.recording {
    background: rgba(245,87,108,0.2);
    border-color: rgba(245,87,108,0.4);
    color: #f5576c;
}
.preview-area {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.preview-area .preview-img {
    width: 70px; height: 70px;
    object-fit: cover;
    border-radius: 10px;
}
.preview-audio { width: 100%; }
.btn-publish {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(245,87,108,0.25);
}
.btn-publish:active { transform: scale(0.98); }

.social-feed { margin-top: 8px; }
.social-post-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}
.social-post-card .post-header { margin-bottom: 12px; }

/* 全局通用头像样式 - 所有页面的post-avatar都能用 */
.post-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(212,175,55,0.3);
    flex-shrink: 0;
    overflow: hidden;
}
.post-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.post-avatar-placeholder {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: bold;
    flex-shrink: 0;
}
/* 发布框中的头像 */
.composer-header .avatar-md {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(212,175,55,0.4);
}
/* 动态列表中的头像 */
.post-item .avatar-sm {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.post-item .avatar-placeholder {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: bold;
}

.social-post-card .post-user-info strong { display: block; font-size: 14px; color: #f0e6d2; }
.social-post-card .post-time { font-size: 11px; color: rgba(232,232,232,0.35); }
.post-checkpoint-tag {
    font-size: 11px;
    padding: 3px 10px;
    background: rgba(212,175,55,0.1);
    border-radius: 10px;
    color: #d4af37;
}
.social-post-card .post-content {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(232,232,232,0.75);
    margin-bottom: 12px;
}
.social-post-card .post-images {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.social-post-card .post-image {
    width: calc(33.33% - 4px);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}
.social-post-card .post-audio { margin-bottom: 12px; }
.social-post-card .post-audio audio { width: 100%; }
.social-post-card .post-artifact-ref {
    font-size: 12px;
    color: rgba(232,232,232,0.4);
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.social-post-card .post-artifact-ref a { color: #d4af37; }

/* ========== NFC提示条 ========== */
.nfc-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(102,126,234,0.3), rgba(118,75,162,0.2));
    border-bottom: 1px solid rgba(102,126,234,0.3);
    color: #fff;
    font-size: 13px;
}
.nfc-banner a { color: #d4af37; text-decoration: underline; font-weight: 600; }
.nfc-banner button {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
}

/* ========== Toast提示 ========== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 2000;
    animation: toastIn 0.3s ease;
    max-width: 80%;
    text-align: center;
}
@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ========== 登录页 ========== */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-logo {
    text-align: center;
    margin-bottom: 32px;
}
.login-logo .logo-icon {
    font-size: 56px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 20px rgba(212,175,55,0.3));
}
.login-logo h1 {
    font-size: 26px;
    color: #f5f0e1;
    letter-spacing: 2px;
    margin-bottom: 6px;
}
.login-logo p {
    font-size: 13px;
    color: rgba(212,175,55,0.6);
    letter-spacing: 3px;
}
.login-card {
    width: 100%;
    max-width: 380px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 28px;
}
.login-tabs {
    display: flex;
    margin-bottom: 24px;
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 4px;
}
.login-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: rgba(232,232,232,0.5);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
}
.login-tab.active {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a1a1a;
    font-weight: 600;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    color: rgba(232,232,232,0.6);
    margin-bottom: 6px;
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #f0e6d2;
    font-size: 14px;
    outline: none;
    transition: all 0.25s;
    box-sizing: border-box;
}
.form-input::placeholder { color: rgba(232,232,232,0.3); }
.form-input:focus {
    border-color: rgba(212,175,55,0.4);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}
.btn-full {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a1a1a;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(212,175,55,0.25);
    margin-top: 8px;
}
.btn-full:active { transform: scale(0.98); }
.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: rgba(232,232,232,0.35);
}
.login-footer a { color: #d4af37; }
.alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
}
.alert-error {
    background: rgba(245,87,108,0.12);
    border: 1px solid rgba(245,87,108,0.25);
    color: #f5576c;
}
.alert-success {
    background: rgba(56,239,125,0.1);
    border: 1px solid rgba(56,239,125,0.25);
    color: #38ef7d;
}

/* ========== 展区详情页 ========== */
.area-header {
    padding: 24px 16px;
    text-align: center;
    background: linear-gradient(180deg, rgba(212,175,55,0.1), transparent);
}
.area-icon-lg {
    font-size: 48px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 20px rgba(212,175,55,0.3));
}
.area-header h1 {
    font-size: 24px;
    color: #f5f0e1;
    margin-bottom: 8px;
    letter-spacing: 2px;
}
.area-header p {
    font-size: 13px;
    color: rgba(232,232,232,0.5);
    line-height: 1.7;
    max-width: 90%;
    margin: 0 auto;
}
.artifacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px 24px;
}
.artifact-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s;
}
.artifact-card:active { transform: scale(0.97); }
.artifact-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: linear-gradient(135deg, #1a3a5c, #0d1f35);
}
.artifact-card-body { padding: 12px; }
.artifact-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #f0e6d2;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.artifact-card-meta {
    font-size: 11px;
    color: rgba(232,232,232,0.4);
}

/* ========== 响应式（大屏居中） ========== */
@media (min-width: 481px) {
    .app-container {
        box-shadow: 0 0 60px rgba(0,0,0,0.5);
        border-left: 1px solid rgba(212,175,55,0.1);
        border-right: 1px solid rgba(212,175,55,0.1);
    }
}

/* 安全区域适配 */
@supports (padding: env(safe-area-inset-bottom)) {
    .app-container { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}
