* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-dark: #1a1a1a;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --accent: #2d5a27;
    --accent-light: #3d7a37;
    --border: #e5e5e5;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* 移动端菜单按钮 */
.menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: none;
    border-radius: 50%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.menu-toggle .menu-icon,
.menu-toggle .back-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.menu-toggle .back-icon {
    display: none;
}

.menu-toggle.active .menu-icon {
    display: none;
}

.menu-toggle.active .back-icon {
    display: flex;
}

/* ==================== 锚点按钮样式（全局） ==================== */
.anchor-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    background: linear-gradient(135deg, #ffffff 0%, #f8faf8 100%);
    border: 1.5px solid rgba(45, 90, 39, 0.3);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #2d5a27;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    white-space: nowrap;
    letter-spacing: 0.5px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    position: relative;
    overflow: hidden;
    line-height: 1.4;
    text-decoration: none;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(45, 90, 39, 0.1);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.anchor-chip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2d5a27 0%, #3d7a37 100%);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 30px;
    z-index: 0;
}

.anchor-chip::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 50%);
    border-radius: 29px;
    z-index: 0;
    pointer-events: none;
}

.anchor-chip span {
    position: relative;
    z-index: 1;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #2d5a27;
    text-shadow: 0 1px 1px rgba(255,255,255,0.9);
}

.anchor-chip:hover {
    border-color: #2d5a27;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(45, 90, 39, 0.25);
}

.anchor-chip:hover::before {
    opacity: 1;
}

.anchor-chip:hover span {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.anchor-chip:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.2);
}

