:root {
  --primary-color: #1a78ff;
  --primary-hover: #2c83ff;
  --text: #333333;
  --muted: #6a6f77;
  --border: #e0e0e0;
  --page-bg: #f7f8fb;
  --danger: #f56c6c;
  font-family: Avenir, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

article,
aside,
body,
button,
div,
form,
h1,
h2,
header,
input,
label,
li,
main,
nav,
p,
section,
select,
table,
tbody,
td,
th,
thead,
tr,
ul {
  margin: 0;
  padding: 0;
  outline: none;
}

body {
  min-width: 1180px;
  color: var(--text);
  background: var(--page-bg);
  font-size: 14px;
}

ul {
  list-style: none;
}

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

img {
  max-width: 100%;
  max-height: 100%;
  vertical-align: middle;
}

button,
input,
select {
  font: inherit;
}

button {
  min-width: 80px;
  height: 26px;
  line-height: 24px;
  border: 1px solid var(--primary-color);
  color: #ffffff;
  background-color: var(--primary-color);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

button:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 0 4px rgba(26, 120, 255, 0.2);
}

.flex {
  display: flex;
}

.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    transform: translateZ(0);
  }
}

.animate__fadeInUp {
  animation-name: fadeInUp;
}

.home-header-warpper {
  width: 100%;
  height: 60px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.home-header-warpper header {
  width: 100%;
  height: 60px;
}

.header-content {
  display: flex;
  width: 1170px;
  height: 100%;
  margin: 0 auto;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.my-custom-logo {
  width: 150px;
  cursor: pointer;
  object-fit: contain;
  flex-shrink: 0;
}

.head-nav {
  height: 100%;
  margin-left: 10px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: 0;
}

.head-nav li {
  position: relative;
  flex: 0 0 auto;
  color: #333333;
  white-space: nowrap;
}

.head-nav li:not(:first-child) {
  margin-left: 28px;
}

.head-nav li:hover,
.head-nav li.active {
  color: var(--primary-color);
}

.login-btn-wrap {
  flex-grow: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.mobile-nav-btn {
  display: none;
  width: 36px;
  min-width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e2ef;
  border-radius: 4px;
  color: #34495e;
  background: #ffffff;
  font-size: 21px;
  line-height: 1;
}

.account-input {
  width: 160px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  color: #000000;
}

.account-input:focus {
  border-color: #2e58ff;
}

.login-btn {
  min-width: 80px;
  max-width: 170px;
  height: 26px;
  line-height: 24px;
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-btn.is-logged-in {
  min-width: 120px;
  color: var(--primary-color);
  background: #ffffff;
  border-color: var(--primary-color);
}

.login-btn.is-logged-in:hover {
  color: #ffffff;
  background: var(--primary-color);
}

.profile-wrap {
  width: 1170px;
  min-height: 900px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
  margin: 0 auto;
  padding: 100px 0 40px;
}

.left-wrap {
  width: 30%;
  min-width: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.right-wrap {
  width: 70%;
  min-height: 760px;
  padding: 30px 40px;
}

.card {
  box-sizing: border-box;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.08);
  transition: transform 0.42s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.user-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  padding: 30px 20px;
}

.account-card {
  align-items: stretch;
  padding: 28px 28px 24px;
}

.avatar-wrap,
.avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: hidden;
}

.avatar-wrap {
  align-self: center;
  padding: 3px;
  border: 1px solid #edf1f7;
  background: #f7faff;
}

.avatar {
  object-fit: cover;
}

.name {
  margin: 14px 0 6px;
  color: #2b323d;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  text-align: center;
}

.account-id {
  max-width: 100%;
  color: #999999;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  word-break: break-all;
}

.account-summary {
  margin-top: 20px;
  border-top: 1px solid #eef1f6;
}

.account-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #eef1f6;
}

.account-row > span {
  flex-shrink: 0;
  color: #5f6b7a;
  font-size: 14px;
}

.account-row strong {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.account-row strong em {
  color: #8a94a3;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}

.storage-row strong {
  max-width: 190px;
  display: block;
  overflow: hidden;
  color: #2b323d;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-right-row {
  align-items: flex-start;
  padding: 13px 0;
}

.product-right-row strong {
  max-width: 178px;
  display: block;
  color: #2b323d;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-align: right;
  overflow-wrap: anywhere;
}

.account_item {
  height: 50px;
  line-height: 50px;
}

.coin {
  color: var(--primary-color);
  font-size: 30px;
  font-weight: 600;
}

.api-state {
  align-self: center;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8a94a3;
  font-size: 12px;
  line-height: 18px;
}

.api-state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #67c23a;
}

.mine-wrap {
  width: 100%;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.mine-wrap .row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: 50px;
  line-height: 50px;
  border: 0;
  border-bottom: 1px solid #eeeeee;
  padding-left: 20px;
  color: #333333;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.mine-wrap .row:hover {
  color: var(--primary-color);
  background: #ffffff;
  box-shadow: none;
}

.mine-wrap .row.active {
  color: var(--primary-color);
}

.nav-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--primary-color);
  font-size: 11px;
  font-weight: 700;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.page-title {
  padding-bottom: 20px;
  border-bottom: 1px solid #eeeeee;
}

.page-title h1 {
  color: #2b323d;
  font-size: 30px;
  font-weight: 600;
  line-height: 42px;
}

.page-title p {
  margin-top: 6px;
  color: #6a6f77;
  line-height: 22px;
}

.stage-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.stage {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  color: #666666;
  background: #ffffff;
}

.stage.active {
  border-color: var(--primary-color);
  color: #ffffff;
  background: var(--primary-color);
}

.area-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #e0e8f2;
  border-radius: 6px;
  background: #f8fbff;
}

.area-toolbar label {
  display: grid;
  gap: 4px;
  min-width: 210px;
  color: #606266;
  font-size: 13px;
}

.area-mode-buttons {
  display: flex;
  gap: 6px;
}

.area-mode-buttons .outline-btn.active {
  color: #ffffff;
  background: var(--primary-color);
}

.area-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 12px;
  min-height: 520px;
}

.area-canvas-wrap {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid #cbd8e6;
  border-radius: 6px;
  background: #101923;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

#areaCanvas {
  display: block;
  width: 100%;
  height: 520px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

#areaCanvas.area-pan-mode {
  cursor: grab;
}

#areaCanvas.area-pan-mode.is-panning {
  cursor: grabbing;
}

#areaCanvas:not(.area-pan-mode) {
  cursor: crosshair;
}

.area-canvas-badge {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(145, 190, 220, 0.42);
  border-radius: 4px;
  background: rgba(16, 25, 35, 0.88);
  color: #d6e3ed;
  font-size: 12px;
  line-height: 18px;
  pointer-events: none;
}

.area-summary {
  padding: 14px;
  border: 1px solid #e6edf5;
  border-radius: 4px;
  background: #fbfdff;
}

.area-summary strong {
  color: #2b323d;
}

.area-selection-summary {
  margin: 12px 0;
  color: var(--primary-color);
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
}

.area-selection-summary span,
.area-selection-summary small {
  display: block;
}

.area-selection-summary small {
  margin-top: 3px;
  color: #e09a22;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.area-summary p {
  color: #6a6f77;
  font-size: 13px;
  line-height: 20px;
}

.area-selection-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  max-height: 300px;
  overflow: auto;
}

.area-selection-item {
  padding: 8px;
  border: 1px solid #e6edf5;
  border-radius: 4px;
  color: #606266;
  font-size: 12px;
  line-height: 18px;
}

.area-selection-item .text-action {
  float: right;
  color: #d35b5b;
}

.area-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.area-viewport-tools {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding-left: 8px;
  border-left: 1px solid #dce6f0;
}

.area-viewport-tools button {
  min-width: 34px;
}

.area-zoom-status {
  min-width: 48px;
  color: #44566b;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.area-display-toggle {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 6px !important;
  min-width: auto !important;
  white-space: nowrap;
  color: #44566b !important;
  cursor: pointer;
}

.area-display-toggle input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--primary-color);
}

#areaCanvas.is-panning,
#areaCanvas.space-pan {
  cursor: grab;
}

#areaCanvas.is-panning {
  cursor: grabbing;
}

.panel {
  padding: 18px 0;
  border-bottom: 1px solid #eeeeee;
}

.panel:last-child {
  border-bottom: 0;
}

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

.panel h2 {
  color: #2b323d;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.panel p {
  margin-top: 4px;
  color: #6a6f77;
  font-size: 14px;
  line-height: 22px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.primary-btn {
  min-width: 130px;
  height: 34px;
  line-height: 32px;
  border-radius: 17px;
  padding: 0 16px;
  font-size: 14px;
}

.outline-btn {
  min-width: 90px;
  height: 30px;
  line-height: 28px;
  border-radius: 15px;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  background: #ffffff;
  padding: 0 12px;
}

.outline-btn:hover {
  color: #ffffff;
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.danger-btn {
  min-width: 54px;
  height: 24px;
  line-height: 22px;
  border-color: var(--danger);
  border-radius: 12px;
  background: var(--danger);
  font-size: 12px;
}

.upload-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.layer-recognition-mode {
  display: flex;
  align-items: center;
  gap: 22px;
  min-inline-size: 0;
  margin: 0 0 12px;
  padding: 8px 12px 10px;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  background: #fbfcfe;
}

.layer-recognition-mode legend {
  padding: 0 5px;
  color: #2b323d;
  font-size: 13px;
  font-weight: 600;
}

.layer-recognition-mode label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #343b46;
  font-size: 13px;
  cursor: pointer;
}

.layer-recognition-mode input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--primary-color);
}

input,
select {
  width: 100%;
  max-height: 40px;
  padding: 9px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  color: #000000;
  background: #ffffff;
  font-size: 14px;
}

input:hover,
select:hover {
  border-color: #bdc2cc;
}

input:focus,
select:focus {
  border-color: #2e58ff;
}

select[multiple] {
  max-height: none;
  min-height: 136px;
}

.notice {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  color: #666666;
  background: #ffffff;
  font-size: 13px;
  line-height: 20px;
}

