/* ======================================================
   pages/jdz.css — 接待站/骑士营 列表查询页面
   跟随首页渐变玻璃拟态风格
   ====================================================== */

/* ===== 页面基础 ===== */
body.jdz-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #0f0c29 0%, #1a1a3e 28%, #f5f7fa 28%);
    min-height: 100vh;
    color: #333;
    margin: 0;
    padding: 0;
}

.jdz-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.2rem 2rem;
    position: relative;
    z-index: 1;
}

/* ===== 背景装饰 ===== */
.bg-decor {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 50%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-decor .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: jdzFloat 20s infinite ease-in-out;
}
.bg-decor .orb:nth-child(1) {
    width: 500px; height: 500px;
    background: rgba(233, 69, 96, 0.12);
    top: -200px; right: -150px;
}
.bg-decor .orb:nth-child(2) {
    width: 400px; height: 400px;
    background: rgba(83, 58, 253, 0.1);
    top: 80px; left: -100px;
    animation-delay: -7s;
}
.bg-decor .orb:nth-child(3) {
    width: 300px; height: 300px;
    background: rgba(59, 130, 246, 0.08);
    bottom: -100px; left: 50%;
    animation-delay: -12s;
}

@keyframes jdzFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    33% { transform: translate(30px, -30px) scale(1.05); opacity: 0.3; }
    66% { transform: translate(-20px, 20px) scale(0.95); opacity: 0.5; }
}

@keyframes jdzFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 头部 ===== */
.jdz-hero {
    text-align: center;
    padding: 2.5rem 0 1.5rem;
    animation: jdzFadeIn 0.5s ease;
}

.jdz-back-link {
    position: absolute;
    left: 0;
    top: 2rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}

.jdz-back-link:hover {
    color: #fff;
}

.jdz-hero-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.jdz-hero-sub {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    margin: 0;
    letter-spacing: 0.5px;
}

.jdz-hero-sub span {
    color: #e94560;
    font-weight: 700;
}

/* ===== 统计卡片 ===== */
.jdz-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.7rem;
    margin-bottom: 1.5rem;
    animation: jdzFadeIn 0.5s ease 0.1s both;
}

.jdz-stat-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 1rem 0.5rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}

.jdz-stat-card:hover {
    transform: translateY(-3px);
}

