:root {
  --bg: #f1ece3;
  --ink: #1a1714;
  --muted: #6f675d;
  --panel: rgba(255, 250, 244, 0.72);
  --panel-strong: rgba(255, 248, 240, 0.9);
  --line: rgba(34, 24, 14, 0.12);
  --accent: #8e5d3b;
  --accent-strong: #2e241f;
  --success: #2f5a4f;
  --danger: #8a3f34;
  --shadow: 0 24px 80px rgba(33, 18, 7, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(210, 191, 161, 0.7), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(148, 117, 86, 0.18), transparent 22%),
    linear-gradient(180deg, #f8f3ea 0%, #ede5d9 45%, #e9dfd0 100%);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell,
.admin-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.auth-shell {
  width: min(520px, calc(100% - 32px));
  margin: 80px auto;
}

.topbar,
.metrics-strip,
.story-grid,
.feature-band,
.hero-panel,
.panel,
.admin-item {
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 248, 240, 0.55);
  box-shadow: var(--shadow);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2019, #c39774);
  box-shadow: 0 0 0 8px rgba(142, 93, 59, 0.12);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-lockup h1,
.hero-copy h2,
.story-grid h3,
.feature-panel h3,
.section-heading h3,
.panel-header h2,
.admin-sidebar h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
}

.nav-desktop {
  align-items: center;
}

.mobile-nav {
  display: none;
}

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-panel {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 240, 0.94);
}

.hero-panel {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 24px;
  padding: 36px;
  border-radius: 36px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 250, 245, 0.9), rgba(241, 230, 214, 0.68)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.05));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 93, 59, 0.22), transparent 70%);
}

.hero-copy h2 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.96;
  max-width: 760px;
}

.hero-text,
.story-grid p,
.feature-panel p,
.admin-intro,
.api-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions,
.form-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.compact-actions {
  margin-top: 18px;
}

.button-primary,
.button-secondary,
.button-danger {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.button-primary:hover,
.button-secondary:hover,
.button-danger:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #2d241e, #8d5f3e);
  color: #fff7ef;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-danger {
  background: rgba(138, 63, 52, 0.1);
  color: var(--danger);
  border: 1px solid rgba(138, 63, 52, 0.2);
}

.hero-visual {
  display: grid;
  align-content: end;
  gap: 18px;
}

.hero-card {
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background:
    linear-gradient(160deg, rgba(59, 44, 31, 0.88), rgba(128, 87, 58, 0.7)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent);
  color: #fff9f4;
  box-shadow: 0 20px 60px rgba(37, 18, 6, 0.24);
}

.hero-card-large {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.hero-card p {
  margin: 0 0 10px;
  font-size: 26px;
  font-family: Georgia, "Times New Roman", serif;
}

.hero-card span {
  color: rgba(255, 249, 244, 0.78);
  line-height: 1.6;
}

.metrics-strip,
.story-grid,
.feature-band,
.products-section,
.inquiry-section {
  margin-top: 24px;
}

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

.metrics-strip div,
.story-grid article,
.feature-band,
.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metrics-strip div {
  padding: 28px;
}

.metrics-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 34px;
  font-family: Georgia, "Times New Roman", serif;
}

.metrics-strip span {
  color: var(--muted);
}

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

.story-grid article,
.feature-band,
.panel {
  padding: 28px;
}

.feature-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.feature-list span,
.product-season,
.admin-item-status {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(45, 36, 30, 0.08);
  color: var(--accent-strong);
  font-size: 12px;
}

.section-heading {
  margin-bottom: 18px;
}

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

.product-card,
.admin-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.product-card {
  transform: translateY(14px);
  opacity: 0;
  animation: rise 0.6s ease forwards;
}

.product-card:nth-child(2) {
  animation-delay: 0.08s;
}

.product-card:nth-child(3) {
  animation-delay: 0.16s;
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 0.85;
  overflow: hidden;
}

.product-image {
  height: 100%;
  object-fit: cover;
}

.product-season {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(255, 248, 240, 0.82);
}

.product-content {
  padding: 18px;
}

