/* ===== 上海太一智枢科技发展有限公司 - 全局样式 ===== */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --primary-bg: #f0f9ff;
  --accent: #06b6d4;
  --accent-light: #67e8f9;
  --text-dark: #0f172a;
  --text-mid: #475569;
  --text-light: #94a3b8;
  --bg-white: #ffffff;
  --bg-gray: #f8fafc;
  --bg-section: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(14,165,233,0.08);
  --shadow-md: 0 4px 12px rgba(14,165,233,0.12);
  --shadow-lg: 0 8px 30px rgba(14,165,233,0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-gray);
  line-height: 1.6;
  font-size: 14px;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部信息栏 ===== */
.top-bar {
  background: linear-gradient(90deg, #0c4a6e, #0e7490);
  color: #e0f2fe;
  font-size: 12px;
  padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left span { margin-right: 20px; }
.top-bar-right a { margin-left: 16px; color: #e0f2fe; }
.top-bar-right a:hover { color: #fff; }

/* ===== 头部导航 ===== */
.header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; font-weight: bold;
}
.logo-text h1 { font-size: 18px; color: var(--text-dark); font-weight: 700; }
.logo-text p { font-size: 11px; color: var(--text-light); letter-spacing: 1px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  position: relative;
}
.nav a:hover, .nav a.active {
  color: var(--primary);
  background: var(--primary-bg);
}
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); color: #fff; }
.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary-bg); }
.btn-lg { padding: 12px 32px; font-size: 16px; }
.btn-sm { padding: 5px 14px; font-size: 12px; }
.btn-block { width: 100%; }

/* ===== Banner ===== */
.banner {
  background: linear-gradient(135deg, #0c4a6e 0%, #0e7490 40%, #0891b2 100%);
  color: #fff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(56,189,248,0.3) 0%, transparent 70%);
  border-radius: 50%;
}
.banner::after {
  content: '';
  position: absolute;
  bottom: -30%; left: 10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(103,232,249,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.banner .container { position: relative; z-index: 1; }
.banner h2 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.banner p { font-size: 16px; opacity: 0.9; margin-bottom: 28px; max-width: 600px; }
.banner-search {
  display: flex;
  max-width: 600px;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.banner-search input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  font-size: 14px;
}
.banner-search button {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

/* ===== 分类快捷入口 ===== */
.quick-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
.quick-cat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}
.quick-cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.quick-cat-icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.quick-cat-icon.blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.quick-cat-icon.cyan { background: linear-gradient(135deg, #cffafe, #a5f3fc); color: #0891b2; }
.quick-cat-info h3 { font-size: 18px; margin-bottom: 6px; }
.quick-cat-info p { font-size: 13px; color: var(--text-light); }

/* ===== 通用区块 ===== */
.section { padding: 50px 0; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
.section-title { font-size: 24px; font-weight: 700; color: var(--text-dark); position: relative; padding-left: 16px; }
.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 24px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.section-subtitle { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.section-more { color: var(--primary); font-size: 13px; font-weight: 500; }
.section-more:hover { color: var(--primary-dark); }

/* ===== 信息卡片列表 ===== */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.info-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-section);
}
.info-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.info-card-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 8px;
}
.tag-tech { background: #dbeafe; color: #2563eb; }
.tag-ip { background: #cffafe; color: #0891b2; }
.info-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.info-card-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.info-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-light);
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}
.info-card-price { color: #f59e0b; font-weight: 600; font-size: 14px; }

/* ===== 列表页 ===== */
.page-banner {
  background: linear-gradient(135deg, #0c4a6e, #0891b2);
  color: #fff;
  padding: 40px 0;
}
.page-banner h2 { font-size: 28px; margin-bottom: 8px; }
.page-banner p { opacity: 0.85; font-size: 14px; }

.list-layout { display: flex; gap: 24px; padding: 30px 0; }
.list-main { flex: 1; }
.list-sidebar { width: 280px; flex-shrink: 0; }

.filter-bar {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.filter-row { display: flex; align-items: center; margin-bottom: 10px; }
.filter-row:last-child { margin-bottom: 0; }
.filter-label { width: 70px; font-size: 13px; color: var(--text-light); flex-shrink: 0; }
.filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-option {
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
}
.filter-option:hover { color: var(--primary); }
.filter-option.active { background: var(--primary); color: #fff; }

.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 13px;
}
.sort-tabs { display: flex; gap: 4px; }
.sort-tab { padding: 6px 14px; border-radius: 4px; cursor: pointer; color: var(--text-mid); }
.sort-tab.active { background: var(--primary-bg); color: var(--primary); font-weight: 500; }
.sort-count { color: var(--text-light); }

/* ===== 侧边栏 ===== */
.sidebar-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-bg);
}
.hot-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 13px;
}
.hot-list li:last-child { border-bottom: none; }
.hot-list a { color: var(--text-mid); display: block; }
.hot-list a:hover { color: var(--primary); }
.hot-rank {
  display: inline-block;
  width: 20px; height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 8px;
  background: var(--bg-section);
  color: var(--text-light);
}
.hot-rank.top1 { background: #ef4444; color: #fff; }
.hot-rank.top2 { background: #f97316; color: #fff; }
.hot-rank.top3 { background: #eab308; color: #fff; }

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
}
.pagination button, .pagination span {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-mid);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.pagination button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination .page-info { border: none; background: transparent; color: var(--text-light); }

/* ===== 详情页 ===== */
.detail-layout { display: flex; gap: 24px; padding: 30px 0; }
.detail-main { flex: 1; }
.detail-sidebar { width: 300px; flex-shrink: 0; }

.detail-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.detail-header { margin-bottom: 24px; }
.detail-tag { margin-bottom: 12px; }
.detail-title { font-size: 24px; font-weight: 700; line-height: 1.4; margin-bottom: 16px; }
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-light);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.detail-meta span { display: flex; align-items: center; gap: 4px; }

.detail-image {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  max-height: 400px;
  object-fit: cover;
}

.detail-content { font-size: 15px; line-height: 1.8; color: var(--text-mid); }
.detail-content h3 { font-size: 17px; color: var(--text-dark); margin: 20px 0 10px; }
.detail-content p { margin-bottom: 12px; }
.detail-content ul { padding-left: 20px; margin-bottom: 12px; }
.detail-content ul li { list-style: disc; margin-bottom: 6px; }

.paywall {
  position: relative;
  margin-top: 20px;
  padding: 30px;
  background: linear-gradient(135deg, #f0f9ff, #ecfeff);
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px dashed var(--primary-light);
}
.paywall::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(240,249,255,0.9));
  pointer-events: none;
}
.paywall-icon { font-size: 36px; margin-bottom: 12px; }
.paywall h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-dark); }
.paywall p { font-size: 13px; color: var(--text-light); margin-bottom: 16px; }
.paywall-price { font-size: 28px; color: #f59e0b; font-weight: 700; margin-bottom: 16px; }

/* 详情侧边栏 */
.contact-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.contact-card h3 { font-size: 16px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-bg); }
.contact-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; color: var(--text-mid); }
.contact-row .label { color: var(--text-light); width: 60px; flex-shrink: 0; }
.contact-row .value { color: var(--text-dark); font-weight: 500; }

/* ===== 表单页（登录/注册/发布/入驻） ===== */
.form-page {
  min-height: calc(100vh - 72px - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfeff 100%);
}
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}
.form-card.wide { max-width: 720px; }
.form-header { text-align: center; margin-bottom: 28px; }
.form-header h2 { font-size: 24px; margin-bottom: 8px; }
.form-header p { font-size: 13px; color: var(--text-light); }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-mid); margin-bottom: 6px; }
.form-label .required { color: #ef4444; margin-left: 2px; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dark);
  transition: var(--transition);
  background: #fff;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; }

.form-tip { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.form-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-light); }
.form-footer a { color: var(--primary); font-weight: 500; }

