/* 四川川拓律师事务所 —— 内页（新闻与文章）共享样式
   与首页保持同一设计体系：主色渐变 #667eea -> #764ba2 */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
  overflow-x: hidden;
}

a { color: #667eea; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #667eea;
  text-decoration: none;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-menu > a,
.nav-item > a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}
.nav-menu > a:hover,
.nav-item > a:hover { color: #667eea; }
.nav-menu > a::after,
.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
}
.nav-menu > a:hover::after,
.nav-item > a:hover::after { width: 100%; }

/* 下拉菜单 */
.nav-item { position: relative; display: flex; align-items: center; height: 70px; }
.nav-item > a i { font-size: 12px; margin-left: 2px; transition: transform 0.3s ease; }
.nav-item.has-dropdown:hover > a i { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: 70px; left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 150px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1001;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: #fff;
  box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.04);
}
.nav-item.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 22px;
  color: #333;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-dropdown a:hover {
  background: #f4f6ff;
  color: #667eea;
}

/* 移动端菜单 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #667eea;
  cursor: pointer;
}
.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.mobile-menu.active { display: block; }
.mobile-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px 20px;
}
.mobile-nav a {
  display: block;
  padding: 14px 0;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
}
.mobile-nav .mobile-cta {
  margin-top: 12px;
  display: inline-block;
  border-bottom: none;
  color: #fff;
}

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page-main { padding: 100px 0 70px; min-height: 60vh; }

.btn {
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: inline-block;
}
.btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }
.btn-outline { border: 2px solid #667eea; color: #667eea; background: transparent; }
.btn-outline:hover { background: #667eea; color: #fff; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 14px;
  color: #888;
  margin-bottom: 22px;
}
.breadcrumb a { color: #667eea; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; color: #ccc; }
.breadcrumb span[aria-current] { color: #666; }

/* ---------- List page ---------- */
.page-head {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 16px;
  padding: 28px 30px;
  margin-bottom: 24px;
}
.page-head h1 { font-size: 28px; font-weight: 700; }

.news-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.news-tabs a {
  padding: 9px 20px;
  border-radius: 22px;
  background: #fff;
  color: #555;
  text-decoration: none;
  font-size: 15px;
  border: 1px solid #e6e6f0;
  transition: all 0.25s ease;
}
.news-tabs a:hover { color: #667eea; border-color: #667eea; }
.news-tabs a.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
}

