/* =====================================================
   接码平台 · 简洁大气风格（参考账号商城）
   主色：#2fb241 深灰横幅：#434343
   ===================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
  font-family: Ubuntu, 'Open Sans', Helvetica, Arial, -apple-system,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #222;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.flex { display: flex; align-items: center; }

.muted { color: #8e8e8e; }
.accent { color: #2fb241; }

/* ============ 顶部深灰横幅 ============ */
.hdr-top {
  background-color: #434343;
}
.hdr-top .container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 34px;
}
#authBox { display: flex; align-items: center; gap: 14px; }
#authBox a { color: #fff; font-size: 13px; line-height: 34px; cursor: pointer; }
#authBox a:hover { text-decoration: underline; }
.user-balance { color: #fff; font-size: 13px; line-height: 34px; }
.user-balance b { color: #7dde8a; font-weight: 700; }

/* ============ 中导航 ============ */
.hdr-middle {
  background-color: #fff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .12);
  position: relative;
  z-index: 20;
}
.hdr-middle .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  flex-wrap: wrap;
  gap: 10px;
}
.logo { font-size: 20px; font-weight: 700; color: #222; letter-spacing: .3px; }
.logo .dot { color: #2fb241; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: #222;
  border-radius: 3px;
}
.nav a:hover { color: #2fb241; }
.nav a.active { color: #2fb241; font-weight: 700; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: 14px;
  border: 1px solid #dddfe1;
  border-radius: 4px;
  background: #fff;
  color: #222;
  cursor: pointer;
  line-height: 1.4;
  transition: all .15s;
}
.btn:hover { border-color: #2fb241; color: #2fb241; }
.btn-primary { background: #2fb241; border-color: #2fb241; color: #fff; font-weight: 600; }
.btn-primary:hover { background: #289e38; border-color: #289e38; color: #fff; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ============ 表单 ============ */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; font-weight: 600; }
input[type="text"], input[type="number"], select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #dddfe1;
  border-radius: 4px;
  font-size: 14px;
  color: #222;
  outline: none;
  background: #fff;
}
input:focus, select:focus { border-color: #2fb241; }
.selector { display: flex; gap: 10px; margin-bottom: 16px; }
.selector select { flex: 1; }

/* ============ 卡片 / 网格 ============ */
.section { padding: 40px 0; }
.card {
  background: #fff;
  border: 1px solid #e5e3e3;
  border-radius: 6px;
  padding: 18px;
  transition: all .15s;
}
.card:hover { border-color: #2fb241; box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 服务卡片（首页） */
.service-card { display: block; cursor: pointer; text-align: center; padding: 22px 14px; }
.service-card .sicon { font-size: 30px; margin-bottom: 8px; }
.service-card h3 { font-size: 15px; color: #222; margin-bottom: 4px; }
.service-card p { font-size: 12px; color: #8e8e8e; }
.service-card:hover h3 { color: #2fb241; }

/* ============ 页面标题 ============ */
.page-head { padding: 28px 0 16px; }
.page-head h1 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.page-head p { color: #5e5e5e; }

/* ============ 提示条 ============ */
.flash { padding: 10px 14px; border-radius: 4px; margin-bottom: 12px; font-size: 13px; }
.flash-error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6c0; }
.flash-ok { background: #eafaf0; color: #27ae60; border: 1px solid #bdeccd; }

/* ============ 订单状态页 ============ */
.act-box { max-width: 560px; margin: 0 auto; }
.act-number {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  padding: 16px 0;
  color: #2fb241;
}
.act-status { text-align: center; margin-bottom: 18px; }
.status-pill {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
}
.status-waiting { background: #fff7e6; color: #d48806; }
.status-received { background: #eafaf0; color: #27ae60; }
.status-done { background: #eef2f7; color: #5e5e5e; }
.status-cancelled { background: #fdecea; color: #c0392b; }

.act-code {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #222;
  padding: 14px;
  border: 2px dashed #2fb241;
  border-radius: 6px;
  background: #f7fcf8;
  margin-bottom: 16px;
}
.act-actions { display: flex; gap: 10px; margin-top: 8px; }
.act-actions .btn { flex: 1; }
.act-meta { font-size: 13px; color: #5e5e5e; line-height: 1.9; margin-bottom: 14px; }
.act-meta b { color: #222; }

/* ============ 弹窗 / 抽屉 ============ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  display: none;
}
.overlay.show { display: block; }
.drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 400px; max-width: 92vw;
  height: 100%;
  background: #fff;
  z-index: 1001;
  box-shadow: -4px 0 18px rgba(0,0,0,.18);
  transition: right .25s ease;
  padding: 22px;
  overflow-y: auto;
}
.drawer.open { right: 0; }
.drawer h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.drawer .sub { color: #8e8e8e; font-size: 13px; margin-bottom: 18px; }
.drawer .form-group { margin-bottom: 14px; }
.drawer-close { float: right; cursor: pointer; font-size: 20px; color: #8e8e8e; }

/* ============ 订单查询页 ============ */
.track-box { max-width: 480px; margin: 0 auto; }

/* ============ 页脚 ============ */
.footer { border-top: 1px solid #e5e3e3; padding: 24px 0; margin-top: 40px; }
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer p { color: #8e8e8e; font-size: 13px; }

/* ============ 搜索框 ============ */
.search-bar { max-width: 480px; margin: 0 auto 22px; }
.search-bar input {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid #dddfe1;
  border-radius: 4px;
  font-size: 15px;
  outline: none;
}
.search-bar input:focus { border-color: #2fb241; box-shadow: 0 0 0 3px rgba(47,178,65,.12); }

/* ============ 服务网格（缩小） ============ */
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.svc-item {
  padding: 10px 8px;
  border: 1px solid #e5e3e3;
  border-radius: 4px;
  text-align: center;
  font-size: 13px;
  color: #222;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.svc-item:hover { border-color: #2fb241; color: #2fb241; }
.svc-item.active { background: #2fb241; border-color: #2fb241; color: #fff; font-weight: 600; }

/* ============ 国家价格列表 ============ */
.cty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #e5e3e3;
  border-radius: 4px;
  margin-bottom: 8px;
  transition: border-color .15s;
}
.cty-row:hover { border-color: #2fb241; }
.cty-row .cty-name { flex: 1; font-size: 14px; color: #222; }
.cty-row .cty-price { font-size: 16px; font-weight: 700; color: #2fb241; white-space: nowrap; }
.btn-sm { padding: 6px 16px; font-size: 13px; }

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .selector { flex-direction: column; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============ 服务图标 ============ */
.svc-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: left;
}
.svc-icon {
  flex: none;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.svc-icon.brand img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}
.svc-icon.letter {
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.svc-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ 复制按钮 ============ */
.copy-btn {
  margin: 8px auto 0;
  display: inline-flex;
}
