:root {
  --bg: #dff1ff;
  --panel: rgba(246, 252, 255, 0.9);
  --line: #cfe0ef;
  --text: #26384f;
  --muted: #68788d;
  --blue: #0ea5e9;
  --blue-dark: #0878ca;
  --green: #21c78a;
  --orange: #f8ad20;
  --red: #f2555f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

.card-site-body {
  min-width: 1120px;
  min-height: 100vh;
  background: linear-gradient(180deg, #d8edff 0%, #eef8ff 48%, #dff1ff 100%);
}

.operator-login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.operator-login-panel {
  display: grid;
  width: 430px;
  gap: 16px;
  border: 1px solid #d3e4f3;
  border-radius: 18px;
  background: rgba(246, 252, 255, 0.94);
  box-shadow: 0 24px 80px rgba(30, 96, 143, 0.16);
  padding: 34px;
}

.operator-login-panel p {
  margin: 0;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 900;
}

.operator-login-panel h1 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 30px;
}

.operator-login-panel output {
  min-height: 20px;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

.card-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1840px, calc(100% - 120px));
  margin: 0 auto;
  padding: 34px 0 26px;
}

.card-title {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #0284d7;
}

.title-icon {
  font-size: 34px;
  line-height: 1;
}

.card-title h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: 0;
}

.operator-bar {
  grid-column: 3;
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 12px;
}

.operator-pill,
.soft-btn,
.outline-btn {
  min-height: 50px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  padding: 0 18px;
  font-weight: 800;
}

.soft-btn,
.outline-btn {
  cursor: pointer;
}

.soft-btn {
  background: #0b83d8;
  border-color: #0b83d8;
  color: white;
}

.outline-btn {
  background: white;
  color: #c54b55;
}

.outline-btn:disabled {
  opacity: 0.72;
  cursor: default;
}

.card-page {
  width: min(1840px, calc(100% - 120px));
  margin: 0 auto 48px;
}

.generator-card,
.batch-card {
  border: 1px solid #d3e4f3;
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 22px 80px rgba(30, 96, 143, 0.12);
  padding: 34px;
}