.product-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.product-name {
  margin: 10px 0 8px;
  font-size: 26px;
  font-family: Georgia, "Times New Roman", serif;
}

.product-summary,
.admin-item-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.product-tags span {
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(142, 93, 59, 0.1);
  color: var(--accent);
}

.admin-body {
  background:
    radial-gradient(circle at 0% 0%, rgba(198, 171, 146, 0.45), transparent 34%),
    linear-gradient(180deg, #f7f0e7 0%, #ebdfcf 100%);
}

.admin-rebuilt {
  background:
    linear-gradient(180deg, #e7dfd1 0%, #ddd3c3 100%);
  color: #1c1712;
}

.admin-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}

.admin-shell-wide {
  align-items: start;
}

.admin-layout {
  width: min(1560px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
}

.admin-sidebar-v2 {
  position: sticky;
  top: 20px;
  padding: 22px;
  border-radius: 28px;
  background: #171311;
  color: #f7efe4;
  box-shadow: 0 20px 60px rgba(22, 13, 6, 0.24);
  display: grid;
  gap: 22px;
  max-height: calc(100vh - 40px);
}

.sidebar-brand h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
}

.sidebar-user {
  margin: 12px 0 0;
  color: rgba(247, 239, 228, 0.72);
  line-height: 1.6;
}

.sidebar-menu {
  display: grid;
  gap: 10px;
}

.sidebar-menu a {
  padding: 14px 16px;
  border-radius: 18px;
  color: #f7efe4;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-foot {
  display: grid;
  gap: 10px;
  align-content: end;
}

.sidebar-chip {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 239, 228, 0.8);
}

.sidebar-logout {
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #7a5239, #2a211c);
  text-align: center;
}

.admin-main-v2 {
  display: grid;
  gap: 22px;
}

.workspace-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(145deg, #f8f4ec, #ece2d2);
  border: 1px solid rgba(31, 23, 18, 0.08);
  box-shadow: 0 20px 60px rgba(33, 22, 12, 0.12);
}

.workspace-copy h2,
.workspace-section-head h3,
.workspace-card-title,
.catalog-item-copy h4,
.section-editor-card h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.workspace-copy p:last-child {
  margin-bottom: 0;
  color: #62594f;
  line-height: 1.8;
}

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

.workspace-stats article {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(31, 23, 18, 0.08);
}

.workspace-stats strong {
  display: block;
  margin-bottom: 6px;
  font-size: 34px;
  font-family: Georgia, "Times New Roman", serif;
}

.workspace-stats span,
.workspace-muted {
  color: #6d6256;
}

.workspace-section {
  display: grid;
  gap: 16px;
}

.workspace-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.workspace-badge,
.section-type-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(46, 36, 31, 0.08);
  color: #3f342d;
  font-size: 12px;
}

.workspace-card {
  padding: 24px;
  border-radius: 28px;
  background: #f9f5ee;
  border: 1px solid rgba(31, 23, 18, 0.08);
  box-shadow: 0 20px 50px rgba(27, 19, 10, 0.08);
}

.workspace-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.workspace-card-title {
  font-size: 28px;
}

.workspace-grid-two,
.payments-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

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

.catalog-list-v2,
.sections-grid-v2 {
  display: grid;
  gap: 14px;
}

.catalog-item-v2 {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  padding: 16px;
  border-radius: 22px;
  background: #fffdf8;
  border: 1px solid rgba(31, 23, 18, 0.08);
}

.catalog-item-image {
  width: 120px;
  height: 140px;
  border-radius: 18px;
  object-fit: cover;
}

.catalog-item-copy h4 {
  margin-top: 10px;
  font-size: 24px;
}

.catalog-item-copy p {
  margin: 8px 0 0;
  color: #665d53;
  line-height: 1.7;
}

.catalog-item-actions {
  display: grid;
  gap: 10px;
  align-content: center;
}

.section-editor-card {
  padding: 20px;
  border-radius: 24px;
  background: #fffdf8;
  border: 1px solid rgba(31, 23, 18, 0.08);
  display: grid;
  gap: 16px;
}

