:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --line: #121212;
  --text: #1a2233;
  --muted: #5b6474;
  --blue: #5c7cfa;
  --blue-soft: #edf2ff;
  --shadow: 0 18px 40px rgba(40, 60, 120, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: linear-gradient(180deg, #fafbff 0%, #eef2f9 100%);
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1420px, 100%);
  max-width: 1420px;
  margin: 0 auto;
  padding: 40px 32px 48px;
}

.top-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 4px 0 12px;
  background: linear-gradient(180deg, rgba(250, 251, 255, 0.96), rgba(250, 251, 255, 0.82));
  backdrop-filter: blur(14px);
}

.top-nav-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    ". id"
    "nav nav";
  align-items: start;
  gap: 10px 16px;
}

.entry-status-bar {
  margin-top: 12px;
}

.entry-status-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.entry-status-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 2px solid #d8e0fb;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.entry-status-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.entry-status-value {
  word-break: break-all;
  font-size: 15px;
  line-height: 1.6;
}

.entry-copy-btn {
  width: fit-content;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.entry-copy-feedback {
  min-height: 20px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
}

.top-nav {
  grid-area: nav;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.user-id-tools {
  grid-area: id;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.user-id-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.user-id-edit-btn {
  min-height: 38px;
  padding: 0 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #f7f9fe;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.user-id-edit-btn:hover {
  background: var(--blue-soft);
}

.nav-btn {
  border: 3px solid var(--line);
  border-radius: 18px;
  background: #f7f9fe;
  color: var(--text);
  min-height: 68px;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-btn:hover,
.nav-btn.active {
  transform: translateY(-2px);
  background: var(--blue);
  color: #fff;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(640px, 1.45fr);
  gap: 24px;
}

.left-column {
  display: grid;
  gap: 24px;
}

.right-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-content: start;
}

.panel,
.feature-card {
  background: rgba(255, 255, 255, 0.92);
  border: 4px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  padding: 24px;
}

.panel-large {
  min-height: 400px;
}

.panel-header,
.feature-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-header h2,
.feature-card-header h3 {
  margin: 0;
  font-size: 28px;
}

.feature-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
}

.poster-slider {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border-radius: 20px;
  background: linear-gradient(135deg, #4c6ef5, #748ffc);
  color: #fff;
}

.slide {
  position: absolute;
  inset: 0;
  padding: 36px 30px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  cursor: pointer;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
  pointer-events: auto;
}

.slide h3 {
  margin: 0 0 14px;
  font-size: 36px;
}

.slide p {
  max-width: 420px;
  margin: 0;
  font-size: 22px;
  line-height: 1.6;
}

.slide-action {
  margin-top: 24px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.poster-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.poster-dots button {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #c9d3f0;
  cursor: pointer;
}

.poster-dots button.active {
  width: 34px;
  border-radius: 999px;
  background: var(--blue);
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.amap-wrapper {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #d8e0fb;
}

.amap-wrapper-food {
  min-height: 520px;
  height: 520px;
}

.amap-wrapper-route {
  min-height: 540px;
  height: 540px;
}

.amap-marker-label-text {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: #fff;
  color: #1a2233;
  font-size: 13px;
  font-weight: 700;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.amap-info-content {
  padding: 14px 18px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  min-width: 180px;
}

.amap-info-content h4 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #1a2233;
}

.amap-info-content p {
  margin: 0;
  font-size: 14px;
  color: #5b6474;
  line-height: 1.6;
}

.map-point {
  padding: 22px 18px;
  border-radius: 20px;
  background: #f8faff;
  border: 2px dashed #b4c2f7;
}

.map-point strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.map-point span {
  color: var(--muted);
  font-size: 18px;
}

.feature-card {
  min-height: 180px;
  padding: 22px;
  cursor: default;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue);
  flex-shrink: 0;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card-link {
  cursor: pointer;
}

.feature-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(40, 60, 120, 0.18);
  border-color: #4361ee;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

#page-view {
  min-height: 680px;
}

.content-page {
  display: grid;
  gap: 24px;
}

.page-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 6px 0;
}

.page-title h1 {
  margin: 0 0 10px;
  font-size: 42px;
}

.page-title p {
  margin: 0;
  max-width: 900px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.placeholder-panel {
  min-height: 220px;
}

.placeholder-panel p,
.feedback-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

.food-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.food-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.food-map-panel,
.food-filter-panel,
.feedback-panel {
  min-height: 620px;
}

.food-map-placeholder {
  display: grid;
  align-content: center;
  min-height: 520px;
  padding: 28px;
  border-radius: 24px;
  border: 2px dashed #9db2ff;
  background:
    radial-gradient(circle at top left, rgba(92, 124, 250, 0.14), transparent 32%),
    linear-gradient(135deg, #f8faff, #eef3ff);
}

.food-map-placeholder h3 {
  margin: 10px 0 14px;
  font-size: 30px;
}

.food-map-placeholder p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.map-placeholder-mark {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
}

.map-placeholder-list {
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.filter-field {
  display: grid;
  gap: 8px;
}

.filter-field span {
  font-size: 18px;
  font-weight: 700;
}

.filter-field select,
.filter-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 2px solid #cad5f6;
  border-radius: 16px;
  background: #fbfcff;
  outline: none;
}

.search-bar-field {
  margin-bottom: 20px;
}

.food-result-list {
  display: grid;
  gap: 14px;
}

.food-result-card {
  padding: 18px 20px;
  border: 2px solid #dde4fb;
  border-radius: 20px;
  background: #f9fbff;
}

.food-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.food-result-header strong {
  font-size: 22px;
}

.food-result-header span {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
}

.food-result-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.album-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
  gap: 24px;
  align-items: stretch;
}

.album-left-column,
.album-right-column {
  display: grid;
  gap: 16px;
}

.album-left-column {
  grid-template-rows: 1fr auto;
}

.album-right-column {
  grid-template-rows: 190px 1fr;
}

.album-recent-panel {
  display: grid;
  align-content: start;
  min-height: 500px;
}

.album-history-panel {
  display: grid;
  align-content: start;
  min-height: 220px;
}

.album-section-title {
  margin: 0 0 14px;
  font-size: 24px;
}

.album-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  height: auto;
}

.album-history-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.album-photo-card {
  position: relative;
  min-height: 180px;
  border-radius: 22px;
  overflow: hidden;
}

.album-photo-card-compact {
  min-height: 120px;
}

.album-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.48));
  color: #fff;
}

