/* ==================== Reset & Base ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: #1f1f1f;
  line-height: 1.6;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

:root {
  --primary: #4A90D9;
  --primary-hover: #3A7BC8;
  --primary-light: #E8F0FB;
  --primary-dark: #2C5F8D;
  --text: #1f1f1f;
  --text-secondary: #555;
  --text-light: #888;
  --bg: #ffffff;
  --bg-light: #f7f9fc;
  --bg-dark: #f0f3f8;
  --border: #e4e8ef;
  --border-light: #eef1f6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
  --max-width: 1200px;
  --header-height: 72px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
}

/* ==================== Header ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.logo-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.logo:hover .logo-icon img {
  transform: scale(1.08);
}
.logo-text { line-height: 1.3; }
.logo-text span {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 8px 18px;
  font-size: 15px;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-weight: 500;
}
.nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.nav a.active {
  color: var(--primary);
}
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ==================== Banner / Carousel ==================== */
.banner {
  margin-top: var(--header-height);
  position: relative;
  width: 100%;
  background: var(--bg-light);
  overflow: hidden;
}
.banner-wrapper {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 32px;
}
.banner-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #e8ecf0;
}
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.banner-slide.active { opacity: 1; }
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-slide-content {
  position: absolute;
  bottom: 48px;
  left: 48px;
  color: #fff;
  max-width: 540px;
  z-index: 2;
}
.banner-slide-content h2 {
  font-size: 34px;
  margin-bottom: 12px;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.banner-slide-content p {
  font-size: 17px;
  opacity: 0.95;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.banner-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}
.banner-dot.active {
  background: #fff;
  width: 28px;
  border-radius: 4px;
}
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  z-index: 3;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}
.banner-arrow:hover { background: #fff; color: var(--primary-hover); }
.banner-arrow.prev { left: 24px; }
.banner-arrow.next { right: 24px; }

/* ==================== Sections ==================== */
.section {
  padding: 72px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 30px;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 700;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin: 14px auto 0;
  border-radius: 2px;
}
.section-title p {
  color: var(--text-light);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* About preview on homepage */
.about-preview {
  background: var(--bg-light);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-text h3 {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 700;
}
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.9;
  font-size: 15px;
}
.about-text .btn {
  display: inline-block;
  margin-top: 16px;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e8f0fb, #d0e2f5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* News section on homepage */
.news-section {
  background: #fff;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.news-card:hover::before { transform: scaleX(1); }

.news-card-date {
  display: inline-block;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
}
.news-card h3 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.6;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .read-more {
  margin-top: 18px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.news-card:hover .read-more { gap: 8px; }

/* Services */
.services-section {
  background: var(--bg-light);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all 0.3s;
}
.service-card h3 {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 700;
}
.service-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  text-align: center;
}
.btn:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(74,144,217,0.3); }
.btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff !important;
}
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ==================== Footer ==================== */
.footer {
  background: #f7f9fc;
  color: var(--text-secondary);
  padding: 56px 0 0;
  border-top: 1px solid var(--border-light);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer h4 {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}
.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.footer p, .footer li {
  color: var(--text-light);
  font-size: 14px;
  line-height: 2;
}
.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--primary); }
.footer-brand .logo { color: var(--text); margin-bottom: 16px; }
.footer-brand p { margin-bottom: 12px; line-height: 1.8; }
.footer-bottom {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-light);
}
.footer-bottom p {
  margin: 2px 0;
}
.footer-copyright {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ==================== Page Banner (inner pages) ==================== */
.page-banner {
  margin-top: var(--header-height);
  position: relative;
  background: var(--bg-light);
  color: var(--text);
  min-height: 500px;
  display: flex;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}
.page-banner .container {
  width: 100%;
}
.page-banner.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.page-banner.has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 95, 141, 0.75), rgba(74, 144, 217, 0.6));
  z-index: 0;
}
.page-banner.has-image .container {
  position: relative;
  z-index: 1;
}
.page-banner.has-image h1,
.page-banner.has-image p {
  color: #fff;
}
.page-banner.has-image .breadcrumb {
  color: rgba(255, 255, 255, 0.9);
}
.page-banner.has-image .breadcrumb a {
  color: #fff;
}
.page-banner h1 {
  font-size: 38px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text);
}
.page-banner p {
  color: var(--text-light);
  font-size: 16px;
  letter-spacing: 1px;
}
.breadcrumb {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-light);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ==================== About Page ==================== */
.about-hero {
  background: var(--bg-light);
  padding: 64px 0;
}
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-hero-text h2 {
  font-size: 30px;
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 700;
}
.about-hero-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.9;
  font-size: 15px;
}
.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.feature-item {
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: all 0.3s;
}
.feature-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.feature-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
}
.feature-item span {
  color: var(--text-light);
  font-size: 14px;
  margin-top: 8px;
  display: block;
}

