/* ============================================================
   车队活动页 —— 上半部分：TruckersMP 官方活动（公共 API）
   ============================================================ */

.tmp-section {
  margin-bottom: 26px;
}

.tmp-head {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}

.tmp-h1 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
}

.tmp-h1::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 13px;
  margin-right: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, #003c5b, #002a40);
  vertical-align: -1px;
}

.tmp-sub {
  font-size: 11.5px;
  color: var(--dim);
  margin-top: 4px;
}

/* ---------------------------------------------------- featured 大卡 */

.tmp-heroes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 316px));
  gap: 14px;
  margin-bottom: 18px;
}

.tmp-hero {
  position: relative;
  display: block;
  height: 172px;
  border-radius: 14px;
  overflow: hidden;
  background: #120c1e;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.tmp-hero:hover {
  transform: translateY(-2px);
  border-color: var(--brand-line);
  box-shadow: 0 14px 34px rgba(0, 12, 20, 0.6);
}

.tmp-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.02);
  transition: transform 0.4s ease;
}

.tmp-hero:hover .tmp-hero-img {
  transform: scale(1.07);
}

.tmp-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 12, 0.15) 0%, rgba(4, 8, 12, 0.35) 42%, rgba(4, 8, 12, 0.94) 100%),
    linear-gradient(100deg, rgba(0, 42, 64, 0.28), transparent 62%);
}

.tmp-hero-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}

.tmp-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(5, 11, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
}

.tmp-pill.game {
  border-color: var(--brand-line);
  background: rgba(0, 60, 91, 0.22);
}

.tmp-hero-body {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 11px;
}

.tmp-hero-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.28;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tmp-hero-sub {
  margin-top: 3px;
  font-size: 11.5px;
  color: rgba(248, 244, 255, 0.78);
}

.tmp-hero-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 7px;
  font-size: 11px;
  color: var(--muted);
}

.tmp-hero-foot b {
  color: #fff;
  font-weight: 700;
}

.tmp-hero-go {
  margin-left: auto;
  color: var(--amber);
  font-size: 13px;
}

/* ---------------------------------------------------- 列表 */

.tmp-group + .tmp-group {
  margin-top: 16px;
}

.tmp-group-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.tmp-list {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10, 20, 28, 0.55);
}

.tmp-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(24, 40, 53, 0.6);
  transition: background 0.14s ease;
}

.tmp-row:last-child {
  border-bottom: none;
}

.tmp-row:hover {
  background: rgba(0, 60, 91, 0.08);
}

.tmp-date {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 10px;
}

.tmp-date .day {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.tmp-date .mon {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.tmp-main {
  min-width: 0;
}

.tmp-name {
  font-size: 13px;
  font-weight: 650;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tmp-meta {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tmp-org {
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--dim);
}

.tmp-side {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.tmp-side .badge.game.ets2 {
  color: #a5d3e6;
}

/* ---------------------------------------------------- 状态 */

.tmp-fail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  background: rgba(10, 20, 28, 0.5);
  color: var(--muted);
}

.tmp-fail svg {
  color: var(--amber);
}

.tmp-fail-title {
  font-size: 13px;
  font-weight: 650;
  color: #fff;
}

.tmp-empty {
  padding: 8px 0;
}

/* 下半部分：车队自己的活动 分隔 */
.section-div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.section-div::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

@media (max-width: 860px) {
  .tmp-row {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .tmp-side {
    grid-column: 2;
    justify-content: flex-start;
  }
}

/* ---------------------------------------------------- VTC 身份条 */

.vtc-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line-2);
  background: #120c1e;
  flex: none;
}

.vtc-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge.vtc-id {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  border-color: var(--brand-line);
  background: var(--brand-soft);
}

.vtc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.vtc-chip {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

/* ---------------------------------------------------- 没有活动时 */

.tmp-none {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  background: rgba(10, 20, 28, 0.5);
  color: var(--muted);
}

.tmp-none svg {
  color: var(--amber);
}

.tmp-section .tmp-group:first-of-type {
  margin-top: 0;
}

.tmp-section .vtc-logo { align-self: center; }


/* 活动卡上的主办方标签 */
.tmp-pill.ours {
  border-color: rgba(0, 60, 91, 0.5);
  background: rgba(0, 60, 91, 0.3);
}

.tmp-pill.host {
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #eaf7ff;
}

/* 精简后的顶部工具条（原来的 VTC 身份条已去掉） */
.tmp-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tmp-bar-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ============================================================
   即将开始 —— 日历视图
   ============================================================ */

.cal-head {
  margin-bottom: 12px;
}

.cal-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cal-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
}

.cal-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 13px;
  margin-right: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, #003c5b, #002a40);
  vertical-align: -1px;
}

.cal-month {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.cal-nav {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.cal-nav:hover {
  background: rgba(0, 60, 91, 0.16);
  color: #fff;
}

.cal-month-label {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 650;
  color: #fff;
  white-space: nowrap;
}

/* ---------------------------------------------------- 网格 */

.cal-grid {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10, 20, 28, 0.55);
}

.cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.02);
}

