/* ============================================================
   定制游 - 样式
   设计风格：深空蓝 + 科技蓝 + 鎏金
   ============================================================ */

: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; }

/* ============================================================
   顶部筛选栏
   ============================================================ */
.filter-section {
    padding: 36px 0 28px;
    background: linear-gradient(180deg, rgba(13,110,253,0.06) 0%, transparent 100%);
}

.filter-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
}

.section-title { font-size: 28px; font-weight: 700; color: var(--white); margin-bottom: 6px; text-align: center; }
.section-subtitle { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; text-align: center; }

.filter-bar {
    display: flex; gap: 16px; align-items: flex-end;
    padding: 24px; background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
}

.filter-item { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.filter-item label { font-size: 14px; font-weight: 600; color: var(--text-secondary); }

/* 下拉选择器 */
.filter-picker {
    position: relative; display: flex; align-items: center; gap: 8px;
    padding: 14px 16px; font-size: 15px; color: var(--text-muted);
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition);
}
.filter-picker:hover { border-color: rgba(13,110,253,0.3); }
.filter-picker.open { border-color: var(--tech-blue); box-shadow: 0 0 0 3px rgba(13,110,253,0.1); }

.picker-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 下拉面板 */
.picker-dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; width: 100%;
    max-height: 360px; overflow-y: auto;
    background: rgba(6,14,43,0.97); border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm); padding: 8px 0;
    display: none; z-index: 200; backdrop-filter: blur(20px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.picker-dropdown.open { display: block; }

/* 省列表 */
.pd-province {
    padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--white);
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; transition: background var(--transition);
}
.pd-province:hover { background: rgba(13,110,253,0.1); }
.pd-province.open { color: var(--tech-blue-light); }
.pd-province svg { transition: transform 0.2s; }
.pd-province.open svg { transform: rotate(180deg); }

/* 城市列表 */
.pd-city-list {
    display: none; padding: 0 16px 8px;
    border-left: 2px solid rgba(13,110,253,0.2); margin-left: 16px;
}
.pd-city-list.open { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }

.pd-city {
    padding: 8px 12px; font-size: 13px; color: var(--text-secondary);
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm); cursor: pointer; text-align: center;
    transition: all var(--transition); white-space: nowrap;
}
.pd-city:hover { background: rgba(13,110,253,0.1); color: var(--white); border-color: rgba(13,110,253,0.25); }
.pd-city.selected {
    background: rgba(13,110,253,0.18); color: var(--white);
    border-color: var(--tech-blue); font-weight: 600;
}

/* 人数输入框 */
.filter-input {
    width: 100%; padding: 14px 16px; font-size: 15px; color: var(--white);
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm); outline: none; transition: all var(--transition);
}
.filter-input:focus { border-color: rgba(13,110,253,0.4); background: rgba(13,110,253,0.05); }
.filter-input::placeholder { color: var(--text-muted); }

/* 已选城市展示栏 */
.selected-cities {
    display: flex; align-items: flex-start; gap: 12px;
    margin-top: 16px; padding: 16px;
    background: rgba(255,255,255,0.02); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}
.sc-label { font-size: 14px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; padding-top: 4px; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.sc-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; font-size: 13px; font-weight: 600;
    color: var(--white); background: rgba(13,110,253,0.15);
    border: 1px solid rgba(13,110,253,0.3); border-radius: 20px;
    animation: tagIn 0.25s ease;
}
@keyframes tagIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.sc-tag .sc-remove {
    width: 16px; height: 16px; display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: var(--text-muted); cursor: pointer; border-radius: 50%;
    transition: all var(--transition);
}
.sc-tag .sc-remove:hover { color: #FCA5A5; background: rgba(239,68,68,0.15); }

.sc-placeholder { font-size: 13px; color: var(--text-muted); padding: 4px 0; }

/* ============================================================
   定制服务按钮区
   ============================================================ */
.service-section { padding: 20px 0; }

.service-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.service-btns { display: flex; gap: 16px; }

.svc-option { cursor: pointer; }
.svc-option input { position: absolute; opacity: 0; width: 0; height: 0; }

.svc-box {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 20px 36px; min-width: 160px;
    background: rgba(255,255,255,0.02); border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md); text-align: center;
    transition: all var(--transition);
}
.svc-box:hover { border-color: rgba(13,110,253,0.25); background: rgba(13,110,253,0.04); }
.svc-option input:checked + .svc-box {
    border-color: var(--tech-blue); background: rgba(13,110,253,0.1);
    box-shadow: 0 0 20px rgba(13,110,253,0.15);
}
.svc-box .svc-icon { font-size: 32px; }
.svc-box strong { font-size: 16px; font-weight: 700; color: var(--white); }
.svc-box small { font-size: 12px; color: var(--text-muted); }

