.home-page {
    background: linear-gradient(180deg, #FFF5F5 0%, var(--white) 40%);
}

.home-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F5F5F5;
    border-radius: 20px;
    padding: 8px 14px;
    height: 36px;
}

.search-box i {
    font-size: 14px;
    color: var(--text-light);
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-dark);
    outline: none;
    cursor: pointer;
}

.search-box input::placeholder {
    color: var(--text-light);
}

.bell-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.bell-icon i {
    font-size: 20px;
    color: var(--text-dark);
}

.bell-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 50%;
}

.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 24px 30px;
}

.home-monument {
    width: 120px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.monument-svg {
    width: 100%;
    height: 100%;
}

.home-slogan {
    text-align: center;
}

.home-slogan h1 {
    font-size: 22px;
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.home-slogan h2 {
    font-size: 18px;
    color: var(--dark-red);
    font-weight: 600;
    letter-spacing: 2px;
}

.home-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px 16px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 4px;
    border-radius: 12px;
    transition: all 0.2s;
}

.feature-item:active {
    transform: scale(0.82);
    background: var(--light-red);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item span {
    font-size: 11px;
    color: var(--text-dark);
    text-align: center;
    font-weight: 500;
}

.home-banner {
    margin: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-red), #E8384F);
    padding: 20px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.home-banner::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.home-banner h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.home-banner p {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.6;
}

.home-section {
    padding: 16px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.section-title span {
    font-size: 12px;
    color: var(--primary-red);
    cursor: pointer;
}

.hot-spots {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.hot-spot-card {
    min-width: 140px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.hot-spot-card:active {
    transform: scale(0.85);
}

.hot-spot-img {
    width: 140px;
    height: 90px;
    background: linear-gradient(135deg, #FFB6C1, #FF6B6B);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}

.hot-spot-info {
    padding: 8px;
}

.hot-spot-info h4 {
    font-size: 12px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.hot-spot-info p {
    font-size: 10px;
    color: var(--text-light);
}

.checkin-page {
    background: var(--bg-cream);
}

.checkin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.checkin-image {
    width: 280px;
    height: 200px;
    border-radius: 16px;
    background: linear-gradient(135deg, #F5DEB3, #DEB887);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

.checkin-info {
    text-align: center;
    margin-bottom: 24px;
}

.checkin-info h2 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.checkin-info .location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-gray);
    font-size: 13px;
}

.checkin-info .location i {
    color: var(--primary-red);
}

.checkin-desc {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    width: 100%;
    box-shadow: 0 2px 8px var(--shadow);
}

.checkin-desc p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.8;
}

.checkin-btn {
    width: 200px;
    height: 48px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary-red), #E8384F);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.4);
    transition: all 0.2s;
}

.checkin-btn:active {
    transform: scale(0.85);
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

/* ============================================
   勋章墙页面 (badgePage) - 红色文化主题
   ============================================ */
.badge-wall-page {
    background: #F5F0EB;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* --- 顶部导航 --- */
.bw-header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 12px;
    background: #C41E3A;
    flex-shrink: 0;
    position: relative;
    border: none;
    box-shadow: none;
}
.bw-header-title {
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
}
.bw-back-btn {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.bw-back-btn:active { 
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
}
.bw-header-right { width: 34px; }

/* --- 主内容 --- */
.bw-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-direction: column;
}

.bw-body::-webkit-scrollbar {
    display: none;
}

/* --- 英雄区域（盾牌+昵称） --- */
.bw-hero {
    background: linear-gradient(180deg, #C41E3A 0%, #8B0000 100%);
    padding: 28px 20px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.bw-hero::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 280px; height: 200px;
    background: radial-gradient(ellipse, rgba(255,215,0,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.bw-hero-shield {
    width: 110px;
    height: 128px;
    margin: 0 auto 14px;
    animation: shieldFloat 3s ease-in-out infinite;
}
.bw-shield-svg { width: 100%; height: 100%; }
@keyframes shieldFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.bw-hero-name {
    font-size: 22px;
    font-weight: 700;
    color: #FFF;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.25);
    margin-bottom: 6px;
}
.bw-hero-stats {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.5px;
}
.bw-hero-stats strong {
    color: #FFD700;
    font-size: 15px;
    font-weight: 700;
}

/* --- Hero区域Lottie动画 --- */
.bw-hero-lottie {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.bw-lottie-canvas {
    width: 200px;
    height: 180px;
}
/* --- 英雄区域信息（Lottie模式下显示昵称+统计）--- */
.bw-hero-info {
    text-align: center;
    padding-top: 8px;
}
.bw-lottie-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

/* --- 勋章图片（无边框）--- */
.bw-badge-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

/* --- 标签区域 --- */
.bw-tabs-area {
    background: #FFF;
    border-radius: 18px 18px 0 0;
    margin-top: -16px;
    position: relative;
    z-index: 2;
    flex: 1;
}
.bw-tab-bar {
    display: flex;
    gap: 4px;
    padding: 16px 24px 0;
}
.bw-tab {
    flex: 1;
    text-align: center;
    padding: 9px 0;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    border-radius: 20px 20px 0 0;
    transition: all 0.25s;
    position: relative;
}
.bw-tab.active {
    color: #C41E3A;
    font-weight: 700;
}
.bw-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2.5px;
    background: #C41E3A;
    border-radius: 2px;
}

/* --- 勋章网格 --- */
.bw-badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 12px;
    padding: 22px 18px 20px;
}
.bw-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 8px 4px 4px;
}
.bw-badge-item:active { transform: scale(0.82); }

/* 勋章图标盒子 */
.bw-badge-icon-box {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}
.bw-badge-icon-box i { font-size: 30px; color: #FFF; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }

/* 已获得勋章的微光效果 */
.bw-badge-icon-box::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, transparent 60%);
    border-radius: 50%;
    transform: rotate(30deg);
    pointer-events: none;
}

/* 未获得（锁定态） */
.bw-icon-locked {
    background: #E8E8E8 !important;
    box-shadow: none !important;
}
.bw-icon-locked::after { display: none; }
.bw-icon-locked i { font-size: 22px !important; color: #BBB !important; filter: none !important; }

.bw-badge-label {
    font-size: 12px;
    color: #555;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}
.bw-badge-locked .bw-badge-label {
    color: #BBB;
}
.bw-empty-hint {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0 20px;
    color: #999;
    font-size: 14px;
}

/* --- 勋章详情弹窗 --- */
.bw-detail-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.bw-detail-card {
    background: #FFF;
    border-radius: 22px;
    width: 78%;
    max-width: 300px;
    padding: 36px 24px 28px;
    text-align: center;
    position: relative;
    box-shadow: 0 16px 52px rgba(0,0,0,0.25);
    animation: detailPopIn 0.35s ease both;
}
@keyframes detailPopIn {
    from { opacity: 0; transform: scale(0.85) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.bw-detail-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #F5F5F5;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.bw-detail-close:active { background: #E8E8E8; transform: scale(0.8); }

.bw-detail-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
.bw-detail-icon-inner {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bw-detail-icon-inner i { font-size: 40px; color: #FFF; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2)); }
.bw-detail-icon-locked {
    background: #E0E0E0 !important;
    box-shadow: none !important;
}
.bw-detail-icon-locked i {
    font-size: 28px !important;
    color: #AAA !important;
    filter: none !important;
}

.bw-detail-name {
    font-size: 19px;
    font-weight: 700;
    color: #2D2D2D;
    margin-bottom: 6px;
}
.bw-detail-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 16px;
    padding: 0 8px;
}
.bw-detail-status {
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 18px;
    border-radius: 20px;
}
.bw-status-earned {
    background: rgba(196,30,58,0.08);
    color: #C41E3A;
}
.bw-status-locked {
    background: #F0F0F0;
    color: #999;
}

/* --- 空状态（全部未获得）--- */
.bw-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px 20px;
    min-height: 240px;
}
.bw-empty-lottie {
    width: 160px;
    height: 140px;
}
.bw-empty-text {
    margin-top: 16px;
    font-size: 15px;
    color: #666;
    font-weight: 600;
}
.bw-empty-hint {
    margin-top: 8px;
    font-size: 13px;
    color: #999;
    text-align: center;
    line-height: 1.5;
}

/* --- 未获得勋章：图片+锁图标 --- */
.bw-badge-lock-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bw-badge-img-gray {
    opacity: 0.45;
    filter: grayscale(80%);
}
.bw-badge-lock-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* --- 未获得勋章弹窗（Lottie+文字）--- */
.bw-lock-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    transition: opacity 0.28s ease;
}
.bw-lock-overlay.show { opacity: 1; }
.bw-lock-card {
    width: 280px;
    background: #FFF;
    border-radius: 18px;
    padding: 28px 20px 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.bw-lock-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F0F0F0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    -webkit-tap-highlight-color: transparent;
}
.bw-lock-lottie-canvas {
    width: 160px;
    height: 140px;
}
.bw-lock-stats {
    margin-top: 12px;
    font-size: 13px;
    color: #555;
    text-align: center;
    line-height: 1.6;
}
.bw-lock-stats strong {
    color: #C41E3A;
    font-weight: 700;
}
.bw-lock-placeholder {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- 空状态下的标签区域 --- */
.bw-tabs-area-full {
    border-radius: 18px 18px 0 0;
    flex: 1;
}

/* --- 可激活的勋章（红色传承者：无锁图标，可点击点亮）--- */
.bw-activatable {
    cursor: pointer;
}
.bw-badge-activatable {
    opacity: 0.5 !important;
    filter: grayscale(60%) !important;
    transition: all 0.3s ease;
}

/* --- 点亮按钮 --- */
.bw-lightup-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 36px;
    background: linear-gradient(135deg, #C41E3A, #E8384F);
    color: #FFF;
    font-size: 15px;
    font-weight: 700;
    border-radius: 24px;
    cursor: pointer;
    letter-spacing: 4px;
    box-shadow: 0 4px 16px rgba(196,30,58,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.bw-lightup-btn:active {
    transform: scale(0.93);
    box-shadow: 0 2px 8px rgba(196,30,58,0.25);
}

/* --- 全屏过渡动画遮罩（点亮勋章时使用，在手机容器内显示）--- */
#bw-transition-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}
#bw-transition-overlay.show {
    opacity: 1;
}
#bw-transition-overlay.bw-trans-exit {
    opacity: 0;
}
.bw-trans-canvas {
    width: 280px;
    height: 280px;
}

.maker-page {
    background: linear-gradient(180deg, #FFF5F5 0%, var(--white) 30%);
}

.maker-content {
    flex: 1;
    padding: 20px 16px;
    padding-bottom: 100px;
}

.maker-header-card {
    background: linear-gradient(135deg, var(--primary-red), #D4374B);
    border-radius: 16px;
    padding: 20px;
    color: var(--white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.maker-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.maker-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.maker-info p {
    font-size: 12px;
    opacity: 0.8;
}

.maker-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow);
}

.stat-card .num {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-red);
}

.stat-card .label {
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 4px;
}

.maker-members {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px var(--shadow);
}

.maker-members h4 {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.member-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.member-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFB6C1, #FF6B6B);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
}

.member-name {
    font-size: 10px;
    color: var(--text-gray);
}

/* ===== 路线规划页面 - 精确匹配设计稿（最终版本）===== */
.route-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* 顶部导航栏 - 精确匹配图片 */
.route-header {
    background-color: #E53935;  /* 图片中的鲜红色 */
    padding: 0 15px;
    position: relative;
    z-index: 100;
    flex-shrink: 0;
    overflow: visible;
}

/* SVG波浪样式（精确匹配设计图）*/
.route-wave-svg {
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 110%;
    height: 28px;
    z-index: 1;
}

/* 状态栏区域 - 精确匹配图片布局 */
.route-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding-top: 8px;
}



.route-time {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    margin-left: 20px;  /* 与APP保持距离 */
}

.route-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.route-icons i {
    color: #FFFFFF;
    font-size: 13px;
}

.route-header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 5px;
    position: relative;
    z-index: 2;
}

.route-back-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 18px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    z-index: 999;
}

.route-back-btn i {
    color: #fff !important;
    font-size: 18px;
}

.route-back-btn:active {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.route-header-title {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
}

.route-search-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.route-search-btn i {
    color: #fff;
}

.route-search-btn:active {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

/* 弯曲效果已移至 .route-header::after 伪元素（避免overflow裁剪）*/

/* 主内容区域 */
.route-main-content {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 地图容器 */
.route-map-container {
    flex: 1;
    width: 100%;
    min-height: 300px;
    position: relative;
    background-color: #e8e8e8;
    overflow: hidden;
    min-height: 0;
}

.route-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #999;
    z-index: 10;
}

.route-map-loading i {
    font-size: 32px;
    margin-bottom: 10px;
    color: #C41E3A;
}

.route-map-loading span {
    font-size: 14px;
}

/* 左侧分类菜单 */
.route-category-menu {
    position: absolute;
    left: 12px;
    top: 80px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    padding: 10px 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 4px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.route-category-menu.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* 分类菜单切换按钮图标颜色 */
#routeMenuToggleBtn i {
    transition: color 0.3s ease;
    color: #7F7F7F;
}

#routeMenuToggleBtn.active i {
    color: #C41E3A;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    min-width: 120px;
}

.category-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #999;
    transition: all 0.25s ease;
}

.category-item span {
    font-weight: 500;
}

.category-item:hover,
.category-item:active {
    background-color: #fff5f5;
    transform: translateX(2px);
}

.category-item.active {
    background: linear-gradient(135deg, #C41E3A 0%, #D32F2F 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.category-item.active i {
    color: #fff;
}

.category-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.category-item.disabled:hover {
    background-color: transparent;
    transform: none;
}

/* 右侧地图控制按钮 */
.route-map-controls {
    position: absolute;
    right: 12px;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99;
}

.map-control-btn {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.97);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.map-control-btn:active {
    transform: scale(0.92);
    background: #f5f5f5;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.map-control-btn i {
    color: #555;
}

/* 底部路线详情面板 */
.route-detail-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 80px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px 20px 0 0;
    padding: 12px 16px;
    padding-right: 70px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    z-index: 98;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* 默认情况下不播放动画，避免页面初始化时出现闪屏 */
}

@keyframes slideUpPanel {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.route-detail-panel.highlight {
    animation: highlightPulse 0.6s ease;
}

@keyframes highlightPulse {
    0%, 100% { box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12); }
    50% { box-shadow: 0 -4px 32px rgba(196, 30, 58, 0.4); }
}

.route-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.route-detail-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.route-detail-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #C41E3A 0%, #EF5350 100%);
    border-radius: 2px;
}

/* 路线详情图标按钮 */
.route-detail-icon-btn {
    color: #999;
    font-size: 18px;
}

.route-detail-icon-btn.active {
    background: #fff;
}

.route-detail-icon-btn.active i {
    color: #C41E3A;
}

/* 路线详情切换按钮 */
.route-detail-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.route-detail-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}

.route-detail-toggle:active {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
}

/* 面板收缩状态 */
.route-detail-panel.collapsed {
    transform: translateX(calc(100% - 60px));
    border-radius: 20px 0 0 20px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    right: -60px;
}

.route-detail-panel.collapsed .route-detail-header {
    padding-bottom: 0;
    border-bottom: none;
}

.route-detail-panel.collapsed .route-detail-title {
    opacity: 0;
    pointer-events: none;
    width: 0;
    overflow: hidden;
}

.route-detail-panel.collapsed .route-info-list,
.route-detail-panel.collapsed .route-action-buttons {
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
}

.route-detail-panel.collapsed .route-detail-toggle {
    width: 48px;
    height: 48px;
    background: #fff;
    color: #C41E3A;
    font-size: 18px;
    transform: rotate(0deg);
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.route-detail-panel {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.3s ease,
                box-shadow 0.3s ease;
}

.route-detail-header {
    transition: all 0.3s ease;
}

.route-detail-title {
    transition: all 0.3s ease;
}

.route-info-list,
.route-action-buttons {
    transition: all 0.3s ease;
}

.route-detail-header .fa-chevron-right:active {
    color: #C41E3A;
    transform: translateX(2px);
}

/* 路线信息列表 */
.route-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.route-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.route-info-icon {
    color: #C41E3A;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.route-info-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.route-info-value {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 700;
}

/* 操作按钮组 */
.route-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}

.route-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 14px;
    color: #555;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.route-action-btn i {
    font-size: 16px;
    color: #888;
    transition: all 0.25s ease;
}

.route-action-btn:active {
    transform: scale(0.96);
    border-color: #C41E3A;
    background: #fff5f5;
}

.route-action-btn.collected {
    border-color: #C41E3A;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    color: #C41E3A;
}

.route-action-btn.collected i {
    color: #C41E3A;
}

/* 底部操作栏 */
.route-bottom-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

/* 筛选按钮 */
.route-filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 56px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.route-filter-btn i {
    font-size: 24px;
    color: #666;
    margin-bottom: 4px;
}

.route-filter-btn span {
    font-size: 12px;
    color: #666;
}

.route-filter-btn:active {
    opacity: 0.7;
}

/* 开始导航按钮 */
.route-start-nav-btn {
    flex: 1;
    max-width: calc(100% - 80px);
    margin-left: 16px;
    padding: 16px 32px;
    background: linear-gradient(90deg, #E53935 0%, #C41E3A 50%, #D32F2F 100%);
    color: #fff;
    border: none;
    border-radius: 28px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(196, 30, 58, 0.35);
    }
    50% {
        box-shadow: 0 6px 22px rgba(196, 30, 58, 0.5);
    }
}

.route-start-nav-btn:active {
    transform: scale(0.98) translateY(1px);
    box-shadow: 0 3px 12px rgba(196, 30, 58, 0.4);
}

/* 地图canvas层优化 */
.route-map-container canvas,
.route-map-container .amap-container {
    touch-action: none;
    -webkit-touch-callout: none;
    outline: none;
}

/* 移动端适配优化 */
@media (max-width: 375px) {
    .route-category-menu {
        left: 8px;
        padding: 8px 4px;
    }

    .category-item {
        padding: 10px 12px;
        font-size: 12px;
        min-width: 110px;
    }

    .category-item i {
        font-size: 14px;
    }

    .route-map-controls {
        right: 8px;
    }

    .map-control-btn {
        width: 42px;
        height: 42px;
    }

    .route-detail-panel {
        bottom: 85px;
        padding: 14px 16px;
    }

    .route-start-nav-btn {
        padding: 14px 28px;
        font-size: 17px;
    }
    
    .route-bottom-bar {
        height: 72px;
        padding: 10px 14px;
    }
    
    .route-filter-btn {
        width: 56px;
        height: 52px;
    }
    
    .route-filter-btn i {
        font-size: 22px;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .route-header-nav {
        padding: 6px 0;
        padding-bottom: 14px;
    }

    .route-header-title {
        font-size: 17px;
    }

    .route-category-menu {
        top: 60px;
    }

    .route-map-controls {
        top: 60px;
    }

    .route-detail-panel {
        bottom: 70px;
        padding: 12px 16px;
        max-height: 40vh;
        overflow-y: auto;
    }

    .route-start-nav-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .route-bottom-bar {
        height: 64px;
        padding: 8px 14px;
    }
    
    .route-filter-btn {
        width: 52px;
        height: 48px;
    }
    
    .route-filter-btn i {
        font-size: 20px;
    }
}

/* ===== 新建路线弹窗 ===== */
.route-new-modal {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    z-index: 10000;
    align-items: flex-end;
    justify-content: center;
}

.route-new-modal.show {
    display: flex;
}

.route-new-overlay {
    display: none;
}

@keyframes routeOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.route-new-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    animation: routeModalSlideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes routeModalSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.route-new-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.route-new-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.route-new-header h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #C41E3A 0%, #EF5350 100%);
    border-radius: 2px;
}

.route-new-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.route-new-close:active {
    background: #e8e8e8;
    transform: scale(0.9);
}

.route-new-header-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

.route-new-reset {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.route-new-reset:active {
    background: #e0e0e0;
    transform: scale(0.9);
    color: #C41E3A;
}

.route-new-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    -webkit-overflow-scrolling: touch;
}

.route-new-field {
    margin-bottom: 18px;
}

.route-new-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.route-new-field label i {
    color: #C41E3A;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.route-waypoint-tip {
    font-size: 11px;
    font-weight: 500;
    color: #C41E3A;
    background: rgba(196, 30, 58, 0.08);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(196, 30, 58, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.route-waypoint-tip::before {
    content: '✨';
    font-size: 12px;
}

.route-duration-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.route-duration-input {
    flex: 1;
    height: 44px;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa;
}

.route-duration-input:focus {
    border-color: #C41E3A;
    background: #fff;
}

.route-duration-unit {
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.route-duration-unit:focus {
    border-color: #C41E3A;
    background: #fff;
}

.route-new-field input {
    width: 100%;
    height: 44px;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa;
    box-sizing: border-box;
}

.route-new-field input:focus {
    border-color: #C41E3A;
    background: #fff;
}

.route-new-field input::placeholder {
    color: #bbb;
}

.route-end-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.route-end-input-wrapper input {
    flex: 1;
}

.route-get-end-btn {
    height: 44px;
    padding: 0 16px;
    background: linear-gradient(135deg, #d81e06 0%, #f44336 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(216, 30, 6, 0.25);
}

.route-get-end-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(216, 30, 6, 0.35);
}

.route-get-end-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(216, 30, 6, 0.25);
}

.route-start-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.route-start-input-wrapper input {
    flex: 1;
}

.route-get-start-btn {
    height: 44px;
    padding: 0 16px;
    background: linear-gradient(135deg, #7D8840, #5D672C);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(125, 136, 64, 0.3);
}

.route-get-start-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(125, 136, 64, 0.4);
}

.route-get-start-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(125, 136, 64, 0.3);
}

.route-waypoint-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 44px;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    padding: 8px 12px;
    background: #fafafa;
    align-items: center;
}

.route-waypoint-hint {
    font-size: 13px;
    color: #bbb;
}

.route-waypoint-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #FFF5F5, #FFE4E1);
    border: 1px solid rgba(196, 30, 58, 0.2);
    border-radius: 16px;
    font-size: 12px;
    color: #C41E3A;
    font-weight: 500;
    animation: waypointTagIn 0.25s ease;
}

@keyframes waypointTagIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.route-waypoint-tag .waypoint-delete {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(196, 30, 58, 0.15);
    color: #C41E3A;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s;
}

.route-waypoint-tag .waypoint-delete:active {
    background: #C41E3A;
    color: #fff;
    transform: scale(0.85);
}

.route-new-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.route-distance-options,
.route-travel-options,
.route-duration-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.route-option-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.route-option-btn i {
    font-size: 12px;
}

.route-option-btn:active {
    transform: scale(0.95);
}

.route-option-btn.active {
    background: linear-gradient(135deg, #C41E3A, #D32F2F);
    color: #fff;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.route-search-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #3B8DFC, #5A9BF7);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(59, 141, 252, 0.3);
}

.route-search-icon-btn:active {
    transform: scale(0.92);
    box-shadow: 0 1px 4px rgba(59, 141, 252, 0.3);
}

.route-new-footer {
    padding: 14px 20px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    display: flex;
    gap: 12px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.route-generate-btn {
    flex: 1;
    height: 48px;
    border-radius: 24px;
    border: none;
    background: linear-gradient(135deg, #C41E3A, #D32F2F);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.route-generate-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.route-random-btn {
    height: 48px;
    padding: 0 20px;
    border-radius: 24px;
    border: 2px solid #C41E3A;
    background: #fff;
    color: #C41E3A;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.route-random-btn:active {
    transform: scale(0.97);
    background: #FFF5F5;
}

@media (max-width: 375px) {
    .route-new-content {
        max-height: 90vh;
    }
    .route-option-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    .route-generate-btn,
    .route-random-btn {
        height: 44px;
        font-size: 14px;
    }
}

/* ===== AI智讲页面 - 新版设计 ===== */
.ai-story-page {
    background: #d40e0e !important;
    max-width: 480px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    height: 100%;
    overflow: hidden !important;
}

.ai-story-page .status-bar {
    background: #d40e0e !important;
    border-bottom: none !important;
}

.ai-story-page .status-bar::before,
.ai-story-page .status-bar::after {
    display: none !important;
}

.ai-new-container {
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #d40e0e 0%, #fec5c5 100%);
}

/* Nav bar */
.ai-new-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 12px;
    flex-shrink: 0;
    touch-action: none;
    position: relative;
    z-index: 10;
    background: transparent;
}

.ai-new-back-btn {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s ease;
}

/* 聊天模式下返回按钮颜色变为深色（因为背景是浅灰色） */
.ai-new-container.chat-mode .ai-new-back-btn {
    color: #1f2937;
}

/* 聊天模式下返回按钮hover效果 */
.ai-new-container.chat-mode .ai-new-back-btn:hover {
    color: #dc2626;
}

.ai-new-back-btn span {
    margin-left: 2px;
}

.ai-new-func-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFD100 0%, #FFB800 100%);
    color: #bf1e1e;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 20px;
    border: none;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.ai-new-func-btn:hover {
    box-shadow: none;
}

.ai-new-func-btn:active {
    box-shadow: none;
    transform: scale(0.97);
}

.ai-new-func-btn.active {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
    box-shadow: none;
}

.ai-new-func-btn.active:hover {
    box-shadow: none;
}

.ai-new-func-btn #voice-icon-span {
    margin-right: 6px;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(1px);
}

/* Pull-down hint */
.ai-new-pulldown {
    display: flex;
    align-items: center;
    padding: 0 24px 12px;
    flex-shrink: 0;
}

.ai-new-pulldown-placeholder {
    height: 32px;
    flex-shrink: 0;
}

.ai-new-pulldown-line {
    flex: 1;
    height: 0;
    background: transparent;
}

.ai-new-pulldown-text {
    padding: 0 12px;
    color: #fff;
    font-size: 12px;
    opacity: 0.95;
}

/* Card region */
.ai-new-card-region {
    margin: 0 14px;
    position: relative;
    flex-shrink: 0;
    margin-top: 12px;
}

/* Character image */
.ai-new-character {
    position: absolute;
    right: -6px;
    top: -35px;
    width: 105px;
    height: 140px;
    z-index: 20;
    pointer-events: none;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}

.ai-new-character img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* White card */
.ai-new-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
}

.ai-new-card-header {
    padding: 16px 18px 12px;
}

.ai-new-hi-wrap {
    margin-bottom: 4px;
    max-width: 38%;
}

.ai-new-hi-img {
    width: 55px; /* HI图片比例 */
    height: auto;
    transform: skewX(-3deg);
    display: block;
}

.ai-new-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 6px;
    max-width: 75%;
}

.ai-new-desc {
    font-size: 13px;
    color: #333;
    line-height: 1.55;
    margin-top: 8px;
}

.ai-new-card-divider {
    height: 1px;
    background: #f0f0f0;
}

.ai-new-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.15s;
}

.ai-new-menu-item:hover,
.ai-new-menu-item:active {
    background: #fafafa;
}

.ai-new-menu-item span {
    font-size: 14.5px;
    color: #000;
    font-weight: 500;
}

.ai-new-menu-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 0 18px;
}

/* 换一换 */
.ai-new-refresh-wrap {
    display: flex;
    justify-content: flex-end;
    padding-right: 14px;
    margin-top: 10px;
    flex-shrink: 0;
}

.ai-new-refresh-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border-radius: 999px;
    font-size: 13px;
    color: #555;
    padding: 7px 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    transition: transform 0.15s;
}

.ai-new-refresh-btn:active {
    transform: scale(0.95);
}

/* Bottom input bar */
.ai-new-bottom-bar {
    background: linear-gradient(180deg, #fef2f2 0%, #ffffff 40%, #ffffff 100%);
    border-top: 1px solid #fecaca;
    flex-shrink: 0;
    touch-action: none;
    position: relative;
    z-index: 20;
    padding-bottom: env(safe-area-inset-bottom, 16px);
    min-height: 60px;
    width: 100%;
}

.ai-new-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 32px;
}

.ai-new-icon-btn {
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-new-input-box {
    flex: 1;
    height: 40px;
    border-radius: 999px;
    background: #f4f4f4;
    padding: 0 16px;
    font-size: 14px;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    outline: none;
    transition: all 0.2s;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

.ai-new-input-box::placeholder {
    color: #9ca3af;
}

.ai-new-input-box:focus {
    border-color: #fca5a5;
    box-shadow: 0 0 0 2px rgba(254,202,202,0.4), inset 0 1px 2px rgba(0,0,0,0.04);
}

.ai-new-send-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.4);
}

.ai-new-send-btn:active {
    transform: scale(0.9);
    box-shadow: 0 1px 4px rgba(30, 64, 175, 0.3);
}

/* ===== ChatModal (kept from old design) ===== */
.ai-chat-modal-overlay {
    position: absolute;
    inset: 0;
    z-index: 49;
    background: rgba(0,0,0,0.3);
}

.ai-chat-modal {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    background: rgba(249,250,251,0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: ai-modal-in 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes ai-modal-in {
    from { transform: scale(0.8) translateY(100px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.ai-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 48px 24px 16px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.ai-modal-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    flex-shrink: 0;
}

.ai-modal-avatar svg {
    width: 24px;
    height: 24px;
}

.ai-modal-info {
    flex: 1;
}

.ai-modal-info h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.ai-status-online {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #059669;
    font-weight: 500;
}

.ai-status-ping-wrap {
    position: relative;
    width: 8px;
    height: 8px;
    display: inline-flex;
    flex-shrink: 0;
}

.ai-status-ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #34d399;
    animation: status-ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
}

@keyframes status-ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}

.ai-status-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
}

.ai-status-text {
    margin-left: 2px;
}

.ai-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.ai-modal-close:hover,
.ai-modal-close:active {
    background: #f3f4f6;
}

.ai-modal-close svg {
    width: 24px;
    height: 24px;
}

.ai-modal-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ai-msg-row {
    display: flex;
    width: 100%;
    animation: msg-in 0.3s ease-out;
}

@keyframes msg-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-msg-bot {
    justify-content: flex-start;
}

.ai-msg-user {
    justify-content: flex-end;
}

.ai-msg-bubble {
    max-width: 75%;
    padding: 12px 20px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.65;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.ai-msg-bot .ai-msg-bubble {
    background: #fff;
    color: #1f2937;
    border-radius: 4px 16px 16px 16px;
    border: 1px solid #f3f4f6;
}

.ai-msg-user .ai-msg-bubble {
    background: #dc2626;
    color: #fff;
    border-radius: 16px 4px 16px 16px;
}

.ai-modal-input-area {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border-top: 1px solid #f3f4f6;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.ai-input-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    padding: 0;
}

.ai-input-btn:hover,
.ai-input-btn:active {
    color: #dc2626;
    border-color: #fecaca;
}

.ai-camera-btn svg,
.ai-mic-btn svg {
    width: 20px;
    height: 20px;
}

.ai-input-send {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(220,38,38,0.3);
}

.ai-input-send:disabled {
    background: #d1d5db !important;
    border-color: #d1d5db !important;
    color: #9ca3af !important;
    box-shadow: none;
}

.ai-input-send svg {
    width: 20px;
    height: 20px;
    margin-left: -2px;
}

.ai-input-wrap {
    flex: 1;
    background: #f9fafb;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: 0 16px;
    display: flex;
    align-items: center;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
    transition: all 0.2s;
}

.ai-input-wrap:focus-within {
    border-color: #fca5a5;
    box-shadow: 0 0 0 2px rgba(254,202,202,0.4), inset 0 1px 2px rgba(0,0,0,0.04);
}

.ai-input-wrap input {
    flex: 1;
    background: transparent;
    outline: none;
    border: none;
    font-size: 15px;
    color: #1f2937;
    padding: 10px 0;
}

.ai-input-wrap input::placeholder {
    color: #9ca3af;
}

.ai-new-uploaded-images,
.ai-modal-uploaded-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    max-height: 80px;
    overflow-y: auto;
}

.ai-new-uploaded-image-item,
.ai-modal-uploaded-image-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.ai-new-uploaded-image-name,
.ai-modal-uploaded-image-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-new-uploaded-image-delete,
.ai-modal-uploaded-image-delete {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ai-new-uploaded-image-delete:hover,
.ai-modal-uploaded-image-delete:hover,
.ai-new-uploaded-image-delete:active,
.ai-modal-uploaded-image-delete:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.9);
}

.ai-mic-btn.recording {
    position: relative;
}

.ai-mic-btn.recording::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #DC2626, #EF4444, #FCA5A5, #DC2626);
    background-size: 300% 300%;
    animation: mic-glow 1.5s ease-in-out infinite;
    opacity: 0.6;
    z-index: -1;
}

.ai-mic-btn.recording svg {
    stroke: #DC2626 !important;
    fill: rgba(220, 38, 38, 0.15);
    animation: mic-inner-flash 0.8s ease-in-out infinite;
}

@keyframes mic-glow {
    0%, 100% {
        opacity: 0.3;
        background-position: 0% 50%;
    }
    50% {
        opacity: 0.7;
        background-position: 100% 50%;
    }
}

@keyframes mic-inner-flash {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

/* ===== 新版聊天界面样式 ===== */

/* IP界面和聊天界面的容器切换 */
.ai-new-container.chat-mode {
    background: linear-gradient(180deg, #fff5f5 0%, #fff8f8 30%, #ffffff 70%, #ffffff 100%) !important;
}

/* IP界面区域 */
.ai-ip-interface {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    transform: translateY(0);
    min-height: 0;
}

.ai-ip-interface.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

/* 聊天界面区域 */
.ai-chat-interface {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    bottom: 70px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(30px);
    pointer-events: none;
    background: linear-gradient(180deg, #fff5f5 0%, #fff8f8 30%, #ffffff 70%, #ffffff 100%);
    
    /* 确保不超出容器 */
    max-width: 100%;
    max-height: calc(100vh - 122px); /* 52px navbar + 70px bottom bar */
    box-sizing: border-box;
}

.ai-chat-interface.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: none;
}

/* 聊天消息容器 */
.ai-chat-messages-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 16px 12px 8px;
    min-height: 0;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
    position: relative;
    background: transparent !important;
}

.ai-chat-messages-container::-webkit-scrollbar {
    width: 3px;
}

.ai-chat-messages-container::-webkit-scrollbar-track {
    background: transparent;
}

.ai-chat-messages-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

/* 消息容器 - 核心布局 */
.ai-chat-messages {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    gap: 4px !important;
    background: transparent !important;
}

/* 兼容旧版iOS：使用margin替代gap */
.ai-chat-messages > * {
    margin-bottom: 4px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.ai-chat-messages > *:last-child {
    margin-bottom: 0 !important;
}

/* 消息行布局 - 统一定义 */
.chat-message-row {
    display: flex;
    align-items: flex-start;
    width: 100%;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    
    /* 动画优化：使用transform和opacity，避免触发layout */
    animation: messageSlideIn 0.3s ease-out;
    will-change: opacity, transform; /* 提示浏览器预渲染 */
}

/* 用户消息：靠右显示，无头像 */
.user-message {
    justify-content: flex-end;
    padding-right: 12px; /* 右侧边距 */
    padding-left: 48px; /* 左侧留出空间（与AI头像位置对齐） */
}

.user-message .message-content {
    max-width: 72%; /* 稍宽一些，充分利用右侧空间 */
    
    /* 时间戳右对齐，与气泡右边缘对齐 */
    align-items: flex-end;
}

/* AI消息：靠左显示，带头像 */
.ai-message {
    justify-content: flex-start;
    padding-left: 12px; /* 左侧边距 */
    padding-right: 48px; /* 右侧留出空间（视觉平衡） */
}

.ai-message .message-avatar {
    margin-right: 8px; /* 头像和气泡间距（紧凑） */
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98); /* 优化：更自然的入场 */
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 消息状态：已发送（可选视觉反馈） */
.chat-message-row.sent {
    /* 可以添加特殊样式，如淡蓝色背景等 */
}

/* 消息状态：正在输入（可选） */
.chat-message-row.sending {
    opacity: 0.7; /* 半透明，表示正在处理 */
}

/* 空消息或极短消息的样式优化 */
.message-bubble:empty::before,
.message-bubble:blank::before {
    content: '\00a0'; /* 不换行空格，防止塌陷 */
    visibility: hidden; /* 不可见但占据空间 */
}

/* 极短消息（1-3个字符）的特殊处理 */
.short-message .message-bubble {
    padding: 10px 16px; /* 增加水平内边距，让短文字不显得太窄 */
}

/* 空消息的样式 */
.empty-message .message-bubble {
    min-height: 38px; /* 保持最小高度 */
    background-color: #f9fafb; /* 浅灰背景提示空内容 */
}

/* 消息头像 */
.message-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: #fff;
    margin-top: 2px;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 消息内容区 - 统一配置（仅限AI聊天页面，避免影响消息中心） */
.chat-message-row .message-content,
.ai-chat-messages-container .message-content {
    display: flex;
    flex-direction: column;
    max-width: 70%; /* 统一最大宽度 */
    min-width: 0;
    flex: 0 1 auto; /* 防止被压缩 */
    margin: 0 !important;
    padding: 0 !important;
}

.user-message .message-content {
    align-items: flex-end; /* 用户消息：右对齐 */
}

.ai-message .message-content {
    align-items: flex-start; /* AI消息：左对齐 */
}

/* 消息气泡 - 核心样式（已优化） */
.message-bubble {
    padding: 4px 14px 6px !important; /* 内边距：上4px，下6px，左右14px */
    font-size: 14px !important; /* 基础字号 */
    line-height: 1.4 !important; /* 行高：字号的1.4倍 */
    margin: 0 !important; /* 移除外边距 */
    
    /* 文本处理 - 修复首行空白问题 */
    word-wrap: break-word; /* 允许单词内断词 */
    overflow-wrap: break-word; /* 标准断行属性 */
    white-space: normal !important; /* 正常换行，不保留多余空白 */
    
    /* 尺寸控制 */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border-radius: 16px; /* 圆角半径 */
    position: relative;
    
    /* 关键修复 */
    max-width: 100%;
    display: inline-block;
    min-width: 40px; /* 最小宽度 */
    min-height: auto; /* 自动高度 */
    vertical-align: top; /* 顶部对齐 */
    text-indent: 0 !important; /* 强制移除首行缩进 */
}

/* 用户消息气泡：红色渐变背景 */
.user-bubble {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    border-radius: 16px 4px 16px 16px; /* 右上角小圆角 */
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.18);
    text-align: left;
}

/* AI消息气泡：白色背景+浅灰边框 */
.ai-bubble {
    background: #ffffff;
    color: #1f2937;
    border-radius: 4px 16px 16px 16px; /* 左上角小圆角 */
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    text-align: left;
}

/* 消息时间戳 */
.message-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px; /* 进一步减少间距 */
    padding: 0 2px;
    line-height: 1.2;
    
    /* 防止时间戳换行 */
    white-space: nowrap;
}

/* 用户消息的时间戳：右对齐 */
.user-message .message-time {
    text-align: right;
}

/* AI消息的时间戳：左对齐 */
.ai-message .message-time {
    text-align: left;
}

/* 时间分割线 */
.ai-time-divider {
    text-align: center;
    margin: 8px 0;
    position: relative;
}

.ai-time-divider::before,
.ai-time-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #e5e7eb;
}

