/* ==========================================================================
   我的订单 / 我的 —— 移动优先的轻量页面
   ========================================================================== */

.u-main {
  background: #f5f8f6;
  padding: 26px 0 48px;
  min-height: 60vh;
}

.u-narrow {
  max-width: 760px;
}

.u-title {
  padding: 0 2px 18px;
}

.u-title h1 {
  font-size: 26px;
  font-weight: 700;
  color: #0d3d28;
  letter-spacing: 0.5px;
}

.u-title p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.75;
  color: #7d8a84;
}

.u-card {
  background: #fff;
  border: 1px solid #eef3f0;
  border-radius: 16px;
  padding: 20px;
}

.u-label {
  display: block;
  font-size: 13px;
  color: #6b7772;
  margin-bottom: 10px;
}

.u-row {
  display: flex;
  gap: 10px;
}

.u-row input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #e2eae5;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  color: #16211c;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.u-row input:focus {
  border-color: #12b76a;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.12);
}

.u-row .btn {
  flex: none;
  height: 46px;
  padding: 0 24px;
  line-height: 46px;
  font-size: 15px;
}

.u-hint {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: #a3aea8;
}

.u-hint.err {
  color: #e5484d;
}

/* ---------------- 订单卡 ---------------- */
.o-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.o-card {
  background: #fff;
  border: 1px solid #eef3f0;
  border-radius: 16px;
  padding: 18px 18px 16px;
}

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

.o-name {
  font-size: 16px;
  font-weight: 600;
  color: #16211c;
  line-height: 1.4;
}

.o-sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: #9aa8a0;
}

.o-st {
  flex: none;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  background: #eaf7f0;
  color: #0f9d58;
  white-space: nowrap;
}

.o-st.warn {
  background: #fff4e6;
  color: #d97706;
}

.o-st.muted {
  background: #f1f4f2;
  color: #8a948f;
}

.o-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #eef3f0;
}

.o-meta div {
  font-size: 12.5px;
  color: #7d8a84;
}

.o-meta b {
  color: #16211c;
  font-weight: 600;
}

.o-meta .money b {
  color: var(--price, #0f9d58);
  font-size: 15px;
}

.o-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.o-no {
  font-size: 12px;
  color: #a3aea8;
  letter-spacing: 0.3px;
}

.o-more {
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13px;
  color: #0f9d58;
  cursor: pointer;
  padding: 4px 0;
}

/* 时间线 */
.o-time {
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid #f4f7f5;
}

.o-time.hide {
  display: none;
}

.tl {
  position: relative;
  padding-left: 20px;
}

.tl::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 10px;
  width: 1px;
  background: #e6ece8;
}

.tl-item {
  position: relative;
  padding: 8px 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d5ded9;
}

.tl-item.on::before {
  background: #12b76a;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.15);
}

.tl-t {
  font-size: 13.5px;
  color: #16211c;
  font-weight: 600;
}

.tl-n {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.65;
  color: #8a948f;
}

.tl-at {
  margin-top: 3px;
  font-size: 11px;
  color: #b3bdb7;
}

.o-loading {
  padding: 18px;
  text-align: center;
  font-size: 13px;
  color: #9aa8a0;
}

/* ---------------- 空态 ---------------- */
.u-empty {
  margin-top: 18px;
  padding: 44px 20px;
  background: #fff;
  border: 1px solid #eef3f0;
  border-radius: 16px;
  text-align: center;
}

.u-empty .e-ico {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #f4f7f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.u-empty .e-ico svg {
  width: 24px;
  height: 24px;
  stroke: #a9b5ae;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.u-empty strong {
  display: block;
  font-size: 15px;
  color: #16211c;
}

.u-empty span {
  display: block;
  margin: 8px auto 0;
  max-width: 320px;
  font-size: 12.5px;
  line-height: 1.75;
  color: #9aa8a0;
}

/* ---------------- 帮助 ---------------- */
.u-help {
  margin-top: 22px;
  padding: 20px;
  background: #fff;
  border: 1px solid #eef3f0;
  border-radius: 16px;
}

