:root {
  --ink: #1c1713;
  --muted: #83766b;
  --line: rgba(74, 52, 35, 0.1);
  --orange: #ff6b2a;
  --amber: #ffb74a;
  --green: #20b392;
  --shadow: 0 24px 80px rgba(63, 43, 25, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 183, 74, 0.34), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(32, 179, 146, 0.22), transparent 32%),
    linear-gradient(135deg, #fff8ed 0%, #f8efe5 48%, #efe6dc 100%);
}

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

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

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

.login-card,
.panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-card {
  width: min(460px, 100%);
  padding: 38px;
  border-radius: 34px;
  position: relative;
}

.back-link {
  position: absolute;
  right: 30px;
  top: 28px;
  color: #7b695b;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 233, 159, 0.7), transparent 34%),
    linear-gradient(135deg, #25201b 0%, #20b392 100%);
  box-shadow: 0 16px 36px rgba(32, 179, 146, 0.2);
}

.eyebrow {
  margin: 18px 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.15;
}

h2 {
  font-size: 34px;
}

h3 {
  font-size: 20px;
}

.muted,
.hint,
.panel-head span {
  color: var(--muted);
  line-height: 1.7;
}

.hint {
  margin-top: 16px;
  font-size: 13px;
}

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

.login-form {
  margin-top: 28px;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: #6f5f52;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(91, 65, 43, 0.14);
  border-radius: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

textarea {
  min-height: 118px;
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.5;
}

.file-field {
  position: relative;
}

.file-input {
  position: absolute;
  inset: 28px 0 26px;
  width: 100%;
  min-height: 78px;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-card {
  min-height: 78px;
  padding: 16px 18px;
  border: 1px dashed rgba(32, 179, 146, 0.38);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  color: #176d5e;
  background:
    radial-gradient(circle at 92% 14%, rgba(32, 179, 146, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(239, 255, 248, 0.96), rgba(255, 255, 255, 0.9));
}

.upload-card strong {
  font-size: 14px;
  font-weight: 900;
}

.upload-card small,
.file-field em {
  color: #6d817b;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}

.file-field em {
  display: block;
  margin-top: 7px;
  font-style: normal;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(32, 179, 146, 0.56);
  box-shadow: 0 0 0 4px rgba(32, 179, 146, 0.12);
}

.primary-btn,
.soft-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.primary-btn {
  min-height: 48px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(135deg, #20b392 0%, #ff8f35 100%);
  box-shadow: 0 14px 30px rgba(32, 179, 146, 0.2);
}

.soft-btn,
.ghost-btn {
  min-height: 42px;
  padding: 0 18px;
  color: #176d5e;
  background: #e5fbf4;
}

.compact {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.notice-card {
  padding: 15px;
  border-radius: 18px;
  display: grid;
  gap: 6px;
  color: #176d5e;
  background: #eafbf5;
}

.notice-card span {
  color: #6d817b;
  font-size: 13px;
  line-height: 1.5;
}

.workspace {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px 1fr;
}

.side-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 183, 74, 0.22), transparent 32%),
    linear-gradient(180deg, #1d2f28 0%, #2e433b 100%);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.side-brand span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.main {
  padding: 30px;
}

.hero {
  min-height: 190px;
  padding: 30px;
  border-radius: 34px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(135deg, #1e1a15 0%, #597a4b 48%, #ff8f35 100%);
  box-shadow: 0 24px 70px rgba(63, 43, 25, 0.14);
}

.hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.panel {
  margin-top: 18px;
  padding: 24px;
  border-radius: 28px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.editor {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: start;
}

.editor .form-panel:last-child {
  grid-column: 2;
}

.tag-list {
  display: grid;
  gap: 12px;
}

.tag-card {
  padding: 16px;
  border: 1px solid rgba(91, 65, 43, 0.1);
  border-radius: 20px;
  display: grid;
  gap: 8px;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 251, 245, 0.78);
}

.tag-card.active {
  border-color: rgba(32, 179, 146, 0.44);
  background: linear-gradient(135deg, #edfff8, #fffaf2);
  box-shadow: 0 14px 34px rgba(32, 179, 146, 0.12);
}

.tag-card strong {
  font-size: 16px;
}

.tag-card span,
.empty p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.span-2 {
  grid-column: span 2;
}

.form-submit {
  align-self: end;
}

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

.platform-card {
  padding: 16px;
  border: 1px solid rgba(91, 65, 43, 0.1);
  border-radius: 20px;
  display: grid;
  gap: 12px;
  background: rgba(255, 251, 245, 0.76);
}

.platform-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.platform-top strong {
  font-size: 15px;
}

.platform-top label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #176d5e;
  font-size: 13px;
  font-weight: 900;
}

.platform-top input {
  width: auto;
  min-height: auto;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  min-width: 220px;
  padding: 13px 18px;
  border-radius: 999px;
  color: #fff;
  text-align: center;
  background: rgba(28, 23, 19, 0.88);
  transform: translateX(-50%);
  z-index: 20;
}

@media (max-width: 900px) {
  .workspace,
  .editor,
  .platform-list,
  .grid-form {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
  }

  .editor .form-panel:last-child,
  .span-2 {
    grid-column: auto;
  }
}