.notice.empty {
  color: #999999;
}

.notice.error {
  border-color: #fbc4c4;
  color: #f56c6c;
  background: #fef0f0;
}

.hidden {
  display: none;
}

.mapping-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.mapping-item label {
  display: block;
  margin-bottom: 7px;
  color: #333333;
  font-weight: 600;
}

.quote-rule {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #e6f0fb;
  border-radius: 4px;
  background: #f8fbff;
  color: #2b323d;
}

.quote-rule span {
  color: var(--primary-color);
  font-weight: 600;
}

.quote-rule strong {
  font-weight: 600;
}

.quote-rule em {
  grid-column: 2;
  color: #6a6f77;
  font-style: normal;
}

.quote-drawing-title,
.quote-area-value,
.quote-area-source {
  color: #2b323d;
  font-weight: 600;
}

.quote-area-value {
  font-variant-numeric: tabular-nums;
}

.quote-area-source {
  display: block;
  color: #3a7bd5;
  font-weight: 500;
}

.quote-table small {
  display: block;
  max-width: 360px;
  margin-top: 4px;
  color: #e65b5b;
  line-height: 18px;
}

.quote-row-error {
  background: #fffafa;
}

.primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.quote-total {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  color: #2b323d;
  font-weight: 600;
}

.table-box {
  overflow: auto;
  border: 1px solid #ebeef5;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  color: #606266;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #ebeef5;
  border-right: 1px solid #ebeef5;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #909399;
  background: #f5f7fa;
  font-weight: 600;
}

.data-table tr:hover td,
.data-table tr.selected td {
  background: #ecf5ff;
}

.pipe-sizing-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e6ebf1;
}

.compact-head {
  margin-bottom: 10px;
}

.compact-head h3 {
  color: #2b323d;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.compact-head p {
  max-width: 720px;
}

.pipe-sizing-mode-panel {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-items: center;
  column-gap: 28px;
  row-gap: 8px;
  min-inline-size: 0;
  margin: 12px 0;
  padding: 10px 14px 12px;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  background: #fbfcfe;
}

.pipe-sizing-mode-panel legend {
  grid-column: 1 / -1;
  padding: 0 5px;
  color: #2b323d;
  font-size: 13px;
  font-weight: 600;
}

.pipe-sizing-mode-panel label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 28px;
  margin: 0;
  color: #343b46;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.pipe-sizing-mode-option {
  cursor: pointer;
}

.pipe-sizing-mode-panel input[type="radio"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--primary-color);
}

.pipe-sizing-mode-note {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .layer-recognition-mode {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .pipe-sizing-mode-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .pipe-sizing-mode-note {
    grid-column: 1;
  }
}

.pipe-sizing-table-box {
  max-height: 360px;
}

.pipe-sizing-table input {
  width: 116px;
  min-width: 96px;
  padding: 6px 8px;
  font-variant-numeric: tabular-nums;
}

.pipe-sizing-table input:disabled {
  color: #6a6f77;
  background: #f5f7fa;
}

.pipe-sizing-table .text-action {
  color: #2e58ff;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.pipe-sizing-table .text-action:disabled {
  color: #b4b8bf;
  cursor: not-allowed;
}

.compact {
  font-size: 12px;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(390px, 1.1fr) minmax(330px, 0.9fr);
  gap: 16px;
  min-height: 620px;
}

.preview-pane,
.editor-pane {
  min-width: 0;
  border: 1px solid #ebeef5;
  background: #ffffff;
}

.preview-pane iframe {
  width: 100%;
  height: 100%;
  min-height: 620px;
  border: 0;
  background: #ffffff;
}

.editor-pane {
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto auto;
  gap: 12px;
  padding: 12px;
}

.editor-head {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 10px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tabs button {
  min-width: 58px;
  height: 30px;
  line-height: 28px;
  border-radius: 15px;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  background: #ffffff;
}

.tabs button.active {
  color: #ffffff;
  background: var(--primary-color);
}

.model-table-wrap {
  max-height: 390px;
}

.correction-form {
  display: grid;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid #eeeeee;
}

.form-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.form-row.two {
  grid-template-columns: 56px minmax(0, 1fr) 44px minmax(0, 1fr);
}

.form-row label {
  color: #666666;
}

.correction-list {
  display: grid;
  gap: 8px;
  max-height: 170px;
  overflow: auto;
}

.review-page {
  width: min(1680px, calc(100% - 80px));
  margin: 0 auto;
  padding: 84px 0 40px;
}

.review-shell {
  min-height: calc(100vh - 124px);
  padding: 24px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.08);
}

.review-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid #eeeeee;
}

.review-top h1 {
  color: #2b323d;
  font-size: 28px;
  font-weight: 600;
  line-height: 40px;
}

.review-top p {
  margin-top: 4px;
  color: #6a6f77;
  line-height: 22px;
}

.review-stage-strip {
  max-width: 960px;
  margin: 18px 0;
}

.review-page .review-layout {
  grid-template-columns: minmax(760px, 1fr) 430px;
  gap: 18px;
  min-height: calc(100vh - 280px);
}

.review-page .preview-pane,
.review-page .editor-pane {
  border-radius: 4px;
}

.review-page .preview-pane {
  overflow: hidden;
  background: #f5f7fa;
}

.review-page .preview-pane iframe {
  min-height: calc(100vh - 280px);
}

.review-page .editor-pane {
  grid-template-rows: auto minmax(260px, 1fr) auto minmax(120px, auto);
  padding: 14px;
}

.review-page .editor-head {
  grid-template-columns: 1fr;
}

.review-page .tabs {
  gap: 8px;
}

.review-page .tabs button {
  border-radius: 4px;
}

.review-page .model-table-wrap {
  max-height: none;
  min-height: 260px;
}

.correction-item,
.version-item,
.drawing-item {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #eeeeee;
}

.correction-item {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.drawing-item {
  display: block;
}

.drawing-item-head,
.drawing-version-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.drawing-version-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid #edf2f7;
}

.drawing-version-row {
  padding: 8px 10px;
  border: 1px solid #edf2f7;
  border-radius: 4px;
  background: #fbfdff;
}

.correction-item p,
.version-item p,
.drawing-item p {
  color: #6a6f77;
  line-height: 20px;
}

.tag-row,
.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  color: #337ab7;
  background: #ecf5ff;
  font-size: 12px;
}

.tag.good {
  color: #67c23a;
  background: #f0f9eb;
}

.tag.warn {
  color: #e6a23c;
  background: #fdf6ec;
}

.version-list {
  display: grid;
  gap: 10px;
}

.version-list.small {
  max-height: 360px;
  overflow: auto;
}

.item-actions a,
.item-actions button {
  min-width: 80px;
  height: 26px;
  line-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-color);
  border-radius: 13px;
  color: var(--primary-color);
  background: #ffffff;
  padding: 0 10px;
  font-size: 12px;
}

.item-actions a:hover,
.item-actions button:hover {
  color: #ffffff;
  background: var(--primary-color);
}

.item-actions .danger-btn {
  border-color: var(--danger);
  color: var(--danger);
  background: #ffffff;
}

.item-actions .danger-btn:hover {
  color: #ffffff;
  background: var(--danger);
  border-color: var(--danger);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  max-width: min(460px, calc(100vw - 48px));
  display: none;
  padding: 12px 16px;
  border-radius: 4px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.78);
  box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.08);
  line-height: 22px;
}

.toast.show {
  display: block;
}

@media (max-width: 1199px) {
  body {
    min-width: auto;
  }

  .header-content,
  .profile-wrap {
    width: 96%;
  }

  .profile-wrap {
    gap: 24px;
  }
}

@media (max-width: 960px) {
  .head-nav li:not(:first-child) {
    margin-left: 20px;
  }

  .stage-strip {
    grid-template-columns: 1fr;
  }

  .quote-rule {
    grid-template-columns: 1fr;
  }

  .quote-rule em {
    grid-column: auto;
  }

  .area-workspace {
    grid-template-columns: 1fr;
  }

  .area-canvas-wrap,
  #areaCanvas {
    min-height: 420px;
    height: 420px;
  }

  .profile-wrap {
    flex-direction: column;
  }

  .left-wrap,
  .right-wrap {
    width: 100%;
  }

  .material-search,
  .material-layout,
  .material-card {
    grid-template-columns: 1fr;
  }

  .material-side {
    position: static;
  }

  .review-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-content {
    position: relative;
    width: 100%;
    padding: 0 12px;
    gap: 8px;
  }

  .my-custom-logo {
    width: 120px;
  }

  .login-btn-wrap {
    min-width: 0;
  }

  .login-btn.is-logged-in {
    width: 100%;
    min-width: 0;
    max-width: 110px;
  }

  .mobile-nav-btn {
    display: flex;
  }

  .head-nav {
    position: absolute;
    top: 60px;
    left: 0;
    display: none;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 8px 12px;
    flex-direction: column;
    align-items: stretch;
    line-height: 42px;
    border-top: 1px solid #edf0f5;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(30, 52, 76, 0.12);
  }

  .home-header-warpper.mobile-nav-open .head-nav {
    display: flex;
  }

  .head-nav li,
  .head-nav li:not(:first-child) {
    width: 100%;
    margin-left: 0;
  }

  .head-nav a {
    display: block;
    padding: 0 12px;
  }

  .profile-wrap {
    width: 100%;
    gap: 20px;
    padding: 76px 8px 32px;
  }

  .left-wrap {
    min-width: 0;
  }

  .right-wrap {
    min-height: 0;
    padding: 22px 16px;
  }
}

.page-view {
  display: none;
}

.page-view.active {
  display: block;
}

.page-view.profile-wrap.active {
  display: flex;
}

.banner-wrap {
  position: relative;
  width: 100%;
  background: #ffffff;
}

.banner-wrap .bg-wrap {
  position: relative;
  width: 100%;
  height: 750px;
  overflow: hidden;
}

.banner-wrap .bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  outline: none !important;
  mix-blend-mode: darken;
}

.banner-wrap .content-wrap {
  position: absolute;
  top: 310px;
  left: 0;
  width: 100%;
  z-index: 10;
}

