/* =========================================================
   星图栈官网 - 样式表
   ========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  color: #1f2933;
  background: #f5f7fb;
  line-height: 1.6;
  font-size: 15px;
}

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

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ===== 顶部导航 ===== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e6eaf2;
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: #1d3a8a;
  letter-spacing: 0.5px;
}

.brand .brand-text {
  display: inline-flex;
  align-items: baseline;
  font-weight: 700;
}

.brand .brand-sub {
  font-style: normal;
  font-weight: 500;
  color: #6b7280;
  margin-left: 4px;
  font-size: 13px;
  letter-spacing: 1px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.logo-mark svg {
  display: block;
}

.logo-mark.size-header { width: 30px; height: 30px; }
.logo-mark.size-footer { width: 34px; height: 34px; }

.nav-list {
  display: flex;
  gap: 28px;
  font-size: 14px;
}

.nav-list a {
  color: #4b5563;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
  color: #1d3a8a;
  border-bottom-color: #1d3a8a;
}

/* ===== 通用容器 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 56px 0;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: 22px;
  color: #1f2937;
  font-weight: 700;
  position: relative;
  padding-left: 14px;
}

.section-title h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #1d3a8a, #2563eb);
}

.section-title .more {
  font-size: 13px;
  color: #6b7280;
}

.section-title .more:hover {
  color: #1d3a8a;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(120deg, #11245a 0%, #1d3a8a 55%, #2563eb 100%);
  color: #ffffff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(255,255,255,0.12), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(56,189,248,0.18), transparent 45%);
  pointer-events: none;
}

.hero .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.hero .eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 38px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 18px;
  max-width: 760px;
}

.hero p.lead {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  max-width: 720px;
  margin-bottom: 28px;
}

.hero .actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: #ffffff;
  color: #1d3a8a;
}

.btn-primary:hover {
  background: #fcd34d;
  color: #1f2937;
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.5);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
}

/* ===== 数据条 ===== */
.stat-bar {
  background: #ffffff;
  margin: -36px auto 0;
  max-width: 1140px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(17, 36, 90, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 2;
}

.stat-bar .item {
  padding: 22px 16px;
  text-align: center;
  border-right: 1px solid #eef1f7;
}

.stat-bar .item:last-child {
  border-right: none;
}

.stat-bar .num {
  font-size: 26px;
  font-weight: 700;
  color: #1d3a8a;
}

.stat-bar .label {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

/* ===== 信息卡片 ===== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.post-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(17, 36, 90, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(17, 36, 90, 0.12);
}

.post-card .cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f7;
}

.post-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(29, 58, 138, 0.85);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
}

.post-card .body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card .summary {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
  border-top: 1px dashed #e6eaf2;
  padding-top: 12px;
}

.post-card .meta .people {
  display: flex;
  align-items: center;
  gap: 6px;
}

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d3a8a, #2563eb);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.phone-mask {
  font-family: "SFMono-Regular", Consolas, monospace;
  color: #1d3a8a;
  font-weight: 600;
}

.phone-mask.revealed {
  color: #15803d;
  background: #ecfdf3;
  padding: 1px 6px;
  border-radius: 4px;
}

.phone-tip {
  font-size: 13px;
  color: #6b7280;
  background: #f6f8fc;
  border: 1px dashed #d3ddf0;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 0 0 24px;
}

.phone-tip a {
  color: #1d3a8a;
  font-weight: 600;
}

.phone-tip.ok {
  color: #15803d;
  background: #ecfdf3;
  border-color: #b7e4c7;
}

/* ===== 入驻公司 ===== */
.company-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.company-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(17, 36, 90, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.company-card .head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.company-card .logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #eef2f7;
  overflow: hidden;
  flex-shrink: 0;
}

.company-card .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-card .name {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.company-card .since {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.company-card .biz {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
}

.company-card ul {
  font-size: 13px;
  color: #4b5563;
}

.company-card li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  line-height: 1.7;
}

.company-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
 }

.company-card .contact {
  border-top: 1px dashed #e6eaf2;
  padding-top: 12px;
  font-size: 12px;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
}

/* ===== 资讯列表 ===== */
.article-list {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(17, 36, 90, 0.06);
  overflow: hidden;
}

.article-row {
  display: grid;
  grid-template-columns: 80px 1fr 140px 120px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid #eef1f7;
  transition: background 0.2s;
}

.article-row:last-child {
  border-bottom: none;
}

.article-row:hover {
  background: #f8fafc;
}

.article-row .tag {
  background: #eef2ff;
  color: #1d3a8a;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
}

.article-row h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}

.article-row .summary {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.article-row .date {
  font-size: 13px;
  color: #6b7280;
  text-align: right;
}

/* ===== 入驻申请 ===== */
.apply-cta {
  background: linear-gradient(120deg, #11245a, #1d3a8a);
  color: #fff;
  border-radius: 12px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.apply-cta h3 {
  font-size: 22px;
  margin-bottom: 8px;
  font-weight: 700;
}

.apply-cta p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.apply-cta .btn {
  background: #fcd34d;
  color: #1f2937;
}

.apply-cta .btn:hover {
  background: #fbbf24;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 36px 0 30px;
  font-size: 13px;
  margin-top: 56px;
}

.site-footer .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.site-footer h5 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 14px;
  font-weight: 600;
}

.site-footer .row {
  margin-bottom: 8px;
  line-height: 1.8;
}

.site-footer .row .label {
  color: #94a3b8;
  margin-right: 8px;
}

.site-footer .row .value {
  color: #e2e8f0;
}

.site-footer .row .value a.footer-link {
  color: #e2e8f0;
  text-decoration: none;
  transition: color .15s;
}
.site-footer .row .value a.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer .brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.site-footer .brand-line .brand-text {
  color: #fff;
}

.site-footer .brand-line .brand-sub {
  color: #94a3b8;
}

.site-footer .copy {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 18px 24px 0;
  border-top: 1px solid #1e293b;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
}

.site-footer .copy a {
  color: #cbd5e1;
  margin: 0 8px;
}

.site-footer .copy a:hover {
  color: #fff;
}

/* ===== 详情页 ===== */
.detail-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.detail-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(17, 36, 90, 0.06);
  padding: 36px 44px;
}

/* ===== 关于页面 - 卡片堆叠与单元 ===== */
.about-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin-top: 4px;
}

.about-tag {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  transition: border-color 0.2s, background 0.2s;
}

.about-tag:hover {
  background: #f1f5fb;
  border-color: #dbe5f1;
}

.about-tag .num {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1d3a8a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.about-tag strong {
  color: #1f2937;
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
}

.about-tag p {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.about-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.about-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 8px;
}

.about-steps li strong {
  display: block;
  color: #1f2937;
  font-size: 15px;
  margin-bottom: 4px;
}

.about-steps li p {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.about-steps .step-no {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d3a8a, #2563eb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.detail-breadcrumb {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}

.detail-breadcrumb a:hover {
  color: #1d3a8a;
}

.detail-card h1 {
  font-size: 28px;
  color: #1f2937;
  margin-bottom: 14px;
  line-height: 1.4;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: #6b7280;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #eef1f7;
}

.detail-meta .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-meta .pill.category {
  background: #eef2ff;
  color: #1d3a8a;
  padding: 3px 10px;
  border-radius: 4px;
}

.detail-content p {
  font-size: 15px;
  color: #374151;
  line-height: 1.9;
  margin-bottom: 18px;
}

.detail-content img {
  border-radius: 8px;
  margin: 18px 0;
  box-shadow: 0 4px 14px rgba(17, 36, 90, 0.08);
}

.detail-nav {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px dashed #e6eaf2;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #6b7280;
}

.detail-nav .nav-item {
  max-width: 45%;
}

.detail-nav .nav-item strong {
  display: block;
  color: #1f2937;
  margin-top: 4px;
  font-size: 14px;
}

.detail-nav .nav-item:hover strong {
  color: #1d3a8a;
}

/* ===== 入驻公司 / 列表页 ===== */
.page-hero {
  background: linear-gradient(120deg, #11245a, #1d3a8a);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
}

/* ===== 联系页 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contact-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(17, 36, 90, 0.06);
}

.contact-card h3 {
  font-size: 18px;
  color: #1f2937;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef1f7;
}

.contact-item {
  margin-bottom: 14px;
  font-size: 14px;
  color: #4b5563;
  display: flex;
}

.contact-item .k {
  width: 90px;
  color: #6b7280;
  flex-shrink: 0;
}

.contact-item .v {
  color: #1f2937;
}

/* ===== 注册 / 登录 ===== */
.nav-list .btn-nav {
  background: linear-gradient(135deg, #1d3a8a, #2563eb);
  color: #fff;
  padding: 7px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.nav-list .btn-nav:hover {
  opacity: 0.9;
  color: #fff;
}

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(17, 36, 90, 0.08);
  padding: 30px 32px 34px;
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  border-bottom: 1px solid #eef1f6;
}
.auth-tabs .tab {
  padding: 10px 4px;
  margin-right: 18px;
  color: #64748b;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}
.auth-tabs .tab:hover {
  color: #1d3a8a;
}
.auth-tabs .tab.active {
  color: #1d3a8a;
  border-bottom-color: #2563eb;
}
.auth-form .field {
  margin-bottom: 16px;
}
.auth-form label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  color: #334155;
  font-weight: 600;
}
.auth-form input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s;
}
.auth-form input:focus {
  border-color: #2563eb;
}
.code-row {
  display: flex;
  gap: 10px;
}
.code-row input {
  flex: 1;
}
.btn-code {
  flex: 0 0 auto;
  white-space: nowrap;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #2563eb;
  background: #fff;
  color: #2563eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-code:hover {
  background: #f0f5ff;
}
.btn-code:disabled {
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  background: #f8fafc;
}
.btn-submit {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #1d3a8a, #2563eb);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.btn-submit:hover {
  opacity: 0.92;
}
.auth-msg {
  min-height: 20px;
  margin: 6px 0 4px;
  font-size: 13px;
  line-height: 1.5;
}
.auth-msg.ok { color: #16a34a; }
.auth-msg.err { color: #dc2626; }
.auth-tip {
  margin-top: 14px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}
.auth-tip a {
  color: #2563eb;
  font-weight: 600;
}

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .post-grid,
  .company-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-bar {
    grid-template-columns: 1fr 1fr;
  }
  .stat-bar .item:nth-child(2) {
    border-right: none;
  }
  .site-footer .inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .article-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .article-row .date {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-header .inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 13px;
    width: 100%;
    padding-top: 6px;
    border-top: 1px solid #eef1f7;
  }
  .nav-list a {
    padding: 4px 0;
  }
  .post-grid,
  .company-grid,
  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 28px;
  }
  .detail-card {
    padding: 24px 18px;
  }
}
