/* 小红书风格CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --xhs-red: #FF2442;
    --xhs-pink: #FF4D6F;
    --xhs-light-pink: #FFF1F3;
    --xhs-gray: #333;
    --xhs-light-gray: #999;
    --xhs-bg: #F8F8F8;
    --xhs-white: #FFFFFF;
    --xhs-border: #E5E5E5;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--xhs-bg);
    color: var(--xhs-gray);
    line-height: 1.6;
    overflow-y: scroll;
}

/* 隐藏全局滚动条 */
::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

* {
    scrollbar-width: none;
}

.app-header {
    background: linear-gradient(135deg, var(--xhs-red), var(--xhs-pink));
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
}

.logo-icon {
    font-size: 28px;
}

.header-nav {
    display: flex;
    gap: 32px;
    flex-wrap: nowrap;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    gap: 24px;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-section {
    background: var(--xhs-white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--xhs-gray);
    margin-bottom: 16px;
}

#copyright-section {
    border-left: 3px solid var(--xhs-red);
}

.copyright {
    font-size: 13px;
    color: var(--xhs-light-gray);
    line-height: 1.8;
}

.copyright-intro {
    font-weight: 500;
    color: #666;
    margin-bottom: 12px;
}

.copyright-text {
    margin-bottom: 10px;
    color: var(--xhs-light-gray);
}

.copyright-contact {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--xhs-border);
    color: var(--xhs-light-gray);
}

.copyright a {
    color: var(--xhs-red);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.copyright a:hover {
    color: var(--xhs-pink);
    text-decoration: underline;
}

.stat-card {
    text-align: center;
    padding: 16px;
    background: var(--xhs-light-pink);
    border-radius: 10px;
    margin-bottom: 12px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--xhs-red);
}

.stat-label {
    font-size: 13px;
    color: var(--xhs-gray);
    margin-top: 4px;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-card:hover {
    background: var(--xhs-bg);
    transform: translateX(4px);
}

.user-card:hover .user-avatar {
    transform: scale(1.1);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--xhs-red), var(--xhs-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

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

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--xhs-gray);
    margin-bottom: 2px;
}

.user-stats {
    font-size: 12px;
    color: var(--xhs-light-gray);
}

.content-area {
    flex: 1;
}

.page-content {
    display: block;
}

.page-content.hidden {
    display: none;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--xhs-gray);
    margin-bottom: 8px;
}

.page-desc {
    font-size: 14px;
    color: var(--xhs-light-gray);
    margin-bottom: 24px;
}

.masonry-grid {
    column-gap: 12px;
    column-fill: balance;
}

.note-card {
    display: inline-block;
    width: 100%;
    background: var(--xhs-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    break-inside: avoid;
}

.note-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.note-card .note-cover {
    transition: transform 0.3s ease;
}

.note-card:hover .note-cover {
    transform: scale(1.05);
}

.note-cover {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #FFE4E8, #FFC9D2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-cover img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.note-cover-placeholder {
    font-size: 48px;
}

.note-info {
    padding: 14px;
}

.note-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--xhs-gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.note-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--xhs-light-gray);
}

.note-author {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--xhs-red), var(--xhs-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 12px;
    color: var(--xhs-gray);
}

.note-stats {
    display: flex;
    gap: 12px;
}

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

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.user-detail-card {
    background: var(--xhs-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.user-detail-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.user-detail-card:hover .user-detail-avatar {
    transform: scale(1.05);
}

.user-detail-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--xhs-red), var(--xhs-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: 600;
}

.user-detail-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-detail-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--xhs-gray);
    margin-bottom: 8px;
}

.user-detail-id {
    font-size: 13px;
    color: var(--xhs-light-gray);
    margin-bottom: 16px;
}

.user-detail-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--xhs-border);
}

.user-stat {
    text-align: center;
}

.user-stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--xhs-red);
}

.user-stat-label {
    font-size: 12px;
    color: var(--xhs-light-gray);
    margin-top: 4px;
}

.back-btn {
    background: none;
    border: none;
    color: var(--xhs-gray);
    font-size: 15px;
    cursor: pointer;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    transition: color 0.3s;
}

.back-btn:hover {
    color: var(--xhs-red);
}

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--xhs-white);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    color: var(--xhs-light-gray);
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--xhs-red);
}

.note-detail-container {
    display: flex;
}

.note-detail-images {
    flex: 1;
    max-width: 500px;
    background: #000;
    position: relative;
}

.note-detail-media-container {
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.note-detail-main-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: #000;
    display: block;
}

.note-detail-main-video {
    width: 100%;
    max-height: 70vh;
    background: #000;
    display: block;
}

.note-detail-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    position: relative;
}

.note-detail-thumbs .thumb-wrapper {
    position: relative;
    flex-shrink: 0;
}

.media-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.media-thumb:hover, .media-thumb.active {
    opacity: 1;
    border-color: var(--xhs-red);
}

.thumb-type-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 10px;
    line-height: 1;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    color: var(--xhs-gray);
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    user-select: none;
}

.nav-arrow:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-arrow.prev {
    left: 12px;
}