.jdz-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.jdz-stat-label {
    display: block;
    font-size: 0.72rem;
    margin-top: 0.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 接待站 - 红色主题 */
.jdz-stat-station { border-top: 3px solid #e94560; }
.jdz-stat-station .jdz-stat-num {
    background: linear-gradient(135deg, #e94560, #c62828);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 骑士营 - 绿色主题 */
.jdz-stat-camp { border-top: 3px solid #4caf50; }
.jdz-stat-camp .jdz-stat-num {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 省份 - 蓝色主题 */
.jdz-stat-province { border-top: 3px solid #3b82f6; }
.jdz-stat-province .jdz-stat-num {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 城市 - 紫色主题 */
.jdz-stat-city { border-top: 3px solid #8b5cf6; }
.jdz-stat-city .jdz-stat-num {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 筛选区域 ===== */
.jdz-filter-section {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 1.2rem;
    animation: jdzFadeIn 0.5s ease 0.15s both;
}

/* 搜索 */
.jdz-search-box {
    display: flex;
    align-items: center;
    background: #f7f8fc;
    border: 1.5px solid #e0e4ea;
    border-radius: 12px;
    padding: 0.55rem 1rem;
    margin-bottom: 0.8rem;
    transition: all 0.25s;
}

.jdz-search-box:focus-within {
    border-color: #e94560;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.08);
}

.jdz-search-icon {
    font-size: 1rem;
    margin-right: 0.5rem;
    opacity: 0.5;
}

.jdz-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.88rem;
    color: #333;
    padding: 0.2rem 0;
}

.jdz-search-box input::placeholder { color: #aaa; }

.jdz-search-btn {
    padding: 0.45rem 1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #e94560, #f96bee);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.jdz-search-btn:hover {
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.35);
    transform: translateY(-1px);
}

/* 类型标签 */
.jdz-type-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.jdz-type-tab {
    flex: 1;
    padding: 0.5rem 0.4rem;
    border: 1.5px solid #e0e4ea;
    border-radius: 10px;
    background: #f7f8fc;
    color: #555;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
}

.jdz-type-tab:hover {
    border-color: #e94560;
    background: rgba(233, 69, 96, 0.05);
}

.jdz-type-tab.active {
    background: linear-gradient(135deg, #e94560, #f96bee);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

/* 省份/城市行 */
.jdz-region-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.7rem;
}

.jdz-region-row select {
    flex: 1;
    padding: 0.55rem 0.7rem;
    border: 1.5px solid #e0e4ea;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #333;
    background: #f7f8fc;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.jdz-region-row select:focus {
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.08);
}

.jdz-view-toggle {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.jdz-view-btn {
    width: 36px;
    height: 36px;
    border: 1.5px solid #e0e4ea;
    background: #f7f8fc;
    color: #888;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jdz-view-btn:first-child { border-radius: 8px 0 0 8px; }
.jdz-view-btn:last-child { border-radius: 0 8px 8px 0; }

.jdz-view-btn.active {
    background: #e94560;
    border-color: #e94560;
    color: #fff;
}

/* 结果数 */
.jdz-result-count {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
    padding-top: 0.3rem;
}

.jdz-result-count strong {
    color: #e94560;
    font-size: 1rem;
}

.jdz-add-link {
    color: #4caf50;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    transition: color 0.2s;
}

.jdz-add-link:hover { color: #2e7d32; }

/* ===== 加载 / 空状态 ===== */
.jdz-loading {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.jdz-loading-spinner {
    width: 24px; height: 24px;
    border: 3px solid #e0e4ea;
    border-top-color: #e94560;
    border-radius: 50%;
    animation: jdzSpin 0.8s linear infinite;
}

@keyframes jdzSpin {
    to { transform: rotate(360deg); }
}

.jdz-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.jdz-empty-icon { font-size: 3rem; }
.jdz-empty-text { font-size: 1rem; color: #666; font-weight: 600; }
.jdz-empty-hint { font-size: 0.82rem; color: #aaa; }

.jdz-error {
    text-align: center;
    padding: 3rem;
    color: #e94560;
    font-weight: 600;
}

/* ===== 网格视图 ===== */
.jdz-grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.jdz-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    border: 1px solid rgba(0,0,0,0.04);
}

.jdz-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    border-color: rgba(233, 69, 96, 0.2);
}

.jdz-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 0.3px;
}

.jdz-badge-station {
    background: rgba(233, 69, 96, 0.9);
    color: #fff;
}

.jdz-badge-camp {
    background: rgba(76, 175, 80, 0.9);
    color: #fff;
}

/* 卡片图片 */
.jdz-card-img {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f0f0f0;
}

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

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

/* 卡片内容 */
.jdz-card-body {
    padding: 0.9rem;
}

.jdz-card-top {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.jdz-card-icon {
    font-size: 1.1rem;
}

.jdz-card-num {
    font-size: 1rem;
    color: #ff4757;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.jdz-card-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.35rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jdz-card-addr {
    font-size: 0.75rem;
    color: #888;
    margin: 0 0 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jdz-card-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: #666;
}

/* ===== 列表视图 ===== */
.jdz-list-view {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.jdz-list-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #fff;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.25s;
    border: 1px solid rgba(0,0,0,0.04);
}

.jdz-list-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: rgba(233, 69, 96, 0.2);
}

.jdz-list-card-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.jdz-list-card-icon {
    font-size: 1.3rem;
}

.jdz-list-card-thumb .jdz-card-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

.jdz-list-card-mid {
    flex: 1;
    min-width: 0;
}

.jdz-list-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.jdz-list-card-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jdz-list-card-num {
    font-size: 0.95rem;
    color: #ff4757;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.jdz-list-card-addr {
    font-size: 0.75rem;
    color: #888;
    margin: 0 0 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jdz-list-card-contact {
    display: flex;
    gap: 0.6rem;
    font-size: 0.7rem;
    color: #666;
}

.jdz-list-card-right {
    flex-shrink: 0;
}

.jdz-list-nav-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(233, 69, 96, 0.08);
    color: #e94560;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jdz-list-nav-btn:hover {
    background: #e94560;
    color: #fff;
}

/* ===== 加载更多 ===== */
.jdz-load-more {
    text-align: center;
    padding: 1.5rem 0;
}

.jdz-load-more .btn {
    min-width: 160px;
}

/* ===== 详情弹窗 ===== */
.jdz-detail-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.jdz-detail-modal.show {
    display: flex;
}

.jdz-detail-content {
    background: #fff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    animation: jdzModalIn 0.3s ease;
}

@keyframes jdzModalIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.jdz-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #f0f0f0;
}

.jdz-detail-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.jdz-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.2rem;
}

.jdz-detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.jdz-gallery-thumb img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.jdz-gallery-thumb img:hover {
    transform: scale(1.03);
}

.jdz-detail-fields {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.jdz-field {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.jdz-field-label {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #999;
    min-width: 60px;
    padding-top: 1px;
}

.jdz-field-value {
    font-size: 0.85rem;
    color: #333;
    word-break: break-word;
}
.jdz-number-badge {
    font-size: 1.15rem;
    color: #ff4757;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.jdz-field-text {
    line-height: 1.6;
    color: #555;
}

.jdz-detail-footer {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding: 0.8rem 1.2rem;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

/* ===== 照片查看器 ===== */
.photo-viewer-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.photo-viewer-overlay.show { display: flex; }

.photo-viewer-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* ===== 底部 ===== */
.jdz-footer {
    text-align: center;
    padding: 1.5rem 0 1rem;
    color: #aaa;
    font-size: 0.78rem;
}

.jdz-footer a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.jdz-footer a:hover { color: #e94560; }

/* ===== 响应式：平板 ===== */
@media (max-width: 768px) {
    .jdz-container { padding: 0 0.8rem 1.5rem; }

    .jdz-hero { padding: 2rem 0 1.2rem; }
    .jdz-hero-title { font-size: 1.6rem; }
    .jdz-back-link { position: relative; top: 0; display: block; text-align: center; margin-bottom: 0.5rem; }

    .jdz-stats { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
    .jdz-stat-card { padding: 0.8rem 0.3rem; border-radius: 10px; }
    .jdz-stat-num { font-size: 1.5rem; }
    .jdz-stat-label { font-size: 0.65rem; }

    .jdz-grid-view { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }

    .jdz-filter-section { padding: 1rem; }
}

/* ===== 响应式：手机 ===== */
@media (max-width: 480px) {
    .jdz-container { padding: 0 0.5rem 1rem; }

    .jdz-hero { padding: 1.5rem 0 1rem; }
    .jdz-hero-title { font-size: 1.35rem; letter-spacing: 1px; }
    .jdz-hero-sub { font-size: 0.78rem; }

    .jdz-stats { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
    .jdz-stat-card { padding: 0.7rem 0.2rem; border-radius: 10px; }
    .jdz-stat-num { font-size: 1.3rem; }
    .jdz-stat-label { font-size: 0.62rem; }

    .jdz-filter-section { padding: 0.8rem; border-radius: 12px; }

    .jdz-search-box { padding: 0.5rem 0.8rem; margin-bottom: 0.6rem; }
    .jdz-search-box input { font-size: 0.82rem; }
    .jdz-search-btn { font-size: 0.75rem; padding: 0.35rem 0.7rem; }

    .jdz-type-tabs { gap: 0.3rem; margin-bottom: 0.6rem; }
    .jdz-type-tab { font-size: 0.72rem; padding: 0.4rem 0.2rem; }

    .jdz-region-row { gap: 0.3rem; margin-bottom: 0.5rem; }
    .jdz-region-row select { font-size: 0.72rem; padding: 0.4rem 0.5rem; }

    .jdz-result-count { font-size: 0.72rem; }
    .jdz-result-count strong { font-size: 0.88rem; }

    /* 网格：手机上 2 列 */
    .jdz-grid-view { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }

    .jdz-card-body { padding: 0.7rem; }
    .jdz-card-name { font-size: 0.82rem; }
    .jdz-card-addr { font-size: 0.68rem; }
    .jdz-card-contact { font-size: 0.65rem; }
    .jdz-card-img { height: 100px; }

    /* 列表：手机上隐藏缩略图 */
    .jdz-list-card { padding: 0.65rem 0.7rem; gap: 0.5rem; }
    .jdz-list-card-thumb { display: none; }
    .jdz-list-card-name { font-size: 0.82rem; }
    .jdz-list-card-addr { font-size: 0.68rem; }
    .jdz-list-card-contact { font-size: 0.65rem; }

    .jdz-detail-gallery { grid-template-columns: 1fr; }
    .jdz-gallery-thumb img { height: 180px; }
    .jdz-detail-footer { gap: 0.4rem; }
}


/* 联系方式可拨打 */
.jdz-contact-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}
.jdz-contact-link:hover {
    color: #1e40af;
    text-decoration: underline;
}