.banner-wrap .content-container {
  width: 1170px;
  margin: 0 auto;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.slogan-text {
  margin: 10px 0;
  font-family: PingFangSC, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 40px;
  font-weight: 600;
  color: #2b323d;
  line-height: 56px;
}

.sub-slogn-text {
  margin-bottom: 30px;
  font-family: PingFangSC, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #2b323d;
  line-height: 28px;
}

.banner-wrap .btn {
  width: 128px;
  height: 40px;
  line-height: 38px;
  border-radius: 4px;
  border: 1px solid var(--primary-color);
  background-color: var(--primary-color);
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  margin-right: 30px;
}

.banner-wrap .btn.outline {
  color: var(--primary-color);
  background: #ffffff;
}

.home-section-feature,
.home-section-advantage {
  background: #ffffff;
}

.feature-content-wrap,
.advantage-content-wrap {
  width: 1170px;
  margin: 0 auto;
}

.h2-title-wrap {
  padding: 80px 0 14px;
  font-family: PingFangSC, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  color: #2b323d;
  line-height: 50px;
}

.home-section-feature .h2-title-wrap {
  padding-bottom: 90px;
}

.h2-sub-title-wrap {
  padding-bottom: 40px;
  font-size: 16px;
  text-align: center;
  color: #6a6f77;
  line-height: 22px;
}

.feature-row {
  width: 100%;
  min-height: 430px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 150px;
}

.feature-row.reverse {
  margin-bottom: 170px;
}

.feature-text-wrap {
  text-align: left;
}

.feature-h3-wrap {
  margin-bottom: 20px;
  font-family: PingFangSC, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: #2b323d;
  line-height: 50px;
}

.feature-sub-h3-wrap {
  min-height: 64px;
  margin-bottom: 20px;
  font-size: 16px;
  color: #6a6f77;
  line-height: 32px;
  text-align: left;
}

.feature-sub-h3-wrap span {
  display: block;
  position: relative;
  padding-left: 14px;
}

.feature-sub-h3-wrap span::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  top: 14px;
  left: 0;
}

.feature-img-wrap {
  width: 740px;
  object-fit: contain;
}

.feature-analyReport {
  width: 532px;
}

.text-action {
  min-width: 92px;
  height: 22px;
  line-height: 22px;
  border: 0;
  color: var(--primary-color);
  background: transparent;
  text-align: left;
  padding: 0 20px 0 0;
  position: relative;
  font-size: 16px;
}

.text-action::after {
  content: "";
  width: 13px;
  height: 13px;
  background: url("/web/assets/images/right-arrow.png") center / contain no-repeat;
  position: absolute;
  right: 0;
  top: 5px;
}

.text-action:hover {
  color: var(--primary-color);
  background: transparent;
  box-shadow: none;
}

.aboutus-detail-wrap {
  padding-bottom: 80px;
}

.aboutus-row {
  display: flex;
  justify-content: space-between;
}

.aboutus-row.second {
  margin-top: 50px;
}

.aboutus-items {
  width: 390px;
  text-align: center;
}

.aboutus-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 10px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.more-strong {
  background-image: url("/web/assets/images/home-aboutus-1.png");
}

.more-reliable {
  background-image: url("/web/assets/images/home-aboutus-2.png");
}

.more-smart {
  background-image: url("/web/assets/images/home-aboutus-3.png");
}

.more-security {
  background-image: url("/web/assets/images/home-aboutus-4.png");
}

.more-easy {
  background-image: url("/web/assets/images/home-aboutus-5.png");
}

.more-convenient {
  background-image: url("/web/assets/images/home-aboutus-6.png");
}

.aboutus-h3-wrap {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 550;
  color: #2b323d;
  line-height: 22px;
}

.aboutus-sub-h3-wrap {
  font-size: 14px;
  color: #6a6f77;
  line-height: 20px;
}

.home-section-footer {
  background-color: #2b323d;
}

.footer-first-floor {
  width: 1170px;
  margin: 0 auto;
  justify-content: space-between;
}

.footer-aboutus-wrap {
  width: 270px;
  text-align: left;
}

.footer-contactus-wrap {
  width: 460px;
  text-align: left;
}

.footer-followus-wrap {
  flex-grow: 1;
  text-align: left;
}

.footer-h3-wrap {
  margin: 60px 0 10px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  color: #ffffff;
  line-height: 22px;
}

.footer-sub-h3-wrap {
  opacity: 0.5;
  display: block;
  font-size: 14px;
  color: #ffffff;
  line-height: 28px;
}

.footer-sub-h3-wrap.no-hover {
  display: flex;
  align-items: center;
}

.contactus-icon {
  width: 16px;
  height: 16px;
  margin: auto 6px auto 0;
  background-size: cover;
  background-repeat: no-repeat;
}

.contactus-icon.address {
  background-image: url("/web/assets/images/home-footer-address.png");
}

.contactus-icon.email {
  background-image: url("/web/assets/images/home-footer-email.png");
}

.contactus-icon.wechat {
  background-image: url("/web/assets/images/home-footer-wechat.png");
}

.wechart-qrcode {
  width: 72px;
  height: 72px;
  margin-top: 8px;
  background-color: #ffffff;
  text-align: center;
}

.wechart-qrcode img {
  width: 66px;
  height: 66px;
  margin-top: 3px;
}

.border-wrap {
  width: 100%;
  height: 0;
  opacity: 0.05;
  border-top: 1px solid #ffffff;
}

.footer-second-floor {
  width: 1170px;
  margin: 0 auto;
}

.footer-second-text {
  display: block;
  padding: 10px;
  opacity: 0.5;
  font-size: 12px;
  text-align: center;
  color: #ffffff;
  line-height: 17px;
}

.content-page {
  width: 1170px;
  min-height: calc(100vh - 60px);
  margin: 0 auto;
  padding: 100px 0 60px;
}

.content-card {
  padding: 40px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.08);
}

.content-card h1 {
  font-size: 36px;
  font-weight: 600;
  color: #2b323d;
  line-height: 50px;
}

.content-subtitle {
  margin-top: 10px;
  color: #6a6f77;
  font-size: 16px;
  line-height: 28px;
}

.client-download-page {
  min-height: calc(100vh - 60px);
  padding: 96px 24px 72px;
  background: #f5f8fc;
}

.client-download-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.7fr);
  gap: 44px;
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: start;
}

.client-download-copy {
  padding: 12px 0;
}

.client-heading-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  color: #ffffff;
  background: #287bf5;
  box-shadow: 0 7px 15px rgba(40, 123, 245, 0.22);
  font-size: 20px;
  font-weight: 800;
}

.client-heading-row small {
  display: block;
  margin-top: 3px;
  color: #8391a4;
  font-size: 12px;
}

.client-platform {
  display: inline-block;
  color: #1a63c6;
  font-size: 13px;
  font-weight: 700;
}

.client-download-copy h1 {
  max-width: 700px;
  margin-top: 26px;
  color: #17263a;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.client-download-copy > p {
  max-width: 720px;
  margin-top: 20px;
  color: #5e6d81;
  font-size: 16px;
  line-height: 1.8;
}

.client-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.client-edition-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.client-edition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  min-height: 168px;
  padding: 24px 26px;
  align-items: center;
  border: 1px solid #dbe6f4;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(41, 82, 132, 0.07);
}

.client-edition-copy {
  min-width: 0;
}

.client-edition-copy strong {
  display: block;
}

.client-release-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #62738a;
  font-size: 12px;
  font-weight: 700;
}

.client-release-label b {
  margin-left: 4px;
  font-weight: 700;
}

.client-release-label b.is-allowed {
  color: #168354;
}

.client-release-label b.is-blocked {
  color: #bd6a18;
}

.client-release-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #27a36a;
}

.client-edition-copy strong {
  margin-top: 11px;
  color: #1d2c40;
  font-size: 21px;
}

.client-edition-copy p {
  max-width: 600px;
  margin-top: 8px;
  color: #738197;
  font-size: 13px;
  line-height: 1.65;
}

.client-download-primary,
.client-download-secondary {
  display: inline-flex;
  min-height: 46px;
  padding: 0 21px;
  align-items: center;
  justify-content: center;
  border: 1px solid #287bf5;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
}

.client-download-primary {
  color: #ffffff;
  background: #287bf5;
  white-space: nowrap;
}

.client-download-primary:hover {
  border-color: #1b68d9;
  background: #1b68d9;
}

.client-download-primary.wps {
  border-color: #287bf5;
  background: #287bf5;
}

.client-download-primary.wps:hover {
  border-color: #1b68d9;
  background: #1b68d9;
}

.client-download-primary:disabled {
  border-color: #b9c9dd;
  color: #ffffff;
  background: #b9c9dd;
  cursor: not-allowed;
}

.client-download-secondary {
  color: #287bf5;
  background: transparent;
}

.client-download-secondary:hover {
  background: #eef5ff;
}

.client-release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-top: 14px;
  color: #7c8ca2;
  font-size: 12px;
}

.client-access-hint {
  min-height: 22px;
  margin-top: 14px !important;
  color: #64748a !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.client-install-panel {
  padding: 30px 28px 24px;
  border: 1px solid #d9e5f3;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(41, 82, 132, 0.09);
}

.client-panel-kicker {
  color: #287bf5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.client-install-panel h2 {
  margin-top: 7px;
  color: #1d2c40;
  font-size: 24px;
  line-height: 1.3;
}

.client-install-panel ol {
  display: grid;
  gap: 0;
  margin-top: 16px;
  counter-reset: client-step;
}

.client-install-panel li {
  position: relative;
  min-height: 82px;
  padding: 18px 0 15px 48px;
  border-top: 1px solid #edf1f6;
  counter-increment: client-step;
}

.client-install-panel li::before {
  content: counter(client-step);
  position: absolute;
  top: 18px;
  left: 0;
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: #287bf5;
  font-size: 13px;
  font-weight: 700;
}

.client-install-panel li strong,
.client-install-panel li span {
  display: block;
}

.client-install-panel li strong {
  color: #25364c;
  font-size: 15px;
}

