﻿/* 全局主题变量，方便后续换肤。 */
:root {
  --bg-main: #f4f7fb;
  --bg-panel: #ffffff;
  --text-main: #122034;
  --text-sub: #4f5f73;
  --primary: #0b7fab;
  --primary-dark: #075a79;
  --accent: #ff9f1c;
  --danger: #d90429;
  --line: #d9e2ec;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top right, #def6ff 0%, #f4f7fb 40%, #eef2f7 100%);
  color: var(--text-main);
}

.top-banner {
  height: 10vh;
  min-height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(120deg, #0b7fab, #12a1d4 60%, #26c1bf);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 8px 30px rgba(11, 127, 171, 0.35);
}

.top-banner h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-back {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
}

.home-back:hover {
  background: rgba(255, 255, 255, 0.18);
}

.top-banner nav {
  display: flex;
  gap: 12px;
}

.top-banner a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.95;
}

.top-banner a:hover {
  opacity: 1;
  text-decoration: underline;
}

.user-chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.page-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 120px;
}

.hero-banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: clamp(220px, 34vw, 360px);
  margin-bottom: 18px;
  box-shadow: 0 18px 40px rgba(18, 32, 52, 0.22);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.45s ease, transform 0.45s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  color: #fff;
  padding: 24px;
  max-width: 640px;
}

.hero-tag {
  margin: 0 0 8px;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.hero-content h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 36px);
}

.hero-content p {
  margin: 0;
  line-height: 1.6;
  opacity: 0.92;
}

