/* ============================================
   个人介绍 H5 详情页样式（仿 zs.salekdy.com）
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    max-width: 540px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: 80px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* 主体 */
.h5-wrap {
    padding: 18px 18px 80px;
    background: #ffffff;
}

/* 大标题 - 微信公众号风格 */
.profile-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 8px;
    word-break: break-word;
}

/* 署名行：作者 · 日期 · 城市 */
.profile-byline {
    font-size: 15px;
    color: #888;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.profile-byline .byline-name { color: #576b95; font-weight: 500; }

/* 个人卡片 */
.profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    margin-bottom: 14px;
    overflow: hidden;
    position: relative;
}

/* 卡片顶部：左头像 + 右 cover 图 */
.pc-head {
    display: flex;
    align-items: stretch;
    gap: 0;
}
.pc-head-left {
    flex: 1;
    padding: 16px 14px 12px;
    min-width: 0;
}
.pc-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    float: left;
    margin-right: 10px;
}
.pc-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 4px;
}
.pc-title {
    font-size: 13px;
    color: #4a90e2;
    margin-bottom: 8px;
    line-height: 1.3;
}
.pc-sub {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}
.icon-pin {
    display: inline-block;
    width: 10px;
    height: 12px;
    background: #4a90e2;
    margin-right: 3px;
    clip-path: polygon(50% 100%, 0 40%, 25% 0, 75% 0, 100% 40%);
    vertical-align: -1px;
}

/* 右侧封面图 */
.pc-cover {
    width: 130px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #2c7afd 0%, #6ec6ff 100%);
    position: relative;
    overflow: hidden;
}
.pc-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 130px;
}
.pc-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220,38,38,.0) 50%, rgba(220,38,38,.55) 100%);
    pointer-events: none;
}
.pc-cover-overlay::before {
    content: '★';
    position: absolute;
    right: 12px;
    top: 12px;
    color: rgba(255,215,0,.85);
    font-size: 22px;
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
}

/* 数据三栏 */
.pc-stats {
    display: flex;
    justify-content: space-around;
    padding: 12px 8px 14px;
    border-top: 1px solid #f3f3f3;
    background: #fafafa;
}
.pc-stat {
    text-align: center;
    flex: 1;
    padding: 0 6px;
    position: relative;
}
.pc-stat + .pc-stat::before {
    content: '';
    position: absolute;
    left: 0; top: 18%;
    bottom: 18%;
    width: 1px;
    background: #e8e8e8;
}
.pc-stat-num {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}
.pc-stat-num span {
    font-size: 12px;
    font-weight: 500;
    color: #888;
    margin-left: 1px;
}
.pc-stat-label {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}

/* 引言段 */
.pc-intro {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.85;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    margin-bottom: 14px;
    text-align: justify;
}
.pc-intro p { margin: 0; }

.pc-lead {
    background: #fafafa;
    border-left: 3px solid #2c7afd;
    color: #555;
    font-size: 14px;
    line-height: 1.9;
    padding: 14px 16px;
    box-shadow: none;
}
.pc-lead p + p { margin-top: 10px; }

/* 章节 */
.chapter-list { padding: 8px 0; }
.chapter { margin-bottom: 30px; }
.chapter-head {
    text-align: center;
    margin-bottom: 14px;
}
.chapter-no {
    font-size: 48px;
    font-weight: 800;
    color: #2c7afd;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: 4px;
}
.chapter-title {
    display: inline-block;
    font-size: 17px;
    font-weight: 700;
    color: #2c7afd;
    padding-bottom: 6px;
    border-bottom: 2px solid #2c7afd;
    max-width: 80%;
}
.chapter-body {
    padding: 0 4px;
    text-align: justify;
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.85;
}
.chapter-body p { margin-bottom: 10px; }
.chapter-body img {
    margin: 10px auto;
    border-radius: 6px;
    max-width: 100%;
}
.chapter-body strong { font-weight: 700; }

/* 阅读数 */
.read-count {
    text-align: center;
    color: #888;
    font-size: 13px;
    padding: 14px 0 6px;
}

/* 免责声明 */
.disclaimer {
    padding: 0 18px 24px;
    position: relative;
}
.disclaimer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px;
}
.disclaimer-title {
    font-size: 12px;
    color: #888;
}
.disclaimer-complaint {
    font-size: 12px;
    color: #ff7a45;
    cursor: pointer;
    user-select: none;
}
.disclaimer-body {
    color: #999;
    font-size: 12px;
    line-height: 1.8;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 12px 12px;
    max-height: 1000px;
    overflow: visible;
    transition: max-height .25s ease;
}
.disclaimer-body.collapsed {
    max-height: 3.6em;
    overflow: hidden;
}
.disclaimer-body::after {
    content: '';
    display: none;
}
.disclaimer-toggle {
    display: block;
    text-align: center;
    color: #2c7afd;
    font-size: 13px;
    margin-top: 10px;
    cursor: pointer;
    user-select: none;
}

