:root {
  --tc-primary: #0052d9;
  --tc-primary-strong: #0a63ff;
  --tc-text: #1f2d3d;
  --tc-muted: #5f6f86;
  --tc-line: #e5edf8;
  --tc-bg: #f6f9ff;
  --tc-surface: #ffffff;
  --tc-shadow: 0 18px 42px rgba(9, 18, 33, 0.08);
  --tc-radius-lg: 20px;
  --tc-radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  color: var(--tc-text);
  background:
    radial-gradient(circle at 6% 0%, rgba(0, 82, 217, 0.08), transparent 28%),
    radial-gradient(circle at 94% 8%, rgba(96, 110, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #f7faff 0, #ffffff 460px, #f8fbff 100%);
}

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

.tc-shell {
  width: min(1280px, calc(100vw - 40px));
  margin: 0 auto;
}

.tc-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 237, 248, 0.9);
  backdrop-filter: blur(14px);
}

.tc-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.tc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.tc-brand i {
  color: var(--tc-primary);
}

.tc-search {
  flex: 1;
  max-width: 580px;
  display: flex;
  align-items: center;
  border: 1px solid var(--tc-line);
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
}

.tc-search input {
  flex: 1;
  height: 42px;
  border: 0;
  padding: 0 14px;
  outline: none;
  font-size: 14px;
}

.tc-search button {
  width: 44px;
  height: 42px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--tc-primary) 0%, var(--tc-primary-strong) 100%);
  cursor: pointer;
}

.tc-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tc-auth-stack {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.tc-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--tc-primary) 0%, var(--tc-primary-strong) 100%);
  box-shadow: 0 12px 22px rgba(0, 82, 217, 0.2);
}

.tc-btn-secondary {
  color: var(--tc-primary);
  border-color: rgba(0, 82, 217, 0.18);
  background: #fff;
}

.tc-cart-entry {
  position: relative;
  padding-right: 32px;
}

.tc-cart-entry i {
  font-size: 13px;
}

.tc-nav-cart {
  position: relative;
  padding-right: 24px;
}

.tc-cart-badge {
  position: absolute;
  top: 3px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(255, 77, 79, 0.28);
}

.tc-cart-badge-nav {
  top: 12px;
  right: 2px;
}

.tc-cart-badge.is-hidden {
  display: none;
}

.tc-account-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 12px 6px 8px;
  border-radius: 12px;
  border: 1px solid rgba(0, 82, 217, 0.14);
  background: linear-gradient(135deg, #f6f9ff 0%, #ffffff 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tc-account-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 82, 217, 0.26);
  box-shadow: 0 10px 22px rgba(0, 82, 217, 0.12);
}

.tc-account-avatar {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tc-primary) 0%, var(--tc-primary-strong) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(0, 82, 217, 0.22);
}

.tc-account-meta {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  max-width: 180px;
}

.tc-account-meta strong,
.tc-account-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-account-meta strong {
  font-size: 13px;
  color: var(--tc-text);
}

.tc-account-meta small {
  font-size: 11px;
  color: var(--tc-muted);
}

.tc-nav {
  border-top: 1px solid #f1f5fb;
}

.tc-nav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 56px;
}

.tc-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  height: 56px;
  color: var(--tc-text);
  font-size: 14px;
  font-weight: 500;
}

.tc-nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: transparent;
}

.tc-nav-link.is-active,
.tc-nav-link:hover {
  color: var(--tc-primary);
}

.tc-nav-link.is-active::after {
  background: var(--tc-primary);
}

.tc-meta {
  position: sticky;
  top: 128px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--tc-line);
}

.tc-meta-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
}

.tc-breadcrumb,
.tc-subnav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tc-breadcrumb {
  font-size: 13px;
  color: #8a9ab1;
}

.tc-breadcrumb strong {
  color: var(--tc-text);
  font-weight: 600;
}

.tc-subnav-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--tc-line);
  background: #fff;
  font-size: 13px;
  color: var(--tc-text);
}

.tc-subnav-link.is-active,
.tc-subnav-link:hover {
  color: var(--tc-primary);
  border-color: rgba(0, 82, 217, 0.2);
  background: linear-gradient(135deg, #edf4ff 0%, #f9fbff 100%);
}

.tc-main {
  padding: 30px 0 60px;
}

.tc-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 380px;
  gap: 24px;
  padding: 36px;
  border-radius: 24px;
  border: 1px solid var(--tc-line);
  background: linear-gradient(110deg, #f7faff 0%, #eaf2ff 52%, #f8fbff 100%);
  box-shadow: var(--tc-shadow);
}

.tc-hero::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -52px;
  width: 280px;
  height: 280px;
  border-radius: 40px;
  transform: rotate(24deg);
  background: linear-gradient(135deg, rgba(0, 82, 217, 0.12), rgba(96, 110, 255, 0.08));
}

.tc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 82, 217, 0.12);
  color: var(--tc-primary);
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
}

