/* ====== 基础 ====== */
:root {
    --primary: #c9302c;
    --primary-dark: #a32623;
    --accent: #e8a85a;
    --gold: #d4af37;
    --bg: #fff8f0;
    --bg-2: #fef3e2;
    --ink: #2d1810;
    --ink-soft: #5a4a3a;
    --line: #e8d9c4;
    --white: #ffffff;
    --shadow: 0 10px 30px -10px rgba(201, 48, 44, 0.15);
    --shadow-lg: 0 20px 60px -20px rgba(45, 24, 16, 0.25);
    --radius: 16px;
    --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ====== 导航 ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 248, 240, 0.85);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid rgba(232, 217, 196, 0.6);
}
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.logo { display: flex; align-items: baseline; gap: 8px; }
.logo-icon { font-size: 28px; }
.logo-text {
    font-size: 22px; font-weight: 800; color: var(--primary);
    letter-spacing: 1px; font-family: "STKaiti", "KaiTi", serif;
}
.logo-en {
    font-size: 11px; letter-spacing: 2px; color: var(--ink-soft);
    text-transform: uppercase; font-weight: 600;
}
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-links a {
    font-size: 15px; font-weight: 500; color: var(--ink-soft);
    transition: color .2s; position: relative;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
    height: 2px; background: var(--primary);
    transform: scaleX(0); transition: transform .25s;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-actions input {
    border: 1px solid var(--line); background: var(--white);
    padding: 10px 16px; border-radius: 100px; font-size: 14px;
    outline: none; min-width: 200px; transition: border-color .2s;
}
.nav-actions input:focus { border-color: var(--primary); }

/* ====== 通用按钮 ====== */
.btn-primary {
    background: var(--primary); color: var(--white);
    padding: 10px 22px; border-radius: 100px;
    font-size: 14px; font-weight: 600;
    transition: all .25s;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost {
    background: transparent; color: var(--ink);
    padding: 10px 22px; border-radius: 100px;
    border: 1.5px solid var(--ink); font-size: 14px; font-weight: 600;
    transition: all .25s;
}
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-large { padding: 16px 36px; font-size: 16px; }

/* ====== 英雄区 ====== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 120px 32px 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at top left, #ffe9d6 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, #ffd9b8 0%, transparent 50%),
                linear-gradient(135deg, #fff8f0 0%, #fef3e2 100%);
    z-index: -1;
}
.bg-gradient {
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(232, 168, 90, 0.04) 40px, rgba(232, 168, 90, 0.04) 41px),
        repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(201, 48, 44, 0.04) 40px, rgba(201, 48, 44, 0.04) 41px);
}
.floating-food {
    position: absolute; font-size: 60px;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}
.food-1 { top: 15%; left: 8%; animation-delay: 0s; }
.food-2 { top: 20%; right: 12%; animation-delay: 1s; font-size: 80px; }
.food-3 { bottom: 25%; left: 10%; animation-delay: 2s; font-size: 70px; }
.food-4 { top: 40%; right: 8%; animation-delay: 3s; }
.food-5 { bottom: 15%; right: 20%; animation-delay: 4s; font-size: 90px; }
.food-6 { top: 60%; left: 20%; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.hero-content {
    max-width: 980px; text-align: center; position: relative; z-index: 2;
}
.hero-tag {
    display: inline-block;
    background: rgba(201, 48, 44, 0.1);
    color: var(--primary);
    padding: 8px 20px; border-radius: 100px;
    font-size: 12px; font-weight: 700; letter-spacing: 3px;
    margin-bottom: 28px;
}
.hero-title {
    font-size: clamp(48px, 9vw, 110px);
    font-weight: 900; line-height: 1.05;
    margin-bottom: 32px;
    font-family: "STKaiti", "KaiTi", "Songti SC", serif;
    letter-spacing: -2px;
}
.hero-title-accent {
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
    margin-top: 8px;
}
.hero-subtitle {
    font-size: 18px; color: var(--ink-soft);
    max-width: 680px; margin: 0 auto 48px; line-height: 1.8;
}
.hero-subtitle strong {
    color: var(--primary); font-weight: 700;
}
.hero-stats {
    display: flex; gap: 56px; justify-content: center;
    margin-bottom: 56px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
    font-size: 48px; font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    line-height: 1;
}
.stat-num sup { font-size: 28px; }
.stat-label {
    font-size: 13px; color: var(--ink-soft);
    letter-spacing: 2px; margin-top: 8px;
    text-transform: uppercase; font-weight: 600;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ====== 通用 section ====== */
section { padding: 100px 0; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-kicker {
    display: inline-block;
    color: var(--primary); font-size: 12px; font-weight: 800;
    letter-spacing: 4px; margin-bottom: 16px;
}
.section-title {
    font-size: clamp(36px, 5vw, 56px); font-weight: 900;
    margin-bottom: 16px; line-height: 1.2;
    font-family: "STKaiti", "KaiTi", "Songti SC", serif;
}
.section-desc {
    font-size: 17px; color: var(--ink-soft); max-width: 600px;
    margin: 0 auto;
}

/* ====== 地图 ====== */
.map-section { background: var(--white); }
.map-wrap {
    display: grid; grid-template-columns: 1fr 280px;
    gap: 40px; align-items: start;
}
.map-svg {
    background: linear-gradient(135deg, #faf3e7 0%, #f5e6d3 100%);
    border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.map-svg svg { width: 100%; height: auto; display: block; }
.district {
    cursor: pointer;
    transition: all .3s ease;
    transform-origin: center;
    transform-box: fill-box;
}
.district:hover {
    fill: #ffd180 !important;
    stroke: var(--primary) !important;
    stroke-width: 3 !important;
    filter: drop-shadow(0 4px 12px rgba(201, 48, 44, 0.3));
}
.district.active {
    fill: var(--primary) !important;
    stroke: var(--primary-dark) !important;
}
.district-label {
    font-size: 12px; font-weight: 700;
    fill: var(--ink); pointer-events: none;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.map-legend {
    background: var(--bg-2);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--line);
}
.legend-title {
    font-size: 16px; font-weight: 800; color: var(--primary);
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}
.legend-list { display: flex; flex-direction: column; gap: 12px; }
.legend-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.legend-color {
    width: 24px; height: 18px; border-radius: 4px;
    display: inline-block; flex-shrink: 0;
    font-size: 14px; line-height: 18px; text-align: center;
}
.map-tip {
    margin-top: 24px; padding: 16px;
    background: rgba(201, 48, 44, 0.06);
    border-left: 3px solid var(--primary);
    font-size: 13px; color: var(--ink-soft);
    border-radius: 6px; line-height: 1.6;
}

/* ====== 16区筛选 ====== */
.districts-section { background: var(--bg); }
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center; margin-bottom: 48px;
}
.filter-chip {
    padding: 10px 20px; border-radius: 100px;
    background: var(--white); border: 1.5px solid var(--line);
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .2s;
    color: var(--ink-soft);
}
.filter-chip:hover {
    border-color: var(--primary); color: var(--primary);
    transform: translateY(-2px);
}
.filter-chip.active {
    background: var(--primary); color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(201, 48, 44, 0.3);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.district-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    transition: all .35s;
    cursor: pointer;
    display: flex; flex-direction: column;
}
.district-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.card-cover {
    height: 160px;
    background: linear-gradient(135deg, var(--c, #ffb88c) 0%, var(--c2, #de6262) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 72px; position: relative; overflow: hidden;
}
.card-cover::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.3) 0%, transparent 60%);
}
.card-district-tag {
    position: absolute; top: 16px; left: 16px;
    background: rgba(255,255,255,0.95); color: var(--primary);
    padding: 6px 14px; border-radius: 100px;
    font-size: 12px; font-weight: 800; letter-spacing: 1px;
}
.card-fav {
    position: absolute; top: 16px; right: 16px;
    background: rgba(255,255,255,0.95);
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; cursor: pointer;
    transition: transform .2s;
}
.card-fav:hover { transform: scale(1.15); }
.card-fav.liked { color: var(--primary); }

.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-title {
    font-size: 22px; font-weight: 800; margin-bottom: 6px;
    font-family: "STKaiti", "KaiTi", serif;
}
.card-tagline {
    font-size: 13px; color: var(--primary); font-weight: 600;
    letter-spacing: 1px; margin-bottom: 14px;
}
.card-desc {
    font-size: 14px; color: var(--ink-soft); line-height: 1.7;
    margin-bottom: 18px; flex: 1;
}
.card-places {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding-top: 18px; border-top: 1px dashed var(--line);
}
.place-chip {
    background: var(--bg-2); color: var(--ink);
    padding: 5px 12px; border-radius: 100px;
    font-size: 12px; font-weight: 600;
    transition: all .2s;
}
.place-chip:hover {
    background: var(--primary); color: var(--white);
}

/* ====== 必吃榜 ====== */
.ranking-section { background: linear-gradient(180deg, var(--bg) 0%, #fef3e2 100%); }
.ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.rank-card {
    background: var(--white); padding: 24px;
    border-radius: var(--radius); border: 1px solid var(--line);
    display: flex; gap: 18px; align-items: center;
    transition: all .3s; cursor: pointer;
    box-shadow: var(--shadow);
}
.rank-card:hover {
    transform: translateX(6px);
    border-color: var(--primary);
}
.rank-num {
    font-size: 48px; font-weight: 900;
    font-family: "Georgia", serif; line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    flex-shrink: 0;
}
.rank-content { flex: 1; min-width: 0; }
.rank-name {
    font-size: 17px; font-weight: 800; margin-bottom: 4px;
    font-family: "STKaiti", "KaiTi", serif;
}
.rank-district {
    font-size: 12px; color: var(--primary); font-weight: 600;
    margin-bottom: 6px; letter-spacing: 1px;
}
.rank-dish {
    font-size: 13px; color: var(--ink-soft);
}

/* ====== 菜系流派 ====== */
.cuisine-section { background: var(--white); }
.cuisine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.cuisine-card {
    background: var(--bg);
    border-radius: var(--radius); padding: 32px 24px;
    text-align: center; transition: all .35s;
    border: 2px solid transparent;
    position: relative; overflow: hidden;
}
.cuisine-card::before {
    content: ''; position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: radial-gradient(circle, var(--c, #c9302c) 0%, transparent 60%);
    opacity: 0; transition: opacity .3s;
    z-index: 0;
}
.cuisine-card:hover {
    transform: translateY(-8px);
    border-color: var(--c, var(--primary));
    box-shadow: 0 16px 40px -16px var(--c, var(--primary));
}
.cuisine-card:hover::before { opacity: 0.05; }
.cuisine-card > * { position: relative; z-index: 1; }
.cuisine-emoji {
    font-size: 56px; margin-bottom: 12px;
    transition: transform .35s;
}
.cuisine-card:hover .cuisine-emoji {
    transform: scale(1.15) rotate(-8deg);
}
.cuisine-card h4 {
    font-size: 19px; font-weight: 800; margin-bottom: 10px;
    color: var(--c, var(--primary));
    font-family: "STKaiti", "KaiTi", serif;
}
.cuisine-card p {
    font-size: 13px; color: var(--ink-soft); line-height: 1.7;
}

/* ====== 美食路线 ====== */
.route-section { background: var(--bg); }
.route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}
.route-card {
    background: var(--white); padding: 36px 32px;
    border-radius: var(--radius); border: 1px solid var(--line);
    box-shadow: var(--shadow); transition: all .35s;
    position: relative; overflow: hidden;
}
.route-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 100px;
    background: linear-gradient(180deg, rgba(201,48,44,0.06) 0%, transparent 100%);
}
.route-card-2::before {
    background: linear-gradient(180deg, rgba(232,168,90,0.1) 0%, transparent 100%);
}
.route-card-3::before {
    background: linear-gradient(180deg, rgba(39,174,96,0.08) 0%, transparent 100%);
}
.route-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.route-day {
    display: inline-block;
    background: var(--primary); color: var(--white);
    padding: 6px 14px; border-radius: 6px;
    font-size: 12px; font-weight: 800; letter-spacing: 2px;
    margin-bottom: 16px;
}
.route-card h3 {
    font-size: 24px; font-weight: 900; margin-bottom: 24px;
    font-family: "STKaiti", "KaiTi", serif;
}
.route-list {
    display: flex; flex-direction: column; gap: 12px;
    margin-bottom: 24px;
}
.route-list li {
    font-size: 14px; color: var(--ink); padding-left: 8px;
    border-left: 2px solid var(--accent); padding: 4px 12px;
    background: var(--bg-2); border-radius: 0 6px 6px 0;
}
.route-meta {
    font-size: 12px; color: var(--ink-soft); font-weight: 600;
    padding-top: 16px; border-top: 1px dashed var(--line);
}

/* ====== 页脚 ====== */
.footer {
    background: var(--ink); color: var(--bg-2); padding: 64px 0 32px;
}
.footer .container { padding: 0 32px; }
.footer-top {
    display: grid; grid-template-columns: 1fr 2fr; gap: 48px;
    padding-bottom: 48px; border-bottom: 1px solid rgba(232,217,196,0.2);
}
.footer-brand .logo-text { color: var(--accent); }
.footer-brand p {
    font-size: 14px; line-height: 2; margin-top: 16px; opacity: 0.8;
}
.footer-cols {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.footer-cols h5 {
    font-size: 14px; font-weight: 800; color: var(--accent);
    margin-bottom: 16px; letter-spacing: 2px;
}
.footer-cols ul { display: flex; flex-direction: column; gap: 10px; }
.footer-cols li {
    font-size: 13px; opacity: 0.7; cursor: pointer;
    transition: opacity .2s, color .2s;
}
.footer-cols li:hover { opacity: 1; color: var(--accent); }
.footer-bottom {
    padding-top: 24px;
    display: flex; justify-content: space-between;
    font-size: 12px; opacity: 0.6; flex-wrap: wrap; gap: 12px;
}

/* ====== 弹窗 ====== */
.modal {
    position: fixed; inset: 0; z-index: 1000;
    display: none; align-items: center; justify-content: center;
}
.modal.active { display: flex; }
.modal-mask {
    position: absolute; inset: 0;
    background: rgba(45, 24, 16, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.modal-box {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    width: min(680px, 92vw);
    max-height: 88vh; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 30px 80px -20px rgba(45, 24, 16, 0.5);
    animation: modalIn .35s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to { opacity: 1; transform: none; }
}
.modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.95); font-size: 22px;
    color: var(--ink); z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform .2s;
}
.modal-close:hover { transform: rotate(90deg); }
.modal-body {
    overflow-y: auto; padding: 0;
}
.modal-cover {
    height: 200px;
    background: linear-gradient(135deg, var(--c, #ffb88c) 0%, var(--c2, #de6262) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 96px; position: relative;
}
.modal-cover::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.3) 0%, transparent 60%);
}
.modal-content { padding: 32px; }
.modal-content h2 {
    font-size: 28px; font-weight: 900; margin-bottom: 4px;
    font-family: "STKaiti", "KaiTi", serif;
}
.modal-content .modal-tag {
    font-size: 13px; color: var(--primary); font-weight: 700;
    letter-spacing: 2px; margin-bottom: 20px;
}
.modal-content p {
    font-size: 15px; line-height: 1.8; color: var(--ink-soft);
    margin-bottom: 24px;
}
.modal-places-title {
    font-size: 16px; font-weight: 800; color: var(--primary);
    margin-bottom: 12px; padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
}
.modal-places {
    display: flex; flex-direction: column; gap: 12px;
}
.modal-place {
    background: var(--bg-2); padding: 16px; border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}
.modal-place-name {
    font-size: 15px; font-weight: 700; margin-bottom: 4px;
    color: var(--ink);
}
.modal-place-info {
    font-size: 13px; color: var(--ink-soft); line-height: 1.6;
}
.modal-place-info strong { color: var(--primary); }

/* ====== 返回顶部 ====== */
.back-top {
    position: fixed; bottom: 32px; right: 32px;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary); color: var(--white);
    font-size: 22px; font-weight: 700;
    box-shadow: 0 8px 24px -4px rgba(201,48,44,0.4);
    opacity: 0; pointer-events: none;
    transition: all .3s; z-index: 50;
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-4px); }

/* ====== 响应式 ====== */
@media (max-width: 1024px) {
    .map-wrap { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    section { padding: 64px 0; }
    .nav-container { gap: 16px; padding: 14px 20px; flex-wrap: wrap; }
    .nav-links { display: none; }
    .nav-actions input { min-width: 0; flex: 1; }
    .hero { padding: 100px 20px 60px; min-height: auto; }
    .hero-title { letter-spacing: -1px; }
    .hero-subtitle { font-size: 15px; }
    .hero-stats { gap: 24px; }
    .stat-num { font-size: 36px; }
    .floating-food { font-size: 40px !important; }
    .section-head { margin-bottom: 40px; }
    .cards-grid, .cuisine-grid, .route-grid, .ranking-grid {
        grid-template-columns: 1fr;
    }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 480px) {
    .hero-cta { flex-direction: column; }
    .hero-cta a { width: 100%; text-align: center; }
}

/* ====== 9月地图版 · 新增组件样式 ====== */

/* 工具栏 */
.toolbar {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}
.tool-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}
.tool-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tool-label { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.filter-chip.small {
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 999px;
}
.sort-select {
    font-family: inherit;
    font-size: 14px;
    padding: 6px 12px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    cursor: pointer;
}
.sort-select:focus { outline: 2px solid var(--accent); }
.tool-result {
    margin-left: auto;
    font-size: 13px;
    color: var(--primary);
    font-weight: 700;
    background: #fdeceb;
    border-radius: 999px;
    padding: 4px 14px;
}

/* 区域卡片 · 点位列表 */
.spot-card { grid-column: 1 / -1; }
.spot-card .card-cover { min-height: 90px; height: 90px; }
.spot-card .card-count {
    position: absolute;
    right: 16px;
    top: 16px;
    background: rgba(255,255,255,0.92);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
}
.spot-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.spot-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}
.spot-item:hover {
    border-color: var(--accent);
    background: #fff5e6;
    transform: translateX(4px);
}
.spot-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 260px;
}
.spot-area {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: #fdeceb;
    padding: 2px 10px;
    border-radius: 999px;
}
.spot-addr {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    max-width: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.spot-host {
    font-size: 12px;
    color: var(--ink-soft);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.spot-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.content-tag {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    letter-spacing: 1px;
}
.type-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    padding: 1px 8px;
    border-radius: 6px;
}
.star-tag { font-size: 12px; letter-spacing: 1px; white-space: nowrap; }
.energy-badge {
    position: relative;
    width: 72px;
    height: 16px;
    background: #f0e4d0;
    border-radius: 999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.energy-badge i {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, #f5b041, #e85a5a);
    border-radius: 999px;
}
.energy-badge em {
    position: relative;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.spot-fav {
    font-size: 16px;
    color: #c9a06a;
    transition: transform 0.15s ease, color 0.15s ease;
    padding: 2px 6px;
}
.spot-fav:hover { transform: scale(1.3); }
.spot-fav.liked { color: var(--primary); }
.empty-tip {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: var(--ink-soft);
    background: var(--white);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

/* 地图图例按钮 */
.legend-btns { margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.legend-extra {
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(135deg, #fff5e6, #ffe0b2);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.2s ease;
}
.legend-extra:hover {
    background: linear-gradient(135deg, #ffe0b2, #ffd699);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* 弹窗 · 点位详情 */
.modal-spot-head {
    background: linear-gradient(135deg, var(--c, #e85a5a), color-mix(in srgb, var(--c, #e85a5a) 70%, #fff));
    margin: -28px -32px 20px;
    padding: 30px 32px 24px;
    border-radius: 20px 20px 0 0;
    color: #fff;
}
.modal-region { font-size: 13px; font-weight: 700; opacity: 0.92; letter-spacing: 1px; }
.modal-addr { font-size: 24px; margin-top: 6px; font-weight: 800; line-height: 1.35; }
.modal-tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.modal-tags .content-tag { background: rgba(255,255,255,0.95); }
.modal-tags .type-tag { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); color: #fff; }
.modal-info { display: flex; flex-direction: column; gap: 10px; }
.info-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}
.info-label { flex-shrink: 0; font-size: 13px; color: var(--ink-soft); font-weight: 600; width: 82px; }
.info-value { font-size: 15px; font-weight: 600; }
.energy-num { color: var(--primary); font-size: 22px; }
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.modal-actions .btn-ghost.spot-fav.liked { color: var(--primary); border-color: var(--primary); }

/* 搜索高亮 */
mark {
    background: linear-gradient(transparent 55%, #ffe08a 55%);
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .spot-addr { max-width: 100%; white-space: normal; }
    .spot-meta { width: 100%; justify-content: flex-start; }
    .tool-result { margin-left: 0; }
    .modal-spot-head { margin: -20px -20px 16px; padding: 24px 20px 18px; }
    .modal-addr { font-size: 19px; }
    .modal-box { margin: 0 12px; }
}