.nav-arrow.next {
    right: 12px;
}

.media-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
}

.live-badge {
    background: linear-gradient(135deg, #FF9500, #FF2D55);
}

.video-badge {
    background: rgba(0, 0, 0, 0.6);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox.hidden {
    display: none;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    cursor: default;
}

.lightbox-content.lightbox-video {
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2010;
    font-size: 24px;
    color: white;
    transition: all 0.3s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2010;
    font-size: 24px;
    color: white;
    transition: all 0.3s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

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

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

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 16px;
    border-radius: 20px;
}

.note-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.note-thumb:hover, .note-thumb.active {
    opacity: 1;
    border-color: var(--xhs-red);
}

.note-detail-info {
    flex: 1;
    padding: 32px;
}

.note-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--xhs-gray);
    margin-bottom: 16px;
}

.note-detail-desc {
    font-size: 14px;
    color: var(--xhs-gray);
    line-height: 1.8;
    margin-bottom: 24px;
}

.note-detail-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--xhs-border);
    margin-bottom: 20px;
}

.note-detail-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--xhs-red), var(--xhs-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 20px;
}

.note-detail-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.note-detail-author-info {
    flex: 1;
}

.note-detail-author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--xhs-gray);
}

.note-detail-meta {
    font-size: 12px;
    color: var(--xhs-light-gray);
}

.note-detail-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.note-detail-stat {
    text-align: center;
}

.note-detail-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--xhs-red);
}

.note-detail-stat-label {
    font-size: 13px;
    color: var(--xhs-light-gray);
    margin-top: 4px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    background: var(--xhs-light-pink);
    color: var(--xhs-red);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
}

.note-type-badge {
    display: inline-block;
    background: var(--xhs-red);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 12px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--xhs-light-gray);
}

@media (min-width: 1400px) {
    .masonry-grid {
        column-count: 5;
    }
}

@media (min-width: 1024px) and (max-width: 1399px) {
    .masonry-grid {
        column-count: 4;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 479px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 900px) {
    .sidebar {
        display: none;
    }
    
    .note-detail-container {
        flex-direction: column;
    }
    
    .main-container {
        padding: 12px;
    }
    
    .header-nav {
        gap: 4px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 6px 10px;
    }
}

.home-section {
    margin-bottom: 24px;
}

.home-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--xhs-gray);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--xhs-red);
    display: inline-block;
}

.stats-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stats-card {
    background: var(--xhs-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.stats-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--xhs-gray);
    margin-bottom: 12px;
}

.stats-note-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.stats-note-item:hover {
    background: var(--xhs-bg);
    transform: translateX(4px);
}

.stats-note-cover {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FFE4E8, #FFC9D2);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.stats-note-item:hover .stats-note-cover {
    transform: scale(1.1);
}

.stats-note-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.stats-note-item:hover .stats-note-cover img {
    transform: scale(1.1);
}

.stats-note-info {
    flex: 1;
    min-width: 0;
}

.stats-note-title-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--xhs-gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-note-count {
    font-size: 12px;
    color: var(--xhs-light-gray);
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.chart-card {
    background: var(--xhs-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.chart-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--xhs-gray);
    margin-bottom: 16px;
}

.chart-container {
    width: 100%;
    height: 250px;
}

.user-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.user-info-card {
    background: var(--xhs-white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-info-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--xhs-red), var(--xhs-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    font-weight: 600;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.user-info-card:hover .user-info-avatar {
    transform: scale(1.08);
}

.user-info-card:hover .user-info-avatar img {
    transform: scale(1.08);
}

.user-info-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.user-stat-card {
    background: var(--xhs-light-pink);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.user-stat-card:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.user-info-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--xhs-gray);
    margin-bottom: 8px;
}

.user-info-id {
    font-size: 14px;
    color: var(--xhs-light-gray);
    margin-bottom: 20px;
}

.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

.user-stat-card {
    background: var(--xhs-light-pink);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.user-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--xhs-red);
}

.user-stat-label {
    font-size: 13px;
    color: var(--xhs-light-gray);
    margin-top: 4px;
}

.tag-cloud-card {
    background: var(--xhs-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    min-height: 400px;
}

.tag-cloud-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--xhs-gray);
    margin-bottom: 16px;
    text-align: center;
}

.tag-cloud-container {
    width: 100%;
    height: 350px;
    position: relative;
}

.tag-cloud-text-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.tag-text-item {
    position: absolute;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    padding: 2px 6px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

.tag-text-item:hover {
    opacity: 0.7;
    z-index: 10;
    transform: translate(-50%, -50%) scale(1.15) !important;
}

.tag-filter-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: var(--xhs-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.tag-filter-tag {
    background: var(--xhs-red);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-filter-close {
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.notes-type-chart {
    background: var(--xhs-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.ai-container {
    max-width: 800px;
    margin: 0 auto;
}

.ai-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--xhs-white);
    border-radius: 12px;
    padding: 6px;
    box-shadow: var(--shadow);
}

.ai-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--xhs-light-gray);
    cursor: pointer;
    transition: all 0.3s;
}

.ai-tab.active {
    background: var(--xhs-red);
    color: white;
}

.ai-tab:hover:not(.active) {
    background: var(--xhs-light-pink);
    color: var(--xhs-red);
}

.ai-panel {
    display: none;
}

.ai-panel.active {
    display: block;
}

.ai-form {
    background: var(--xhs-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--xhs-gray);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--xhs-bg);
    border-radius: 10px;
    font-size: 14px;
    color: var(--xhs-gray);
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--xhs-red);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ai-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--xhs-red), var(--xhs-pink));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.ai-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 36, 66, 0.4);
}

