/* CryingSea Cart — 原创视觉，非 default 换皮 */

.csc-page {
  --csc-brand: #1d5cff;
  --csc-brand-2: #5b8cff;
  --csc-brand-glow: rgba(29, 92, 255, 0.22);
  --csc-ink: #141414;
  --csc-ink-2: #434343;
  --csc-muted: #8c8c8c;
  --csc-line: #ebebeb;
  --csc-surface: #ffffff;
  --csc-bg: #f7f8fc;
  --csc-radius: 14px;
  --csc-radius-sm: 10px;
  --csc-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--csc-ink);
  padding-bottom: 48px;
}

body .main-content,
body .page-content {
  background: var(--csc-bg) !important;
}

/* —— 商店页 —— */
.csc-shop {
  width: 100%;
  max-width: none;
  margin: 0;
}

.csc-shop-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding: 28px 32px;
  border-radius: 20px;
  background: linear-gradient(120deg, #0f1f4d 0%, #1d5cff 48%, #6ea8ff 100%);
  color: #fff;
  box-shadow: 0 20px 50px var(--csc-brand-glow);
  position: relative;
  overflow: hidden;
}

.csc-shop-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  top: -80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.csc-shop-hero h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.csc-shop-hero p {
  margin: 0;
  opacity: 0.88;
  font-size: 14px;
}

.csc-search {
  position: relative;
  z-index: 1;
  min-width: 260px;
}

.csc-search input {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 16px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--csc-ink);
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.csc-search input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
}

.csc-search i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--csc-muted);
  pointer-events: none;
}

.csc-cat-row {
  margin-bottom: 12px;
}

.csc-cat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--csc-muted);
  margin-bottom: 10px;
}

.csc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.csc-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--csc-ink-2);
  background: var(--csc-surface);
  border: 1px solid var(--csc-line);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.csc-pill:hover {
  border-color: var(--csc-brand-2);
  color: var(--csc-brand);
}

.csc-pill.is-active {
  background: var(--csc-brand);
  border-color: var(--csc-brand);
  color: #fff;
  box-shadow: 0 6px 16px var(--csc-brand-glow);
}

.csc-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.csc-product {
  display: flex;
  flex-direction: column;
  background: var(--csc-surface);
  border: 1px solid var(--csc-line);
  border-radius: var(--csc-radius);
  box-shadow: var(--csc-shadow);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.csc-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(29, 92, 255, 0.12);
}

.csc-product-visual {
  height: 96px;
  background: linear-gradient(135deg, #eef3ff 0%, #f8faff 50%, #e8f0ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.csc-product-visual i {
  font-size: 36px;
  color: var(--csc-brand);
  opacity: 0.35;
}

.csc-product-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.csc-product-title {
  font-size: 17px;
  font-weight: 650;
  margin: 0 0 10px;
  line-height: 1.35;
  color: var(--csc-ink);
}

.csc-product-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--csc-muted);
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.csc-product-meta {
  font-size: 12px;
  color: var(--csc-muted);
  margin-bottom: 12px;
}

.csc-product-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--csc-brand);
  letter-spacing: -0.02em;
}

.csc-product-price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--csc-muted);
}

.csc-product-price .was {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--csc-muted);
  text-decoration: line-through;
  margin-top: 4px;
}

.csc-product-trial {
  font-size: 12px;
  color: #e67e22;
  margin-top: 6px;
}

.csc-product-foot {
  padding: 0 20px 20px;
}

.csc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 44px;
  border: none;
  border-radius: var(--csc-radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.18s ease;
}

.csc-btn-primary {
  background: var(--csc-brand);
  color: #fff !important;
  box-shadow: 0 8px 20px var(--csc-brand-glow);
}

.csc-btn-primary:hover {
  background: #0a46dc;
  transform: translateY(-1px);
}

.csc-btn-ghost {
  background: #f5f5f5;
  color: var(--csc-muted) !important;
  cursor: not-allowed;
}

.csc-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--csc-muted);
}

.csc-empty i {
  font-size: 48px;
  opacity: 0.25;
  display: block;
  margin-bottom: 16px;
}

.csc-pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

/* —— 结算页 —— */
.csc-checkout {
  width: 100%;
  max-width: none;
  margin: 0;
}