.client-install-panel li span {
  margin-top: 4px;
  color: #74849a;
  font-size: 13px;
  line-height: 1.65;
}

.client-panel-foot {
  padding-top: 16px;
  border-top: 1px solid #edf1f6;
  color: #74849a;
  font-size: 12px;
  line-height: 1.6;
}

.client-panel-foot strong,
.client-panel-foot small {
  display: block;
}

.client-panel-foot strong {
  margin-top: 3px;
  color: #25364c;
  font-size: 13px;
}

.client-panel-foot small {
  margin-top: 3px;
  font-size: 12px;
}

@media (max-width: 860px) {
  .client-download-page {
    padding: 76px 16px 40px;
  }

  .client-download-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .client-download-copy {
    padding: 12px 0;
  }

  .client-download-copy h1 {
    font-size: 35px;
  }

  .client-download-copy > p {
    font-size: 16px;
  }

  .client-edition {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .client-download-primary.wps {
    width: max-content;
  }
}

@media (max-width: 480px) {
  .client-download-actions,
  .client-edition .client-download-primary,
  .client-download-primary,
  .client-download-secondary {
    width: 100%;
  }

  .client-download-copy h1 {
    font-size: 29px;
  }

  .client-install-panel {
    padding: 20px;
  }
}

.member-tools-page {
  min-height: calc(100vh - 60px);
  padding: 96px 24px 72px;
  background: #f5f8fc;
}

.member-tools-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.member-tools-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
}

.member-tools-heading > div:first-child > span {
  color: #287bf5;
  font-size: 13px;
  font-weight: 800;
}

.member-tools-heading h1 {
  margin-top: 8px;
  color: #17263a;
  font-size: 38px;
  line-height: 1.2;
}

.member-tools-heading p {
  max-width: 720px;
  margin-top: 12px;
  color: #66758a;
  font-size: 15px;
  line-height: 1.75;
}

.member-tools-rights {
  min-width: 210px;
  padding: 15px 18px;
  border: 1px solid #d8e5f5;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(41, 82, 132, 0.06);
}

.member-tools-rights span {
  display: block;
  color: #718197;
  font-size: 12px;
}

.member-tools-rights strong {
  display: block;
  margin-top: 7px;
  color: #1d2c40;
  font-size: 15px;
}

.member-tools-rights strong.is-allowed,
.member-tool-status.is-allowed {
  color: #168354;
}

.member-tools-rights strong.is-blocked,
.member-tool-status.is-blocked {
  color: #b7651b;
}

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

.member-tool-card {
  display: flex;
  min-height: 430px;
  padding: 26px;
  flex-direction: column;
  border: 1px solid #dbe6f4;
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 13px 30px rgba(41, 82, 132, 0.07);
}

.member-tool-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: #287bf5;
  box-shadow: 0 9px 18px rgba(40, 123, 245, 0.2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.member-tool-icon.scan {
  background: #1b68d9;
}

.member-tool-copy {
  margin-top: 20px;
}

.member-tool-label {
  color: #287bf5;
  font-size: 12px;
  font-weight: 800;
}

.member-tool-copy h2 {
  margin-top: 7px;
  color: #1d2c40;
  font-size: 23px;
  line-height: 1.35;
}

.member-tool-copy p {
  margin-top: 9px;
  color: #68788e;
  font-size: 13px;
  line-height: 1.72;
}

.member-tool-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-top: 24px;
}

.member-tool-form label {
  display: grid;
  gap: 7px;
  color: #586a80;
  font-size: 12px;
  font-weight: 700;
}

.member-tool-form label:first-child {
  grid-column: 1 / -1;
}

.member-tool-form input[type="file"],
.member-tool-form select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #cbd9e9;
  border-radius: 6px;
  color: #34495e;
  background: #fbfdff;
}

.member-tool-primary {
  min-height: 43px;
  padding: 0 17px;
  border: 1px solid #287bf5;
  border-radius: 6px;
  color: #ffffff;
  background: #287bf5;
  font-weight: 700;
}

.member-tool-primary:hover {
  border-color: #1b68d9;
  background: #1b68d9;
}

.member-tool-primary:disabled {
  border-color: #b9c9dd;
  background: #b9c9dd;
  cursor: not-allowed;
}

.member-tool-form .member-tool-primary {
  grid-column: 1 / -1;
  justify-self: start;
}

.member-tool-status {
  min-height: 24px;
  margin-top: 16px;
  color: #697a90;
  font-size: 13px;
  line-height: 1.6;
}

.member-tool-status.is-busy {
  color: #287bf5;
}

.member-tool-download {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  margin-top: 13px;
  padding: 0 14px;
  align-items: center;
  border: 1px solid #287bf5;
  border-radius: 6px;
  color: #287bf5;
  font-size: 13px;
  font-weight: 700;
}

.member-tool-download:hover {
  color: #ffffff;
  background: #287bf5;
}

.member-tool-download.hidden {
  display: none;
}

.member-tool-requirements {
  display: grid;
  gap: 7px;
  margin-top: 23px;
  padding: 13px 14px;
  border: 1px solid #e1eaf4;
  border-radius: 7px;
  color: #68788e;
  background: #f8fbff;
  font-size: 12px;
}

.member-tool-release {
  display: flex;
  margin-top: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.member-tool-release > div {
  min-width: 0;
}

.member-tool-release span {
  display: block;
  overflow: hidden;
  color: #1d2c40;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-tool-release small {
  display: block;
  margin-top: 6px;
  color: #8391a4;
  font-size: 12px;
}

@media (max-width: 900px) {
  .member-tools-heading {
    display: block;
  }

  .member-tools-rights {
    margin-top: 18px;
  }

  .member-tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .member-tools-page {
    padding-right: 15px;
    padding-left: 15px;
  }

  .member-tools-heading h1 {
    font-size: 31px;
  }

  .member-tool-card {
    padding: 20px;
  }

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

  .member-tool-release {
    display: block;
  }

  .member-tool-release .member-tool-primary {
    width: 100%;
    margin-top: 13px;
  }
}

.vip-page {
  min-height: calc(100vh - 60px);
  padding: 120px 0 70px;
  background: #ffffff;
}

.vip-hero {
  width: min(1170px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}

.vip-hero h1 {
  margin-bottom: 18px;
  color: #2b323d;
  font-size: 44px;
  font-weight: 700;
  line-height: 58px;
}

.vip-hero > p {
  max-width: 680px;
  margin: 0 auto;
  color: #6a7280;
  font-size: 18px;
  line-height: 30px;
}

.vip-current-rights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
  border: 1px solid #e4e9ef;
  border-radius: 8px;
  background: #f8fafb;
  text-align: left;
}

.vip-current-rights > div {
  min-width: 0;
  padding: 18px 22px;
}

.vip-current-rights > div + div {
  border-left: 1px solid #e4e9ef;
}

.vip-current-rights span,
.vip-current-rights strong {
  display: block;
}

.vip-current-rights span {
  color: #788391;
  font-size: 13px;
  line-height: 20px;
}

.vip-current-rights strong {
  margin-top: 4px;
  color: #28323c;
  font-size: 15px;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.vip-product-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(720px, 100%);
  margin: 34px auto 0;
  border: 1px solid #dce3ea;
  border-radius: 6px;
  overflow: hidden;
}

.vip-product-tabs button {
  min-width: 0;
  min-height: 48px;
  padding: 9px 12px;
  border: 0;
  border-radius: 0;
  color: #596574;
  background: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.vip-product-tabs button + button {
  border-left: 1px solid #dce3ea;
}

.vip-product-tabs button.active {
  color: #ffffff;
  background: #1d70e8;
}

.vip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 30px;
  text-align: left;
}

.vip-grid .wide {
  grid-column: 1 / -1;
}

.vip-item {
  position: relative;
  min-height: 520px;
  padding: 44px 36px 34px;
  overflow: hidden;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 10px 32px rgba(24, 39, 75, 0.08);
}

.vip-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 106px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 8px 0 14px;
  color: #1d5ea8;
  background: #e8f1ff;
  font-size: 16px;
}

.vip-item.warm .vip-badge {
  color: #8a5a14;
  background: #fff3df;
}

.vip-item.annual .vip-badge {
  color: #a4434e;
  background: #ffedef;
}

.vip-item.inactive .vip-badge {
  color: #66717e;
  background: #eef1f4;
}

.vip-item.inactive .vip-buy {
  color: #ffffff;
  background: #a7b0bb;
  border-color: #a7b0bb;
}

.vip-item.inactive {
  box-shadow: 0 10px 28px rgba(24, 39, 75, 0.05);
}

.vip-item h2 {
  min-height: 42px;
  margin-bottom: 18px;
  color: #2b323d;
  font-size: 30px;
  font-weight: 700;
  line-height: 42px;
}

.vip-desc {
  min-height: 76px;
  color: #5f6b7a;
  font-size: 16px;
  line-height: 28px;
}

.vip-price {
  margin: 32px 0 4px;
  color: #2b323d;
}

.vip-price strong {
  font-size: 34px;
  line-height: 44px;
}

.vip-price .pending {
  color: #6a7280;
  font-size: 28px;
}

.vip-price span {
  margin-left: 6px;
  color: #4d5968;
  font-size: 16px;
}

.vip-original {
  min-height: 24px;
  color: #8a94a3;
  font-size: 14px;
  line-height: 24px;
  text-decoration: line-through;
}

.vip-buy {
  width: 100%;
  height: 48px;
  margin-top: 10px;
  border: 1px solid #1d70e8;
  border-radius: 4px;
  color: #ffffff;
  background: #1d70e8;
  font-size: 18px;
  font-weight: 600;
}

.vip-buy:not(:disabled):hover {
  border-color: #155fc8;
  background: #155fc8;
}

.vip-buy:disabled {
  cursor: not-allowed;
}

.vip-features {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.vip-features li {
  position: relative;
  padding-left: 34px;
  color: #596778;
  font-size: 16px;
  line-height: 24px;
}

.vip-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #22b573;
  font-size: 22px;
  line-height: 24px;
}

