/* ============================================================
   商协会 PC端样式
   ============================================================ */

:root {
    --sxh-primary: #2563eb;
    --sxh-primary-dark: #1d4ed8;
    --sxh-gradient: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    --sxh-dark: #1e293b;
    --sxh-text: #334155;
    --sxh-text-light: #94a3b8;
    --sxh-bg: #f8fafc;
    --sxh-radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--sxh-text);
    background-color: var(--sxh-bg);
}

/* 导航栏 */
.sxh-navbar {
    background: var(--sxh-gradient);
    padding: 0.8rem 0;
    box-shadow: 0 2px 20px rgba(37, 99, 235, 0.15);
}
.sxh-navbar .navbar-brand { font-size: 1.25rem; }
.sxh-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    border-radius: 6px;
    margin: 0 2px;
}
.sxh-navbar .nav-link:hover,
.sxh-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.15);
}

/* 页面头部横幅 */
.sxh-page-header {
    background: var(--sxh-gradient);
    padding: 60px 0 50px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}
.sxh-page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--sxh-bg);
    border-radius: 40px 40px 0 0;
}

/* 首页轮播 */
.sxh-banner .banner-item {
    height: 480px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}
.sxh-banner .banner-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(30,41,59,0.7), rgba(30,41,59,0.2));
}
.sxh-banner .banner-content { position: relative; z-index: 1; }
.sxh-banner .banner-default {
    background: var(--sxh-gradient);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sxh-banner .swiper-pagination-bullet-active {
    background: var(--sxh-primary);
}

/* 通用卡片 */
.sxh-card {
    border: none;
    border-radius: var(--sxh-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    overflow: hidden;
}
.sxh-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* 会员头像 */
.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e2e8f0;
}
.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--sxh-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
}
.member-avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.3);
}
.member-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder-lg {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
}
.member-detail-header {
    background: var(--sxh-gradient);
}

.member-hover-card:hover .member-avatar { border-color: var(--sxh-primary); }

/* 相册 */
.gallery-cover { position: relative; overflow: hidden; height: 200px; }
.gallery-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37,99,235,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-card:hover .gallery-cover img { transform: scale(1.1); }
.gallery-card:hover .gallery-overlay { opacity: 1; }

/* 文章内容 */
.article-content { line-height: 1.9; color: var(--sxh-text); }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }

/* 章节标题 */
.section-header h3 { position: relative; display: inline-block; }
.section-header h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--sxh-gradient);
    border-radius: 2px;
}

/* 页脚 */
.sxh-footer {
    background: var(--sxh-dark);
    padding: 50px 0 30px;
    margin-top: 40px;
}

/* 分页 */
.pagination .page-link { border-radius: 8px; margin: 0 2px; color: var(--sxh-primary); }
.pagination .page-item.active .page-link {
    background: var(--sxh-primary);
    border-color: var(--sxh-primary);
}

/* 按钮 */
.btn-primary {
    background: var(--sxh-primary);
    border-color: var(--sxh-primary);
    border-radius: 8px;
}
.btn-primary:hover {
    background: var(--sxh-primary-dark);
    border-color: var(--sxh-primary-dark);
}
.btn-outline-primary {
    color: var(--sxh-primary);
    border-color: var(--sxh-primary);
    border-radius: 8px;
}
.btn-outline-primary:hover {
    background: var(--sxh-primary);
    border-color: var(--sxh-primary);
}

/* 响应式 */
@media (max-width: 768px) {
    .sxh-banner .banner-item { height: 280px; }
    .sxh-page-header { padding: 40px 0 35px; }
}

/* ============================================================
   整体尺寸优化 - 更紧凑优雅的设计
   ============================================================ */

/* ===== 整体尺寸优化 ===== */
body {
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

/* 标题字体缩放 */
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

/* 导航栏紧凑 */
.sxh-navbar {
    padding: 6px 0 !important;
}
.sxh-navbar .navbar-brand img {
    height: 30px !important;
}
.sxh-navbar .navbar-brand span {
    font-size: 1rem !important;
}
.sxh-navbar .navbar-brand {
    font-size: 1rem !important;
}
.sxh-navbar .nav-link {
    font-size: 0.875rem !important;
    padding: 6px 12px !important;
}

/* 页面头部区域缩小 */
.sxh-page-header {
    padding: 30px 0 !important;
}
.sxh-page-header h2 {
    font-size: 1.5rem !important;
}
.sxh-page-header p {
    font-size: 0.85rem !important;
}

/* 段落间距收紧 */
section.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}
section.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* 卡片样式优化 */
.sxh-card {
    border-radius: 10px !important;
}
.sxh-card .card-body {
    padding: 15px !important;
}
.sxh-card .card-body h5 {
    font-size: 0.95rem !important;
}
.sxh-card .card-body p {
    font-size: 0.8rem !important;
}
.sxh-card .card-img-top,
.card-img-top {
    height: 160px !important;
    object-fit: cover;
}

/* 相册封面高度调整 */
.gallery-cover {
    height: 160px !important;
}

/* 按钮紧凑 */
.btn {
    font-size: 0.85rem;
    padding: 6px 16px;
}
.btn-sm {
    font-size: 0.78rem;
    padding: 4px 12px;
}
.btn-lg {
    font-size: 0.9rem;
    padding: 8px 20px;
}

/* 首页轮播高度 */
.swiper {
    max-height: 360px !important;
}
.swiper img {
    max-height: 360px !important;
    object-fit: cover;
}
.sxh-banner .banner-item {
    height: 360px !important;
}
.sxh-banner .banner-default {
    height: 360px !important;
}

/* 首页板块标题 */
.section-title {
    font-size: 1.3rem !important;
    margin-bottom: 1rem !important;
}
.section-header h3 {
    font-size: 1.3rem !important;
}

/* 底部 footer 紧凑 */
footer {
    padding-top: 2rem !important;
    padding-bottom: 0.5rem !important;
    font-size: 0.8rem !important;
}
.sxh-footer {
    padding: 2rem 0 0.5rem !important;
    font-size: 0.8rem !important;
}

/* 表单元素 */
.form-control {
    font-size: 0.875rem;
    padding: 6px 12px;
}
.form-label {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

/* 会员头像尺寸调整 */
.member-avatar {
    width: 70px !important;
    height: 70px !important;
}
.member-avatar-lg {
    width: 100px !important;
    height: 100px !important;
}

/* 文章内容字体 */
.article-content {
    font-size: 0.9rem;
    line-height: 1.8;
}

/* 分页样式调整 */
.pagination .page-link {
    font-size: 0.85rem;
    padding: 4px 10px;
}

/* 容器内间距优化 */
.container,
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* 卡片间距收紧 */
.card {
    margin-bottom: 1rem;
}
.row > * {
    margin-bottom: 1rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    .sxh-banner .banner-item {
        height: 280px !important;
    }
    .sxh-page-header {
        padding: 25px 0 !important;
    }
    section.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}
