/* ============================================================
   黑龙江商会 PC 官网样式（数据来源：后台"官网设置"+ 商会业务数据）
   ============================================================ */
:root {
    --navy: #12304e;
    --navy-deep: #0c2238;
    --gold: #c9a25e;
    --gold-light: #e2c893;
    --text: #333a45;
    --text-light: #7a8494;
    --bg-alt: #f6f8fa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; } /* zoom 1.5 已于 2026-09-13 回滚（人为放大数据失真/自动化偏移等多问题），2026-09-12 的 150% 放大定版废止 */
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background .3s, box-shadow .3s;
}
.site-header.solid { background: #fff; box-shadow: 0 2px 16px rgba(12,34,56,.12); }
.header-inner { display: flex; align-items: center; height: 72px; gap: 40px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; transition: color .3s; }
.site-header.solid .brand { color: var(--navy); }
.brand-logo { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }
.brand-name { font-size: 20px; font-weight: 600; letter-spacing: 1px; }
.nav-group { display: flex; align-items: center; gap: 40px; margin: 0 auto; }
.nav { display: flex; gap: 34px; }
.nav a { color: rgba(255,255,255,.9); font-size: 15px; padding: 6px 0; position: relative; transition: color .3s; }
.nav a::after {
    content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px;
    background: var(--gold); transition: all .3s; transform: translateX(-50%);
}
.nav a:hover::after { width: 100%; }
.site-header.solid .nav a { color: var(--text); }
.btn-h5 {
    padding: 9px 22px; border: 1px solid var(--gold); border-radius: 22px;
    color: var(--gold); font-size: 14px; transition: all .3s;
}
.site-header:not(.solid) .btn-h5 { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-h5:hover { background: var(--gold); color: #fff !important; border-color: var(--gold); }
.btn-admin {
    padding: 9px 22px; border-radius: 22px; background: var(--gold);
    color: #fff; font-size: 14px; transition: all .3s;
}
.btn-admin:hover { background: var(--gold-light); color: #fff; }

/* ---------- 首屏轮播 ---------- */
/* 固定 12:5 比例（与轮播图原尺寸 1920x800 一致），宽高同比缩放，图片不被压缩变形 */
.hero { position: relative; aspect-ratio: 12 / 5; max-height: 100vh; overflow: hidden; background: var(--navy-deep); } /* 原为 calc(100vh/1.5) zoom 补偿值，zoom 回滚后同步还原 */
.hero-slides, .hero-slide { width: 100%; height: 100%; }
.hero-slide { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-mask {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(12,34,56,.45) 0%, rgba(12,34,56,.15) 40%, rgba(12,34,56,.65) 100%);
}
.hero-caption {
    position: absolute; left: 0; right: 0; bottom: 16%; text-align: center; color: #fff; z-index: 5;
    text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.hero-caption h1 { font-size: 46px; font-weight: 700; letter-spacing: 6px; }
.hero-caption p { margin-top: 14px; font-size: 18px; letter-spacing: 8px; color: var(--gold-light); }
.hero-dots {
    position: absolute; bottom: 34px; left: 0; right: 0; display: flex;
    justify-content: center; gap: 10px; z-index: 5;
}
.hero-dots span {
    width: 26px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.4);
    cursor: pointer; transition: background .3s;
}
.hero-dots span.on { background: var(--gold); }

/* ---------- 通用板块 ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-head h2 {
    display: inline-block; font-size: 30px; color: var(--navy); letter-spacing: 3px; font-weight: 600;
}
.sec-line {
    display: block; width: 56px; height: 3px; margin: 16px auto 0;
    background: var(--gold); border-radius: 2px;
}

/* ---------- 商会简介 ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.about-pic img { width: 100%; border-radius: 10px; box-shadow: 0 14px 34px rgba(12,34,56,.16); }
.about-stats { display: flex; gap: 16px; margin-bottom: 30px; }
.stat {
    flex: 1; text-align: center; padding: 20px 8px; border-radius: 10px;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff;
}
.stat strong { display: block; font-size: 30px; color: var(--gold-light); }
.stat span { display: block; margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.75); }
.stat-link:hover strong { color: #fff; }
.about-text { font-size: 15.5px; line-height: 1.95; color: var(--text); text-align: justify; }
.about-text p { margin-bottom: 0; }
.intro-excerpt { margin-bottom: 22px; }
.btn-outline {
    padding: 9px 26px; background: none; cursor: pointer;
    border: 1px solid var(--gold); border-radius: 22px;
    color: #a8853f; font-size: 14px; letter-spacing: 1px; transition: all .3s;
}
.btn-outline:hover { background: var(--gold); color: #fff; }

/* ---------- 简介全文弹层 ---------- */
.modal-mask {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(12,34,56,.55); backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center; padding: 30px 20px;
}
.modal-mask[hidden] { display: none; }
.modal-box {
    width: 640px; max-width: 100%; max-height: 80vh; display: flex; flex-direction: column;
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 24px 64px rgba(12,34,56,.3);
    animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.modal-head {
    flex: none; display: flex; align-items: center; justify-content: space-between;
    padding: 20px 26px; border-bottom: 1px solid #eef1f5;
}
.modal-head h3 { font-size: 18px; color: var(--navy); letter-spacing: 1px; }
.modal-close {
    width: 34px; height: 34px; border: none; background: #f2f4f7; border-radius: 50%;
    font-size: 20px; line-height: 1; color: var(--text-light); cursor: pointer; transition: all .3s;
}
.modal-close:hover { background: var(--gold); color: #fff; }
.modal-body { overflow-y: auto; padding: 26px 28px 32px; font-size: 15px; line-height: 1.95; color: var(--text); text-align: justify; }

/* 会员详情弹层（内部排版，外壳复用 .modal-*） */
.member-detail .m-top { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.member-detail .m-logo {
    width: 76px; height: 76px; flex: none; object-fit: contain;
    border: 1px solid #e8edf2; border-radius: 8px; padding: 5px; background: #fff;
}
.member-detail .m-cat { font-size: 14px; color: var(--text-light); }
.member-detail .m-tag {
    display: inline-block; margin: 8px 8px 0 0; padding: 3px 12px;
    background: var(--bg-alt); border-radius: 12px; font-size: 13px; color: var(--gold);
}
.member-detail .m-intro { white-space: pre-wrap; margin-bottom: 14px; }
.member-detail .m-addr { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.member-detail .m-addr i {
    flex: none; font-style: normal; font-size: 13px; color: var(--text-light);
    background: var(--bg-alt); padding: 2px 10px; border-radius: 4px;
}

/* ---------- 活动动态 ---------- */
.act-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.act-card {
    background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 6px 20px rgba(12,34,56,.08); transition: transform .3s, box-shadow .3s;
}
.act-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(12,34,56,.14); }
.act-pic { height: 200px; background: #e8edf2; }
.act-pic img { width: 100%; height: 100%; object-fit: cover; }
.act-info { padding: 20px 22px 24px; }
.act-info h3 { font-size: 17px; color: var(--navy); line-height: 1.5; }
.act-meta { margin-top: 12px; font-size: 13px; color: var(--text-light); display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- 会员风采 ---------- */
.member-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.member-card {
    background: #fff; border: 1px solid #e8edf2; border-radius: 10px;
    padding: 22px 12px 18px; text-align: center; transition: all .3s;
}
.member-card:hover { border-color: var(--gold); box-shadow: 0 10px 26px rgba(12,34,56,.1); transform: translateY(-4px); }
.member-card { cursor: pointer; } /* 卡片可点开详情弹层 */
.member-logo { height: 74px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.member-logo img { max-height: 74px; max-width: 86%; object-fit: contain; }
.member-card h3 {
    font-size: 13.5px; color: var(--navy); font-weight: 600; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 39px;
}
.member-card p { margin-top: 8px; font-size: 12px; color: var(--text-light); }
.member-more { margin-top: 40px; text-align: center; font-size: 14px; color: var(--text-light); }
.member-more a { color: var(--gold); }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 6fr 6fr; gap: 48px; align-items: stretch; }
.contact-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 14px 34px rgba(12,34,56,.14); min-height: 300px; }
.contact-body { background: #fff; border-radius: 10px; padding: 42px 44px; border: 1px solid #e8edf2; }
.contact-body h3 { font-size: 24px; color: var(--navy); margin-bottom: 28px; letter-spacing: 1px; }
.c-line { display: flex; align-items: baseline; margin-bottom: 20px; font-size: 15.5px; color: var(--text); }
.c-line i {
    font-style: normal; flex: none; width: 52px; height: 26px; line-height: 26px; text-align: center;
    background: rgba(201,162,94,.14); color: #a8853f; border-radius: 4px; font-size: 13px; margin-right: 14px;
}
.c-line a:hover { color: var(--gold); }
.qr { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.qr img { width: 96px; height: 96px; border-radius: 8px; border: 1px solid #e8edf2; }
.qr span { font-size: 13px; color: var(--text-light); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.55); padding: 34px 0; text-align: center; font-size: 13.5px; }
.f-name { color: #fff; font-size: 16px; letter-spacing: 2px; margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.55); }
.site-footer a:hover { color: var(--gold); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
    .nav { display: none; }
    .nav-group { margin-left: auto; gap: 12px; }
    .btn-admin { display: none; } /* 手机端不展示后台入口 */
    .hero-caption h1 { font-size: 30px; letter-spacing: 3px; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .act-grid { grid-template-columns: 1fr; }
    .member-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 60px 0; }
}