.news-list { list-style: none; background: #fff; border-radius: 16px; padding: 8px 26px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05); }
.news-list li { padding: 22px 0; border-bottom: 1px solid #f0f0f0; }
.news-list li:last-child { border-bottom: none; }
.news-list .news-title {
  display: inline-block;
  font-size: 17px;
  font-weight: 600;
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
}
.news-list .news-title:hover { color: #667eea; }
.news-list .news-date { float: right; font-size: 14px; color: #aaa; }
.news-list .news-summary {
  margin-top: 8px;
  color: #888;
  font-size: 14px;
  line-height: 1.7;
  clear: both;
}
.news-list .news-empty { text-align: center; color: #999; padding: 40px 0; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}
.pagination .page-info { color: #888; font-size: 14px; margin-right: 8px; }
.page-btn {
  display: inline-block;
  min-width: 38px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e6e6f0;
  background: #fff;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}
.page-btn:hover { color: #667eea; border-color: #667eea; }
.page-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
}
.page-btn.disabled { color: #ccc; cursor: not-allowed; }
.page-ellipsis { color: #bbb; padding: 0 4px; }

/* ---------- Article ---------- */
.article {
  background: #fff;
  border-radius: 16px;
  padding: 40px 46px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}
.article-title {
  font-size: 28px;
  line-height: 1.4;
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: #999;
  font-size: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 26px;
}
.article-meta i { color: #667eea; margin-right: 5px; }

.article-content {
  font-size: 16px;
  line-height: 1.9;
  color: #3a3a3a;
  word-wrap: break-word;
}
.article-content p { margin-bottom: 16px; }
.article-content h2, .article-content h3, .article-content h4 {
  color: #2c3e50;
  margin: 26px 0 14px;
  line-height: 1.5;
}
.article-content h2 { font-size: 22px; }
.article-content h3 { font-size: 19px; }
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 18px auto;
}
.article-content ul, .article-content ol { margin: 0 0 16px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 4px solid #667eea;
  background: #f6f7ff;
  padding: 12px 20px;
  margin: 16px 0;
  color: #555;
  border-radius: 0 8px 8px 0;
}
.article-content a { color: #667eea; }
.article-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-content th, .article-content td { border: 1px solid #e6e6f0; padding: 10px 12px; }
.article-content th { background: #f8f9fa; }

.article-pn {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}
.pn-item {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  text-decoration: none;
  color: #2c3e50;
  font-size: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pn-item span { display: block; color: #999; font-size: 13px; margin-bottom: 4px; }
.pn-item:hover { color: #667eea; transform: translateY(-2px); }
.pn-item.disabled { color: #bbb; cursor: default; }
.pn-item.disabled:hover { transform: none; color: #bbb; }

.article-back { text-align: center; margin-top: 30px; }

/* ---------- Footer ---------- */
.footer { background: #2c3e50; color: #fff; padding: 60px 0 30px; margin-top: 60px; }
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-section h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 20px; color: #ecf0f1; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul li a,
.footer-contact a { color: #bdc3c7; text-decoration: none; transition: color 0.3s ease; }
.footer-section ul li a:hover,
.footer-contact a:hover { color: #667eea; }
.footer-intro { color: #bdc3c7; line-height: 1.7; margin-bottom: 20px; }
.footer-contact li { color: #bdc3c7; display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: #667eea; margin-top: 5px; }
.footer-bottom { border-top: 1px solid #34495e; padding-top: 28px; text-align: center; color: #bdc3c7; font-size: 14px; }
.footer-legal { margin-top: 10px; }
.footer-legal a { color: #fff; text-decoration: none; }
.social-links { display: flex; gap: 15px; margin-bottom: 20px; }
.social-links a {
  width: 40px; height: 40px;
  background: #34495e; color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: all 0.3s ease;
}
.social-links a:hover { background: #667eea; transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-menu-btn { display: block; }
  .page-head h1 { font-size: 23px; }
  .article { padding: 26px 20px; }
  .article-title { font-size: 22px; }
  .article-pn { flex-direction: column; }
  .news-list .news-date { float: none; display: block; margin-top: 6px; }
  .page-main { padding: 90px 0 50px; }
  /* 正文表格过宽时横向滚动，避免被 body 的 overflow-x:hidden 裁掉 */
  .article-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---------- 律所团队 ---------- */
.team-hero {
  padding: 140px 0 60px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.16), transparent 45%),
    linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}
.team-hero .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.team-kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 5px;
  opacity: 0.75;
  margin-bottom: 10px;
}
.team-hero h1 { font-size: 40px; line-height: 1.25; margin-bottom: 14px; font-weight: 700; }
.team-hero p { max-width: 720px; font-size: 16px; line-height: 1.8; opacity: 0.92; }
.team-main { padding-top: 28px; padding-bottom: 70px; }
.team-main .breadcrumb { margin-bottom: 24px; }
.team-main .pagination { margin-top: 44px; }
.team-grid .team-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #999;
  padding: 80px 0;
  font-size: 15px;
}

.team-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
.team-card {
  background: #fff;
  border-radius: 5px 5px 16px 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(102, 126, 234, 0.18); }
.team-card-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.team-photo { position: relative; aspect-ratio: 3 / 4; background: #eef0f8; overflow: hidden; border-radius: 5px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform 0.5s ease; }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-card-body { padding: 20px 20px 22px; }
.team-card-body h2 {
  font-size: 20px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  line-height: 1.4;
}
.team-card-body h2 span {
  font-size: 12px;
  font-weight: 500;
  color: #667eea;
  background: #f1f2ff;
  border-radius: 20px;
  padding: 3px 10px;
}
.team-summary {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #777;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.team-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.team-tags span {
  font-size: 12px;
  color: #5a6acf;
  background: #f4f6ff;
  border: 1px solid #e4e8ff;
  border-radius: 14px;
  padding: 3px 10px;
  white-space: nowrap;
}
.team-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #667eea;
}
.team-more i { font-size: 12px; transition: transform 0.25s ease; }
.team-card:hover .team-more i { transform: translateX(4px); }

/* 律师详情 */
.lawyer-profile {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 44px;
  background: #fff;
  border-radius: 18px;
  padding: 38px;
  box-shadow: 0 8px 28px rgba(44, 62, 80, 0.07);
}
.lawyer-media {
  aspect-ratio: 3 / 4;
  border-radius: 5px;
  overflow: hidden;
  background: #eef0f8;
  align-self: start;
}
.lawyer-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.lawyer-main h1 { font-size: 32px; color: #2c3e50; line-height: 1.3; }
.lawyer-role {
  margin-top: 8px;
  font-size: 16px;
  color: #667eea;
  font-weight: 600;
}
.lawyer-facts { list-style: none; margin: 20px 0 0; }
.lawyer-facts li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #555;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 8px;
}
.lawyer-facts i { color: #667eea; margin-top: 5px; width: 16px; text-align: center; }
.lawyer-tags { margin-top: 18px; }
.lawyer-bio {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #f0f0f0;
  font-size: 16px;
  line-height: 1.95;
  color: #3a3a3a;
}
.lawyer-bio p { margin-bottom: 16px; }
.lawyer-bio p:last-child { margin-bottom: 0; }
.lawyer-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.lawyer-cta .btn i { margin-right: 6px; }

@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .lawyer-profile { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 26px; }
  .lawyer-media { max-width: 360px; width: 100%; margin: 0 auto; }
  .lawyer-main h1 { font-size: 26px; text-align: center; }
  .lawyer-role { text-align: center; }
}
@media (max-width: 560px) {
  .team-hero { padding: 112px 0 42px; }
  .team-hero h1 { font-size: 28px; }
  .team-hero p { font-size: 14px; }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .team-card-body { padding: 18px; }
  .team-photo { aspect-ratio: 4 / 5; }
  .lawyer-profile { padding: 20px; }
  .lawyer-bio { font-size: 15px; line-height: 1.85; }
  .lawyer-cta .btn { flex: 1; text-align: center; }
  .pagination { gap: 6px; }
  .pagination .page-info { flex-basis: 100%; margin: 0 0 2px; text-align: center; }
  .pagination .page-btn { padding: 7px 11px; min-width: 34px; }
}