.ai-time-divider::before {
    left: 0;
}

.ai-time-divider::after {
    right: 0;
}

.ai-time-divider span {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    color: #9ca3af;
    background: #f9fafb;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

/* AI正在输入的加载指示器 */
.ai-typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 8px;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ai-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.typing-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    padding: 12px 18px;
    border-radius: 4px 18px 18px 18px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc2626;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* 输入框优化为多行文本框 - 统一定义 */
.ai-new-input-box {
    flex: 1;
    height: auto;
    min-height: 40px;
    max-height: 120px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff7f7 0%, #ffffff 50%, #fef9f9 100%);
    padding: 10px 16px;
    font-size: 16px; /* iOS防自动缩放 */
    color: #1f2937;
    border: 1px solid #fca5a5;
    outline: none;
    transition: all 0.2s;
    box-shadow: inset 0 1px 3px rgba(252, 165, 165, 0.15);
    resize: none;
    overflow-y: auto;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    -webkit-appearance: none;
    appearance: none;
}

.ai-new-input-box::placeholder {
    color: #9ca3af;
    font-size: 14px; /* placeholder可以小一点 */
}

.ai-new-input-box:focus {
    border-color: #fca5a5;
    box-shadow: 0 0 0 2px rgba(254,202,202,0.4), inset 0 1px 2px rgba(0,0,0,0.04);
    outline: none;
}

/* 发送按钮状态 */
.ai-new-send-btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
    transform: scale(0.95);
}

.ai-new-send-btn.active {
    opacity: 1;
    transform: scale(1);
    cursor: pointer;
}

.ai-new-send-btn.active:hover {
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.5);
    transform: scale(1.05);
}

.ai-new-send-btn.active:active {
    transform: scale(0.92);
}

.ai-new-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* 响应式适配 - 手机APP专项优化（已优化） */
@media screen and (max-width: 375px) {
    /* iPhone SE / 小屏Android (375px及以下) */
    .chat-message-row {
        padding: 0 6px; /* 更紧凑的左右边距 */
    }
    
    .message-bubble {
        font-size: 13px; /* 稍小字号 */
        padding: 9px 11px; /* 调整内边距 */
        line-height: 1.45; /* 调整行高 */
    }
    
    .message-avatar {
        width: 34px; /* 小一点的头像 */
        height: 34px;
    }
    
    .ai-chat-messages-container {
        padding: 8px 4px 6px; /* 减少容器内边距 */
    }
    
    .chat-message-row .message-content,
    .ai-chat-messages-container .message-content {
        max-width: 74%; /* 小屏幕可以更宽一些 */
    }
    
    /* 用户消息：小屏幕优化 */
    .user-message {
        padding-right: 10px; /* 右侧边距 */
        padding-left: 42px; /* 左侧空间（稍减） */
    }
    
    /* AI消息：小屏幕优化 */
    .ai-message {
        padding-left: 10px; /* 左侧边距 */
        padding-right: 42px; /* 右侧空间（稍减） */
    }
    
    .ai-message .message-avatar {
        margin-right: 6px; /* 头像间距（紧凑） */
    }
}

@media screen and (min-width: 376px) and (max-width: 414px) {
    /* iPhone 6/7/8 / 标准Android (376-414px) */
    .chat-message-row {
        padding: 0 8px; /* 标准边距 */
    }
    
    .message-bubble {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .ai-chat-messages-container {
        padding: 10px 8px 8px;
    }
    
    .chat-message-row .message-content,
    .ai-chat-messages-container .message-content {
        max-width: 71%; /* 标准宽度 */
    }
    
    .user-message {
        padding-right: 11px;
        padding-left: 46px;
    }
    
    .ai-message {
        padding-left: 11px;
        padding-right: 46px;
    }
}

@media screen and (min-width: 415px) {
    /* iPhone Plus / 大屏手机 (415px及以上) */
    .chat-message-row {
        padding: 0 10px; /* 宽松的左右边距 */
    }
    
    .message-bubble {
        font-size: 14.5px; /* 稍大字号 */
        padding: 10px 13px;
    }
    
    .ai-chat-messages-container {
        padding: 12px 10px 8px;
    }
    
    .chat-message-row .message-content,
    .ai-chat-messages-container .message-content {
        max-width: 69%; /* 大屏幕可以稍窄 */
    }
    
    .user-message {
        padding-right: 12px;
        padding-left: 48px;
    }
    
    .ai-message {
        padding-left: 12px;
        padding-right: 48px;
    }
}

/* 触摸反馈优化 */
@media (hover: none) and (pointer: coarse) {
    .ai-new-send-btn:active {
        transform: scale(0.88);
    }
    
    .ai-new-menu-item:active {
        background: #f5f5f5;
        transform: scale(0.98);
    }
    
    .message-bubble {
        -webkit-tap-highlight-color: transparent;
    }
}

/* ===== 强制减少消息间距 ===== */
.ai-chat-messages-container .ai-chat-messages {
    gap: 2px !important;
}

.ai-chat-messages-container .ai-chat-messages > .chat-message-row {
    margin-bottom: 2px !important;
    padding: 0 !important;
}

.ai-chat-messages-container .ai-chat-messages > .chat-message-row:last-child {
    margin-bottom: 0 !important;
}

.user-message,
.ai-message {
    margin: 0 !important;
    padding: 0 !important;
}

/* 强制修复消息气泡间距 - 最高优先级 */
.ai-chat-messages-container .chat-message-row .message-content .message-bubble {
    padding-top: 4px !important;
    padding-bottom: 6px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    line-height: 1.35 !important;
    font-size: 14px !important;
    margin: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
}

/* 全局盒模型重置（关键！） */
.ai-chat-interface,
.ai-chat-messages,
.ai-chat-messages-container,
.chat-message-row,
.message-content,
.message-bubble {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

/* ===== 目的地卡片样式（高德地图POI搜索结果） ===== */
.destination-card {
    margin-top: 8px;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: cardSlideIn 0.3s ease-out;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.destination-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.15);
}

@keyframes cardSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dest-card-inner {
    display: flex;
    flex-direction: column;
}

.dest-card-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 50%, #fecaca 100%);
}

