/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f6f7f9;
  -webkit-tap-highlight-color: transparent;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  color: #1e293b;
  padding-bottom: 112px;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* 隐藏滚动条 */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 颜色变量 */
:root {
  --brand-green: #2b7040;
  --brand-green-dark: #1f532f;
  --brand-green-light: #e9f4ee;
  --brand-orange: #f27922;
  --brand-orange-light: #fff4ed;
  --brand-gold: #d99826;
  --surface-bg: #f6f7f9;
  --surface-card: #ffffff;
  --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 8px 24px rgba(43, 112, 64, 0.12);
}

/* 手机状态栏 */
.status-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 20px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  border-bottom: 1px solid rgba(243, 244, 246, 0.5);
  max-width: 448px;
  margin: 0 auto;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #334155;
}

/* 顶部公告栏 */
.notice-bar {
  background: linear-gradient(to right, var(--brand-green), #065f46);
  color: white;
  font-size: 11px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  max-width: 448px;
  margin: 0 auto;
}

.notice-content {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.notice-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.notice-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-contact {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #d1fae5;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 10px;
  flex-shrink: 0;
}

/* 主导航栏 */
.main-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: white;
  box-shadow: var(--shadow-soft);
  max-width: 448px;
  margin: 0 auto;
}

.header-row {
  padding: 10px 14px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 3px solid var(--brand-green);
}

.logo-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.logo-text {
  line-height: 1;
}

.logo-title {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.025em;
  color: #0f172a;
  display: block;
}

.logo-subtitle {
  font-size: 9px;
  color: var(--brand-green);
  font-weight: 500;
  display: block;
  transform: scale(0.9);
  transform-origin: left;
}

.search-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-container label {
  display: none;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 12px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 6px 12px 6px 28px;
  background: #f1f5f9;
  font-size: 12px;
  border-radius: 9999px;
  border: none;
  color: #334155;
  outline: none;
}

.search-input::placeholder {
  color: #94a3b8;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #475569;
  padding: 0 4px;
  flex-shrink: 0;
}

.action-icon-wrapper {
  position: relative;
}

.action-icon {
  font-size: 16px;
  color: var(--brand-green);
}

.action-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  background: var(--brand-orange);
  border-radius: 50%;
}

.action-text {
  font-size: 9px;
  font-weight: 500;
  margin-top: 2px;
}

/* 标签导航 */
.tab-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  overflow-x: auto;
  border-top: 1px solid #f8fafc;
}

.tab-item {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
}

