* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo区域 */
.logo-section {
    text-align: center;
    padding: 60px 0 40px;
}

.logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* 城市列表区域 */
.cities-section {
    padding: 20px 0 40px;
}

.cities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
}

.city-item {
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 120px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.city-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #FFCE00;
    text-decoration: none;
    color: inherit;
}

.city-item.active {
    border-color: #FFCE00;
    background: #fff9e6;
}

.city-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.city-item-rating {
    font-size: 12px;
    color: #FFCE00;
    font-weight: 600;
}

/* 详细评分数据展示 */
.rating-details-section {
    padding: 20px 0 60px;
}

.rating-details-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.details-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.details-city-name {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.details-overall-score {
    font-size: 48px;
    font-weight: bold;
    color: #FFCE00;
    margin-bottom: 8px;
}

.details-score-label {
    font-size: 16px;
    color: #666;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.details-category {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.details-category-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.details-category-score {
    background: #FFCE00;
    color: #333;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
}

.details-category-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.details-category-details {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.details-category-details div {
    margin-bottom: 4px;
}

.section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #FFCE00;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #FFCE00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* 小程序码区域 */
.miniprogram-qr-section {
    padding: 40px 0 60px;
    text-align: center;
}

.qr-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.qr-code-placeholder {
    display: inline-block;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.miniprogram-qr {
    width: 200px;
    height: 200px;
    border-radius: 8px;
}

/* SEO优化：UGC推荐列表样式 */
.seo-ugc-section {
    padding: 40px 40px 60px;
    background: #f8f9fa;
    border-radius: 16px;
    margin: 20px 0;
}

.ugc-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.ugc-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.ugc-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ugc-item h3 {
    font-size: 18px;
    margin: 0 0 12px 0;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    transition: color 0.3s ease;
}

.ugc-item:hover h3 {
    color: #FFCE00;
}

.ugc-content-brief {
    font-size: 14px;
    color: #666;
    margin: 12px 0 16px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ugc-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.ugc-meta span {
    background: #f8f9fa;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.ugc-city {
    background: #e3f2fd !important;
    color: #1976d2 !important;
}

.ugc-type {
    background: #fff3e0 !important;
    color: #f57c00 !important;
}

.ugc-time {
    background: #f3e5f5 !important;
    color: #7b1fa2 !important;
}

/* UGC详情页面样式 */
.ugc-detail-section {
    padding: 20px 0 60px;
}

.ugc-detail-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.ugc-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.ugc-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.3;
}

.ugc-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ugc-meta span {
    background: #f8f9fa;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.ugc-content {
    margin-top: 24px;
}

.ugc-author {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.author-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.ugc-body {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.ugc-body h1, .ugc-body h2, .ugc-body h3 {
    margin: 20px 0 12px 0;
    color: #333;
}

.ugc-body p {
    margin: 12px 0;
}

.ugc-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

/* UGC图片展示样式 */
.ugc-images {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.ugc-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.ugc-image:hover {
    transform: scale(1.02);
}

/* UGC封面图片样式 */
.ugc-cover {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.ugc-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ugc-item:hover .ugc-cover-image {
    transform: scale(1.05);
}

.ugc-content {
    padding: 20px;
}

/* 单张图片样式 */
.ugc-images.single-image {
    display: block;
}

.ugc-images.single-image .ugc-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    display: block;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 图片放大模态框 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.image-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.image-modal-close:hover {
    color: #FFCE00;
}

/* 随机推荐列表样式 */
.random-recommendations-section {
    padding: 40px 40px 60px;
    background: #f8f9fa;
    border-radius: 16px;
    margin: 20px 0;
}

.random-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.random-ugc-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.random-ugc-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.random-ugc-cover {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.random-ugc-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.random-ugc-item:hover .random-ugc-cover-image {
    transform: scale(1.05);
}

.random-ugc-content {
    padding: 20px;
}

.random-ugc-item h3 {
    font-size: 16px;
    margin: 0 0 12px 0;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    transition: color 0.3s ease;
}

.random-ugc-item:hover h3 {
    color: #FFCE00;
}

.random-ugc-brief {
    font-size: 13px;
    color: #666;
    margin: 12px 0 16px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.random-ugc-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.random-ugc-meta span {
    background: #f8f9fa;
    color: #666;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.random-ugc-city {
    background: #e3f2fd !important;
    color: #1976d2 !important;
}

.random-ugc-type {
    background: #fff3e0 !important;
    color: #f57c00 !important;
}

.random-ugc-time {
    background: #f3e5f5 !important;
    color: #7b1fa2 !important;
}

/* 底部ICP */
.footer {
    /*background: rgba(255, 255, 255, 0.9);*/
    backdrop-filter: blur(10px);
    /*border-top: 1px solid rgba(0, 0, 0, 0.1);*/
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    font-size: 12px;
    color: #c3cfe2 ;
}

.footer a {
    color: #c3cfe2 ;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #c3cfe2 ;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .logo-section {
        padding: 40px 0 30px;
    }
    
    .logo {
        max-width: 150px;
    }
    
    .cities-list {
        gap: 8px;
    }
    
    .city-item {
        min-width: 100px;
        padding: 10px 12px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
