/* ============================================================
   云南骏航工程咨询有限责任公司 官方网站
   设计风格：新中式政务美学
   开发者：Kylers
   ============================================================ */

/* --- Google Fonts Import --- */
/* Google Fonts with China-friendly fallback - loaded async to avoid blocking */

/* --- CSS Variables --- */
:root {
  --color-primary: #1a3a5c;
  --color-primary-dark: #0f2440;
  --color-primary-light: #2a5a8c;
  --color-accent: #d4a03c;
  --color-accent-light: #e8c06a;
  --color-accent-dark: #b8862e;
  --color-bg: #faf8f5;
  --color-bg-warm: #f5f0e8;
  --color-bg-section: #f0ebe3;
  --color-text: #2c2c2c;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-white: #ffffff;
  --color-border: #e0d8cc;
  --color-border-light: #ede8e0;
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', 'STSong', serif;
  --font-sans: 'Noto Sans SC', 'Source Han Sans SC', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Top Bar --- */
.top-bar {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  letter-spacing: 0.02em;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-left span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* --- Header / Navigation --- */
.header {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--color-border-light);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.5rem;
}

.logo-text h1 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

.logo-text p {
  font-size: 0.625rem;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.2;
}

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

.nav-list a {
  display: block;
  padding: 0.5rem 1.1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  letter-spacing: 0.03em;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-primary);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 60%;
}

/* Mobile menu toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,36,64,0.88) 0%, rgba(26,58,92,0.72) 50%, rgba(26,58,92,0.5) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero-tag::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--color-accent);
}

.hero h2 {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.hero h2 .accent {
  color: var(--color-accent);
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Page hero (smaller) */
.page-hero {
  min-height: 320px;
}

.page-hero h2 {
  font-size: 2.25rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212,160,60,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
}

.btn-dark {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-dark:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
  padding: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  border-right: 1px solid var(--color-border-light);
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg-warm);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* --- Section Common --- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--color-bg-warm);
}

.section-dark {
  background: var(--color-primary);
  color: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-accent);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-tag::before,
.section-tag::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--color-accent);
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-dark .section-header h2 {
  color: var(--color-white);
}

.section-header p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.7);
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-border-light);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-body {
  padding: 1.75rem;
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.card-body p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* --- About Section --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content.reverse {
  direction: ltr;
}

.about-content.reverse .about-text {
  order: 2;
}

.about-content.reverse .about-image {
  order: 1;
}

.about-text h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* --- Honor Gallery --- */
.honor-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.honor-item {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-border-light);
}

.honor-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.honor-item img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  padding: 0.75rem;
  background: #fafafa;
}

.honor-item p {
  padding: 0.75rem;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--color-text);
  font-weight: 500;
  border-top: 1px solid var(--color-border-light);
}

/* --- Office Gallery --- */
.office-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.office-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  cursor: pointer;
}

.office-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.office-item:hover img {
  transform: scale(1.05);
}

.office-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 1.5rem 1rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* --- Achievements Table --- */
.achievements-filter {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-text);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.achievements-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.achievements-table thead {
  background: var(--color-primary);
  color: var(--color-white);
}

.achievements-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
}

.achievements-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.875rem;
  color: var(--color-text);
}

.achievements-table tbody tr:hover {
  background: var(--color-bg-warm);
}

.achievements-table tbody tr:last-child td {
  border-bottom: none;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
}

.pagination button:hover,
.pagination button.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination span {
  font-size: 0.875rem;
  color: var(--color-text-light);
  padding: 0 0.5rem;
}

/* --- Laws Section --- */
.laws-search {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.laws-search input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  background: var(--color-white);
  transition: var(--transition);
}

.laws-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}

.laws-search .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.laws-search .clear-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  display: none;
}

.laws-search .clear-btn.show {
  display: block;
}

.search-result-count {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: 0.75rem;
}

.laws-category {
  margin-bottom: 2rem;
  background: var(--color-white);
  border-radius: 8px;
  border: 1px solid var(--color-border-light);
  overflow: hidden;
}

.laws-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg-warm);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--color-border-light);
}

.laws-category-header:hover {
  background: var(--color-bg-section);
}

.laws-category-header h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.laws-category-header .count {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-weight: 400;
}

.laws-category-header .toggle-icon {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
}

.laws-category-header.open .toggle-icon {
  transform: rotate(180deg);
}

.laws-list {
  display: none;
}

.laws-list.open {
  display: block;
}

.law-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
  cursor: pointer;
  transition: var(--transition);
}

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

.law-item:hover {
  background: var(--color-bg-warm);
}

.law-item .law-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-bg-section);
  border-radius: 50%;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
  flex-shrink: 0;
  margin-right: 1rem;
}

.law-item .law-title {
  flex: 1;
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 500;
}

.law-item .law-preview {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 400;
}

.law-item .law-arrow {
  color: var(--color-accent);
  font-size: 1rem;
  flex-shrink: 0;
  margin-left: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.law-item:hover .law-arrow {
  opacity: 1;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(4px);
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: var(--color-white);
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--color-border-light);
  flex-shrink: 0;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-primary);
  font-weight: 700;
  padding-right: 1rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg-warm);
  color: var(--color-text);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
  font-size: 0.9rem;
  line-height: 2;
  color: var(--color-text);
}

.modal-body p {
  margin-bottom: 0.75rem;
  text-indent: 2em;
}