.section-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.media-grid-v2 {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.media-tile-v2 {
  padding: 16px;
  border-radius: 22px;
  background: #fffdf8;
  border: 1px solid rgba(31, 23, 18, 0.08);
  display: grid;
  gap: 12px;
}

.media-meta {
  display: grid;
  gap: 6px;
}

.media-meta p {
  margin: 0;
  color: #6d6256;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.upload-bar-v2 {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.payment-config-card {
  display: grid;
  gap: 14px;
}

.admin-sidebar {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(42, 32, 25, 0.93);
  color: #f8efe5;
  box-shadow: var(--shadow);
}

.admin-sidebar .eyebrow,
.admin-sidebar .admin-intro,
.api-card p {
  color: rgba(248, 239, 229, 0.72);
}

.api-card {
  margin-top: 28px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.api-card code {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  overflow-wrap: anywhere;
}

.admin-nav {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.admin-nav a {
  padding: 12px 14px;
  border-radius: 16px;
  color: #f8efe5;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.admin-accordion {
  display: block;
}

.admin-accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  font-size: 20px;
  font-family: Georgia, "Times New Roman", serif;
}

.admin-accordion summary::-webkit-details-marker {
  display: none;
}

.admin-accordion[open] summary {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.admin-accordion-panel {
  margin-top: 10px;
}

.stack-form,
.editor-grid {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(34, 24, 14, 0.14);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.full-span {
  grid-column: 1 / -1;
}

.dashboard {
  display: grid;
  gap: 20px;
}

.admin-metrics {
  margin-top: 0;
}

.hidden {
  display: none;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--success);
}

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

.admin-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  padding: 14px;
  align-items: center;
}

.admin-item-image {
  height: 140px;
  object-fit: cover;
  border-radius: 20px;
}

.admin-item-name {
  margin: 10px 0 8px;
  font-size: 24px;
  font-family: Georgia, "Times New Roman", serif;
}

.admin-item-actions {
  display: grid;
  gap: 10px;
}

.gateway-card {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel-strong);
}

.panel-subsection {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

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

.media-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-strong);
}

.media-thumb {
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
}

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

.notice {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.notice.success {
  background: rgba(47, 90, 79, 0.08);
  color: var(--success);
}

.notice.error {
  background: rgba(138, 63, 52, 0.08);
  color: var(--danger);
}

.site-footer {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
}

.payment-panel {
  margin-top: 24px;
}

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

.payment-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.payment-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-family: Georgia, "Times New Roman", serif;
}

.product-detail {
  margin-top: 24px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.detail-image {
  border-radius: 28px;
  aspect-ratio: 0.9;
  object-fit: cover;
}

.detail-title {
  margin: 0;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
}

.detail-price {
  font-size: 28px;
  font-family: Georgia, "Times New Roman", serif;
}

.detail-materials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-materials span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(45, 36, 30, 0.08);
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.table-message {
  color: var(--muted);
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.28);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .admin-layout,
  .hero-panel,
  .admin-shell,
  .story-grid,
  .product-grid,
  .product-detail-grid,
  .payment-grid,
  .gateway-card,
  .media-grid,
  .workspace-hero,
  .workspace-grid-two,
  .payments-grid-v2,
  .media-grid-v2,
  .workspace-stats,
  .catalog-item-v2 {
    grid-template-columns: 1fr;
  }

  .feature-band,
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-sidebar-v2 {
    position: static;
    max-height: none;
  }

  .feature-list {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .page-shell,
  .admin-shell {
    width: min(100% - 24px, 1280px);
    padding-top: 18px;
  }

  .admin-layout {
    width: min(100% - 20px, 1560px);
    padding-top: 16px;
  }

  .hero-panel,
  .panel,
  .story-grid article,
  .feature-band,
  .topbar {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-copy h2 {
    font-size: 42px;
  }

  .metrics-strip,
  .editor-grid,
  .inquiry-form,
  .admin-form-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .nav-desktop {
    display: none;
  }

  .mobile-nav {
    display: block;
    width: 100%;
  }

  .customer-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .admin-nav {
    width: 100%;
  }

  .admin-item {
    grid-template-columns: 1fr;
  }

  .upload-bar-v2 {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }
}
