* { margin:0; padding:0; box-sizing:border-box; font-family:"PingFang SC","Microsoft YaHei",sans-serif; }
body { background:#f0f2f5; color:#333; }

/* ===== 顶部导航栏 ===== */
.header {
  height:64px; background:linear-gradient(90deg,#c8102e,#e63946);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 40px; color:#fff; box-shadow:0 2px 12px rgba(0,0,0,.15);
  position:sticky; top:0; z-index:100;
}
.logo { font-size:22px; font-weight:bold; letter-spacing:1px; }
.nav { display:flex; align-items:center; gap:26px; }
.nav a { color:#fff; text-decoration:none; font-size:15px; opacity:.92; transition:.2s; position:relative; }
.nav a:hover { opacity:1; }
.nav a::after { content:''; position:absolute; left:0; bottom:-6px; width:0; height:2px; background:#fff; transition:.3s; }
.nav a:hover::after { width:100%; }
.nav .user-tag { background:rgba(255,255,255,.2); padding:6px 14px; border-radius:20px; font-size:14px; }

/* ===== 首页背景大图 Banner ===== */
.hero {
  height:520px;
  background:linear-gradient(135deg,#1e3c72 0%,#2a5298 50%,#6dd5ed 100%);
  display:flex;align-items:center;justify-content:center;flex-direction:column;
  position:relative;
}
/* 加一个飞机SVG云朵装饰（可选）*/
.hero::after{
  content:'✈';position:absolute;font-size:180px;color:rgba(255,255,255,.12);
  right:8%;top:20%;transform:rotate(-20deg);
}
/* ===== 搜索卡片（浮在banner上）===== */
.search-box {
  background:#fff; border-radius:16px; padding:30px 36px;
  box-shadow:0 12px 40px rgba(0,0,0,.2); width:900px; max-width:92%;
}
.search-tabs { display:flex; gap:20px; margin-bottom:22px; border-bottom:1px solid #eee; }
.search-tabs span { padding:8px 4px; cursor:pointer; font-size:16px; color:#666; border-bottom:3px solid transparent; }
.search-tabs span.active { color:#c8102e; border-color:#c8102e; font-weight:bold; }

/* ===== 通用容器 & 卡片 ===== */
.container { max-width:1100px; margin:30px auto; padding:0 20px; }
.card { background:#fff; border-radius:12px; padding:24px; box-shadow:0 4px 18px rgba(0,0,0,.06); margin-bottom:20px; }

/* ===== 分块模块标题 ===== */
.section-title { display:flex; align-items:center; gap:10px; font-size:22px; margin:36px 0 20px; color:#222; }
.section-title::before { content:''; width:5px; height:24px; background:#c8102e; border-radius:3px; }

/* ===== 特色服务分块（3列卡片）===== */
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.feature-item {
  background:#fff; border-radius:12px; padding:30px 24px; text-align:center;
  box-shadow:0 4px 18px rgba(0,0,0,.06); transition:.3s; cursor:pointer;
}
.feature-item:hover { transform:translateY(-6px); box-shadow:0 12px 30px rgba(200,16,46,.15); }
.feature-item .icon { font-size:44px; margin-bottom:14px; }
.feature-item h3 { font-size:18px; margin-bottom:8px; }
.feature-item p { color:#888; font-size:14px; line-height:1.6; }

/* ===== 热门航线分块（渐变色块版，无需图片）===== */
.route-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.route-card {
  background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 4px 14px rgba(0,0,0,.06);
  cursor:pointer; transition:.3s;
}
.route-card:hover { transform:translateY(-4px); box-shadow:0 10px 26px rgba(0,0,0,.12); }
.route-card .rc-img {
  height:120px;
  display:flex; align-items:center; justify-content:center;
  font-size:32px; font-weight:bold; color:rgba(255,255,255,.95);
  text-shadow:0 2px 8px rgba(0,0,0,.2); position:relative;
}
/* 四张卡片各自的渐变色块 */
.route-card:nth-child(1) .rc-img { background:linear-gradient(135deg,#c8102e,#ff6b6b); }
.route-card:nth-child(2) .rc-img { background:linear-gradient(135deg,#1677ff,#6dd5ed); }
.route-card:nth-child(3) .rc-img { background:linear-gradient(135deg,#27ae60,#a8e063); }
.route-card:nth-child(4) .rc-img { background:linear-gradient(135deg,#f39c12,#ffd452); }
/* 色块右下角飞机小图标装饰 */
.route-card .rc-img::after {
  content:'✈'; position:absolute; right:12px; bottom:8px;
  font-size:22px; color:rgba(255,255,255,.5);
}
.route-card .rc-body { padding:14px 16px; }
.route-card .rc-body b { font-size:16px; }
.route-card .rc-price { color:#c8102e; font-weight:bold; margin-top:6px; }

/* ===== 表单 ===== */
.form-row { display:flex; gap:16px; flex-wrap:wrap; }
.form-item { flex:1; min-width:160px; }
.form-item label { display:block; font-size:14px; color:#666; margin-bottom:6px; }
.form-item input, .form-item select {
  width:100%; padding:12px 14px; border:1px solid #ddd; border-radius:8px; font-size:15px; transition:.2s;
}
.form-item input:focus, .form-item select:focus { border-color:#c8102e; outline:none; box-shadow:0 0 0 3px rgba(200,16,46,.1); }

/* ===== 按钮 ===== */
.btn { background:linear-gradient(90deg,#c8102e,#e63946); color:#fff; border:none; padding:13px 34px;
  border-radius:8px; font-size:16px; cursor:pointer; transition:.2s; font-weight:500; }
.btn:hover { opacity:.9; box-shadow:0 6px 18px rgba(200,16,46,.3); }
.btn-sm { padding:8px 18px; font-size:14px; }
.btn-gray { background:#999; }
.btn-block { width:100%; }

/* ===== 航班卡片 ===== */
.flight-card { background:#fff; border-radius:12px; padding:22px 26px; margin-bottom:16px;
  display:flex; align-items:center; justify-content:space-between; box-shadow:0 4px 16px rgba(0,0,0,.06);
  transition:.2s; }
.flight-card:hover { box-shadow:0 8px 26px rgba(0,0,0,.12); }
.time-big { font-size:26px; font-weight:bold; color:#222; }
.tip { color:#999; font-size:13px; }
.price { color:#c8102e; font-size:24px; font-weight:bold; }

/* ===== 订单 ===== */
.order-card { background:#fff; border-radius:12px; padding:22px; margin-bottom:16px; box-shadow:0 4px 16px rgba(0,0,0,.06); }
.status { padding:3px 12px; border-radius:12px; font-size:13px; margin-left:8px; }
.status-待支付 { background:#fff3e0; color:#e67e22; }
.status-已支付 { background:#e8f5e9; color:#27ae60; }
.status-已取消 { background:#f5f5f5; color:#999; }

/* ===== 页脚 ===== */
.footer { background:#2b2b2b; color:#aaa; text-align:center; padding:30px; margin-top:50px; font-size:14px; line-height:1.8; }

/* ===== 弹窗（登录/支付二维码）===== */
.modal-mask { position:fixed; inset:0; background:rgba(0,0,0,.55); display:none; align-items:center; justify-content:center; z-index:2000; }
.modal-mask.show { display:flex; }
.modal { background:#fff; border-radius:14px; padding:30px; width:400px; max-width:92%; position:relative; animation:pop .25s; }
@keyframes pop { from{transform:scale(.85);opacity:0} to{transform:scale(1);opacity:1} }
.modal h3 { margin-bottom:20px; text-align:center; }
.modal .close { position:absolute; right:18px; top:14px; font-size:22px; color:#999; cursor:pointer; }

/* ===== 支付二维码弹窗 ===== */
.pay-tabs { display:flex; gap:10px; margin-bottom:20px; justify-content:center; }
.pay-tabs span { padding:8px 20px; border:2px solid #eee; border-radius:8px; cursor:pointer; font-size:14px; }
.pay-tabs span.active { border-color:#c8102e; color:#c8102e; }
.pay-tabs span.wx.active { border-color:#09bb07; color:#09bb07; }
.qr-wrap { text-align:center; }
.qr-wrap img { width:220px; height:220px; border:1px solid #eee; border-radius:8px; padding:8px; }
.qr-wrap .qr-tip { margin-top:14px; color:#666; font-size:15px; }
.qr-wrap .amount { color:#c8102e; font-size:26px; font-weight:bold; margin:10px 0; }

@media(max-width:768px){
  .feature-grid,.route-grid{grid-template-columns:1fr 1fr;}
  .hero h1{font-size:30px;}
  .header{padding:0 16px;}
}

/* ===== 退票改签订单状态样式 ===== */
.status-退票中 { background:#fff3e0; color:#e67e22; }
.status-改签中 { background:#e3f2fd; color:#1677ff; }
.status-已退票 { background:#f5f5f5; color:#999; }
.status-已改签 { background:#e8f5e9; color:#27ae60; }

/* 后台退票申请徽章 */
.badge.b-refunding { background:#fff3e0; color:#e67e22; }
.badge.b-refunded  { background:#f5f5f5; color:#999; }
.badge.b-changing  { background:#e3f2fd; color:#1677ff; }
.badge.b-changed   { background:#e8f5e9; color:#27ae60; }