@media (max-width: 900px) {
  .vip-page {
    padding-top: 92px;
  }

  .vip-grid {
    grid-template-columns: 1fr;
  }

  .vip-item {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .vip-hero h1 {
    font-size: 32px;
    line-height: 42px;
  }

  .vip-hero > p {
    font-size: 15px;
    line-height: 25px;
  }

  .vip-current-rights {
    grid-template-columns: 1fr;
  }

  .vip-current-rights > div + div {
    border-top: 1px solid #e4e9ef;
    border-left: 0;
  }

  .vip-product-tabs {
    grid-template-columns: 1fr;
  }

  .vip-product-tabs button + button {
    border-top: 1px solid #dce3ea;
    border-left: 0;
  }

  .vip-item {
    padding: 40px 24px 28px;
  }

  .vip-item h2 {
    padding-right: 72px;
    font-size: 24px;
    line-height: 34px;
  }
}

.help-list {
  margin-top: 30px;
}

.help-list article {
  padding: 20px 0;
  border-bottom: 1px solid #eeeeee;
  text-align: left;
}

.help-list h2 {
  margin-bottom: 8px;
  font-size: 20px;
  color: #2b323d;
}

.help-list p {
  color: #6a6f77;
  line-height: 24px;
}

.help-list .wide {
  width: 100%;
}

.help-list li {
  color: #6a6f77;
  line-height: 24px;
}

.help-doc-body {
  margin-top: 12px;
}

.help-doc-body h1,
.help-doc-body h2,
.help-doc-body h3,
.help-doc-body h4 {
  margin: 14px 0 8px;
  color: #2b323d;
  line-height: 1.5;
}

.help-doc-body ul,
.help-doc-body ol {
  margin: 8px 0 0 24px;
}

.help-doc-body code {
  padding: 2px 5px;
  border-radius: 3px;
  background: #f2f5fb;
}

.help-doc-body img {
  display: block;
  max-width: 100%;
  margin-top: 10px;
}

.blog-page,
.blog-detail-page {
  min-height: calc(100vh - 60px);
  padding: 92px 0 60px;
  background: #f4f6f8;
}

.blog-shell,
.blog-detail-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.blog-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  padding: 0 0 26px;
  border-bottom: 1px solid #dfe4ea;
}

.blog-page-head > div > span,
.blog-detail-head > span {
  color: #bd7a13;
  font-size: 13px;
  font-weight: 600;
}

.blog-page-head h1 {
  margin-top: 7px;
  color: #202733;
  font-size: 34px;
  line-height: 44px;
}

.blog-page-head p {
  margin-top: 8px;
  color: #697482;
  font-size: 14px;
  line-height: 24px;
}

.blog-search-form {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto auto;
  gap: 8px;
}

.blog-search-form input,
.blog-search-form button {
  height: 40px;
}

.blog-search-form input {
  padding: 0 12px;
  border: 1px solid #cfd6df;
  border-radius: 4px;
  background: #ffffff;
}

.blog-search-form button {
  padding: 0 18px;
  border: 1px solid #2878c7;
  border-radius: 4px;
  color: #ffffff;
  background: #2878c7;
}

.blog-search-form .plain-blog-button {
  color: #586473;
  border-color: #cfd6df;
  background: #ffffff;
}

.blog-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0 14px;
}

.blog-category-tabs button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #d7dde5;
  border-radius: 4px;
  color: #586473;
  background: #ffffff;
}

.blog-category-tabs button.active {
  color: #ffffff;
  border-color: #2878c7;
  background: #2878c7;
}

.blog-result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  color: #8a94a3;
  font-size: 13px;
}

.blog-result-line strong {
  color: #394454;
  font-size: 14px;
}

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

.blog-card {
  min-width: 0;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid #dfe4ea;
  border-radius: 6px;
  background: #ffffff;
}

.blog-card.featured {
  border-top: 3px solid #d7a332;
  padding-top: 20px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8993a0;
  font-size: 12px;
}

.blog-card-meta strong {
  overflow: hidden;
  color: #2878c7;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-card h2 {
  margin-top: 16px;
  color: #222a35;
  font-size: 20px;
  line-height: 30px;
}

.blog-card p {
  max-height: 72px;
  margin-top: 10px;
  overflow: hidden;
  color: #687383;
  font-size: 14px;
  line-height: 24px;
}

.blog-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  color: #8a94a3;
  font-size: 12px;
}

.blog-card footer button {
  height: auto;
  padding: 0;
  border: 0;
  color: #2878c7;
  background: transparent;
}

.blog-empty {
  grid-column: 1 / -1;
  padding: 48px 20px;
  border: 1px dashed #cfd6df;
  color: #7a8492;
  background: #ffffff;
  text-align: center;
}

.blog-detail-shell {
  max-width: 900px;
  padding: 0 42px 56px;
  border: 1px solid #dfe4ea;
  background: #ffffff;
}

.blog-back-button {
  height: 44px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  color: #2878c7;
  background: transparent;
}

.blog-detail-head {
  padding: 34px 0 28px;
  border-bottom: 1px solid #e5e9ee;
}

.blog-detail-head h1 {
  margin-top: 10px;
  color: #202733;
  font-size: 32px;
  line-height: 46px;
}

.blog-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  color: #8a94a3;
  font-size: 13px;
}

.blog-detail-excerpt {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 3px solid #d7a332;
  color: #596575;
  background: #f7f8fa;
  font-size: 14px;
  line-height: 24px;
}

.blog-detail-excerpt:empty {
  display: none;
}

.blog-detail-body {
  padding: 28px 0 0;
  color: #3c4654;
  font-size: 15px;
  line-height: 28px;
}

.blog-detail-body p + p {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .blog-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .blog-search-form {
    grid-template-columns: 1fr auto auto;
  }

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

@media (max-width: 620px) {
  .blog-page,
  .blog-detail-page {
    padding-top: 76px;
  }

  .blog-shell,
  .blog-detail-shell {
    width: min(100% - 24px, 1160px);
  }

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

  .blog-search-form input {
    grid-column: 1 / -1;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-detail-shell {
    padding: 0 20px 40px;
  }

  .blog-detail-head h1 {
    font-size: 26px;
    line-height: 38px;
  }
}

.material-shell {
  box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.08);
}

.material-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid #eeeeee;
}

.material-count {
  min-width: 110px;
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 600;
  text-align: right;
}

.material-search {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 150px 110px 90px;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}

.material-search input,
.material-search select {
  height: 38px;
}

.material-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 24px;
}

.material-category-filters button {
  min-width: auto;
  height: 30px;
  line-height: 28px;
  padding: 0 14px;
  border-radius: 15px;
  color: #4d5968;
  border-color: #e3e8ef;
  background: #ffffff;
}

.material-category-filters button:hover,
.material-category-filters button.active {
  color: #ffffff;
  border-color: var(--primary-color);
  background: var(--primary-color);
}

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

.material-grid {
  display: grid;
  gap: 14px;
}

.material-grid .wide {
  width: 100%;
}

.material-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid #edf1f7;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.material-card:hover,
.material-card.selected {
  border-color: var(--primary-color);
  box-shadow: 0 8px 22px rgba(26, 120, 255, 0.12);
}

.material-file-mark {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, #1a78ff, #21b573);
  font-size: 18px;
  font-weight: 700;
}

.material-card-body {
  min-width: 0;
}

.material-card-body h2 {
  overflow: hidden;
  color: #2b323d;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-card-body p {
  min-height: 22px;
  margin-top: 4px;
  overflow: hidden;
  color: #6a6f77;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.material-tag-row span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 11px;
  color: #337ab7;
  background: #ecf5ff;
  font-size: 12px;
}

.material-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.material-card-foot strong {
  color: #f35d6b;
  font-size: 20px;
}

.material-card-foot em {
  color: #8a94a3;
  font-size: 12px;
  font-style: normal;
}

.material-side {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 18px;
}

.material-detail,
.material-downloads {
  padding: 18px;
  border: 1px solid #edf1f7;
  border-radius: 8px;
  background: #fbfcff;
}

.material-detail-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.material-detail-head > span {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #ffffff;
  background: var(--primary-color);
  font-size: 13px;
  font-weight: 700;
}

.material-detail h2,
.material-downloads h2 {
  color: #2b323d;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.material-detail p {
  margin-top: 3px;
  color: #6a6f77;
  line-height: 20px;
}

.material-detail-desc {
  min-height: 90px;
  margin-top: 16px;
  color: #4d5968;
  line-height: 24px;
  white-space: pre-wrap;
}

.material-detail-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 16px;
}

.material-detail-price strong {
  color: #f35d6b;
  font-size: 28px;
  line-height: 36px;
}

.material-detail-price span {
  color: #e6a23c;
}

.material-actions {
  margin-top: 18px;
  justify-content: flex-start;
}

.material-downloads .table-box {
  max-height: 260px;
  margin-top: 12px;
}

.material-market-page {
  min-height: calc(100vh - 60px);
  padding: 60px 0 56px;
  background: #f3f5f8;
}

/* Course marketplace: keep the same restrained blue/white language as the material store. */
.course-market-page {
  min-height: calc(100vh - 60px);
  padding: 60px 0 56px;
  background: #f3f5f8;
}

.course-market-head {
  border-bottom: 1px solid #e5e9f0;
  background: #ffffff;
}

.course-market-head-inner,
.course-market-shell {
  width: 1170px;
  margin: 0 auto;
}

.course-market-head-inner {
  padding: 28px 0 26px;
}

.course-market-head h1 {
  color: #202733;
  font-size: 30px;
  font-weight: 600;
  line-height: 40px;
}

.course-market-head p {
  margin-top: 6px;
  color: #667282;
  font-size: 14px;
  line-height: 22px;
}

.course-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 70px;
  width: 620px;
  height: 42px;
  margin-top: 20px;
  border: 2px solid var(--primary-color);
  background: #ffffff;
}

.course-search-form input,
.course-search-form button {
  min-width: 0;
  height: 38px;
  border: 0;
  border-right: 1px solid #dfe6f1;
  border-radius: 0;
}