.dest-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.dest-card-image:hover img {
    transform: scale(1.05);
}

.dest-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #dc2626;
}

.dest-card-no-image i {
    font-size: 32px;
}

.dest-card-no-image span {
    font-size: 14px;
    font-weight: 500;
}

/* 导航遮罩层（图片上的"点击导航"提示） */
.dest-card-nav-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(220, 38, 38, 0.85) 0%, rgba(220, 38, 38, 0) 100%);
    padding: 24px 12px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.25s;
}

.dest-card-image:hover .dest-card-nav-overlay,
.dest-card-nav-overlay:active {
    opacity: 1;
}

.dest-card-nav-overlay i {
    font-size: 16px;
}

/* 卡片信息区 */
.dest-card-info {
    padding: 12px;
}

.dest-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.dest-card-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dest-card-type {
    flex-shrink: 0;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626;
    font-weight: 600;
    white-space: nowrap;
}

.dest-card-address {
    margin: 0 0 10px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.dest-card-address i {
    margin-top: 2px;
    color: #dc2626;
    font-size: 11px;
    flex-shrink: 0;
}

/* 卡片操作按钮 */
.dest-card-actions {
    display: flex;
    gap: 8px;
}

.dest-card-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.dest-card-nav-btn:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    transform: translateY(-1px);
}

.dest-card-nav-btn:active {
    transform: scale(0.96);
}

.dest-card-nav-btn i {
    font-size: 14px;
}

.dest-card-tel-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 12px;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    background: #ffffff;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dest-card-tel-btn:hover {
    background: #fef2f2;
    border-color: #dc2626;
}

.dest-card-tel-btn i {
    font-size: 12px;
}

/* 带目的地卡片的AI消息，增加底部间距 */
.has-destination-card .message-bubble {
    border-bottom-left-radius: 4px !important;
}

/* ===== 活动卡片样式（Tavily联网搜索结果）===== */

/* 活动卡片容器 */
.activity-cards-container {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 单个活动卡片 */
.activity-card {
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    animation: actCardSlideIn 0.3s ease-out;
    transition: transform 0.2s, box-shadow 0.2s;
}

.activity-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.10);
}

@keyframes actCardSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.act-card-inner {
    display: flex;
    flex-direction: column;
}

/* 卡片头部：类型标签 + 标题 + 日期 */
.act-card-header {
    padding: 12px 14px 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.act-type-badge {
    flex-shrink: 0;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.4;
}

.act-card-date {
    flex-shrink: 0;
    font-size: 10px;
    color: #9ca3af;
    line-height: 1.8;
}

.act-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
    flex: 1;
    word-break: break-word;
}

/* 相关度指示条 */
.act-card-relevance {
    height: 3px;
    background: #f3f4f6;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 14px 4px;
}

.act-relevance-bar {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #f97316);
    border-radius: 2px;
    transition: width 0.5s ease-out;
}

/* 卡片主体：描述 + 元信息 */
.act-card-body {
    padding: 4px 14px 10px;
}

.act-card-desc {
    margin: 0 0 8px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.act-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.act-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.act-meta-item i {
    width: 14px;
    text-align: center;
    color: #dc2626;
    font-size: 11px;
    flex-shrink: 0;
}

/* 卡片底部操作栏 */
.act-card-footer {
    padding: 8px 14px 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-top: 1px solid #f3f4f6;
}

.act-card-link-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.act-card-link-btn:hover,
.act-card-link-btn:active {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #111827;
}

.act-card-link-btn i {
    font-size: 12px;
}

/* 活动卡片中的导航按钮 */
.act-card-nav-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    background: #fff;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.act-card-nav-btn:hover,
.act-card-nav-btn:active {
    background: #fef2f2;
    border-color: #dc2626;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15);
}

.act-card-nav-btn i {
    font-size: 12px;
}

/* 带活动卡片的AI消息样式调整 */
.has-activity-cards .message-bubble {
    border-bottom-left-radius: 4px !important;
}

/* ===== AI声音设置页面样式 ===== */

/* 提示框 */
.voice-tip-box {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: linear-gradient(135deg, #fef2f2, #fce7f3);
    border-radius: 10px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    border: 1px solid #fecaca;
}

/* 音色卡片 */
.voice-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.voice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.12);
}