.u-help h3 {
  font-size: 14px;
  color: #16211c;
  margin-bottom: 10px;
}

.u-help ul {
  padding-left: 18px;
}

.u-help li {
  font-size: 12.5px;
  line-height: 1.9;
  color: #7d8a84;
}

.u-help a {
  color: #0f9d58;
}

/* ---------------- 我的 ---------------- */
.m-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  background: linear-gradient(135deg, #12b76a 0%, #0f9d58 100%);
  border-radius: 18px;
  color: #fff;
}

.m-avatar {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.m-head h2 {
  font-size: 17px;
  font-weight: 600;
}

.m-head p {
  margin-top: 4px;
  font-size: 12.5px;
  opacity: 0.86;
}

.m-sec {
  margin-top: 18px;
  background: #fff;
  border: 1px solid #eef3f0;
  border-radius: 16px;
  overflow: hidden;
}

.m-sec-t {
  padding: 16px 18px 4px;
  font-size: 14px;
  font-weight: 600;
  color: #16211c;
}

.m-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px 12px;
}

.m-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 4px;
  font-size: 12px;
  color: #4b5651;
  text-decoration: none;
  border-radius: 12px;
}

.m-cell:hover {
  background: #f7faf8;
}

.m-cell svg {
  width: 24px;
  height: 24px;
  stroke: #57635d;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.m-list {
  padding: 0 18px 6px;
}

.m-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid #f4f7f5;
  font-size: 13.5px;
  color: #16211c;
  text-decoration: none;
}

.m-row:first-child {
  border-top: 0;
}

.m-row .r {
  font-size: 12.5px;
  color: #9aa8a0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-row .chev {
  color: #c8d3cd;
}

.m-note {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.8;
  color: #a3aea8;
  text-align: center;
}

/* ---------------- 页脚 ---------------- */
.u-foot {
  padding: 22px 0 26px;
  background: #fff;
  border-top: 1px solid #eef3f0;
}

.u-foot .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: center;
  font-size: 12px;
  color: #a3aea8;
}

@media (max-width: 768px) {
  .u-main {
    padding: 18px 0 36px;
  }
  .u-title h1 {
    font-size: 22px;
  }
  .u-card {
    padding: 16px;
  }
  .u-row .btn {
    padding: 0 18px;
  }
  .m-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .o-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .m-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   我的商标 / 我的官文（portfolio.html）
   与订单页共用 u-* 骨架，这里只补「进度条 + 文书行」两类专属样式
   ========================================================================== */

.pf-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 14px;
}
.pf-tab {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid #e4ece7;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  color: #56655c;
  cursor: pointer;
  transition: 0.18s;
  font-family: inherit;
}
.pf-tab b {
  display: inline-block;
  min-width: 20px;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 9px;
  background: #f0f5f2;
  color: #7d8a84;
  font-size: 11px;
  font-weight: 600;
}
.pf-tab.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(18, 183, 106, 0.2);
}
.pf-tab.active b {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

/* 统计条 */
.pf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 14px;
  background: #eef3f0;
  border: 1px solid #eef3f0;
  border-radius: 14px;
  overflow: hidden;
}
.pf-stat {
  padding: 14px 8px;
  background: #fff;
  text-align: center;
}
.pf-stat b {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-deep, #0f9d58);
  line-height: 1.2;
}
.pf-stat span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #9aa8a0;
}

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