.modal-body .law-chapter {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  text-align: center;
  margin: 1.5rem 0 0.75rem;
  text-indent: 0;
}

.modal-body .law-article {
  font-weight: 600;
  color: var(--color-primary-dark);
}

/* --- Charity Section --- */
.charity-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2rem;
  align-items: start;
}

.charity-text h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.charity-text p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.charity-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.charity-images .charity-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  background: #f5f0e8;
}

.charity-images .charity-img-wrap:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.charity-images .charity-img-wrap img {
  width: 100%;
  height: 240px;
  display: block;
  object-fit: contain;
  transition: transform 0.4s;
}

.charity-images .charity-img-wide {
  grid-column: 1 / -1;
}

.charity-images .charity-img-wide img {
  object-fit: cover;
  height: 350px;
}

.charity-images .charity-img-wrap:hover img {
  transform: scale(1.03);
}

.charity-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 0.75rem 0.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  opacity: 0;
  transition: opacity 0.3s;
}

.charity-img-wrap:hover .charity-img-caption {
  opacity: 1;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 12px;
  padding: 2.5rem;
}

.contact-info-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

.contact-info-item .icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-info-item .label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.25rem;
}

.contact-info-item .value {
  font-size: 0.9375rem;
  font-weight: 500;
}

.contact-form {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: var(--transition);
  background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
  background: var(--color-white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* --- Footer --- */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
}

.footer-links h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer-links a {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  padding: 0.3rem 0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 0.25rem;
}

.footer-contact p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- News List --- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: 8px;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.news-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-item:hover .news-arrow {
  opacity: 1;
  color: var(--color-accent);
}

.news-date-block {
  width: 72px;
  height: 72px;
  background: var(--color-primary);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.news-day {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.news-month {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.25rem;
}

.news-content {
  flex: 1;
  min-width: 0;
}

.news-meta {
  margin-bottom: 0.5rem;
}

.news-tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 500;
}

.news-tag-company {
  background: rgba(26,58,92,0.1);
  color: var(--color-primary);
}

.news-tag-industry {
  background: rgba(212,160,60,0.15);
  color: var(--color-accent-dark);
}

.news-tag-guide {
  background: rgba(46,125,50,0.1);
  color: #2e7d32;
}

.news-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 0.35rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.news-summary {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-arrow {
  color: var(--color-text-muted);
  font-size: 1rem;
  flex-shrink: 0;
  opacity: 0.3;
  transition: var(--transition);
}

/* --- Client Showcase --- */
.client-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.client-item {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 6px;
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: var(--transition);
}

.client-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* --- Map Container --- */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* --- Scroll Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .honor-gallery { grid-template-columns: repeat(3, 1fr); }
  .office-gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .client-showcase { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .top-bar { display: none; }

  .header .container { height: 60px; }

  .nav-list {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--color-border-light);
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list a {
    padding: 0.75rem 2rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero { min-height: 400px; }
  .hero h2 { font-size: 2rem; }
  .page-hero { min-height: 250px; }
  .page-hero h2 { font-size: 1.75rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .client-showcase { grid-template-columns: repeat(2, 1fr); }
  .about-content { grid-template-columns: 1fr; }
  .about-content.reverse .about-text,
  .about-content.reverse .about-image { order: unset; }
  .charity-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .honor-gallery { grid-template-columns: repeat(2, 1fr); }
  .office-gallery { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .modal { margin: 1rem; max-height: 90vh; }
  .modal-header { padding: 1.25rem 1.5rem; }
  .modal-body { padding: 1.5rem; }

  .achievements-table { font-size: 0.8125rem; }
  .achievements-table th,
  .achievements-table td { padding: 0.625rem 0.75rem; }

  .news-item { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .news-date-block { width: 100%; height: auto; flex-direction: row; gap: 0.5rem; padding: 0.75rem 1rem; }
  .news-day { font-size: 1.25rem; }
  .map-container iframe { height: 300px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero h2 { font-size: 1.75rem; }
  .section { padding: 3rem 0; }
  .honor-gallery { grid-template-columns: 1fr; }
  .charity-images { grid-template-columns: 1fr 1fr; }
  .charity-img-caption { opacity: 1; }
}

/* ============ Lightbox ============ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox-overlay.show {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  animation: modalIn 0.3s ease;
  cursor: default;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--color-accent);
}

.lightbox-caption {
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  font-family: var(--font-serif);
}

/* ============ Laws Tab System ============ */
.laws-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--color-primary);
}
.laws-tab-btn {
  flex: 1;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-family: var(--font-serif);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  background: var(--color-white);
  color: var(--color-primary);
  position: relative;
}
.laws-tab-btn:not(:last-child) {
  border-right: 1px solid var(--color-primary);
}
.laws-tab-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
}
.laws-tab-btn:hover:not(.active) {
  background: var(--color-bg-warm);
}
.laws-tab-btn .tab-count {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 700;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 10px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.laws-tab-btn.active .tab-count {
  background: var(--color-accent);
}
@media (max-width: 576px) {
  .laws-tabs { flex-direction: column; border-radius: 8px; }
  .laws-tab-btn:not(:last-child) { border-right: none; border-bottom: 1px solid var(--color-primary); }
  .laws-tab-btn { padding: 0.75rem 1rem; font-size: 0.875rem; }
}
