/**
 * XYPeptide 询盘站模块样式（浅色冰晶主题）
 * 产品页 Contact Us 区块 + Pricing 价格表
 * 设计 token 与主题 custom.css 一致（brand 深海军蓝 / warm 浅冰底 / accent 冰蓝 + WhatsApp 绿）
 */

/* ---------- Contact Us 区块（产品页底部） ---------- */
.ftt-contact-us {
  margin: 48px 0;
  padding: 56px 24px;
  background: #fff;
  border: 1px solid var(--brand-200);
  border-radius: 16px;
  text-align: center;
}

.ftt-contact-us__title {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 500;
  color: var(--brand-900);
}

.ftt-contact-us__text {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--brand-500);
}

.ftt-contact-us__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* 参考站详情弹窗的信息格 */
.ftt-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 720px;
  margin: 0 auto 36px;
}

.ftt-info-grid__cell {
  background: var(--brand-50);
  border-radius: 10px;
  padding: 14px 10px;
}

.ftt-info-grid__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-400);
  margin-bottom: 4px;
}

.ftt-info-grid__value {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand-800);
}

/* ---------- Pricing 页 ---------- */
.ftt-pricing-page {
  background: var(--warm-50);
}

.ftt-pricing-hero {
  background: var(--brand-900);
  color: #fff;
  text-align: center;
  padding: 64px 24px 56px;
  margin: -16px calc(50% - 50vw) 48px;
}

.ftt-pricing-hero .ftt-eyebrow {
  color: var(--accent-400);
}

.ftt-pricing-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 500;
  color: #fff;
  margin: 0 0 16px;
}

.ftt-pricing-hero p {
  max-width: 680px;
  margin: 0 auto 28px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--brand-300);
}

.ftt-pricing-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.ftt-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.85rem;
}

.ftt-chip strong { font-weight: 700; }
.ftt-chip i { color: var(--accent-400); }

/* SEC 分组 */
.ftt-sec {
  margin-bottom: 40px;
  background: #fff;
  border: 1px solid var(--brand-200);
  border-radius: 16px;
  overflow: hidden;
}

.ftt-sec__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--brand-200);
  background: var(--brand-50);
}

.ftt-sec__no {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ftt-teal);
  letter-spacing: 0.1em;
}

.ftt-sec__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand-900);
}

.ftt-sec__count {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--brand-500);
}

.ftt-table {
  width: 100%;
  border-collapse: collapse;
}

.ftt-table th,
.ftt-table td {
  padding: 14px 28px;
  text-align: left;
  font-size: 0.92rem;
}

.ftt-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-500);
  border-bottom: 1px solid var(--brand-200);
}

.ftt-table tbody tr:nth-child(even) { background: var(--brand-50); }
.ftt-table tbody tr:hover { background: var(--brand-100); }
.ftt-table tbody td { border-bottom: 1px solid var(--brand-100); }

.ftt-table__name {
  font-weight: 500;
  color: var(--brand-800);
}

.ftt-table__name:hover { color: var(--brand-700); }

.ftt-table__code {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--brand-100);
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--brand-600);
}

.ftt-table__price-col {
  text-align: right;
  font-weight: 600;
  color: var(--brand-900);
  white-space: nowrap;
}

/* 脚注三栏 */
.ftt-pricing-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.ftt-note {
  background: #fff;
  border: 1px solid var(--brand-200);
  border-radius: 16px;
  padding: 28px;
}

.ftt-note h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-900);
}

.ftt-note h3 i { color: #16a34a; }

.ftt-note p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--brand-500);
  margin: 0 0 8px;
}

/* 底部 CTA */
.ftt-cta {
  text-align: center;
  padding: 48px 24px 64px;
  border-top: 1px solid var(--brand-200);
}

.ftt-cta h3 {
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--brand-900);
  margin: 0 0 12px;
}

.ftt-cta p {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--brand-500);
}

