/* Home Page Styles - 首页特定样式 */

body {
    background: linear-gradient(180deg, #F8FAFC 0%, #EEF2F7 100%);
    min-height: 100vh;
}

.container {
    padding: 0 0 80px;
    max-width: 100%;
}

/* 顶部搜索栏 */
.home-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px 20px 60px;
    border-radius: 0 0 24px 24px;
}

.home-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.location-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    padding: 8px 14px;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.location-badge svg {
    width: 16px;
    height: 16px;
}

.header-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.header-action {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    backdrop-filter: blur(10px);
}

.search-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.search-card svg {
    color: #999;
    flex-shrink: 0;
}

.search-card input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #333;
}

.search-card input::placeholder {
    color: #999;
}

/* 用户欢迎卡片 */
.welcome-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: -40px 16px 16px;
    padding: 24px;
    border-radius: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.welcome-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.welcome-card p {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 16px;
}

.user-stats-row {
    display: flex;
    gap: 20px;
}

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

.user-stat-value {
    font-size: 24px;
    font-weight: 700;
}

.user-stat-label {
    font-size: 12px;
    opacity: 0.8;
}

/* 快捷入口 */
.quick-entry-section {
    padding: 0 16px;
    margin-top: 20px;
}

.quick-entry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quick-entry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: #fff;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.quick-entry-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.quick-entry-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-entry-icon svg {
    width: 24px;
    height: 24px;
}

.quick-entry-text {
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

/* 卡片通用样式 */
.section-card {
    background: #fff;
    margin: 0 16px 16px;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

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

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.section-more {
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Banner */
.banner-section {
    margin: 16px;
}

.banner-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 160px;
}

.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
}

.banner-overlay h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.banner-overlay p {
    font-size: 13px;
    opacity: 0.85;
}

/* 线路卡片 */
.line-card {
    background: #fff;
    margin: 0 16px 16px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.line-card-cover {
    height: 140px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.line-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.line-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.95);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 4px;
}

.line-card-body {
    padding: 16px;
}

.line-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.line-card-meta {
    display: flex;
    gap: 16px;
    color: #666;
    font-size: 13px;
    margin-bottom: 12px;
}

.line-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.line-card-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.line-card-progress-bar {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.line-card-progress-inner {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.line-card-progress-text {
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
    white-space: nowrap;
}

/* 任务卡片 */
.task-list {
    padding: 0 16px;
}

.task-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
}

.task-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

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

.task-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.task-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-card-points {
    background: linear-gradient(135deg, #FF6B35, #ff9a7b);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.task-card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #999;
    font-size: 12px;
}

.task-card-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 20px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
    z-index: 100;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bottom-nav-item.active {
    color: #667eea;
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
}

.bottom-nav-item span {
    font-size: 11px;
    font-weight: 500;
}