.tc-hero h1,
.tc-hero h2 {
  margin: 12px 0 14px;
  font-size: clamp(2rem, 2.8vw, 3rem);
  line-height: 1.16;
}

.tc-hero p {
  color: var(--tc-muted);
  font-size: 14px;
  line-height: 1.8;
}

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

.tc-hero-panel {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  border: 1px solid rgba(0, 82, 217, 0.14);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(9, 18, 33, 0.08);
  padding: 20px;
  display: grid;
  gap: 12px;
}

.tc-stat {
  border: 1px solid #ebf1fb;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
}

.tc-stat strong {
  display: block;
  font-size: 1.65rem;
}

.tc-grid {
  display: grid;
  gap: 18px;
}

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

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

.tc-card {
  border: 1px solid var(--tc-line);
  border-radius: var(--tc-radius-lg);
  background: var(--tc-surface);
  box-shadow: var(--tc-shadow);
}

.tc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #eef3fb;
}

.tc-card-title {
  margin: 0;
  font-size: 1.05rem;
}

.tc-card-body {
  padding: 20px;
}

.tc-product-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #e8eff9;
  background: #fff;
}

.tc-product-card h3 {
  margin: 10px 0 10px;
  font-size: 1.05rem;
}

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

.tc-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--tc-primary);
  background: #eef4ff;
}

.tc-section {
  margin-top: 28px;
}

.tc-section h2 {
  margin: 0 0 14px;
  font-size: 1.9rem;
}

.tc-section p.tc-section-desc {
  margin: 0 0 18px;
  color: var(--tc-muted);
}

.tc-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
}

.tc-sidebar-list {
  display: grid;
  gap: 8px;
}

.tc-side-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--tc-line);
  background: #f8fbff;
  font-size: 14px;
}

.tc-side-link.is-active,
.tc-side-link:hover {
  color: var(--tc-primary);
  border-color: rgba(0, 82, 217, 0.2);
  background: #fff;
}

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

.tc-product-item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  border: 1px solid #e8eff9;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.tc-product-item .name {
  font-weight: 700;
  font-size: 15px;
}

.tc-product-item .desc {
  font-size: 13px;
  color: var(--tc-muted);
  line-height: 1.7;
}

.tc-product-item .price {
  font-size: 22px;
  font-weight: 700;
  color: var(--tc-primary);
}

.tc-product-actions {
  display: flex;
  gap: 8px;
}

.tc-cart-row {
  display: grid;
  grid-template-columns: 1fr 120px 90px 120px;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px dashed #e8eff9;
}

.tc-cart-row:last-child {
  border-bottom: 0;
}

.tc-empty {
  padding: 24px;
  text-align: center;
  color: var(--tc-muted);
}

.tc-ip-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tc-ip-tab {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--tc-line);
  cursor: pointer;
  background: #fff;
}

.tc-ip-tab.is-active {
  color: var(--tc-primary);
  border-color: rgba(0, 82, 217, 0.2);
  background: #eef4ff;
}

.tc-ip-frame {
  width: 100%;
  min-height: 720px;
  border: 0;
  border-radius: 14px;
  background: #fff;
}

.tc-footer {
  margin-top: 28px;
  border-top: 1px solid var(--tc-line);
  background: #fff;
}

.tc-footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding: 26px 0;
}

.tc-footer h4 {
  margin: 0 0 10px;
  font-size: 14px;
}

.tc-footer a {
  display: block;
  color: var(--tc-muted);
  font-size: 13px;
  margin-bottom: 7px;
}

.tc-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border-top: 1px solid #eef3fb;
  font-size: 12px;
  color: #8a9ab1;
}

@media (max-width: 1100px) {
  .tc-shell {
    width: min(1280px, calc(100vw - 24px));
  }

  .tc-header-actions,
  .tc-auth-stack {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .tc-hero,
  .tc-layout {
    grid-template-columns: 1fr;
  }

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

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

  .tc-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .tc-header-top {
    min-height: 62px;
  }

  .tc-search {
    display: none;
  }

  .tc-nav-inner {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .tc-nav-inner::-webkit-scrollbar {
    display: none;
  }

  .tc-header-actions,
  .tc-auth-stack {
    width: 100%;
    justify-content: stretch;
  }

  .tc-header-actions > *,
  .tc-auth-stack > * {
    flex: 1 1 auto;
  }

  .tc-account-chip {
    justify-content: center;
  }

  .tc-meta {
    top: 118px;
  }

  .tc-main {
    padding-top: 18px;
  }

  .tc-hero {
    padding: 22px;
  }

  .tc-hero h1,
  .tc-hero h2 {
    font-size: 1.8rem;
  }

  .tc-grid-3,
  .tc-grid-4,
  .tc-product-grid,
  .tc-footer-grid {
    grid-template-columns: 1fr;
  }

  .tc-cart-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 0;
  }

  .tc-footer-meta {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px 0;
  }
}