.voice-card.voice-selected {
    border-color: var(--voice-accent, #ec4899);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.25), 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* 勾选图标 */
.voice-check-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--voice-accent, #dc2626);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    animation: checkPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkPopIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 卡片头部：头像+标签 */
.voice-card-header {
    padding: 24px 16px 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
}

.voice-avatar-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.voice-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid;
    font-size: 20px;
}

.voice-tag {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* 卡片主体 */
.voice-card-body {
    padding: 4px 16px 14px;
}

.voice-name-cn {
    margin: 0 0 2px;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    letter-spacing: 1px;
}

.voice-name-en {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.voice-desc {
    margin: 6px 0 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* 试听按钮 */
.voice-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 8px 16px 14px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--voice-accent, #dc2626), color-mix(in srgb, var(--voice-accent, #dc2626) 70%, #ffffff));
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.voice-play-btn:hover,
.voice-play-btn:active {
    transform: scale(0.96);
    filter: brightness(1.1);
}

.voice-play-btn i {
    font-size: 14px;
}

/* 底部当前选择信息 */
.voice-current-info {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fef2f2, #fff7ed);
    border-radius: 12px;
    font-size: 13px;
    color: #4b5563;
    border: 1px solid #fed7aa;
}

.voice-current-info strong {
    color: #dc2626;
}

/* ===== 确认按钮样式 ===== */
.voice-confirm-btn-active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.voice-confirm-btn-active:hover,
.voice-confirm-btn-active:active {
    transform: scale(0.98);
    filter: brightness(1.1);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.voice-confirm-btn-active i {
    font-size: 18px;
}

.voice-confirm-btn-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #9ca3af;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ===== 待选状态样式（预选但未确认）===== */
.voice-pending {
    border-color: #f59e0b !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2) !important;
    animation: pendingPulse 2s infinite;
}

@keyframes pendingPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15); }
    50% { box-shadow: 0 4px 24px rgba(245, 158, 11, 0.35); }
}

.voice-pending-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f59e0b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    animation: clockSpin 3s linear infinite;
}

@keyframes clockSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 🎯 #1-4: 触摸优化 */
.ai-story-page {
    /* 消除300ms点击延迟 */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none; /* 禁用长按菜单 */
    user-select: none; /* 禁止文字选择 */
    -webkit-user-select: none;
    
    /* 防止iOS弹性滚动影响 */
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
}

/* 按钮触摸反馈 */
.ai-new-back-btn,
.ai-new-func-btn,
.ai-new-menu-item,
.ai-new-refresh-btn,
.ai-new-send-btn,
.ai-new-icon-btn {
    position: relative;
    overflow: hidden;
}

/* 按钮按下效果 */
.ai-new-back-btn:active,
.ai-new-func-btn:active,
.ai-new-menu-item:active,
.ai-new-refresh-btn:active,
.ai-new-send-btn:not(:disabled):active {
    transform: scale(0.96);
    opacity: 0.9;
    transition: transform 0.1s, opacity 0.1s;
}

/* 发送按钮特殊处理 */
.ai-new-send-btn:not(:disabled):hover {
    transform: scale(1.05);
}

.ai-new-send-btn:not(:disabled):active {
    transform: scale(0.92) !important;
}

/* iOS Safari 滚动优化 */
@supports (-webkit-touch-callout: none) {
    .ai-chat-messages-container {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    .ai-chat-interface.visible {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* iOS 安全区域适配 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .ai-new-bottom-bar {
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }
    
    .ai-chat-messages-container {
        padding-bottom: 8px;
    }
}

/* Android 低版本兼容 */
@media screen and (-webkit-device-pixel-ratio: 1) and (orientation: portrait) {
    .ai-chat-messages-container {
        will-change: scroll-position;
    }
}

/* 防止iOS双击缩放 */
.ai-story-page * {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

/* 🎯 #5-7: 软键盘优化 */
.ai-new-container {
    display: flex;
    flex-direction: column;
    touch-action: none;
}

.ai-new-container.chat-mode {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #fff5f5 0%, #fff8f8 30%, #ffffff 70%, #ffffff 100%) !important;
    z-index: 10;
}

/* iOS键盘收起后页面回弹 */
@supports (-webkit-touch-callout: none) {
    .ai-new-container.chat-mode {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .ai-chat-messages-container {
        /* 防止iOS橡皮筋效果 */
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }
}

/* 底部输入栏固定 */
.ai-new-bottom-bar {
    position: relative;
    flex-shrink: 0;
    z-index: 100;
    background: #fff !important;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
    padding-bottom: env(safe-area-inset-bottom, 16px); /* iPhone X+ 安全区域 */
    border-top: 1px solid #e8e8e8;
    min-height: 60px;
}

/* 🎯 #8-10: 性能与资源优化 */

/* 图片懒加载 */
.message-avatar img,
.ai-avatar-small img,
.ai-new-character img,
.ai-new-hi-img {
    background: transparent;
}

/* 图片加载完成后清除占位背景 */
.message-avatar img.loaded,
.ai-avatar-small img.loaded,
.ai-new-character img.loaded,
.ai-new-hi-img.loaded {
    animation: none !important;
    background: none !important;
}

/* 图片加载失败状态 */
.message-avatar img.image-error,
.ai-avatar-small img.image-error,
.ai-new-character img.image-error,
.ai-new-hi-img.image-error {
    animation: none !important;
    background: #f3f4f6 !important;
    opacity: 0.6;
}

/* 低配手机动画降级 */
@media (prefers-reduced-motion: reduce) or (max-width: 360px) {
    /* 禁用或简化动画 */
    .chat-message-row {
        animation: none !important;
        transition: none !important;
    }
    
    .message-bubble {
        transition: none !important;
    }
    
    .typing-dots span {
        animation: none !important;
        opacity: 0.6;
    }
    
    @keyframes messageSlideIn {
        from, to { 
            opacity: 1; 
            transform: none; 
        }
    }
}

/* 后台切换可见性优化 */
.ai-chat-interface.visible {
    /* 使用will-change提示浏览器预渲染 */
    will-change: contents;
}

/* 内存压力下的样式降级 */
@media (max-device-memory: 2gb) and (hover: none) and (pointer: coarse) {
    /* 减少阴影和模糊效果 */
    .user-bubble,
    .ai-bubble {
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }
    
    /* 降低图片质量（通过CSS） */
    .message-avatar img,
    .ai-avatar-small img {
        image-rendering: -webkit-optimize-contrast;
        filter: blur(0); /* 触发GPU加速 */
    }
}

/* ===== AI 讲解页面样式 ===== */
.ai-guide-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #1a1a1a;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

.ai-guide-container {
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 32px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.ai-guide-status-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    flex-shrink: 0;
    background: linear-gradient(180deg, #C41E3A 0%, #E53935 100%);
    z-index: 40;
}

.ai-guide-status-bar .time {
    font-weight: 700;
}

.ai-guide-status-bar .icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ai-guide-header {
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
}

.ai-guide-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
}

.ai-guide-back-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border-radius: 0;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-guide-back-btn:hover {
    background: rgba(255,255,255,0.15);
}

.ai-guide-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.ai-guide-dropdown-wrapper {
    position: relative;
}

.ai-guide-menu-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border-radius: 0;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-guide-menu-btn:hover {
    background: rgba(255,255,255,0.15);
}

.ai-guide-dropdown {
    position: absolute;
    right: 0;
    top: 56px;
    width: 144px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s ease;
    z-index: 40;
}

.ai-guide-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ai-guide-dropdown-item {
    width: 100%;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.ai-guide-dropdown-item:hover {
    background: #f3f4f6;
}

.ai-guide-search {
    padding: 0 16px 16px;
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.ai-guide-search.visible {
    height: auto;
    opacity: 1;
}

.ai-guide-search-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-guide-search-icon {
    flex-shrink: 0;
}

.ai-guide-search-input {
    flex: 1;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 9999px;
    padding: 10px 16px;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.ai-guide-search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.ai-guide-search-btn {
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 9999px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-guide-search-btn:hover {
    background: #b91c1c;
}

.ai-guide-hero {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 65%;
    overflow: hidden;
}

.ai-guide-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-guide-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 128px;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.ai-guide-hero-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    z-index: 5;
}

.ai-guide-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ai-guide-badge {
    position: absolute;
    top: 48%;
    right: 20px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 10;
}

.ai-guide-badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.ai-guide-badge span {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
}

.ai-guide-image-modal {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    flex-direction: column;
    z-index: 50;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.ai-guide-image-modal.open {
    transform: translateY(0);
    opacity: 1;
}

.ai-guide-image-modal-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ai-guide-image-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
}

.ai-guide-image-modal-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.ai-guide-image-modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    border: none;
    color: #fff;
    cursor: pointer;
}

.ai-guide-image-modal-content {
    flex: 1;
    overflow-y: auto;
}

.ai-guide-image-modal-img {
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
}

.ai-guide-image-modal-info {
    background: #fff;
    border-radius: 24px 24px 0 0;
    margin-top: -20px;
    position: relative;
    padding: 24px 16px;
}

.ai-guide-image-modal-handle {
    width: 48px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin: 0 auto 20px;
}

.ai-guide-image-modal-h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.ai-guide-image-modal-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ai-guide-image-modal-tag {
    background: #fef2f2;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
}

.ai-guide-image-modal-meta span:last-child {
    color: #6b7280;
    font-size: 14px;
}

.ai-guide-image-modal-desc {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 16px;
}

.ai-guide-image-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ai-guide-image-modal-grid-img {
    width: 100%;
    height: 128px;
    object-fit: cover;
    border-radius: 16px;
}

.ai-guide-image-modal-footer {
    padding: 16px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

.ai-guide-start-btn {
    width: 100%;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 9999px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

.ai-guide-start-btn:hover {
    background: #b91c1c;
}

.ai-guide-start-btn:active {
    transform: scale(0.98);
}

.ai-guide-bottom-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 32px 32px 0 0;
    padding: 16px 16px 32px;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
    z-index: 20;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-guide-bottom-panel.idle {
    height: 38%;
}

.ai-guide-bottom-panel.loading {
    height: 45%;
}

.ai-guide-bottom-panel.playing {
    height: 65%;
}

.ai-guide-image-modal.open + .ai-guide-bottom-panel {
    transform: translateY(100%);
}

.ai-guide-bottom-handle {
    width: 48px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin: 0 auto 16px;
}

.ai-guide-bottom-inner {
    display: flex;
    flex-direction: column;
    height: calc(100% - 22px);
}

.ai-guide-bottom-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.ai-guide-bottom-title-wrap {
    flex: 1;
}

.ai-guide-bottom-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.ai-guide-bottom-location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
}

.ai-guide-close-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border-radius: 0;
    border: none;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-guide-close-btn:hover {
    color: #dc2626;
}

.ai-guide-bottom-content {
    flex: 1;
    overflow: hidden;
}

.ai-guide-idle-content {
    display: flex;
    gap: 12px;
    padding-top: 8px;
}

.ai-guide-main-btn {
    flex: 1;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: none;
    border-radius: 14px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.ai-guide-main-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28);
}

.ai-guide-main-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15);
}

.ai-guide-main-btn-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-guide-secondary-btn {
    flex: 1;
    background: #ffffff;
    border: 0.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.ai-guide-secondary-btn:hover {
    background: #f9fafb;
    transform: translateY(-1px);
    border-color: #d1d5db;
}

.ai-guide-secondary-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.ai-guide-secondary-btn-icon {
    width: 36px;
    height: 36px;
    background: #f9fafb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-guide-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-bottom: 32px;
}

.ai-guide-loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
}

.ai-guide-loading-pulse {
    position: absolute;
    inset: 0;
    background: #fee2e2;
    border-radius: 50%;
    animation: ping 1.5s ease-in-out infinite;
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.ai-guide-loading-inner {
    position: relative;
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.ai-guide-loading-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-top: 24px;
    margin-bottom: 8px;
}

.ai-guide-loading-desc {
    font-size: 14px;
    color: #6b7280;
}

.ai-guide-playing-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.ai-guide-related-images {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.ai-guide-related-img {
    width: 144px;
    height: 112px;
    object-fit: cover;
    border-radius: 16px;
    flex-shrink: 0;
    border: 1px solid #f3f4f6;
}

.ai-guide-text {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    text-align: justify;
    margin-top: 8px;
    margin-bottom: 16px;
}

.ai-guide-audio-player {
    background: rgba(254, 242, 242, 0.5);
    border-radius: 24px;
    padding: 16px;
    border: 1px solid rgba(254, 226, 226, 0.5);
    margin-top: auto;
}

.ai-guide-audio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ai-guide-audio-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-guide-audio-icon {
    width: 28px;
    height: 28px;
    background: rgba(254, 226, 226, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.ai-guide-audio-icon svg {
    width: 14px;
    height: 14px;
}

.ai-guide-audio-label span {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.ai-guide-audio-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 9999px;
    background: #fef2f2;
    color: #dc2626;
}

.ai-guide-audio-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.ai-guide-play-pause-btn {
    width: 52px;
    height: 52px;
    background: #dc2626;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
    flex-shrink: 0;
}

.ai-guide-play-pause-btn:hover {
    transform: scale(1.05);
}

.ai-guide-play-pause-btn:active {
    transform: scale(0.95);
}

.ai-guide-visualizer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #f9fafb;
    gap: 2px;
}

.ai-guide-visualizer-bar {
    width: 3px;
    background: #f87171;
    border-radius: 9999px;
    animation: visualizer 0.6s ease-in-out infinite;
}

@keyframes visualizer {
    0%, 100% {
        height: 20%;
    }
    50% {
        height: 80%;
    }
}

.ai-guide-voice-section {
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid rgba(254, 226, 226, 0.5);
}

.ai-guide-voice-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}

.ai-guide-voice-toggle i {
    font-size: 15px;
}

.ai-guide-voice-toggle:hover {
    color: #dc2626;
}

.ai-guide-voice-options {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.ai-guide-voice-options.open {
    opacity: 1;
    height: auto;
    overflow-x: auto;
}

.ai-guide-voice-option {
    padding: 6px 12px;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.ai-guide-voice-option.active {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
    box-shadow: 0 1px 3px rgba(220,38,38,0.08);
}

.ai-guide-voice-option:hover {
    background: #f9fafb;
}

/* AI Guide Toast 样式 */
.ai-guide-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    z-index: 100;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-guide-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.ai-guide-toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 16px 24px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-width: 80%;
}

.chat-message-row {
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 加载指示器性能优化 */
.ai-typing-indicator,
.typing-dots span {
    will-change: transform, opacity;
}

/* 图片加载优化 */
.message-avatar img,
.ai-avatar-small img {
    content-visibility: auto;
}

/* 长文本消息优化 - 手机专用 */
.message-bubble {
    -webkit-hyphens: auto;
    hyphens: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* 关键：确保中文字体正确渲染 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* 底部输入栏固定定位优化 */
.ai-new-bottom-bar {
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

.spot-info-page {
    background: var(--white);
    -webkit-tap-highlight-color: transparent;
}

.spot-nav-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: 44px;
    background: linear-gradient(180deg, #E8384F 0%, #C41E3A 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    position: relative;
}

.spot-back-btn {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 0;
    color: #FFFFFF;
    font-size: 17px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    outline: none;
    box-shadow: none;
    width: 44px;
    height: 44px;
}

.spot-back-btn:active {
    background: rgba(255,255,255,0.15);
}

.spot-nav-header h1 {
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    text-align: center;
}

.spot-header-placeholder {
    width: 36px;
}

.spot-info-content {
    flex: 1;
    padding-bottom: 100px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.spot-info-content::-webkit-scrollbar {
    display: none;
}

.spot-hero-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #CD853F, #8B4513);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
    position: relative;
    overflow: hidden; /* 防止图片溢出 */
}

.spot-hero-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--white));
}

.spot-detail {
    padding: 16px;
}

.spot-detail h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.spot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.spot-tag {
    font-size: 12px;
    color: var(--white);
    background: linear-gradient(135deg, #FF6B6B, #C41E3A);
    padding: 4px 10px;
    border-radius: 12px;
}

.spot-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.spot-rating i {
    color: #FFD700;
    font-size: 14px;
}

.spot-rating span {
    font-size: 13px;
    color: var(--text-gray);
}

.spot-desc-text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.spot-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.spot-info-cards .info-card {
    background: var(--white);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent; /* 移动端触摸优化 */
}

.spot-info-cards .info-card:active {
    transform: scale(0.88);
}

.spot-info-cards .info-card i {
    font-size: 24px;
    color: #C41E3A;
}

.spot-info-cards .info-card h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.spot-info-cards .info-card p {
    font-size: 12px;
    color: var(--text-gray);
    margin: 0;
}

.no-spot-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 12px;
}

.no-spot-data i {
    font-size: 48px;
    color: #ccc;
}

.no-spot-data p {
    font-size: 14px;
    color: var(--text-gray);
}

.spot-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ticket-page {
    background: var(--bg-cream);
}

.ticket-content {
    flex: 1;
    padding: 16px;
    padding-bottom: 100px;
}

.ticket-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow);
    margin-bottom: 16px;
}

.ticket-header {
    background: linear-gradient(135deg, var(--primary-red), #D4374B);
    padding: 16px 20px;
    color: var(--white);
}

.ticket-header h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.ticket-header p {
    font-size: 12px;
    opacity: 0.8;
}

.ticket-body {
    padding: 20px;
    position: relative;
}

.ticket-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-cream);
}

.ticket-body::after {
    content: '';
    position: absolute;
    top: 0;
    right: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-cream);
}

.ticket-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ticket-info-row .label {
    font-size: 12px;
    color: var(--text-gray);
}

.ticket-info-row .value {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
}

.ticket-price {
    text-align: center;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

.ticket-price .amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-red);
}

.ticket-price .unit {
    font-size: 12px;
    color: var(--text-gray);
}

.ticket-buy-btn {
    width: 100%;
    height: 44px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary-red), #E8384F);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s;
}

.ticket-buy-btn:active {
    transform: scale(0.87);
}

.memory-page {
    background: var(--white);
}

.memory-content {
    flex: 1;
    padding: 16px;
    padding-bottom: 100px;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.memory-item {
    aspect-ratio: 1;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFF0F0, #FFE4E1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(196, 30, 58, 0.1);
}

.memory-item:active {
    transform: scale(0.82);
    background: var(--light-red);
}

.memory-item i {
    font-size: 28px;
    color: var(--primary-red);
}

.memory-item span {
    font-size: 11px;
    color: var(--text-dark);
    font-weight: 500;
}

.memory-item.locked {
    opacity: 0.5;
    background: #F5F5F5;
}

.memory-item.locked i {
    color: var(--text-light);
}

/* ===== 智能导览页面 ===== */
.navigation-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.nav-header {
    background: linear-gradient(180deg, #C41E3A 0%, #E53935 100%);
    padding: 0;
    position: relative;
    z-index: 100;
    flex-shrink: 0;
}

.nav-status-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 44px !important;
    padding-top: 8px !important;
    width: 100% !important;
}

.nav-time {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin-left: 20px !important;
    flex-shrink: 0;
}

.nav-icons {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
    margin-right: 20px !important;
    flex-shrink: 0;
}

.nav-icons i {
    color: #FFFFFF !important;
    font-size: 13px !important;
}

.nav-header-nav {
    background: linear-gradient(180deg, #E53935 0%, #C41E3A 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px 15px;
    flex-shrink: 0;
    position: relative;
}

.nav-back-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.nav-back-btn i {
    color: #fff;
}

.nav-back-btn:active {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.nav-header-title {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
}

.nav-more-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.nav-more-btn:active {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.nav-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.nav-map-section {
    background: #fff;
    margin: 12px 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    flex: 2;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.nav-map-container {
    flex: 1;
    position: relative;
    background: #e8e8e8;
    min-height: 250px;
}

.nav-map-container .tmap-logo,
.nav-map-container .tmap-copyright {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.nav-map-container [class*="copyright"],
.nav-map-container [class*="logo"],
.nav-map-container [class*="Logo"],
.nav-map-container [class*="Copyright"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.nav-map-container img[src*="map.qq.com"],
.nav-map-container img[src*="logo"] {
    display: none !important;
}

.nav-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #999;
}

.nav-map-loading i {
    font-size: 28px;
    color: #C41E3A;
    margin-bottom: 8px;
}

.nav-map-loading span {
    font-size: 13px;
}

.nav-map-mock {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(180deg, #e8f5e9 0%, #c8e6c9 100%);
}

.nav-map-bg {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.nav-map-route {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.nav-map-path {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.nav-map-point {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.nav-map-point.start {
    background: #4CAF50;
}

.nav-map-point.end {
    background: #C41E3A;
}

.nav-map-point.waypoint {
    background: #FF9800;
}

.nav-map-user-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 36px;
    height: 36px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.nav-marker-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(59, 141, 252, 0.3);
    animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.nav-map-user-marker i {
    color: #3B8DFC;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.nav-map-scale {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #666;
    background: rgba(255,255,255,0.8);
    padding: 2px 6px;
    border-radius: 4px;
}

.nav-scale-bar {
    width: 40px;
    height: 2px;
    background: #666;
    border: 1px solid #999;
}

.nav-route-info {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-route-summary {
    flex: 1;
}

.nav-route-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-stat-icon {
    color: #C41E3A;
    font-size: 14px;
}

.nav-stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.nav-stat-divider {
    width: 1px;
    height: 20px;
    background: #e8e8e8;
}

.nav-navigation-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #C41E3A, #E53935);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
    transition: all 0.2s;
}

.nav-navigation-btn:active {
    transform: scale(0.96);
    box-shadow: 0 1px 4px rgba(196, 30, 58, 0.3);
}

.nav-nav-icon {
    font-size: 14px;
}

.nav-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 12px;
}

.nav-divider-line {
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.nav-divider-text {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

.nav-collapse-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-collapse-btn:hover {
    background: #e8e8e8;
}

.nav-collapse-btn i {
    transition: transform 0.3s ease;
}

.nav-spots-section {
    padding: 0 12px 100px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.nav-spots-section.collapsed {
    flex: 0;
    max-height: 0;
    padding: 0 12px;
    overflow: hidden;
}

.nav-main-content.spots-collapsed .nav-map-section {
    flex: 1;
}

.nav-spots-section.collapsed + .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.nav-spots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.nav-spots-count {
    font-size: 13px;
    color: #999;
}

.nav-spots-progress {
    font-size: 13px;
    color: #C41E3A;
    font-weight: 600;
}

.nav-spots-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
}

.nav-spots-section.collapsed + .bottom-nav + .nav-spots-section {
    display: none;
}

.nav-expand-btn {
    position: absolute !important;
    right: 16px !important;
    bottom: 80px !important;
    width: 46px !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border: 2px solid #C41E3A !important;
    border-radius: 50% !important;
    color: #C41E3A !important;
    font-size: 18px !important;
    box-shadow: none !important;
    z-index: 1001 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(8px) !important;
    pointer-events: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
}

.nav-expand-btn.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.nav-expand-btn:hover {
    background: #f8f8f8;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.nav-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    padding: 40px 24px;
    text-align: center;
    background: #fafafa;
    box-sizing: border-box;
}

.nav-empty-icon {
    width: 240px !important;
    height: 240px !important;
    margin-bottom: 24px;
    animation: navEmptyPulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-empty-icon canvas,
.nav-empty-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes navEmptyPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }
}

.nav-empty-title {
    font-size: 20px;
    font-size: 5.33vw;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.nav-empty-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: center;
    max-width: 80%;
}

.nav-empty-tip {
    font-size: 13px;
    font-size: 3.47vw;
    color: #999;
    margin-bottom: 32px;
    line-height: 1.5;
    max-width: 80%;
}

.nav-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 20px;
    background: linear-gradient(135deg, #C41E3A 0%, #E63946 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(196, 30, 58, 0.2);
    min-width: 90px;
    max-width: 150px;
    width: auto;
}

.nav-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.45);
}

.nav-empty-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.nav-steps-section {
    padding: 0 12px;
}

.nav-steps-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.nav-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s;
}

.nav-step-item:last-child {
    border-bottom: none;
}

.nav-step-item.current {
    background: #fff5f5;
}

.nav-step-no {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #C41E3A;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.nav-step-item.current .nav-step-no {
    background: #C41E3A;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(196, 30, 58, 0); }
}

.nav-step-content {
    flex: 1;
    min-width: 0;
}

.nav-step-instruction {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.nav-step-distance {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.nav-step-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: #999;
}

.nav-navigation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: flex-end;
    z-index: 1000;
}

.nav-nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.nav-nav-content {
    width: 100%;
    max-height: 80vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.nav-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.nav-nav-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    border: none;
    font-size: 18px;
    color: #666;
}

.nav-nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.nav-nav-map {
    height: 200px;
    background: #e8e8e8;
    position: relative;
}

.nav-nav-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 18px;
}

.nav-nav-steps {
    padding: 16px 20px;
    background: #fafafa;
}

.nav-nav-current-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border-left: 4px solid #C41E3A;
}

.nav-nav-step-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #C41E3A;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
}

.nav-nav-step-icon.small {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    color: #666;
    font-size: 14px;
}

.nav-nav-step-info {
    flex: 1;
}

.nav-nav-step-text {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.nav-nav-step-distance {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

.nav-nav-next-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-top: 8px;
    background: #fff;
    border-radius: 12px;
    opacity: 0.7;
}

.nav-nav-bottom {
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid #f0f0f0;
}

.nav-nav-progress {
    margin-bottom: 16px;
}

.nav-nav-progress span {
    font-size: 13px;
    color: #666;
    display: block;
    margin-bottom: 8px;
}

.nav-nav-progress-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.nav-nav-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #C41E3A, #E53935);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.nav-nav-stop-btn {
    width: 100%;
    height: 48px;
    background: #C41E3A;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
}

.nav-spots-section {
    padding: 0 12px 100px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.nav-spots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.nav-spots-count {
    font-size: 13px;
    color: #999;
}

.nav-spots-progress {
    font-size: 13px;
    color: #C41E3A;
    font-weight: 600;
}

.nav-spots-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
}

.nav-spot-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.nav-spot-item.current {
    border: 2px solid #C41E3A;
}

.nav-spot-item.checked {
    background: #f8fef8;
}

.nav-spot-item.check-animation {
    animation: checkBounce 0.5s ease;
}

@keyframes checkBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.nav-spot-order {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
}

.nav-spot-item.checked .nav-spot-order {
    background: #E8F5E9;
    color: #4CAF50;
}

.nav-spot-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
}

.nav-spot-item.checked .nav-spot-check {
    background: #4CAF50;
    border-color: #4CAF50;
}

.nav-check-icon {
    color: #fff;
    font-size: 12px;
}

.nav-spot-info {
    flex: 1;
    min-width: 0;
}

.nav-spot-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.nav-spot-address {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-spot-checkin {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    background: #fff5f5;
    border: 1px solid #ffe0e0;
    border-radius: 8px;
    color: #C41E3A;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.nav-spot-checkin i {
    font-size: 14px;
}

.nav-spot-item.checked .nav-spot-checkin {
    background: #e8f5e9;
    border-color: #c8e6c9;
    color: #4CAF50;
}

.nav-spot-checkin:active {
    transform: scale(0.95);
}

.nav-checkin-modal {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.nav-checkin-content {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    width: 80%;
    max-width: 280px;
    animation: modalPopIn 0.3s ease;
    position: relative;
    z-index: 2;
}

@keyframes modalPopIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.nav-checkin-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
}

.nav-checkin-icon.verifying {
    background: #3B8DFC;
}

.nav-checkin-icon.success {
    background: #4CAF50;
    animation: successPulse 0.5s ease;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-checkin-icon.failed {
    background: #F44336;
}

.nav-checkin-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.nav-checkin-desc {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

.nav-checkin-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #C41E3A, #E53935);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-checkin-btn:active {
    transform: scale(0.96);
}

.nav-complete-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.nav-complete-modal.show {
    display: flex;
}

.nav-complete-overlay {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.nav-complete-content {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    width: 85%;
    max-width: 300px;
    animation: modalPopIn 0.3s ease;
    position: relative;
    z-index: 2;
}

.nav-complete-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #FFD700;
    background: linear-gradient(135deg, #FFF9C4, #FFECB3);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.nav-complete-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.nav-complete-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.nav-complete-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.nav-complete-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.nav-complete-cancel {
    background: #f0f0f0;
    color: #666;
}

.nav-complete-cancel:active {
    background: #e0e0e0;
    transform: scale(0.96);
}

.nav-complete-confirm {
    background: linear-gradient(135deg, #C41E3A, #E53935);
    color: #fff;
}

.nav-complete-confirm:active {
    transform: scale(0.96);
}

.nav-more-menu {
    display: none;
    position: fixed;
    top: 68px;
    right: calc(50% - 172px);
    z-index: 1500;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-width: 120px;
}

.nav-more-menu.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-more-content {
    padding: 4px 0;
}

.nav-more-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-more-item:hover {
    background: #f5f5f5;
}

.nav-more-item:active {
    background: #e8e8e8;
}

.nav-more-item i {
    font-size: 16px;
    color: #E53935;
}

/* ===== 我的服务图标样式（统一红底白图标）===== */
.prof-serv-icon.certificate-icon {
    background: linear-gradient(135deg, #C41E3A, #FF6B6B) !important;
}
.prof-serv-icon.certificate-icon i {
    color: #fff !important;
}
.prof-serv-icon.footprint-icon {
    background: linear-gradient(135deg, #C41E3A, #FF6B6B) !important;
}
.prof-serv-icon.footprint-icon i {
    color: #fff !important;
}

/* 图标点击动画 */
.prof-service-item {
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.prof-service-item:active {
    transform: scale(0.85);
}
.prof-serv-icon {
    transition: all 0.2s;
}
.prof-service-item:active .prof-serv-icon {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.3);
}

/* ===== 列表项交错加载动画 ===== */
/* 列表项动画基础类 - 从左滑入+渐显 */
.list-item-animated {
    opacity: 0;
    transform: translateX(-24px);
    animation: listItemSlideIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* 交错延迟 - 通过 nth-child 实现依次入场 */
.list-item-animated:nth-child(1) { animation-delay: 0.05s; }
.list-item-animated:nth-child(2) { animation-delay: 0.12s; }
.list-item-animated:nth-child(3) { animation-delay: 0.19s; }
.list-item-animated:nth-child(4) { animation-delay: 0.26s; }
.list-item-animated:nth-child(5) { animation-delay: 0.33s; }
.list-item-animated:nth-child(6) { animation-delay: 0.40s; }
.list-item-animated:nth-child(7) { animation-delay: 0.47s; }
.list-item-animated:nth-child(8) { animation-delay: 0.54s; }
.list-item-animated:nth-child(9) { animation-delay: 0.61s; }
.list-item-animated:nth-child(10) { animation-delay: 0.68s; }

@keyframes listItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 网格项动画 - 从下往上渐显 */
.grid-item-animated {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: gridItemFadeIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.grid-item-animated:nth-child(1) { animation-delay: 0.04s; }
.grid-item-animated:nth-child(2) { animation-delay: 0.10s; }
.grid-item-animated:nth-child(3) { animation-delay: 0.16s; }
.grid-item-animated:nth-child(4) { animation-delay: 0.22s; }
.grid-item-animated:nth-child(5) { animation-delay: 0.28s; }
.grid-item-animated:nth-child(6) { animation-delay: 0.34s; }
.grid-item-animated:nth-child(7) { animation-delay: 0.40s; }
.grid-item-animated:nth-child(8) { animation-delay: 0.46s; }

@keyframes gridItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== 基于父容器的列表项动画（无需修改JS） ===== */
/* 红色记忆网格 */
.memory-grid .memory-item {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: gridItemFadeIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.memory-grid .memory-item:nth-child(1) { animation-delay: 0.04s; }
.memory-grid .memory-item:nth-child(2) { animation-delay: 0.10s; }
.memory-grid .memory-item:nth-child(3) { animation-delay: 0.16s; }
.memory-grid .memory-item:nth-child(4) { animation-delay: 0.22s; }
.memory-grid .memory-item:nth-child(5) { animation-delay: 0.28s; }
.memory-grid .memory-item:nth-child(6) { animation-delay: 0.34s; }
.memory-grid .memory-item:nth-child(7) { animation-delay: 0.40s; }
.memory-grid .memory-item:nth-child(8) { animation-delay: 0.46s; }

/* 资讯卡片列表 */
.news-card-list .news-card {
    opacity: 0;
    transform: translateX(-24px);
    animation: listItemSlideIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.news-card-list .news-card:nth-child(1) { animation-delay: 0.05s; }
.news-card-list .news-card:nth-child(2) { animation-delay: 0.12s; }
.news-card-list .news-card:nth-child(3) { animation-delay: 0.19s; }
.news-card-list .news-card:nth-child(4) { animation-delay: 0.26s; }
.news-card-list .news-card:nth-child(5) { animation-delay: 0.33s; }

/* 经典著作列表 */
.memory-book-list .book-item,
.certificate-list .certificate-item,
.song-list .song-item,
.poetry-list .poetry-item,
.story-list .story-item {
    opacity: 0;
    transform: translateX(-24px);
    animation: listItemSlideIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.memory-book-list .book-item:nth-child(1),
.certificate-list .certificate-item:nth-child(1),
.song-list .song-item:nth-child(1),
.poetry-list .poetry-item:nth-child(1),
.story-list .story-item:nth-child(1) { animation-delay: 0.05s; }
.memory-book-list .book-item:nth-child(2),
.certificate-list .certificate-item:nth-child(2),
.song-list .song-item:nth-child(2),
.poetry-list .poetry-item:nth-child(2),
.story-list .story-item:nth-child(2) { animation-delay: 0.12s; }
.memory-book-list .book-item:nth-child(3),
.certificate-list .certificate-item:nth-child(3),
.song-list .song-item:nth-child(3),
.poetry-list .poetry-item:nth-child(3),
.story-list .story-item:nth-child(3) { animation-delay: 0.19s; }
.memory-book-list .book-item:nth-child(4),
.certificate-list .certificate-item:nth-child(4),
.song-list .song-item:nth-child(4),
.poetry-list .poetry-item:nth-child(4),
.story-list .story-item:nth-child(4) { animation-delay: 0.26s; }

/* 影视网格 */
.film-grid .film-item {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: gridItemFadeIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.film-grid .film-item:nth-child(1) { animation-delay: 0.04s; }
.film-grid .film-item:nth-child(2) { animation-delay: 0.10s; }
.film-grid .film-item:nth-child(3) { animation-delay: 0.16s; }
.film-grid .film-item:nth-child(4) { animation-delay: 0.22s; }

/* 我的活动页面 */
#page-my-activity .status-bar {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #FFFFFF !important;
    flex-shrink: 0 !important;
    height: 44px !important;
    background: #C41E3A !important;
    background-image: none !important;
    margin-bottom: -8px !important;
}

#page-my-activity .ma-header {
    background: #C41E3A !important;
    background-image: none !important;
    margin-top: 0 !important;
    padding-bottom: 16px !important;
    padding-top: 0 !important;
    border-top: none !important;
}

.ma-tabs-wrapper {
    background: #fff;
    padding: 16px 12px 12px;
    border-radius: 20px 20px 0 0;
    margin-top: -8px;
    flex-shrink: 0;
}

.ma-filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ma-filter-tabs::-webkit-scrollbar {
    display: none;
}

.ma-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    background: #F5F5F5;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ma-tab.active {
    background: linear-gradient(135deg, #C41E3A, #E8384F);
    color: #fff;
}

.ma-tab-count {
    font-size: 11px;
    opacity: 0.85;
    font-weight: 700;
}

.ma-list-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px 80px;
    background: #F8F8F8;
}

.ma-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
    transform: translateX(-24px);
    animation: listItemSlideIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.ma-card:nth-child(1) { animation-delay: 0.05s; }
.ma-card:nth-child(2) { animation-delay: 0.12s; }
.ma-card:nth-child(3) { animation-delay: 0.19s; }
.ma-card:nth-child(4) { animation-delay: 0.26s; }
.ma-card:nth-child(5) { animation-delay: 0.33s; }
.ma-card:nth-child(6) { animation-delay: 0.40s; }

.ma-card:active {
    transform: scale(0.98);
}

.ma-cover {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #C41E3A, #E8384F);
}

.ma-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.ma-cover-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.ma-cover i {
    font-size: 42px;
    color: rgba(255,255,255,0.9);
    position: relative;
    z-index: 1;
}

.ma-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.ma-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    color: #fff;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.status-registered {
    background: linear-gradient(135deg, rgba(245,166,35,0.95), rgba(243,156,18,0.95));
}

.status-ongoing {
    background: linear-gradient(135deg, rgba(74,144,217,0.95), rgba(52,152,219,0.95));
}

.status-completed {
    background: linear-gradient(135deg, rgba(149,165,166,0.95), rgba(127,140,141,0.95));
}

.ma-live-dot {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 10px;
    height: 10px;
    background: #E74C3C;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
    z-index: 2;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.ma-body {
    padding: 14px 16px 16px;
    background: #fff;
}

.ma-title {
    font-size: 16px;
    font-weight: 700;
    color: #2D2D2D;
    line-height: 1.3;
    margin-bottom: 6px;
}

.ma-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ma-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}

.ma-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #888;
}

.ma-meta-item i {
    color: #C41E3A;
    font-size: 13px;
}

.ma-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #F0F0F0;
}

.ma-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ma-progress-text {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}

.ma-progress-bar {
    flex: 1;
    height: 7px;
    background: #F0F0F0;
    border-radius: 4px;
    overflow: hidden;
}

.ma-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.ma-action-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: linear-gradient(135deg, #C41E3A, #E8384F);
    color: #fff;
}

.ma-action-btn:active {
    transform: scale(0.95);
}

.ma-history-btn {
    background: linear-gradient(135deg, #95A5A6, #BDC3C7);
}

/* 我的活动页面 - 历史详情弹窗 */
.ma-history-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: mhdFadeIn 0.25s ease;
}

@keyframes mhdFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ma-history-detail-modal {
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: mhdSlideUp 0.3s ease;
    box-sizing: border-box;
}

@keyframes mhdSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.mhd-header {
    padding: 30px 20px 24px;
    text-align: center;
    position: relative;
    color: #fff;
}

.mhd-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mhd-icon {
    font-size: 44px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.mhd-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.mhd-status {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255,255,255,0.25);
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
}

.mhd-body {
    padding: 20px;
}

.mhd-section {
    margin-bottom: 20px;
}

.mhd-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mhd-section h4 i {
    color: #C41E3A;
    font-size: 13px;
}

.mhd-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mhd-info-item {
    background: #F8F8F8;
    padding: 12px;
    border-radius: 10px;
}

.mhd-info-item label {
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}

.mhd-info-item value {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.mhd-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    background: #F8F8F8;
    padding: 14px;
    border-radius: 10px;
}

.mhd-record {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mhd-record-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #F8F8F8;
    border-radius: 10px;
    font-size: 13px;
    color: #666;
}

.mhd-record-item.success i {
    color: #34C759;
    font-size: 16px;
}

.mhd-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #F0F0F0;
}

.mhd-btn {
    flex: 1;
    padding: 12px;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.mhd-btn.primary {
    background: linear-gradient(135deg, #C41E3A, #E8384F);
    color: #fff;
}

.mhd-btn.secondary {
    background: #F5F5F5;
    color: #666;
}

.mhd-btn:active {
    transform: scale(0.97);
}

/* 兑换记录页面 */
.ex-record-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: transform 0.15s;
}

.ex-record-card:active {
    transform: scale(0.98);
}

.ex-record-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.ex-record-img-wrap {
    width: 48px;
    height: 48px;
    position: relative;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #FFF0F0;
}

.ex-record-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 2;
}

.ex-record-img-error {
    display: none;
}

.ex-record-img-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: #FFF0F0;
    z-index: 1;
}

.ex-record-img-fallback-show {
    display: flex;
}

.ex-record-img-emoji {
    font-size: 28px;
    line-height: 1;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.ex-record-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #FFF0F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #C41E3A;
    flex-shrink: 0;
}

.ex-record-info {
    flex: 1;
    min-width: 0;
}

.ex-record-name {
    font-size: 15px;
    font-weight: 600;
    color: #2D2D2D;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ex-record-no {
    font-size: 11px;
    color: #BBB;
    margin-top: 2px;
}

.ex-record-date {
    font-size: 11px;
    color: #DDD;
    margin-top: 2px;
}

.ex-record-right {
    text-align: right;
    flex-shrink: 0;
    margin-left: 12px;
}

.ex-record-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 8px;
    margin-bottom: 4px;
    display: inline-block;
}

.ex-record-cost {
    font-size: 13px;
    color: #C41E3A;
    font-weight: 600;
    white-space: nowrap;
}

.ex-record-tracking {
    font-size: 11px;
    color: #4A90D9;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #EEE;
}

/* 文创商城网格 */
.mall-v2-card {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: gridItemFadeIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
/* 双列布局：按全局顺序交错延迟 */
.mall-v2-col:first-child .mall-v2-card:nth-child(1),
.mall-v2-col:nth-child(2) .mall-v2-card:nth-child(1) { animation-delay: 0.04s; }
.mall-v2-col:first-child .mall-v2-card:nth-child(2),
.mall-v2-col:nth-child(2) .mall-v2-card:nth-child(2) { animation-delay: 0.10s; }
.mall-v2-col:first-child .mall-v2-card:nth-child(3),
.mall-v2-col:nth-child(2) .mall-v2-card:nth-child(3) { animation-delay: 0.16s; }
.mall-v2-col:first-child .mall-v2-card:nth-child(4),
.mall-v2-col:nth-child(2) .mall-v2-card:nth-child(4) { animation-delay: 0.22s; }

/* 我的地址页面 */
.addr-card {
    opacity: 0;
    transform: translateX(-24px);
    animation: listItemSlideIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.addr-card:nth-child(1) { animation-delay: 0.05s; }
.addr-card:nth-child(2) { animation-delay: 0.12s; }
.addr-card:nth-child(3) { animation-delay: 0.19s; }
.addr-card:nth-child(4) { animation-delay: 0.26s; }

/* 我的收藏页面 */
.collection-card {
    opacity: 0;
    transform: translateX(-24px);
    animation: listItemSlideIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.collection-card:nth-child(1) { animation-delay: 0.05s; }
.collection-card:nth-child(2) { animation-delay: 0.12s; }
.collection-card:nth-child(3) { animation-delay: 0.19s; }
.collection-card:nth-child(4) { animation-delay: 0.26s; }

/* 兑换记录页面 */
.record-item {
    opacity: 0;
    transform: translateX(-24px);
    animation: listItemSlideIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.record-item:nth-child(1) { animation-delay: 0.05s; }
.record-item:nth-child(2) { animation-delay: 0.12s; }
.record-item:nth-child(3) { animation-delay: 0.19s; }
.record-item:nth-child(4) { animation-delay: 0.26s; }

/* 勋章墙页面 */
.badge-item {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: gridItemFadeIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.badge-item:nth-child(1) { animation-delay: 0.04s; }
.badge-item:nth-child(2) { animation-delay: 0.10s; }
.badge-item:nth-child(3) { animation-delay: 0.16s; }
.badge-item:nth-child(4) { animation-delay: 0.22s; }
.badge-item:nth-child(5) { animation-delay: 0.28s; }
.badge-item:nth-child(6) { animation-delay: 0.34s; }

/* 通用设置列表项微交互 */
.prof-list-item {
    transition: background 0.15s, transform 0.15s;
}
.prof-list-item:active {
    background: #F5F5F5;
    transform: scale(0.98);
}

/* 卡片悬停微交互 */
.news-card, .book-item, .certificate-item, .song-item, .story-item, .poetry-item {
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.news-card:active, .book-item:active, .certificate-item:active,
.song-item:active, .story-item:active, .poetry-item:active {
    transform: scale(0.97);
}

/* 图标点击水波纹效果 */
.icon-ripple {
    position: relative;
    overflow: hidden;
}
.icon-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(196,30,58,0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}
.icon-ripple:active::after {
    opacity: 1;
}

/* ===== 创新空状态设计 ===== */

/* 我的活动空状态优化 */
.ma-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    animation: emptyBounceIn 0.5s ease both;
}
@keyframes emptyBounceIn {
    0% { opacity: 0; transform: scale(0.8) translateY(20px); }
    60% { transform: scale(1.05) translateY(-5px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.ma-empty-state .empty-anim-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    position: relative;
}
.ma-empty-state .empty-anim-icon .pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(196, 30, 58, 0.2);
    animation: emptyPulse 2s ease-out infinite;
}
@keyframes emptyPulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}
.ma-empty-state .empty-anim-icon i {
    position: relative;
    z-index: 1;
    font-size: 36px;
    color: #C41E3A;
    opacity: 0.6;
    line-height: 80px;
}
.ma-empty-state .empty-title {
    font-size: 16px;
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
}
.ma-empty-state .empty-desc {
    font-size: 13px;
    color: #AAA;
    line-height: 1.6;
    max-width: 240px;
    margin: 0 auto;
}

/* 通用空状态样式 */
.empty-state-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    animation: emptyBounceIn 0.5s ease both;
}
.empty-state-v2 .esv-icon-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFF5F5, #FFE4E1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    animation: esvFloat 3s ease-in-out infinite;
}
@keyframes esvFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.empty-state-v2 .esv-icon-wrap::after {
    content: '';
    position: absolute;
    width: 110px;
    height: 20px;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(0,0,0,0.04) 0%, transparent 70%);
    border-radius: 50%;
}
.empty-state-v2 .esv-icon-wrap i {
    font-size: 36px;
    color: #C41E3A;
    opacity: 0.5;
}
.empty-state-v2 .esv-title {
    font-size: 16px;
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
}
.empty-state-v2 .esv-desc {
    font-size: 13px;
    color: #AAA;
    text-align: center;
    line-height: 1.6;
    max-width: 260px;
}
.empty-state-v2 .esv-action {
    margin-top: 20px;
    padding: 10px 28px;
    border-radius: 22px;
    border: none;
    background: linear-gradient(135deg, #C41E3A, #E8384F);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.empty-state-v2 .esv-action:active {
    transform: scale(0.95);
}

/* 错误页样式 */
.error-state-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    animation: emptyBounceIn 0.5s ease both;
}
.error-state-v2 .esv-error-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFF0F0, #FFE0E0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    animation: esvShake 0.5s ease;
}
@keyframes esvShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
.error-state-v2 .esv-error-icon i {
    font-size: 36px;
    color: #E8384F;
    opacity: 0.7;
}
.error-state-v2 .esv-error-title {
    font-size: 16px;
    color: #E8384F;
    font-weight: 600;
    margin-bottom: 8px;
}
.error-state-v2 .esv-error-desc {
    font-size: 13px;
    color: #999;
    text-align: center;
    line-height: 1.6;
    max-width: 260px;
    margin-bottom: 20px;
}
.error-state-v2 .esv-retry-btn {
    padding: 10px 28px;
    border-radius: 22px;
    border: 2px solid #C41E3A;
    background: transparent;
    color: #C41E3A;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.error-state-v2 .esv-retry-btn:active {
    background: #C41E3A;
    color: #fff;
}

/* 自定义圆形胶卷图标 */
.film-reel-icon {
    width: 32px;
    height: 32px;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.film-reel-icon::before {
    content: '';
    position: absolute;
    width: 87.5%;
    height: 87.5%;
    border: 3px solid var(--primary-red);
    border-radius: 50%;
    top: 0;
    left: 0;
}

.film-reel-icon::after {
    content: '';
    position: absolute;
    width: 25%;
    height: 25%;
    background: var(--primary-red);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        -35% 0 0 var(--primary-red),
        35% 0 0 var(--primary-red),
        0 -35% 0 var(--primary-red),
        0 35% 0 var(--primary-red);
}

/* 胶卷尾巴 */
.film-reel-icon .film-tail {
    position: absolute;
    width: 37.5%;
    height: 3px;
    background: var(--primary-red);
    bottom: -2px;
    right: -4px;
    border-radius: 2px;
    transform: rotate(-30deg);
}

.film-reel-icon .film-tail::before {
    content: '';
    position: absolute;
    width: 66.7%;
    height: 3px;
    background: var(--primary-red);
    top: -5px;
    left: 2px;
    border-radius: 2px;
    transform: rotate(20deg);
}

/* SVG胶卷图标样式 */
.film-reel-svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.film-reel-icon {
    width: 80px;
    height: 80px;
    position: relative;
}
.film-reel-circle-icon {
    width: 48px;
    height: 40px;
    position: absolute;
    top: -2px;
    left: 16px;
    animation: reel-spin-center 2s linear infinite;
}
.film-reel-svg-large {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.film-reel-svg-medium {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.film-reel-svg-small {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 4px;
}

@keyframes reel-spin-center {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.memory-detail-page {
    background: var(--white);
}

.memory-detail-content {
    flex: 1;
    padding: 16px;
    padding-bottom: 100px;
}

.memory-detail-header {
    text-align: center;
    padding: 24px 16px;
    background: linear-gradient(135deg, #FFF0F0, #FFE4E1);
    border-radius: 16px;
    margin-bottom: 20px;
}

.memory-detail-header h2 {
    font-size: 20px;
    color: var(--primary-red);
    margin: 12px 0 8px;
}

.memory-desc {
    font-size: 13px;
    color: var(--text-gray);
}

.memory-section {
    margin-bottom: 20px;
}

.memory-section h3 {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.memory-section h3 i {
    color: var(--primary-red);
    font-size: 14px;
}

.memory-text-card {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px var(--shadow);
    border-left: 4px solid var(--primary-red);
}

.memory-text-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.7;
}

.memory-text-card.quote {
    text-align: center;
    border-left: none;
    border-top: 3px solid var(--primary-red);
}

.memory-text-card.quote p {
    font-size: 15px;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 8px;
}

.quote-author {
    font-size: 12px;
    color: var(--text-light);
}

.memory-empty-state {
    text-align: center;
    padding: 32px 16px;
    background: #F9F9F9;
    border-radius: 12px;
}

.memory-empty-state i {
    font-size: 36px;
    color: #DDD;
    margin-bottom: 12px;
}

.memory-empty-state p {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.memory-empty-state .tip {
    font-size: 11px;
    color: var(--text-light);
}

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

.symbol-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 6px var(--shadow);
}

.symbol-color {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.symbol-color.red {
    color: #C41E3A;
    background: #FFF0F0;
}

.symbol-color.yellow {
    color: #FFD700;
    background: #FFFDE7;
}

.symbol-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.symbol-meaning {
    font-size: 11px;
    color: var(--text-gray);
}

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

/* ===== 红色记忆页面 - 横向卡片式设计 ===== */

.red-memory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #C41E3A 0%, #E63946 100%);
    color: white;
}

.red-memory-header h1 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.header-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-back:hover,
.header-back:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.red-memory-grid-horizontal {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
    padding: 18px 12px;
    background: #F5F5F5;
}

/* ========== 竖向卡片布局（完全匹配第二张参考图） ========== */
.red-memory-grid-vertical {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
    padding: 18px 14px;
    background: #F5F5F5;
}

.red-memory-card-vertical {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.25),
                0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 210px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #C62828 0%, #D32F2F 45%, #E53935 75%, #FF6B6B 100%);
    border: 2.5px solid rgba(255, 255, 255, 0.4);
}

.red-memory-card-vertical:nth-child(even) {
    background: linear-gradient(180deg, #E65100 0%, #FF6D00 35%, #FF9100 65%, #FFAB40 100%);
}

.red-memory-card-vertical:hover,
.red-memory-card-vertical:active {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 10px 28px rgba(196, 30, 58, 0.45),
                0 5px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
}

.card-image-container {
    width: 100%;
    height: 135px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.card-theme-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.red-memory-card-vertical:hover .card-theme-image {
    transform: scale(1.08);
}

.card-text-overlay {
    flex: 1;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    background: transparent;
    min-height: 65px;
    position: relative;
}

.card-text-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.card-title-vertical {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.45),
                 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    flex: 1;
}

.card-subtitle-vertical {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    margin: 3px 0 0 0;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.card-arrow-vertical {
    color: #FFFFFF;
    font-size: 16px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
    margin-left: 8px;
    flex-shrink: 0;
}

.red-memory-card-vertical:hover .card-arrow-vertical {
    transform: translateX(5px);
}

.red-memory-card-horizontal {
    display: flex !important;
    flex-direction: row !important;
    background: linear-gradient(180deg, #D32F2F 0%, #E53935 40%, #FF6B6B 100%);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.25),
                0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    height: 100px;
}

.red-memory-card-horizontal:hover,
.red-memory-card-horizontal:active {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.4),
                0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-image-wrapper {
    width: 110px;
    height: 100%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
}

.card-real-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.red-memory-card-horizontal:hover .card-real-image {
    transform: scale(1.08);
}

.card-content-wrapper {
    flex: 1;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.card-title-horizontal {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc-horizontal {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    opacity: 0.9;
}

.card-arrow-horizontal {
    color: #FFFFFF;
    font-size: 13px;
    align-self: flex-end;
    transition: transform 0.3s ease;
}

.red-memory-card-horizontal:hover .card-arrow-horizontal {
    transform: translateX(4px);
}

/* 响应式适配 */
@media (max-width: 360px) {
    .red-memory-grid-horizontal {
        gap: 10px;
        padding: 14px 10px;
    }

    .red-memory-card-horizontal {
        height: 90px;
    }

    .card-image-wrapper {
        width: 95px;
    }

    .card-title-horizontal {
        font-size: 14px;
    }

    .card-desc-horizontal {
        font-size: 10px;
    }

    /* 竖向卡片小屏适配 */
    .red-memory-grid-vertical {
        gap: 12px;
        padding: 16px 12px;
    }

    .red-memory-card-vertical {
        height: 170px;
        border-radius: 14px;
    }

    .card-image-container {
        height: 115px;
    }

    .card-title-vertical {
        font-size: 15px;
    }

    .card-subtitle-vertical {
        font-size: 11px;
    }
}

@media (min-width: 768px) {
    .red-memory-grid-horizontal {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px;
        padding: 24px 20px;
        max-width: 900px;
        margin: 0 auto;
    }

    .red-memory-card-horizontal {
        height: 120px;
    }

    .card-image-wrapper {
        width: 140px;
    }

    .card-title-horizontal {
        font-size: 17px;
    }

    .card-desc-horizontal {
        font-size: 13px;
    }

    /* 竖向卡片大屏适配 */
    .red-memory-grid-vertical {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px;
        padding: 28px 24px;
        max-width: 1000px;
        margin: 0 auto;
    }

    .red-memory-card-vertical {
        height: 240px;
        border-radius: 18px;
    }

    .card-image-container {
        height: 170px;
    }

    .card-title-vertical {
        font-size: 19px;
    }

    .card-subtitle-vertical {
        font-size: 13px;
    }
}

.book-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 6px var(--shadow);
}

.book-icon {
    width: 40px;
    height: 40px;
    background: var(--light-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
}

.book-info h4 {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.book-info p {
    font-size: 11px;
    color: var(--text-gray);
}

.medal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.medal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 6px var(--shadow);
}

.medal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.medal-icon.gold {
    background: linear-gradient(135deg, #FFFDE7, #FFD700);
    color: #F57F17;
}

.medal-icon.red {
    background: linear-gradient(135deg, #FFE4E1, #C41E3A);
    color: #FFF;
}

.medal-icon.blue {
    background: linear-gradient(135deg, #E3F2FD, #1976D2);
    color: #FFF;
}

.medal-name {
    font-size: 11px;
    color: var(--text-dark);
    text-align: center;
}

.song-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 6px var(--shadow);
}

.song-play {
    font-size: 28px;
    color: var(--primary-red);
    cursor: pointer;
}

.song-info h4 {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.song-info p {
    font-size: 11px;
    color: var(--text-gray);
}

.film-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.film-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 6px var(--shadow);
}

.film-poster {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #F3E5F5, #9C27B0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #FFF;
}

.film-item h4 {
    font-size: 11px;
    color: var(--text-dark);
    text-align: center;
}

.film-item p {
    font-size: 10px;
    color: var(--text-light);
}

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

.poetry-item {
    padding: 16px;
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
    border-radius: 12px;
    border-left: 4px solid #FFC107;
}

.poetry-item h4 {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.poetry-excerpt {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 6px;
}

.poetry-year {
    font-size: 10px;
    color: var(--primary-red);
    font-weight: 600;
}

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

.story-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 6px var(--shadow);
}

.story-icon {
    width: 44px;
    height: 44px;
    background: var(--light-red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 18px;
}

.story-info h4 {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.story-info p {
    font-size: 11px;
    color: var(--text-gray);
    line-height: 1.5;
}

.culture-page {
    background: var(--white);
}

.culture-content {
    flex: 1;
    padding: 16px;
    padding-bottom: 100px;
}

.culture-card {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px var(--shadow);
    border-left: 4px solid var(--primary-red);
}

.culture-card h4 {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.culture-card p {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.6;
}

.culture-card .meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-light);
}

.culture-card .meta i {
    margin-right: 4px;
    color: var(--primary-red);
}

.profile-page {
    background: #F8F8F8;
}

.profile-content {
    flex: 1;
    padding-bottom: 100px;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-red), #B8163D);
    padding: 30px 20px 40px;
    color: var(--white);
    text-align: center;
    border-radius: 0 0 24px 24px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 32px;
    border: 3px solid rgba(255,255,255,0.4);
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-id {
    font-size: 12px;
    opacity: 0.8;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 16px;
}

.profile-stat {
    text-align: center;
}

.profile-stat .num {
    font-size: 18px;
    font-weight: 700;
}

.profile-stat .label {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 2px;
}

.profile-menu {
    padding: 16px;
    margin-top: -20px;
}

.menu-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    margin-bottom: 12px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #F5F5F5;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background: #F9F9F9;
}

.menu-item i:first-child {
    width: 24px;
    font-size: 16px;
    color: var(--primary-red);
    margin-right: 12px;
}

.menu-item span {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
}

.menu-item .arrow {
    color: var(--text-light);
    font-size: 12px;
}

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

.news-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
    cursor: pointer;
    transition: all 0.2s;
}

.news-card:active {
    transform: scale(0.98);
}

.news-card-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: linear-gradient(135deg, #FFF0F0, #FFE4E1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-card-img.hot {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
}

.news-card-img.course {
    background: linear-gradient(135deg, #C41E3A, #E8384F);
}

.news-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card-content h4 {
    font-size: 14px;
    color: var(--text-dark);
    margin: 0 0 6px 0;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-card-content p {
    font-size: 12px;
    color: var(--text-gray);
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-card-time {
    font-size: 11px;
    color: var(--text-light);
}

/* ==================== 消息中心页面样式 ==================== */
.message-page {
    background: linear-gradient(180deg, #FFF5F5 0%, #FFFFFF 20%);
}

/* 消息中心内容区 - 全宽显示 */
.message-page > .message-content {
    flex: 1;
    width: 100%;
    padding: 16px;
    overflow-y: auto;
    box-sizing: border-box;
}

.msg-nav-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 48px;
    background: var(--white);
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.msg-back-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.msg-back-btn:active {
    background: var(--light-red);
}

.msg-back-btn i {
    font-size: 18px;
    color: var(--text-dark);
}

.msg-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.msg-header-right {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.msg-unread-badge {
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #C41E3A, #E8384F);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.message-content {
    flex: 1;
    padding: 16px;
    padding-bottom: 100px;
    overflow-y: auto;
}

.message-tabs {
    display: flex;
    background: #F8F9FA;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
    width: 100%;
}

.msg-tab {
    flex: 1;
    text-align: center;
    padding: 10px 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.msg-tab.active {
    color: var(--white);
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-red), #E8384F);
}

.msg-tab-badge {
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: rgba(255,255,255,0.3);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

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

.message-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-20px);
    animation: msgCardSlideIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    width: 100%;
    box-sizing: border-box;
}

.message-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.message-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.message-card.unread {
    background: linear-gradient(135deg, #FFF8F8, #FFFFFF);
    border: 1px solid rgba(196, 30, 58, 0.15);
}

@keyframes msgCardSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.msg-icon-wrap {
    position: relative;
    flex-shrink: 0;
}

.msg-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
    transition: transform 0.2s;
}

.msg-icon:active {
    transform: scale(0.9);
}

.msg-icon-system {
    background: linear-gradient(135deg, #C41E3A, #E8384F);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.35);
}

.msg-icon-activity {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.35);
}

.msg-icon-challenge {
    background: linear-gradient(135deg, #7B1FA2, #9C27B0);
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.35);
}

.msg-icon-route {
    background: linear-gradient(135deg, #1976D2, #42A5F5);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.35);
}

.msg-icon-weather {
    background: linear-gradient(135deg, #FFD700, #FFA000);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.35);
}

.msg-icon-event {
    background: linear-gradient(135deg, #00897B, #26A69A);
    box-shadow: 0 4px 12px rgba(0, 137, 123, 0.35);
}

.msg-unread-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FF5252;
    border: 2px solid var(--white);
    box-shadow: 0 0 6px rgba(255, 82, 82, 0.6);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.msg-body {
    flex: 1;
    min-width: 0;
}

.msg-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.msg-title-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    /* 移除 flex-shrink: 0，允许标题收缩以适应空间 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.msg-time {
    font-size: 11px;
    color: var(--text-light);
    flex-shrink: 0;
    margin-left: 12px;
}

.msg-content-text {
    font-size: 13px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.msg-arrow {
    flex-shrink: 0;
    padding: 8px;
    color: var(--text-light);
    transition: color 0.2s;
}

.message-card:active .msg-arrow {
    color: var(--primary-red);
}

.msg-arrow i {
    font-size: 16px;
}

.message-card.unread .msg-title-text {
    color: var(--primary-red);
    font-weight: 700;
}

/* ========== 消息详情页面样式 ========== */
.message-detail-page {
    background: linear-gradient(180deg, #FFF5F5 0%, #FFFFFF 20%);
}

.message-detail-content {
    flex: 1;
    padding: 16px;
    padding-bottom: 100px;
    overflow-y: auto;
}

.msg-detail-card {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.msg-detail-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--white);
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.msg-detail-header {
    margin-bottom: 16px;
}

.msg-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.msg-detail-time {
    font-size: 13px;
    color: var(--text-light);
}

.msg-detail-body {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.msg-detail-body p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.msg-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.msg-detail-type {
    font-size: 12px;
    color: var(--text-light);
    padding: 4px 12px;
    background: #F5F5F5;
    border-radius: 12px;
}

.msg-detail-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
}

.msg-detail-status.read {
    color: #00897B;
    background: rgba(0, 137, 123, 0.1);
}

.msg-detail-status.unread {
    color: #C41E3A;
    background: rgba(196, 30, 58, 0.1);
}

/* ========== 首页消息图标未读标识 ========== */
.header-icons {
    position: relative;
}

.msg-bell-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msg-bell-wrapper svg {
    color: white;
}

.msg-unread-badge-small {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #FF5252;
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(255, 82, 82, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ========== 首页推荐区域样式 ========== */
.recommend-section {
    margin-bottom: 16px;
}

.recommend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.recommend-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.recommend-header .more-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.recommend-header .more-btn:hover {
    color: var(--primary-red);
}

.recommend-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.recommend-scroll::-webkit-scrollbar {
    display: none;
}

.recommend-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    width: calc(100% + 80px);
    box-sizing: border-box;
    margin: 0 -40px;
    position: relative;
}

.recommend-list {
    display: flex;
    gap: 10px;
    padding: 0 8px;
    margin: 0;
    list-style: none;
    width: max-content;
}

.recommend-item {
    flex-shrink: 0;
    width: calc(46% - 5px);
    max-width: 150px;
    min-width: 125px;
    opacity: 0;
    transform: translateX(-20px);
    animation: recommendSlideIn 0.4s ease forwards;
    cursor: pointer;
    transition: transform 0.2s;
    scroll-snap-align: start;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.recommend-item:active {
    transform: scale(0.96);
}

@keyframes recommendSlideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.recommend-img-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 85%;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: #f8f8f8;
}

.recommend-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f0f0f0;
}

.recommend-img.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: imgLoading 1.5s infinite;
}

@keyframes imgLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.recommend-item.loading,
.recommend-item.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    width: 100% !important;
    max-width: none !important;
    height: 220px;
    min-width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.loading-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E8384F;
    font-size: 32px;
    margin-bottom: 16px;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.loading-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.empty-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 32px;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 14px;
    color: #999;
    margin-bottom: 6px;
}

.empty-hint {
    font-size: 12px;
    color: #bbb;
}

.recommend-type-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 4px 10px;
    background: #FF6B00;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.recommend-info {
    padding: 0 2px;
}

.recommend-name {
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommend-distance {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: #999999;
}

.recommend-distance i {
    font-size: 10px;
    color: #CCCCCC;
}

.recommend-item.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: #F8F9FA;
    border-radius: 12px;
}

.empty-icon {
    font-size: 24px;
    color: #DDD;
    margin-bottom: 8px;
}

.empty-text {
    font-size: 13px;
    color: var(--text-light);
}

/* ========== 推荐页面样式 ========== */
.recommend-page {
    background: #F5F5F5;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #EB2620, #D81712);
}

.header-left,
.header-right {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 20px;
    cursor: pointer;
}

.header-left i,
.header-right i {
    color: #FFFFFF;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    flex: 1;
    text-align: center;
}

.recommend-content {
    padding: 16px;
    padding-bottom: 100px;
}

.search-box-wrapper {
    background: white;
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.search-box {
    display: flex;
    align-items: center;
    background: #F5F5F5;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.search-icon {
    font-size: 15px;
    color: #AAA;
    margin-right: 10px;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    font-family: inherit;
}

.search-box input::placeholder {
    color: #BBB;
}

.search-clear {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #DDD;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.search-clear:hover {
    background: #CCC;
}

.search-clear i {
    font-size: 12px;
    color: #888;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-tag {
    padding: 6px 14px;
    background: #F5F5F5;
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.search-tag.active {
    background: linear-gradient(135deg, var(--primary-red), #E8384F);
    color: white;
}

.recommend-list-container {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.list-count {
    font-size: 13px;
    color: var(--text-light);
}

.sort-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.sort-btn:hover {
    color: var(--primary-red);
}

.sort-btn i {
    font-size: 14px;
}

.recommend-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
}

.recommend-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 40px 20px;
}

.recommend-loading-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E8384F;
    font-size: 32px;
    margin-bottom: 16px;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.recommend-loading-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.recommend-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: #FFFFFF;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
    transform: translateY(10px);
    animation: cardFadeIn 0.3s ease forwards;
    border: 1px solid #F0F0F0;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.recommend-card:active {
    background: #F0F0F0;
    transform: scale(0.98);
}

.card-img-wrapper {
    position: relative;
    width: 100px;
    height: 75px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-type-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 6px;
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 9px;
    font-weight: 600;
    border-radius: 3px;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-address {
    font-size: 12px;
    color: var(--text-light);
    margin: 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-distance {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--primary-red);
}

.card-distance i {
    font-size: 11px;
}

.card-action {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-gray);
}

.card-action i {
    font-size: 12px;
}

/* ========== 推荐详情页面样式 ========== */
.recommend-detail-page {
    background: #F5F5F5;
}

.detail-content {
    padding-bottom: 100px;
}

.detail-hero {
    position: relative;
    height: 220px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    color: white;
}

.hero-type {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.hero-distance {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    opacity: 0.9;
}

.detail-info-card {
    margin: -20px 16px 12px;
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-red);
    font-size: 16px;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.tel-value {
    color: var(--primary-red);
    cursor: pointer;
}

.detail-action-card {
    margin: 0 16px;
    background: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 12px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-red), #E8384F);
    color: white;
}

.action-btn.secondary {
    background: #F5F5F5;
    color: var(--text-dark);
}

.action-btn:active {
    transform: scale(0.98);
}

.action-btn i {
    font-size: 16px;
}

/* ===== 智能导览页面 - 标记点击弹窗 ===== */
.nav-spot-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 20px;
}

.nav-spot-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.nav-spot-popup-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 320px;
    padding: 24px;
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.nav-spot-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.nav-spot-popup-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.nav-spot-popup-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    border: none;
    font-size: 16px;
    color: #666;
}

.nav-spot-popup-address {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.nav-spot-popup-actions {
    display: flex;
    gap: 12px;
}

.nav-spot-popup-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.nav-spot-popup-nav-btn {
    background: linear-gradient(135deg, #3B8DFC, #2B7DE9);
    color: white;
}

.nav-spot-popup-checkin-btn {
    background: #f5f5f5;
    color: #333;
}

.nav-spot-popup-btn:active {
    transform: scale(0.98);
}

/* ===== 真实导航模式样式 ===== */
.nav-nav-content-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: #000;
    display: flex;
    flex-direction: column;
    z-index: 1002;
    overflow: hidden;
}

.nav-nav-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top));
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

.nav-nav-exit-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    border: none;
    color: #fff;
    font-size: 14px;
}

.nav-nav-top-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.nav-nav-travel-mode {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.nav-nav-service {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
}

.nav-nav-main-map {
    flex: 1;
    position: relative;
    background: #1a1a1a;
    width: 100%;
    min-height: 200px;
}

.nav-nav-compass {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-nav-compass-ring {
    width: 48px;
    height: 48px;
    position: relative;
}

.nav-compass-n, .nav-compass-e, .nav-compass-s, .nav-compass-w {
    position: absolute;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.nav-compass-n { top: 0; left: 50%; transform: translateX(-50%); }
.nav-compass-e { right: 0; top: 50%; transform: translateY(-50%); }
.nav-compass-s { bottom: 0; left: 50%; transform: translateX(-50%); }
.nav-compass-w { left: 0; top: 50%; transform: translateY(-50%); }

.nav-nav-guide-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.nav-nav-direction-arrow {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 141, 252, 0.9);
    border-radius: 50%;
    font-size: 32px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 141, 252, 0.5);
}

.nav-nav-guide-info {
    background: rgba(0,0,0,0.85);
    border-radius: 16px;
    padding: 12px 20px;
    text-align: center;
}

.nav-nav-guide-distance {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.nav-nav-guide-street {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

.nav-nav-lower-panel {
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(20px);
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-nav-next-turn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    margin-bottom: 12px;
}

.nav-nav-next-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3B8DFC;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
}

.nav-nav-next-info {
    flex: 1;
}

.nav-nav-next-text {
    font-size: 14px;
    color: #fff;
}

.nav-nav-next-distance {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

.nav-nav-progress-info {
    margin-bottom: 12px;
}

.nav-nav-progress-text {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
}

.nav-nav-bottom-controls {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 12px;
}

.nav-nav-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 24px;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-nav-control-btn:active {
    background: rgba(255,255,255,0.2);
}

.nav-nav-center-btn {
    background: linear-gradient(135deg, #3B8DFC, #2B7DE9);
    padding: 14px 32px;
    font-weight: 600;
}

/* ===== 红色记忆新页面样式（基于全.html）===== */

/* 🔥🔥🔥 关键：确保红色记忆页面容器不会阻止子元素交互 */
.memory-page,
.memory-page *,
.red-memory-new-container,
.red-memory-new-container * {
    -webkit-transform: none;
    transform: none;
}

.red-memory-new-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 禁止整体滚动 */
    padding-bottom: 83px;
}

/* 🔥 强力修复：红色记忆页面内的状态栏 - 完全重置并统一样式 */
.memory-page .status-bar {
    /* 重置所有可能的干扰属性 */
    all: unset;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 44px !important;
    padding: 0 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #FFFFFF !important;
    flex-shrink: 0 !important;

    /* 统一背景色 - 与全.html一致 */
    background: #E6212A !important;

    /* 移除所有可能的边框和阴影 */
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    outline: none !important;
    box-shadow: none !important;

    /* 确保无伪元素干扰 */
}
.memory-page .status-bar::before,
.memory-page .status-bar::after {
    display: none !important;
}

/* 修复页面背景 - 避免与红色渐变产生对比 */
.memory-page {
    background: transparent !important;
}

/* 顶部渐变区域 - 从状态栏的红色开始渐变到金色 */
.rm-top-gradient {
    background: linear-gradient(180deg, #E6212A 0%, #FF7A33 100%) !important;
    padding-bottom: 20px;
    flex-shrink: 0; /* 不被压缩 */

    /* 确保无干扰 */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

/* 搜索栏 - 移动端优化（确保input可正常聚焦）*/
.rm-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;

    /* 🔥 关键：确保不阻止子元素的任何交互 */
    touch-action: auto !important; /* 允许所有默认触摸行为 */
    pointer-events: auto !important;

    /* 确保不被裁剪 */
    overflow: visible !important;
}

.rm-back-icon {
    width: 28px;
    height: 28px;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    /* 移动端触摸反馈 */
    padding: 4px;
    margin: -4px;
    transition: transform 0.15s ease;
}

.rm-back-icon:active {
    transform: scale(0.9);
}

.rm-search-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    padding: 10px 16px; /* 稍微减小内边距，适应小屏幕 */
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    transition: all 0.2s;

    /* 移动端触摸优化 */
    position: relative;
    min-height: 44px; /* iOS推荐的最小触摸区域 */

    /* 🔥 关键：确保不阻止子元素的交互 */
    pointer-events: auto !important;
    cursor: text; /* 显示文本光标样式 */

    /* 确保不被裁剪 */
    overflow: visible !important;
}

.rm-search-box.focused {
    background: rgba(255, 255, 255, 0.25);
}

/* 🔥🔥🔥 手机APP搜索输入框 - 最终版（覆盖所有全局样式）*/
.rm-search-input {
    flex: 1;
    background: transparent;
    border: none !important;           /* 覆盖任何border设置 */
    outline: none !important;          /* 覆盖任何outline设置 */
    color: #fff !important;            /* 强制白色文字 */
    font-size: 16px !important;        /* 手机端推荐：16px避免iOS自动缩放 */
    font-weight: 400 !important;
    caret-color: #fff !important;

    /* 🔥 关键：移除所有默认样式，使用原生input行为 */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;

    /* 确保可交互 - 最高优先级 */
    pointer-events: auto !important;
    position: relative !important;
    z-index: 99999 !important; /* 超高z-index，确保在最上层 */

    /* 🔥🔥🔥 最关键：允许所有默认触摸行为！ */
    touch-action: manipulation !important;

    /* 移动端优化 */
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-user-select: text !important;   /* 允许选中文本 */
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;

    /* 确保不被裁剪和限制 */
    overflow: visible !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 22px !important; /* 最小高度 */
    padding: 0 !important;           /* 移除可能的padding干扰 */
    margin: 0 !important;            /* 移除可能的margin干扰 */

    /* 确保显示正常 */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.rm-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    font-size: 16px;
}

.rm-search-input:focus {
    outline: none;
    border: none;
}

.rm-search-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.rm-search-btn {
    width: 32px;
    height: 32px;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

/* 标签导航容器 - 手机APP优化（缩小间距）*/
.rm-tabs-container {
    padding: 6px 16px;              /* 🔥 缩小：8px 20px → 6px 16px */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
    flex-shrink: 0; /* 不被压缩，固定在顶部 */

    /* 🔥🔥🔥 关键：强制只允许水平滑动（覆盖所有父容器设置） */
    touch-action: pan-x !important;

    /* 平滑滚动 */
    scroll-behavior: smooth;

    /* 隐藏滚动条但保持功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */

    /* 确保不被裁剪 */
    width: 100%;
}

.rm-tabs-container::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* 标签包装器 - 确保不阻止滑动（缩小间距）*/
.rm-tabs-wrapper {
    display: flex;
    gap: 6px;                        /* 🔥 缩小间距：8px → 6px */
    white-space: nowrap;              /* 防止换行 */
    align-items: center;

    /* 🔥 关键：不设置touch-action，让触摸事件穿透到父容器进行滚动 */
}

/* 未选中标签 - 手机APP优化（缩小字体） */
.rm-tab {
    color: #fff;                    /* text-white */
    font-size: 14px;               /* 🔥 缩小：18px → 14px，适合手机APP */
    font-weight: 500;              /* font-medium */
    padding: 5px 7px;               /* 🔥 缩小内边距：6px 8px → 5px 7px */
    border-radius: 8px;            /* rounded-lg = 8px */
    cursor: pointer;
    transition: all 0.15s ease-out; /* 更快的过渡动画 */
    position: relative;
    user-select: none;             /* 防止长按选中文本 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    white-space: nowrap;           /* whitespace-nowrap */

    /* 🔥 关键：允许默认触摸行为（让父容器处理滑动） */
    touch-action: manipulation;     /* 只在标签上防止缩放 */

    -webkit-tap-highlight-color: transparent; /* 移除点击高亮 */
    min-height: 40px;             /* 最小触摸区域 */
    display: flex;
    align-items: center;
    justify-content: center;

    /* 确保不被裁剪 */
    flex-shrink: 0;                /* 不压缩 */
}

/* 触摸反馈效果 */
.rm-tab:active {
    transform: scale(0.95);
    opacity: 0.9;
}

/* 选中标签 - 完全对应全.html: bg-[#E6212A] text-white text-lg font-bold px-3 py-1.5 rounded-lg relative whitespace-nowrap */
.rm-tab-active {
    background: #E6212A !important;           /* bg-[#E6212A] */
    color: #fff !important;                   /* text-white */
    font-size: 14px !important;               /* 适合手机APP */
    font-weight: 700 !important;             /* font-bold */
    padding: 4px 10px !important;              /* 🔥🔥🔥 四边一致间距：上下4px 左右10px */
    border-radius: 5px !important;           /* 🔥 明显圆角：圆润长方形 */
    position: relative !important;           /* relative（为了定位白色横线）*/
    white-space: nowrap !important;          /* whitespace-nowrap */
    line-height: 1.3 !important;            /* 🔥 正常行高：舒适阅读 */
    display: inline-block !important;
    height: auto !important;
    min-height: auto !important;             /* 🔥🔥🔥 覆盖父元素40px最小高度 */
}

/* 白色小横线指示器 - 完全对应全.html: absolute -bottom-1.5 left-1/2 -translate-x-1/2 w-8 h-1 bg-white rounded-full */
.rm-tab-indicator {
    position: absolute;           /* absolute */
    bottom: -6px;                 /* -bottom-1.5 = -6px */
    left: 50%;                    /* left-1/2 */
    transform: translateX(-50%);  /* -translate-x-1/2 */
    width: 32px;                  /* w-8 = 32px */
    height: 4px;                  /* h-1 = 4px */
    background: #fff;             /* bg-white */
    border-radius: 9999px;        /* rounded-full = 完全圆角（胶囊形）*/
}

/* 内容展示区 */
.rm-content-area {
    background: #fff;
    border-radius: 12px 12px 0 0;
    margin-top: -12px;
    padding: 16px;
    flex: 1;
    overflow-y: auto; /* 只有内容区可以垂直滚动 */
    -webkit-overflow-scrolling: touch;
}

/* 滑动提示 - 手机APP优化（缩小字体和间距）*/
.rm-slide-hint {
    display: flex;
    align-items: center;
    gap: 6px;                      /* 🔥 缩小间距：8px → 6px */
    margin-bottom: 12px;             /* 🔥 缩小间距：16px → 12px */
    padding-left: 4px;
}

.rm-hint-bar {
    width: 3px;                     /* 🔥 缩小宽度：4px → 3px */
    height: 18px;                    /* 🔥 缩小高度：24px → 18px */
    background: #E6212A;
    border-radius: 2px;
}

.rm-slide-hint p {
    color: #374151;
    font-size: 13px;                /* 🔥 缩小：18px → 13px，适合手机APP */
    font-weight: 400;               /* 🔥 减轻字重：500 → 400 */
    margin: 0;
}

/* 🔥🔥 卡片网格 - Grid 2列布局（手机APP优化）*/
.rm-card-grid {
    display: grid;                  /* 🔥🔥🔥 改为grid布局：2列 */
    grid-template-columns: repeat(2, 1fr);  /* 🔥 固定2列等宽 */
    gap: 12px;                      /* 卡片间距 */
    padding: 0;                     /* 🔥🔥🔥 移除内边距：避免双重padding */

    /* 🔥 关键：确保宽度计算正确 */
    width: 100%;
    box-sizing: border-box;

    /* 允许垂直滚动查看所有行 */
    overflow-y: visible;
    overflow-x: hidden;

    /* 平滑滚动动画 */
    scroll-behavior: smooth;
}

.rm-card-grid::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* 🔥 单个卡片 - Grid 2列布局（自适应宽度）*/
.rm-card {
    border: 1.5px solid #E6212A;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;

    /* 🔥🔥🔥 关键：Grid布局自适应 */
    width: 100%;                     /* 占满grid列宽 */
    min-width: 0;                    /* 允许grid压缩 */
    max-width: none;                 /* 不限制最大宽度 */
    box-sizing: border-box;          /* 🔥 边框计算在宽度内 */

    /* 允许垂直方向自然高度 */
    height: auto;

    /* 显示为块级元素 */
    display: block;
}

.rm-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(230, 33, 42, 0.15);
}

/* 🔥 卡片图片 - 适配固定宽度卡片 */
.rm-card-img {
    width: 100%;
    height: 100px;                   /* 🔥 缩小高度：112px → 100px */
    object-fit: cover;
    display: block;
}

.rm-card-content {
    padding: 8px;                     /* 🔥 缩小内边距：10px → 8px */
}

/* 🔥 卡片标题 - 适配小尺寸卡片 */
.rm-card-title {
    font-size: 14px;                /* 🔥 缩小：16px → 14px */
    font-weight: 600;
    color: #111827;
    margin: 0 0 3px 0;               /* 🔥 缩小间距：4px → 3px */
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;           /* 单行显示 */
    -webkit-box-orient: vertical;
}

/* 🔥 卡片描述 - 适配小尺寸卡片 */
.rm-card-desc {
    font-size: 11px;                /* 🔥 缩小：12px → 11px */
    color: #6b7280;
    line-height: 1.4;                /* 🔥 调整行高 */
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;           /* 最多显示2行 */
    -webkit-box-orient: vertical;
}

/* 🔥🔥🔥 通用空状态基础样式 */
.rm-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    border-radius: 12px;
    margin: 10px 0;
    text-align: center;

    /* 图标统一样式 */
    svg {
        width: 72px;
        height: 72px;
        margin-bottom: 20px;
    }

    /* 标题统一样式 */
    p {
        font-size: 16px;
        font-weight: 600;
        margin: 0 0 8px 0;
        line-height: 1.4;
    }

    /* 描述统一样式 */
    span {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* ========== 1️⃣ 搜索无结果空状态（橙色主题）========== */
.rm-no-search {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 1px solid #FED7AA;

    svg {
        color: #EA580C;              /* 🔥 橙色图标 */
        opacity: 0.8;
        filter: drop-shadow(0 2px 8px rgba(234, 88, 12, 0.15));
    }

    p {
        color: #C2410C;              /* 🔥 深橙色标题 */
    }

    span {
        color: #9A3412;              /* 🔥 橙褐色描述 */
    }
}

/* ========== 2️⃣ 标签无数据空状态（蓝色主题）========== */
.rm-no-data {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 1px solid #BFDBFE;

    svg {
        color: #2563EB;              /* 🔵 蓝色图标 */
        opacity: 0.7;
        filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.15));
    }

    p {
        color: #1E40AF;              /* 🔵 深蓝色标题 */
    }

    span {
        color: #3B82F6;              /* 🔵 蓝色描述 */
    }
}

/* ========== 3️⃣ 初始引导空状态（红色主题 - 品牌色）========== */
.rm-no-init {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border: 1px solid #FECACA;

    svg {
        color: #E6212A;              /* 🔴 主红色图标 */
        opacity: 0.75;
        filter: drop-shadow(0 2px 8px rgba(230, 33, 42, 0.2));
    }

    p {
        color: #991B1B;              /* 🔴 深红色标题 */
    }

    span {
        color: #DC2626;              /* 🔴 红色描述 */
    }
}

/* ========== ������;ҳ����ʽ ========== */
#page-red-journey {
    background: #F5F5F5;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rj-status-bar {
    background: #C41E3A;
    padding: 0 16px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.rj-status-time {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.rj-status-icons {
    display: flex;
    gap: 8px;
    color: #fff;
    font-size: 14px;
}

.rj-header {
    background: linear-gradient(180deg, #C41E3A 0%, #D62828 100%);
    padding: 4px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.rj-back-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
}

.rj-back-btn:active {
    opacity: 0.7;
}

.rj-back-btn i {
    font-size: 24px;
}

.rj-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.rj-header-placeholder {
    width: 44px;
}

.rj-tabs {
    display: flex;
    background: #fff;
    padding: 0 24px;
    border-bottom: 1px solid #F0F0F0;
    flex-shrink: 0;
}

.rj-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    color: #9CA3AF;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.rj-tab.active {
    color: #C41E3A;
    font-weight: 600;
}

.rj-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: #C41E3A;
    border-radius: 1px;
}

.rj-content {
    flex: 1;
    padding: 12px;
    background: #F5F5F5;
    overflow-y: auto;
}

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

.rj-story-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rj-story-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rj-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C41E3A, #E8384F);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
}

.rj-author-info {
    display: flex;
    flex-direction: column;
}

.rj-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
}

.rj-story-date {
    font-size: 11px;
    color: #9CA3AF;
}

.rj-story-content {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.5;
    margin: 0 0 10px;
}

.rj-story-image-single {
    width: 100%;
    max-height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.rj-story-image-single .rj-story-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.rj-story-image-single .rj-story-image:active {
    transform: scale(0.98);
}

.rj-story-image-single .rj-image-placeholder.wide {
    width: 100%;
    height: 200px;
    background: #F5F5F5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D1D5DB;
    font-size: 24px;
    position: relative;
    overflow: hidden;
}

.rj-story-image-grid {
    display: grid;
    gap: 3px;
    margin-bottom: 10px;
}

.rj-story-image-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.rj-story-image-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.rj-story-image-grid.grid-4 {
    grid-template-columns: repeat(2, 1fr);
}

.rj-story-image-grid.grid-6 {
    grid-template-columns: repeat(3, 1fr);
}

.rj-image-placeholder {
    aspect-ratio: 1;
    background: #F5F5F5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D1D5DB;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.rj-story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.rj-story-video-placeholder {
    width: 100%;
    height: 140px;
    background: #F5F5F5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 12px 16px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.rj-video-title {
    font-size: 14px;
    font-weight: 500;
    color: #1F2937;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.rj-video-type {
    font-size: 12px;
    color: #9CA3AF;
    background: #E5E7EB;
    padding: 2px 8px;
    border-radius: 4px;
}

/* 视频封面缩略图 - 无图片时显示视频封面 */
.rj-video-thumb-container {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
    background: #1a1a1a;
    cursor: pointer;
}

.rj-video-thumb-container .rj-video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rj-video-thumb-container .rj-video-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rj-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    z-index: 2;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.rj-video-play-btn:active {
    background: rgba(0, 0, 0, 0.75);
    transform: translate(-50%, -50%) scale(0.92);
}

.rj-video-play-btn i {
    margin-left: 3px;
}

.rj-video-duration {
    position: absolute;
    bottom: 6px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 3px;
    z-index: 2;
    font-variant-numeric: tabular-nums;
}

/* 图片预览弹窗 */
.rj-image-lightbox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
}

.rj-image-lightbox.show {
    opacity: 1;
}

.rj-image-lightbox img {
    width: auto;
    height: auto;
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    display: block;
}

.rj-image-lightbox .rj-lightbox-close {
    position: absolute;
    top: env(safe-area-inset-top, 12px);
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* 视频播放器弹窗 */
.rj-video-player-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    overflow: hidden;
}

.rj-video-player-modal.show {
    opacity: 1;
}

.rj-video-player-modal video {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    outline: none;
}

.rj-video-player-modal .rj-video-close-btn {
    position: absolute;
    top: env(safe-area-inset-top, 12px);
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.rj-story-attachments {
    margin-top: 8px;
    margin-bottom: 10px;
}

.rj-attachment-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #F3F4F6;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    max-width: 100%;
}

.rj-attachment-item:hover {
    background: #E5E7EB;
}

.rj-attachment-title {
    font-size: 13px;
    font-weight: 500;
    color: #1F2937;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rj-attachment-type {
    font-size: 12px;
    color: #4F46E5;
    background: #E0E7FF;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.rj-image-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.03) 0%, transparent 50%, rgba(0,0,0,0.02) 100%);
}

.rj-story-actions {
    display: flex;
    gap: 18px;
    padding-top: 8px;
    border-top: 1px solid #F5F5F5;
    padding-left: 4px;
}

.rj-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #9CA3AF;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
}

.rj-action-btn:hover,
.rj-action-btn:active {
    color: #C41E3A;
}

.rj-action-btn i.liked {
    color: #C41E3A;
}

/* 举报图标样式 */
.rj-report-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

/* 点击时改变颜色 */
.rj-action-btn:hover .rj-report-icon path,
.rj-action-btn:active .rj-report-icon path {
    fill: #C41E3A;
}

.rj-like-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    z-index: 9999;
    pointer-events: none;
}

.rj-like-animation #like-lottie {
    width: 100%;
    height: 100%;
}

/* �������µ��� */
.rj-post-modal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.rj-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.rj-modal-content {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.rj-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.rj-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
}

.rj-modal-close {
    background: none;
    border: none;
    color: #9CA3AF;
    font-size: 18px;
    cursor: pointer;
}

.rj-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rj-post-input {
    width: calc(100% - 24px);
    padding: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
}

.rj-post-textarea {
    width: calc(100% - 24px);
    padding: 12px;
    padding-right: 80px;
    padding-bottom: 48px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    min-height: 120px;
    resize: none;
}

.rj-textarea-wrapper {
    position: relative;
}

.rj-upload-buttons {
    position: absolute;
    right: 35px;
    bottom: 16px;
    display: flex;
    gap: 12px;
}

.rj-upload-btn {
    width: auto;
    height: auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    font-size: 18px;
    padding: 0;
}

.rj-upload-image {
    color: #C41E3A;
}

.rj-upload-image:hover {
    color: #E8384F;
}

.rj-upload-file {
    color: #4F46E5;
}

.rj-upload-file:hover {
    color: #7C3AED;
}

.rj-upload-preview {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rj-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.rj-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rj-preview-item .rj-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.rj-preview-file {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: #F3F4F6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    position: relative;
}

.rj-preview-file i {
    font-size: 24px;
    margin-bottom: 4px;
}

.rj-preview-file span {
    font-size: 10px;
    text-align: center;
    padding: 0 4px;
}

.rj-modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.rj-modal-cancel {
    flex: 1;
    padding: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.rj-modal-submit {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #C41E3A, #E8384F);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.rj-tab-content {
    display: none;
}

.rj-tab-content.active {
    display: block;
}

.rj-my-stats {
    display: flex;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rj-stat-item {
    flex: 1;
    text-align: center;
}

.rj-stat-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #C41E3A;
    margin-bottom: 4px;
}

.rj-stat-label {
    font-size: 12px;
    color: #9CA3AF;
}

.rj-my-section {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.rj-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #F0F0F0;
}

.rj-section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

.rj-new-post-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #C41E3A;
    border-radius: 20px;
    background: transparent;
    color: #C41E3A;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.rj-new-post-btn:hover {
    background: #FFF0F0;
}

.rj-my-stories {
    padding: 8px;
}

.rj-my-story-card {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #F5F5F5;
    transition: background 0.2s;
}

.rj-my-story-card:last-child {
    border-bottom: none;
}

.rj-my-story-card:hover {
    background: #FAFAFA;
}

.rj-my-story-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.rj-my-story-thumb i {
    color: #9CA3AF;
    font-size: 20px;
}

.rj-my-story-info {
    flex: 1;
    min-width: 0;
}

.rj-my-story-title {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rj-my-story-desc {
    font-size: 13px;
    color: #6B7280;
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rj-my-story-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rj-my-story-time {
    font-size: 12px;
    color: #9CA3AF;
}

.rj-status-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

.rj-status-badge.status-published {
    background: #D1FAE5;
    color: #059669;
}

.rj-status-badge.status-reviewing {
    background: #FEF3C7;
    color: #D97706;
}

.rj-status-badge.status-draft {
    background: #E5E7EB;
    color: #6B7280;
}

.rj-my-story-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 12px;
}

.rj-my-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #F5F5F5;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.rj-my-action-btn:hover {
    background: #E5E7EB;
}

.rj-my-action-btn.edit:hover {
    background: #DBEAFE;
    color: #2563EB;
}

.rj-my-action-btn.delete:hover {
    background: #FEE2E2;
    color: #DC2626;
}

.rj-post-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.rj-featured-badge {
    background: linear-gradient(135deg, #C41E3A, #E8384F);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.rj-stat-item {
    flex: 1;
    text-align: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.rj-stat-item:hover {
    background: #FFF0F0;
}

.rj-stat-item.active {
    background: #FFF0F0;
}

.rj-modal-content.confirm-modal {
    text-align: center;
    padding: 24px;
}

.rj-confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #FEF3C7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rj-confirm-icon i {
    font-size: 32px;
    color: #D97706;
}

.rj-confirm-title {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 8px 0;
}

.rj-confirm-desc {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.rj-modal-danger {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #DC2626, #EF4444);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* ========== 共述红途 - 底部分享面板（适配手机容器） ========== */

/* 遮罩层 - 使用absolute适配手机容器 */
#app .m-share-mask {
    position: absolute !important;
    z-index: 10001;
}

/* 分享面板容器 */
#app #m-share-actionSheet {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 10002;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 16px 12px 24px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    box-sizing: border-box;
}

/* 右上角关闭按钮 */
#app #m-share-actionSheet .rj-share-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.15s ease;
    z-index: 10;
    padding: 0;
}

#app #m-share-actionSheet .rj-share-close-btn i {
    font-size: 20px;
    color: #999;
}

#app #m-share-actionSheet .rj-share-close-btn:active {
    opacity: 0.6;
}

/* 面板显示状态 - 由JS动态添加class控制 */
#app #m-share-actionSheet.show-panel {
    transform: translateY(0) !important;
}

/* 分享图标网格布局 */
#m-share-actionSheet .m-share-flex {
    display: flex !important;
    justify-content: space-around;
    align-items: flex-start;
    margin-top: 20px;
}

#m-share-actionSheet .m-share-flex > .m-share-cell {
    flex: none !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 4px 2px !important;
}

/* 图标容器 - 保留m-share原生iconfont字体，只调尺寸和边框 */
#m-share-actionSheet .m-share-iconfont {
    font-size: 26px !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 !important;
    padding: 5px !important;
    transition: all 0.15s ease;
    cursor: pointer;
    /* 不覆盖font-family，保留m-share原生iconfont */
}

/* 微信好友 - 绿色圆圈图标 */
#m-share-actionSheet .m-share-iconfont-wx {
    color: #07C160 !important;
    border-color: #07C160 !important;
}
#m-share-actionSheet .m-share-iconfont-wx:active {
    background: #07C160 !important;
    color: #fff !important;
}

/* 朋友圈 - 深绿色相机图标 */
#m-share-actionSheet .m-share-iconfont-wxline {
    color: #33b045 !important;
    border-color: #33b045 !important;
}
#m-share-actionSheet .m-share-iconfont-wxline:active {
    background: #33b045 !important;
    color: #fff !important;
}

/* QQ好友 - 蓝色QQ图标 */
#m-share-actionSheet .m-share-iconfont-qq {
    color: #56b6e7 !important;
    border-color: #56b6e7 !important;
}
#m-share-actionSheet .m-share-iconfont-qq:active {
    background: #56b6e7 !important;
    color: #fff !important;
}

/* QQ空间 - 黄色星星图标 */
#m-share-actionSheet .m-share-iconfont-qzone {
    color: #fdbe3d !important;
    border-color: #fdbe3d !important;
}
#m-share-actionSheet .m-share-iconfont-qzone:active {
    background: #fdbe3d !important;
    color: #fff !important;
}

/* 微博 - 橙红色微博图标 */
#m-share-actionSheet .m-share-iconfont-sina {
    color: #ff763b !important;
    border-color: #ff763b !important;
}
#m-share-actionSheet .m-share-iconfont-sina:active {
    background: #ff763b !important;
    color: #fff !important;
}

/* 统一给所有图标加圆形边框 */
#m-share-actionSheet .m-share-iconfont-wx,
#m-share-actionSheet .m-share-iconfont-wxline,
#m-share-actionSheet .m-share-iconfont-qq,
#m-share-actionSheet .m-share-iconfont-qzone,
#m-share-actionSheet .m-share-iconfont-sina {
    border: 1.5px solid currentColor;
    box-sizing: border-box;
}

/* 分享文字标签 */
#m-share-actionSheet .m-share-sheet-title {
    font-size: 11px !important;
    color: #999 !important;
    text-align: center;
    margin: 0 !important;
    white-space: nowrap;
}

/* 取消按钮区域 */
.rj-share-cancel-bar {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #F0F0F0;
}

.rj-share-cancel-btn {
    width: 100%;
    padding: 13px;
    background: #F5F5F5;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
    outline: none;
    box-shadow: none;
}

.rj-share-cancel-btn:active {
    background: #E8E8E8;
}

/* 微信/QQ客户端内右上角提示 - 适配手机容器 */
#app .m-share-tips {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 10003;
    color: #fff;
}

/* 其他浏览器底部提示 - 适配手机容器 */
#app .m-share-tips-bottom {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10003;
}