.course-search-form input {
  padding: 0 12px;
  color: #303844;
  outline: none;
}

.course-search-form button:last-child {
  border-right: 0;
  color: #4e5969;
  background: #f5f7fb;
}

.course-market-shell {
  margin-top: 18px;
}

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

.course-list-head h2 {
  color: #202733;
  font-size: 19px;
  font-weight: 600;
  line-height: 28px;
}

.course-list-head span {
  color: #f08225;
  font-size: 14px;
  font-weight: 600;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.course-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d9e5f3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(35, 91, 148, 0.04);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.course-card:hover {
  border-color: #a8c9ee;
  box-shadow: 0 10px 24px rgba(35, 91, 148, 0.12);
  transform: translateY(-2px);
}

.course-card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  flex: 0 0 156px;
  height: 156px;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #edf3fa;
  cursor: pointer;
}

.course-card-cover:hover {
  box-shadow: none;
}

.course-card-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.course-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  color: #2d6fae;
  background: linear-gradient(135deg, #e8f2ff, #f6faff);
  text-align: center;
}

.course-image-fallback strong {
  font-size: 34px;
  font-weight: 700;
}

.course-image-fallback span {
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-card-body {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 68px;
  padding: 15px 18px 10px;
}

.course-card h3,
.course-card h3 button {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: #202733;
  background: transparent;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  text-align: left;
}

.course-card h3 button {
  width: 100%;
  overflow: hidden;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: normal;
}

.course-card h3 button:hover {
  color: var(--primary-color);
  background: transparent;
  box-shadow: none;
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  margin-top: auto;
  padding: 10px 18px 16px;
  border-top: 1px solid #edf2f8;
}

.course-card-footer strong {
  color: #e87922;
  font-size: 20px;
  line-height: 26px;
}

.course-card-footer span {
  color: #7c8796;
  font-size: 13px;
  line-height: 26px;
}

.course-card-footer button,
.course-order-actions button,
.course-order-actions a,
.course-delivery-actions button,
.course-delivery-actions a {
  min-width: 84px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #b8d5fb;
  border-radius: 3px;
  color: #1769c2;
  background: #ffffff;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}

.course-card-footer button:hover,
.course-order-actions button:hover,
.course-order-actions a:hover,
.course-delivery-actions button:hover,
.course-delivery-actions a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #f4f9ff;
  box-shadow: none;
}

.course-card-footer button:disabled {
  border-color: #e2e7ee;
  color: #a3acb8;
  background: #f5f7fa;
  cursor: not-allowed;
}

.owned-course-section {
  margin-top: 28px;
}

.course-order-list {
  display: grid;
  gap: 10px;
}

.course-order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid #e2e7ee;
  background: #ffffff;
}

.course-order-main,
.course-order-secret {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.course-order-main > span,
.course-order-secret > span {
  color: #8a94a3;
  font-size: 12px;
}

.course-order-main h3 {
  overflow: hidden;
  color: #202733;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-order-main small {
  overflow: hidden;
  color: #8a94a3;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-order-secret code,
.course-delivery-panel code {
  display: block;
  overflow-wrap: anywhere;
  padding: 8px 10px;
  border: 1px dashed #b8d5fb;
  color: #1769c2;
  background: #f4f9ff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
}

.course-order-actions,
.course-delivery-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.course-delivery-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid #b8d5fb;
  background: #f4f9ff;
}

.course-delivery-panel > div:first-child {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.course-delivery-panel > div:first-child > span {
  color: #1769c2;
  font-size: 14px;
  font-weight: 600;
}

.course-delivery-panel p {
  margin: 0;
  color: #667282;
  font-size: 12px;
  line-height: 19px;
  white-space: pre-wrap;
}

.course-product-page {
  padding-top: 60px;
}

.course-product-hero .course-image-fallback {
  min-height: 100%;
}

@media (max-width: 1180px) {
  .course-market-head-inner,
  .course-market-shell {
    width: calc(100% - 32px);
  }
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .course-market-page {
    padding-top: 60px;
  }
  .course-market-head-inner {
    padding: 20px 0;
  }
  .course-market-head h1 {
    font-size: 24px;
    line-height: 32px;
  }
  .course-search-form {
    width: 100%;
    height: auto;
    grid-template-columns: 1fr;
    border-width: 1px;
  }
  .course-search-form input,
  .course-search-form button {
    height: 40px;
    border-right: 0;
    border-bottom: 1px solid #dfe6f1;
  }
  .course-search-form button:last-child {
    border-bottom: 0;
  }
  .course-grid {
    grid-template-columns: 1fr;
  }
  .course-card-cover {
    flex-basis: 180px;
    height: 180px;
  }
  .course-order-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .course-order-actions,
  .course-delivery-actions {
    justify-content: flex-start;
  }
  .course-delivery-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

.material-market-head {
  background: #ffffff;
  border-bottom: 1px solid #e5e9f0;
}

.material-market-inner {
  width: 1170px;
  margin: 0 auto;
  padding: 28px 0 26px;
}

.material-market-title {
  display: grid;
  gap: 6px;
}

.material-market-title span {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 600;
}

.material-market-title h1 {
  color: #202733;
  font-size: 30px;
  font-weight: 600;
  line-height: 40px;
}

.material-market-title p {
  color: #667282;
  font-size: 14px;
  line-height: 22px;
}

.material-market-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px 108px 82px;
  gap: 0;
  width: 760px;
  height: 42px;
  margin-top: 20px;
  border: 2px solid var(--primary-color);
  background: #ffffff;
}

.material-market-search input,
.material-market-search select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid #dfe6f1;
  color: #303844;
  background: #ffffff;
  outline: none;
}

.material-market-search button {
  min-width: 0;
  height: 38px;
  border: 0;
  border-radius: 0;
  font-size: 14px;
}

.material-market-search button:last-child {
  color: #4e5969;
  background: #f5f7fb;
}

.material-market-wrap {
  width: 1170px;
  margin: 18px auto 0;
}

.material-channel-nav {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid #e7ebf2;
  background: #ffffff;
}

.material-channel-nav strong {
  color: #2b323d;
  font-size: 15px;
  line-height: 30px;
}

.material-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
}

.material-category-filters button {
  min-width: auto;
  height: 30px;
  line-height: 28px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #4d5968;
  background: #ffffff;
  font-size: 13px;
}

.material-category-filters button:hover,
.material-category-filters button.active {
  color: #ffffff;
  border-color: var(--primary-color);
  background: var(--primary-color);
  box-shadow: none;
}

.material-market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 308px;
  gap: 18px;
  align-items: start;
  margin-top: 16px;
}

.material-main-panel,
.material-detail,
.material-rank,
.material-downloads {
  border: 1px solid #e7ebf2;
  background: #ffffff;
}

.material-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid #edf0f5;
}

.material-list-head h2,
.material-rank h2,
.material-downloads h2 {
  color: #202733;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}

.material-list-head p {
  margin-top: 3px;
  color: #7a8493;
  font-size: 13px;
  line-height: 20px;
}

.material-list-head span {
  flex-shrink: 0;
  color: #f08225;
  font-size: 15px;
  font-weight: 600;
}

.material-list {
  display: grid;
}

.material-list-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 112px;
  gap: 16px;
  min-height: 148px;
  padding: 18px;
  border-bottom: 1px solid #edf0f5;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.material-list-item:last-child {
  border-bottom: 0;
}

.material-list-item:hover,
.material-list-item.selected {
  background: #f8fbff;
}

.material-list-item.selected {
  box-shadow: inset 3px 0 0 var(--primary-color);
}

.material-list-cover {
  width: 132px;
  aspect-ratio: 4 / 3;
  align-self: start;
  overflow: hidden;
  border: 1px solid #e2e7ee;
  border-radius: 3px;
  background: #f5f7fa;
}

.material-list-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: #ffffff;
  background: #3977c9;
}

.material-image-fallback strong {
  font-size: 18px;
  font-weight: 700;
}

.material-image-fallback span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
}

.material-list-info {
  min-width: 0;
}

.material-item-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.material-item-top h3 {
  overflow: hidden;
  color: #202733;
  font-size: 17px;
  font-weight: 600;
  line-height: 26px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-item-top h3 button {
  max-width: 100%;
  min-width: 0;
  height: auto;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-item-top h3 button:hover {
  color: var(--primary-color);
  background: transparent;
  box-shadow: none;
}

.material-item-top strong,
.material-detail-price strong {
  color: #f08225;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.material-list-info p {
  min-height: 42px;
  margin-top: 6px;
  overflow: hidden;
  color: #667282;
  font-size: 13px;
  line-height: 21px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.material-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.material-tag-row span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border: 1px solid #d8e8ff;
  border-radius: 3px;
  color: #2b6fbd;
  background: #f2f7ff;
  font-size: 12px;
}

.material-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 9px;
  color: #8a94a3;
  font-size: 12px;
  line-height: 18px;
}

.material-item-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.material-detail-btn,
.material-buy-btn {
  width: 100%;
}

.material-detail-btn {
  min-width: 96px;
  height: 32px;
  line-height: 30px;
  border: 1px solid #b8d5fb;
  border-radius: 3px;
  color: #1769c2;
  background: #ffffff;
  font-size: 13px;
}

.material-detail-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #f4f9ff;
  box-shadow: none;
}

.material-buy-btn {
  min-width: 96px;
  height: 32px;
  line-height: 30px;
  border-radius: 3px;
  color: #ffffff;
  border-color: #f08225;
  background: #f08225;
  font-size: 13px;
}

.material-buy-btn:hover {
  border-color: #ff9338;
  background: #ff9338;
  box-shadow: none;
}

.material-item-action small {
  color: #8a94a3;
  font-size: 12px;
  line-height: 18px;
  text-align: right;
}

.material-side {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 14px;
}

.material-detail,
.material-rank,
.material-downloads {
  padding: 16px;
}

.material-detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0f5;
}

.material-detail-title span {
  color: #202733;
  font-size: 16px;
  font-weight: 600;
}

.material-detail-title strong {
  padding: 2px 8px;
  border-radius: 3px;
  color: #ffffff;
  background: var(--primary-color);
  font-size: 12px;
}