.hero-controls {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-btn {
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.4);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.active {
  width: 20px;
  border-radius: 999px;
  background: #fff;
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 8px;
}

.task-list-head {
  justify-content: flex-start;
  gap: 10px;
}

.section-title {
  margin: 8px 0 16px;
  font-size: 22px;
}

.status-filter-select {
  min-width: 178px;
  height: 38px;
  padding: 0 40px 0 12px;
  border: 1px solid #b9d6e7;
  border-radius: 10px;
  background-color: #f9fcff;
  background-image:
    linear-gradient(45deg, transparent 50%, #0a7399 50%),
    linear-gradient(135deg, #0a7399 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 16px,
    calc(100% - 10px) 16px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: #103247;
  font-size: 14px;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(16, 50, 71, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.status-filter-select:hover {
  border-color: #7cbad6;
  background-color: #f2faff;
}

.status-filter-select:focus {
  outline: none;
  border-color: #0b7fab;
  box-shadow: 0 0 0 3px rgba(11, 127, 171, 0.2), 0 8px 20px rgba(16, 50, 71, 0.13);
}

.link-btn {
  text-decoration: none;
  color: #0c5d7d;
  background: #d5eef7;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(18, 32, 52, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 26px rgba(18, 32, 52, 0.15);
}

.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.card-content {
  padding: 12px;
}

.card-content h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.card-content p {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
  min-height: 42px;
}

.task-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.temp-api-tip {
  margin: 12px 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #f2c879;
  background: #fff7e6;
  color: #7c4a00;
  font-size: 14px;
}

.form-box {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  max-width: 860px;
  box-shadow: 0 8px 22px rgba(18, 32, 52, 0.08);
}

.auth-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-box {
  width: min(560px, 100%);
}

.form-item {
  margin-bottom: 12px;
}

.form-item label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-item input,
.form-item textarea,
.form-item select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}

.field-tip {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #5d6e83;
}

.sms-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.sms-input-wrap {
  width: 100%;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.profile-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(18, 32, 52, 0.08);
}

.profile-card h3 {
  margin: 0 0 10px;
}

.coin-value {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #0a6588;
}

.recharge-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.cert-state {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.cert-state.pending {
  background: #fff1e8;
  color: #b13f00;
}

.cert-state.ok {
  background: #e8fff4;
  color: #00784f;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.cert-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #f9fbff;
}

.preview-list {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}

.preview-thumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ced8e2;
  cursor: zoom-in;
  box-shadow: 0 4px 14px rgba(16, 36, 61, 0.14);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 17, 30, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.lightbox.show {
  display: flex;
}

.lightbox-image {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.button {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.button:hover {
  background: var(--primary-dark);
}

.button.secondary {
  background: var(--accent);
}

.button.danger {
  background: var(--danger);
}

.bottom-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: linear-gradient(120deg, #10243d, #183a57 70%, #0a648a);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 14px 30px rgba(4, 17, 31, 0.35);
}

.bottom-banner-meta {
  color: #d8f1ff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bottom-banner-meta strong {
  color: #fff;
  font-size: 16px;
}

.bottom-banner-meta span {
  font-size: 12px;
}

.bottom-banner-actions {
  display: flex;
  gap: 10px;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #d8eef8;
  color: #095f7f;
}

.msg {
  margin-top: 12px;
  font-size: 14px;
}

.msg.error {
  color: var(--danger);
}

.msg.ok {
  color: #00784f;
}

.overlay-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 12, 22, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}

.overlay-modal.show {
  display: flex;
}

.overlay-modal-card {
  width: min(420px, 92vw);
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(4, 17, 31, 0.35);
  padding: 18px;
}

.overlay-modal-title {
  margin: 0 0 8px;
  font-size: 18px;
}

.overlay-modal-text {
  margin: 0;
  color: var(--text-sub);
  line-height: 1.7;
}

.overlay-modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.warn-tip-red {
  margin-top: 10px;
  font-size: 12px;
  color: #c1121f;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.detail-gallery,
.detail-info,
.comment-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(18, 32, 52, 0.08);
}

.detail-gallery {
  padding: 12px;
}

.detail-main {
  position: relative;
  height: min(430px, 55vh);
  border-radius: 10px;
  overflow: hidden;
  background: #eef3f9;
}

.detail-main-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.detail-main-image.active {
  opacity: 1;
}

.detail-thumbs {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 8px;
}

.detail-thumb {
  width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #cad6e2;
  cursor: pointer;
  opacity: 0.75;
}

.detail-thumb.active {
  opacity: 1;
  border: 2px solid #0a7ea9;
}

.detail-info {
  padding: 14px;
}

.detail-info h2 {
  margin: 0 0 8px;
}

.detail-desc {
  margin: 0 0 12px;
  color: var(--text-sub);
  line-height: 1.6;
}

.detail-params {
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
}

.detail-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.comment-box {
  padding: 14px;
}

.comment-box h3 {
  margin: 0 0 6px;
}

.comment-item {
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
  background: #fafcff;
}

.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #5b6f87;
}

.comment-item p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.message-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
}

.message-left,
.message-right {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(18, 32, 52, 0.08);
}

.message-left {
  padding: 12px;
}

.message-task-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.message-task-item {
  border: 1px solid #c9d8e6;
  border-radius: 10px;
  background: #f8fcff;
  text-align: left;
  padding: 10px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  color: #1a3850;
}

.message-task-item strong {
  font-size: 15px;
}

.message-task-item span {
  font-size: 12px;
  color: #597188;
}

.message-task-item.active {
  border-color: #0b7fab;
  background: #ecf8ff;
  box-shadow: 0 0 0 2px rgba(11, 127, 171, 0.15);
}

.message-right {
  padding: 12px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 560px;
}

.chat-header {
  border-bottom: 1px solid #dce6f0;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.chat-order-meta h3 {
  margin: 0 0 8px;
}

.chat-order-meta p {
  margin: 4px 0;
  color: #445f78;
  font-size: 14px;
}

.chat-messages {
  min-height: 260px;
  max-height: 420px;
  overflow-y: auto;
  padding: 6px 2px 6px 0;
}

.chat-item {
  display: flex;
  margin-bottom: 10px;
}

.chat-item.mine {
  justify-content: flex-end;
}

.chat-item.system {
  justify-content: center;
}

.chat-bubble {
  max-width: min(74%, 540px);
  background: #f2f7fc;
  border: 1px solid #d7e4ef;
  border-radius: 10px;
  padding: 8px 10px;
}

.chat-item.mine .chat-bubble {
  background: #dff5ff;
  border-color: #b6deef;
}

.chat-item.system .chat-bubble {
  background: #fff6e7;
  border-color: #f2d39b;
  max-width: min(84%, 620px);
}

.chat-author {
  font-size: 12px;
  font-weight: 700;
  color: #33526d;
  margin-bottom: 4px;
}

.chat-bubble p {
  margin: 0;
  line-height: 1.6;
}

.chat-time {
  text-align: right;
  margin-top: 6px;
  font-size: 11px;
  color: #5f748a;
}

.chat-composer {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.chat-composer textarea {
  width: 100%;
  resize: vertical;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .bottom-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    flex-direction: column;
    align-items: stretch;
  }

  .bottom-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-banner h1 {
    font-size: 18px;
  }

  .top-banner nav {
    gap: 8px;
    font-size: 13px;
  }

  .hero-content {
    padding: 16px;
  }

  .hero-content h2 {
    font-size: 22px;
  }

  .list-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .bottom-banner-actions {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-main {
    height: 300px;
  }

  .detail-actions {
    grid-template-columns: 1fr;
  }

  .message-layout {
    grid-template-columns: 1fr;
  }

  .message-right {
    min-height: auto;
  }

  .chat-messages {
    max-height: 360px;
  }

  .chat-composer {
    grid-template-columns: 1fr;
  }
}
