/*
* 模板039：地方生活门户风格
* 主色：浅蓝 #1e88e5 / 橙色 #ff6d00
* 类似58同城、地方信息港、城市生活门户布局
*/

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

:root {
  --blue: #1e88e5;
  --blue-dark: #1565c0;
  --blue-light: #e3f2fd;
  --orange: #ff6d00;
  --orange-dark: #e65100;
  --red: #e53935;
  --green: #43a047;
  --text: #333;
  --text-sec: #666;
  --text-light: #999;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --bg: #f5f7fa;
  --bg-white: #fff;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--orange);
  text-decoration: none;
}

ul, ol {list-style: none;}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}

.container {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

/* 顶部通栏 */
.top-bar {
  background: #f0f4f8;
  font-size: 12px;
  line-height: 34px;
  color: var(--text-sec);
  border-bottom: 1px solid var(--border-light);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
}

.welcome-text {color: var(--text-light);}

.top-bar-right a {
  color: var(--text-sec);
  margin: 0 5px;
}

.top-bar-right a:hover {color: var(--orange);}

.bar-split {color: #ddd; margin: 0 3px;}

.top-apply {
  color: var(--orange) !important;
  font-weight: bold;
}

/* 头部 */
.site-header {
  background: var(--bg-white);
  padding: 20px 0;
  border-bottom: 2px solid var(--blue);
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: block;
  font-size: 36px;
  font-weight: bold;
  color: var(--blue);
  letter-spacing: 2px;
}

.logo:hover {
  color: var(--blue);
}

.site-slogan {
  font-size: 13px;
  color: var(--text-sec);
  margin-top: 5px;
}

.ad-phone {
  text-align: right;
}

.ad-phone-label {
  display: block;
  font-size: 12px;
  color: var(--text-light);
}

.ad-phone-num {
  display: block;
  font-size: 26px;
  font-weight: bold;
  color: var(--orange);
  font-family: Arial, sans-serif;
}

.ad-phone-num a {
  color: var(--orange);
}

/* 主导航 */
.main-nav {
  background: var(--blue);
  position: relative;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  padding: 12px;
  cursor: pointer;
}

.bars:before {
  content: '≡';
  color: #fff;
  font-size: 24px;
}

.nav-list {
  display: flex;
  align-items: center;
}

.nav-list li a {
  display: block;
  padding: 0 22px;
  line-height: 46px;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
}

.nav-list li a:hover,
.nav-list li a.current {
  background: var(--blue-dark);
  color: #fff;
}

.nav-right-item {
  margin-left: auto;
}

.nav-apply-btn {
  background: var(--orange) !important;
  color: #fff !important;
  margin-left: 10px;
  padding: 0 25px !important;
}

.nav-apply-btn:hover {
  background: var(--orange-dark) !important;
}

/* 焦点区 */
.focus-section {
  padding: 15px 0;
  background: var(--bg-white);
}

.focus-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 15px;
}

.focus-banner {
  display: block;
  position: relative;
  overflow: hidden;
  height: 360px;
}

.focus-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.focus-banner-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  padding: 60px 25px 25px;
}

.focus-banner-text h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.focus-banner-text p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.quick-entry {
  border: 1px solid var(--border);
  height: 100%;
}

.entry-title {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 15px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--border);
}

.entry-list li {
  border-bottom: 1px solid var(--border-light);
}

.entry-list li:last-child {border-bottom: none;}

.entry-list li a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  font-size: 14px;
  color: var(--text);
}

.entry-list li a:hover {
  background: #f9fafc;
  color: var(--orange);
  padding-left: 20px;
}

.ei-icon {
  margin-right: 10px;
  font-size: 18px;
  width: 24px;
  text-align: center;
}

/* 平台分类 */
.platform-cats {
  padding: 10px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
}

.cat-block {margin-bottom: 0;}

.cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 2px solid var(--blue);
  margin-bottom: 15px;
}

.cat-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--text);
  display: flex;
  align-items: center;
}

.ct-bar {
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--blue);
  margin-right: 10px;
}