/* 上下篇导航 */
.pager {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px 20px;
    max-width: 540px;
    margin: 0 auto;
}
.pager a {
    color: #2c7afd;
    font-size: 13px;
    padding: 6px 12px;
    cursor: pointer;
}
.pager .pager-disabled {
    color: #ccc;
    pointer-events: none;
}

/* 悬浮投诉按钮 */
.float-complaint {
    position: fixed;
    right: 14px;
    bottom: 92px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(60,60,60,.7);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    z-index: 50;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    line-height: 1.2;
    text-align: center;
}
.float-complaint::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background: rgba(255,255,255,.85);
    color: #333;
    border-radius: 2px;
    margin-bottom: 3px;
    -webkit-mask: linear-gradient(#000,#000);
    mask: linear-gradient(#000,#000);
}

/* 底部作者条 */
.h5-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    max-width: 540px;
    margin: 0 auto;
    box-shadow: 0 -1px 4px rgba(0,0,0,.04);
}
.hf-author {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.hf-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.hf-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}
.hf-name {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 600;
}
.hf-title {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.hf-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.hf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 108px;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(26,173,25,.22);
}
/* 微信绿色系 */
.hf-wx   { background: linear-gradient(135deg, #2ec92e 0%, #1aad19 100%); color: #fff; }
.hf-call { background: linear-gradient(135deg, #12d178 0%, #07c160 100%); color: #fff; }
.hf-btn:active { opacity: .85; transform: translateY(1px); }

.icon-wx {
    width: 16px; height: 14px;
    background: #fff;
    border-radius: 50%;
    position: relative;
    margin-right: 2px;
}
.icon-wx::before, .icon-wx::after {
    content: '';
    position: absolute;
    background: #1aad19;
    border-radius: 50%;
}
.icon-wx::before { width: 3px; height: 3px; left: 4px; top: 4px; }
.icon-wx::after  { width: 3px; height: 3px; right: 4px; top: 4px; }

.icon-phone {
    width: 14px; height: 14px;
    background: #fff;
    border-radius: 50%;
    position: relative;
    margin-right: 2px;
}
.icon-phone::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: #4a90e2;
    border-radius: 50%;
}

/* 微信二维码弹层 */
.mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mask[hidden] { display: none; }

.wx-pop {
    background: transparent;
    width: 78%;
    max-width: 280px;
    text-align: center;
    position: relative;
}
.wx-pop-head {
    background: #f7f8fa;
    border-radius: 10px 10px 0 0;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
    border-bottom: 1px solid #eee;
}
.wx-pop-brand { font-weight: 600; color: #1aad19; }
.wx-pop-tag { background: #1aad19; color: #fff; border-radius: 4px; padding: 1px 6px; font-size: 10px; }
.wx-pop-close {
    position: absolute;
    top: 8px; right: 13px;
    width: 28px;
    height: 28px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    color: #888;
    font-size: 18px;
    line-height: 1;
}
.wx-pop-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px 14px 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.wx-pop-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}
.wx-pop-sub {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}
.wx-pop-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}
.wx-pop-tagchip {
    background: #e8f5e9;
    color: #1aad19;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
}
.wx-pop-img {
    width: 200px;
    height: 200px;
    margin: 0 auto 8px;
    display: block;
    border-radius: 6px;
    background: #fafafa;
}
.wx-pop-tip {
    color: #888;
    font-size: 13px;
    padding: 40px 0;
}
.wx-pop-tiptext {
    color: #555;
    font-size: 13px;
    margin: 8px 0 0;
    text-align: center;
}
.wx-pop-wxid {
    margin: 12px 0 0;
    background: #fff;
    border-radius: 999px;
    padding: 6px 6px 6px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.wx-pop-wxid-num {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wx-pop-copy {
    background: #1aad19;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
}
.wx-pop-copy:active { background: #17990f; }
.copy-toast {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,.82);
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    pointer-events: none;
    letter-spacing: .5px;
}

/* 分享引导 */
.share-guide {
    background: rgba(0,0,0,.78);
    color: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    text-align: center;
    width: 80%;
    max-width: 300px;
}
.share-arrow {
    font-size: 32px;
    margin-bottom: 12px;
    animation: bounce .8s infinite alternate;
}
@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-6px); }
}
.share-text {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 14px;
}
.share-close {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
}