/* 陕西金光 PC 企业站模板 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 14px; color: #333; background: #f0f0f0; line-height: 1.6; min-height: 100%; }
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; vertical-align: middle; }

.p-wrap {
  width: 100%;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* flex 子项须显式 100% 宽，避免被 margin:auto 挤窄 */
.p-header,
.p-nav,
.p-banner,
.p-main,
.p-page-title,
.p-list-wrap,
.p-article,
.p-footer {
  width: 100%;
  box-sizing: border-box;
}

/* 顶部工具栏 */
.p-topbar { background: #f5f5f5; border-bottom: 1px solid #ddd; }
.p-topbar-in { max-width: 1200px; margin: 0 auto; padding: 6px 20px; display: flex; justify-content: flex-end; align-items: center; gap: 16px; font-size: 12px; color: #666; }
.p-topbar-in .search { width: 200px; height: 28px; border: 1px solid #ccc; padding: 0 10px; font-size: 12px; }

/* 头部 */
.p-header { border-bottom: 2px solid #c8161d; background: #fff; }
.p-header-in { max-width: 1200px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; gap: 16px; }
.p-logo img { width: 64px; height: 64px; object-fit: contain; }
.p-brand h1 { font-size: 24px; font-weight: 700; color: #222; line-height: 1.3; }
.p-brand p { font-size: 12px; color: #888; margin-top: 4px; }

/* 导航 */
.p-nav { background: #3a3a3a; }
.p-nav-in { max-width: 1200px; margin: 0 auto; display: flex; }
.p-nav a { flex: 1; text-align: center; color: #fff; padding: 12px 0; font-size: 15px; transition: background .2s; }
.p-nav a:hover, .p-nav a.on { background: #c8161d; text-decoration: none; }

/* Banner 轮播 */
.p-banner { position: relative; overflow: hidden; background: #111; }
.p-banner-slider { display: flex; transition: transform .4s ease; will-change: transform; }
.p-banner-slide { flex: 0 0 100%; position: relative; }
.p-banner-slide img { width: 100%; height: 360px; object-fit: cover; display: block; }
.p-banner-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.p-banner-text .line1, .p-banner-text .line2 { font-size: 42px; font-weight: 700; letter-spacing: 6px; }
.p-banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 64px; border: none; background: rgba(0,0,0,.35);
  color: #fff; font-size: 32px; cursor: pointer; z-index: 2;
}
.p-banner-prev { left: 0; }
.p-banner-next { right: 0; }
.p-banner-dots {
  position: absolute; left: 0; right: 0; bottom: 14px;
  display: flex; justify-content: center; gap: 8px; z-index: 2;
}
.p-banner-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer;
}
.p-banner-dots span.on { background: #fff; }

/* 主内容区 */
.p-main { max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 20px 40px; }

/* 区块 */
.p-section { margin-top: 24px; border: 1px solid #e0e0e0; background: #fff; }
.p-section-hd { display: flex; justify-content: space-between; align-items: center; background: #3a3a3a; color: #fff; padding: 12px 20px; font-size: 16px; font-weight: 600; }
.p-section-hd a { color: #ccc; font-size: 13px; font-weight: normal; }
.p-section-hd a:hover { color: #fff; text-decoration: none; }
.p-section-bd { padding: 20px 24px; }

/* 简介 */
.p-intro { font-size: 14px; color: #444; text-align: justify; line-height: 2; }
.p-intro .more-link { display: block; text-align: right; margin-top: 12px; }

/* 业务网格 */
.p-biz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.p-biz-item { display: flex; padding: 16px; border-bottom: 1px solid #eee; border-right: 1px solid #eee; }
.p-biz-item:nth-child(2n) { border-right: none; }
.p-biz-item:nth-last-child(-n+2) { border-bottom: none; }
.p-biz-thumb { flex: 0 0 90px; margin-right: 14px; }
.p-biz-thumb img { width: 90px; height: 90px; object-fit: cover; border: 1px solid #eee; }
.p-biz-body h3 { font-size: 15px; font-weight: 700; color: #222; margin-bottom: 6px; }
.p-biz-body p { font-size: 13px; color: #666; line-height: 1.6; }
.p-biz-body .p-biz-desc { font-size: 13px; color: #666; line-height: 1.6; }
.p-biz-body .p-biz-desc p { margin: 0; }
.p-biz-body h3 a { color: #222; text-decoration: none; }
.p-biz-body h3 a:hover { color: #c8161d; }

/* 新闻 */
.p-news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.p-news-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #ddd; gap: 12px; }
.p-news-item a { flex: 1; font-size: 14px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-news-item a::before { content: "• "; color: #999; }
.p-news-date { flex: 0 0 auto; min-width: 88px; font-size: 13px; color: #999; white-space: nowrap; text-align: right; }

/* 联系 + 页脚 */
.p-contact-row { display: flex; gap: 40px; }
.p-contact-row p { font-size: 14px; color: #444; margin-bottom: 8px; line-height: 1.8; }
.p-footer { background: #3a3a3a; color: #aaa; margin-top: auto; padding: 24px 0; font-size: 13px; flex-shrink: 0; }
.p-footer-in { max-width: 1200px; margin: 0 auto; padding: 0 20px; text-align: center; }

/* 列表/详情 */
.p-page-title {
  background: none;
  color: #222;
  text-align: left;
  padding: 24px 20px 8px;
  font-size: 22px;
  font-weight: 700;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border-bottom: 2px solid #c8161d;
}
.p-article { max-width: 1200px; margin-left: auto; margin-right: auto; padding: 32px 20px 60px; }
.p-article h1 { font-size: 24px; margin-bottom: 12px; color: #222; }
.p-article .meta { font-size: 13px; color: #999; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #eee; }
.p-article .body { font-size: 15px; line-height: 2; color: #444; }
.p-list-wrap { max-width: 1200px; margin-left: auto; margin-right: auto; padding: 24px 20px 32px; }

/* 移动端底部导航（桌面隐藏） */
.p-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 10px rgba(0,0,0,.06);
  z-index: 9999;
}
.p-tabbar a {
  flex: 1;
  text-align: center;
  padding: 7px 0 5px;
  color: #666 !important;
  font-size: 11px;
  text-decoration: none;
}
.p-tabbar a.on { color: #c8161d !important; }
.p-tabbar .ico {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 2px;
}

/* 响应式：窄屏使用 H5 风格，宽屏保持 PC 风格 */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  .p-wrap { padding-bottom: 62px; }

  .p-header-in { padding: 10px 12px; }
  .p-logo img { width: 48px; height: 48px; }
  .p-brand h1 { font-size: 15px; line-height: 1.35; }
  .p-brand p { font-size: 11px; margin-top: 2px; }

  .p-nav-in {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
  }
  .p-nav a {
    flex: unset;
    font-size: 12px;
    line-height: 1.35;
    padding: 10px 3px;
    min-height: 44px;
    border-right: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    white-space: normal;
    word-break: keep-all;
  }
  .p-nav a:nth-child(3n) { border-right: none; }
  .p-nav a:nth-last-child(-n+3) { border-bottom: none; }

  .p-banner-slide img { height: 180px; }
  .p-banner-text .line1,
  .p-banner-text .line2 { font-size: 20px; letter-spacing: 2px; }
  .p-banner-arrow { width: 28px; height: 44px; font-size: 22px; }
  .p-banner-dots span { width: 16px; height: 3px; border-radius: 0; }

  .p-main { padding: 0 0 20px; }
  .p-section { margin-top: 2px; border: none; border-top: 1px solid #e0e0e0; }
  .p-section-hd { padding: 10px 12px; font-size: 15px; }
  .p-section-bd { padding: 12px; }

  .p-biz-grid { grid-template-columns: 1fr; }
  .p-biz-item { border-right: none !important; }
  .p-biz-item:nth-last-child(-n+2) { border-bottom: 1px solid #eee; }
  .p-biz-item:last-child { border-bottom: none; }

  .p-news-grid { grid-template-columns: 1fr; gap: 0; }
  .p-news-item a { white-space: normal; }

  .p-contact-row { flex-direction: column; gap: 0; }

  .p-page-title { font-size: 18px; padding: 14px 16px 8px; }
  .p-article { padding: 16px 12px 40px; }
  .p-article h1 { font-size: 18px; }
  .p-article .body { font-size: 14px; line-height: 1.85; }
  .p-list-wrap { padding: 0 12px 32px; }

  .p-footer { padding: 14px 0; font-size: 12px; }
  .p-footer-in { padding: 0 12px; }

  .p-tabbar { display: flex; }
}