.material-detail h2 {
  margin-top: 12px;
  color: #202733;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}

.material-detail-desc {
  min-height: 54px;
  margin-top: 8px;
  color: #667282;
  font-size: 13px;
  line-height: 21px;
  white-space: pre-wrap;
}

.material-detail-spec {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.material-detail-spec div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  color: #667282;
  font-size: 13px;
  line-height: 20px;
}

.material-detail-spec dt {
  color: #8a94a3;
}

.material-detail-spec dd {
  overflow-wrap: anywhere;
}

.material-detail-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf0f5;
}

.material-detail-price span {
  color: #21a366;
  font-size: 13px;
}

.material-actions {
  margin-top: 14px;
  justify-content: flex-start;
}

.material-detail-note {
  margin-top: 10px;
  color: #8a94a3;
  font-size: 12px;
  line-height: 19px;
}

.material-rank-list {
  display: grid;
  gap: 2px;
  margin-top: 10px;
}

.material-rank-list button {
  min-width: 0;
  height: auto;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #edf0f5;
  border-radius: 0;
  color: #4d5968;
  background: transparent;
  text-align: left;
}

.material-rank-list button:last-child {
  border-bottom: 0;
}

.material-rank-list button:hover,
.material-rank-list button.active {
  color: var(--primary-color);
  background: transparent;
  box-shadow: none;
}

.material-rank-list em {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  color: #ffffff;
  background: #9aa6b2;
  font-size: 12px;
  font-style: normal;
}

.material-rank-list button:nth-child(-n + 3) em {
  background: #f08225;
}

.material-rank-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.material-rank-list strong {
  color: #f08225;
  font-size: 12px;
  font-weight: 600;
}

.material-rank-empty {
  margin-top: 10px;
  color: #8a94a3;
  font-size: 13px;
}

.material-product-page {
  min-height: calc(100vh - 60px);
  padding: 78px 0 56px;
  background: #f3f5f8;
}

.material-product-shell {
  width: 1170px;
  margin: 0 auto;
}

.material-breadcrumb {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  color: #8a94a3;
  font-size: 13px;
  white-space: nowrap;
}

.material-breadcrumb button {
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  color: #4e78a8;
  background: transparent;
  font-size: 13px;
}

.material-breadcrumb button:hover {
  color: var(--primary-color);
  background: transparent;
  box-shadow: none;
}

.material-breadcrumb strong {
  overflow: hidden;
  color: #606b79;
  font-weight: 400;
  text-overflow: ellipsis;
}

.material-product-content {
  display: grid;
  gap: 18px;
}

.material-product-hero {
  display: grid;
  grid-template-columns: 500px minmax(0, 1fr);
  gap: 34px;
  min-height: 390px;
  padding: 28px;
  border: 1px solid #e2e7ee;
  background: #ffffff;
}

.material-product-cover {
  aspect-ratio: 4 / 3;
  align-self: start;
  overflow: hidden;
  border: 1px solid #e2e7ee;
  border-radius: 3px;
  background: #f5f7fa;
}

.material-product-cover > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.material-product-cover .material-image-fallback strong {
  font-size: 44px;
}

.material-product-cover .material-image-fallback span {
  font-size: 13px;
}

.material-product-summary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.material-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.material-product-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #d8e8ff;
  border-radius: 3px;
  color: #2b6fbd;
  background: #f2f7ff;
  font-size: 12px;
}

.material-product-summary h1 {
  margin-top: 14px;
  color: #202733;
  font-size: 26px;
  font-weight: 600;
  line-height: 38px;
}

.material-product-summary > p {
  max-height: 72px;
  margin-top: 12px;
  overflow: hidden;
  color: #667282;
  font-size: 14px;
  line-height: 24px;
  white-space: pre-wrap;
}

.material-product-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 16px;
  color: #8a94a3;
  font-size: 12px;
}

.material-product-price-line {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 72px auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding: 12px 16px;
  background: #f7f8fa;
}

.material-product-price-line > span {
  color: #7a8493;
  font-size: 13px;
}

.material-product-price-line strong {
  color: #f08225;
  font-size: 30px;
  font-weight: 700;
}

.material-product-price-line em {
  justify-self: end;
  color: #21a366;
  font-size: 13px;
  font-style: normal;
}

.material-product-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.material-product-primary,
.material-product-secondary {
  min-width: 146px;
  height: 42px;
  border-radius: 3px;
  font-size: 15px;
}

.material-product-primary {
  border-color: #f08225;
  color: #ffffff;
  background: #f08225;
}

.material-product-primary:hover {
  border-color: #ff9338;
  background: #ff9338;
  box-shadow: none;
}

.material-product-secondary {
  border-color: #b8d5fb;
  color: #1769c2;
  background: #ffffff;
}

.material-product-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #f4f9ff;
  box-shadow: none;
}

.material-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 18px;
  align-items: start;
}

.material-product-description,
.material-product-facts {
  border: 1px solid #e2e7ee;
  background: #ffffff;
}

.material-product-description {
  min-width: 0;
  padding: 24px 28px 34px;
}

.material-product-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0f5;
}

.material-product-section-title h2,
.material-product-facts h2 {
  color: #202733;
  font-size: 19px;
  font-weight: 600;
}

.material-product-section-title span {
  color: #8a94a3;
  font-size: 12px;
}

.material-product-copy {
  padding: 20px 0 24px;
  color: #4f5967;
  font-size: 15px;
  line-height: 28px;
  white-space: pre-wrap;
}

.material-product-images {
  display: grid;
  gap: 18px;
}

.material-product-detail-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid #edf0f5;
  background: #f7f8fa;
}

.material-product-detail-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.material-product-image-empty {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa3af;
  background: #f7f8fa;
  font-size: 13px;
}

.material-product-facts {
  position: sticky;
  top: 78px;
  padding: 20px;
}

.material-product-facts h2 {
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0f5;
}

.material-product-facts dl {
  display: grid;
  gap: 11px;
  padding: 17px 0;
}

.material-product-facts dl div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  font-size: 13px;
  line-height: 20px;
}

.material-product-facts dt {
  color: #8a94a3;
}

.material-product-facts dd {
  overflow-wrap: anywhere;
  color: #4f5967;
}

.material-product-side-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid #edf0f5;
}

.material-product-side-price strong {
  color: #f08225;
  font-size: 25px;
}

.material-product-side-price span {
  color: #21a366;
  font-size: 12px;
}

.material-product-facts > .material-product-primary {
  width: 100%;
}

.material-product-facts > p {
  margin-top: 10px;
  color: #8a94a3;
  font-size: 12px;
  line-height: 19px;
}

.compact-user-card {
  min-height: 280px;
}

.recharge-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 22px;
}

.recharge-stat {
  min-height: 126px;
  padding: 24px 26px;
  border: 1px solid #edf1f7;
  border-radius: 6px;
  background: #fbfcff;
}

.recharge-stat span,
.recharge-form-panel label {
  display: block;
  color: #5f6b7a;
  font-size: 14px;
  line-height: 22px;
}

.recharge-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--primary-color);
  font-size: 34px;
  font-weight: 700;
  line-height: 44px;
  word-break: break-word;
}

.recharge-stat small {
  display: block;
  margin-top: 8px;
  color: #8a94a3;
  font-size: 12px;
  line-height: 18px;
}

.recharge-form-panel {
  display: grid;
  grid-template-columns: 110px 300px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 0 24px;
  border-top: 1px solid #eeeeee;
}

.recharge-input-line {
  display: grid;
  grid-template-columns: 120px 150px;
  gap: 12px;
  align-items: center;
}

.recharge-input-line input {
  width: 120px;
  height: 40px;
  text-align: center;
}

.recharge-form-panel p {
  color: #e54d42;
  line-height: 22px;
}

.flex-c {
  display: flex;
  align-items: center;
}

.exchange-btn {
  width: 150px;
  height: 40px;
  line-height: 38px;
  border-radius: 20px;
  font-size: 18px;
}

.red {
  color: red;
  margin-left: 20px;
}

.check-btn-wrap {
  margin-top: 28px;
}

.check-btn {
  width: 80px;
  background-color: #ffffff;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  font-size: 14px;
}

.check-btn.check {
  color: #ffffff;
  background-color: var(--primary-color);
}

.recharge-table {
  margin-top: 14px;
  max-height: 400px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.modal-card {
  position: absolute;
  top: 160px;
  left: 50%;
  width: 420px;
  transform: translateX(-50%);
  padding: 28px 30px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.18);
}

.modal-card h2 {
  margin-bottom: 10px;
  font-size: 24px;
  color: #2b323d;
}