/* 移动端触摸反馈 */
@media (hover: none) {
    .anchor-chip:active {
        background: linear-gradient(135deg, #2d5a27 0%, #3d7a37 100%);
        color: #ffffff;
        border-color: #2d5a27;
        transform: scale(0.95);
        box-shadow: 0 2px 8px rgba(45, 90, 39, 0.3);
    }
    .anchor-chip:active span {
        color: #ffffff;
    }
}

/* ==================== PC端布局 ==================== */
@media screen and (min-width: 769px) {
    body {
        display: flex;
        min-height: 100vh;
    }

    /* 侧边栏 */
    .sidebar {
        width: 30%;
        max-width: 400px;
        min-width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        border-right: 1px solid var(--border);
        position: fixed;
        left: 0;
        top: 0;
        display: flex;
        flex-direction: column;
        padding: 20px;
        overflow-y: auto;
    }

    .sidebar-header {
        margin-bottom: 30px;
    }

    .logo {
        display: flex;
        flex-direction: column;
    }

    .logo-text {
        font-size: 22px;
        font-weight: 700;
        letter-spacing: 4px;
        color: var(--text-primary);
    }

    .logo-sub {
        font-size: 10px;
        letter-spacing: 5px;
        color: var(--text-muted);
        margin-top: 3px;
    }

    .profile-card {
        text-align: center;
    }

    .avatar-container {
        width: 140px;
        height: 140px;
        margin: 0 auto 20px;
        border-radius: 50%;
        overflow: hidden;
        box-shadow: var(--shadow-lg);
    }

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

    .name {
        font-size: 28px;
        font-weight: 600;
        margin-bottom: 8px;
        letter-spacing: 2px;
    }

    .birth-date {
        font-size: 13px;
        color: var(--text-muted);
        letter-spacing: 2px;
        margin-bottom: 25px;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 40px;
        padding: 30px;
        background: var(--bg-primary);
        border-radius: 16px;
    }

    .stat {
        text-align: center;
    }

    .stat-num {
        font-size: clamp(18px, 3.5vw, 32px);
        font-weight: 700;
        color: var(--accent);
        line-height: 1;
    }

    .stat-unit {
        font-size: 12px;
        color: var(--text-muted);
        margin-left: 2px;
    }

    .stat-label {
        display: block;
        font-size: 11px;
        color: var(--text-muted);
        margin-top: 4px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .intro {
        padding: 20px;
        border-left: 3px solid var(--accent);
        text-align: left;
        margin-bottom: 30px;
        display: none;
    }

    .intro p {
        font-size: 14px;
        color: var(--text-secondary);
        line-height: 1.8;
    }

    .view-all-btn {
        display: none;
    }

    /* 兴趣爱好和性格特点 */
    .hobby-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 25px;
    }

    .hobby-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 16px;
        background: var(--bg-primary);
        border-radius: 12px;
        border: 1px solid var(--border);
        text-align: center;
        transition: all 0.3s ease;
    }

    .hobby-card:hover {
        box-shadow: var(--shadow-sm);
        border-color: var(--accent-light);
    }

    .hobby-icon {
        width: 46px;
        height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--accent-light) 0%, rgba(255,182,193,0.3) 100%);
        border-radius: 12px;
        color: var(--accent);
        flex-shrink: 0;
    }

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

    .hobby-content h4 {
        font-size: 11px;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0 0 4px 0;
        text-transform: uppercase;
        letter-spacing: 1.5px;
    }

    .hobby-content p {
        font-size: 12px;
        color: var(--text-secondary);
        margin: 0;
        line-height: 1.5;
    }

    .sidebar-footer {
        margin-top: 40px;
        padding-top: 30px;
        border-top: 1px solid var(--border);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .sidebar-footer p {
        font-size: 12px;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .record-count {
        font-size: 14px;
        font-weight: 600;
        color: var(--accent);
    }

    /* 主内容区 */
    .main-content {
        width: 70%;
        margin-left: 30%;
        padding: 60px 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-section {
        margin-bottom: 80px;
        padding-bottom: 0;
        border-bottom: 1px solid var(--border);
        text-align: center;
    }

    .hero-text {
        padding-bottom: 30px;
    }

    .hero-label {
        display: block;
        font-size: 12px;
        letter-spacing: 4px;
        color: var(--text-muted);
        margin-bottom: 16px;
    }

    .hero-text h2 {
        font-size: 48px;
        font-weight: 300;
        margin-bottom: 12px;
        letter-spacing: -1px;
    }

    .hero-text p {
        font-size: 16px;
        color: var(--text-secondary);
    }

    /* PC端锚点按钮栏 - 在hero文字下方，分隔线上方 */
    .anchors-bar.pc-anchors {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        max-width: 700px;
        width: 100%;
        margin: 0 auto;
        padding: 13px 20px 30px 20px;
        background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 100%);
        border-radius: 0 0 20px 20px;
        position: relative;
        top: -1px;
    }

    /* 移动端锚点按钮栏 - 默认隐藏（PC端不显示） */
    .anchors-bar.mobile-anchors {
        display: none;
    }

    /* 时间线 */
    .timeline {
        position: relative;
        max-width: 800px;
        width: 100%;
    }

    .timeline::before {
        content: '';
        position: absolute;
        left: 60px;
        top: 0;
        bottom: 0;
        width: 1px;
        background: var(--border);
    }

    .timeline-item {
        position: relative;
        display: flex;
        margin-bottom: 60px;
        padding-left: 100px;
    }

    .item-marker {
        position: absolute;
        left: 40px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
    }

    .item-marker .marker-num {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
        color: white;
        font-size: 18px;
        font-weight: 700;
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(255, 182, 193, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .item-card {
        flex: 1;
        background: var(--bg-secondary);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        transition: all 0.3s ease;
    }

    .item-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateX(8px);
    }

    .card-media {
        position: relative;
        height: 280px;
        overflow: hidden;
        cursor: pointer;
    }

    .card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

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

    .media-overlay {
        position: absolute;
        top: 16px;
        right: 16px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        backdrop-filter: blur(4px);
    }

    /* PC端多图网格 */
    .card-media-grid {
        display: grid;
        gap: 4px;
        height: 280px;
        border-radius: 16px;
        overflow: hidden;
    }

    .card-media-grid.grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-media-grid.grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .card-media-grid.grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .card-media-grid .grid-item {
        position: relative;
        cursor: pointer;
        overflow: hidden;
    }

    .card-media-grid .grid-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .card-media-grid .grid-item:hover img {
        transform: scale(1.05);
    }

    .card-media-grid .grid-item.more {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bg-primary);
        color: var(--text-secondary);
        font-size: 20px;
        font-weight: 600;
    }

    .video-card {
        background: linear-gradient(135deg, #1a1a1a, #333);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        min-height: 200px;
    }

    .video-player {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #000;
    }

    .video-placeholder {
        text-align: center;
        color: white;
    }

    .video-placeholder svg {
        margin-bottom: 12px;
        opacity: 0.8;
    }

    .video-placeholder span {
        font-size: 14px;
        letter-spacing: 1px;
        opacity: 0.8;
    }

    .card-content {
        padding: 30px;
    }

    .card-date {
        display: inline-block;
        font-size: 13px;
        color: var(--text-muted);
        margin-bottom: 12px;
        letter-spacing: 1px;
    }

    .card-content h3 {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 12px;
        letter-spacing: -0.5px;
    }

    .card-content p {
        font-size: 15px;
        color: var(--text-secondary);
        line-height: 1.8;
        margin-bottom: 20px;
    }

    /* 隐藏移动端元素 */
    .list-modal,
    .detail-modal {
        display: none;
    }
    
    /* PC端图片预览 */
    .preview-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        z-index: 3000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .preview-modal.active {
        opacity: 1;
        visibility: visible;
    }
    
    .preview-close {
        position: absolute;
        top: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 28px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 3001;
    }
    
    .preview-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 28px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 3001;
    }
    
    .preview-nav.prev {
        left: 30px;
    }
    
    .preview-nav.next {
        right: 30px;
    }
    
    .preview-container {
        max-width: 85%;
        max-height: 85vh;
    }
    
    .preview-container img {
        max-width: 100%;
        max-height: 85vh;
        object-fit: contain;
        border-radius: 8px;
    }
    
    .preview-counter {
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    #overlay {
        display: none;
    }
}

/* ==================== 移动端布局 ==================== */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 10000;
        position: fixed;
        top: 15px;
        right: 15px;
    }

    body {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 100vh;
        background: var(--bg-secondary);
    }

    .sidebar {
        width: 100%;
        max-width: 500px;
        height: 100vh;
        background: var(--bg-secondary);
        padding: 60px 20px 30px;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    .sidebar-header {
        position: absolute;
        top: 20px;
        left: 30px;
    }

    .logo {
        display: flex;
        flex-direction: row;
        gap: 8px;
        align-items: baseline;
    }

    .logo-text {
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 3px;
        color: var(--text-primary);
    }

    .logo-sub {
        font-size: 10px;
        letter-spacing: 3px;
        color: var(--text-muted);
    }

    .profile-card {
        text-align: center;
    }

    .avatar-container {
        width: 120px;
        height: 120px;
        margin: 0 auto 20px;
        border-radius: 50%;
        overflow: hidden;
        box-shadow: var(--shadow-md);
    }

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

    .name {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 6px;
        letter-spacing: 2px;
    }

    .birth-date {
        font-size: 13px;
        color: var(--text-muted);
        letter-spacing: 2px;
        margin-bottom: 30px;
    }

    .stats-grid {
        display: flex;
        gap: 8px;
        margin-bottom: 30px;
        padding: 20px 10px;
        background: var(--bg-primary);
        border-radius: 12px;
    }

    .stat {
        text-align: center;
        min-width: 0;
    }

    .stat.age-stat {
        flex: 4;
    }

    .stat:not(.age-stat) {
        flex: 2;
    }

    .stat-num {
        font-size: clamp(24px, 3.5vw, 38px);
        font-weight: 700;
        color: var(--accent);
        line-height: 1;
        white-space: nowrap;
    }

    .stat-unit {
        font-size: 10px;
        color: var(--text-muted);
    }

    .stat-label {
        display: block;
        font-size: 9px;
        color: var(--text-muted);
        margin-top: 2px;
        text-transform: uppercase;
    }

    .intro {
        padding: 16px 24px;
        background: var(--bg-primary);
        border-radius: 12px;
        text-align: center;
        margin-bottom: 36px;
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--border);
        display: block;
        position: relative;
        overflow: hidden;
    }

    .intro::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    }

    .intro p {
        font-size: 13px;
        color: var(--text-secondary);
        line-height: 1.8;
        font-weight: 400;
        margin: 0;
        letter-spacing: 0.5px;
    }

    .view-all-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 14px;
        background: var(--bg-dark);
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        letter-spacing: 1px;
        flex-shrink: 0;
    }

    /* 移动端锚点按钮栏 */
    .anchors-bar.mobile-anchors {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 16px;
        background: var(--bg-primary);
        border-top: 1px solid var(--border);
        border-bottom: none;
        flex-shrink: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 移动端锚点按钮尺寸优化 */
    .anchors-bar.mobile-anchors .anchor-chip {
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 22px;
        gap: 6px;
        box-shadow: 0 1px 6px rgba(45, 90, 39, 0.08);
    }

    .anchors-bar.mobile-anchors .anchor-chip::before {
        border-radius: 22px;
    }

    .anchors-bar.mobile-anchors .anchor-chip::after {
        border-radius: 21px;
    }

    .anchors-bar.mobile-anchors::-webkit-scrollbar {
        height: 0;
    }

    /* 兴趣爱好和性格特点 - 移动端 */
    .hobby-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 24px;
        width: 100%;
    }

    .hobby-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 16px 12px;
        background: var(--bg-primary);
        border-radius: 12px;
        border: 1px solid var(--border);
        text-align: center;
    }

    .hobby-icon {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--accent-light) 0%, rgba(255,182,193,0.3) 100%);
        border-radius: 12px;
        color: var(--accent);
        flex-shrink: 0;
    }

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

    .hobby-content h4 {
        font-size: 11px;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0 0 4px 0;
        text-transform: uppercase;
        letter-spacing: 1.5px;
    }

    .hobby-content p {
        font-size: 11px;
        color: var(--text-secondary);
        margin: 0;
        line-height: 1.5;
    }

    .sidebar-footer {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border);
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
    }

    .sidebar-footer p {
        font-size: 11px;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .record-count {
        font-size: 13px;
        font-weight: 600;
        color: var(--accent);
    }

    .main-content {
        display: none;
    }

    /* 移动端弹窗 */
    .list-modal,
    .detail-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-primary);
        z-index: 2000;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .list-modal.active,
    .detail-modal.active {
        transform: translateY(0);
    }

    .modal-header {
        background: var(--bg-secondary);
        padding: 20px 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
    }

    .modal-header h3 {
        font-size: 18px;
        font-weight: 600;
        letter-spacing: 1px;
    }

    .close-btn {
        width: 40px;
        height: 40px;
        background: var(--bg-primary);
        border: none;
        border-radius: 50%;
        color: var(--text-primary);
        font-size: 24px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .list-content {
        flex: 1;
        overflow-y: auto;
        padding: 16px 20px 20px 20px;
    }

    .list-item {
        background: var(--bg-secondary);
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 15px;
        box-shadow: var(--shadow-sm);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .list-item:active {
        transform: scale(0.98);
    }

    .list-item-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .list-item-date {
        font-size: 11px;
        font-weight: 600;
        color: var(--accent);
        letter-spacing: 1px;
    }

    .list-item h4 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .list-item p {
        font-size: 13px;
        color: var(--text-secondary);
        line-height: 1.5;
    }

    .detail-modal .modal-header {
        background: var(--bg-secondary);
    }

    .detail-body {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
    }

    .detail-media {
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 20px;
        cursor: pointer;
    }

    .detail-media img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

    .detail-media-grid {
        display: grid;
        gap: 4px;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 20px;
    }

    .detail-media-grid.grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-media-grid.grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-media-grid.grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .detail-media-grid .grid-item {
        position: relative;
        aspect-ratio: 1;
        cursor: pointer;
        overflow: hidden;
    }

    .detail-media-grid .grid-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .detail-media-grid .grid-item:hover img,
    .detail-media-grid .grid-item:active img {
        transform: scale(1.05);
    }

    .detail-media-grid .grid-item.more {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bg-primary);
        color: var(--text-secondary);
        font-size: 18px;
        font-weight: 600;
    }

    .detail-media.video-card {
        background: linear-gradient(135deg, #1a1a1a, #333);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .detail-media .video-player {
        width: 100%;
        height: auto;
        max-height: 250px;
        object-fit: contain;
        background: #000;
    }

    .detail-media .video-placeholder {
        text-align: center;
        color: white;
    }

    .detail-body h3 {
        font-size: 22px;
        font-weight: 600;
        margin-bottom: 12px;
    }

    .detail-body p {
        font-size: 14px;
        color: var(--text-secondary);
        line-height: 1.8;
    }

    /* 移动端详情翻页栏 */
    .detail-pager {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 16px 20px;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border);
        flex-shrink: 0;
    }

    .pager-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 10px 18px;
        background: var(--bg-primary);
        border: 1px solid var(--border);
        border-radius: 20px;
        color: var(--text-primary);
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.25s ease;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
    }

    .pager-btn:hover {
        background: var(--accent);
        color: #fff;
        border-color: var(--accent);
    }

    .pager-btn:active {
        transform: scale(0.96);
        background: var(--accent-light);
    }

    .pager-btn:disabled {
        opacity: 0.35;
        cursor: default;
        pointer-events: none;
    }

    .pager-btn svg {
        flex-shrink: 0;
    }

    .pager-info {
        font-size: 12px;
        color: var(--text-muted);
        min-width: 40px;
        text-align: center;
        letter-spacing: 0.5px;
    }

    /* 图片预览弹窗 */
    .preview-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        z-index: 3000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .preview-modal.active {
        opacity: 1;
        visibility: visible;
    }

    .preview-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 28px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 3001;
    }

    .preview-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 28px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 3001;
    }

    .preview-nav.prev {
        left: 20px;
    }

    .preview-nav.next {
        right: 20px;
    }

    .preview-container {
        max-width: 90%;
        max-height: 80vh;
    }

    .preview-container img {
        max-width: 100%;
        max-height: 80vh;
        object-fit: contain;
        border-radius: 8px;
    }

    .preview-counter {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        font-size: 14px;
        letter-spacing: 2px;
    }

    /* 遮罩层 */
    #overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    #overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item {
    animation: fadeIn 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }
