/*
 * PC 官网 & 会员中心样式（视觉沿用小程序风格）
 * 主题色 #325DFF / 背景 #F4F6FB / 圆角卡片
 */

:root {
    --pc-primary: #325DFF;
    --pc-primary-light: #EAF0FF;
    --pc-bg: #F4F6FB;
    --pc-text: #333333;
    --pc-sub: #5A6B8C;
    --pc-muted: #9AA6BF;
    --pc-border: #EBEEF5;
    --pc-radius: 12px;
    --pc-shadow: 0 6px 20px rgba(50, 93, 255, .06);
}

body.pc-body {
    background: var(--pc-bg);
    color: var(--pc-text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    padding-top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------------- 头部 ---------------- */
.pc-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

.pc-header-top {
    background: var(--pc-primary);
    color: rgba(255, 255, 255, .92);
    font-size: 13px;
    line-height: 34px;
}
.pc-header-top .pc-wrap { display: flex; justify-content: space-between; align-items: center; }
.pc-header-top .pc-top-right > a { color: #fff; margin-left: 18px; }

.pc-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.pc-header-nav {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pc-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--pc-text);
}
.pc-logo img { height: 44px; width: auto; margin-right: 10px; }
.pc-logo .pc-logo-name {
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    margin: 0;
    color: var(--pc-text);
}
.pc-nav { display: flex; align-items: center; margin: 0; }
.pc-nav > li { list-style: none; }
.pc-nav > li > a {
    display: inline-block;
    padding: 0 16px;
    line-height: 72px;
    color: var(--pc-text);
    text-decoration: none;
    font-size: 15px;
    transition: color .25s;
    position: relative;
}
.pc-nav > li > a:hover,
.pc-nav > li.active > a { color: var(--pc-primary); }
.pc-nav > li.active > a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--pc-primary);
}
.pc-nav-user { margin-left: 6px; }
/* 导航内的登录按钮：覆盖导航项 line-height/padding，避免被撑成高瘦的畸形态 */
.pc-nav > li > a.pc-btn {
    line-height: 1;
    padding: 8px 22px;
    vertical-align: middle;
}

.pc-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--pc-primary);
}

/* ---------------- 通用容器 ---------------- */
.pc-main { padding: 24px 0 48px; flex: 1 0 auto; }
.pc-card {
    background: #fff;
    border-radius: var(--pc-radius);
    box-shadow: var(--pc-shadow);
    padding: 24px;
    margin-bottom: 24px;
    border: none;
}
.pc-section { margin-bottom: 24px; }
.pc-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
}
.pc-section-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--pc-text);
    margin: 0;
    position: relative;
    padding-left: 14px;
}
.pc-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    border-radius: 4px;
    background: var(--pc-primary);
}
.pc-section-sub { color: var(--pc-muted); font-size: 12px; margin-left: 8px; }
.pc-more { color: var(--pc-muted); text-decoration: none; font-size: 13px; }
.pc-more:hover { color: var(--pc-primary); }

.pc-btn {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 999px;
    background: var(--pc-primary);
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    border: none;
    transition: opacity .25s;
}
.pc-btn:hover { opacity: .88; }
.pc-btn-block { display: block; width: 100%; text-align: center; padding: 12px 0; font-size: 16px; }
.pc-btn-ghost {
    background: #fff;
    color: var(--pc-primary) !important;
    border: 1px solid var(--pc-primary);
}

.pc-tag {
    display: inline-block;
    padding: 1px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: var(--pc-primary-light);
    color: var(--pc-primary);
}
.pc-tag-gray { background: #F0F2F7; color: var(--pc-muted); }

/* ---------------- 轮播 ---------------- */
.pc-banner { border-radius: var(--pc-radius); overflow: hidden; margin-bottom: 24px; }
.pc-banner .pc-banner-item { height: 400px; background-size: cover; background-position: center; }
.pc-banner .carousel-indicators li { width: 10px; height: 10px; border-radius: 50%; margin: 0 5px; }

/* ---------------- 首页介绍 ---------------- */
.pc-intro { display: flex; gap: 24px; align-items: center; }
.pc-intro-text { flex: 1; color: var(--pc-sub); line-height: 1.9; }
.pc-intro-text p { margin: 0 0 8px; }
.pc-intro-img { width: 380px; flex: none; }
.pc-intro-img img { width: 100%; border-radius: var(--pc-radius); }

/* ---------------- 卡片列表 ---------------- */
.pc-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.pc-grid-3 > .pc-grid-item,
.pc-grid-3 > .pc-member { width: calc((100% - 40px) / 3); }
.pc-grid-4 > .pc-grid-item,
.pc-grid-4 > .pc-member { width: calc((100% - 60px) / 4); }
.pc-grid-item {
    background: #fff;
    border-radius: var(--pc-radius);
    overflow: hidden;
    box-shadow: var(--pc-shadow);
    text-decoration: none;
    color: var(--pc-text);
    display: block;
    transition: transform .25s, box-shadow .25s;
}
.pc-grid-item:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(50, 93, 255, .12); }
.pc-grid-item .pc-thumb {
    height: 170px;
    background-size: cover;
    background-position: center;
    background-color: #EEF1F8;
}
.pc-grid-item .pc-grid-body { padding: 14px 16px 18px; }
.pc-grid-item .pc-grid-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pc-grid-item .pc-grid-meta { color: var(--pc-muted); font-size: 13px; }