.batch-card {
  margin-top: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.section-title span {
  font-size: 24px;
}

.section-title h2 {
  margin: 0;
  font-size: 26px;
}

.card-form {
  display: grid;
  grid-template-columns: 180px 180px 180px minmax(280px, 380px) 1fr;
  gap: 18px 22px;
  align-items: end;
}

label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

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

.wide {
  min-width: 0;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d5e2ef;
  border-radius: 12px;
  background: white;
  color: var(--text);
  outline: none;
  padding: 15px 18px;
  font-size: 18px;
}

select {
  min-height: 58px;
}

.product-tip {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  color: #52657b;
  font-size: 17px;
}

.product-snapshot {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 150px 180px 140px 140px minmax(0, 1fr);
  gap: 10px;
}

.product-snapshot article {
  min-width: 0;
  border: 1px solid #d6e5f0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  padding: 12px;
}

.product-snapshot span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.product-snapshot strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-line {
  grid-column: 1 / span 3;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 104px;
  gap: 14px;
  align-items: end;
}

.search-btn {
  height: 58px;
  border: 0;
  border-radius: 12px;
  background: #0ea5e9;
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.action-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
}

.primary-btn,
.soft-copy-btn,
.green-btn,
.orange-btn,
.ghost-btn {
  min-height: 58px;
  border: 0;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  font-weight: 900;
  padding: 0 28px;
  box-shadow: 0 12px 24px rgba(15, 107, 176, 0.14);
}

.primary-btn {
  background: linear-gradient(135deg, #08a9f4, #0284d7);
}

.green-btn {
  background: linear-gradient(135deg, #24d39a, #10a971);
}

.soft-copy-btn {
  border: 1px solid #b9d6ec;
  background: #ffffff;
  color: #0878ca;
  box-shadow: none;
}

.orange-btn {
  background: linear-gradient(135deg, #ffc545, #f59e0b);
}

.ghost-btn {
  border: 1px solid #cbddeb;
  background: #edf6ff;
  color: #506176;
  box-shadow: none;
}

.preview-label {
  margin-top: 26px;
}

#linkPreview {
  min-height: 220px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 1.7;
}

.local-note {
  margin: 18px 0 0;
  color: #8a650f;
  font-weight: 700;
}

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

.batch-item {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.8fr) auto 120px;
  gap: 18px;
  align-items: center;
  border: 1px solid #d8e7f3;
  border-radius: 16px;
  background: white;
  padding: 16px;
}

.batch-item strong {
  display: block;
  font-size: 17px;
}

.batch-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.batch-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.batch-actions {
  display: flex;
  gap: 8px;
}

.batch-actions button {
  min-height: 38px;
  border: 1px solid #cbddeb;
  border-radius: 10px;
  background: #f7fbff;
  color: var(--blue-dark);
  cursor: pointer;
  font-weight: 800;
  padding: 0 12px;
}

code {
  overflow: hidden;
  color: #53687e;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state {
  margin: 0;
  border: 1px dashed #bad3e8;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  padding: 20px;
}

.public-submit-body {
  min-width: 0;
  display: grid;
  min-height: 100vh;
  place-items: start center;
  padding: 14px 20px 48px;
  background: #eeeeee;
}

.public-submit-card {
  width: min(1110px, 100%);
  border: 1px solid var(--line);
  border-radius: 40px 40px 0 0;
  background: white;
  overflow: hidden;
  padding: 0 60px 48px;
  box-shadow: 0 24px 70px rgba(15, 35, 64, 0.14);
}

.public-buy-header {
  margin: 0 -60px 60px;
  background: linear-gradient(135deg, #6577e8, #7b4aaa);
  color: white;
  padding: 48px 20px;
  text-align: center;
}

.public-buy-header h1 {
  margin: 0;
  font-size: 36px;
}

.public-submit-card p {
  color: var(--muted);
  line-height: 1.7;
}

.public-product-info {
  display: grid;
  gap: 34px;
  margin: 0 0 34px;
}

.public-product-info p {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 104px;
  gap: 0;
  align-items: center;
  border: 4px solid #e3e9f1;
  border-radius: 22px;
  background: white;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.public-product-info span {
  display: grid;
  place-items: center;
  height: 100%;
  background: #f6f8fb;
  color: #44536a;
  font-size: 26px;
  font-weight: 800;
}

.public-product-info strong {
  padding: 0 32px;
  overflow-wrap: anywhere;
  color: #333333;
  font-size: 28px;
  font-weight: 700;
}

.public-submit-card form {
  display: grid;
  gap: 34px;
}

.public-submit-card form label {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 104px;
  gap: 0;
  align-items: center;
  border: 4px solid #e3e9f1;
  border-radius: 22px;
  overflow: hidden;
  color: #44536a;
  font-size: 26px;
  font-weight: 800;
}

.public-submit-card form label input {
  height: 100%;
  border: 0;
  border-left: 1px solid #e3e9f1;
  border-radius: 0;
  font-size: 24px;
}

.public-submit-card form label span {
  display: grid;
  place-items: center;
  height: 100%;
  background: #f6f8fb;
  color: #44536a;
  font-size: 26px;
  font-weight: 800;
}

.public-submit-card button {
  min-height: 100px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, #ff626b, #ed363b);
  color: white;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 18px 32px rgba(237, 54, 59, 0.22);
}

.public-status-card {
  padding-bottom: 60px;
}

.public-status-hero {
  margin-bottom: 28px;
  border: 1px solid #dbe6f2;
  border-radius: 24px;
  background: #f7fbff;
  padding: 28px;
  text-align: center;
}

.public-status-hero.success {
  border-color: #bcebd6;
  background: #f0fff8;
}

.public-status-hero.pending {
  border-color: #c8d7ff;
  background: #f4f7ff;
}

.public-status-hero.danger {
  border-color: #ffd2d6;
  background: #fff6f7;
}

.public-status-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  padding: 0 16px;
  color: white;
  font-size: 16px;
  font-weight: 900;
}

.public-status-badge.success {
  background: var(--green);
}

.public-status-badge.pending {
  background: #6478e8;
}

.public-status-badge.danger {
  background: var(--red);
}

.public-status-badge.muted {
  background: #7b8794;
}

.public-status-hero h2 {
  margin: 16px 0 8px;
  color: #26384f;
  font-size: 34px;
}

.public-status-hero p {
  margin: 0;
  color: #65748a;
  font-size: 18px;
  font-weight: 700;
}

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

.public-status-grid article {
  min-width: 0;
  border: 1px solid #dbe6f2;
  border-radius: 16px;
  background: #fbfdff;
  padding: 16px 18px;
}

.public-status-grid span {
  display: block;
  margin-bottom: 8px;
  color: #6a7890;
  font-size: 14px;
  font-weight: 800;
}

.public-status-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: #26384f;
  font-size: 18px;
}

.public-status-reason {
  margin-top: 18px;
  border: 1px solid #ffccd2;
  border-radius: 16px;
  background: #fff5f6;
  padding: 16px 18px;
}

.public-status-reason strong {
  color: #c6333d;
  font-size: 16px;
}

.public-status-reason p {
  margin: 8px 0 0;
  color: #8e2c34;
  font-size: 16px;
  font-weight: 800;
}

.public-notice {
  margin-top: 40px;
  border: 1px solid #fde7ad;
  border-radius: 14px;
  background: #fff9e8;
  padding: 12px;
}

.public-notice h2 {
  margin: 0 0 10px;
  border: 1px solid #a6e1f5;
  border-radius: 10px 10px 0 0;
  background: #d8f3fb;
  color: #2f7193;
  padding: 12px;
  font-size: 20px;
}

.public-notice p {
  margin: 10px 0;
  color: #6f5b31;
  font-weight: 700;
}

.public-notice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0;
}

.public-notice-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border-radius: 8px;
  background: #ffad3d;
  color: white;
  font-weight: 900;
  padding: 0 16px;
  text-decoration: none;
}

