/* 昆明轿运车货运有限公司 - 官网样式 */
/* 参考 kmjychy.cn 现有风格设计 */

:root {
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --primary-bg: #e8f0fe;
  --text: #333;
  --text-light: #6b7280;
  --text-dark: #111827;
  --bg: #fff;
  --gray-bg: #f9fafb;
  --gold: #ffd54f;
  --max-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, 'Microsoft YaHei', 'PingFang SC', sans-serif; color: var(--text); line-height: 1.8; background: var(--bg); }

/* 顶部电话栏 */
.topbar { background: linear-gradient(135deg, #1e40af, #3b82f6); color: #fff; padding: 12px 0; text-align: center; font-size: 14px; }
.topbar a { color: var(--gold); text-decoration: none; }

/* 头部导航 */
.header { background: #fff; border-bottom: 1px solid #e5e7eb; box-shadow: 0 1px 3px rgba(0,0,0,0.05); position: relative; }
.header-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; height: 60px; }
.logo { font-size: 22px; font-weight: 800; color: #1e40af; text-decoration: none; }
.nav a { color: #4b5563; text-decoration: none; margin-left: 20px; font-size: 15px; }
.nav a:hover, .nav a.active { color: #2563eb; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #333; padding: 8px; line-height: 1; }

/* 通用容器 */
.container { max-width: var(--max-width); margin: 0 auto; padding: 20px; }

/* 页面标题区 */
.page-hero { background: linear-gradient(135deg, #1e40af, #3b82f6); color: #fff; padding: 40px 20px; text-align: center; }
.page-hero h1 { font-size: 1.6rem; margin-bottom: 8px; }
.page-hero p { opacity: 0.9; font-size: 0.95rem; }

/* 面包屑 */
.breadcrumb { background: #fff; padding: 10px 20px; border-bottom: 1px solid #eef2f7; font-size: 0.85rem; max-width: 1100px; margin: 0 auto; }
.breadcrumb a { color: #2563eb; text-decoration: none; }

/* 卡片 */
.card { background: #fff; border-radius: 10px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); margin-bottom: 24px; }
.card h2, .card h3 { color: #1e40af; margin-bottom: 12px; }
.card h2 { font-size: 1.15rem; }
.card h3 { font-size: 1rem; }

/* 搜索框 */
.search-box { background: #fff; max-width: 720px; margin: 0 auto; border-radius: 12px; padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.search-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.search-row .field { flex: 1; min-width: 200px; }
.search-row label { display: block; font-size: 0.82rem; color: #666; margin-bottom: 6px; font-weight: 600; }
.search-row select, .search-row input { width: 100%; padding: 11px 14px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 0.92rem; background: #f9fafb; outline: none; transition: border 0.2s; }
.search-row select:focus, .search-row input:focus { border-color: var(--primary-light); background: #fff; }

/* 按钮 */
.btn { background: linear-gradient(135deg, #1e40af, #3b82f6); color: #fff; border: none; padding: 11px 28px; border-radius: 8px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: opacity 0.2s; white-space: nowrap; }
.btn:hover { opacity: 0.92; }

/* 路由标签 */
.routes-wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.route-tag { background: #e8f0fe; color: #2563eb; padding: 8px 18px; border-radius: 50px; font-size: 14px; text-decoration: none; transition: all .15s; display: inline-block; }
.route-tag:hover { background: #2563eb; color: #fff; }

/* 特色卡片 */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.feature-card { background: #fff; border-radius: 10px; padding: 24px 20px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.feature-card .icon { font-size: 2.2rem; margin-bottom: 8px; }
.feature-card h4 { font-size: 0.95rem; color: #1e40af; margin-bottom: 4px; }
.feature-card p { font-size: 0.82rem; color: #6b7280; }

/* CTA 电话盒 */
.phone-bar { background: linear-gradient(135deg, #1e40af, #3b82f6); color: #fff; text-align: center; padding: 20px; border-radius: 10px; margin-bottom: 24px; }
.phone-bar .num { font-size: 1.6rem; font-weight: 700; letter-spacing: 2px; color: var(--gold); }
.phone-bar .sub { font-size: 0.85rem; opacity: 0.9; }

/* 联系方式 */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.contact-item { text-align: center; padding: 20px; }
.contact-item .icon { font-size: 1.8rem; margin-bottom: 8px; }
.contact-item h4 { font-size: 0.9rem; color: #1e40af; margin-bottom: 4px; }
.contact-item p { font-size: 0.88rem; color: #6b7280; }

/* SEO 内容区 */
.seo-text { font-size: 16px; color: #374151; line-height: 1.9; margin-bottom: 16px; }
.seo-text h2 { font-size: 1rem; color: #1e40af; margin-bottom: 10px; }
.seo-text p { margin-bottom: 12px; text-indent: 2em; }

/* 隐藏爬虫链接 */
.crawler-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* 底部 */
.footer { background: #111827; color: #9ca3af; padding: 32px 20px; text-align: center; font-size: 14px; line-height: 2; }
.footer a { color: #60a5fa; text-decoration: none; }

/* 响应式 */
@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #fff; padding: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); z-index: 99; }
  .nav.open { display: flex; }
  .nav a { margin: 0; padding: 8px 12px; }
  .nav-toggle { display: block; }
  .page-hero h1 { font-size: 1.3rem; }
}
