@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* =========================================================================
   钓点/河段详情页 卡片组件系统
   把原先散落在模板里的内联样式抽成共享类，统一卡片圆角/间距/标题字号。
   尺寸一律走全站 token (--fb-radius-* / --fb-card-bg / --fb-gray-* …)，
   局部再用 --detail-* 变量集中收口，方便后续统一调整。
   ========================================================================= */
:root {
    --detail-card-pad: 24px;
    --detail-card-gap: 20px;       /* 卡片之间的纵向间距 */
    --detail-title-size: 18px;
    --detail-helper-size: 12px;    /* 说明性小字 */
    --detail-caption-size: 11px;   /* 角标/次要标注 */
}

/* ---- Hero 区与主内容容器（基样式收进 CSS，移动端无需 !important 即可覆盖） ---- */
/* .spot-hero-section / .spot-breadcrumb 已删(2026-07-04): /water/ 改用共享 _detail_hero, 不再走灰带 hero */
.spot-main-content { padding: 48px 24px; }

/* ===== 共享详情页 hero(_detail_hero.html): /water/ 与 /reach/ 统一外壳(2026-07-04) ===== */
.detail-breadcrumb {
    font-size: 13px;
    color: var(--fb-gray-text);
    margin-bottom: 12px;
}
.detail-breadcrumb a { color: inherit; text-decoration: none; }
.detail-breadcrumb a:hover { text-decoration: underline; }
.detail-breadcrumb-sep { margin: 0 6px; }
.detail-hero-titlerow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.detail-hero-titlemain {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
/* 标题 + 坐标同基线一行(坐标跟在水体名右侧) */
.detail-hero-titleline {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
    min-width: 0;
}
.detail-hero-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: var(--fb-ink-strong);
}
.detail-hero-coord {
    font-size: 13px;
    font-weight: 600;
    color: var(--fb-gray-text);
    white-space: nowrap;
}
.detail-hero-actions { flex: none; display: flex; gap: 8px; }
/* reach: 分享 + 地图按钮竖排(地图叠在分享下面), 右对齐 */
.detail-hero-actions--stack { flex-direction: column; align-items: flex-end; }
.detail-hero-mapbtn { text-decoration: none; white-space: nowrap; }
.detail-hero-share {
    flex: none;
    border: 1px solid var(--fb-border, #e5e9e7);
    background: #fff;
    color: var(--fb-accent, #2b7c60);
    font-size: 13px;
    border-radius: 999px;
    padding: 7px 14px;
    cursor: pointer;
}
.detail-hero-fav {
    flex: none;
    border: 1px solid var(--fb-gray-200);
    background: var(--fb-surface, #fff);
    color: var(--fb-ink);
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    padding: 7px 14px;
    cursor: pointer;
}
/* 禁渔醒目横幅(两页统一) */
.detail-ban-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
}
.detail-ban-icon { font-size: 22px; line-height: 1; flex: none; }
.detail-ban-body { flex: 1; min-width: 0; }
.detail-ban-title { font-weight: 700; color: #dc2626; font-size: 15px; }
.detail-ban-msg { color: #b91c1c; font-size: 13px; margin-top: 2px; }
.detail-ban-link {
    flex: none;
    background: #dc2626;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 8px;
}
.detail-hero-subtitle {
    color: var(--fb-gray-text);
    font-size: 14px;
    margin: 0 0 24px 0;
}
.detail-hero-card {
    background: #fff;
    border: 1px solid var(--fb-gray-200);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.detail-hero-metrics {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
}
.detail-metric { text-align: center; }
.detail-metric-label { font-size: 13px; color: var(--fb-gray-text); margin-bottom: 4px; }
.detail-metric-value { font-size: 42px; font-weight: 900; line-height: 1.05; }
.detail-metric-note { font-size: 11px; color: var(--fb-gray-text); }
.detail-hero-ban {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #fecaca;
}
.detail-hero-ban-title { font-weight: 700; margin-bottom: 2px; }
.detail-hero-ban-msg { font-size: 12px; }
@media (max-width: 640px) {
    .detail-hero-card { padding: 20px; }
    .detail-hero-metrics { gap: 20px; }
    .detail-metric-value { font-size: 34px; }
}

/* ---- 分享模态框卡片（宽度/内距进 CSS，便于移动端覆盖） ---- */
.spot-share-card { width: 90%; padding: 24px; }

/* ---- 卡片外壳：白底 + 统一圆角 + 统一内距/间距 ---- */
.detail-card {
    background: var(--fb-card-bg);
    border: 1px solid var(--fb-gray-200);
    border-radius: var(--fb-radius-lg);
    padding: var(--detail-card-pad);
    margin-bottom: var(--detail-card-gap);
}
.detail-card--flush { margin-bottom: 0; }   /* 末张卡片不留底边距 */

/* ---- 卡片头部行：标题 + 右侧按钮/链接 ---- */
.detail-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

/* ---- 区块标题 ---- */
.detail-section-title {
    font-size: var(--detail-title-size);
    font-weight: 700;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.detail-card__head .detail-section-title { margin: 0; }   /* 头部行内标题不再额外留白 */
.detail-section-title--tight { margin-bottom: 4px; }      /* 标题下紧跟说明小字时收紧 */
.detail-section-title__sub {     /* 标题后的小字补充，如「（点击查看趋势）」 */
    font-weight: 400;
    font-size: 13px;
    color: var(--fb-gray-text);
}
.detail-subtitle {               /* 卡片内次级小标题（AI 攻略各分组 h4） */
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* ---- 说明性小字与次要标注 ---- */
.detail-helper-text {
    font-size: var(--detail-helper-size);
    color: var(--fb-gray-text);
    margin-bottom: 16px;
    line-height: 1.6;
}
.detail-caption {
    font-size: var(--detail-caption-size);
    color: var(--fb-gray-text);
}

/* ---- 自适应/固定网格：替代原 [style*="grid-template-columns"] + !important 补丁 ---- */
.detail-grid { display: grid; gap: 12px; }
.detail-grid--auto { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.detail-grid--2 { grid-template-columns: 1fr 1fr; }
.detail-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---- 带边框的方块（水质参数 / 各鱼种咬钩） ---- */
.detail-tile {
    border: 1px solid var(--fb-gray-200);
    border-radius: var(--fb-radius-md);
    padding: 14px;
}

/* ---- 灰底填充块（小指标 / 提示框 / 预测日格） ---- */
.detail-fill {
    background: var(--fb-gray-100);
    border-radius: var(--fb-radius-sm);
}

/* ---- 操作按钮行 ---- */
.detail-action-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* ---- 触控目标：关键按钮 ≥ 40px 高（P2 可用性） ---- */
.spot-badges button,
.detail-card__head button,
.detail-card__head a.detail-cta {
    min-height: 40px;
}

/* ---- 水质参数卡片交互态 ---- */
.param-card { transition: all 0.2s; cursor: pointer; }
.param-card:hover {
    border-color: var(--fb-blue) !important;
    background: rgba(58, 111, 140, 0.05);
}
.param-card.active {
    border-color: var(--fb-blue) !important;
    background: rgba(58, 111, 140, 0.1);
    box-shadow: 0 0 0 3px rgba(58, 111, 140, 0.15);
}

/* =========================================================================
   移动端响应（规范媒体查询，替代属性选择器 + !important 补丁）
   ========================================================================= */
@media (max-width: 768px) {
    /* (旧 .spot-hero-section 移动样式已删, 2026-07-04: 共享 hero 自带 640px 媒体查询) */

    /* 主内容内距收窄 */
    .spot-main-content { padding: 24px 16px; }

    /* 自适应方块网格在窄屏固定 2 列 */
    .detail-grid--auto { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .detail-tile { padding: 12px; }

    /* AI 攻略中鱼种详情的双列在窄屏折叠为单列 */
    #fish-detail-card .detail-grid--2 { grid-template-columns: 1fr; }

    /* 分享模态框 */
    .spot-share-card { width: 95%; padding: 16px; }
}
