/* 顶部导航与操作 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.topbar .container { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: baseline; gap: 6px; text-decoration: none; }
.logo-mark { display: inline-block; font-weight: 900; background: var(--yellow); color: #000; padding: 4px 8px; border-radius: 4px; }
.logo-text { font-weight: 800; color: #111; letter-spacing: .5px; }

.nav { display: flex; gap: 18px; flex: 1 1 auto; flex-wrap: nowrap; overflow-x: hidden; min-width: 0; }
.nav-item { color: #333; text-decoration: none; font-weight: 500; padding: 8px 10px; border-radius: 6px; white-space: nowrap; display: inline-flex; align-items: center; }
.nav-item:hover { background: #f1f1f1; }
.nav-item.active { color: #000; background: #f7f7f7; }

.actions { display: flex; align-items: center; gap: 8px; margin-left: auto; justify-content: flex-end; }
.icon-btn { border: none; background: #f3f3f3; border-radius: 10px; width: 36px; height: 36px; cursor: pointer; }
.icon-btn:hover { filter: brightness(.95); }
.hotline { color: #111; font-weight: 800; text-decoration: none; background: var(--yellow); padding: 8px 12px; border-radius: 8px; }

.icon-btn svg, .douyin-link img { width: 20px; height: 20px; display: block; margin: 0 auto; }
.douyin-link { display:flex; align-items:center; justify-content:center; background:#000; }
.douyin-link:hover { filter: brightness(1.15); }
.douyin-link img { filter: invert(1) brightness(1.2); }

/* 菜单按钮与面板 */
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 2px solid rgba(0,0,0,.2); background: var(--yellow); cursor: pointer; align-items: center; justify-content: center; gap: 5px; padding: 6px; }
.menu-btn .bar { display: block; width: 18px; height: 2px; background: #111; border-radius: 2px; }
.menu-needed .menu-btn { display: inline-flex; }
.menu-needed .nav { display: none; }

.menu-panel { position: fixed; right: 16px; top: 76px; z-index: 1002; display: none; min-width: 220px; background: #fff; border: 1px solid #eee; border-radius: 12px; box-shadow: 0 12px 24px rgba(0,0,0,.14); }
.menu-active .menu-panel { display: block; }
.menu-panel a { display: block; padding: 12px 14px; color: #222; text-decoration: none; }
.menu-panel a:hover { background: #f7f7f7; }

/* 按钮与工具条 */
.btn { display: inline-block; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.btn-primary { background: var(--yellow); color: #111; }
.btn-ghost { background: rgba(255,255,255,.15); color: var(--white); border: 1px solid rgba(255,255,255,.25); }
.btn:hover { transform: translateY(-1px); transition: .2s ease; }

.toolbar { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; z-index: 1001; }
.tool { width: 44px; height: 44px; border-radius: 12px; border: none; background: #111; color: #fff; cursor: pointer; box-shadow: 0 8px 16px rgba(0,0,0,.2); }
.tool:hover { filter: brightness(1.1); }
.tool::after { content: attr(data-tip); position: absolute; right: 54px; top: 50%; transform: translateY(-50%); background: #111; color: #fff; padding: 6px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: .2s ease; box-shadow: 0 6px 12px rgba(0,0,0,.18); }
.tool:hover::after { opacity: .95; }

.footer { background: #0f0f11; color: #aaa; padding: 24px 0; text-align: center; }

/* 路由显示控制 */
.route-section { display: none; }
.route-section.route-active { display: block; }

/* 通用要点列表与卡片 */
.lead { font-size: 16px; line-height: 1.75; opacity: .92; }
.keypoints { margin: 10px 0 0; padding-left: 18px; }
.keypoints li { margin: 6px 0; line-height: 1.7; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 10px; }
.card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 14px; box-shadow: 0 6px 14px rgba(0,0,0,.06); }
.card h4 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
