/*
 * 文件用途：Bolin7 纯 PHP 静态站点样式文件。
 * 复刻原站顶部导航、首页卡片、联系页、业务图片展示和固定底部版权栏。
 */
:root {
    --bg: #ffffff;
    --text: #202124;
    --muted: #5f6368;
    --line: #eef0f3;
    --primary: #2563eb;
    --shadow: 0 18px 45px rgba(15, 23, 42, .10);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
body { padding-bottom: 54px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.navbar { width: min(1180px, calc(100% - 32px)); height: 82px; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.logo { width: 160px; flex: 0 0 auto; }
.logo img { width: 160px; border-radius: 4px; }
.search { flex: 1 1 420px; max-width: 460px; margin-left: auto; display: flex; align-items: center; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 14px; padding: 0 10px 0 18px; height: 48px; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; color: #111827; }
.search button { width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; font-size: 22px; line-height: 1; color: #6b7280; }
.nav-links { display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.nav-link { font-size: 15px; color: #1f2937; transition: color .2s ease, transform .2s ease; cursor: pointer; }
.nav-link:hover, .nav-link.active { color: var(--primary); transform: translateY(-1px); }
.login-link { padding: 8px 14px; border: 1px solid #dbeafe; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.login-link:hover { background: #dbeafe; }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; border-radius: 10px; background: #f3f4f6; font-size: 22px; cursor: pointer; }
.page-box { min-height: calc(100vh - 136px); }
.home-box { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 76px; }
.title-logo { width: 220px; margin: 18px auto 34px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 26px; justify-items: center; }
.home-card { position: relative; width: min(260px, 100%); display: block; border-radius: 18px; transition: transform .25s ease, box-shadow .25s ease; }
.home-card img { width: 100%; border-radius: 18px; filter: drop-shadow(0 10px 18px rgba(15,23,42,.10)); }
.home-card span { position: absolute; left: 18px; bottom: 16px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.80); font-size: 13px; font-weight: 600; color: #111827; display: none; }
.home-card:hover { transform: scale(1.045); }
.about-box { width: min(1080px, calc(100% - 42px)); margin: 0 auto; min-height: calc(100vh - 136px); display: grid; grid-template-columns: 390px 1fr; align-items: center; gap: 62px; padding: 54px 0 88px; }
.qr-card img { width: 360px; border-radius: 16px; box-shadow: var(--shadow); }
.about-info h1, .detail-info h1 { margin: 0 0 28px; font-size: 30px; line-height: 1.25; font-weight: 800; letter-spacing: .02em; }
.about-info p, .detail-text p { margin: 0 0 18px; font-size: 16px; line-height: 1.95; color: #111827; }
.detail-box { width: min(1120px, calc(100% - 42px)); margin: 0 auto; min-height: calc(100vh - 136px); padding: 54px 0 90px; display: grid; grid-template-columns: 1.05fr 390px; gap: 58px; align-items: center; }
.detail-info { max-width: 620px; }
.detail-text { padding-top: 2px; }
.gallery-card { position: relative; width: 360px; height: 500px; margin: 0 auto; border-radius: 22px; background: linear-gradient(145deg, #ffffff, #f3f4f6); box-shadow: var(--shadow); overflow: hidden; }
.gallery-card .gallery-img { width: 100%; height: 100%; object-fit: cover; display: none; }
.gallery-card .gallery-img.show { display: block; }
.thumb-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; margin-top: 8px; }
.thumb-grid img { width: 100%; height: 72px; object-fit: cover; border-radius: 10px; box-shadow: 0 6px 16px rgba(15,23,42,.08); }
.not-found { min-height: calc(100vh - 136px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.not-found h1 { font-size: 72px; margin: 0; }
.not-found a { color: var(--primary); font-weight: 700; }
.site-footer { position: fixed; left: 0; right: 0; bottom: 0; height: 40px; line-height: 40px; text-align: center; background: rgba(255,255,255,.96); box-shadow: 0 -8px 20px rgba(15,23,42,.08); border-radius: 8px 8px 0 0; z-index: 60; color: #333; font-size: 14px; }
@media (max-width: 980px) {
    .navbar { height: 72px; gap: 12px; }
    .search { display: none; }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav-links { position: fixed; top: 72px; left: 0; right: 0; display: none; flex-direction: column; align-items: flex-start; gap: 0; padding: 14px 28px 22px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 28px rgba(15,23,42,.10); }
    .nav-links.open { display: flex; }
    .nav-link { width: 100%; padding: 14px 0; }
    .login-link { width: auto; padding: 9px 15px; margin-top: 8px; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-box, .detail-box { grid-template-columns: 1fr; gap: 28px; padding-top: 38px; }
    .qr-card img, .gallery-card { width: min(360px, 100%); }
    .gallery-card { height: 470px; }
}
@media (max-width: 560px) {
    .navbar { width: calc(100% - 22px); }
    .logo, .logo img { width: 132px; }
    .home-box { width: calc(100% - 26px); padding-top: 18px; }
    .title-logo { width: 170px; margin: 16px auto 24px; }
    .card-grid { grid-template-columns: 1fr; gap: 16px; }
    .home-card { width: min(275px, 92%); }
    .about-info h1, .detail-info h1 { font-size: 24px; }
    .about-info p, .detail-text p { font-size: 15px; line-height: 1.85; }
    .gallery-card { height: 420px; }
    .thumb-grid { grid-template-columns: repeat(3, 1fr); }
}