.csc-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 0;
  list-style: none;
}

.csc-steps li {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--csc-muted);
  background: var(--csc-surface);
  border: 1px solid var(--csc-line);
  border-radius: var(--csc-radius-sm);
}

.csc-steps li.is-on {
  color: #fff;
  background: var(--csc-brand);
  border-color: var(--csc-brand);
}

.csc-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 991px) {
  .csc-checkout-grid {
    grid-template-columns: 1fr;
  }
}

.csc-panel {
  background: var(--csc-surface);
  border: 1px solid var(--csc-line);
  border-radius: var(--csc-radius);
  box-shadow: var(--csc-shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.csc-panel-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--csc-line);
  font-size: 16px;
  font-weight: 650;
}

.csc-panel-body {
  padding: 22px;
}

.csc-aside {
  position: sticky;
  top: 88px;
}

.csc-aside .csc-panel-body {
  max-height: 52vh;
  overflow-y: auto;
}

.csc-cart-line {
  padding: 16px 0;
  border-bottom: 1px dashed var(--csc-line);
}

.csc-cart-line:last-child {
  border-bottom: none;
}

.csc-cart-line-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.csc-cart-line-head strong {
  font-size: 15px;
}

.csc-cart-line-actions a {
  color: var(--csc-muted);
  margin-left: 8px;
  font-size: 14px;
}

.csc-cart-line-actions a:hover {
  color: var(--csc-brand);
}

.csc-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0 8px;
  font-size: 15px;
}

.csc-total-bar .amount {
  font-size: 26px;
  font-weight: 700;
  color: var(--csc-brand);
}

.csc-pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.csc-pay-tile {
  border: 2px solid var(--csc-line);
  border-radius: var(--csc-radius-sm);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.csc-pay-tile img {
  max-height: 28px;
  max-width: 100%;
}

.csc-pay-tile.active,
.addfunds-payment.active {
  border-color: var(--csc-brand) !important;
  background: rgba(29, 92, 255, 0.06) !important;
}

.csc-checkout .checkboxDiv {
  border: 1px solid var(--csc-line);
  border-radius: var(--csc-radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
}

.csc-checkout .checkboxSelect {
  border-color: var(--csc-brand) !important;
  background: rgba(29, 92, 255, 0.05);
}

.csc-checkout .goods_info .title {
  color: var(--csc-brand);
  cursor: pointer;
  font-size: 13px;
}

.csc-checkout .goods_info .info {
  font-size: 12px;
  color: var(--csc-muted);
  padding-left: 12px;
}

.csc-checkout .submit-btn {
  width: 100%;
  height: 48px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--csc-radius-sm);
  background: var(--csc-brand) !important;
  border: none !important;
}

.csc-mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  padding: 12px 16px;
  background: var(--csc-surface);
  border-top: 1px solid var(--csc-line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .csc-shop-hero {
    padding: 20px;
  }

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

  .csc-mobile-bar {
    display: block;
  }

  .csc-aside .payDiv.mobile-hide {
    display: none !important;
  }
}

/* 完成页 */
.csc-done {
  max-width: 520px;
  margin: 60px auto;
  text-align: center;
  padding: 48px 32px;
  background: var(--csc-surface);
  border-radius: 24px;
  box-shadow: var(--csc-shadow);
}

.csc-done-ring {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8fff3, #d0fae5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.csc-done-ring i {
  font-size: 44px;
  color: #00b578;
}

.csc-done h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.csc-done p {
  color: var(--csc-muted);
  margin-bottom: 28px;
}

.csc-done .csc-btn {
  width: auto;
  min-width: 140px;
  margin: 0 6px;
}

/* 配置页摘要 */
.csc-summary table {
  width: 100%;
}

.csc-summary td {
  padding: 10px 4px !important;
  border: none !important;
  font-size: 14px;
  vertical-align: top;
}

.csc-summary .color-999 {
  color: var(--csc-muted) !important;
}

.csc-summary #addToCartBtn,
.csc-summary #addToCartBtnTwo {
  background: var(--csc-brand) !important;
  border: none !important;
  border-radius: var(--csc-radius-sm);
  padding: 10px 24px;
}
