/* 一口价合同 · 合同详情 */
:root {
  --color-primary: #FF620A;
  --color-primary-deep: #FF8002;
  --color-gold: #FFA921;
  --color-copy: #EA7632;
  --color-link: #ff6a00;
  --color-notice: #ed6a0c;
  --color-notice-bg: #fffbe8;
  --color-bg: #fafafa;
  --color-card: #ffffff;
  --color-text: #333333;
  --color-text-secondary: #666666;
  --gradient-header: linear-gradient(135deg, #FF9A3D 0%, #FF6A14 55%, #FF8018 100%);
  --gradient-btn: linear-gradient(180deg, #FFA921 0%, #FF8002 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 37.5px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; color: var(--color-text); background: #e9edf2;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.app {
  max-width: 480px; margin: 0 auto; min-height: 100vh;
  background: var(--color-bg); padding-bottom: 1.8rem; overflow-x: hidden;
}

.nav {
  position: sticky; top: 0; z-index: 100;
  height: 50px; display: flex; align-items: center; justify-content: center;
  background: var(--gradient-header); color: #fff;
}
.nav__back {
  position: absolute; left: 12px; top: 0; bottom: 0;
  display: flex; align-items: center; color: #fff; background: none; border: 0;
  padding: 0 8px; cursor: pointer;
}
.nav__title { font-size: 17px; font-weight: 600; }

.notice {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  color: var(--color-notice); font-size: 14px;
  background: var(--color-notice-bg);
}
.notice__icon { flex-shrink: 0; }

.detail-header {
  background: var(--gradient-header);
  padding: 0.32rem 0.4rem 0.48rem;
  display: flex; justify-content: space-between; align-items: flex-start;
  color: #fff;
}
.detail-header__status { font-size: 18px; font-weight: 700; margin-bottom: 0.08rem; }
.detail-header__tip { font-size: 13px; opacity: .95; }
.detail-header__shop { font-size: 15px; padding-top: 0.08rem; }

.summary {
  background: #fff; margin: 0; padding: 0.4rem;
  border-bottom: 1px solid #f0f0f0;
}
.summary__title {
  font-size: 16px; font-weight: 700; color: #333; margin-bottom: 0.24rem;
  display: flex; flex-wrap: wrap; gap: 0.16rem;
}
.summary__row {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0.12rem 0; font-size: 14px; color: #666;
}
.summary__val { color: #333; font-weight: 700; }
.summary__actions {
  margin-top: 0.28rem; display: flex; flex-direction: column; gap: 0.2rem;
}
.btn-contact {
  align-self: flex-end;
  border: 1px solid #FF8204; background: #fff; color: #FF8002;
  height: 0.8rem; padding: 0 0.32rem; border-radius: 999px;
  font-size: 13px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
}
.btn-pickup {
  display: block; width: 100%; height: 1.12rem; line-height: 1.12rem;
  text-align: center; border: 0; border-radius: 0.58667rem;
  background: var(--gradient-btn); color: #fff;
  font-size: 16px; font-weight: 600; cursor: pointer;
}

.tabs {
  display: flex; justify-content: center; gap: 1.06667rem;
  height: 50px; background: #fff; border-bottom: 1px solid #f0f0f0;
  position: sticky; top: 50px; z-index: 40;
}
.tabs__item {
  position: relative; border: 0; background: none; color: #666;
  font-size: 15px; padding: 0 4px; cursor: pointer;
}
.tabs__item.is-active { color: #333; font-weight: 600; }
.tabs__item.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 8px;
  transform: translateX(-50%); width: 28px; height: 3px;
  background: #fa5d28; border-radius: 2px;
}

.panel[hidden] { display: none !important; }

.card {
  background: #fff; margin: 0.26667rem 0; padding: 0.32rem 0.4rem;
  border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0;
}
.card__head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 16px; font-weight: 500; color: #333;
}
.card__head-extra { color: #666; font-size: 14px; font-weight: 400; }
.card__body { margin-top: 0.24rem; }
.row {
  display: flex; justify-content: space-between; gap: 0.32rem;
  margin: 0.2rem 0; font-size: 14px; line-height: 1.5; color: #333;
}
.row__lbl { color: #666; white-space: nowrap; flex-shrink: 0; }
.row__val { flex: 1; text-align: right; word-break: break-all; }
.row__val--strong { font-weight: 700; }
.row__copy {
  color: var(--color-copy); font-size: 13px; font-weight: 500;
  margin-left: 0.2rem; cursor: pointer; border: 0; background: none;
}

.contract-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.08rem;
}
.contract-actions__view {
  display: inline-flex; align-items: center; gap: 2px;
  color: #468DF1; font-size: 14px; cursor: pointer; background: none; border: 0;
}
.contract-actions__copy {
  color: var(--color-link); font-size: 13px; cursor: pointer; background: none; border: 0;
}

.notice--inline {
  margin: 0.2rem 0; border-radius: 0; height: auto; min-height: 36px;
  padding: 8px 12px;
}

.collapse-wrap { display: flex; justify-content: center; padding: 0.32rem 0 0.16rem; }
.btn-collapse {
  border: 1px solid #FF8204; background: #fff; color: #FF8002;
  height: 0.8rem; padding: 0 0.36rem; border-radius: 999px;
  font-size: 13px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
}

.empty {
  margin: 0.8rem 0.4rem; padding: 0.8rem; text-align: center;
  color: #999; font-size: 14px; background: #fff; border-radius: 0.16rem;
}

.bottom-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: #fff; box-shadow: 0 -2px 8px rgba(0,0,0,.06);
  padding: 0.2rem 0.4rem calc(0.2rem + env(safe-area-inset-bottom));
  z-index: 50;
}
.bottom-bar a {
  display: inline-flex; align-items: center; gap: 6px;
  color: #FF620A; font-size: 14px; font-weight: 500;
}