/* ==================== 景点打卡页面样式 (Spot Checkin) ==================== */

.spot-checkin-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* 状态栏 - 红色背景 */
.sc-status-bar-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1010;
    background: #C41E3A;
    padding: 0 12px;
}

/* 导航标题栏 - 红色背景 */
.sc-nav-header {
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #C41E3A;
    z-index: 1009;
}

.sc-back-btn {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    background: none;
    padding: 0;
}

.sc-back-btn i {
    color: #fff;
    font-size: 18px;
}

.sc-back-btn:active {
    background: rgba(255,255,255,0.15);
}

.sc-nav-title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

.sc-status-bar-wrapper .status-bar {
    color: #fff;
    padding: 8px 4px;
    background: #C41E3A;
}

.sc-status-bar-wrapper .status-bar .time {
    color: #fff;
}

.sc-status-bar-wrapper .status-bar .icons i {
    color: #fff;
}

/* 顶部搜索栏 - 覆盖在地图上方，透明背景 */
.sc-header {
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    padding: 10px 12px;
    background: transparent;
    z-index: 1008;
}

.sc-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sc-location-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.85);
    border-radius: 18px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.sc-location-tag:active {
    background: rgba(255,255,255,0.95);
}

.sc-location-tag i:first-child {
    color: #C41E3A;
    font-size: 13px;
}

