/* ============================================================
   济南市搜索页 - 样式
   设计风格：深空蓝 + 科技蓝 + 鎏金
   ============================================================ */

:root {
    --deep-blue: #071D49;
    --tech-blue: #0D6EFD;
    --tech-blue-light: #3B8BFF;
    --gold: #D4AF37;
    --white: #FFFFFF;
    --bg-dark: #020C24;
    --bg-section: #060E2B;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255,255,255,0.7);
    --text-muted: rgba(255,255,255,0.45);
    --border-subtle: rgba(255,255,255,0.06);
    --border-medium: rgba(255,255,255,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans", -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

/* ============================================================
   导航栏
   ============================================================ */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2,12,36,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 24px;
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links > a,
.nav-links .nav-dropdown > a {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
    transition: color var(--transition);
    white-space: nowrap;
}

.nav-links a:hover { color: var(--white); }
.nav-links a.active,
.nav-links .nav-dropdown > a.active { color: var(--tech-blue-light); font-weight: 600; }

.nav-dropdown { position: relative; }
.nav-dropdown .arrow { font-size: 10px; margin-left: 4px; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 130px;
    background: rgba(6,14,43,0.95);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    backdrop-filter: blur(20px);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.dropdown-menu a:hover { background: rgba(13,110,253,0.1); color: var(--tech-blue-light); }
.dropdown-menu a.active { color: var(--tech-blue-light); font-weight: 600; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

.nav-actions a { color: var(--text-secondary); transition: color var(--transition); }
.nav-actions a:hover { color: var(--white); }

.btn-register {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--tech-blue), #2563EB);
    color: var(--white) !important;
    border-radius: 20px;
    font-weight: 600;
}

/* ============================================================
   页面主体
   ============================================================ */
.page-main {
    padding-top: 64px;
}

/* ============================================================
   Hero 横幅区：4列特色推荐
   ============================================================ */
.hero-section {
    padding: 24px 0;
}

.hero-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hero-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 260px;
    cursor: pointer;
    transition: all var(--transition);
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(13,110,253,0.2);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.hero-card:hover .hero-bg { transform: scale(1.08); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(2,12,36,0.1) 0%,
        rgba(2,12,36,0.3) 40%,
        rgba(2,12,36,0.85) 100%
    );
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gold);
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 12px;
    margin-bottom: 8px;
}

.hero-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.hero-content p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================================
   分类标签栏
   ============================================================ */
.category-section {
    padding: 20px 0 16px;
}

.tabs-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 0;
}

.cat-tab {
    flex: 1;
    padding: 16px 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.cat-tab:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.cat-tab:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.cat-tab:hover {
    color: var(--white);
    background: rgba(13,110,253,0.05);
    border-color: rgba(13,110,253,0.2);
}

.cat-tab.active {
    color: var(--white);
    background: rgba(13,110,253,0.12);
    border-color: var(--tech-blue);
    box-shadow: 0 0 20px rgba(13,110,253,0.15);
    z-index: 1;
}

/* ============================================================
   城市选择区域
   ============================================================ */
.city-section {
    padding: 10px 0 20px;
}

.city-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.city-current {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.city-current strong { color: var(--tech-blue-light); font-weight: 600; }

/* 城市选择下拉 */
.city-picker-wrap { position: relative; }

.btn-city-picker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, rgba(13,110,253,0.2), rgba(37,99,235,0.1));
    border: 1px solid rgba(13,110,253,0.3);
    border-radius: 24px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-city-picker:hover {
    background: linear-gradient(135deg, var(--tech-blue), #2563EB);
    border-color: var(--tech-blue);
    box-shadow: 0 4px 16px rgba(13,110,253,0.3);
}

/* 城市网格下拉 */
.city-grid-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 420px;
    background: rgba(6,14,43,0.97);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 16px;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    z-index: 100;
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.city-grid-dropdown.open { display: grid; }

.city-grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.city-grid-item:hover {
    color: var(--white);
    background: rgba(13,110,253,0.12);
    border-color: rgba(13,110,253,0.3);
    transform: translateY(-1px);
}

/* ============================================================
   内容展示区域
   ============================================================ */
.content-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* 分隔线 */
.content-section::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    margin-bottom: 28px;
}

/* 内容卡片 */
.content-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.content-card:last-child { margin-bottom: 0; }

.content-card:hover {
    border-color: rgba(13,110,253,0.2);
    background: rgba(13,110,253,0.03);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

/* 左侧标签 */
.card-tag {
    flex-shrink: 0;
    width: 64px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--white);
    padding: 12px 4px;
    border-radius: var(--radius-sm);
    writing-mode: vertical-lr;
    letter-spacing: 2px;
}

.card-tag.culture { background: rgba(13,110,253,0.18); color: #A8D0FF; }
.card-tag.photo   { background: rgba(212,175,55,0.18); color: #F0D060; }
.card-tag.food    { background: rgba(239,68,68,0.15); color: #FCA5A5; }
.card-tag.leisure { background: rgba(16,185,129,0.15); color: #6EE7B7; }
.card-tag.hiking  { background: rgba(74,58,255,0.15); color: #A5B4FC; }

/* 中间图片 */
.card-img {
    flex-shrink: 0;
    width: 180px;
    height: 130px;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,110,253,0.08), transparent);
}

/* 右侧信息区 */
.card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
}

.card-route {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 6px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

.card-route .route-sep {
    color: rgba(255,255,255,0.15);
    margin: 0 2px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 右侧按钮 */
.card-btn {
    flex-shrink: 0;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--tech-blue), #2563EB);
    border: none;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(13,110,253,0.3);
    transition: all var(--transition);
    white-space: nowrap;
}

.card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13,110,253,0.45);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-card { height: 220px; }
    .city-grid-dropdown { width: 320px; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-actions a:not(.btn-register) { display: none; }
    .hero-grid { grid-template-columns: 1fr; gap: 12px; }
    .hero-card { height: 200px; }
    .tabs-inner { overflow-x: auto; }
    .cat-tab { flex-shrink: 0; min-width: 72px; font-size: 12px; padding: 12px 6px; }
    .city-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .city-grid-dropdown {
        width: auto;
        left: 0;
        right: 0;
        grid-template-columns: repeat(3, 1fr);
    }
    .content-card { flex-wrap: wrap; }
    .card-tag { width: 100%; writing-mode: horizontal-tb; padding: 8px; text-align: center; }
    .card-img { width: 100%; height: 180px; }
    .card-btn { width: 100%; text-align: center; }
}
