/* ============================================================
 * QYTool 前台样式
 * 登录/注册弹窗 · 搜索建议 · 点赞按钮
 * 与奇营主题保持一致：主色 #0066ff，价格红 #f44336
 * ========================================================== */

/* ---------- 登录 / 注册弹窗 ---------- */
body.pt-locked { overflow: hidden; }

.pt-auth-mask {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(15, 23, 42, .45);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; box-sizing: border-box;
    backdrop-filter: blur(3px);
    animation: ptFadeIn .18s ease-out;
}
.pt-auth-mask[hidden] { display: none; }

@keyframes ptFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ptSlideUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.pt-auth-card {
    position: relative;
    width: 400px; max-width: 100%;
    background: #fff; border-radius: 12px;
    padding: 28px 28px 20px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .22);
    animation: ptSlideUp .22s ease-out;
    box-sizing: border-box;
}

.pt-auth-close {
    position: absolute; top: 12px; right: 12px;
    width: 30px; height: 30px; border: 0; background: transparent;
    color: #94a3b8; cursor: pointer; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.pt-auth-close:hover { background: #f1f5f9; color: #475569; }
.pt-auth-close svg { width: 16px; height: 16px; }

.pt-auth-tabs { display: flex; gap: 24px; margin-bottom: 18px; border-bottom: 1px solid #eef2f7; }
.pt-auth-tab {
    border: 0; background: none; padding: 0 2px 12px;
    font-size: 16px; font-weight: 600; color: #94a3b8; cursor: pointer;
    position: relative; transition: color .15s;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.pt-auth-tab.active { color: #1d2129; }
.pt-auth-tab.active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
    height: 2.5px; border-radius: 2px; background: #0066ff;
}

.pt-auth-form input[type="text"],
.pt-auth-form input[type="email"],
.pt-auth-form input[type="password"] {
    display: block; width: 100%; box-sizing: border-box;
    height: 44px; margin-bottom: 12px; padding: 0 14px;
    border: 1px solid #e5e7eb; border-radius: 6px;
    font-size: 14px; color: #1d2129; background: #fff;
    transition: border-color .15s, box-shadow .15s;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.pt-auth-form input:focus {
    border-color: #0066ff; outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, .12);
}
.pt-auth-form input::placeholder { color: #b6c2d2; }

.pt-auth-code-row {
    display: flex; gap: 10px; margin-bottom: 12px;
}
.pt-auth-code-row input {
    flex: 1; min-width: 0; margin-bottom: 0 !important;
}
.pt-auth-code-btn {
    flex: none; width: 118px; height: 44px;
    border: 1px solid #0066ff; border-radius: 6px;
    background: #f5f9ff; color: #0066ff;
    font-size: 13px; cursor: pointer; white-space: nowrap;
    transition: background .15s, color .15s, opacity .15s;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.pt-auth-code-btn:hover { background: #0066ff; color: #fff; }
.pt-auth-code-btn[disabled] { opacity: .55; cursor: not-allowed; }
.pt-auth-code-btn[disabled]:hover { background: #f5f9ff; color: #0066ff; }

.pt-auth-remember {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: #64748b; margin: -2px 0 14px;
    cursor: pointer; user-select: none;
}

.pt-auth-submit {
    display: block; width: 100%; height: 44px;
    border: 0; border-radius: 6px; cursor: pointer;
    background: #0066ff; color: #fff; font-size: 15px; font-weight: 600;
    letter-spacing: 4px; transition: background .15s, opacity .15s;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.pt-auth-submit:hover { background: #0058e0; }
.pt-auth-submit[disabled] { opacity: .6; cursor: not-allowed; }

.pt-auth-msg {
    display: none; margin: 0 0 14px; padding: 10px 12px;
    border-radius: 6px; font-size: 13px; line-height: 1.5;
}
.pt-auth-msg.show { display: block; }
.pt-auth-msg.err { background: #fef2f2; color: #b91c1c; }
.pt-auth-msg.ok { background: #ecfdf5; color: #047857; }

.pt-auth-brand {
    margin: 18px 0 0; text-align: center;
    font-size: 12px; color: #b6c2d2; letter-spacing: 1px;
}

/* ---------- 搜索建议 ---------- */
.pt-suggest {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: #fff; border-radius: 8px; z-index: 990;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
    border: 1px solid #eef2f7;
    overflow: hidden; text-align: left;
    animation: ptFadeIn .15s ease-out;
}
.pt-suggest-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 14px; text-decoration: none;
    color: #1d2129; font-size: 13.5px;
    border-bottom: 1px solid #f5f7fa;
    transition: background .12s;
}
.pt-suggest-item:last-child { border-bottom: 0; }
.pt-suggest-item:hover, .pt-suggest-item.active { background: #f5f7fa; }
.pt-suggest-title {
    flex: 1; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pt-suggest-date { flex: none; font-size: 12px; color: #94a3b8; }
.pt-suggest-empty { padding: 12px 14px; font-size: 13px; color: #94a3b8; }

/* 热门搜索词面板 */
.pt-suggest-head {
    padding: 9px 14px; font-size: 12px; color: #94a3b8;
    background: #fafbfc; border-bottom: 1px solid #f5f7fa;
    letter-spacing: .5px;
}
.pt-suggest-hot { justify-content: flex-start; gap: 9px; }
.pt-suggest-hot svg { width: 13px; height: 13px; color: #94a3b8; flex: none; }
.pt-suggest-hot .pt-suggest-title { flex: none; }

/* ---------- 点赞按钮 ---------- */
.post-like { margin-top: 20px; display: flex; justify-content: center; gap: 12px; }

.pt-like {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid #e5e7eb; border-radius: 20px;
    padding: 8px 18px; background: #fff; cursor: pointer;
    color: #64748b; font-size: 13px;
    transition: color .15s, border-color .15s, transform .1s;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.pt-like:hover { border-color: #f44336; color: #f44336; }
.pt-like svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.pt-like.liked { color: #f44336; border-color: #f44336; }
.pt-like.liked svg { fill: #f44336; stroke: #f44336; }
.pt-like-num { font-size: 13px; font-variant-numeric: tabular-nums; }

@keyframes ptLikePop {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.pt-like-pop svg { animation: ptLikePop .32s ease-out; }

/* ---------- 收藏按钮（与点赞并排，主色蓝） ---------- */
.pt-collect {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid #e5e7eb; border-radius: 20px;
    padding: 8px 18px; background: #fff; cursor: pointer;
    color: #64748b; font-size: 13px;
    transition: color .15s, border-color .15s, transform .1s;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.pt-collect:hover { border-color: #0066ff; color: #0066ff; }
.pt-collect svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.pt-collect.collected { color: #0066ff; border-color: #0066ff; }
.pt-collect.collected svg { fill: #0066ff; stroke: #0066ff; }
.pt-collect-num { font-size: 13px; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
    .pt-auth-card { padding: 24px 20px 16px; }
}

/* ============================================================
 * 奇营商城：购买框 / VIP / 钱包
 * 主色 #0066ff，价格红 #f44336
 * ========================================================== */

/* ---------- 购买框 ---------- */
.qy-paybox {
    margin: 24px 0; padding: 26px 24px;
    border: 1px solid #e2e8f0; border-radius: 12px;
    background: linear-gradient(180deg, #f8faff 0%, #fff 60%);
    text-align: center;
}
.qy-paybox-title {
    font-size: 17px; font-weight: 700; color: #1d2129;
    letter-spacing: .5px;
}
.qy-paybox-title::before {
    content: ""; display: block; width: 34px; height: 3px;
    margin: 0 auto 12px; border-radius: 2px; background: #0066ff;
}
.qy-paybox-empty { margin-top: 12px; font-size: 13.5px; color: #94a3b8; }

.qy-paybox-price { margin: 14px 0 4px; display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; }
.qy-paybox-price b { font-size: 32px; font-weight: 800; color: #f44336; line-height: 1; }
.qy-paybox-price del { font-size: 15px; color: #b6c2d2; }
.qy-paybox-badge {
    align-self: center; padding: 3px 9px; border-radius: 20px;
    background: #0066ff; color: #fff; font-size: 11.5px; font-weight: 600;
    letter-spacing: .5px;
}

.qy-paybox-vip-list {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    max-width: 460px; margin: 16px auto 0;
}
.qy-paybox-vip-item {
    display: flex; flex-direction: column; gap: 3px;
    padding: 9px 6px; border: 1px solid #eef2f7; border-radius: 8px;
    background: #fff; font-size: 12px; color: #64748b;
}
.qy-paybox-vip-item strong { font-size: 14px; color: #0066ff; font-weight: 700; }

.qy-pay-methods {
    display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
    margin: 18px 0 4px;
}
.qy-pay-method { cursor: pointer; }
.qy-pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.qy-pay-method span {
    display: inline-block; padding: 9px 18px; border-radius: 8px;
    border: 1px solid #e2e8f0; background: #fff;
    font-size: 13.5px; color: #475569;
    transition: border-color .15s, color .15s, box-shadow .15s;
}
.qy-pay-method input:checked + span {
    border-color: #0066ff; color: #0066ff; font-weight: 600;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, .10);
}

.qy-pay-guest { max-width: 340px; margin: 16px auto 0; }
.qy-pay-guest input,
.qy-pay-query-form input,
.qy-recharge-form input,
.qy-withdraw-form input,
.qy-withdraw-form select {
    display: block; width: 100%; box-sizing: border-box;
    height: 42px; padding: 0 13px; margin-bottom: 10px;
    border: 1px solid #e5e7eb; border-radius: 6px;
    font-size: 14px; color: #1d2129; background: #fff;
    transition: border-color .15s, box-shadow .15s;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.qy-pay-guest input:focus,
.qy-pay-query-form input:focus,
.qy-recharge-form input:focus,
.qy-withdraw-form input:focus,
.qy-withdraw-form select:focus {
    border-color: #0066ff; outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, .12);
}

.qy-paybox-desc { margin: 12px auto 0; max-width: 420px; font-size: 12.5px; color: #94a3b8; line-height: 1.7; }
.qy-paybox-tip { margin: 10px 0 0; font-size: 12px; color: #b6c2d2; }

.qy-paybox-submit {
    display: inline-block; min-width: 200px; height: 44px; margin-top: 16px;
    border: 0; border-radius: 8px; cursor: pointer;
    background: #0066ff; color: #fff; font-size: 15px; font-weight: 600;
    letter-spacing: 2px; transition: background .15s, opacity .15s;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.qy-paybox-submit:hover { background: #0058e0; }
.qy-paybox-submit[disabled] { opacity: .6; cursor: not-allowed; }
.qy-paybox-submit.small { min-width: 0; width: 100%; height: 40px; margin-top: 2px; font-size: 13.5px; letter-spacing: 1px; }

.qy-paybox-msg {
    display: none; max-width: 420px; margin: 14px auto 0; padding: 10px 12px;
    border-radius: 6px; font-size: 13px; line-height: 1.6;
}
.qy-paybox-msg.show { display: block; }
.qy-paybox-msg.error { background: #fef2f2; color: #b91c1c; }
.qy-paybox-msg.success { background: #ecfdf5; color: #047857; }
.qy-paybox-msg a { color: #0066ff; font-weight: 600; }

/* 游客订单查询 */
.qy-pay-query { margin-top: 14px; }
.qy-pay-query-toggle { font-size: 12.5px; color: #94a3b8; text-decoration: none; border-bottom: 1px dashed #cbd5e1; }
.qy-pay-query-toggle:hover { color: #0066ff; border-color: #0066ff; }
.qy-pay-query-form { max-width: 340px; margin: 14px auto 0; }

/* 产品页内嵌购买按钮 */
.qy-pay-inline { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qy-pay-inline input[type="email"] {
    height: 40px; padding: 0 12px; border: 1px solid #e5e7eb; border-radius: 6px;
    font-size: 13.5px; width: 200px;
}
.qy-pay-inline input[type="email"]:focus { border-color: #0066ff; outline: none; }
.qy-pay-inline .qy-paybox-msg { margin: 8px 0 0; flex-basis: 100%; max-width: none; text-align: left; }

/* ---------- VIP 会员页 ---------- */
.qy-vip-current {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 14px 18px; border-radius: 10px; margin-bottom: 18px;
    background: linear-gradient(120deg, #0066ff, #3b8bff); color: #fff;
    font-size: 14px;
}
.qy-vip-current.gray { background: #f1f5f9; color: #64748b; }
.qy-vip-current b { font-size: 16px; }
.qy-vip-current .qy-vip-login {
    border: 0; border-radius: 6px; padding: 8px 18px; cursor: pointer;
    background: #0066ff; color: #fff; font-size: 13px; font-weight: 600;
}
.qy-vip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.qy-vip-card {
    border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px 18px;
    background: #fff; text-align: center;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.qy-vip-card:hover { border-color: #0066ff; box-shadow: 0 10px 28px rgba(0, 102, 255, .10); transform: translateY(-2px); }
.qy-vip-name { font-size: 16px; font-weight: 700; color: #1d2129; }
.qy-vip-desc { margin-top: 6px; font-size: 12.5px; color: #94a3b8; line-height: 1.6; min-height: 40px; }
.qy-vip-times { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.qy-vip-buy {
    border: 1px solid #e2e8f0; border-radius: 8px; background: #f8faff;
    padding: 9px 10px; cursor: pointer; font-size: 13px; color: #334155;
    transition: border-color .15s, background .15s, color .15s;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.qy-vip-buy b { color: #f44336; font-weight: 700; }
.qy-vip-buy del { color: #b6c2d2; font-size: 12px; margin-left: 4px; }
.qy-vip-buy:hover { border-color: #0066ff; background: #0066ff; color: #fff; }
.qy-vip-buy:hover b, .qy-vip-buy:hover del { color: #fff; }
.qy-vip-buy[disabled] { opacity: .6; cursor: not-allowed; }
.qy-vip-msg {
    display: none; margin: 14px 0 0; padding: 10px 12px;
    border-radius: 6px; font-size: 13px; line-height: 1.6;
}
.qy-vip-msg.show { display: block; }
.qy-vip-msg.error { background: #fef2f2; color: #b91c1c; }
.qy-vip-msg.success { background: #ecfdf5; color: #047857; }
.qy-vip-method-wrap { margin-top: 16px; }
.qy-vip-method-wrap .qy-pay-methods { margin-top: 8px; }
.qy-vip-note { margin-top: 12px; font-size: 12.5px; color: #94a3b8; line-height: 1.7; }

/* ---------- 钱包 ---------- */
.qy-wallet-balance {
    display: flex; align-items: baseline; gap: 10px;
    padding: 16px 20px; border-radius: 10px; margin-bottom: 16px;
    background: linear-gradient(120deg, #0f2557, #0066ff); color: #fff;
}
.qy-wallet-balance span { font-size: 13px; opacity: .85; }
.qy-wallet-balance b { font-size: 26px; font-weight: 800; }
.qy-wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qy-wallet-card {
    border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px;
    background: #fff;
}
.qy-wallet-card h3 { margin: 0 0 12px; font-size: 15px; color: #1d2129; }
.qy-wallet-card .qy-paybox-submit { width: 100%; min-width: 0; margin-top: 4px; }
.qy-wallet-tip { margin: 0 0 12px; font-size: 12.5px; color: #94a3b8; line-height: 1.6; }
.qy-withdraw-pending {
    margin-top: 14px; padding: 10px 12px; border-radius: 8px;
    background: #fffbeb; border: 1px solid #fde68a;
    font-size: 12.5px; color: #92400e; line-height: 1.7;
}
.qy-withdraw-cancel { color: #b91c1c; cursor: pointer; text-decoration: none; font-weight: 600; }
.qy-withdraw-cancel:hover { text-decoration: underline; }
.qy-withdraw-cancel[disabled] { opacity: .5; pointer-events: none; }

.qy-wallet-logs { margin-top: 18px; }
.qy-wallet-logs table { width: 100%; border-collapse: collapse; font-size: 13px; }
.qy-wallet-logs th, .qy-wallet-logs td {
    padding: 9px 10px; border-bottom: 1px solid #f1f5f9;
    text-align: left; color: #475569; white-space: nowrap;
}
.qy-wallet-logs th { color: #94a3b8; font-weight: 600; font-size: 12px; }
.qy-wallet-logs td:last-child { white-space: normal; }
.qy-wallet-logs .up { color: #047857; font-weight: 600; }
.qy-wallet-logs .down { color: #f44336; font-weight: 600; }
.qy-wallet-logs-empty { padding: 18px; text-align: center; color: #94a3b8; font-size: 13px; }

.qy-shop-section { margin-top: 24px; }
.qy-shop-section > h2 {
    font-size: 18px; font-weight: 700; color: #1d2129; margin: 0 0 16px;
    padding-left: 12px; border-left: 4px solid #0066ff; line-height: 1.2;
}

@media (max-width: 768px) {
    .qy-vip-grid { grid-template-columns: 1fr; }
    .qy-wallet-grid { grid-template-columns: 1fr; }
    .qy-paybox { padding: 22px 16px; }
    .qy-paybox-price b { font-size: 27px; }
    .qy-paybox-vip-item { font-size: 11px; }
    .qy-paybox-vip-item strong { font-size: 12.5px; }
    .qy-paybox-submit { width: 100%; min-width: 0; }
    .qy-wallet-logs { overflow-x: auto; }
}
