/* ============================================================
   大头圆圆 - 第三方软件开发服务信息发布平台
   全站样式
   ============================================================ */
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
  background: #f5f7fb;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}
a { color: #1d4ed8; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---------- 顶栏 ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky; top:0; z-index: 50;
}
.site-header .inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 14px 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: #111827;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 4px 10px rgba(29,78,216,.18);
}
.brand-text { line-height: 1.15; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: .5px; color:#0f172a; }
.brand-slogan { font-size: 12px; color:#6b7280; margin-top: 2px; }
.nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
}
.nav a {
  padding: 8px 14px; border-radius: 8px;
  color: #374151; font-size: 14px;
  text-decoration: none;
}
.nav a:hover { background: #f1f5f9; text-decoration: none; }
.nav a.active { color:#1d4ed8; background: #eff6ff; }
.nav .nav-cta {
  background: #1d4ed8; color: #fff !important;
  padding: 8px 18px; border-radius: 8px;
  margin-left: 8px;
}
.nav .nav-cta:hover { background: #1e40af; }
.nav .nav-user {
  display: flex; align-items: center; gap: 6px;
  color: #475569; padding: 8px 12px;
}
.nav .nav-user svg { width:16px; height:16px; }

/* ---------- 容器 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page { padding: 28px 0 60px; }
.page-title {
  font-size: 22px; font-weight: 700; color: #0f172a;
  margin: 0 0 6px;
}
.page-sub { color: #6b7280; font-size: 13px; margin-bottom: 22px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #0f1e4d 0%, #1d4ed8 60%, #3b82f6 100%);
  color:#fff; padding: 64px 24px 72px;
  position: relative; overflow: hidden;
}
.hero::before {
  content:""; position:absolute; inset:0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.08) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.10) 0, transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 {
  font-size: 36px; font-weight: 800; line-height: 1.2;
  margin: 0 0 14px; letter-spacing: .5px;
}
.hero h1 .accent { color: #fbbf24; }
.hero p.lead {
  font-size: 15px; opacity: .92; max-width: 720px; margin: 0 0 28px;
}
.hero .search {
  display: flex; align-items: center; max-width: 720px;
  background: #fff; border-radius: 12px;
  padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.hero .search input {
  flex: 1; border: 0; outline: 0; padding: 12px 14px;
  font-size: 14px; color:#0f172a; background: transparent;
}
.hero .search button {
  border: 0; background: #1d4ed8; color:#fff;
  padding: 10px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.hero .search button:hover { background: #1e40af; }
.hero-stats {
  display: flex; gap: 48px; margin-top: 30px; flex-wrap: wrap;
}
.hero-stats .item .v { font-size: 24px; font-weight: 700; }
.hero-stats .item .l { font-size: 12px; opacity: .8; }

/* ---------- 区块 ---------- */
.section { padding: 48px 0; }
.section h2 {
  font-size: 22px; font-weight: 700; color: #0f172a;
  margin: 0 0 6px;
}
.section .section-sub { color: #6b7280; font-size: 13px; margin-bottom: 24px; }

/* 类目网格 */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}
.cat-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 18px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  text-decoration: none; color: #0f172a;
  transition: all .2s ease;
}
.cat-card:hover {
  border-color: #93c5fd; background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29,78,216,.08);
  text-decoration: none;
}
.cat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: #eff6ff; color: #1d4ed8;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cat-icon svg { width: 22px; height: 22px; }
.cat-meta { flex:1; min-width: 0; }
.cat-name { font-size: 15px; font-weight: 600; color:#0f172a; }
.cat-desc { font-size: 12px; color:#6b7280; margin-top: 4px; line-height: 1.5; }

/* 信息列表 */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.listing-card {
  background: #fff; border:1px solid #e5e7eb; border-radius: 14px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: all .2s ease;
  display: flex; flex-direction: column;
}
.listing-card:hover {
  text-decoration: none; transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
}
.listing-cover {
  width: 100%; aspect-ratio: 16/10;
  object-fit: cover; background: #f1f5f9;
}
.listing-cover-wrap { position: relative; }
.listing-cover-wrap .badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(15,23,42,.72); color: #fff;
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
  display: flex; align-items: center; gap: 4px;
  backdrop-filter: blur(4px);
}
.listing-body { padding: 14px 16px 16px; flex:1; display:flex; flex-direction:column; }
.listing-title {
  font-size: 15px; font-weight: 600; color:#0f172a;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow: hidden; min-height: 44px;
  line-height: 1.4;
}
.listing-meta {
  margin-top: 10px;
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 12px; color:#6b7280;
}
.listing-meta .meta-item { display: flex; align-items: center; gap: 4px; }
.listing-meta .meta-item svg { width: 12px; height: 12px; opacity: .7; }
.listing-foot {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color:#475569;
}
.listing-foot .phone { color:#1d4ed8; font-weight: 600; }

/* 列表筛选 */
.filter-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #fff; border:1px solid #e5e7eb; border-radius: 12px;
  padding: 12px 14px; margin-bottom: 18px;
}
.filter-bar .filter-label { font-size: 12px; color:#6b7280; margin-right: 4px; }
.filter-bar .chip {
  border: 1px solid #e5e7eb; background: #fff;
  padding: 6px 12px; border-radius: 999px; font-size: 12px;
  color: #374151; cursor: pointer;
}
.filter-bar .chip:hover { border-color: #93c5fd; }
.filter-bar .chip.active { background:#1d4ed8; color:#fff; border-color:#1d4ed8; }
.filter-bar .filter-search {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
}
.filter-bar .filter-search input {
  border: 1px solid #e5e7eb; background: #fff; outline: 0;
  padding: 6px 10px; border-radius: 8px; font-size: 12px; width: 200px;
}

/* 详情页 */
.detail-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}
.detail-main {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 24px 26px;
}
.detail-side {
  display: flex; flex-direction: column; gap: 16px;
}
.detail-title {
  font-size: 24px; font-weight: 700; color: #0f172a;
  margin: 0 0 14px; line-height: 1.4;
}
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  color: #6b7280; font-size: 13px;
  padding-bottom: 18px; border-bottom: 1px solid #f1f5f9;
  margin-bottom: 22px;
}
.detail-meta .item { display: flex; align-items: center; gap: 6px; }
.detail-meta .item svg { width: 14px; height: 14px; opacity: .7; }
.detail-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: #eff6ff; color: #1d4ed8;
  padding: 4px 10px; border-radius: 999px; font-size: 12px;
  font-weight: 500;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px; margin-bottom: 24px;
}
.gallery img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border-radius: 10px; border: 1px solid #e5e7eb;
}
.detail-desc h3 {
  font-size: 16px; font-weight: 600; color: #0f172a;
  margin: 0 0 10px;
}
.detail-desc p {
  color: #374151; line-height: 1.8; white-space: pre-line;
  margin: 0 0 12px; font-size: 14px;
}

.side-card {
  background: #fff; border:1px solid #e5e7eb; border-radius: 14px;
  padding: 18px;
}
.side-card h4 {
  margin: 0 0 12px; font-size: 14px; font-weight: 600; color:#0f172a;
  display: flex; align-items: center; gap: 6px;
}
.side-card h4 svg { width:16px; height:16px; color:#1d4ed8; }
.contact-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px dashed #e5e7eb;
  font-size: 13px;
}
.contact-row:last-child { border-bottom: 0; }
.contact-row .k { color:#6b7280; }
.contact-row .v { color:#0f172a; font-weight: 500; }
.phone-reveal {
  display: block; margin-top: 10px; padding: 12px;
  background: #fef3c7; border:1px dashed #f59e0b; border-radius: 10px;
  color: #92400e; font-size: 13px; line-height: 1.6;
}
.phone-reveal a {
  color: #92400e; font-weight: 600; text-decoration: underline;
}
.full-phone {
  display: block; margin-top: 10px; padding: 12px 14px;
  background: #eff6ff; border:1px solid #bfdbfe; border-radius: 10px;
  color: #1d4ed8; font-size: 15px; font-weight: 600;
  letter-spacing: .5px;
}

/* 表单 */
.form-card {
  max-width: 640px; margin: 0 auto;
  background: #fff; border:1px solid #e5e7eb; border-radius: 14px;
  padding: 28px 30px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block; font-size: 13px; color:#374151;
  margin-bottom: 6px; font-weight: 500;
}
.form-row label .req { color: #dc2626; }
.form-row input[type=text],
.form-row input[type=password],
.form-row input[type=tel],
.form-row select,
.form-row textarea {
  width: 100%; border: 1px solid #d1d5db; border-radius: 8px;
  padding: 10px 12px; font-size: 14px; outline: 0;
  background: #fff; color: #0f172a;
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,.12);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-row .hint { font-size: 12px; color:#6b7280; margin-top: 4px; }
.form-row .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 22px; border: 0; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .1s;
}
.btn-primary { background: #1d4ed8; color: #fff; }
.btn-primary:hover { background:#1e40af; text-decoration: none; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { background: #94a3b8; cursor: not-allowed; }
.btn-line {
  background: #fff; color: #1d4ed8; border: 1px solid #1d4ed8;
}
.btn-line:hover { background:#eff6ff; text-decoration: none; }
.btn-danger { background: #fff; color: #dc2626; border: 1px solid #fecaca; }
.btn-danger:hover { background: #fef2f2; text-decoration: none; }
.btn-success { background: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; text-decoration: none; }
.btn-block { width: 100%; }

.agreement {
  margin-top: 8px; padding: 12px 14px;
  background: #f8fafc; border:1px solid #e5e7eb; border-radius: 10px;
}
.agreement .check {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color:#475569; margin-bottom: 8px;
  cursor: pointer; user-select: none;
}
.agreement .check:last-child { margin-bottom: 0; }
.agreement .check input { margin-top: 3px; cursor: pointer; }
.agreement .check a { color:#1d4ed8; }

.alert {
  padding: 10px 14px; border-radius: 8px; font-size: 13px;
  margin-bottom: 14px;
}
.alert-error { background: #fef2f2; color:#991b1b; border: 1px solid #fecaca; }
.alert-success { background:#f0fdf4; color:#166534; border:1px solid #bbf7d0; }
.alert-info { background: #eff6ff; color: #1e40af; border:1px solid #bfdbfe; }

.alt-link {
  text-align: center; font-size: 13px; color:#6b7280; margin-top: 16px;
}

/* 信息发布：图片选择 */
.img-picker {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  padding: 8px; border:1px solid #e5e7eb; border-radius: 10px;
  background: #f8fafc;
}
.img-picker .opt {
  position: relative; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden;
  cursor: pointer; border: 2px solid transparent; background: #fff;
}
.img-picker .opt img { width:100%; height:100%; object-fit: cover; }
.img-picker .opt.selected { border-color: #1d4ed8; }
.img-picker .opt .order {
  position: absolute; bottom: 4px; right: 4px;
  background: rgba(15,23,42,.7); color:#fff; font-size: 11px;
  padding: 2px 6px; border-radius: 6px;
}
.img-picker .opt .check {
  position: absolute; top: 4px; left: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center;
  color: #cbd5e1;
}
.img-picker .opt.selected .check { color:#1d4ed8; }
.img-picker .opt.selected .check svg { display: block; }
.img-picker .opt .check svg { width: 14px; height: 14px; display: none; }

/* 后台 */
.tabs { display: flex; gap: 4px; margin-bottom: 18px; }
.tabs .tab {
  padding: 8px 16px; border-radius: 8px;
  background: #fff; border:1px solid #e5e7eb;
  font-size: 13px; color: #475569; cursor: pointer;
}
.tabs .tab.active { background:#1d4ed8; color:#fff; border-color:#1d4ed8; }
.tabs .tab .count {
  display: inline-block; margin-left: 4px; padding: 1px 7px;
  background: rgba(0,0,0,.08); border-radius: 999px; font-size: 11px;
}
.tabs .tab.active .count { background: rgba(255,255,255,.25); }

.admin-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden;
}
.admin-table th, .admin-table td {
  padding: 12px 14px; text-align: left; font-size: 13px;
  border-bottom: 1px solid #f1f5f9; vertical-align: top;
}
.admin-table th { background: #f8fafc; color:#475569; font-weight: 600; }
.admin-table tr:last-child td { border-bottom: 0; }
.status-pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.status-pending { background: #fef3c7; color:#92400e; }
.status-approved { background: #dcfce7; color:#166534; }
.status-rejected { background: #fee2e2; color:#991b1b; }
.action-row { display: flex; gap: 6px; }
.action-row .btn { padding: 6px 12px; font-size: 12px; }

.notice-block {
  background: #f8fafc; border:1px solid #e5e7eb; border-radius: 10px;
  padding: 14px 18px; margin-bottom: 18px; color:#475569; font-size: 13px;
}
.notice-block strong { color:#0f172a; }

/* 关于页 / 政策 */
.doc-card {
  max-width: 880px; margin: 0 auto;
  background: #fff; border:1px solid #e5e7eb; border-radius: 14px;
  padding: 32px 40px;
}
.doc-card h1 { font-size: 26px; margin: 0 0 6px; color:#0f172a; }
.doc-card .meta { color:#6b7280; font-size: 12px; margin-bottom: 24px; }
.doc-card h2 {
  font-size: 17px; margin: 28px 0 10px; color:#0f172a;
  padding-left: 12px; border-left: 3px solid #1d4ed8;
}
.doc-card p, .doc-card li { color:#374151; line-height: 1.85; font-size: 14px; }
.doc-card ul { padding-left: 22px; }

/* 底部 */
.site-footer {
  background: #0f172a; color:#cbd5e1; padding: 36px 0 28px;
  margin-top: 60px; font-size: 13px;
}
.site-footer .inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
}
.site-footer h5 {
  color:#fff; font-size: 14px; margin: 0 0 14px; font-weight: 600;
}
.site-footer p { color:#94a3b8; line-height: 1.8; margin: 0; font-size: 12.5px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul li a { color:#cbd5e1; text-decoration: none; }
.site-footer ul li a:hover { color: #fff; }
.copyright {
  border-top: 1px solid #1e293b;
  margin-top: 28px; padding-top: 18px;
  text-align: center; color:#64748b; font-size: 12px;
}
.copyright a { color:#94a3b8; text-decoration: none; }
.copyright a:hover { color:#cbd5e1; }
.copyright .beian-icon {
  display: inline-block; width: 14px; height: 14px; vertical-align: -2px;
  background: #dc2626; border-radius: 3px; margin-right: 4px;
  position: relative;
}
.copyright .beian-icon::before {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 8px; height: 8px; background: #fff; border-radius: 50%;
}

/* 响应式 */
@media (max-width: 960px){
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .site-footer .inner { grid-template-columns: 1fr; }
  .img-picker { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px){
  .cat-grid, .listing-grid { grid-template-columns: 1fr; }
  .nav a:not(.nav-cta) { display: none; }
  .hero-stats { gap: 24px; }
  .form-row .grid2 { grid-template-columns: 1fr; }
  .doc-card { padding: 22px; }
  .img-picker { grid-template-columns: repeat(3, 1fr); }
}

/* 工具 */
.text-muted { color:#6b7280; }
.text-center { text-align: center; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.hidden { display: none !important; }
.spinner {
  width: 16px; height: 16px; border: 2px solid #cbd5e1;
  border-top-color: #1d4ed8; border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
