/* 自动响应式手机版：保留品牌配色、触摸光影及堂点地图。 */
:root { --nav-height: 78px; }
html { scroll-padding-top: calc(var(--nav-height) + 16px); -webkit-text-size-adjust: 100%; }
.hero, .page-hero { margin-top: var(--nav-height); }
.mobile-nav { display: none; }
.navbar .container > *, .contact-grid > *, .about-content > * { min-width: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
@media (max-width: 1024px) {
    :root { --nav-height: 76px; }
    .navbar .container { position: relative; gap: 10px; }
    .navbar .nav-links { display: none; }
    .mobile-nav { display: block; flex-shrink: 0; }
    .mobile-nav summary { display: flex; align-items: center; gap: 8px; min-width: 64px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--gold); border-radius: 6px; color: var(--white); cursor: pointer; list-style: none; font-size: 14px; }
    .mobile-nav summary::-webkit-details-marker { display: none; }
    .menu-bars { display: inline-block; width: 16px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
    .menu-bars::after { content: ''; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
    .mobile-menu { position: absolute; top: calc(100% + 10px); right: 16px; left: 16px; max-height: calc(100dvh - var(--nav-height) - 30px); overflow-y: auto; list-style: none; padding: 8px; border: 1px solid var(--gold); border-radius: 10px; background: var(--primary-dark); box-shadow: 0 12px 32px rgba(0,0,0,.3); }
    .mobile-menu a { display: block; min-height: 48px; padding: 12px 16px; color: var(--white); text-decoration: none; border-radius: 5px; }
    .mobile-menu a.active, .mobile-menu a:hover { background: var(--primary); color: var(--gold); }
    .mobile-menu li + li { border-top: 1px solid rgba(196,163,90,.2); }
}
@media (max-width: 768px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .logo .subtitle { max-width: 190px; overflow-wrap: anywhere; }
    .hero { min-height: 0; padding: 64px 0 48px; }
    .hero h2, .page-hero h2 { font-size: clamp(25px, 6.5vw, 32px); line-height: 1.5; letter-spacing: 1px; }
    .hero-text { font-size: 15px; line-height: 1.9; margin-bottom: 24px; }
    .hero-stats { flex-direction: row; flex-wrap: wrap; gap: 18px; padding: 20px 12px; margin: 24px 0; }
    .hero-stats .stat { flex: 1 1 90px; }
    .stat .number { font-size: 32px; }
    .page-hero { padding: 48px 0 36px; }
    .page-hero p { font-size: 15px; line-height: 1.9; }
    .services, .about-preview, .showcase-preview, .contact-preview, .about-story, .products-section, .gallery-section, .contact-section, .service-section, .timeline-section { padding-top: 44px; padding-bottom: 44px; }
    .section-title, .timeline-section .section-title, .about-text h2, .contact-content h2 { font-size: 28px; line-height: 1.5; margin-bottom: 28px; }
    .services-grid, .showcase-grid, .gallery-grid, .footer-content { grid-template-columns: minmax(0,1fr); gap: 22px; }
    .about-content, .contact-grid { gap: 30px; }
    .certified { padding: 36px 0; }
    .certified-badge, .product-card { padding: 24px 18px; }
    .about-image img { height: auto; aspect-ratio: 4 / 3; }
    .footer { padding-top: 36px; }
    .footer-brand { align-items: flex-start; }
    .footer-brand h3 { overflow-wrap: anywhere; line-height: 1.6; }
    .footer-section p, .footer-bottom, .info-list li { overflow-wrap: anywhere; }
    .form-group input, .form-group textarea, .form-group select { font-size: 16px; min-height: 48px; }
    .form-group input[type=checkbox] { min-height: auto; }
    .btn-submit { width: 100%; min-height: 48px; }
    #consent { width: 18px; height: 18px; vertical-align: middle; }
    .filter-btn { min-height: 44px; padding: 9px 14px; }
    .gallery-filters { gap: 10px; margin-bottom: 28px; }
    .location-section { padding: 32px 0 44px; }
    .location-address { padding: 22px 18px; }
    .location-address .btn-secondary { display: block; text-align: center; min-height: 48px; }
    .lightbox-close, .product-lightbox-close, .lightbox-nav, .product-lightbox-nav { min-width: 44px; min-height: 44px; }
    .lightbox-modal, .product-lightbox-modal { max-height: calc(100dvh - 24px); }
    .lightbox-info { flex-basis: auto; }
    .carousel-wrapper, .timeline-viewport { min-width: 0; }
    .timeline-track { justify-content: flex-start; }
    .timeline-viewport { overflow-x: auto; overscroll-behavior-inline: contain; }
    .feature-item, .service-block .highlight-box { padding: 22px 18px; }
}
@media (max-width: 380px) {
    .navbar .container { gap: 6px; padding-left: 10px; padding-right: 10px; }
    .logo { gap: 6px; }
    .logo-images .allen-logo { width: 58px; height: 29px; }
    .logo-images .company-logo { width: 26px; height: 26px; }
    .logo h1 { font-size: 16px; letter-spacing: 0; }
    .logo .subtitle { max-width: 132px; font-size: 9px; }
    .mobile-nav summary { min-width: 58px; padding: 7px; gap: 5px; }
    .carousel-btn { width: 32px; height: 44px; }
    .year-card { width: 100px; }
}
