/* 远翔神思咨询 - 网站主样式 */

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: #2c3e50;
  background: #f8f9fa;
  line-height: 1.8;
  min-height: 100vh;
}
a { color: #1a6fb5; text-decoration: none; transition: color 0.2s; }
a:hover { color: #0d4f7a; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.4; color: #1a2a3a; }

/* ========== Container ========== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ========== Header ========== */
.site-header {
  background: linear-gradient(135deg, #1a2a3a 0%, #2c4a6a 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  flex-wrap: wrap;
  gap: 10px;
}
.site-logo {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  white-space: nowrap;
}
.site-logo:hover { color: #e0e8f0; }
.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.main-nav a {
  color: #c8d8e8;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

/* ========== Banner Ad ========== */
.banner-ad {
  background: #f0f2f5;
  text-align: center;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}
.banner-ad img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ========== Hero Section ========== */
.hero-section {
  background: linear-gradient(135deg, #1a3a5c, #2c5f8a);
  color: #fff;
  text-align: center;
  padding: 48px 20px;
}
.hero-section h1 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 4px;
}
.hero-subtitle {
  font-size: 18px;
  margin-bottom: 12px;
  opacity: 0.95;
}
.hero-desc {
  font-size: 15px;
  opacity: 0.8;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  font-size: 13px;
  color: #888;
  padding: 16px 0 8px;
}
.breadcrumb a { color: #1a6fb5; }
.breadcrumb a:hover { text-decoration: underline; }

/* ========== Main Content ========== */
.main-content {
  padding: 20px 0 40px;
}

/* ========== Category Sections (Homepage) ========== */
.category-section {
  background: #fff;
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  border-bottom: 2px solid #1a6fb5;
  padding-bottom: 10px;
}
.section-header h2 {
  font-size: 20px;
}
.section-header h2 a { color: #1a2a3a; }
.section-header h2 a:hover { color: #1a6fb5; }
.article-count {
  font-size: 13px;
  color: #888;
  background: #f0f2f5;
  padding: 3px 12px;
  border-radius: 12px;
}
.section-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}
.article-preview-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}
.article-preview-list li {
  font-size: 14px;
}
.article-preview-list li::before {
  content: "▸ ";
  color: #1a6fb5;
}
.article-preview-list li a {
  color: #2c3e50;
}
.article-preview-list li a:hover {
  color: #1a6fb5;
}
.view-all {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: #1a6fb5;
  font-weight: 500;
}
.view-all:hover { text-decoration: underline; }

/* ========== Category Page ========== */
.category-header {
  background: #fff;
  border-radius: 10px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.category-header h1 {
  font-size: 28px;
  margin-bottom: 12px;
}
.category-header p {
  font-size: 15px;
  color: #555;
}
.category-count {
  margin-top: 12px;
  font-size: 14px;
  color: #888;
}

/* ========== Article List ========== */
.article-list {
  display: grid;
  gap: 16px;
}
.article-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px 28px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}
.article-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.article-card h2 {
  font-size: 17px;
  margin-bottom: 8px;
}
.article-card h2 a { color: #1a2a3a; }
.article-card h2 a:hover { color: #1a6fb5; }
.article-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.6;
}
.article-card-meta {
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 16px;
}

/* ========== Article Detail ========== */
.article-detail {
  background: #fff;
  border-radius: 10px;
  padding: 36px 40px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  max-width: 840px;
}
.article-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a2a3a;
  line-height: 1.3;
}
.article-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.article-body {
  font-size: 16px;
  line-height: 2;
  color: #333;
}
.article-body h2 {
  font-size: 20px;
  margin: 32px 0 16px;
  padding-left: 12px;
  border-left: 4px solid #1a6fb5;
  color: #1a2a3a;
}
.article-body p {
  margin-bottom: 16px;
  text-indent: 2em;
}
.article-body p strong {
  text-indent: 0;
  display: inline;
}
.article-body li {
  margin-left: 2em;
  margin-bottom: 8px;
  list-style: disc;
}
.article-tags {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: #f0f2f5;
  border-radius: 4px;
  font-size: 12px;
  color: #555;
}

/* ========== Sidebar ========== */
.article-sidebar {
  position: absolute;
  right: 20px;
  top: 140px;
  width: 240px;
}
.main-content {
  position: relative;
}

/* ========== About Page ========== */
.about-page {
  max-width: 900px;
  margin: 0 auto;
}
.about-section {
  margin-bottom: 36px;
}
.about-section h2 {
  font-size: 22px;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #1a6fb5;
}
.about-section p {
  margin-bottom: 14px;
  line-height: 2;
  text-indent: 2em;
}
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.business-item {
  background: #f7f9fc;
  border-radius: 8px;
  padding: 20px;
  border-left: 3px solid #1a6fb5;
}
.business-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #1a6fb5;
}
.business-item p {
  font-size: 14px;
  color: #555;
  text-indent: 0;
  line-height: 1.7;
}
.team-list {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}
.team-member {
  background: #f7f9fc;
  border-radius: 8px;
  padding: 20px 24px;
}
.team-member h3 {
  font-size: 16px;
  color: #1a6fb5;
  margin-bottom: 8px;
}
.team-member p {
  font-size: 14px;
  color: #555;
  text-indent: 0;
  line-height: 1.7;
}
.advantage-list {
  list-style: none;
  margin-top: 16px;
}
.advantage-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  line-height: 1.7;
}
.advantage-list li strong {
  color: #1a6fb5;
}
.contact-section .contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.contact-item {
  background: #f7f9fc;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}
.contact-item h3 {
  font-size: 16px;
  color: #1a6fb5;
  margin-bottom: 10px;
}
.contact-item p {
  font-size: 14px;
  text-indent: 0;
  margin-bottom: 4px;
}
.contact-item strong {
  color: #c0392b;
}

/* ========== Footer ========== */
.site-footer {
  background: #1a2a3a;
  color: #b0bec5;
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 12px;
}
.footer-col p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 4px;
}
.footer-bottom {
  border-top: 1px solid #2c3e50;
  padding-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #78909c;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }
  .main-nav {
    width: 100%;
    overflow-x: auto;
  }
  .hero-section h1 { font-size: 26px; }
  .hero-subtitle { font-size: 15px; }
  .article-detail { padding: 24px 20px; }
  .article-title { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-section .contact-grid { grid-template-columns: 1fr; }
  .business-grid { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .category-section { padding: 20px; }
}


/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 32px 0 16px;
  flex-wrap: wrap;
}
.pagination .page-btn {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  color: #1a2a3a;
  text-decoration: none;
  font-size: 14px;
  background: #fff;
  transition: all 0.2s;
  line-height: 1.4;
}
.pagination .page-btn:hover:not(.disabled):not(.page-current) {
  background: #1a6fb5;
  color: #fff;
  border-color: #1a6fb5;
}
.pagination .page-current {
  background: #1a6fb5;
  color: #fff;
  border-color: #1a6fb5;
  font-weight: 600;
}
.pagination .page-prev,
.pagination .page-next {
  padding: 8px 16px;
}
.pagination .disabled {
  color: #adb5bd;
  border-color: #e9ecef;
  cursor: not-allowed;
  background: #f8f9fa;
}
.pagination .page-ellipsis {
  padding: 8px 6px;
  color: #888;
}