.tab-item.active {
  background: var(--brand-green);
  color: white;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 主体内容 */
.main-content {
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 448px;
  margin: 0 auto;
}

/* Hero Banner */
.hero-banner {
  border-radius: 16px;
  background: linear-gradient(to right, var(--brand-green), #065f46);
  color: white;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 10px;
  font-weight: 500;
  margin-bottom: 8px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-desc {
  font-size: 12px;
  color: #d1fae5;
  margin-top: 4px;
  line-height: 1.6;
  opacity: 0.95;
}

.hero-features {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}

.feature-tag.primary {
  background: #fbbf24;
  color: #451a03;
  font-weight: 700;
}

.feature-tag.secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 金刚区导航 */
.category-grid {
  background: white;
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #f1f5f9;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  transition: background-color 0.2s;
}

.category-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.category-text {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}

/* 楼层标题 */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  margin-bottom: 10px;
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-indicator {
  width: 6px;
  height: 16px;
  background: var(--brand-green);
  border-radius: 9999px;
}

.section-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 16px;
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 11px;
  color: #94a3b8;
}

/* 列表项 */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-item {
  background: white;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.item-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.item-content {
  flex: 1;
}

.item-title {
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
}

.item-desc {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.6;
}

.item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.item-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-subtitle {
  margin-top: 6px;
  margin-bottom: 10px;
}

.item-tag {
  font-size: 10px;
  color: var(--brand-green);
  background: var(--brand-green-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  border: 1px solid #d1fae5;
}

.item-action {
  font-size: 12px;
  color: var(--brand-green);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* 商品网格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.product-card {
  background: white;
  border-radius: 16px;
  padding: 10px;
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: 1 / 1;
  margin-bottom: 8px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.product-brand {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
}

.product-title {
  font-weight: 700;
  font-size: 12px;
  color: #0f172a;
  margin-top: 2px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.product-tag {
  font-size: 9px;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 4px;
  border-radius: 4px;
}

.product-footer {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price-label {
  font-size: 10px;
  color: #94a3b8;
}

.product-price {
  color: #e11d48;
  font-weight: 700;
  font-size: 14px;
  margin-left: 2px;
}

.product-add-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 保障卡片 */
.guarantee-section {
  background: white;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-soft);
}

.guarantee-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.guarantee-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 14px;
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  font-size: 12px;
}

.guarantee-item {
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.guarantee-item-title {
  font-weight: 700;
  color: #1e293b;
  display: block;
}

.guarantee-item-desc {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  display: block;
}

.guarantee-footer {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  gap: 8px;
}

.contact-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-btn {
  padding: 6px 12px;
  background: var(--brand-green);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  flex-shrink: 0;
}

/* 大客户卡片 */
.vip-card {
  background: linear-gradient(to right, #fffbeb, #fff7ed);
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vip-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #f59e0b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.vip-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.vip-desc {
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
}

.vip-btn {
  background: #d97706;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 底部版权 */
.footer-notice {
  text-align: center;
  padding: 8px 0 24px;
  color: #94a3b8;
  font-size: 11px;
}

.footer-title {
  font-weight: 500;
  color: #64748b;
  margin-bottom: 4px;
}

.footer-desc {
  font-size: 10px;
}

/* 底部导航栏 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding: 6px 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 50;
  font-size: 10px;
  max-width: 448px;
  margin: 0 auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #64748b;
}

.nav-item.active {
  color: var(--brand-green);
  font-weight: 700;
}

.nav-icon-wrapper {
  position: relative;
}

.nav-icon {
  font-size: 18px;
}

.nav-text {
  margin-top: 2px;
}

.nav-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--brand-orange);
  color: white;
  font-size: 9px;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
}

.nav-center-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -14px;
}

.nav-center-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(43, 112, 64, 0.3);
}

.nav-center-text {
  margin-top: 2px;
  color: #334155;
  font-weight: 600;
}

/* 颜色辅助类 */
.bg-rose-50 {
  background-color: #fff1f2;
}
.text-rose-600 {
  color: #e11d48;
}
.bg-emerald-50 {
  background-color: #ecfdf5;
}
.text-emerald-600 {
  color: #059669;
}
.bg-amber-50 {
  background-color: #fffbeb;
}
.text-amber-600 {
  color: #d97706;
}
.bg-blue-50 {
  background-color: #eff6ff;
}
.text-blue-600 {
  color: #2563eb;
}
.bg-indigo-50 {
  background-color: #eef2ff;
}
.text-indigo-600 {
  color: #4f46e5;
}
.bg-violet-50 {
  background-color: #f5f3ff;
}
.text-violet-600 {
  color: #7c3aed;
}
.bg-orange-50 {
  background-color: #fff7ed;
}
.text-orange-600 {
  color: #ea580c;
}
.bg-teal-50 {
  background-color: #f0fdfa;
}
.text-teal-600 {
  color: #0d9488;
}
.bg-red-50 {
  background-color: #fef2f2;
}
.text-red-600 {
  color: #dc2626;
}

.bg-rose-600 {
  background-color: #e11d48;
}
.bg-amber-600 {
  background-color: #d97706;
}
.bg-emerald-700 {
  background-color: #047857;
}
.bg-red-700 {
  background-color: #b91c1c;
}
.bg-amber-800 {
  background-color: #92400e;
}
.bg-yellow-600 {
  background-color: #ca8a04;
}
