/* ============================================================
   融创学校官网 - 响应式样式 (Mobile First 375px → 1200px)
   品牌色: #0135A3 | 文字: #333 / #666 | 背景: #f5f5f5
   ============================================================ */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #333; background: #f5f5f5; line-height: 1.6;
  min-width: 320px; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { border: none; cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 16px; }

/* === Utility === */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.section-title {
  font-size: 20px; font-weight: 700; color: #0135A3;
  padding: 20px 0 12px; border-bottom: 2px solid #0135A3;
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.section-title img { width: 24px; height: 24px; }
.btn-more {
  display: inline-block; padding: 6px 16px; font-size: 13px; color: #0135A3;
  border: 1px solid #0135A3; border-radius: 4px; transition: all 0.2s;
}
.btn-more:hover { background: #0135A3; color: #fff; }
.btn-primary {
  display: inline-block; padding: 10px 24px; font-size: 15px; color: #fff;
  background: #0135A3; border-radius: 6px; border: none; cursor: pointer;
}
.btn-primary:hover { background: #012d8a; }

/* === Header / Top Bar === */
.header { background: #0135A3; position: sticky; top: 0; z-index: 1000; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 94px; padding: 0 20px; max-width: 1200px; margin: 0 auto;
}
.header-logo { display: flex; align-items: center; gap: 8px; }
.header-logo img { height: 54px; width: auto; }
.header-search-desktop {
  display: flex; align-items: center; gap: 8px;
}
.header-search-desktop input {
  width: 193px; height: 34px;
  background: #fff; border: none; border-radius: 4px;
  padding: 0 12px; font-size: 14px; outline: none;
}
.header-search-desktop input::placeholder { color: #999; }
.header-search-desktop button {
  width: 17px; height: 17px; background: none; border: none;
  background-image: url('../static/sousuokuang.png');
  background-size: contain; background-repeat: no-repeat;
  cursor: pointer; flex-shrink: 0;
}
.hamburger-btn {
  width: 36px; height: 36px; background: #fff; border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; cursor: pointer; flex-shrink: 0;
}
.hamburger-btn span { display: block; width: 18px; height: 2px; background: #0135A3; border-radius: 1px; }
.search-toggle {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 18px; color: #fff; flex-shrink: 0;
}
.search-box { display: none; position: absolute; top: 94px; left: 0; right: 0; background: #fff; padding: 10px 15px; border-bottom: 1px solid #e8e8e8; z-index: 999; }
.search-box.active { display: flex; gap: 8px; }
.search-box input { flex: 1; height: 40px; padding: 0 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 15px; outline: none; }
.search-box input:focus { border-color: #0135A3; }
.search-box button { height: 40px; padding: 0 16px; background: #0135A3; color: #fff; border-radius: 6px; font-size: 14px; }

/* === Side Navigation Panel === */
.nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1999;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.nav-overlay.active { opacity: 1; pointer-events: auto; }
.side-nav {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: #fff; z-index: 2000; transition: right 0.3s ease;
  overflow-y: auto; box-shadow: -2px 0 12px rgba(0,0,0,0.15);
}
.side-nav.active { right: 0; }
.side-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; border-bottom: 1px solid #eee;
}
.side-nav-header span { font-size: 16px; font-weight: 700; color: #0135A3; }
.side-nav-close { width: 32px; height: 32px; font-size: 20px; background: none; color: #666; display: flex; align-items: center; justify-content: center; }
.side-nav-list { padding: 8px 0; }
.side-nav-item { }
.side-nav-item > a, .side-nav-parent {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; font-size: 15px; color: #333; border-bottom: 1px solid #f5f5f5;
  cursor: pointer; transition: background 0.15s;
}
.side-nav-item > a:hover, .side-nav-parent:hover { background: #f8f9ff; }
.side-nav-parent .arrow { font-size: 12px; color: #999; transition: transform 0.3s; }
.side-nav-parent.open .arrow { transform: rotate(90deg); }
.side-nav-sub { display: none; background: #fafafa; }
.side-nav-sub.open { display: block; }
.side-nav-sub a {
  display: block; padding: 12px 20px 12px 36px; font-size: 14px; color: #666;
  border-bottom: 1px solid #f0f0f0;
}
.side-nav-sub a:hover { color: #0135A3; background: #f0f3ff; }

/* === Banner Carousel (原PC: 620px) === */
.banner-section {
  position: relative; width: 100%; height: 620px; overflow: hidden; background: #e8e8e8;
}
.banner-section .swiper {
  display: flex; width: 100%; height: 100%; will-change: transform;
}
.banner-section .swiper-slide {
  flex: 0 0 100%; min-width: 100%; position: relative; height: 100%;
}
.banner-section .swiper-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.banner-dots {
  display: flex; justify-content: center; gap: 8px; padding: 6px 0;
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10;
}
.banner-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s;
}
.banner-dots span.active { background: #0135A3; width: 24px; border-radius: 5px; }

/* === News Carousel (原PC: 545×450 左侧大图轮播) === */
.news-carousel-section {
  width: auto; margin: 20px -15px 0;
  display: flex; gap: 20px;
}
.carousel-box {
  width: 545px; height: 450px; position: relative; cursor: pointer;
}
.carousel-box .carousel-img {
  width: 100%; height: 450px; object-fit: cover; display: block;
}
.carousel-footer {
  position: absolute; bottom: -20px; right: 0;
  width: 350px; height: 63px;
  background-color: #0135A3; color: #fff;
  padding: 10px 15px; display: flex; flex-direction: column; box-sizing: border-box;
}
.carousel-footer .footer-text {
  font-size: 16px; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.carousel-footer .footer-row {
  display: flex; justify-content: space-between; align-items: center; margin-top: auto;
}
.carousel-footer .footer-date { font-size: 12px; }
.carousel-dots-inline { display: flex; gap: 8px; }
.carousel-dots-inline .dot {
  width: 8px; height: 8px; border-radius: 50%; background-color: #ccc; cursor: pointer;
}
.carousel-dots-inline .dot.active { background-color: #fff; }

.news-list-panel {
  width: 655px;
  background-color: #fff; padding: 15px; box-sizing: border-box;
}
.news-list-panel .news-row {
  height: 84px; box-sizing: border-box; padding: 12px 0;
  border-bottom: 1px solid #eee; display: flex; flex-direction: column; gap: 4px; cursor: pointer;
}
.news-list-panel .news-row:last-child { border-bottom: none; }
.news-list-panel .news-row:hover .news-row-title { color: #0135A3; }
.news-list-panel .news-row-title {
  font-size: 14px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.3s;
}
.news-list-panel .news-row-date {
  font-size: 12px; color: #999; margin-top: auto; display: flex; align-items: center; gap: 6px;
}

/* === News Section === */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.news-card {
  background: #fff; border-radius: 8px; padding: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex; gap: 12px; cursor: pointer; transition: box-shadow 0.2s;
}
.news-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.news-card-img { width: 100px; height: 70px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: #eee; }
.news-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.news-card-title { font-size: 14px; font-weight: 600; color: #333; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-date { font-size: 12px; color: #999; margin-top: 4px; }
.news-card-desc { font-size: 12px; color: #999; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* News list (full width, no image) */
.news-list-item {
  background: #fff; border-radius: 8px; padding: 14px; margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06); cursor: pointer;
}
.news-list-item .title { font-size: 15px; font-weight: 600; color: #333; line-height: 1.5; }
.news-list-item .desc { font-size: 13px; color: #999; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list-item .meta { font-size: 12px; color: #bbb; margin-top: 8px; }

/* === Three Column Cards (Home) === */
.cards-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.card-item {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06); cursor: pointer; transition: transform 0.2s;
}
.card-item:hover { transform: translateY(-2px); }
.card-item img { width: 100%; height: 160px; object-fit: cover; }
.card-item .card-info { padding: 12px; }
.card-item .card-info h3 { font-size: 15px; font-weight: 600; color: #333; }
.card-item .card-info p { font-size: 12px; color: #999; margin-top: 4px; }

/* === Video Section === */
.video-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.video-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06); cursor: pointer;
}
.video-card video { width: 100%; height: 180px; object-fit: cover; background: #000; }
.video-card .video-info { padding: 10px 12px; }
.video-card .video-info h4 { font-size: 14px; font-weight: 600; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-card .video-info span { font-size: 12px; color: #999; }

/* === Special Sites (专题网站) === */
.sites-list {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 0; margin: 0; list-style: none;
}
.site-link {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  color: #333; background: #f8f9fa;
  font-size: 13px; text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.site-link:hover {
  background: #0135A3; color: #fff;
  border-color: #0135A3;
}

/* === Footer === */
.footer {
  background: #004ea2; color: #fff; padding: 40px 0 0; margin-top: 40px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 15px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px;
}
/* 左：联系方式 */
.footer-contact .footer-logo { max-width: 200px; height: auto; margin-bottom: 16px; }
.footer-contact .contact-item { font-size: 14px; line-height: 2; color: rgba(255,255,255,0.9); }
.footer-contact .contact-label { font-weight: 700; color: #fff; display: block; margin-top: 8px; }
/* 中：快速链接 */
.footer-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-links a {
  display: inline-block; padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 4px;
  font-size: 13px; color: rgba(255,255,255,0.85); text-decoration: none;
  transition: all 0.2s;
}
.footer-links a:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }
/* 右：扫码关注 */
.footer-qr-wrap { display: flex; gap: 20px; }
.footer-qr-item { text-align: center; }
.footer-qr-item img { width: 80px; height: 80px; border-radius: 6px; background: #fff; }
.footer-qr-item span { display: block; font-size: 12px; color: rgba(255,255,255,0.8); margin-top: 6px; }
/* 底部版权栏 */
.footer-bar {
  margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.15);
  padding: 16px 15px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.6);
  max-width: 1200px; margin-left: auto; margin-right: auto;
}
.footer-bar a { color: rgba(255,255,255,0.8); }
.footer-bar .icp-num { display: inline-flex; gap: 6px; margin-left: 8px; }
.footer-bar .icp-num span { background: rgba(255,255,255,0.2); padding: 2px 5px; border-radius: 2px; }

/* === Breadcrumb === */
.breadcrumb { padding: 12px 15px; font-size: 13px; color: #999; max-width: 1200px; margin: 0 auto; }
.breadcrumb a { color: #0135A3; }
.breadcrumb span { color: #666; }

/* === Page Content Area === */
.page-content { padding: 0 15px 20px; max-width: 1200px; margin: 0 auto; }

/* === Category Tabs (Sidebar style for mobile) === */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cat-tab {
  padding: 8px 16px; font-size: 13px; border-radius: 20px; background: #fff;
  color: #666; border: 1px solid #e0e0e0; cursor: pointer; transition: all 0.2s;
}
.cat-tab.active { background: #0135A3; color: #fff; border-color: #0135A3; }

/* === Rich Text Content === */
.rich-text { background: #fff; border-radius: 8px; padding: 20px 15px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.rich-text img { max-width: 100%; height: auto; margin: 10px 0; }
.rich-text p { margin-bottom: 12px; font-size: 15px; line-height: 1.8; color: #333; }
.rich-text h1, .rich-text h2, .rich-text h3 { color: #0135A3; margin: 16px 0 8px; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.rich-text table td, .rich-text table th { border: 1px solid #ddd; padding: 8px; }

/* === Certificate Search（匹配旧版 zscx.vue） === */
.cert-section { }
/* 证书类型列表 */
.cert-list { max-width: 580px; margin: 0 auto; padding: 30px 0; }
.cert-item {
  width: 528px; max-width: 92%; height: 80px; margin: 10px auto;
  background: #0135A3; border-radius: 10px; display: flex;
  justify-content: center; align-items: center;
  font-size: 16px; color: #FFFFFF; cursor: pointer;
  transition: opacity 0.2s;
}
.cert-item:hover { opacity: 0.88; }

/* 查询结果页 */
.cert-result-page {
  max-width: 1200px; margin: 40px auto; min-height: 555px;
  background: #fff; border: 1px solid #E1E1E1;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 40px 20px; box-sizing: border-box;
}
.cert-result-page .result-title { font-size: 28px; color: #000; margin-bottom: 30px; text-align: center; }
.cert-result-page .result-img-wrap { display: flex; justify-content: center; align-items: center; padding: 20px 0; }
.cert-result-page .result-img-wrap img { max-width: 100%; height: auto; border-radius: 4px; }
.cert-result-page .btn-back {
  margin-top: 30px; padding: 10px 36px; font-size: 15px; color: #0135A3;
  background: #fff; border: 1px solid #0135A3; border-radius: 4px; cursor: pointer;
}
.cert-result-page .btn-back:hover { background: #0135A3; color: #fff; }

/* PC端弹窗 */
.cert-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); display: flex; align-items: center;
  justify-content: center; z-index: 9999;
}
.cert-modal {
  width: 880px; max-width: 94%; background: #fff;
  border-top: 6px solid #0135A3; border-radius: 0 0 0 0;
  padding: 15px 20px 30px; box-sizing: border-box;
}
.cert-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0; }
.cert-modal-close { font-size: 32px; color: #666; cursor: pointer; line-height: 1; user-select: none; }
.cert-modal-close:hover { color: #000; }
.cert-modal-body { display: flex; flex-direction: column; align-items: center; }
.cert-modal-title { font-size: 28px; color: #000; font-weight: bold; margin-bottom: 14px; }
.cert-modal-subtitle { font-size: 16px; color: #999; margin-bottom: 54px; }
.cert-modal-field { display: flex; align-items: center; justify-content: center; margin-top: 23px; width: 100%; }
.cert-modal-field label { width: 150px; text-align: right; font-size: 18px; color: #333; }
.cert-modal-field .cert-input {
  width: 380px; height: 56px; border: 1px solid #CCC; padding-left: 10px;
  font-size: 16px; outline: none; box-sizing: border-box;
}
.cert-modal-field .cert-input:focus { border-color: #0135A3; }
.cert-modal-btn {
  margin-top: 80px; width: 336px; height: 56px; background: #0135A3;
  color: #fff; font-size: 18px; border: none; cursor: pointer;
}
.cert-modal-btn:hover { opacity: 0.9; }
.cert-modal-error {
  margin-top: 20px; font-size: 16px; color: #e74c3c; text-align: center; width: 100%;
}

/* === Pagination === */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 20px 0; flex-wrap: wrap; }
.pagination button {
  min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid #ddd;
  border-radius: 6px; background: #fff; font-size: 13px; color: #666; cursor: pointer;
}
.pagination button.active { background: #0135A3; color: #fff; border-color: #0135A3; }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination .page-info { font-size: 13px; color: #999; margin: 0 8px; }

/* === Search Page === */
.search-page { padding: 16px 15px; max-width: 1200px; margin: 0 auto; }
.search-input-row { display: flex; gap: 8px; margin-bottom: 20px; }
.search-input-row input { flex: 1; height: 44px; padding: 0 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 15px; outline: none; }
.search-input-row input:focus { border-color: #0135A3; }
.search-input-row button { height: 44px; padding: 0 20px; background: #0135A3; color: #fff; border-radius: 6px; font-size: 15px; }

/* === Detail Page === */
.detail-page { max-width: 800px; margin: 0 auto; padding: 0 15px 30px; }
.detail-title { font-size: 20px; font-weight: 700; color: #333; line-height: 1.4; margin: 16px 0 8px; }
.detail-meta { font-size: 13px; color: #999; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.detail-body { font-size: 15px; line-height: 1.8; color: #333; }
.detail-body img { max-width: 100%; height: auto; margin: 12px 0; border-radius: 6px; }
.detail-body p { margin-bottom: 12px; }
.detail-body video { width: 100%; max-width: 100%; border-radius: 6px; margin: 12px 0; }

/* === Loading & Empty === */
.loading { text-align: center; padding: 40px 0; color: #999; font-size: 14px; }
.empty { text-align: center; padding: 40px 0; color: #999; font-size: 14px; }
.spinner { display: inline-block; width: 24px; height: 24px; border: 2px solid #ddd; border-top-color: #0135A3; border-radius: 50%; animation: spin 0.6s linear infinite; margin-right: 8px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* === Toast === */
.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.75); color: #fff; padding: 10px 20px;
  border-radius: 20px; font-size: 14px; z-index: 9999; pointer-events: none;
  opacity: 0; transition: opacity 0.3s;
}
.toast.show { opacity: 1; }

/* ============================================================
   Mobile (≤768px) — 全面移动端适配
   ============================================================ */
@media (max-width: 768px) {
  /* -------- Header / Top Bar -------- */
  .header-inner { height: 56px; padding: 0 12px; }
  .header-logo img { height: 24px; }
  .header-search-desktop { display: none !important; }
  .search-toggle { display: flex; }
  .hamburger-btn { display: flex; }
  .desktop-nav { display: none !important; }

  /* -------- Container / Common -------- */
  .container { padding: 0 12px; }
  .section-title {
    font-size: 17px; padding: 16px 0 10px;
    margin-bottom: 12px;
  }
  .section-title img { width: 20px; height: 20px; }

  /* -------- Banner Carousel -------- */
  .banner-section { height: 220px; }
  .banner-dots { bottom: 12px; gap: 6px; }
  .banner-dots span { width: 8px; height: 8px; }
  .banner-dots span.active { width: 20px; }

  /* -------- News Carousel Section -------- */
  .news-carousel-section {
    flex-direction: column;
    margin: 16px 0 0;
    gap: 0;
  }
  .carousel-box {
    width: 100%; height: auto;
    position: relative; flex-shrink: 0;
  }
  .carousel-box .carousel-img {
    width: 100%; height: 220px;
  }
  .carousel-footer {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    width: 100%; height: 48px;
    padding: 6px 12px;
    display: flex; align-items: center;
    justify-content: space-between;
    flex-direction: row;
    box-sizing: border-box;
  }
  .carousel-footer .footer-text {
    font-size: 13px; max-width: 60%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .carousel-footer .footer-row {
    display: flex; align-items: center; gap: 6px;
    margin-top: 0; flex-shrink: 0;
  }
  .carousel-footer .footer-date { font-size: 11px; }
  .carousel-dots-inline { gap: 5px; }
  .carousel-dots-inline .dot { width: 6px; height: 6px; }

  .news-list-panel { width: 100%; box-sizing: border-box; }
  .news-list-panel .news-row {
    height: auto; padding: 10px 0;
  }
  .news-list-panel .news-row-title { font-size: 13px; }

  /* -------- Special Sites (专题网站) -------- */
  .site-link { font-size: 12px; padding: 5px 10px; }

  /* -------- Video Section -------- */
  .video-grid { grid-template-columns: 1fr; gap: 10px; }
  .video-card video { height: 200px; }
  .video-card .video-info { padding: 8px 10px; }
  .video-card .video-info h4 { font-size: 13px; }

  /* -------- News Grid -------- */
  .news-grid { grid-template-columns: 1fr; gap: 10px; }
  .news-card { padding: 12px; gap: 10px; }
  .news-card-img { width: 90px; height: 64px; }
  .news-card-title { font-size: 13px; }
  .news-card-date { font-size: 11px; }

  /* -------- Cards Row -------- */
  .cards-row { grid-template-columns: 1fr; gap: 10px; }
  .card-item img { height: 140px; }
  .card-item .card-info h3 { font-size: 14px; }

  /* -------- Certificate -------- */
  .cert-item { width: 92%; font-size: 14px; height: 64px; }
  .cert-modal { max-width: 96%; padding: 15px 12px 24px; }
  .cert-modal-title { font-size: 20px; }
  .cert-modal-subtitle { font-size: 14px; margin-bottom: 24px; }
  .cert-modal-field { flex-direction: column; align-items: flex-start; }
  .cert-modal-field label { width: auto; text-align: left; margin-bottom: 6px; font-size: 16px; }
  .cert-modal-field .cert-input { width: 100%; height: 44px; }
  .cert-modal-btn { width: 100%; height: 48px; margin-top: 40px; font-size: 16px; }
  .cert-result-page { margin: 16px auto; min-height: auto; padding: 24px 12px; }
  .cert-result-page .result-title { font-size: 20px; }
  .cert-result-page .result-img-wrap img { max-width: 90%; height: auto !important; }

  /* -------- Footer -------- */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-qr-wrap { justify-content: center; }
  .footer-contact .footer-logo { margin: 0 auto 12px; }
  .footer-bar { font-size: 11px; }

  /* -------- Page Content -------- */
  .page-content { padding: 0 12px 16px; }
  .breadcrumb { font-size: 12px; padding: 8px 12px; }
  .detail-title { font-size: 18px; }
  .detail-body { font-size: 14px; }
  .rich-text { padding: 16px 12px; }
  .rich-text p { font-size: 14px; }

  /* -------- Search Page -------- */
  .search-page { padding: 12px; }
  .search-input-row input { height: 40px; font-size: 14px; }
  .search-input-row button { height: 40px; padding: 0 16px; font-size: 14px; }
}

/* ============================================================
   Tablet (≥600px)
   ============================================================ */
@media (min-width: 600px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-row { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .sites-grid { grid-template-columns: repeat(3, 1fr); }
  .cert-item { width: 480px; }
  .banner-section .swiper-slide img { min-height: 250px; }
  .banner-section { height: 280px; }
}

/* ============================================================
   Desktop (≥1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .header-inner { height: 94px; }
  .header-logo img { height: 54px; }
  .hamburger-btn { display: none; }
  .search-toggle { display: none; }

  /* Desktop nav bar */
  .desktop-nav {
    display: flex; align-items: center; gap: 0;
    background: #0040a8; position: sticky; top: 94px; z-index: 999;
  }
  .desktop-nav-inner {
    display: flex; align-items: center; max-width: 1200px; margin: 0 auto;
    width: 100%; padding: 0 15px;
  }
  .desktop-nav a, .desktop-nav .nav-dropdown-toggle {
    display: flex; align-items: center; padding: 14px 18px; font-size: 15px;
    color: #fff; cursor: pointer; transition: background 0.2s; white-space: nowrap;
  }
  .desktop-nav a:hover, .desktop-nav .nav-dropdown-toggle:hover { background: rgba(255,255,255,0.12); }
  .desktop-nav .nav-dropdown { position: relative; }
  .desktop-nav .nav-dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; background: #fff;
    min-width: 140px; border-radius: 0 0 6px 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 100; overflow: hidden;
  }
  .desktop-nav .nav-dropdown:hover .nav-dropdown-menu { display: block; }
  .desktop-nav .nav-dropdown-menu a {
    display: block; padding: 10px 18px; font-size: 14px; color: #333;
  }
  .desktop-nav .nav-dropdown-menu a:hover { background: #f0f3ff; color: #0135A3; }

  /* Desktop search stays as-is in header */

  .search-box { display: none !important; }
  .side-nav, .nav-overlay { display: none !important; }

  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-row { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: repeat(4, 1fr); }
  .sites-grid { grid-template-columns: repeat(3, 1fr); }
  .cert-item { width: 528px; }
  .banner-section .swiper-slide img { min-height: 360px; }
  .banner-section { height: 620px; }
  .section-title { font-size: 22px; }
  .detail-title { font-size: 24px; }
}

/* ============================================================
   Large Desktop (≥1200px)
   ============================================================ */
@media (min-width: 1200px) {
  .banner-section .swiper-slide img { min-height: 420px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