/* ==================== News Page ==================== */
.news-list {
  padding: 48px 0 72px;
}
.news-list .max-w-container,
.news-detail .max-w-container {
  max-width: calc(var(--max-width) * 0.94);
}

/* News Search */
.news-search {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  max-width: 600px;
}
.news-search input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.news-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}
.news-search button {
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.news-search button:hover {
  background: var(--primary-hover);
}
.news-search-reset {
  background: var(--bg-light) !important;
  color: var(--text-light) !important;
  border: 1px solid var(--border-light) !important;
}
.news-search-reset:hover {
  background: var(--border-light) !important;
  color: var(--text) !important;
}
.news-list-content mark {
  background: rgba(74, 144, 217, 0.2);
  color: var(--primary-dark);
  padding: 0 2px;
  border-radius: 2px;
}
@media (max-width: 768px) {
  .news-search {
    flex-direction: column;
    gap: 8px;
  }
  .news-search button {
    width: 100%;
  }
}
.news-list-item {
  display: flex;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.news-list-item:hover {
  background: var(--bg-light);
  padding-left: 20px;
  padding-right: 20px;
}
.news-list-date {
  flex-shrink: 0;
  width: 100px;
  text-align: center;
  border-right: 1px solid var(--border-light);
  padding-right: 28px;
}
.news-list-date .day {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
}
.news-list-date .ym {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
  display: block;
}
.news-list-content { flex: 1; }
.news-list-content h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.5;
  font-weight: 600;
}
.news-list-content p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News detail */
.news-detail {
  padding: 48px 0 72px;
}
.news-detail h1 {
  font-size: 28px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.5;
  font-weight: 700;
}
.news-detail-meta {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}
.news-detail-meta span { margin-right: 24px; }
.news-detail-body {
  font-size: 16px;
  line-height: 2;
  color: var(--text-secondary);
}
.news-detail-body h1,
.news-detail-body h2,
.news-detail-body h3 {
  color: var(--text);
  margin: 20px 0 12px;
  font-weight: 700;
}
.news-detail-body h1 { font-size: 26px; }
.news-detail-body h2 { font-size: 22px; }
.news-detail-body h3 { font-size: 18px; }
.news-detail-body p {
  margin: 12px 0;
  text-indent: 2em;
}
.news-detail-body ul,
.news-detail-body ol {
  padding-left: 28px;
  margin: 12px 0;
}
.news-detail-body li {
  margin: 6px 0;
}
.news-detail-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.news-detail-body .file-attachment {
  transition: box-shadow 0.2s;
}
.news-detail-body .file-attachment:hover {
  box-shadow: 0 2px 12px rgba(74, 144, 217, 0.2);
}
.news-detail-body a {
  color: var(--primary);
  text-decoration: none;
}
.news-detail-body a:hover {
  text-decoration: underline;
}
.news-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--primary);
  font-weight: 500;
}
.news-back:hover { color: var(--primary-hover); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}
.pagination button {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s;
}
.pagination button:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}
.pagination button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pagination .page-info {
  align-self: center;
  color: var(--text-light);
  font-size: 14px;
  margin-right: 12px;
}

/* Rich Text Editor */
.rte-editor {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.rte-toolbar {
  background: var(--bg-light);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.rte-toolbar button {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s;
}
.rte-toolbar button:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.rte-content {
  min-height: 200px;
  padding: 16px;
  outline: none;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: #fff;
}
.rte-content:empty::before {
  content: attr(data-placeholder);
  color: var(--text-light);
}
.rte-content h1, .rte-content h2, .rte-content h3 {
  margin: 12px 0 8px;
}
.rte-content p {
  margin: 8px 0;
}
.rte-content ul, .rte-content ol {
  padding-left: 24px;
  margin: 8px 0;
}
.rte-content img {
  max-width: 100%;
  margin: 8px 0;
  border-radius: 6px;
}

/* ==================== Contact Page ==================== */
.contact-section {
  padding: 72px 0;
}
.contact-info-full {
  max-width: 720px;
  margin: 0 auto;
}
.contact-info-full h2 {
  font-size: 30px;
  color: var(--text);
  margin-bottom: 36px;
  font-weight: 700;
  text-align: center;
}
.contact-grid-single {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}
.contact-info h2 {
  font-size: 30px;
  color: var(--text);
  margin-bottom: 28px;
  font-weight: 700;
}
.contact-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.contact-item-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
}
.contact-item h4 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
  font-weight: 600;
}
.contact-item p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}
.contact-form {
  background: var(--bg-light);
  padding: 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.contact-form h3 {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 28px;
  font-weight: 700;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
  background: #fff;
  color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,144,217,0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ==================== Page container for inner pages ==================== */
.page-content {
  padding: 48px 0 72px;
  min-height: 60vh;
}
.max-w-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ==================== Login Page ==================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
}
.login-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}
.login-box h1 {
  text-align: center;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 700;
}
.login-box .subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 36px;
  font-size: 14px;
}
.login-box .btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