.album-photo-meta {
  width: 100%;
  display: grid;
  gap: 6px;
}

.album-photo-overlay strong {
  font-size: 22px;
}

.album-photo-overlay span {
  font-size: 15px;
}

.album-like-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.album-like-btn:hover {
  transform: scale(1.06);
}

.album-like-btn.active {
  background: rgba(255, 255, 255, 0.95);
  color: #ef4444;
}

.album-like-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.album-upload-panel {
  display: grid;
  place-items: center;
  gap: 6px;
  cursor: pointer;
  background: linear-gradient(135deg, #f8faff, #eef3ff);
  min-height: 190px;
}

.album-upload-plus {
  font-size: 72px;
  line-height: 1;
  color: var(--blue);
}

.album-upload-panel span:last-child {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.album-ranking-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.album-ranking-tabs {
  display: grid;
  gap: 12px;
}

.album-action-btn {
  min-height: 52px;
}

.upload-gallery-panel {
  display: grid;
  gap: 20px;
}

.upload-gallery-toolbar {
  display: flex;
  justify-content: flex-start;
}

.back-link-btn {
  min-height: 46px;
  padding: 0 20px;
  border: 2px solid #d8dff8;
  border-radius: 999px;
  background: #f8faff;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.upload-gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.upload-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.upload-gallery-card {
  position: relative;
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
}

.upload-form-panel {
  display: grid;
  gap: 20px;
}

.upload-picker-panel {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 22px;
  background: #f8faff;
  border: 2px solid #dde4fb;
}

.upload-file-picker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-weight: 700;
}

.upload-file-picker input {
  max-width: 100%;
}

.upload-batch-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.upload-picker-tip {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.upload-draft-list {
  display: grid;
  gap: 16px;
}

.upload-draft-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  border: 2px solid #dde4fb;
  background: #fbfcff;
}

.upload-draft-preview {
  min-height: 220px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  background-color: #eef3ff;
}

.upload-draft-fields {
  display: grid;
  gap: 14px;
}

.upload-draft-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.upload-draft-file {
  color: var(--muted);
  font-size: 14px;
}

.upload-submit-bar {
  display: grid;
  gap: 8px;
}

.route-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.route-panel,
.shopping-panel {
  display: grid;
  gap: 22px;
}

.route-map-panel,
.route-panel {
  min-height: 640px;
}

.route-map-panel {
  padding-bottom: 24px;
}

.route-map-placeholder {
  display: grid;
  align-content: center;
  min-height: 540px;
  padding: 28px;
  border-radius: 24px;
  border: 2px dashed #9db2ff;
  background:
    radial-gradient(circle at top left, rgba(92, 124, 250, 0.14), transparent 32%),
    linear-gradient(135deg, #f8faff, #eef3ff);
}

.route-map-placeholder h3 {
  margin: 10px 0 14px;
  font-size: 30px;
}

.route-map-placeholder p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.route-tabs,
.shopping-subtabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.subtab-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  min-height: 52px;
  padding: 0 20px;
  border: 3px solid var(--line);
  border-radius: 16px;
  background: #f7f9fe;
  color: var(--text);
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.subtab-btn.active,
.subtab-btn:hover {
  transform: translateY(-1px);
  border-color: var(--line);
  background: var(--blue);
  color: #fff;
}

.route-content-card {
  padding: 24px;
  border-radius: 24px;
  background: #f9fbff;
  border: 2px solid #dbe4ff;
}

.copy-btn {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.detail-list {
  margin: 0;
  padding-left: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.copy-feedback {
  margin-top: 16px;
  min-height: 28px;
  color: #2563eb;
  font-size: 16px;
  font-weight: 700;
}

.route-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #f0f4ff;
  border: 1px solid #dbe4ff;
}

.route-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #3b4664;
}

.route-legend-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.route-station-tabs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.station-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  min-height: 40px;
  padding: 0 18px;
  border: 2px solid #d0d7e8;
  border-radius: 12px;
  background: #fff;
  color: #3b4664;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.station-btn:hover {
  border-color: #4361ee;
  color: #4361ee;
}

.station-btn.active {
  background: #4361ee;
  color: #fff;
  border-color: #4361ee;
}

.route-station-hint {
  margin-top: 10px;
  font-size: 14px;
  color: #8a94a6;
}

.station-route-title {
  margin: 14px 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #1a2233;
}

.route-nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.nav-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid #4361ee;
  border-radius: 14px;
  background: #fff;
  color: #4361ee;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-app-btn:hover {
  background: #4361ee;
  color: #fff;
}