.sc-location-tag span {
    font-weight: 500;
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-location-tag .fa-chevron-down {
    color: #999;
    font-size: 10px !important;
}

.sc-search-box {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(255,255,255,0.9);
    border-radius: 18px;
    padding: 8px 14px;
    padding-right: 36px;
}

.sc-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
}

.sc-search-box input::placeholder {
    color: #bbb;
}

.sc-search-icon {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: #C41E3A;
    padding: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
}

.sc-search-icon:active {
    background: #a01829;
}

/* 地图容器 - 铺满整个页面 */
.sc-map-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.sc-map-container {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.sc-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #666;
    z-index: 10;
}

.sc-map-loading i {
    font-size: 28px;
    color: #C41E3A;
}

.sc-map-loading span {
    font-size: 13px;
}

/* 地图控制按钮 */
.sc-map-controls {
    position: absolute;
    right: 12px;
    bottom: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1007;
}

.sc-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sc-control-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.sc-control-btn i {
    font-size: 16px;
    color: #333;
}

/* 导航状态提示条 */
.sc-nav-status {
    position: absolute;
    top: 100px;
    left: 12px;
    right: 12px;
    z-index: 30;
    animation: scSlideDown 0.3s ease;
}

@keyframes scSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sc-nav-status-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #33A853 0%, #2E8B57 100%);
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(51, 168, 83, 0.35);
    color: #fff;
}