/* 通用绿色 WhatsApp 按钮（模块内模板用；主题 custom.css 也有同名兜底样式） */
.ftt-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.ftt-btn-wa:hover { background: #15803d; text-decoration: none; }

.ftt-btn-wa--lg { padding: 13px 30px; font-size: 0.92rem; }

.ftt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.ftt-btn--outline { border-color: var(--brand-300); color: var(--brand-700); background: transparent; }
.ftt-btn--outline:hover { background: var(--brand-50); color: var(--brand-800); }

.ftt-pricing-empty { margin-bottom: 32px; }

@media (max-width: 991px) {
  .ftt-pricing-notes { grid-template-columns: 1fr; }
  .ftt-info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .ftt-contact-us { padding: 40px 16px; }
  .ftt-contact-us__title { font-size: 1.6rem; }
  .ftt-contact-us__actions { flex-direction: column; align-items: stretch; }
  .ftt-pricing-hero h1 { font-size: 2rem; }
  .ftt-sec__head { flex-wrap: wrap; }
  .ftt-table th, .ftt-table td { padding: 12px 14px; }
}

/* ---------- 邮箱验证页 ---------- */
.ftt-verify { display: flex; justify-content: center; padding: 56px 16px; }
.ftt-verify__card {
  max-width: 440px;
  width: 100%;
  padding: 36px 32px;
  background: #fff;
  border: 1px solid var(--brand-200);
  border-radius: 14px;
  text-align: center;
}
.ftt-verify__title { margin: 0 0 14px; font-size: 1.5rem; font-weight: 700; color: var(--brand-900); }
.ftt-verify__text { font-size: 0.92rem; line-height: 1.7; color: var(--brand-500); margin-bottom: 22px; }
.ftt-verify__form { display: flex; flex-direction: column; gap: 12px; }
.ftt-verify__input {
  padding: 13px;
  border: 1px solid var(--brand-300);
  border-radius: 10px;
  font-size: 1.4rem;
  font-family: monospace;
  letter-spacing: 8px;
  text-align: center;
}
.ftt-verify__input:focus { outline: none; border-color: var(--ftt-teal); }
.ftt-verify__submit {
  padding: 13px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a7fd6 0%, #7c6fd0 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ftt-verify__submit:hover { background: linear-gradient(135deg, #3d72cc 0%, #6658c2 100%); }
.ftt-verify__error {
  padding: 9px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.85rem;
}
.ftt-verify__resend { margin: 16px 0 0; font-size: 0.85rem; color: var(--brand-500); }
.ftt-verify__resend a { color: var(--brand-600); }

/* ---------- 报价式结算页（3厂报价器 1:1 风格） ---------- */
body#module-fttsite-checkout #wrapper { background: var(--warm-50); }

.ftt-checkout { max-width: 1180px; margin: 0 auto; }

/* 浅色头卡 */
.ftt-quote-head {
  background: #fff;
  border: 1px solid var(--brand-200);
  border-radius: 14px;
  padding: 26px 30px;
  margin: 28px 0 22px;
}
.ftt-quote-head__title { margin: 0 0 10px; font-size: 1.5rem; font-weight: 700; color: var(--brand-900); }
.ftt-quote-head__sub {
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid var(--ftt-teal);
  font-size: 0.88rem;
  color: var(--brand-600);
}
.ftt-quote__section-title { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--brand-800); }

/* 当前购物车 */
.ftt-cartcard { margin-bottom: 28px; }
.ftt-cartcard__head { margin-bottom: 14px; }

.ftt-cartrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 14px;
  padding: 16px 22px;
  margin-bottom: 12px;
  border: 1px solid var(--brand-100);
}
.ftt-cartrow__info { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.ftt-cartrow__code { color: var(--brand-800); font-size: 1rem; }
.ftt-cartrow__name { color: var(--brand-600); font-size: 0.92rem; text-decoration: none; }
.ftt-cartrow__name:hover { color: var(--ftt-teal); }
.ftt-cartrow__controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.ftt-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--brand-100);
  border-radius: 999px;
  padding: 3px;
}
.ftt-stepper__btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-800);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.ftt-stepper__btn:hover { background: var(--brand-200); }
.ftt-stepper__qty { min-width: 28px; text-align: center; font-weight: 600; color: var(--brand-800); font-size: 0.9rem; }

.ftt-cartrow__price { font-weight: 700; color: var(--brand-800); white-space: nowrap; }
.ftt-cartrow__remove {
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: #fdecec;
  color: #e74c3c;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ftt-cartrow__remove:hover { background: #fbd5d5; }

/* 选项条 */
.ftt-optbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 26px;
  background: #fff;
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  padding: 14px 26px;
  margin: 18px 0;
}
.ftt-opt { display: inline-flex; align-items: center; gap: 8px; }
.ftt-opt label { font-size: 0.85rem; font-weight: 600; color: var(--brand-600); white-space: nowrap; margin: 0; }
.ftt-opt__input {
  width: 72px;
  padding: 7px 10px;
  border: 1px solid var(--brand-200);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--brand-800);
  background: var(--brand-50);
  text-align: center;
}
.ftt-opt__input--wide { width: auto; text-align: left; }
.ftt-opt__input:focus { outline: none; border-color: var(--ftt-teal); background: #fff; }
.ftt-opt input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ftt-teal); }

