/* 全局样式 */
:root {
  --primary-color: #3b82f6; /* More modern blue */
  --primary-light: #eff6ff;
  --secondary-color: #f59e0b; /* More modern orange */
  --secondary-light: #fffbeb;
  --success-color: #10b981;
  --bg-gray: #f3f4f6;
  --text-main: #1f2937;
  --text-sub: #6b7280;
  --border-color: #e5e7eb;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-gray);
  color: var(--text-main);
  -webkit-tap-highlight-color: transparent;
  line-height: 1.6;
}

/* 布局容器 */
.container {
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 80px;
  background: var(--bg-gray);
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* 顶部卡片区域 */
.top-card-area {
  margin: 12px 12px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 品牌头部 */
.top-brand-header {
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 100%);
  padding: 12px 16px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.top-brand-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.brand-content {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.shield-icon {
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(90deg, #fff 0%, #bfdbfe 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
  letter-spacing: 1px;
}

.brand-tagline {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 12px;
}

/* 顶部搜索栏 */
.header-search {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 12px;
  background: #fff;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f9fafb;
  border-radius: 20px;
  padding: 8px 16px;
  gap: 10px;
  border: 1px solid var(--border-color);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
  color: var(--text-main);
}

.search-box svg {
  color: var(--text-sub);
}

.service-icon {
  color: var(--text-main);
  display: flex;
  align-items: center;
  cursor: pointer;
}


/* 公告栏 */
.notice-bar {
  margin: 12px 12px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  box-shadow: var(--card-shadow);
}

.notice-tag {
  background: var(--secondary-light);
  color: var(--secondary-color);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 11px;
}

.notice-content {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

/* 宫格菜单 */
.grid-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 20px 12px;
  background: #fff;
  margin: 12px 12px;
  border-radius: 12px;
  gap: 20px 4px;
  box-shadow: var(--card-shadow);
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.2s;
}

.menu-item:active {
  transform: scale(0.95);
}

.menu-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.menu-item span {
  font-size: 12px;
  font-weight: 500;
}

/* 热门回收列表 */
.section-card {
  margin: 12px 12px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.section-header {
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header .more {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-sub);
  text-decoration: none;
}

.card-list {
  padding: 0 20px;
}

.card-item {
  display: flex;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
  gap: 14px;
}

.card-item:last-child {
  border-bottom: none;
}

.card-img {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.card-info {
  flex: 1;
}

.card-name {
  font-size: 15px;
  font-weight: 600;
}

.card-rate {
  font-size: 12px;
  color: var(--success-color);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-rate::before {
  content: "●";
  font-size: 8px;
}

.card-btn {
  background: var(--primary-color);
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

/* 回收流程 */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 24px 16px;
  gap: 16px;
  position: relative;
}

.process-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-num {
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.process-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
}

/* 底部导航 */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-sub);
  font-size: 11px;
  gap: 4px;
  transition: color 0.2s;
}

.tab-item.active {
  color: var(--primary-color);
}

.tab-item svg {
  width: 24px;
  height: 24px;
}

/* 信任背书 */
.trust-section {
  display: flex;
  justify-content: space-around;
  padding: 20px 16px;
  background: transparent;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-sub);
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--success-color);
}

.trust-item span {
  font-size: 11px;
}