.route-address-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f0f4ff;
  border: 2px solid #dbe4ff;
}

.route-address-text {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  color: #1a2233;
  word-break: break-all;
}

.shopping-content {
  display: grid;
  gap: 20px;
}

.shopping-hero {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #edf2ff, #f8faff);
}

.shopping-hero h2 {
  margin: 0 0 12px;
  font-size: 32px;
}

.shopping-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.shopping-light-tag-icon {
  font-size: 18px;
  line-height: 1;
}

.shopping-light-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7fbff, #eef5ff);
  border: 1px solid #d8e6ff;
}

.shopping-light-card-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2f5bd2;
  font-size: 15px;
  font-weight: 800;
}

.shopping-light-tip-list {
  margin: 0;
  padding-left: 22px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.9;
}

.shopping-light-tip-list li + li {
  margin-top: 6px;
}

.shopping-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shopping-tip-strip {
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7d6, #fff2bf);
  border: 1px solid #f4d77e;
  color: #8a5a00;
  font-size: 15px;
  text-align: center;
  line-height: 1.7;
}

.seafood-directory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.seafood-directory-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f4f7ff;
  border: 1px solid #d8e0fb;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.seafood-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.fruit-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.fruit-category-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 136px;
  padding: 16px 12px;
  border: 2px solid #dce5ff;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fbfcff);
}

