:root {
    --primary-color: #5D4037; /* 深棕色主色调 */
    --bg-color: #FAFAFA;
    --text-color: #333;
    --secondary-text: #666;
    --border-color: #E0E0E0;
    
    /* 标签颜色 */
    --tag-activity: #FF9800; /* 活动 - 橙色 */
    --tag-social: #F44336;   /* 社交 - 红色 */
    --tag-rest: #4CAF50;     /* 休息 - 绿色 */
    --tag-travel: #FF5252;   /* 旅游 - 粉红/红色 */
    --tag-memory: #FF9800;   /* 回忆 - 橙色 */
    --tag-hobby: #9C27B0;    /* 爱好 - 紫色 */
    --tag-reunion: #FF9800;  /* 团聚 - 橙色 */
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    padding-bottom: 80px; /* 为底部按钮留空 */
}

/* 头部样式 */
.header {
    padding: 20px;
    background: #fff;
}

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

.header-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.header-subtitle {
    font-size: 12px;
    color: var(--secondary-text);
}

.header-icons {
    font-size: 20px;
    color: #333;
    letter-spacing: 10px;
}

/* Tab 切换样式 */
.tabs {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #5D4037;
    border-radius: 8px;
    background: #fff;
    color: #5D4037;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.tab-btn.active {
    background: #5D4037;
    color: #fff;
    box-shadow: 0 4px 6px rgba(93, 64, 55, 0.3);
}

.tab-icon-wrapper {
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-icon {
    font-size: 24px;
    color: #FFA726; /* 金色大拇指 */
    transform: rotate(-10deg);
}

.sub-icon {
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 14px;
    color: #F44336; /* 红色爱心 */
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

/* 非选中状态隐藏图标 */
.tab-btn:not(.active) .tab-icon-wrapper {
    display: none;
}

.tab-btn:not(.active) {
    background-color: #fff;
    color: #5D4037;
}

/* 选中状态文字变大 */
.tab-btn.active .tab-text {
    font-size: 20px;
}

/* 列表项分类样式 */
.timeline-card .tag, .day-item .tag {
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

/* 定义具体颜色类 */
.tag-travel { background-color: #FF5722; } /* 旅游 - 橙红色 */
.tag-social { background-color: #E91E63; } /* 社交 - 粉红色 */
.tag-activity { background-color: #4CAF50; } /* 活动 - 绿色 */
.tag-hobby { background-color: #9C27B0; } /* 爱好 - 紫色 */
.tag-rest { background-color: #009688; } /* 休息 - 青色 */
.tag-reunion { background-color: #FF9800; } /* 团聚 - 橙色 */



/* 内容区域通用 */
.content-view {
    display: none;
    padding: 15px;
    animation: fadeIn 0.3s ease;
}

.content-view.active {
    display: block;
}

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

/* 本周推荐 - 时间轴样式 */
.timeline {
    position: relative;
    padding-left: 20px;
    border-left: 1px dashed #ccc;
    margin-left: 10px;
    margin-top: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 0;
    width: 12px;
    height: 12px;
    background: #FF7043;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #FF7043;
}

.timeline-date {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.timeline-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.timeline-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.timeline-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.timeline-loc {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 本月推荐 - 手风琴样式 */
.week-group {
    margin-bottom: 15px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.week-header {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.week-header::after {
    content: '';
    width: 0; 
    height: 0; 
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #fff;
    transition: transform 0.3s;
}

.week-group.collapsed .week-header::after {
    transform: rotate(-90deg);
}

/* 左侧装饰斜角 */
.week-header-deco {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    background: rgba(255,255,255,0.1);
    transform: skewX(-20deg) translateX(-20px);
}

.week-list {
    display: block;
}

.week-group.collapsed .week-list {
    display: none;
}

.day-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

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

.day-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    font-size: 20px;
}

.day-info {
    flex: 1;
}

.day-date {
    font-size: 14px;
    color: #666;
    margin-right: 5px;
}

.day-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
}

/* 标签通用样式 */
.tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
}

.tag.absolute {
    position: absolute;
    right: 15px;
    top: 15px;
}

/* 底部悬浮按钮 */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid #eee;
    z-index: 100;
}
