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

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

a {
  text-decoration: none;
  color: #333;
  transition: all 0.3s;
}

a:hover {
  color: #0066cc;
}

ul, li {
  list-style: none;
}

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

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

.space_hx {
  height: 20px;
  clear: both;
}

/* Header */
.header {
  background: #fff;
  padding: 30px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.head {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.text_logo a {
  font-size: 32px;
  font-weight: bold;
  color: #0066cc;
  letter-spacing: 2px;
}

/* Navigation */
.nav_bg {
  background: #0066cc;
}

.nav_m {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
}

.nav {
  display: flex;
}

.nav li {
  flex: 1;
  min-width: 80px;
  text-align: center;
}

.nav li a {
  display: block;
  padding: 15px 10px;
  color: #fff;
  text-align: center;
  font-size: 15px;
  white-space: nowrap;
}

.nav li:hover a,
.nav li.now a {
  background: #0055aa;
}

/* Banner */
.banner {
  width: 100%;
  overflow: hidden;
}

.slider img {
  width: 100%;
  height: auto;
  display: block;
}

/* Section Title */
.i_head {
  text-align: center;
  padding: 20px 0;
}

.i_head .line {
  width: 60px;
  height: 3px;
  background: #0066cc;
  margin: 0 auto 10px;
}

.i_head span {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.i_head span a {
  color: #333;
}

/* About Section */
.i_about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.i_about > div:first-child {
  flex: 1;
}

.i_about b {
  font-size: 20px;
  color: #0066cc;
  display: block;
  margin-bottom: 15px;
}

.des {
  line-height: 1.8;
  color: #666;
  margin-bottom: 20px;
}

.des p {
  margin-bottom: 10px;
}

.more_w {
  text-align: left;
}

.more_w a {
  display: inline-block;
  padding: 8px 20px;
  background: #0066cc;
  color: #fff;
  border-radius: 3px;
}

.about_info_img {
  flex: 0 0 400px;
}

.about_info_img img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* News Section */
.hui_bg {
  background: #fff;
  padding: 30px 0;
}

.i_news {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.news-box {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.news-box-item {
  flex: 1;
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.news-box-item:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-box-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.news-box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-box-desc {
  padding: 15px;
}

.nbd-title {
  margin-bottom: 10px;
}

.nbd-title a {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nbd-cont {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nbd-tiem {
  color: #999;
  font-size: 12px;
}

.news_content {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.news_left,
.news_right {
  flex: 1;
  min-width: 0;
}

.news_list li {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

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

.news_list li a {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.news_list li i.hot {
  display: none;
}

.news_list li p {
  flex: 1;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news_list li span {
  color: #999;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.more {
  display: block;
  text-align: center;
  padding: 10px 30px;
  background: #0066cc;
  color: #fff;
  border-radius: 3px;
  margin: 0 auto;
  width: fit-content;
}

/* Friend Links */
.i_box_a {
  background: #f9f9f9;
  padding: 30px 0;
}

.friend-links-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.friend-links-container a {
  padding: 5px 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
  color: #666;
}

.friend-links-container a:hover {
  background: #0066cc;
  color: #fff;
  border-color: #0066cc;
}

/* Content Pages */
.scd {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 15px;
  background: #fff;
}

.flex_container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.scd_l,
.scd_r {
  background: #fff;
  width: 100%;
}

/* Left sidebar - hot search keywords */
.scd_l {
  margin-bottom: 0;
}

/* Middle - main content */
.scd_r:first-of-type {
  margin-bottom: 0;
}

/* Right sidebar - news keywords */
.scd_r:last-child {
  margin-bottom: 0;
}

/* Override inline style for right sidebar in news.html */
.flex_container .scd_r[style*="float:right"] {
  float: none !important;
  width: 100% !important;
}

.pst {
  padding: 15px;
  background: #f5f5f5;
  margin-bottom: 20px;
  font-size: 13px;
  color: #666;
}

.pst a {
  color: #0066cc;
}

/* Tags */
.flex_title {
  font-size: 16px;
  font-weight: bold;
  padding: 15px;
  background: #0066cc;
  color: #fff;
  margin-bottom: 15px;
}

.tag-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 15px;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 3px;
  font-size: 13px;
  color: #fff;
}

.tag-primary { background: #007bff; }
.tag-secondary { background: #6c757d; }
.tag-success { background: #28a745; }
.tag-info { background: #17a2b8; }
.tag-warning { background: #ffc107; color: #333; }
.tag-danger { background: #dc3545; }
.tag-purple { background: #6f42c1; }
.tag-blue { background: #007bff; }
.tag-green { background: #28a745; }
.tag-yellow { background: #ffc107; color: #333; }
.tag-red { background: #dc3545; }

/* News Items */
.news dl {
  margin-bottom: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 5px;
}

.news dd {
  display: flex;
  gap: 20px;
}

.news_img {
  flex: 0 0 250px;
  overflow: hidden;
  border-radius: 5px;
}

.news_img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news_words {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news_words .title {
  margin-bottom: 10px;
}

.news_words .title a {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.news_words .title p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news_words .des {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-more {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.news-more a {
  padding: 5px 15px;
  background: #0066cc;
  color: #fff;
  border-radius: 3px;
  font-size: 13px;
}

.news-more span {
  color: #999;
  font-size: 12px;
}

/* About Page */
.about {
  padding: 30px;
}

.about_m h1 {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.about_m p {
  text-indent: 2em;
  line-height: 1.8;
  margin-bottom: 15px;
  color: #555;
}

/* Contact Page */
.contact {
  padding: 30px;
  background: #fff;
  border-radius: 5px;
}

.contact dl {
  display: flex !important;
  gap: 40px;
  flex-direction: row;
}

.contact dl::after {
  display: none !important;
}

.contact dt {
  flex: 0 0 50%;
  width: 50%;
}

.contact dt img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.contact dd {
  flex: 0 0 50%;
  width: 50%;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  margin-top: 0 !important;
}

.contact dd h1 {
  font-size: 24px;
  color: #0066cc;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0066cc;
}

.contact dd p {
  line-height: 2;
  margin-bottom: 10px;
  color: #555;
}

/* Pagination */
.pages {
  text-align: center;
  padding: 20px;
}

.pages a {
  display: inline-block;
  padding: 8px 15px;
  margin: 0 5px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.pages a:hover,
.pages a.now {
  background: #0066cc;
  color: #fff;
  border-color: #0066cc;
}

/* Footer */
.footer_wrapper {
  background: #2d3436;
  color: #fff;
  padding: 30px 0;
}

.lianxi .container {
  text-align: center;
}

.b-nav {
  margin-bottom: 20px;
}

.b-nav a {
  display: inline-block;
  margin: 5px 10px;
  color: #fff;
}

.b-nav a:hover {
  color: #00b4db;
}

.copy {
  line-height: 1.8;
  color: #999;
  font-size: 13px;
}

.copy a {
  color: #999;
}

.copy a:hover {
  color: #00b4db;
}

/* Mobile Navigation Icon */
.n_icon {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav_bg {
    position: relative;
  }

  .nav_m {
    padding: 0 15px;
  }

  .nav {
    flex-direction: column;
  }

  .nav li {
    width: 100%;
    min-width: auto;
  }

  .nav li a {
    padding: 12px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }

  .head {
    padding: 0 10px;
  }

  .text_logo a {
    font-size: 24px;
  }

  .header {
    padding: 20px 0;
  }
  
  .nav_bg {
    position: relative;
  }
  
  .nav {
    flex-direction: column;
  }
  
  .nav li {
    width: 100%;
    min-width: auto;
  }
  
  .nav li a {
    padding: 12px;
    font-size: 14px;
  }
  
  .banner {
    height: 200px;
  }
  
  .banner img {
    height: 100%;
    object-fit: cover;
  }
  
  .i_head {
    padding: 15px 0;
  }
  
  .i_head .line {
    width: 40px;
  }
  
  .i_head span {
    font-size: 20px;
  }
  
  .i_about {
    flex-direction: column;
  }
  
  .about_info_img {
    flex: none;
    width: 100%;
  }
  
  .news-box {
    flex-direction: column;
  }
  
  .news-box-img {
    height: 160px;
  }
  
  .news_content {
    flex-direction: column;
  }
  
  .news_list li a {
    flex-direction: column;
    gap: 8px;
  }
  
  .news_list li p {
    -webkit-line-clamp: 3;
  }
  
  .friend-links-container {
    justify-content: center;
  }
  
  .friend-links-container a {
    font-size: 12px;
    padding: 4px 10px;
  }

  .flex_container {
    flex-direction: column;
  }

  .scd_l,
  .scd_r {
    width: 100%;
    flex: 1 1 auto;
  }

  .scd_l {
    margin-bottom: 20px;
  }

  .scd_r:last-child {
    margin-top: 20px;
  }
  
  .news dd {
    flex-direction: column;
  }
  
  .news_img {
    flex: none;
    width: 100%;
  }
  
  .news_img img {
    height: 150px;
  }
  
  .contact dd {
    margin-top: 20px;
  }
  
  .contact dd h1 {
    font-size: 20px;
  }
  
  .b-nav a {
    margin: 5px 8px;
    font-size: 13px;
  }
  
  .copy {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .text_logo a {
    font-size: 16px;
    letter-spacing: 1px;
  }
  
  .nav li a {
    padding: 10px;
    font-size: 13px;
  }
  
  .i_head span {
    font-size: 18px;
  }
  
  .i_about b {
    font-size: 18px;
  }
  
  .news-box-img {
    height: 140px;
  }
  
  .news_words .title a {
    font-size: 15px;
  }
  
  .news-more a {
    padding: 4px 12px;
    font-size: 12px;
  }
  
  .about_m h1 {
    font-size: 22px;
  }
  
  .about_m p {
    font-size: 14px;
  }
  
  .contact dd h1 {
    font-size: 18px;
  }
  
  .contact dd p {
    font-size: 14px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .i_about {
    gap: 20px;
  }
  
  .about_info_img {
    flex: 0 0 300px;
  }
  
  .news-box-img {
    height: 180px;
  }
  
  .news_img {
    flex: 0 0 200px;
  }
  
  .news_img img {
    height: 160px;
  }
}

/* Print Styles */
@media print {
  .header,
  .nav_bg,
  .banner,
  .footer_wrapper {
    display: none;
  }
  
  body {
    background: #fff;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

.mt-10 {
  margin-top: 10px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 {
  gap: 8px;
}

/* Card */
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.card h2 {
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0066cc;
}

/* Image Responsive */
img {
  max-width: 100%;
  height: auto;
}

/* News Detail Content */
#newsContent {
  padding: 20px;
  line-height: 1.8;
}

#newsContent p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #333;
}

#newsContent img {
  display: block;
  margin: 15px auto;
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Focus Styles */
a:focus,
button:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: #0066cc;
  color: #fff;
}

::-moz-selection {
  background: #0066cc;
  color: #fff;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}