.timeline-item:nth-child(8) { animation-delay: 0.8s; }

/* ==================== 锁覆盖层样式 ==================== */
.locked-media {
    position: relative;
}

.lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 10;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: inherit;
}

.lock-overlay:hover {
    background: rgba(0, 0, 0, 0.75);
}

.lock-icon {
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, color 0.3s ease;
}

.lock-overlay:hover .lock-icon {
    transform: scale(1.1);
    color: #fff;
}

.lock-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 移动端锁覆盖层 */
@media screen and (max-width: 768px) {
    .lock-text {
        font-size: 12px;
    }
    .lock-icon {
        width: 36px;
        height: 36px;
    }
    .lock-overlay {
        gap: 6px;
    }

    /* 移动端详情弹窗中，统一锁定状态容器高度 */
    .detail-body .locked-media.detail-media,
    .detail-body .locked-media.video-card,
    .detail-body .locked-media.detail-media-grid {
        height: 250px;
        min-height: 250px;
        max-height: 250px;
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    }

    /* 锁定多图网格时隐藏grid-item内部图片，仅显示锁覆盖层 */
    .detail-body .locked-media.detail-media-grid .grid-item img {
        display: none;
    }

    .detail-body .locked-media.detail-media-grid .grid-item {
        background: transparent;
    }

    .detail-body .locked-media.video-card video {
        display: none;
    }

    /* 锁定状态下隐藏图片标签，让锁覆盖层完整显示 */
    .detail-body .locked-media.detail-media img[data-src],
    .detail-body .locked-media.detail-media img[src=""] {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* ==================== 密码验证弹窗样式（PC端） ==================== */
@media screen and (min-width: 769px) {
    .pwd-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 5001;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .pwd-modal.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .pwd-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.55);
        z-index: 5000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        pointer-events: none;
    }

    .pwd-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .pwd-modal-card {
        position: relative;
        background: #fff;
        border-radius: 20px;
        padding: 40px 36px 32px;
        width: 100%;
        max-width: 400px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
        text-align: center;
        animation: pwdCardIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 5002;
        pointer-events: auto;
    }

    @keyframes pwdCardIn {
        from {
            opacity: 0;
            transform: translateY(20px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .pwd-modal-close {
        position: absolute;
        top: 12px;
        right: 14px;
        width: 36px;
        height: 36px;
        background: transparent;
        border: none;
        border-radius: 50%;
        color: #999;
        font-size: 22px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        line-height: 1;
    }

    .pwd-modal-close:hover {
        background: #f5f5f5;
        color: #333;
    }

    .pwd-modal-icon {
        margin-bottom: 16px;
        color: #2d5a27;
    }

    .pwd-modal-hint {
        font-size: 18px;
        font-weight: 600;
        color: #1a1a1a;
        margin-bottom: 24px;
        line-height: 1.5;
        letter-spacing: 0.5px;
    }

    .pwd-modal-input-group {
        position: relative;
        margin-bottom: 8px;
    }

    .pwd-modal-input {
        width: 100%;
        padding: 12px 46px 12px 16px;
        background: #f8f9fa;
        border: 1.5px solid #e5e5e5;
        border-radius: 12px;
        font-size: 15px;
        color: #1a1a1a;
        outline: none;
        transition: all 0.25s;
        letter-spacing: 2px;
    }

    .pwd-modal-input:focus {
        border-color: #2d5a27;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.08);
    }

    .pwd-modal-input::placeholder {
        color: #bbb;
        letter-spacing: 1px;
    }

    .pwd-toggle-visibility {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        background: transparent;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
        transition: color 0.2s;
    }

    .pwd-toggle-visibility:hover {
        color: #555;
    }

    .pwd-toggle-visibility .eye-open {
        display: none;
    }

    .pwd-toggle-visibility.visible .eye-closed {
        display: none;
    }

    .pwd-toggle-visibility.visible .eye-open {
        display: block;
    }

    .pwd-modal-error {
        font-size: 12px;
        color: #dc2626;
        min-height: 18px;
        margin-bottom: 8px;
        text-align: center;
    }

    .pwd-modal-submit {
        width: 100%;
        padding: 12px;
        background: linear-gradient(135deg, #2d5a27 0%, #3d7a37 100%);
        color: #fff;
        border: none;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        letter-spacing: 1px;
    }

    .pwd-modal-submit:hover {
        box-shadow: 0 6px 20px rgba(45, 90, 39, 0.3);
        transform: translateY(-1px);
    }

    .pwd-modal-submit:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(45, 90, 39, 0.2);
    }
}

/* ==================== 密码验证弹窗样式（移动端） ==================== */
@media screen and (max-width: 768px) {
    .pwd-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 5001;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    .pwd-modal.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .pwd-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 5000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s ease;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        pointer-events: none;
    }

    .pwd-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .pwd-modal-card {
        position: relative;
        background: #fff;
        border-radius: 24px 24px 0 0;
        padding: 32px 24px 36px;
        width: 100%;
        max-width: 500px;
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
        text-align: center;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 5002;
        pointer-events: auto;
    }

    .pwd-modal.active .pwd-modal-card {
        transform: translateY(0);
    }

    .pwd-modal-close {
        position: absolute;
        top: 14px;
        right: 16px;
        width: 36px;
        height: 36px;
        background: #f5f5f5;
        border: none;
        border-radius: 50%;
        color: #666;
        font-size: 22px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        line-height: 1;
    }

    .pwd-modal-close:active {
        background: #e5e5e5;
        color: #333;
    }

    .pwd-modal-icon {
        margin-bottom: 12px;
        color: #2d5a27;
    }

    .pwd-modal-hint {
        font-size: 17px;
        font-weight: 600;
        color: #1a1a1a;
        margin-bottom: 22px;
        line-height: 1.5;
        letter-spacing: 0.5px;
        padding: 0 10px;
    }

    .pwd-modal-input-group {
        position: relative;
        margin-bottom: 8px;
    }

    .pwd-modal-input {
        width: 100%;
        padding: 13px 48px 13px 16px;
        background: #f8f9fa;
        border: 1.5px solid #e5e5e5;
        border-radius: 14px;
        font-size: 16px;
        color: #1a1a1a;
        outline: none;
        transition: all 0.25s;
        letter-spacing: 2px;
    }

    .pwd-modal-input:focus {
        border-color: #2d5a27;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.08);
    }

    .pwd-modal-input::placeholder {
        color: #bbb;
        letter-spacing: 1px;
    }

    .pwd-toggle-visibility {
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        width: 38px;
        height: 38px;
        background: transparent;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
        transition: color 0.2s;
        -webkit-tap-highlight-color: transparent;
    }

    .pwd-toggle-visibility:active {
        color: #555;
    }

    .pwd-toggle-visibility .eye-open {
        display: none;
    }

    .pwd-toggle-visibility.visible .eye-closed {
        display: none;
    }

    .pwd-toggle-visibility.visible .eye-open {
        display: block;
    }

    .pwd-modal-error {
        font-size: 12px;
        color: #dc2626;
        min-height: 18px;
        margin-bottom: 10px;
        text-align: center;
    }

    .pwd-modal-submit {
        width: 100%;
        padding: 14px;
        background: linear-gradient(135deg, #2d5a27 0%, #3d7a37 100%);
        color: #fff;
        border: none;
        border-radius: 14px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        letter-spacing: 1px;
        -webkit-tap-highlight-color: transparent;
    }

    .pwd-modal-submit:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(45, 90, 39, 0.2);
    }
}

/* 锁定状态下的图片占位（无src时） */
.locked-media img[data-src] {
    opacity: 0;
}

.locked-media img[src=""] {
    opacity: 0;
}

/* 锁定图片默认占位背景 */
.locked-media:not(.card-media-grid) {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

/* 统一锁定状态下媒体容器高度 */
.locked-media.card-media,
.locked-media.video-card {
    height: 280px;
    min-height: 280px;
    max-height: 280px;
}

.locked-media.card-media-grid {
    height: 280px;
    min-height: 280px;
}

.locked-media .grid-item {
    background: #1a1a1a;
}

/* 视频锁定覆盖层内嵌video隐藏 */
.locked-media.video-card video[src=""] {
    display: none;
}

/* 锁定图片单独样式（侧边栏头像等） */
.locked-img {
    opacity: 0;
}

/* 密码输入框支持中文（使用text类型时） */
.pwd-modal-input {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

/* 移动端输入框优化 */
@media screen and (max-width: 768px) {
    .pwd-modal-input {
        font-size: 16px !important; /* 防止iOS缩放 */
    }
}