/* 双列汇总 */
.ftt-sumbox {
  background: #fff;
  border: 1px solid var(--brand-100);
  border-radius: 14px;
  padding: 18px 26px;
}
.ftt-sumrow { display: flex; gap: 24px; padding: 8px 0; }
.ftt-sumrow__cell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--brand-600);
  font-weight: 600;
}
.ftt-sumrow__cell b { color: var(--brand-800); font-size: 1rem; white-space: nowrap; }

/* GRAND TOTAL */
.ftt-grand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 26px;
  background: var(--brand-100);
  border-radius: 14px;
}
.ftt-grand__label { font-size: 1.15rem; font-weight: 800; color: var(--brand-800); }
.ftt-grand__value { font-size: 1.3rem; font-weight: 800; color: var(--brand-900); white-space: nowrap; }

/* 生成按钮（右下） */
.ftt-genrow { display: flex; justify-content: flex-end; margin-top: 14px; }
.ftt-quote-generate {
  padding: 13px 30px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a7fd6 0%, #7c6fd0 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ftt-quote-generate:hover { background: linear-gradient(135deg, #3d72cc 0%, #6658c2 100%); }
.ftt-quote-generate:disabled { opacity: 0.6; cursor: wait; }
.ftt-quote-error { margin-top: 10px; padding: 9px 12px; border-radius: 8px; background: #fef2f2; color: #e74c3c; font-size: 0.85rem; }

/* 生成结果 */
.ftt-quote-result {
  background: #fff;
  border: 1px solid var(--brand-100);
  border-radius: 14px;
  padding: 22px;
  margin-top: 16px;
}
.ftt-quote-result__label { font-size: 0.78rem; color: var(--brand-500); text-transform: uppercase; letter-spacing: 0.08em; }
.ftt-quote-result__ref { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.ftt-quote-result__ref code { font-size: 1.2rem; font-weight: 700; color: var(--brand-800); font-family: monospace; }
.ftt-quote-copy { padding: 6px 12px; border: 1px solid var(--brand-200); border-radius: 999px; background: var(--brand-50); font-size: 0.8rem; cursor: pointer; color: var(--brand-500); }
.ftt-quote-copy:hover { background: var(--brand-100); }
.ftt-quote-result__total { font-size: 0.95rem; color: var(--brand-500); margin-bottom: 14px; }
.ftt-quote-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  border-radius: 999px;
  background: #1a7a4a;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease;
}
.ftt-quote-wa:hover { background: #28804e; }

/* Official Quotation 表 */
.ftt-quotable { margin-top: 8px; }
.ftt-quotable .ftt-quote__section-title { margin-bottom: 14px; }
.ftt-quote-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--brand-100); }
.ftt-quote-table thead th {
  padding: 13px 18px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4a7fd6 0%, #7c6fd0 100%);
}
.ftt-quote-table tbody td { padding: 12px 18px; font-size: 0.9rem; color: var(--brand-700); border-bottom: 1px solid var(--brand-100); }
.ftt-quote-table tbody tr:last-child td { border-bottom: 0; }
.ftt-quote-table__ref {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--brand-100);
  color: var(--brand-600);
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 700;
  margin-right: 6px;
}
.ftt-quote-table__spec { color: var(--brand-400); }

@media (max-width: 991px) {
  .ftt-cartrow { flex-direction: column; align-items: stretch; }
  .ftt-cartrow__controls { justify-content: space-between; }
  .ftt-optbar { border-radius: 16px; }
  .ftt-sumrow { flex-direction: column; gap: 8px; }
  .ftt-quotable { overflow-x: auto; }
}

/* 订单链接复制提示 + 只读订单页 */
.ftt-opt__hint { color: var(--brand-400); font-size: 0.75rem; white-space: nowrap; }
.ftt-opt__input:disabled { background: var(--brand-50); color: var(--brand-600); }
.ftt-copy-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 2000;
  padding: 14px 26px;
  background: var(--brand-950);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(10, 25, 41, 0.35);
  animation: fttToastIn 0.3s ease;
}
@keyframes fttToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.ftt-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 16px 22px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid var(--brand-100);
  border-radius: 14px;
  font-size: 0.92rem;
  color: var(--brand-600);
}
.ftt-order-meta strong { color: var(--brand-800); }
.ftt-quote-result__ref-code { font-family: monospace; font-size: 1.1rem; font-weight: 700; color: var(--brand-800); }

/* 订单列表 */
.ftt-order-state {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 0.8rem;
  font-weight: 600;
}
.ftt-order-view {
  color: var(--brand-600);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.ftt-order-view:hover { color: var(--ftt-teal); }
.ftt-orders-empty { padding: 40px 26px; text-align: center; color: var(--brand-500); }
.ftt-orders-empty p { margin-bottom: 18px; }