.sc-nav-status-content i.fa-route {
    font-size: 18px;
}

.sc-nav-status-content span {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

.sc-nav-status-content button {
    padding: 5px 12px;
    background: rgba(255,255,255,0.25);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.sc-nav-status-content button:hover {
    background: rgba(255,255,255,0.4);
}

/* 底部卡片列表区域 */
.sc-card-list-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 45vh;
    background: linear-gradient(180deg, transparent 0%, #fff 8%);
    z-index: 25;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sc-card-list {
    padding: 12px;
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* 景点卡片 - 圆角矩形边框水平布局 */
.sc-spot-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 10px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sc-spot-card:last-child {
    margin-bottom: 0;
}

.sc-spot-card.active {
    border-color: #FF6B35;
    box-shadow: 0 2px 12px rgba(255, 107, 53, 0.15);
}

.sc-spot-card:active {
    transform: scale(0.985);
}

/* 卡片图片 */
.sc-card-img-wrap {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}

.sc-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sc-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFF5E8 0%, #FFE8D0 100%);
}

.sc-card-img-placeholder i {
    font-size: 26px;
    color: #FFB800;
    opacity: 0.6;
}

/* 卡片中间信息区 */
.sc-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sc-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-card-stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sc-card-stars i {
    font-size: 10px;
}

.sc-card-score {
    font-size: 11px;
    color: #FF6B35;
    font-weight: 600;
}

.sc-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
}

.sc-tag {
    font-size: 10px;
    color: #999;
    background: #F5F5F5;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.sc-tag-dist {
    color: #666;
    font-weight: 500;
}

.sc-tag-price {
    color: #C41E3A;
    font-weight: 600;
    background: #FFF0F0;
}

/* 卡片右侧按钮 */
.sc-card-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.sc-card-btn {
    padding: 7px 16px;
    background: linear-gradient(135deg, #FFB800 0%, #FFA000 100%);
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(255, 184, 0, 0.3);
    transition: transform 0.15s;
}

.sc-card-btn:active {
    transform: scale(0.93);
}

.sc-card-btn-danger {
    background: linear-gradient(135deg, #C41E3A 0%, #E63946 100%) !important;
    box-shadow: 0 2px 6px rgba(196, 30, 58, 0.3) !important;
}

/* 空状态提示 */
.sc-empty-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #999;
    text-align: center;
}

.sc-empty-hint i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.sc-empty-hint p {
    font-size: 14px;
    margin: 0;
}

/* 弹窗样式 - 打卡成功 */
.sc-success-modal {
    width: 85%;
    max-width: 320px;
    background: #fff;
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    animation: scScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin: auto;
}

@keyframes scScaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.sc-success-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #33A853 0%, #2E8B57 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scBounceIn 0.5s ease;
}

@keyframes scBounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.sc-success-icon i {
    font-size: 32px;
    color: #fff;
}

.sc-success-modal h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #222;
    font-weight: 700;
}

.sc-success-modal > p {
    margin: 0 0 20px;
    font-size: 14px;
    color: #666;
}

.sc-success-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    padding: 14px;
    background: #F8F9FA;
    border-radius: 12px;
}

.sc-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #555;
    justify-content: flex-start;
}

.sc-info-item i {
    color: #C41E3A;
    width: 16px;
    text-align: center;
}

.sc-confirm-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #C41E3A 0%, #E63946 100%);
    border: none;
    border-radius: 24px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.sc-confirm-btn:active {
    transform: scale(0.97);
}

/* 导航APP选择弹窗 */
.sc-nav-app-modal {
    width: 85%;
    max-width: 320px;
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    animation: scScaleIn 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin: auto;
}

.sc-nav-app-modal h3 {
    margin: 0 0 16px;
    font-size: 17px;
    color: #222;
    text-align: center;
    font-weight: 600;
}

.sc-nav-app-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.sc-nav-app-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #F8F9FA;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sc-nav-app-item:active {
    background: #E8E9EA;
    transform: scale(0.98);
}

.sc-app-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.sc-app-icon i {
    font-size: 20px;
}

.sc-app-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.sc-nav-app-item .fa-chevron-right {
    color: #ccc;
    font-size: 12px;
}

.sc-cancel-btn {
    width: 100%;
    padding: 12px;
    background: #F0F0F0;
    border: none;
    border-radius: 12px;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.sc-cancel-btn:active {
    background: #E0E0E0;
}

/* 响应式适配 */
@media screen and (max-height: 700px) {
    .sc-card-list-wrapper {
        max-height: 38vh;
    }
    .sc-map-controls {
        bottom: 180px;
    }
}

@media screen and (min-height: 800px) {
    .sc-card-list-wrapper {
        max-height: 50vh;
    }
    .sc-map-controls {
        bottom: 240px;
    }
}

/* 弹窗遮罩层 */
.spot-checkin-page .sc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    padding: 20px;
    box-sizing: border-box;
}

/* 弹窗内容容器 */
.spot-checkin-page .sc-checkin-modal,
.spot-checkin-page .sc-checkin-fail-modal,
.spot-checkin-page .sc-success-modal,
.spot-checkin-page .sc-nav-app-modal {
    width: 100%;
    max-width: 320px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    position: relative;
    z-index: 2001;
}

/* 弹窗图标 */
.spot-checkin-page .sc-checkin-icon,
.spot-checkin-page .sc-fail-icon,
.spot-checkin-page .sc-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spot-checkin-page .sc-checkin-icon {
    background: #E8F5E9;
}

.spot-checkin-page .sc-checkin-icon i {
    color: #4CAF50;
    font-size: 32px;
}

.spot-checkin-page .sc-fail-icon {
    background: #FFF3E0;
}

.spot-checkin-page .sc-fail-icon i {
    color: #FF9800;
    font-size: 32px;
}

.spot-checkin-page .sc-success-icon {
    background: #E8F5E9;
}

.spot-checkin-page .sc-success-icon i {
    color: #4CAF50;
    font-size: 36px;
}

/* 弹窗标题 */
.spot-checkin-page .sc-checkin-modal h3,
.spot-checkin-page .sc-checkin-fail-modal h3,
.spot-checkin-page .sc-success-modal h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px;
}

/* 弹窗内容 */
.spot-checkin-page .sc-checkin-modal p,
.spot-checkin-page .sc-checkin-fail-modal p {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px;
}