/* 制定路线按钮 */
.btn-route {
    padding: 14px 36px; font-size: 15px; font-weight: 700; color: var(--white);
    background: linear-gradient(135deg, var(--tech-blue), #2563EB);
    border: none; border-radius: 28px; cursor: pointer;
    box-shadow: 0 4px 16px rgba(13,110,253,0.3);
    transition: all var(--transition); white-space: nowrap;
}
.btn-route:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(13,110,253,0.45); }
.btn-route:disabled {
    background: rgba(255,255,255,0.06); color: var(--text-muted);
    box-shadow: none; cursor: not-allowed;
}

/* ============================================================
   热门城市
   ============================================================ */
.hotcity-section { padding: 28px 0; }

.hotcity-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
}

.hotcity-title { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 20px; }

.hotcity-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}

.hc-card {
    position: relative; border-radius: var(--radius-md); overflow: hidden;
    cursor: pointer; transition: all var(--transition);
    border: 2px solid transparent;
}
.hc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(13,110,253,0.2); }
.hc-card.selected { border-color: var(--tech-blue); box-shadow: 0 0 20px rgba(13,110,253,0.3); }

.hc-img { width: 100%; height: 120px; background-size: cover; background-position: center; }
.hc-info {
    padding: 12px; background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}
.hc-info strong { display: block; font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.hc-info span { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   底部轮播 + 制定路线
   ============================================================ */
.bottom-section { padding: 28px 0 60px; }

.bottom-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
}

/* 轮播 */
.carousel-wrap {
    position: relative; border-radius: var(--radius-md); overflow: hidden;
    margin-bottom: 24px;
}

.carousel-track { display: flex; transition: transform 0.5s ease; }

.carousel-slide { flex: 0 0 100%; position: relative; }

.slide-img { width: 100%; height: 280px; background-size: cover; background-position: center; }
.slide-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(2,12,36,0.8));
}

.slide-info {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; z-index: 2;
}
.slide-info h4 { font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.slide-info p { font-size: 14px; color: var(--text-secondary); }

/* 轮播控制 */
.carousel-dots {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 3;
}
.carousel-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.3); cursor: pointer; transition: all var(--transition);
}
.carousel-dot.active { background: var(--tech-blue-light); width: 24px; border-radius: 4px; }

.carousel-prev, .carousel-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%; color: var(--white); cursor: pointer;
    transition: all var(--transition); z-index: 3;
}
.carousel-prev:hover, .carousel-next:hover { background: rgba(13,110,253,0.5); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

/* 底部大按钮 */
.route-action { text-align: center; }

.btn-route-main {
    padding: 18px 60px; font-size: 18px; font-weight: 700; color: var(--white);
    background: linear-gradient(135deg, var(--gold), #B8960F);
    border: none; border-radius: 32px; cursor: pointer;
    box-shadow: 0 6px 24px rgba(212,175,55,0.35);
    transition: all var(--transition); display: inline-flex; align-items: center; gap: 10px;
}
.btn-route-main:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(212,175,55,0.5); }
.btn-route-main:disabled {
    background: rgba(255,255,255,0.06); color: var(--text-muted);
    box-shadow: none; cursor: not-allowed;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    .hotcity-grid { grid-template-columns: repeat(3, 1fr); }
    .filter-bar { flex-wrap: wrap; }
    .filter-item { min-width: calc(50% - 8px); flex: auto; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-actions a:not(.btn-register) { display: none; }
    .filter-bar { flex-direction: column; }
    .filter-item { width: 100%; }
    .service-inner { flex-direction: column; }
    .hotcity-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-city-list.open { grid-template-columns: repeat(2, 1fr); }
    .slide-img { height: 200px; }
    .btn-route-main { width: 100%; justify-content: center; }
}