.ai-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ai-result {
    background: var(--xhs-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    line-height: 1.8;
    font-size: 15px;
    color: var(--xhs-gray);
    white-space: pre-wrap;
    word-break: break-word;
}

.ai-result h2, .ai-result h3 {
    color: var(--xhs-red);
    margin: 16px 0 8px;
}

.ai-result .plan-day {
    background: var(--xhs-light-pink);
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
}

.ai-result .plan-day-title {
    font-weight: 700;
    color: var(--xhs-red);
    font-size: 16px;
    margin-bottom: 8px;
}

.ai-result .plan-activity {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.ai-result .plan-activity:last-child {
    border-bottom: none;
}

.ai-result .plan-activity .time {
    font-weight: 600;
    color: var(--xhs-red);
}

.ai-result .plan-activity .location {
    color: var(--xhs-light-gray);
    font-size: 13px;
}

.ai-result .plan-activity .tips {
    background: #FFF8E1;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 4px;
    display: inline-block;
}

.ai-result .hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.ai-result .hashtag {
    background: var(--xhs-light-pink);
    color: var(--xhs-red);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.ai-result .content-text {
    line-height: 2;
    margin: 16px 0;
    white-space: pre-wrap;
}

.ai-result .image-suggestions {
    background: var(--xhs-bg);
    padding: 16px;
    border-radius: 12px;
    margin-top: 12px;
}

.ai-result .image-suggestions li {
    margin: 4px 0;
    color: var(--xhs-light-gray);
}

.ai-loading {
    text-align: center;
    padding: 40px;
    color: var(--xhs-light-gray);
}

.ai-loading::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--xhs-light-pink);
    border-top-color: var(--xhs-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 12px;
    vertical-align: middle;
}

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

.map-container {
    background: var(--xhs-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}

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

.map-stat-card {
    background: linear-gradient(135deg, var(--xhs-red), var(--xhs-pink));
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
}

.map-stat-card:hover {
    transform: translateY(-4px);
}

.map-stat-number {
    font-size: 36px;
    font-weight: 700;
}

.map-stat-label {
    font-size: 14px;
    margin-top: 4px;
    opacity: 0.9;
}

#map {
    width: 100%;
    height: 700px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.map-notes-section {
    margin-top: 24px;
}

.map-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--xhs-gray);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--xhs-red);
    display: inline-block;
}

.map-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.map-note-card {
    background: var(--xhs-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
}

.map-note-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.map-note-card .map-note-cover {
    transition: transform 0.3s ease;
}

.map-note-card:hover .map-note-cover {
    transform: scale(1.05);
}

.map-note-cover {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #FFE4E8, #FFC9D2);
}

.map-note-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.map-note-card:hover .map-note-cover img {
    transform: scale(1.08);
}

.map-note-info {
    padding: 14px;
}

.map-note-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--xhs-gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.map-note-location {
    font-size: 12px;
    color: var(--xhs-light-gray);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.map-note-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--xhs-light-gray);
}

.map-note-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .map-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .map-cards-grid {
        grid-template-columns: 1fr;
    }
    
    #map {
        height: 350px;
    }
}

/* ==================== 管理页面样式 ==================== */

.admin-container {
    max-width: 800px;
    margin: 0 auto;
}

.admin-section {
    background: var(--xhs-white);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.admin-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--xhs-gray);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--xhs-red);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--xhs-gray);
    margin-bottom: 8px;
}

.admin-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--xhs-border);
    border-radius: 12px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s;
    font-family: inherit;
}

.admin-form textarea:focus {
    outline: none;
    border-color: var(--xhs-red);
}

.admin-btn {
    background: linear-gradient(135deg, var(--xhs-red), #FF4D6F);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
}

.admin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 36, 66, 0.35);
}

.admin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.admin-hint {
    font-size: 14px;
    color: var(--xhs-light-gray);
    margin-bottom: 8px;
}

.admin-result {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    font-size: 15px;
}

.admin-result.hidden {
    display: none;
}

.admin-success {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 12px;
    padding: 16px;
    color: #2f855a;
}

.admin-info {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 12px;
    padding: 16px;
    color: #2b6cb0;
}

.admin-loading {
    text-align: center;
    padding: 20px;
    color: var(--xhs-light-gray);
    font-size: 15px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.admin-stat-card {
    background: linear-gradient(135deg, #FFF5F7, #FFE8EC);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.admin-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--xhs-red);
    margin-bottom: 8px;
}

.admin-stat-label {
    font-size: 14px;
    color: var(--xhs-light-gray);
}

@media (max-width: 768px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}