html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

html, body {
  height: 100%;
}

body, html {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.container {
  flex: 1 0 auto;
  background: rgba(255,255,255,0.92);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  padding-top: 0;
  padding-bottom: 24px;
  margin-top: 0;
  margin-bottom: 24px;
}

main.pb-3 {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.company-section-bg,
.product-section-bg,
.equipment-section-bg {
  margin-top: 0 !important;
}

footer.footer {
  flex-shrink: 0;
  text-align: center;
  padding: 1rem 0;
  background: linear-gradient(90deg, #e3f0ff 0%, #f6fafd 100%);
  width: 100%;
  border-top: 1px solid #e0e0e0;
  color: #333;
  position: relative;
  margin-top: auto;
}

.footer-bg-only {
  height: 36px;
  background: linear-gradient(90deg, #e3f0ff 0%, #f6fafd 100%);
  border-top: 1px solid #e0e0e0;
  width: 100%;
  margin-top: 0;
  padding: 0;
}

.footer-content {
  margin-top: 48px;
  padding-bottom: 12px;
  color: #333;
  font-size: 1rem;
}

@media (max-width: 767px) {
  .footer-content {
    font-size: 0.95rem;
    margin-top: 32px;
  }
  .footer-bg-only {
    height: 28px;
  }
}

.product-section-bg {
    background: linear-gradient(90deg, #e0eafc 0%, #cfdef3 100%);
    border-radius: 12px;
    padding: 32px 0 16px 0;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.equipment-section-bg {
    background: linear-gradient(90deg, #fbc2eb 0%, #a6c1ee 100%);
    border-radius: 12px;
    padding: 32px 0 16px 0;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.company-section-bg {
    background: linear-gradient(90deg, #fdf6e3 0%, #f5e9d7 100%);
    border-radius: 12px;
    padding: 16px 0 8px 0;
    margin-bottom: 32px;
    margin-top: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.navbar {
    margin-bottom: 8px !important;
    background: linear-gradient(90deg, #e3f0ff 0%, #f6fafd 100%) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.navbar-nav > .nav-item > .nav-link,
.navbar-nav > .nav-item > .nav-link.dropdown-toggle {
    font-size: 1.35rem !important;
    font-weight: 600;
    color: #005baa !important;
    letter-spacing: 1px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.navbar-nav .dropdown-menu {
    font-size: 1.1rem;
}
.navbar .navbar-nav .nav-link.active, .navbar .navbar-nav .nav-link:focus, .navbar .navbar-nav .nav-link:hover {
    color: #1976d2 !important;
    background: rgba(0,91,170,0.08);
    border-radius: 6px;
}

.carousel-item {
    transition: none;
}
.slide-in-right {
    animation: slideInRight 0.6s forwards;
    z-index: 2;
}
.slide-out-left {
    animation: slideOutLeft 0.6s forwards;
    z-index: 1;
}
.slide-in-left {
    animation: slideInLeft 0.6s forwards;
    z-index: 2;
}
.slide-out-right {
    animation: slideOutRight 0.6s forwards;
    z-index: 1;
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0.7; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0.7; }
}
@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0.7; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0.7; }
}

/* 荣誉资质页面美化 */
.honor-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin-bottom: 0.5rem;
}
.honor-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
    z-index: 2;
}
.honor-img {
    height: 260px;
    width: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px 12px 0 0;
    background: #f5f7fa;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    aspect-ratio: 3/4;
    /* 高度大于宽度，纵向证书风格 */
}
@media (max-width: 767px) {
    .honor-img {
        height: 160px;
        aspect-ratio: 3/4;
    }
}

/* 荣誉资质大图弹窗效果 */
.honor-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.65);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}
.honor-modal-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    background: #fff;
    border: 4px solid #fff;
    animation: scaleIn 0.2s;
}
@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes scaleIn {
    from { transform: scale(0.85); opacity: 0.5; } to { transform: scale(1); opacity: 1; }
}
.honor-modal-backdrop { cursor: zoom-out; }