* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #f5f7fb;
    color: #1e293b;
    padding-bottom: 70px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 头部导航 ========== */
.header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    gap: 20px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #f97316, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    flex-shrink: 0;
}

.logo i {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #f97316;
    margin-right: 6px;
}

.search-bar {
    flex: 1;
    max-width: 360px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 8px 36px 8px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-size: 13px;
    outline: none;
    background: #f8fafc;
}

.search-bar input:focus {
    border-color: #f97316;
    background: white;
}

.search-bar button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.nav-links a i {
    margin-right: 6px;
    font-size: 13px;
}

.nav-links a.active {
    color: #f97316;
}

.user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #f8fafc;
    border-radius: 50%;
}

.user-icon i {
    font-size: 18px;
    margin: 0;
    color: #475569;
}

/* 移动端顶部栏 */
.mobile-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    z-index: 200;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mobile-back-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #475569;
    padding: 8px;
}

.mobile-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-search-icon {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #475569;
    padding: 8px;
}

.mobile-search-icon i {
    color: #f97316;
}

.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 300;
    padding: 16px 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-search-overlay.show {
    transform: translateY(0);
}

.mobile-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-search-header input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-size: 16px;
    outline: none;
    background: #f8fafc;
}

.mobile-search-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
}

.mobile-header-placeholder {
    display: none;
}

/* 列表页头部 */
.list-header {
    margin: 24px 0 20px;
}

.list-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-header h1 i {
    color: #f97316;
    font-size: 28px;
}

.list-header p {
    color: #64748b;
    font-size: 14px;
}

/* 列表项 */
.list-item {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    gap: 20px;
    transition: all 0.2s;
    border: 1px solid #eef2f6;
    cursor: pointer;
}

.list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.item-content {
    flex: 1;
}

.item-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.cat-food { background: #fee2e2; color: #dc2626; }
.cat-travel { background: #dcfce7; color: #16a34a; }
.cat-hotel { background: #dbeafe; color: #2563eb; }
.cat-tips { background: #fef3c7; color: #d97706; }

.item-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #1e293b;
    text-decoration: none;
    display: block;
}

.item-title:hover {
    color: #f97316;
}

.item-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #64748b;
}

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

.metric i {
    width: 14px;
    font-size: 12px;
    color: #94a3b8;
}

.metric-price {
    color: #f97316;
    font-weight: 600;
}

.difficulty-easy {
    background: #dcfce7;
    color: #16a34a;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
}

.difficulty-mid {
    background: #fef3c7;
    color: #d97706;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
}

.difficulty-hard {
    background: #fee2e2;
    color: #dc2626;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
}

.item-excerpt {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 10px;
}

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

.tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
}

.tag-warning {
    background: #fef2f2;
    color: #dc2626;
}

.tag-info {
    background: #e0f2fe;
    color: #0284c7;
}

.tag-default {
    background: #f1f5f9;
    color: #475569;
}

.item-img {
    width: 168px;
    height: 160px;
    background-color: #e2e8f0;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 32px 0 48px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    text-decoration: none;
    color: #475569;
    font-size: 14px;
}

.page-link.active {
    background: #f97316;
    border-color: #f97316;
    color: white;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid #eef2f6;
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 8px 16px 12px;
    z-index: 200;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #94a3b8;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 30px;
}

.bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.bottom-nav-item.active {
    color: #f97316;
    background: #fef3c7;
}

.footer {
    text-align: center;
    padding: 40px 0 32px;
    color: #94a3b8;
    font-size: 12px;
    border-top: 1px solid #eef2f6;
    margin-top: 24px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    body { padding-bottom: 70px; }
    .header { display: none; }
    .mobile-top-bar { display: flex; }
    .bottom-nav { display: flex; }
    .footer { display: none; }
    .mobile-header-placeholder { display: block; height: 60px; }
    
    .list-header { margin: 16px 0; }
    .list-header h1 { font-size: 22px; }
    .list-header h1 i { font-size: 22px; }
    
    .list-item { flex-direction: column; padding: 16px; }
    .item-img { width: 100%; height: 160px; margin-top: 8px; }
    .item-title { font-size: 16px; }
    .item-metrics { font-size: 12px; gap: 12px; }
    .item-excerpt { font-size: 13px; }
}

@media (min-width: 769px) {
    .mobile-top-bar { display: none !important; }
    .mobile-header-placeholder { display: none !important; }
}