/* ---------------- 会员风采 ---------------- */
.pc-member {
    background: #fff;
    border-radius: var(--pc-radius);
    box-shadow: var(--pc-shadow);
    padding: 26px 18px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .25s, box-shadow .25s;
}
.pc-member:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(50, 93, 255, .12); }
.pc-member img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    background: #EEF1F8;
    flex: none;
}
.pc-member .pc-member-name { margin: 14px 0 8px; font-weight: 600; font-size: 16px; }
.pc-member .pc-member-level {
    font-size: 12px;
    color: var(--pc-primary);
    background: var(--pc-primary-light);
    padding: 2px 10px;
    border-radius: 999px;
    flex: none;
}
.pc-member .pc-member-org {
    font-size: 12px;
    color: var(--pc-muted);
    margin-top: 10px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------------- 列表行 ---------------- */
.pc-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--pc-border);
    text-decoration: none;
    color: var(--pc-text);
}
.pc-list-item:last-child { border-bottom: none; }
.pc-list-item:hover { color: var(--pc-primary); }
.pc-list-item .pc-li-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 16px;
}
.pc-list-item .pc-li-date { color: var(--pc-muted); font-size: 13px; flex: none; }

/* ---------------- 详情 ---------------- */
.pc-article-head { margin-bottom: 18px; border-bottom: 1px solid var(--pc-border); padding-bottom: 16px; }
.pc-article-head h1 { font-size: 26px; font-weight: 600; margin: 0 0 12px; line-height: 1.5; }
.pc-article-head .pc-article-meta { color: var(--pc-muted); font-size: 13px; }
.pc-article-content { line-height: 2; color: #333; word-break: break-word; }
.pc-article-content img { max-width: 100%; height: auto; }
.pc-article-content table { max-width: 100%; }

/* ---------------- 分页 ---------------- */
.pc-pager { text-align: center; margin-top: 24px; }
.pc-pager .pagination { display: inline-block; margin: 0; }
.pc-pager .pagination > li > a,
.pc-pager .pagination > li > span {
    border: none;
    border-radius: 8px;
    margin: 0 3px;
    color: var(--pc-sub);
    box-shadow: var(--pc-shadow);
    min-width: 36px;
    text-align: center;
}
.pc-pager .pagination > .active > a,
.pc-pager .pagination > .active > span {
    background: var(--pc-primary);
    color: #fff;
}
.pc-pager .pagination > .disabled > a,
.pc-pager .pagination > .disabled > span { color: var(--pc-muted); box-shadow: none; }

/* ---------------- FAQ ---------------- */
.pc-faq-item { background: #fff; border-radius: var(--pc-radius); box-shadow: var(--pc-shadow); margin-bottom: 12px; overflow: hidden; }
.pc-faq-q {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pc-faq-q .pc-faq-icon { color: var(--pc-primary); }
.pc-faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: all .3s; color: var(--pc-sub); line-height: 1.9; }
.pc-faq-item.open .pc-faq-a { padding: 14px 20px 20px; max-height: 600px; }

/* ---------------- 底部 ---------------- */
.pc-footer { background: #1F2A44; color: rgba(255, 255, 255, .7); padding: 32px 0; font-size: 13px; }
.pc-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.pc-footer a:hover { color: #fff; }
.pc-footer .pc-footer-tips { margin-top: 10px; color: rgba(255, 255, 255, .5); }

/* ---------------- 登录 / 会员中心 ---------------- */
.pc-login-box { max-width: 420px; margin: 60px auto; }
.pc-qrcode-wrap { text-align: center; padding: 10px 0 4px; }
.pc-qrcode {
    width: 240px;
    height: 240px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius);
    background: #fff;
    overflow: hidden;
}
.pc-qrcode img { width: 100%; height: 100%; object-fit: contain; }
.pc-qrcode-tip { color: var(--pc-sub); }
.pc-qrcode-tip b { color: var(--pc-primary); }

.pc-login-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--pc-primary);
    margin: 0 0 20px;
}
.pc-login-note { text-align: center; color: var(--pc-muted); font-size: 13px; margin: 4px 0 12px; }
.pc-qrcode-refresh { text-align: center; }
.pc-qrcode-refresh a { color: var(--pc-primary); text-decoration: none; font-size: 13px; }

.pc-member-card {
    background: linear-gradient(135deg, #325DFF 0%, #5B7BFF 100%);
    border-radius: var(--pc-radius);
    color: #fff;
    padding: 26px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.pc-member-card img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .6); }
.pc-member-card .pc-mc-name { font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.pc-member-card .pc-mc-sub { font-size: 13px; opacity: .9; }

.pc-stat { text-align: center; padding: 16px 6px; }
.pc-stat .pc-stat-num { font-size: 24px; font-weight: 600; color: var(--pc-primary); }
.pc-stat .pc-stat-label { color: var(--pc-muted); font-size: 13px; margin-top: 4px; }

.pc-entry {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #fff;
    border-radius: var(--pc-radius);
    box-shadow: var(--pc-shadow);
    text-decoration: none;
    color: var(--pc-text);
}
.pc-entry i { font-size: 20px; color: var(--pc-primary); margin-right: 12px; }

/* ---------------- 会员中心 ---------------- */
.pc-uc-card { flex-wrap: wrap; }
.pc-mc-info { flex: 1; min-width: 200px; }
.pc-mc-action { flex: none; }

.pc-uc-info { display: flex; flex-wrap: wrap; gap: 16px; }
.pc-uc-info-item {
    flex: 1;
    min-width: 160px;
    background: #F7F9FF;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.pc-uc-info-label { color: var(--pc-muted); }

.pc-uc-reject { border-left: 4px solid #FF6B4A; }
.pc-uc-reject-title { font-weight: 600; color: #FF6B4A; }
.pc-uc-reject-reason { color: var(--pc-sub); margin-top: 8px; }

.pc-uc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--pc-border);
}
.pc-uc-item:last-child { border-bottom: none; }
.pc-uc-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
    font-weight: 500;
}
.pc-uc-meta { color: var(--pc-muted); font-size: 13px; margin-right: 12px; flex: none; }
.pc-uc-empty { text-align: center; color: var(--pc-muted); padding: 24px 0; }

.pc-uc-entries { display: flex; flex-wrap: wrap; gap: 16px; }
.pc-uc-entries .pc-entry { flex: 1; min-width: 160px; }

/* ---------------- 小程序码弹窗 ---------------- */
.pc-modal-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1200;
    align-items: center;
    justify-content: center;
}
.pc-modal-mask.show { display: flex; }
.pc-modal {
    background: #fff;
    border-radius: var(--pc-radius);
    padding: 24px;
    width: 300px;
    text-align: center;
    position: relative;
}
.pc-modal .pc-modal-close { position: absolute; right: 12px; top: 10px; cursor: pointer; color: var(--pc-muted); font-size: 18px; }
.pc-modal img { width: 220px; height: 220px; object-fit: contain; }
.pc-modal .pc-modal-title { font-weight: 600; margin-bottom: 12px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 992px) {
    .pc-nav { display: none; }
    .pc-nav-toggle { display: block; }
    .pc-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        left: 0;
        right: 0;
        top: 72px;
        background: #fff;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
        padding: 8px 0;
    }
    .pc-nav.open > li > a { line-height: 44px; display: block; }
    .pc-intro { flex-direction: column; }
    .pc-intro-img { width: 100%; }
    .pc-banner .pc-banner-item { height: 220px; }
    .pc-grid-3 > .pc-grid-item,
    .pc-grid-3 > .pc-member,
    .pc-grid-4 > .pc-grid-item,
    .pc-grid-4 > .pc-member { width: calc((100% - 20px) / 2); }
    .pc-header-nav { position: relative; }
}
@media (max-width: 576px) {
    .pc-grid-3 > .pc-grid-item,
    .pc-grid-3 > .pc-member,
    .pc-grid-4 > .pc-grid-item,
    .pc-grid-4 > .pc-member { width: 100%; }
}
