* { box-sizing: border-box; }
body {
  margin: 0;
  color: #18212f;
  background: #f4f6f8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }

.hero {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  color: #142335;
  background: #fff;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 46px 20px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  min-height: 360px;
  align-items: center;
  gap: 28px;
}
.hero-text {
  padding: 28px 32px;
  border-left: 6px solid #ffb21f;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 42px rgba(20,35,53,.08);
}
.hero-logo-card {
  min-height: 174px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(20,35,53,.08);
}
.hero-logo-card img {
  width: 100%;
  max-width: 430px;
  height: auto;
  display: block;
  object-fit: contain;
}
.eyebrow {
  margin: 0 0 10px;
  color: #ffb21f;
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 800;
}
.hero h1, .admin-header h1, .login-card h1 {
  margin: 0;
  line-height: 1.12;
}
.hero h1 { font-size: clamp(34px, 5.6vw, 58px); max-width: 680px; }
.sub {
  margin: 18px 0 0;
  max-width: 620px;
  color: #253247;
  font-size: 17px;
  line-height: 1.7;
}
.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 14px;
  width: min(760px, 100%);
}
.hero-stats div {
  padding: 18px;
  color: #fff;
  background: #142335;
  border: 1px solid #142335;
  border-radius: 8px;
  text-align: center;
}
.hero-stats strong { display: block; font-size: 34px; }
.hero-stats span { color: rgba(255,255,255,.86); font-size: 13px; }

.public-main {
  max-width: 1160px;
  margin: 18px auto 0;
  padding: 0 20px 48px;
}
.toolbar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  margin-bottom: 18px;
}
input, select, textarea {
  width: 100%;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  color: #18212f;
  padding: 12px 13px;
  outline: none;
}
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: #c99a3d;
  box-shadow: 0 0 0 3px rgba(201,154,61,.16);
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.store-card, .panel, .login-card {
  background: #fff;
  border: 1px solid #e2e6ed;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(24,33,47,.06);
}
.store-card { overflow: hidden; }
.store-image {
  height: 210px;
  background: #e8edf3;
}
.store-image img, .location-shot, .preview {
  width: 100%;
  display: block;
  object-fit: cover;
}
.store-image img { height: 100%; }
.placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: #697386;
  font-weight: 700;
}
.store-body { padding: 16px; }
.store-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.store-top h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.28;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #7a4c00;
  background: #fff1cf;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.meta-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #edf0f4;
  line-height: 1.55;
}
.meta-row span { color: #697386; }
.meta-row strong { font-weight: 650; }
.highlight {
  margin: 12px 0 0;
  padding: 12px;
  background: #f8f3e8;
  border-radius: 8px;
  color: #493823;
  line-height: 1.65;
}
details { margin-top: 12px; }
summary {
  cursor: pointer;
  color: #8a5a05;
  font-weight: 800;
}
.location-shot {
  margin-top: 10px;
  max-height: 300px;
  border-radius: 8px;
  border: 1px solid #e2e6ed;
}
.empty {
  padding: 28px;
  text-align: center;
  color: #697386;
  background: #fff;
  border: 1px dashed #cfd6e2;
  border-radius: 8px;
}
.footer {
  padding: 18px 20px 30px;
  text-align: center;
  color: #8b93a1;
  font-size: 13px;
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #eef2f5, #f8f3e8);
}
.login-card {
  width: min(420px, 100%);
  padding: 26px;
}
.login-card p {
  color: #697386;
  line-height: 1.6;
}
.login-card button, .form-actions button, #saveBtn {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #1e6b5c;
  font-weight: 800;
  cursor: pointer;
}
.login-card input { margin: 8px 0 12px; }
.tip { margin-top: 12px; color: #8b93a1; font-size: 13px; }

.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 20px 48px;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.admin-header h1 { font-size: 32px; }
.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-actions a, .secondary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  color: #1e6b5c;
  background: #fff;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.admin-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  gap: 16px;
  align-items: start;
}
.panel { padding: 18px; }
.form-title, .list-head, .form-actions, .export-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.form-title h2, .list-head h2 {
  margin: 0;
  font-size: 20px;
}
label {
  display: block;
  margin-top: 13px;
  color: #354052;
  font-weight: 800;
}
label input, label select, label textarea { margin-top: 7px; font-weight: 400; }
.grid2, .upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.upload-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e2e6ed;
  border-radius: 8px;
  background: #fafbfc;
}
.preview {
  display: none;
  margin-top: 10px;
  height: 180px;
  border-radius: 8px;
  border: 1px solid #e2e6ed;
}
.form-actions { margin-top: 16px; }
.form-actions button { flex: 1; }
.danger {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #b42318;
  font-weight: 800;
  cursor: pointer;
}
.export-actions {
  justify-content: flex-start;
  margin: 12px 0;
}
.admin-list {
  display: grid;
  gap: 10px;
}
.admin-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  text-align: left;
  border: 1px solid #e2e6ed;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.admin-item strong { display: block; color: #18212f; }
.admin-item em { display: block; margin-top: 5px; color: #697386; font-style: normal; line-height: 1.45; }
.admin-item b { color: #7a4c00; white-space: nowrap; }

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .admin-header { align-items: stretch; flex-direction: column; }
  .hero-stats { min-width: 0; }
  .store-grid, .admin-main { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero-inner { min-height: 0; padding: 28px 12px 22px; gap: 14px; }
  .hero-text { padding: 20px; }
  .hero-logo-card { min-height: 118px; padding: 12px; }
  .hero-logo-card img { max-width: 310px; }
  .hero h1 { font-size: 34px; max-width: 100%; }
  .sub { font-size: 15px; }
  .public-main { padding-left: 12px; padding-right: 12px; }
  .toolbar, .grid2, .upload-grid { grid-template-columns: 1fr; }
  .store-image { height: 190px; }
  .admin-shell { padding: 16px 12px 34px; }
  .admin-actions, .form-actions { flex-direction: column; align-items: stretch; }
  .admin-actions a, .admin-actions button, .form-actions button { width: 100%; }
  .panel { padding: 14px; }
}