.modal-card p {
  margin-bottom: 16px;
  color: #6a6f77;
  line-height: 22px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-tabs button {
  flex: 1;
  height: 30px;
  border-radius: 15px;
  color: var(--primary-color);
  background: #ffffff;
}

.auth-tabs button.active {
  color: #ffffff;
  background: var(--primary-color);
}

.modal-card input {
  width: 100%;
  height: 38px;
  margin-top: 10px;
  padding: 0 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (min-width: 641px) and (max-width: 1366px) {
  .banner-wrap .bg-wrap {
    height: 534px;
  }

  .banner-wrap .content-wrap {
    top: 211px;
  }

  .banner-wrap .content-container,
  .feature-content-wrap,
  .advantage-content-wrap,
  .footer-first-floor,
  .footer-second-floor,
  .content-page {
    width: 960px;
  }

  .slogan-text,
  .feature-h3-wrap,
  .h2-title-wrap {
    font-size: 32px;
    line-height: 45px;
  }

  .feature-img-wrap {
    width: 528px;
  }

  .aboutus-items {
    width: 320px;
  }
}

@media (max-width: 1180px) {
  .material-market-inner,
  .material-market-wrap,
  .material-product-shell {
    width: calc(100% - 32px);
  }

  .material-market-search {
    width: 100%;
  }

  .material-market-layout {
    grid-template-columns: 1fr;
  }

  .material-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .material-detail {
    grid-column: 1 / -1;
  }

  .material-product-hero {
    grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 760px) {
  .material-market-page {
    padding-top: 60px;
  }

  .material-market-inner {
    padding: 20px 0;
  }

  .material-market-title h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .material-market-search {
    grid-template-columns: 1fr;
    height: auto;
    border-width: 1px;
  }

  .material-market-search input,
  .material-market-search select,
  .material-market-search button {
    height: 40px;
    border-right: 0;
    border-bottom: 1px solid #dfe6f1;
  }

  .material-market-search button:last-child {
    border-bottom: 0;
  }

  .material-channel-nav {
    grid-template-columns: 1fr;
  }

  .material-list-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .material-list-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .material-list-cover {
    width: 92px;
  }

  .material-item-action {
    grid-column: 1 / -1;
    align-items: flex-start;
  }

  .material-item-top {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .material-item-top h3 {
    white-space: normal;
  }

  .material-side {
    grid-template-columns: 1fr;
  }

  .material-product-page {
    padding-top: 66px;
  }

  .material-product-shell {
    width: calc(100% - 24px);
  }

  .material-product-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
  }

  .material-product-summary h1 {
    font-size: 22px;
    line-height: 32px;
  }

  .material-product-price-line {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 20px;
  }

  .material-product-price-line em {
    justify-self: start;
  }

  .material-product-actions,
  .material-product-primary,
  .material-product-secondary {
    width: 100%;
  }

  .material-product-layout {
    grid-template-columns: 1fr;
  }

  .material-product-description {
    padding: 20px 16px 28px;
  }

  .material-product-facts {
    position: static;
  }
}
/* Personal center */
.page-title.with-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.page-title.with-actions > div:first-child {
  min-width: 0;
}

.section-switcher {
  display: flex;
  gap: 28px;
  margin-top: 18px;
  border-bottom: 1px solid #e6ebf1;
}

.section-switcher button {
  min-width: 110px;
  height: 42px;
  padding: 0 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #66717e;
  background: transparent;
  font-size: 15px;
}

.section-switcher button.active {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

.record-section {
  display: none;
  padding-top: 18px;
}

.record-section.active {
  display: block;
}

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

.confirmed-item {
  padding: 16px;
  border: 1px solid #e1e7ee;
  border-radius: 4px;
  background: #ffffff;
}

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

.confirmed-item-head strong {
  color: #273746;
  font-size: 16px;
}

.confirmed-item-head p {
  margin-top: 4px;
  color: #7b8794;
  font-size: 13px;
}

.status-chip {
  flex: 0 0 auto;
  color: #2f855a;
  font-size: 13px;
  font-weight: 600;
}

.confirmed-item .drawing-version-row {
  margin-top: 12px;
  padding: 12px 0 0;
  border-top: 1px solid #edf0f4;
}

/* Excel projects */
.project-create-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #dce5ec;
  border-radius: 4px;
  background: #f8fafc;
}

.project-form {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.6fr auto;
  gap: 10px;
  align-items: center;
}

.project-form input {
  min-width: 0;
}

.project-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.project-workspace {
  display: grid;
  grid-template-columns: minmax(230px, 0.78fr) minmax(0, 1.5fr);
  gap: 24px;
  margin-top: 20px;
  min-height: 470px;
}

.project-browser {
  min-width: 0;
  padding-right: 20px;
  border-right: 1px solid #e6ebf1;
}

.project-browser-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 8px;
}

.project-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.project-list-item {
  width: 100%;
  min-width: 0;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid #e1e7ee;
  border-left: 3px solid transparent;
  border-radius: 4px;
  color: #354656;
  background: #ffffff;
  text-align: left;
}

.project-list-item:hover,
.project-list-item.active {
  border-color: #bdd5ee;
  border-left-color: var(--primary-color);
  background: #f5f9fe;
}

.project-list-item strong,
.project-list-item span,
.project-list-item small {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-list-item strong {
  color: #253746;
  font-size: 15px;
}

.project-list-item span {
  margin-top: 5px;
  color: #5f7180;
  font-size: 13px;
}

.project-list-item small {
  margin-top: 4px;
  color: #8a96a1;
  font-size: 12px;
}

.project-detail {
  min-width: 0;
}

.project-detail-empty {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px dashed #ccd7e0;
  color: #8a96a1;
  background: #fafcfd;
  text-align: center;
}

.project-detail-empty.hidden {
  display: none;
}

.project-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6ebf1;
}

.project-detail-head > div {
  min-width: 0;
}

.project-detail-head h2 {
  overflow-wrap: anywhere;
  color: #273746;
  font-size: 22px;
  line-height: 30px;
}

.project-detail-head p,
.project-detail-head small {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #778592;
  font-size: 13px;
  line-height: 20px;
}

.project-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e6ebf1;
}

.project-upload-form input {
  min-width: 0;
}

.project-file-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 8px;
}

.project-file-head h3 {
  color: #334454;
  font-size: 16px;
}

.project-file-head span {
  color: #84909b;
  font-size: 13px;
}

.project-file-list {
  border-top: 1px solid #edf1f4;
}

.project-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f4;
}

.project-file-meta {
  min-width: 0;
}

.project-file-meta strong,
.project-file-meta span {
  display: block;
  overflow-wrap: anywhere;
}

.project-file-meta strong {
  color: #354656;
  font-size: 14px;
}

.project-file-meta span {
  margin-top: 4px;
  color: #84909b;
  font-size: 12px;
  line-height: 18px;
}

.project-file-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}

.project-preview-btn {
  min-width: 82px;
}

body.preview-open {
  overflow: hidden;
}

.excel-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.excel-preview-modal.hidden {
  display: none;
}

.excel-preview-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(20, 31, 43, 0.58);
  cursor: default;
}

.excel-preview-card {
  position: relative;
  width: min(1400px, 96vw);
  height: min(860px, 92vh);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #cad5df;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(13, 28, 43, 0.24);
}

.excel-preview-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid #dfe6ec;
}

.excel-preview-header > div {
  min-width: 0;
}

.excel-preview-header span {
  color: #647687;
  font-size: 12px;
}

.excel-preview-header h2 {
  margin-top: 3px;
  overflow: hidden;
  color: #263746;
  font-size: 18px;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.excel-preview-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 1px solid #d7e0e7;
  border-radius: 4px;
  color: #526575;
  background: #ffffff;
  font-size: 25px;
  line-height: 32px;
}

.excel-preview-close:hover {
  border-color: #aebdca;
  color: #233746;
  background: #f5f8fa;
}

.excel-preview-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1px solid #e2e8ee;
  background: #f7f9fb;
}

.excel-preview-sheets {
  min-width: 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.excel-preview-sheets button {
  min-width: 78px;
  max-width: 180px;
  height: 32px;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0 12px;
  border: 1px solid #cbd7e2;
  border-radius: 4px;
  color: #405666;
  background: #ffffff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.excel-preview-sheets button.active {
  border-color: #2e73b8;
  color: #ffffff;
  background: #2e73b8;
}

.excel-preview-meta {
  flex: 0 0 auto;
  color: #647687;
  font-size: 13px;
}

.excel-preview-notice {
  padding: 8px 20px;
  border-bottom: 1px solid #f0d79b;
  color: #74520d;
  background: #fff8e8;
  font-size: 13px;
}

.excel-preview-table-wrap {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #ffffff;
}

.excel-preview-table {
  width: max-content;
  min-width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  color: #263746;
  font-size: 13px;
}

.excel-preview-table th,
.excel-preview-table td {
  min-width: 112px;
  max-width: 320px;
  height: 34px;
  padding: 6px 9px;
  overflow: hidden;
  border-right: 1px solid #dfe5eb;
  border-bottom: 1px solid #dfe5eb;
  line-height: 20px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: pre-wrap;
}

.excel-preview-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 30px;
  color: #506474;
  background: #eef3f7;
  text-align: center;
}

.excel-preview-table .excel-row-number {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 54px;
  width: 54px;
  max-width: 54px;
  color: #5c6e7d;
  background: #f2f5f8;
  text-align: center;
}

.excel-preview-table thead .excel-row-number {
  z-index: 3;
}

.excel-preview-table td.number {
  text-align: right;
}

.excel-preview-table tr:hover td {
  background: #f7fbff;
}

.excel-preview-loading,
.excel-preview-empty {
  width: 100vw;
  height: 180px !important;
  color: #6d7e8c;
  text-align: center !important;
}

.excel-preview-loading.error {
  color: #b42318;
}

.excel-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 10px 20px;
  border-top: 1px solid #dfe6ec;
  color: #647687;
  background: #ffffff;
  font-size: 13px;
}

.excel-preview-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.excel-preview-pagination button {
  min-width: 76px;
}

.excel-preview-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.credits-panel {
  padding-top: 20px;
}

@media (max-width: 820px) {
  .project-form {
    grid-template-columns: 1fr;
  }

  .project-workspace {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .project-browser {
    padding: 0 0 20px;
    border-right: 0;
    border-bottom: 1px solid #e6ebf1;
  }

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

@media (max-width: 760px) {
  .mine-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mine-wrap .row {
    height: 54px;
    padding: 0 12px;
  }

  .page-title.with-actions,
  .project-detail-head {
    flex-direction: column;
  }

  .page-title.with-actions .button-row,
  .page-title.with-actions > button {
    align-self: stretch;
  }

  .page-title.with-actions .button-row > button,
  .page-title.with-actions > button {
    flex: 1;
    width: 100%;
  }

  .section-switcher {
    gap: 0;
  }

  .section-switcher button {
    flex: 1;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  .project-file-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .excel-preview-modal {
    padding: 0;
  }

  .excel-preview-card {
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .excel-preview-toolbar,
  .excel-preview-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .excel-preview-sheets {
    width: 100%;
  }

  .excel-preview-footer,
  .excel-preview-pagination {
    width: 100%;
  }

  .excel-preview-pagination {
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  .project-browser-tools,
  .project-upload-form {
    grid-template-columns: 1fr;
  }

  .project-upload-form button,
  .project-file-actions {
    width: 100%;
  }

  .project-file-actions button {
    flex: 1;
  }
}