.ct-bar.blue {background: var(--blue);}
.ct-bar.orange {background: var(--orange);}
.ct-bar.green {background: var(--green);}
.ct-bar.red {background: var(--red);}

.cat-more {
  font-size: 13px;
  color: var(--text-light);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.cat-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--border-light);
  background: #fafbfd;
  transition: all 0.2s;
}

.cat-cell:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(30,136,229,0.1);
}

.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
}

.cat-dy {background: #161823;}
.cat-ks {background: #ff4906;}
.cat-xhs {background: #fe2c55;}
.cat-sph {background: #07c160;}
.cat-bil {background: #00a1d6;}
.cat-all {background: var(--blue);}

.cat-info h3 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 4px;
}

.cat-info p {
  font-size: 12px;
  color: var(--text-sec);
  line-height: 1.6;
}

/* 主体两栏 */
.main-body {
  padding: 20px 15px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  background: var(--bg);
}

.body-main {
  min-width: 0;
}

.portal-block {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 15px;
  margin-bottom: 15px;
}

.feat-item {
  padding: 15px 0;
  border-bottom: 1px dashed var(--border);
}

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

.feat-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  margin-right: 8px;
  border-radius: 2px;
  vertical-align: middle;
}

.feat-tag.orange {background: var(--orange);}
.feat-tag.green {background: var(--green);}

.feat-text h3 {
  display: inline;
  font-size: 17px;
  font-weight: bold;
}

.feat-text h3 a {color: var(--text);}
.feat-text h3 a:hover {color: var(--orange);}

.feat-text p {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.9;
  margin: 10px 0;
  text-indent: 2em;
}

.feat-meta {text-align: right;}

.feat-btn {
  display: inline-block;
  background: var(--blue);
  color: #fff !important;
  padding: 4px 15px;
  font-size: 12px;
  border-radius: 2px;
}

.feat-btn:hover {
  background: var(--blue-dark);
  color: #fff !important;
}

/* 流程 */
.flow-steps {
  display: flex;
  align-items: center;
  padding: 20px 10px;
  justify-content: space-between;
}

.flow-item {
  text-align: center;
  flex: 1;
}

.flow-num {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  line-height: 45px;
  margin: 0 auto 10px;
}

.flow-info h4 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 5px;
}

.flow-info p {
  font-size: 12px;
  color: var(--text-sec);
}

.flow-arrow {
  font-size: 20px;
  color: var(--orange);
  font-weight: bold;
  padding: 0 10px;
}

/* FAQ */
.faq-portal-list details {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-light);
}

.faq-portal-list summary {
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  color: var(--blue-dark);
  padding-left: 24px;
  position: relative;
}

.faq-portal-list summary::-webkit-details-marker {display: none;}

.faq-portal-list summary:before {
  content: 'Q';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-weight: bold;
}

.faq-ans {
  padding: 10px 0 0 24px;
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.9;
}

/* 侧边栏 */
.side-block {
  background: var(--bg-white);
  border: 1px solid var(--border);
  margin-bottom: 15px;
}

.side-title {
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  padding: 8px 12px;
}

.side-content {
  padding: 15px;
  text-align: center;
}

.side-logo-text {
  font-size: 22px;
  font-weight: bold;
  color: var(--blue);
  margin-bottom: 8px;
}

.side-desc {
  font-size: 12px;
  color: var(--text-sec);
  line-height: 1.8;
  margin-bottom: 12px;
}

.side-phone-big {
  font-size: 22px;
  font-weight: bold;
  color: var(--orange);
  margin-bottom: 12px;
  font-family: Arial, sans-serif;
}

.side-phone-big a {color: var(--orange);}

.side-btn {
  display: block;
  background: var(--orange);
  color: #fff !important;
  padding: 8px;
  font-weight: bold;
  font-size: 13px;
}

.side-btn:hover {
  background: var(--orange-dark);
  color: #fff !important;
}

.side-adv-list {
  padding: 10px 12px;
  font-size: 13px;
}

.side-adv-list li {
  padding: 6px 0;
  color: var(--text-sec);
}

.adv-ico {
  color: var(--green);
  font-weight: bold;
  margin-right: 6px;
}

.contact-block .side-title {
  background: var(--orange);
}

.contact-box {
  padding: 15px;
  font-size: 13px;
  line-height: 2;
}

.contact-box strong a {
  color: var(--orange);
  font-size: 17px;
}

.hot-art-list {
  padding: 5px 0;
}

.hot-art-list li {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 13px;
  border-bottom: 1px dotted var(--border-light);
}

.hot-art-list li:last-child {border-bottom: none;}

.hn {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #ccc;
  color: #fff;
  text-align: center;
  line-height: 18px;
  font-size: 11px;
  font-weight: bold;
  margin-right: 8px;
  flex-shrink: 0;
}

.h1 {background: var(--red);}
.h2 {background: var(--orange);}
.h3 {background: #ffb300;}

/* 资讯 - 强制Grid */
.news-portal-section {
  background: var(--bg-white);
  padding: 10px 0 25px;
  border-top: 1px solid var(--border);
}

ul.article-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

ul.article-cards > li.article-card {
  min-width: 0;
  width: auto;
  max-width: none;
  margin: 0;
  float: none;
  box-sizing: border-box;
  border: 1px solid var(--border-light);
  background: #fff;
  overflow: hidden;
  transition: all 0.2s;
}

ul.article-cards > li.article-card:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 10px rgba(30,136,229,0.1);
}

.article-card .card-thumb {
  width: 100%;
  overflow: hidden;
  height: 150px;
}

.article-card .card-thumb img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card .card-title {
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: bold;
  padding: 10px;
  line-height: 1.6;
}

.article-card .card-title a:hover {color: var(--orange);}

.article-card .card-date {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  padding: 0 10px 8px;
}

.article-card .card-summary {
  overflow-wrap: anywhere;
  font-size: 12px;
  color: var(--text-sec);
  line-height: 1.7;
  padding: 0 10px 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 申请表单 */
.apply-portal-section {
  background: var(--bg);
  padding: 25px 0;
}

.apply-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 25px;
}

.apply-box-head {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.apply-box-head h2 {
  font-size: 22px;
  font-weight: bold;
  color: var(--blue);
  margin-bottom: 8px;
}

.apply-box-head p {
  font-size: 13px;
  color: var(--text-sec);
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

.form-item {
  display: flex;
  flex-direction: column;
}

.form-item.full {margin-bottom: 15px;}

.form-item label {
  font-size: 13px;
  margin-bottom: 5px;
}

.rq {color: var(--red); margin-left: 2px;}

.form-item input,
.form-item select,
.form-item textarea {
  padding: 8px 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
}

.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus {
  border-color: var(--blue);
}

.form-item textarea {resize: vertical;}

.form-submit-center {text-align: center;}

.portal-submit-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 10px 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 2px;
}

.portal-submit-btn:hover {
  background: var(--orange-dark);
}

/* 底部CTA */
.footer-cta {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  padding: 25px 0;
}

.cta-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta-text h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

.cta-text p {
  font-size: 13px;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.cta-phone-link {
  color: #fff !important;
  font-size: 24px;
  font-weight: bold;
  font-family: Arial, sans-serif;
}

.cta-apply-link {
  background: var(--orange);
  color: #fff !important;
  padding: 10px 25px;
  font-weight: bold;
}

.cta-apply-link:hover {
  background: var(--orange-dark);
  color: #fff !important;
}

/* 主页脚 */
.main-footer {
  background: #1e2a3a;
  color: #aaa;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 25px;
  padding: 35px 0;
}

.foot-col-title {
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2d3e52;
}

.foot-about-text {
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 10px;
}

.foot-contact strong a {
  color: var(--orange);
  font-size: 18px;
}

.foot-links li {
  padding: 4px 0;
  font-size: 13px;
}

.foot-links li a {
  color: #aaa;
}

.foot-links li a:hover {color: var(--orange);}

.friend-links-wrap {
  font-size: 12px;
  line-height: 2;
}

.friend-links-wrap a {
  color: #aaa;
  margin-right: 8px;
}

.copyright-section {
  background: #151f2b;
  padding: 15px 0;
  text-align: center;
  font-size: 12px;
  line-height: 2;
}

.copyright-section a {color: #aaa;}
.copyright-section a:hover {color: var(--orange);}

.c-sep {color: #444; margin: 0 8px;}

.disc {color: #777;}

/* 文章详情 */
.article-portal {
  padding: 15px;
  background: var(--bg);
}

.article-portal-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
}

.portal-crumb {
  background: var(--bg-white);
  padding: 10px 15px;
  border: 1px solid var(--border);
  margin-bottom: 15px;
  font-size: 12px;
  color: var(--text-light);
}

.portal-crumb a {color: var(--text-light);}

.portal-article {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 25px 30px;
}

.portal-article-title {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 15px;
}

.portal-article-meta {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  padding-bottom: 15px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 20px;
}

.portal-article-meta span {
  margin: 0 8px;
}

.portal-article-summary {
  background: #f5f8fb;
  padding: 12px 15px;
  border-left: 3px solid var(--blue);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sec);
}

.portal-article-cover {
  text-align: center;
  margin-bottom: 25px;
}

.portal-article-body {
  font-size: 15px;
  line-height: 2;
  color: #222;
}

.portal-article-body p {
  margin-bottom: 18px;
  text-align: justify;
  text-indent: 2em;
}

.portal-article-body h2,
.portal-article-body h3 {
  margin: 25px 0 15px;
  font-weight: bold;
  text-indent: 0;
}

.portal-article-body h2 {font-size: 20px;}
.portal-article-body h3 {font-size: 17px;}

.portal-article-body img {
  max-width: 100%;
  margin: 20px auto;
}

.article-tail {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--text-light);
}

.portal-related {
  margin-top: 25px;
  padding: 15px;
  background: #f9fafc;
  border: 1px solid var(--border-light);
}

.portal-related h3 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--blue);
}

.related-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  font-size: 13px;
}