/* ==================== Admin Page ==================== */
.admin-page {
  min-height: 100vh;
  background: var(--bg-light);
}
.admin-header {
  background: #fff;
  padding: 18px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}
.admin-header h1 {
  font-size: 18px;
  color: var(--text);
  font-weight: 700;
}
.admin-body {
  display: flex;
  min-height: calc(100vh - 68px);
}
.admin-sidebar {
  width: 220px;
  background: #fff;
  border-right: 1px solid var(--border-light);
  padding: 24px 0;
}
.admin-sidebar-item {
  padding: 14px 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  font-size: 14px;
  color: var(--text);
  border-left: 3px solid transparent;
  font-weight: 500;
}
.admin-sidebar-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.admin-sidebar-item.active {
  background: var(--primary-light);
  color: var(--primary);
  border-left-color: var(--primary);
}
.admin-content {
  flex: 1;
  padding: 36px;
  overflow-x: auto;
}
.admin-panel {
  display: none;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}
.admin-panel.active { display: block; }
.admin-panel h2 {
  font-size: 20px;
  margin-bottom: 28px;
  color: var(--text);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 700;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
}
table th, table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}
table th {
  background: var(--bg-light);
  color: var(--text);
  font-weight: 600;
}
table tr:hover { background: var(--primary-light); }

/* Admin form */
.admin-form .form-group { margin-bottom: 20px; }
.admin-form textarea { min-height: 160px; }

/* Upload area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--bg-light);
}
.upload-area:hover,
.upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.upload-area p {
  color: var(--text-light);
  margin-top: 12px;
}

/* Banner preview grid */
.banner-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.banner-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  background: #fff;
}
.banner-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.banner-item .banner-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(231,76,60,0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.banner-item .banner-delete:hover { background: #e74c3c; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.active { display: flex; }
.modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-close {
  float: right;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }

/* Toast */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  z-index: 3000;
  transform: translateX(400px);
  transition: transform 0.3s;
  box-shadow: var(--shadow-md);
}
.toast.show { transform: translateX(0); }
.toast.success { background: var(--primary); }
.toast.error { background: #e74c3c; }
.toast.info { background: #5596d8; }

/* Admin Pagination */
.page-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: all 0.2s;
  min-width: 36px;
  text-align: center;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.page-ellipsis {
  padding: 0 6px;
  color: #999;
}

/* ==================== Responsive ==================== */
@media (max-width: 992px) {
  .about-grid,
  .about-hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .banner-track { aspect-ratio: 16 / 8; }
  .banner-slide-content {
    bottom: 24px;
    left: 24px;
    right: 24px;
  }
  .banner-slide-content h2 { font-size: 26px; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    gap: 0;
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border-light);
  }
  .nav a:last-child { border-bottom: none; }
  .nav a.active::after { display: none; }
  .nav-toggle { display: flex; }

  .section { padding: 48px 0; }
  .section-title h2 { font-size: 24px; }
  .banner-track { aspect-ratio: 16 / 10; }
  .banner-slide-content h2 { font-size: 22px; }
  .banner-slide-content p { font-size: 14px; }
  .banner-arrow { width: 38px; height: 38px; }
  .page-banner { min-height: 380px; }
  .page-banner h1 { font-size: 28px; }

  .news-list-item {
    flex-direction: column;
    gap: 14px;
  }
  .news-list-date {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-right: 0;
    padding-bottom: 14px;
    display: flex;
    gap: 14px;
    align-items: baseline;
  }
  .news-list-date .day { font-size: 26px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 24px 36px;
  }

  .contact-form { padding: 28px; }

  .admin-sidebar {
    width: 180px;
  }
  .admin-content { padding: 24px; }
  table { font-size: 13px; }
  table th, table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .container,
  .max-w-container {
    padding: 0 18px;
  }
  .logo-text { font-size: 15px; }
  .logo-icon { width: 36px; height: 36px; }
  .banner-track { aspect-ratio: 4 / 3; }
  .banner-slide-content { bottom: 14px; left: 14px; right: 14px; }
  .banner-slide-content h2 { font-size: 18px; }
  .page-banner { min-height: 300px; }
  .page-banner h1 { font-size: 24px; }
  .page-banner p { font-size: 14px; }
  .btn { padding: 10px 22px; font-size: 14px; }
  .services-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .section-title h2 { font-size: 22px; }
  .about-hero-text h2 { font-size: 24px; }
  .contact-info h2 { font-size: 24px; }
}

/* ==================== Utilities ==================== */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hide { display: none !important; }
.show { display: block !important; }

.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-light);
}
.empty-state .icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.5;
}