.cal-wd {
  padding: 8px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
}

.cal-body {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cal-cell {
  min-height: 96px;
  padding: 6px 7px 8px;
  border-top: 1px solid rgba(24, 40, 53, 0.7);
  border-right: 1px solid rgba(24, 40, 53, 0.7);
}

.cal-cell:nth-child(7n) {
  border-right: none;
}

.cal-cell.blank {
  background: rgba(4, 8, 12, 0.35);
}

.cal-cell.has {
  background: rgba(0, 60, 91, 0.045);
}

.cal-day {
  font-size: 11px;
  font-weight: 700;
  color: var(--dim);
  text-align: right;
}

.cal-cell.today .cal-day {
  color: #fff;
}

.cal-cell.today .cal-day::after {
  content: '';
}

.cal-cell.today {
  box-shadow: inset 0 0 0 1px rgba(0, 60, 91, 0.5);
}

/* ---------------------------------------------------- 活动小条 */

.cal-chip {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 3px 6px;
  border-radius: 7px;
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  font-size: 10.5px;
  line-height: 1.3;
  overflow: hidden;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.cal-chip:hover {
  transform: translateY(-1px);
}

.cal-chip.on {
  box-shadow: 0 0 0 1px #3f9dc4, 0 6px 16px rgba(63, 157, 196, 0.28);
}

.cal-chip.tmp.ours {
  background: linear-gradient(135deg, rgba(0, 60, 91, 0.55), rgba(0, 42, 64, 0.35));
  color: #fff;
}

.cal-chip.tmp {
  background: rgba(63, 157, 196, 0.13);
  border-color: rgba(63, 157, 196, 0.35);
  color: #d4ecf7;
}

.cal-chip.local {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-2);
  color: var(--muted);
}

.cal-chip-time {
  font-weight: 700;
  margin-right: 5px;
  opacity: 0.85;
}

.cal-chip-name {
  display: inline;
}

.cal-more {
  margin-top: 3px;
  font-size: 10px;
  color: var(--dim);
  text-align: right;
}

/* ---------------------------------------------------- 详情卡 */

.cal-detail {
  margin-top: 14px;
}

.cal-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 2px;
  font-size: 11.5px;
  color: var(--dim);
}

.cal-hint svg {
  color: var(--accent);
}

.cal-card {
  display: flex;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.cal-card-banner {
  flex: none;
  width: 220px;
  height: 120px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #0c1922;
}

.cal-card-body {
  min-width: 0;
  flex: 1;
}

.cal-card-top {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.cal-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.cal-card-meta {
  margin-top: 7px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: var(--muted);
}

.cal-card-meta .line {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cal-card-meta .line svg {
  color: var(--accent);
  flex: none;
}

.cal-card-desc {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--dim);
  max-height: 44px;
  overflow: hidden;
}

.cal-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  flex-wrap: wrap;
}

.cal-past {
  margin-top: 22px;
}

@media (max-width: 860px) {
  .cal-cell {
    min-height: 72px;
  }

  .cal-card {
    flex-direction: column;
  }

  .cal-card-banner {
    width: 100%;
    height: 140px;
  }
}

/* 图标尺寸（全局 svg 没有默认宽高，必须显式给） */
.cal-hint svg,
.tmp-none svg,
.tmp-fail svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.cal-card-meta .line svg {
  width: 14px;
  height: 14px;
}

.cal-detail .cal-card-actions .rsvp {
  display: flex;
  gap: 6px;
}

/* 空月提示 */
.cal-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid rgba(24, 40, 53, 0.7);
  background: rgba(255, 255, 255, 0.02);
  font-size: 11.5px;
}