/* 进度提示 */
.spot-checkin-page .sc-checkin-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.spot-checkin-page .sc-progress-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-top-color: #C41E3A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spot-checkin-page #scCheckinStatus {
    font-size: 14px;
    color: #666;
}

/* 失败提示信息 */
.spot-checkin-page .sc-fail-info,
.spot-checkin-page .sc-success-info {
    margin-bottom: 12px;
}

.spot-checkin-page .sc-fail-item,
.spot-checkin-page .sc-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.spot-checkin-page .sc-fail-item i,
.spot-checkin-page .sc-info-item i {
    color: #999;
}

/* 温馨提示 */
.spot-checkin-page .sc-fail-tip {
    background: #FFF8E1;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #8B4513;
}

.spot-checkin-page .sc-fail-tip i {
    color: #FF9800;
    flex-shrink: 0;
}

/* 弹窗按钮容器 */
.spot-checkin-page .sc-checkin-buttons,
.spot-checkin-page .sc-fail-buttons {
    display: flex;
    gap: 12px;
}

/* 弹窗按钮 */
.spot-checkin-page .sc-cancel-btn,
.spot-checkin-page .sc-confirm-btn {
    flex: 1;
    height: 44px;
    border-radius: 22px;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.spot-checkin-page .sc-cancel-btn {
    background: #F5F5F5;
    color: #666;
}

.spot-checkin-page .sc-cancel-btn:active {
    background: #E8E8E8;
}

.spot-checkin-page .sc-confirm-btn {
    background: #C41E3A;
    color: #fff;
}

.spot-checkin-page .sc-confirm-btn:active {
    background: #a01829;
}

/* 成功弹窗信息 */
.spot-checkin-page .sc-success-info {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.spot-checkin-page .sc-success-info .sc-info-item {
    margin-bottom: 8px;
}

.spot-checkin-page .sc-success-info .sc-info-item:last-child {
    margin-bottom: 0;
}

.spot-checkin-page #scSuccessSpotName {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* ========================================
   红学研培页面 (Red Training) - rt-*
   基于 eg/src/app/App.tsx 设计稿精确转换
   ======================================== */

/* 页面外层容器（与原设计一致：min-h-screen bg-[#6b0307] flex justify-center） */
.rt-page {
    min-height: 100vh;
    background: #6b0307;
    display: flex;
    flex-direction: column;
    align-items: center;  /* 原设计：flex justify-center */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* 状态栏：固定在页面最顶部 */
.rt-page .status-bar {
    position: sticky;
    top: 0;
    background: rgba(138, 13, 16, 0.95);
    width: 100%;
    max-width: 420px;
    z-index: 100;
    flex-shrink: 0;
}

/* ===== 主内容容器（与原设计第64行完全一致） ===== */
/* 原设计: w-full max-w-[420px] bg-[radial-gradient(...)] relative overflow-y-auto overflow-x-hidden pb-10 shadow-2xl flex flex-col */
.rt-main-container {
    width: 100%;
    max-width: 420px;
    background: rgba(138, 13, 16, 0.95);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 40px;  /* pb-10 = 40px */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);  /* shadow-2xl */
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 装饰容器 */
.rt-deco-container {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 180px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* 湖南红色文化场景剪影 - 韶山故居风格 */
.rt-deco-curve {
    position: absolute;
    border-radius: 50%;
    border-bottom-style: solid;
}
.rt-deco-curve-1 {
    top: -30px; left: -10%; width: 120%; height: 200px;
    background: linear-gradient(180deg, rgba(235,34,42,0.95) 0%, rgba(195,19,25,0.9) 100%);
}

/* 远山层叠效果 */
.rt-deco-wave {
    position: absolute;
}
.rt-deco-wave-1 { 
    top: 40px; left: 10%; 
    opacity: 0.3;
    transform: scale(1.5) translateX(-20%);
}
.rt-deco-wave-2 { 
    top: 60px; left: 30%; 
    opacity: 0.25;
    transform: scale(1.2) translateX(-10%);
}
.rt-deco-wave-3 { 
    top: 50px; right: 15%; 
    opacity: 0.3;
    transform: scale(1.3) translateX(10%);
}

/* 左侧建筑剪影 - 韶山毛泽东故居风格 */
.rt-deco-building-left {
    position: absolute;
    left: -10px; top: 60px;
    opacity: 0.75;
    transform: scale(0.75);
    transform-origin: left;
}
.bld-roof { 
    width: 90px; height: 0; 
    border-left: 8px solid transparent; 
    border-right: 8px solid transparent; 
    border-bottom: 10px solid rgba(139,69,19,0.8); 
    margin: 0 auto; 
}
.bld-floor-1 { width: 106px; height: 6px; background: rgba(139,69,19,0.75); border-radius: 1px; margin-top: 1px; }
.bld-wall-1 { width: 80px; height: 12px; background: rgba(245,245,220,0.7); margin: 0 auto; border-radius: 1px; }
.bld-roof-2 { width: 120px; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-bottom: 11px solid rgba(139,69,19,0.8); margin-top: 1px; }
.bld-floor-2 { width: 134px; height: 8px; background: rgba(139,69,19,0.75); border-radius: 1px; margin-top: 1px; }
.bld-tower { 
    width: 120px; height: 22px; 
    background: rgba(245,245,220,0.7); 
    display: flex; 
    align-items: flex-end; 
    justify-content: space-around; 
    padding-bottom: 3px; 
    margin: 0 auto;
    border-radius: 1px;
}
.tower-window { width: 16px; height: 18px; background: rgba(101,67,33,0.6); border-radius: 1px 1px 0 0; }
.tower-main { width: 34px; height: 20px; background: rgba(101,67,33,0.6); border-radius: 1px 1px 0 0; position: relative; }
.tower-door { width: 8px; height: 5px; background: rgba(139,90,43,0.8); border-radius: 1px; position: absolute; top: 5px; left: 13px; }
.bld-floor-3 { width: 150px; height: 8px; background: rgba(139,69,19,0.75); border-radius: 1px; margin-top: 1px; }
.bld-base { width: 160px; height: 12px; background: rgba(101,67,33,0.8); margin-top: 1px; border-radius: 1px; }

/* 右侧剪影 - 橘子洲头毛泽东青年雕塑风格 */
.rt-deco-building-right {
    position: absolute;
    right: -5px; top: 25px;
    opacity: 0.65;
    transform: scale(0.65);
    transform-origin: right;
}
.lighthouse-top { 
    width: 28px; height: 28px; 
    background: rgba(139,69,19,0.7); 
    border-radius: 50%; 
    margin: 0 auto 2px; 
    position: relative; 
    z-index: 1; 
}
.lighthouse-ring { 
    width: 36px; height: 20px; 
    background: rgba(139,90,43,0.6); 
    margin: 0 auto; 
    border-radius: 2px;
}
.lighthouse-ring-sm { 
    width: 44px; height: 24px; 
    background: rgba(139,90,43,0.5); 
    margin-top: 1px; 
    border-radius: 2px;
}
.lighthouse-tower { 
    width: 56px; height: 80px; 
    background: linear-gradient(to bottom, rgba(160,82,45,0.7), rgba(139,69,19,0.8)); 
    margin: 2px auto 0; 
    position: relative; 
    border-radius: 3px 3px 10px 10px;
}
.lh-arm { 
    position: absolute; 
    width: 45px; 
    height: 28px; 
    background: rgba(139,69,19,0.7); 
    border-radius: 4px; 
}
.lh-arm-left { 
    top: 15px; 
    left: -42px; 
    transform: rotate(-25deg) scale(0.8); 
    border-radius: 50% 20% 20% 50%;
}
.lh-arm-right { 
    top: 15px; 
    right: -42px; 
    transform: rotate(25deg) scale(0.8); 
    border-radius: 20% 50% 50% 20%;
}
.lh-arm-left-sm, .lh-arm-right-sm { display: none; }
.lh-balcony { display: none; }
.lighthouse-base { 
    width: 80px; 
    height: 12px; 
    background: rgba(101,67,33,0.7); 
    margin: 4px auto 0; 
    border-radius: 6px; 
}

/* 标题区域 */
.rt-header-title {
    padding-top: 15px;
    padding-bottom: 10px;
    text-align: center;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rt-back-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.rt-back-btn i {
    color: #fff;
    font-size: 17px;
}
.rt-back-btn:active {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}
.rt-main-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.15em;
    margin-left: 0.15em;
    text-shadow: 0 3px 0 #A05917, 0 5px 12px rgba(0,0,0,0.6);
    font-family: "STKaiti", "KaiTi", "楷体", "SimKai", serif;
}

/* Tab导航（px-[18px] 与原设计一致） */
.rt-tab-nav-wrap {
    padding: 0 18px;
    position: relative;
    z-index: 20;
}
.rt-tab-nav {
    background: linear-gradient(to right, #FEE5AA, #FAD078);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #D31820;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    height: 48px;
    overflow: hidden;
    position: relative;
}
.rt-tab-active-bg {
    position: absolute;
    top: 0; bottom: 0;
    z-index: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(to bottom, #E62A29, #D01418);
}

/* Tab分隔线（原设计有此元素） */
.rt-tab-sep {
    position: absolute;
    left: 33.33%;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 18px;
    background: #D7A34C;
    transition: opacity 0.3s;
    z-index: 0;
}
.rt-tab-sep-1 { left: 33.33%; }
.rt-tab-sep-2 { left: 66.66%; }
.opacity-0 { opacity: 0 !important; }

.rt-tab-btn {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    outline: none;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.25em;
    transition: color 0.3s;
    color: #482506;
}
.rt-tab-btn.active {
    color: #FDEFB8;
    text-shadow: 0 1px 2px rgba(160,0,0,0.5);
}
.rt-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 26px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(to right, #FDF0BE, #DCA73E);
    box-shadow: 0 1px 2px rgba(200,0,0,0.3);
    animation: rtTabIndicatorIn 0.3s ease forwards;
}
@keyframes rtTabIndicatorIn {
    from { opacity: 0; transform: scale(0.75); }
    to { opacity: 1; transform: scale(1); }
}

/* 主内容卡片（与原设计第158行一致：mx-[18px] mt-[14px] p-[16px] pt-[20px] pb-[20px]） */
.rt-content-card {
    margin: 14px 18px 0;
    background: #FFFDF2;
    border-radius: 18px;
    padding: 20px 16px 20px;  /* pt-20 px-16 pb-20 */
    border: 1px solid #F2DCA5;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 400px;
}

/* 更多活动覆盖层 */
.rt-more-overlay {
    position: absolute;
    inset: 0;
    background: #FFFDF2;
    z-index: 30;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    overflow-y: auto;
}
.rt-more-overlay.show {
    visibility: visible;
    opacity: 1;
    animation: rtSlideInRight 0.3s ease forwards;
}
@keyframes rtSlideInRight {
    from { transform: translateX(16px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.rt-more-header {
    display: flex;
    align-items: center;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #F0E6D2;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    border-radius: 18px 18px 0 0;
}
.rt-more-back {
    padding: 4px;
    margin-right: 8px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #D31820;
    -webkit-tap-highlight-color: transparent;
}
.rt-more-back:active { background: #F2DCA5; }
.rt-more-title {
    font-size: 17px;
    font-weight: 700;
    color: #2A2A2A;
}
.rt-more-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Tab内容区 */
.rt-tab-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
}
.rt-tab-content.hidden { display: none !important; }

/* 区域标题 */
.rt-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}
.rt-section-icon { margin-right: 8px; flex-shrink: 0; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1)); }
.rt-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #2A2A2A;
    letter-spacing: 0.05em;
    text-shadow: 0 0.5px 0 #fff;
}
.rt-section-desc {
    font-size: 13px;
    color: #8B8378;
    line-height: 1.8;
    margin-bottom: 18px;
    text-align: justify;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-indent: 26px;
    animation: rtFadeInUp 0.5s ease both;
}
@keyframes rtFadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tab内容面板 */
.rt-courses-grid,
.rt-activities-list,
.rt-profile-content { display: none; }
.rt-courses-grid.show,
.rt-activities-list.show,
.rt-profile-content.show { 
    display: block; 
    animation: rtFadeInUp 0.5s ease both; 
}

/* 课程网格 */
.rt-courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-bottom: 8px;
}
.rt-courses-grid.show { display: grid; }

.rt-course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #F0E6D2;
    display: flex;
    flex-direction: column;
    box-shadow: 0 3px 10px rgba(150,130,100,0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.rt-course-card:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211,24,32,0.15);
    border-color: #D31820;
}
.rt-course-img {
    width: 100%;
    height: 90px;
    object-fit: cover;
}
.rt-course-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.rt-course-name {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rt-course-desc {
    font-size: 11px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
    flex: 1;
    margin-bottom: 10px;
}
.rt-course-btn {
    width: 100%;
    background: linear-gradient(to right, #F23933, #D5121B);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 0;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.1em;
    box-shadow: 0 3px 8px rgba(213,18,27,0.3);
    transition: transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.rt-course-btn:active { transform: scale(0.95); }

/* 活动列表 */
.rt-activities-list {
    flex-direction: column;
    gap: 14px;
}
.rt-activities-list.show { display: flex; }

.rt-activity-card {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #F0E6D2;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 3px 10px rgba(150,130,100,0.08);
    cursor: pointer;
    transition: border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.rt-activity-card:active { border-color: #D31820; }
.rt-activity-img {
    width: 85px;
    height: 85px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.rt-activity-info { flex: 1; min-width: 0; }
.rt-activity-name {
    font-size: 15px;
    font-weight: 700;
    color: #2A2A2A;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rt-activity-meta {
    font-size: 12px;
    color: #8B8378;
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}
.rt-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rt-meta-item svg { flex-shrink: 0; }

.rt-more-btn {
    width: 100%;
    background: #FFF9ED;
    border: 1px solid #F2DCA5;
    color: #D31820;
    font-weight: 700;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(150,130,100,0.08);
    cursor: pointer;
    font-size: 14px;
    margin-top: 4px;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
}
.rt-more-btn:active { background: #FDE8B6; }

/* 个人档案 */
.rt-profile-content { display: none; }
.rt-profile-content.show { display: flex; flex-direction: column; gap: 14px; }

.rt-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(to right, #FFF5DE, #FFFDF2);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #F2DCA5;
    box-shadow: 0 2px 8px rgba(213,167,96,0.15);
}
.rt-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #E62A29, #B01416);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 24px;
    border: 3px solid #F9E0A2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
}
.rt-profile-info { flex: 1; }
.rt-profile-name {
    font-weight: 700;
    color: #2A2A2A;
    font-size: 18px;
    margin-bottom: 2px;
}
.rt-profile-id {
    font-size: 13px;
    color: #DF7F1C;
    font-weight: 500;
    background: #FDECB5;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 统计网格 */
.rt-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.rt-stat-card {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #F0E6D2;
    text-align: center;
    box-shadow: 0 3px 10px rgba(150,130,100,0.06);
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.rt-stat-card:active { background: #FFF9ED; border-color: #D31820; }
.rt-stat-value {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
    font-family: "Courier New", monospace;
    line-height: 1;
}
.rt-stat-label {
    font-size: 11px;
    font-weight: 500;
    color: #8B8378;
    letter-spacing: -0.02em;
}
.rt-stat-dark .rt-stat-value { color: #2A2A2A; }
.rt-stat-red .rt-stat-value { color: #D31820; }
.rt-stat-gold .rt-stat-value { color: #DF7F1C; }

/* 时间轴 */
.rt-timeline {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #F0E6D2;
    box-shadow: 0 3px 10px rgba(150,130,100,0.06);
    margin-top: 4px;
}
.rt-timeline-title {
    font-weight: 700;
    color: #2A2A2A;
    font-size: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.rt-timeline-bar {
    width: 4px;
    height: 14px;
    background: #D31820;
    border-radius: 2px;
    margin-right: 8px;
    flex-shrink: 0;
}
.rt-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding-left: 11px;
}
.rt-timeline-list::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #F2DCA5;
}
.rt-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.rt-timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: -2px;
    background: #FFFDF2;
    border: 2px solid #D31820;
}
.rt-dot-active::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #D31820;
    border-radius: 50%;
}
.rt-dot-normal {
    border-color: #F2DCA5;
}
.rt-dot-normal::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #F2DCA5;
    border-radius: 50%;
}
.rt-timeline-text { flex: 1; }
.rt-tl-title {
    font-weight: 700;
    color: #2A2A2A;
    font-size: 14px;
}
.rt-tl-date {
    font-size: 12px;
    color: #8B8378;
    margin-top: 2px;
}

/* ===== 报名底部弹窗 ===== */
.rt-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 100;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.25s ease;
    overflow: hidden;
}
.rt-modal-overlay.show {
    visibility: visible;
    opacity: 1;
}
.rt-modal-sheet {
    background: #fff;
    display: flex;
    flex-direction: column;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-height: calc(100% - 10px);
    z-index: 101;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.2);
    outline: none;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 460px;
    padding-bottom: 8px;
    box-sizing: border-box;
}
.rt-modal-overlay.show .rt-modal-sheet {
    transform: translateY(0);
}
.rt-modal-handle {
    width: 48px;
    height: 6px;
    background: rgba(0,0,0,0.15);
    border-radius: 3px;
    margin: 12px auto;
    flex-shrink: 0;
}

/* 弹窗头部图片区域 */
.rt-modal-header {
    position: relative;
    width: calc(100% - 20px);
    height: 140px;
    overflow: hidden;
    flex-shrink: 0;
    margin: 0 10px;
    border-radius: 12px;
    border: 2px solid #E8E8E8;
    background: #F8F8F8;
}
.rt-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rt-modal-badge {
    position: absolute;
    top: 12px;
    left: 16px;
    background: linear-gradient(135deg, #D31820, #B01416);
    padding: 4px 12px;
    border-radius: 12px;
}
.rt-badge-text {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.rt-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    min-height: 0;
}
.rt-modal-title {
    font-size: 19px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 10px;
    line-height: 1.4;
}
.rt-modal-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    text-align: justify;
}
.rt-modal-info {
    background: #FFF9F0;
    border: 1px solid #FFE8CC;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}
.rt-info-row {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}
.rt-info-row:last-child { margin-bottom: 0; }
.rt-info-row svg { 
    margin-right: 10px; 
    flex-shrink: 0; 
    margin-top: 1px;
    width: 16px;
    height: 16px;
}
.rt-info-row strong { 
    color: #333;
    font-weight: 600;
}

/* 提示信息 */
.rt-modal-tips {
    display: flex;
    align-items: flex-start;
    padding: 12px 14px;
    background: #FFFBE6;
    border: 1px solid #FEF3C7;
    border-radius: 8px;
    margin-bottom: 8px;
}
.rt-tip-icon {
    flex-shrink: 0;
    margin-right: 8px;
    margin-top: 2px;
}
.rt-modal-tips span {
    font-size: 13px;
    color: #92400E;
    line-height: 1.5;
}

/* 操作按钮区域 */
.rt-modal-actions {
    display: flex;
    gap: 12px;
    padding: 16px 20px 32px;
    flex-shrink: 0;
    border-top: 1px solid #F0F0F0;
    min-height: 80px;
    box-sizing: border-box;
}
.rt-modal-btn {
    flex: 1;
    height: 48px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}
.rt-modal-btn-outline {
    background: #F8F8F8;
    color: #666;
    border: 1px solid #E5E5E5;
}
.rt-modal-btn-outline:hover,
.rt-modal-btn-outline:active {
    background: #F0F0F0;
    border-color: #D0D0D0;
}
.rt-modal-btn-primary {
    background: linear-gradient(135deg, #D31820, #B01416);
    color: #fff;
    box-shadow: 0 4px 12px rgba(211,24,32,0.35);
}
.rt-modal-btn-primary:hover {
    background: linear-gradient(135deg, #C4161C, #A01214);
}
.rt-modal-btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(211,24,32,0.3);
}

/* ===== 统计详情弹窗 ===== */
.rt-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 102;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;
}
.rt-dialog-overlay.show {
    visibility: visible;
    opacity: 1;
}
.rt-dialog-box {
    width: 90%;
    max-width: 320px;
    border: 1px solid #F2DCA5;
    background: #fff;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    border-radius: 20px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.2s ease;
}
.rt-dialog-overlay.show .rt-dialog-box { transform: scale(1); }
.rt-dialog-close {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FFF9ED;
    color: #DF7F1C;
    border: none;
    font-size: 16px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.rt-dialog-close:active { background: #F2DCA5; }
.rt-dialog-title {
    font-size: 18px;
    font-weight: 700;
    color: #D31820;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
.rt-dialog-bar {
    width: 4px;
    height: 16px;
    background: #D31820;
    border-radius: 2px;
    margin-right: 8px;
    flex-shrink: 0;
}
.rt-dialog-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    white-space: pre-wrap;
    text-align: justify;
    margin-top: 16px;
}
.rt-dialog-confirm {
    width: 100%;
    margin-top: 24px;
    background: linear-gradient(to right, #F23933, #D5121B);
    color: #fff;
    font-weight: 700;
    padding: 10px 0;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 3px 8px rgba(213,18,27,0.3);
    transition: transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.rt-dialog-confirm:active { transform: scale(0.95); }

/* ===== 声音设置页面样式 ===== */
.voice-settings-page {
    min-height: 100vh;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
}

.voice-settings-page .sp-header {
    flex-shrink: 0;
}

.voice-settings-page .recommend-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
}

.voice-settings-page .page-content {
    padding: 16px;
}

.voice-settings-page .section {
    margin-bottom: 24px;
}

.voice-settings-page .section-header {
    margin-bottom: 16px;
}

.voice-settings-page .section-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
}

.voice-settings-page .section-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.voice-list-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.voice-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.voice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.12);
}

.voice-card.voice-selected {
    border-color: var(--voice-accent, #ec4899);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.25), 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.voice-check-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--voice-accent, #dc2626);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    animation: checkPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkPopIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.voice-card-header {
    padding: 20px 12px 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    position: relative;
}

.voice-avatar-ring {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.voice-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid;
    font-size: 18px;
    font-weight: 700;
    color: #374151;
}

.voice-tag {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.voice-card-body {
    padding: 4px 12px 12px;
}

.voice-name-cn {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.5px;
}

.voice-name-en {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
    letter-spacing: 0.5px;
}
