* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Ma Shan Zheng', sans-serif;
    background: linear-gradient(135deg, #ea66780a 0%, #ffbe19 100%);
    min-height: 100vh;
}

/* 头部样式 - 与其他页面保持一致 */
header {
    background-color: black;
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

header ul {
    position: absolute;
    right: 5vw;
    top: 0;
    line-height: 80px;
    list-style: none;
}

h1 {
    color: white;
    position: absolute;
    left: 50px;
    top: 2px;
    width: 400px;
    height: 80px;
    line-height: 60px;
    background-image: url(../images/logo1.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    text-indent: -9999px;
}

header li {
    display: inline;
    margin-right: 4vw;
}

header a {
    color: white;
    text-decoration: none;
    font-family: "Microsoft YaHei", sans-serif;
}

header a:hover {
    text-decoration: underline;
}

/* 主内容区域 */
.main-content {
    padding-top: 100px;
    padding-bottom: 50px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* 用户画像卡片 */
.user-profile-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.profile-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    border-left: 4px solid #ff9800;
    padding-left: 15px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.interest-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.history-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.stat-item {
    background: #f5f5f5;
    padding: 8px 16px;
    border-radius: 12px;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #ff9800;
}

/* 推荐内容区域 */
.recommend-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.refresh-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.refresh-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* 卡片网格 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.heritage-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.heritage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #f0f0f0;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.card-content {
    padding: 20px;
}

.card-category {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-height: 63px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.match-score {
    background: #4caf50;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
}

.read-more {
    color: #ff9800;
    text-decoration: none;
    font-size: 14px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
}

.empty-state i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    margin-top: 50px;
}

footer a {
    color: white;
    text-decoration: none;
}

/* ==================== 新增：旅游路线卡片样式 ==================== */
.route-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.route-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.route-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff5722;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.route-day {
    color: #ff9800;
    font-weight: bold;
    margin: 8px 0;
    font-size: 15px;
}

.route-item {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    padding-left: 10px;
    border-left: 2px solid #eee;
    margin-bottom: 8px;
}

.route-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.route-tag {
    background: #f8f9fa;
    color: #333;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 18px;
    }
    .history-stats {
        flex-direction: column;
        gap: 10px;
    }
}