.fruit-category-icon {
  font-size: 38px;
  line-height: 1;
}

.fruit-category-name {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.seafood-category-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 156px;
  padding: 18px 12px;
  border: 2px solid #dce5ff;
  border-radius: 22px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.seafood-category-card:hover {
  transform: translateY(-3px);
  border-color: #4361ee;
  box-shadow: 0 18px 36px rgba(40, 60, 120, 0.12);
}

.seafood-category-icon {
  font-size: 42px;
  line-height: 1;
}

.seafood-category-name {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.shopping-category-modal {
  position: fixed;
  inset: 0;
  z-index: 25;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.shopping-category-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.42);
}

.shopping-category-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 32px));
  margin: 10vh auto 0;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 26px 24px;
  border-radius: 26px;
  background: #fff;
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
}

.shopping-category-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #eef2ff;
  color: var(--blue);
  font-size: 26px;
  cursor: pointer;
}

.shopping-category-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  padding-right: 36px;
}

.shopping-category-modal-icon {
  font-size: 48px;
  line-height: 1;
}

.shopping-category-modal-header h3 {
  margin: 0 0 8px;
  font-size: 28px;
}

.shopping-category-modal-header p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.shopping-category-modal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.shopping-category-modal-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f4f7ff;
  border: 1px solid #d8e0fb;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.shopping-item-card {
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  border: 2px solid #dce5ff;
}

.shopping-item-index {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.shopping-item-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.food-empty {
  padding: 26px 22px;
  border-radius: 18px;
  background: #f8faff;
  border: 2px dashed #cad5f6;
  color: var(--muted);
  font-size: 18px;
}

.feedback-panel {
  min-height: auto;
  padding: 18px 20px;
}

.feedback-history-panel {
  min-height: 280px;
}

.feedback-history-list {
  display: grid;
  gap: 16px;
}

.feedback-record-card {
  padding: 18px 20px;
  border-radius: 18px;
  background: #f7f9fe;
  border: 2px solid #dde4fb;
}

.feedback-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.feedback-status-pending {
  background: #eef0f3;
  color: #6b7280;
}

.feedback-status-reviewing {
  background: #eef0f3;
  color: #6b7280;
}

.feedback-status-adopted {
  background: #dcfce7;
  color: #16a34a;
}

.feedback-status-rejected {
  background: #eef0f3;
  color: #6b7280;
}

.feedback-record-main {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.7;
}

.feedback-result-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.feedback-reply-inline {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
}

.feedback-reward-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  background: #fff7d6;
  color: #8a5a00;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.assistant-panel.hidden {
  display: none;
}

.assistant-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
}

.assistant-fab {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #5c7cfa, #748ffc);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 16px 32px rgba(67, 97, 238, 0.28);
  cursor: pointer;
}

.assistant-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(360px, calc(100vw - 24px));
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 3px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 48px rgba(40, 60, 120, 0.18);
}

.assistant-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.assistant-header strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.assistant-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.assistant-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eef2ff;
  color: var(--blue);
  font-size: 22px;
  cursor: pointer;
}

.assistant-messages {
  max-height: 320px;
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.assistant-message {
  display: flex;
}

.assistant-message-user {
  justify-content: flex-end;
}

.assistant-message-bot {
  justify-content: flex-start;
}

.assistant-message-bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px;
  background: #f4f7ff;
  border: 1px solid #d8e0fb;
}

.assistant-message-user .assistant-message-bubble {
  background: #5c7cfa;
  border-color: #5c7cfa;
  color: #fff;
}

.assistant-message-bubble p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.assistant-message-bubble p + p {
  margin-top: 6px;
}