/* 商标卡 */
.pf-mark {
  padding: 16px 18px 12px;
  background: #fff;
  border: 1px solid #eef3f0;
  border-radius: 16px;
}
.pf-m-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pf-m-name {
  font-size: 17px;
  font-weight: 700;
  color: #16211c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-badge {
  flex: none;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11.5px;
  white-space: nowrap;
}
.pf-badge.ok { background: #e7f9ef; color: #0f9d58; }
.pf-badge.ing { background: #e9f2ff; color: #2f6fd0; }
.pf-badge.bad { background: #fdecec; color: #d13c3c; }
.pf-badge.mute { background: #f1f3f2; color: #7d8a83; }

.pf-m-cls {
  margin-top: 6px;
  font-size: 12.5px;
  color: #7b8a81;
}

.pf-bar {
  margin-top: 14px;
  height: 6px;
  border-radius: 4px;
  background: #eef4f0;
  overflow: hidden;
}
.pf-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}
.pf-bar i.ok { background: linear-gradient(90deg, #17c878, #0f9d58); }
.pf-bar i.ing { background: linear-gradient(90deg, #6fa8f0, #2f6fd0); }
.pf-bar i.bad { background: #e05c5c; }
.pf-bar i.mute { background: #c9d2cc; }

.pf-m-next {
  margin-top: 9px;
  font-size: 12.5px;
  color: #6b7b72;
  line-height: 1.6;
}
.pf-m-next b {
  color: var(--brand-deep, #0f9d58);
  font-weight: 600;
}

.pf-m-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f4f7f5;
  font-size: 11.5px;
  color: #a3aea8;
}

/* 官文 */
.pf-sec {
  margin: 16px 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7b72;
}

.pf-pend {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fffdf7;
  border: 1px solid #f5e6c8;
  border-radius: 14px;
}
.pf-p-ico {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #fdf0d5;
  color: #b7791f;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-p-t { font-size: 14px; font-weight: 600; color: #3d3222; }
.pf-p-s { margin-top: 3px; font-size: 11.5px; color: #a08a66; }
.pf-p-h { margin-top: 4px; font-size: 11.5px; color: #b7791f; }

.pf-doc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #eef3f0;
  border-radius: 14px;
}
.pf-d-ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  background: #eafaf1;
  color: #0f9d58;
}
.pf-d-ico.cert { background: #e9f2ff; color: #2f6fd0; }
.pf-d-ico.refuse { background: #fdecec; color: #d13c3c; }
.pf-d-ico.notice, .pf-d-ico.other { background: #f1f3f2; color: #6b7b72; }

.pf-d-main { flex: 1; min-width: 0; }
.pf-d-t {
  font-size: 14px;
  font-weight: 600;
  color: #16211c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-d-s { margin-top: 3px; font-size: 11.5px; color: #9aa8a0; }

.pf-d-btn {
  flex: none;
  padding: 7px 16px;
  border-radius: 18px;
  border: 1px solid var(--brand);
  color: var(--brand-deep, #0f9d58);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.18s;
}
.pf-d-btn:hover {
  background: #eafaf1;
}
.pf-d-btn.off {
  border-color: #e4ece7;
  color: #adb8b2;
}

@media (max-width: 560px) {
  .pf-stats { grid-template-columns: repeat(4, 1fr); }
  .pf-stat b { font-size: 19px; }
  .pf-mark { padding: 14px 15px 11px; }
  .pf-m-name { font-size: 16px; }
}

/* 我的页里的三个资产入口 */
.pf-entry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pf-entry a {
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  background: #fff;
  border: 1px solid #eef3f0;
  border-radius: 14px;
  text-decoration: none;
  transition: 0.18s;
}
.pf-entry a:hover {
  border-color: #cdebdb;
  box-shadow: 0 6px 18px rgba(16, 55, 35, 0.06);
}
.pf-entry b {
  font-size: 14px;
  font-weight: 600;
  color: #16211c;
}
.pf-entry span {
  margin-top: 5px;
  font-size: 11.5px;
  color: #9aa8a0;
  line-height: 1.5;
}

@media (max-width: 420px) {
  .pf-entry {
    grid-template-columns: repeat(2, 1fr);
  }
  .pf-entry a {
    padding: 14px 12px;
  }
}

/* 宽屏时商标卡两列：760px 单列会拉得很空，一条进度条横贯整屏很难看 */
@media (min-width: 900px) {
  .pf-list.cols {
    grid-template-columns: 1fr 1fr;
  }
  .pf-entry b { font-size: 14.5px; }
}

/* 宽屏给资产页多留一点横向空间，两列卡片才不至于挤 */
@media (min-width: 900px) {
  .u-narrow.pf-wide {
    max-width: 980px;
  }
}