.portal-article-nav {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.article-call {
  color: var(--orange);
  font-weight: bold;
}

/* 响应式 */
@media (max-width: 1200px) {
  .container {width: 100%;}
  .focus-wrap {grid-template-columns: 1fr;}
  .focus-side {order: -1;}
  .focus-banner {height: 280px;}
  .main-body {grid-template-columns: 1fr;}
  .cat-grid {grid-template-columns: repeat(2, 1fr);}
  .footer-grid {grid-template-columns: repeat(2, 1fr);}
  .article-portal-layout {grid-template-columns: 1fr;}
}

@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    line-height: 26px;
    text-align: center;
  }
  
  .header-wrap {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .ad-phone {text-align: center;}
  
  .mobile-menu-btn {display: block;}
  
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--blue);
    flex-direction: column;
    z-index: 999;
  }
  
  .nav-list.active {display: flex;}
  
  .nav-list li a {
    line-height: 42px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .nav-right-item {margin: 0;}
  .nav-apply-btn {margin: 0;}
  
  .focus-banner {height: 200px;}
  .focus-banner-text h2 {font-size: 18px;}
  .focus-banner-text p {font-size: 13px;}
  
  .cat-grid {grid-template-columns: 1fr;}
  
  .flow-steps {
    flex-direction: column;
    gap: 15px;
  }
  .flow-arrow {transform: rotate(90deg); padding: 5px 0;}
  
  .form-row-3 {grid-template-columns: 1fr;}
  
  .cta-flex {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .cta-actions {flex-direction: column; width: 100%;}
  .cta-apply-link {width: 80%; text-align: center;}
  
  .footer-grid {grid-template-columns: 1fr;}
  
  .portal-article {padding: 15px 12px;}
  .portal-article-title {font-size: 20px;}
  
  .related-links-grid {grid-template-columns: 1fr;}
  
  .portal-article-nav {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