.assistant-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assistant-quick-reply {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.assistant-input {
  min-height: 42px;
  padding: 0 14px;
  border: 2px solid #cad5f6;
  border-radius: 14px;
  background: #fbfcff;
  outline: none;
}

.assistant-send {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.modal.hidden,
.feedback-form.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.42);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 32px));
  margin: 10vh auto 0;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #eef2ff;
  color: var(--blue);
  font-size: 28px;
  cursor: pointer;
}

.modal-panel h3 {
  margin: 0 56px 12px 0;
  font-size: 34px;
}

.modal-panel p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

.guide-modal-panel {
  width: min(720px, calc(100% - 32px));
}

.guide-modal-content {
  display: grid;
  gap: 16px;
}

.guide-badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
}

.guide-list {
  margin: 0;
  padding-left: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.guide-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.guide-alert {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  border: 2px solid #fb7185;
  color: #be123c;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.7;
}

.guide-field {
  display: grid;
  gap: 8px;
}

.date-input-field {
  cursor: pointer;
}

.date-picker-input {
  cursor: pointer;
}

.date-picker-input.date-empty {
  color: transparent;
}

.date-picker-input.date-empty::-webkit-datetime-edit {
  color: transparent;
}

.date-picker-input.date-empty::-webkit-calendar-picker-indicator {
  opacity: 1;
}

.guide-field span {
  font-size: 17px;
  font-weight: 700;
}

.guide-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 2px solid #cad5f6;
  border-radius: 16px;
  background: #fbfcff;
  outline: none;
  cursor: pointer;
}

.guide-field-error input {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.guide-field-shake {
  animation: guide-shake 0.42s ease;
}

@keyframes guide-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

.guide-form-message {
  min-height: 24px;
  margin: -4px 0 0;
  color: #dc2626;
  font-size: 15px;
}

.guide-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  color: var(--text);
}

.guide-checkbox input {
  width: 18px;
  height: 18px;
}

.feedback-form {
  display: grid;
  gap: 12px;
}

.feedback-form label {
  display: grid;
  gap: 8px;
}

.feedback-form span {
  font-size: 18px;
  font-weight: 700;
}

.feedback-form textarea,
.feedback-form input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #cad5f6;
  border-radius: 14px;
  background: #fbfcff;
  outline: none;
}