.public-notice-images {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.public-notice-images img {
  max-width: 100%;
  border-radius: 10px;
  background: white;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

output {
  min-height: 22px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .card-site-body {
    min-width: 0;
  }

  .operator-login {
    padding: 18px;
  }

  .operator-login-panel {
    width: min(430px, 100%);
    border-radius: 14px;
    padding: 24px;
  }

  .card-header {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 760px);
    gap: 14px;
    padding: 18px 0;
  }

  .card-title,
  .operator-bar {
    grid-column: auto;
    justify-self: stretch;
    justify-content: center;
  }

  .operator-bar {
    flex-wrap: wrap;
  }

  .card-title h1 {
    font-size: 26px;
  }

  .title-icon {
    font-size: 28px;
  }

  .operator-pill,
  .soft-btn,
  .outline-btn {
    min-height: 42px;
    padding: 0 12px;
  }

  .card-page {
    width: min(100% - 24px, 760px);
    margin-bottom: 28px;
  }

  .generator-card,
  .batch-card {
    border-radius: 16px;
    padding: 20px;
  }

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

  .section-title h2 {
    font-size: 22px;
  }

  .card-form,
  .product-snapshot,
  .search-line,
  .batch-item {
    grid-template-columns: 1fr;
  }

  .search-line {
    grid-column: 1 / -1;
  }

  .action-row {
    gap: 10px;
  }

  .primary-btn,
  .soft-copy-btn,
  .green-btn,
  .orange-btn,
  .ghost-btn {
    flex: 1 1 180px;
    min-height: 48px;
    padding: 0 14px;
  }

  .batch-actions {
    flex-wrap: wrap;
  }

  .batch-actions button {
    flex: 1 1 120px;
  }

  .public-submit-body {
    padding: 10px 10px 32px;
  }

  .public-submit-card {
    border-radius: 24px 24px 0 0;
    padding: 0 18px 30px;
  }

  .public-buy-header {
    margin: 0 -18px 26px;
    padding: 32px 12px;
  }

  .public-buy-header h1 {
    font-size: 28px;
  }

  .public-product-info,
  .public-submit-card form {
    gap: 18px;
  }

  .public-product-info p,
  .public-submit-card form label {
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 76px;
    border-width: 3px;
    border-radius: 16px;
  }

  .public-product-info span,
  .public-submit-card form label span {
    font-size: 19px;
  }

  .public-product-info strong {
    padding: 0 16px;
    font-size: 20px;
  }

  .public-submit-card form label input {
    min-height: 76px;
    font-size: 18px;
    padding: 0 14px;
  }

  .public-submit-card button {
    min-height: 72px;
    border-radius: 16px;
    font-size: 24px;
  }

  .public-status-card {
    padding-bottom: 34px;
  }

  .public-status-hero {
    margin-bottom: 18px;
    border-radius: 18px;
    padding: 20px 14px;
  }

  .public-status-hero h2 {
    font-size: 26px;
  }

  .public-status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  input,
  select,
  textarea {
    min-height: 46px;
    padding: 12px 14px;
    font-size: 16px;
  }

  select {
    min-height: 48px;
  }

  label,
  .product-tip {
    font-size: 14px;
  }

  .operator-login-panel h1,
  .card-title h1 {
    font-size: 22px;
  }

  .generator-card,
  .batch-card {
    padding: 16px;
  }

  .public-submit-card {
    border-radius: 18px 18px 0 0;
    padding: 0 12px 24px;
  }

  .public-buy-header {
    margin: 0 -12px 20px;
    padding: 26px 10px;
  }

  .public-buy-header h1 {
    font-size: 24px;
  }

  .public-product-info p,
  .public-submit-card form label {
    grid-template-columns: 108px minmax(0, 1fr);
    min-height: 64px;
    border-width: 2px;
    border-radius: 14px;
  }

  .public-product-info span,
  .public-submit-card form label span {
    font-size: 16px;
  }

  .public-product-info strong {
    padding: 0 12px;
    font-size: 17px;
  }

  .public-submit-card form label input {
    min-height: 64px;
    font-size: 16px;
  }

  .public-submit-card button {
    min-height: 62px;
    font-size: 22px;
  }

  .public-status-hero h2 {
    font-size: 24px;
  }

  .public-status-hero p,
  .public-status-grid strong {
    font-size: 16px;
  }

  .public-notice h2 {
    font-size: 18px;
  }
}
