/* 户外线路分享网 - 前端样式 */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --gray: #95a5a6;
    --border: #e0e0e0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --radius: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: all 0.3s; }

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

/* 头部 */
.site-header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    height: 64px;
}
.header-container {
    position: relative;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary);
    margin-right: 40px;
}

.logo i { margin-right: 8px; }

.main-nav {
    display: flex;
    gap: 30px;
    flex: 1;
}

.main-nav a {
    color: #666;
    font-weight: 500;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box form {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: #f5f5f5;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 6px 12px;
    width: 180px;
    outline: none;
}

.search-box button {
    border: none;
    background: none;
    padding: 6px 12px;
    cursor: pointer;
    color: #999;
}

.btn-login {
    padding: 6px 20px;
    background: var(--secondary);
    color: #fff !important;
    border-radius: 20px;
    font-size: 14px;
}

.user-menu { position: relative; }
.user-menu .dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    min-width: 140px;
    overflow: hidden;
}
.user-menu:hover .dropdown { display: block; }
.user-menu .dropdown a {
    display: block;
    padding: 10px 16px;
    color: #666;
}
.user-menu .dropdown a:hover { background: #f5f5f5; color: var(--secondary); }
.user-avatar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 4px 8px;
}
.header-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.header-user-nickname {
    font-size: 14px;
    color: #666;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* 主内容 */
.site-main { min-height: calc(100vh - 300px); }

.section { padding: 40px 0; }
.bg-light { background: #f0f2f5; }

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

.section-title {
    font-size: 22px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i { color: var(--secondary); }

.more { color: var(--secondary); font-size: 14px; }

/* 轮播 */
.banner-section { position: relative; }
.banner-section .swiper-slide img,
.banner-default {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
}

.banner-default {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.banner-content h2 { font-size: 36px; margin-bottom: 12px; }
.banner-content p { font-size: 18px; opacity: 0.9; }

/* 公告 */
.notice-bar {
    background: #fff3cd;
    padding: 10px 0;
    margin-top: 10px;
    border-radius: var(--radius);
}
.notice-bar .container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.notice-bar i { color: var(--warning); }
.notice-scroll a {
    color: #856404;
    margin-right: 20px;
    font-size: 14px;
}
.notice-scroll a:hover { text-decoration: underline; }

/* 线路卡片 */
.route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.route-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.route-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.route-card:hover .card-cover img { transform: scale(1.05); }

.difficulty-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
    font-weight: 500;
}

.difficulty-1 { background: #27ae60; }
.difficulty-2 { background: #2ecc71; }
.difficulty-3 { background: #f39c12; }
.difficulty-4 { background: #e67e22; }
.difficulty-5 { background: #e74c3c; }

.card-body { padding: 16px; }

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.card-meta i { margin-right: 4px; }

.card-tags { margin-bottom: 12px; }

.tag {
    display: inline-block;
    padding: 2px 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 6px;
    margin-bottom: 4px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 13px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.card-footer-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 13px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.card-footer-new .author-name {
    color: #666;
    font-size: 13px;
}

.card-footer-new .stats-right {
    display: flex;
    gap: 12px;
}

.card-footer-new .stat-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-footer-new .stat-item i {
    margin-right: 2px;
}

/* 两栏布局 */
.two-col { display: flex; gap: 30px; }
.col-main { flex: 1; }
.col-side { width: 320px; }

/* 线路列表项 */
.route-list { display: flex; flex-direction: column; gap: 16px; }

.route-item {
    display: flex;
    gap: 16px;
    background: #fff;
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.item-cover {
    width: 160px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

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

.item-info { flex: 1; }

.item-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--dark);
}

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

.item-meta {
    display: flex;
    gap: 16px;
    color: #999;
    font-size: 13px;
    flex-wrap: wrap;
}

.item-meta .item-author {
    color: #666;
}

.item-meta .item-stats {
    display: inline-flex;
    gap: 12px;
}

.item-meta .item-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.item-meta .difficulty-1 { color: #27ae60; background: none; padding: 0; }
.item-meta .difficulty-2 { color: #2ecc71; background: none; padding: 0; }
.item-meta .difficulty-3 { color: #f39c12; background: none; padding: 0; }
.item-meta .difficulty-4 { color: #e67e22; background: none; padding: 0; }
.item-meta .difficulty-5 { color: #e74c3c; background: none; padding: 0; }

.item-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

/* 圈子 */
.circle-list { display: flex; flex-direction: column; gap: 12px; }

.circle-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.circle-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.circle-info h4 { font-size: 15px; margin-bottom: 4px; }
.circle-info p { font-size: 13px; color: #999; }

/* 需求 */
.demand-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.demand-item {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.demand-status {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
}

.status-0 { background: #fff3cd; color: #856404; }
.status-1 { background: #d1ecf1; color: #0c5460; }
.status-2 { background: #d4edda; color: #155724; }

.demand-item h4 { margin-bottom: 8px; padding-right: 60px; }
.demand-item p { color: #666; font-size: 14px; margin-bottom: 12px; }
.demand-meta { display: flex; gap: 16px; color: #999; font-size: 13px; }

/* 首页需求列表 */
.demand-list-home { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.demand-item-clickable {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}
.demand-item-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.demand-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.demand-item-top .demand-status { position: static; }
.demand-route-type {
    font-size: 12px;
    color: var(--secondary);
    background: #f0f7ff;
    padding: 2px 8px;
    border-radius: 10px;
}
.demand-best-badge {
    color: #4caf50;
    margin-left: 4px;
}

/* 筛选栏 */
.filter-bar {
    background: #fff;
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.filter-group:last-child { margin-bottom: 0; }

.filter-group label {
    font-weight: 500;
    color: #666;
    min-width: 50px;
}

.filter-group a {
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 14px;
    color: #666;
    background: #f5f5f5;
}

.filter-group a:hover, .filter-group a.active {
    background: var(--secondary);
    color: #fff;
}

/* 分页 */
.pagination-wrap { margin-top: 30px; text-align: center; }

.pagination {
    display: inline-flex;
    gap: 8px;
    background: #fff;
    padding: 8px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 14px;
}

.pagination a { color: #666; background: #f5f5f5; }
.pagination a:hover { background: var(--secondary); color: #fff; }
.pagination span.current { background: var(--secondary); color: #fff; }

/* 表单样式 */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 6px; font-weight: 500; color: #555; }
.form-row input[type="text"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    transition: border 0.3s;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    border-color: var(--secondary);
    outline: none;
}

/* 认证表单 */
.auth-section { padding: 60px 0; }
.auth-box {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header h2 { font-size: 24px; margin-bottom: 8px; color: var(--dark); }
.auth-header p { color: #999; }
.auth-form .form-row { margin-bottom: 20px; }
.auth-form label { display: block; margin-bottom: 6px; font-weight: 500; color: #555; }
.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}
.auth-form input:focus { border-color: var(--secondary); outline: none; }
.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }
.input-group .btn { white-space: nowrap; }
.form-options { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.form-options a { color: var(--secondary); }
.auth-footer { text-align: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid #f0f0f0; color: #999; }
.auth-footer a { color: var(--secondary); font-weight: 500; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px; border-radius: 6px; font-size: 14px; cursor: pointer; border: none; transition: all 0.3s; text-decoration: none; }
.btn-primary { background: var(--secondary); color: #fff; }
.btn-primary:hover { background: #2980b9; }
.btn-secondary { background: #95a5a6; color: #fff; }
.btn-secondary:hover { background: #7f8c8d; }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

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

.empty-state i { font-size: 48px; margin-bottom: 16px; display: block; }

/* 详情页 */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 40px 0;
    margin-bottom: 0;
}

.page-header h1 { font-size: 28px; margin-bottom: 8px; }
.page-header p { opacity: 0.9; }

.route-detail { padding-top: 30px; }

.detail-header {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.detail-cover {
    width: 320px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

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

.detail-info { flex: 1; min-width: 0; }

.detail-info h1 { font-size: 24px; margin-bottom: 12px; }

.detail-info .detail-author { margin-bottom: 12px; }

.detail-meta {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item {
    text-align: center;
    flex: 1;
    padding-right: 30px;
    border-right: 1px solid #e0e0e0;
}
.stat-item:last-child {
    border-right: none;
    padding-right: 0;
}
.stat-value { display: block; font-size: 20px; font-weight: bold; color: var(--dark); }
.stat-label { font-size: 13px; color: #999; }

.detail-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary { background: var(--secondary); color: #fff; }
.btn-primary:hover { background: #2980b9; }

.btn-secondary { background: #95a5a6; color: #fff; }
.btn-secondary:hover { background: #7f8c8d; }

.btn-lg { padding: 12px 18px; font-size: 16px; }

.btn-like, .btn-fav {
    background: #fff;
    border: 1px solid var(--border);
    color: #666;
}

.btn-like.active { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.btn-fav.active { background: #f39c12; color: #fff; border-color: #f39c12; }

.extract-code {
    background: #fff3cd;
    padding: 4px 12px;
    border-radius: 4px;
    color: #856404;
    font-size: 14px;
}

/* 地图 */
.map-section {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.route-map {
    width: 100%;
    height: 450px;
    background: #e0e0e0;
}

.map-tools {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.map-tools button {
    width: 85px;
    height: 36px;
    background: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 详情内容 */
.detail-content {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.detail-content h3 {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.content-body { line-height: 1.8; color: #555; }
.content-body p { margin-bottom: 12px; }
.content-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; display: block; }
.content-body a { color: var(--secondary); }

/* 评论 */
.comment-section {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.comment-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.comment-form { margin-bottom: 24px; }
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    resize: vertical;
    min-height: 80px;
    margin-bottom: 10px;
}

.comment-tip {
    text-align: center;
    padding: 20px;
    color: #999;
    background: #f5f5f5;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.comment-tip a { color: var(--secondary); }

.comment-list { display: flex; flex-direction: column; gap: 16px; }

.comment-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f5f5f5;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-body { flex: 1; }

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.comment-user { font-weight: 500; color: var(--dark); }
.comment-user .author-link { color: var(--secondary); text-decoration: none; }
.comment-user .author-link:hover { text-decoration: underline; }
.comment-time { font-size: 13px; color: #999; }
.comment-text { color: #555; font-size: 14px; }

/* 底部 */
.site-footer {
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
    color: #aaa;
    padding: 40px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 24px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
}

.footer-section p { font-size: 14px; line-height: 1.8; }

.footer-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
}
.footer-about .footer-logo i { color: var(--secondary); }
.footer-about p { margin-bottom: 20px; }

.footer-links {
    list-style: none;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #aaa;
    font-size: 14px;
    transition: all 0.3s;
}
.footer-links a:hover { color: #fff; }

.footer-contact {
    list-style: none;
}
.footer-contact li {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.copyright {
    text-align: center;
    font-size: 13px;
}
.copyright a {
    color: #aaa;
    transition: color 0.3s;
}
.copyright a:hover { color: var(--secondary); }

.icp {
    text-align: center;
    font-size: 12px;
    color: #888;
}

/* 响应式 */
@media (max-width: 768px) {
    .logo { font-size: 18px; margin-right: 16px; }
    .logo span { display: none; }
    
    .main-nav { 
        display: none; 
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .main-nav.show { display: flex; }
    .main-nav a {
        padding: 14px 20px;
        border-bottom: 1px solid #f5f5f5;
    }
    .main-nav a.active { border-left: 3px solid var(--secondary); }
    .mobile-toggle { display: flex; }

    .header-right { margin-left: auto; }
    
    .route-grid { grid-template-columns: 1fr; }
    .two-col { flex-direction: column; }
    .col-side { width: 100%; }

    .detail-header { flex-direction: column; }
    .detail-cover { width: 100%; aspect-ratio: 16 / 9; }

    .route-item { flex-direction: column; }
    .item-cover { width: 100%; aspect-ratio: 16 / 9; }

    .footer-content { grid-template-columns: 1fr; gap: 20px; }
    .footer-about { grid-column: 1 / -1; }
    .footer-bottom { text-align: center; }

    .banner-default { height: 200px; }
    .banner-content h2 { font-size: 24px; }

    .detail-stats { gap: 16px; }
    .filter-group { gap: 6px; }

    .featured-circles { grid-template-columns: repeat(2, 1fr); }
    .fc-cover { height: 80px; }
}

/* 首页搜索框 */
.home-search-bar {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.home-search-form {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}
.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f7fa;
    border-radius: 24px;
    padding: 0 16px;
    border: 2px solid transparent;
    transition: all 0.3s;
}
.search-input-wrap:focus-within {
    border-color: var(--secondary);
    background: #fff;
}
.search-input-wrap i { color: #999; }
.search-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    outline: none;
    font-size: 15px;
}
.home-search-form button {
    padding: 10px 28px;
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}
.home-search-form button:hover {
    background: #2980b9;
}

/* 线路/圈子列表页搜索区域 */
.page-header .header-search {
    margin-top: 16px;
}
.page-header .header-search form {
    display: flex;
    gap: 10px;
    max-width: 500px;
}
.page-header .header-search input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}
.page-header .header-search input:focus {
    border-color: var(--secondary);
}
.page-header .header-search button {
    padding: 10px 20px;
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

/* 首页英雄区域 */
.home-hero {
    padding: 80px 20px;
    text-align: center;
}
.hero-content {
    max-width: 600px;
    margin: 0 auto;
}
.hero-title {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    letter-spacing: 3px;
}
.hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    margin-bottom: 32px;
}
.hero-search-box {
    background: #fff;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}
.hero-search-box form {
    display: flex;
    align-items: center;
}
.hero-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 20px;
    font-size: 16px;
    outline: none;
}
.hero-search-box button {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}
.hero-search-box button:hover {
    background: #2980b9;
    transform: scale(1.05);
}
.hero-tags {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}
.hero-tags a {
    color: #fff;
    margin: 0 6px;
    padding: 4px 14px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    transition: all 0.3s;
}
.hero-tags a:hover {
    background: rgba(255,255,255,0.35);
}

/* 精选圈子区块 */
.featured-circles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.featured-circle-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
}
.featured-circle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.fc-cover {
    height: 120px;
    overflow: hidden;
}
.fc-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fc-info {
    padding: 16px;
}
.fc-info h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--dark);
}
.fc-intro {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}
.fc-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #999;
}
.fc-stats i { margin-right: 4px; }

/* 精选圈子文章两排样式 */
.featured-circle-posts-two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.fc-post-item-two {
    display: block;
    background: #fff;
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: all 0.3s;
}

.fc-post-item-two:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.fc-post-item-two .fc-post-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-post-item-two .fc-post-meta-two {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #999;
    flex-wrap: wrap;
}

.fc-post-item-two .fc-post-author {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fc-post-item-two .fc-post-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.fc-post-item-two .fc-post-circle {
    display: flex;
    align-items: center;
    gap: 3px;
}

.fc-post-item-two .fc-post-circle a {
    color: var(--secondary);
    text-decoration: none;
}

.fc-post-item-two .fc-post-circle a:hover {
    text-decoration: underline;
}

.fc-post-item-two .fc-post-time,
.fc-post-item-two .fc-post-views {
    display: flex;
    align-items: center;
    gap: 3px;
}

@media (max-width: 768px) {
    .featured-circle-posts-two-col {
        grid-template-columns: 1fr;
    }
}

/* 紧凑友链 */
.friend-links-section {
    padding: 16px 0;
    background: #f0f2f5;
    margin-top: 0;
}
.friend-links-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.friend-link-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: #fff;
    border-radius: 16px;
    color: #666;
    font-size: 13px;
    transition: all 0.3s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.friend-link-tag:hover {
    background: var(--secondary);
    color: #fff;
}
.friend-link-tag i { font-size: 11px; }

/* 手机端导航修复 */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 8px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 用户菜单 */
.user-menu { position: relative; }
.user-avatar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    color: #666;
    font-size: 14px;
}
.user-avatar-link:hover {
    background: #f0f0f0;
    border-radius: 20px;
}
.user-menu .dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    min-width: 160px;
    overflow: hidden;
    z-index: 1000;
}
.user-menu:hover .dropdown,
.user-menu .dropdown:hover { display: block; }
.user-menu .dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #666;
    font-size: 14px;
}
.user-menu .dropdown a:hover { background: #f5f5f5; color: var(--secondary); }
.user-menu .dropdown a i { width: 16px; text-align: center; }

@media (max-width: 768px) {
    .main-nav { 
        display: none; 
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .main-nav.show { display: flex; }
    .main-nav a {
        padding: 12px 20px;
        border-bottom: 1px solid #f5f5f5;
    }
    .mobile-toggle { display: flex; }
    .header-right { margin-left: auto; gap: 10px; }
    .btn-login {
        padding: 6px 12px;
        font-size: 13px;
    }
    .user-avatar-link { background: transparent; color: var(--secondary); padding: 4px; }
    .user-menu .dropdown {
        right: 0;
        left: auto;
        min-width: 140px;
    }
    .home-hero { padding: 50px 20px 60px; }
    .hero-title { font-size: 28px; letter-spacing: 1px; }
    .hero-subtitle { font-size: 15px; }
    .hero-search-box { border-radius: 30px; }
    .hero-tags { display: none; }
}