.submit-btn {
  border: 0;
  border-radius: 14px;
  min-height: 48px;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.submit-message {
  min-height: 28px;
}

@media (max-width: 1200px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .food-layout,
  .album-layout,
  .route-layout,
  .placeholder-grid,
  .shopping-items,
  .upload-gallery-grid {
    grid-template-columns: 1fr;
  }

  .seafood-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fruit-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-form-row {
    grid-template-columns: 1fr;
  }

  .upload-draft-card {
    grid-template-columns: 1fr;
  }

  .album-history-row,
  .upload-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .food-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-status-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .right-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page-shell {
    padding: 22px 16px 32px;
  }

  .top-nav-wrap {
    position: static;
    padding-bottom: 10px;
  }

  .top-nav-bar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "id"
      "nav";
  }

  .top-nav,
  .right-column,
  .entry-status-panel,
  .map-grid,
  .food-filter-row,
  .album-photo-grid,
  .album-history-row,
  .upload-gallery-grid {
    grid-template-columns: 1fr;
  }

  .user-id-tools {
    justify-self: stretch;
    flex-wrap: wrap;
  }

  .user-id-badge {
    white-space: normal;
  }

  .upload-draft-row {
    grid-template-columns: 1fr;
  }

  .upload-batch-row {
    grid-template-columns: 1fr;
  }

  .page-title,
  .food-result-header,
  .feedback-result-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-btn {
    min-height: 56px;
    font-size: 20px;
  }

  .panel {
    padding: 18px;
  }

  .panel-header h2,
  .feature-card-header h3 {
    font-size: 22px;
  }

  .slide {
    padding: 24px 20px;
  }

  .slide h3 {
    font-size: 28px;
  }

  .slide p,
  .feature-card p,
  .page-title p,
  .detail-list,
  .route-map-placeholder p,
  .food-map-placeholder p,
  .shopping-hero p,
  .feedback-record-main,
  .feedback-reply-inline {
    font-size: 16px;
  }

  .panel-large {
    min-height: auto;
  }

  .food-map-panel,
  .food-filter-panel,
  .feedback-panel {
    min-height: auto;
  }

  .modal {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .modal-mask {
    position: fixed;
  }

  .modal-panel,
  .guide-modal-panel {
    width: calc(100% - 24px);
    margin: auto auto 12px;
    padding: 20px 16px;
    max-height: calc(100vh - 24px);
    -webkit-overflow-scrolling: touch;
  }

  .modal-panel h3 {
    font-size: 26px;
  }

  .assistant-widget {
    right: 14px;
    bottom: 14px;
  }

  .shopping-light-card {
    padding: 12px 14px;
  }

  .shopping-light-tip-list {
    padding-left: 20px;
    font-size: 14px;
  }

  .seafood-category-grid {
    grid-template-columns: 1fr;
  }

  .fruit-category-grid {
    grid-template-columns: 1fr;
  }

  .seafood-category-card {
    min-height: 118px;
  }

  .shopping-category-modal {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .shopping-category-modal-mask {
    position: fixed;
  }

  .shopping-category-modal-panel {
    width: calc(100% - 24px);
    margin: auto auto 12px;
    padding: 22px 16px;
    max-height: calc(100vh - 24px);
    -webkit-overflow-scrolling: touch;
  }

  .shopping-category-modal-header {
    gap: 12px;
    padding-right: 28px;
  }

  .shopping-category-modal-header h3 {
    font-size: 24px;
  }

  .shopping-category-modal-header p {
    font-size: 15px;
  }

  .assistant-fab {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .assistant-panel {
    right: 0;
    bottom: 70px;
    width: min(340px, calc(100vw - 20px));
    padding: 14px;
  }

  .assistant-form {
    grid-template-columns: 1fr;
  }

  .modal-panel p,
  .guide-list,
  .guide-alert,
  .guide-checkbox,
  .guide-field span {
    font-size: 15px;
  }
}

.git-repos-panel {
  margin-top: 24px;
}

.git-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  margin-bottom: 20px;
}

.git-server {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}

.refresh-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 8px 16px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.refresh-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.git-repos-container {
  display: grid;
  gap: 20px;
}

.git-repo-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.git-repo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.git-repo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #f8f9fc;
  border-bottom: 1px solid #e8ecf0;
}

.git-repo-icon {
  font-size: 28px;
}

.git-repo-info {
  flex: 1;
}

.git-repo-info h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a2233;
}

.git-repo-path {
  font-size: 13px;
  color: #8892a6;
}

.git-repo-count {
  background: linear-gradient(135deg, #5c7cfa 0%, #6772e5 100%);
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
}

.git-logs-container {
  padding: 12px 20px 16px;
}

.git-logs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.git-log-item {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  background: #fafbfc;
  border-radius: 10px;
  border-left: 3px solid #e8ecf0;
  transition: all 0.2s ease;
}

.git-log-item:hover {
  background: #f0f2f5;
}

.git-log-item.latest {
  border-left-color: #5c7cfa;
  background: #f5f7ff;
}

.git-log-hash {
  font-family: "SF Mono", "Monaco", "Inconsolata", monospace;
  font-size: 13px;
  font-weight: 600;
  color: #5c7cfa;
  min-width: 70px;
  flex-shrink: 0;
}

.git-log-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.git-log-message {
  font-size: 14px;
  color: #1a2233;
}

.git-log-meta {
  font-size: 12px;
  color: #8892a6;
}

.no-logs {
  text-align: center;
  padding: 20px;
  color: #8892a6;
  font-size: 14px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state p {
  margin: 8px 0;
  color: #8892a6;
  font-size: 14px;
}

.loading-spinner {
  text-align: center;
  padding: 40px;
  color: #5c7cfa;
  font-size: 16px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