.form-agreement { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text-light); margin-bottom: 18px; }
.form-agreement input { margin-top: 2px; }
.form-agreement a { color: var(--primary); }

/* 图片上传 */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-gray);
}
.upload-area:hover { border-color: var(--primary); background: var(--primary-bg); }
.upload-area .upload-icon { font-size: 36px; color: var(--text-light); margin-bottom: 8px; }
.upload-area p { font-size: 13px; color: var(--text-light); }
.upload-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.upload-preview-item {
  width: 100px; height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}
.upload-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview-item .remove {
  position: absolute;
  top: 2px; right: 2px;
  width: 20px; height: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ===== 协议页面 ===== */
.agreement-page { padding: 40px 0; }
.agreement-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}
.agreement-card h2 { font-size: 24px; text-align: center; margin-bottom: 8px; }
.agreement-card .update-time { text-align: center; color: var(--text-light); font-size: 12px; margin-bottom: 30px; }
.agreement-card h3 { font-size: 17px; color: var(--text-dark); margin: 24px 0 10px; }
.agreement-card p { font-size: 14px; line-height: 1.8; color: var(--text-mid); margin-bottom: 10px; }
.agreement-card ul { padding-left: 24px; margin-bottom: 10px; }
.agreement-card ul li { list-style: disc; font-size: 14px; line-height: 1.8; color: var(--text-mid); margin-bottom: 6px; }

/* ===== 底部 ===== */
.footer {
  background: linear-gradient(180deg, #0c4a6e, #082f49);
  color: #cbd5e1;
  padding: 50px 0 0;
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand h3 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.8; opacity: 0.8; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; color: #94a3b8; }
.footer-col a:hover { color: #38bdf8; }
.footer-contact p { font-size: 13px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #38bdf8; }
.footer-bottom .beian { margin-left: 12px; }

/* ===== 商家入驻 ===== */
.merchant-hero {
  background: linear-gradient(135deg, #0c4a6e, #0891b2);
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.merchant-hero h2 { font-size: 32px; margin-bottom: 12px; }
.merchant-hero p { font-size: 15px; opacity: 0.9; }
.merchant-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.step-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step-num {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  margin: 0 auto 12px;
}
.step-card h4 { font-size: 15px; margin-bottom: 6px; }
.step-card p { font-size: 12px; color: var(--text-light); }

/* ===== 提示框 ===== */
.toast {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,23,42,0.9);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* ===== 空状态 ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .list-sidebar, .detail-sidebar { display: none; }
  .merchant-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .info-grid { grid-template-columns: 1fr; }
  .quick-cats { grid-template-columns: 1fr; }
  .nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .banner h2 { font-size: 26px; }
  .form-card { padding: 24px; }
}
