/* ============================================================
   业务咨询中心 · 前端样式(主站 / 代理站共用)
   ============================================================ */

@font-face {
    font-family: 'ArtTitle';
    src: url('../fonts/zcool-qingkehuangyou.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --blue: #1976d2;
    --blue-light: #42a5f5;
    --cyan: #2a8fbd;
    --deep: #14418f;
    --text: #333;
    --text-sub: #666;
    --text-tip: #99a6b3;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { min-height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(165deg, #eaf6ff 0%, #d3ecfb 38%, #a8ddf5 75%, #8fd0f2 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 背景装饰:右上光带 + 左下波纹 */
body::before {
    content: '';
    position: fixed;
    top: -140px;
    right: -160px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 68%);
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    left: -120px;
    bottom: -180px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}
.bg-wave {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100%;
    pointer-events: none;
    opacity: .5;
    z-index: 0;
}

/* ---------------- 页面容器 ---------------- */

.page {
    position: relative;
    z-index: 1;
    max-width: 410px;
    margin: 0 auto;
    padding: 34px 16px 40px;
}

/* ---------------- 主卡片 ---------------- */

.card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(23, 92, 160, .18), 0 2px 8px rgba(23, 92, 160, .08);
    padding: 74px 18px 22px;
    position: relative;
    margin-top: 52px;
}

/* 企鹅徽章:浮出卡片顶部 */
.mascot {
    position: absolute;
    top: -56px;
    left: 50%;
    transform: translateX(-50%);
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #fff;
    border: 5px solid #fff;
    box-shadow: 0 10px 26px rgba(23, 92, 160, .28), 0 2px 6px rgba(23, 92, 160, .15);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mascot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 艺术字标题 */
.site-title {
    font-family: 'ArtTitle', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 27px;
    font-weight: normal;
    text-align: center;
    color: var(--deep);
    letter-spacing: 2px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .9), 0 2px 3px rgba(20, 65, 143, .22);
    line-height: 1.3;
    word-break: break-all;
}

.title-divider {
    width: 66%;
    height: 3px;
    margin: 12px auto 20px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(66, 165, 245, 0) 0%, #58b1ec 50%, rgba(66, 165, 245, 0) 100%);
}

/* ---------------- 图标网格(2行×3列) ---------------- */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 6px;
    margin-bottom: 22px;
}

.grid-item {
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 14px 4px 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: background .18s ease, transform .12s ease;
    font: inherit;
    color: inherit;
}
.grid-item:active { background: rgba(66, 165, 245, .12); transform: scale(.96); }
@media (hover: hover) {
    .grid-item:hover { background: rgba(66, 165, 245, .08); }
}

.grid-item .icon {
    width: 34px;
    height: 34px;
    color: var(--cyan);
}

.grid-item .icon svg,
.grid-item svg.icon { width: 34px; height: 34px; }

.grid-item span {
    font-size: 13px;
    color: #4a5a6a;
    line-height: 1.35;
    text-align: center;
}

/* ---------------- 按钮区 ---------------- */

.btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.btn-row.single { grid-template-columns: 1fr; }

.btn-main {
    border: none;
    height: 50px;
    border-radius: 25px;
    background: linear-gradient(160deg, #4fb0f8 0%, #1e88e5 55%, #1668c4 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(25, 118, 210, .38), inset 0 1px 0 rgba(255, 255, 255, .28);
    transition: transform .12s ease, box-shadow .18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    width: 100%;
}
.btn-main:active { transform: translateY(2px); box-shadow: 0 3px 8px rgba(25, 118, 210, .32); }

.btn-main.btn-agent {
    background: linear-gradient(160deg, #43c6ac 0%, #26a69a 55%, #178f85 100%);
    box-shadow: 0 6px 16px rgba(38, 166, 154, .36), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.btn-main .icon { width: 19px; height: 19px; }

.copy-tip {
    text-align: center;
    font-size: 12px;
    color: var(--text-tip);
    margin-bottom: 20px;
}

/* ---------------- 服务须知 ---------------- */

.notice-card {
    background: #f4faff;
    border: 1px solid #dcedf9;
    border-radius: 14px;
    padding: 13px 14px 14px;
}

.notice-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 9px;
    color: #6f8ba8;
    font-size: 12px;
    letter-spacing: 3px;
}
.notice-head::before,
.notice-head::after {
    content: '';
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, rgba(111, 139, 168, 0), #a9c1d8);
}
.notice-head::after { background: linear-gradient(90deg, #a9c1d8, rgba(111, 139, 168, 0)); }

.notice-body {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 11.5px;
    color: #6b7f94;
    line-height: 1.75;
    word-break: break-all;
}
.notice-check {
    flex: none;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    border-radius: 50%;
    background: linear-gradient(160deg, #4fb0f8, #1976d2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.notice-check svg { width: 10px; height: 10px; stroke-width: 3.2; }

/* ---------------- 页脚 ---------------- */

.footer {
    text-align: center;
    font-size: 11px;
    color: rgba(52, 108, 156, .55);
    margin-top: 16px;
    letter-spacing: 1px;
}

/* ---------------- 弹窗公告 ---------------- */

.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(10, 42, 84, .48);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 22px;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}
.modal-mask.open { opacity: 1; visibility: visible; }

.modal {
    background: #fff;
    width: 100%;
    max-width: 340px;
    border-radius: 20px;
    box-shadow: 0 22px 60px rgba(9, 38, 76, .35);
    overflow: hidden;
    transform: translateY(18px) scale(.97);
    transition: transform .25s cubic-bezier(.2, .9, .3, 1.2);
    max-height: 78vh;
    display: flex;
    flex-direction: column;
}
.modal-mask.open .modal { transform: translateY(0) scale(1); }

.modal-head {
    position: relative;
    background: linear-gradient(160deg, #4fb0f8 0%, #1976d2 100%);
    color: #fff;
    padding: 15px 44px 15px 20px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    flex: none;
}

.modal-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}
.modal-close:active { background: rgba(255, 255, 255, .32); }

.modal-body {
    padding: 18px 20px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.9;
    color: #43536a;
    white-space: normal;
    word-break: break-word;
}

.modal-foot {
    padding: 0 20px 18px;
    flex: none;
}

.modal-btn {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 21px;
    background: linear-gradient(160deg, #4fb0f8, #1976d2);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(25, 118, 210, .32);
    font-family: inherit;
}
.modal-btn:active { transform: translateY(1px); }

/* ---------------- Toast ---------------- */

.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    background: rgba(16, 52, 98, .88);
    color: #fff;
    font-size: 13.5px;
    padding: 11px 22px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(9, 38, 76, .3);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
    max-width: 86vw;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 7px;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast .icon { width: 16px; height: 16px; flex: none; }

/* ---------------- 简单页(404 等) ---------------- */

.simple-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(23, 92, 160, .18);
    padding: 46px 26px;
    text-align: center;
    margin-top: 60px;
}
.simple-card h1 {
    font-size: 20px;
    color: var(--deep);
    margin-bottom: 10px;
    font-weight: 600;
}
.simple-card p {
    font-size: 13px;
    color: #7b8ea3;
    line-height: 1.8;
}
.simple-card a {
    display: inline-block;
    margin-top: 18px;
    color: #1e88e5;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px dashed #64b5f6;
    padding-bottom: 2px;
}

/* ---------------- 桌面端微调 ---------------- */

@media (min-width: 640px) {
    .page { padding-top: 56px; }
    .site-title { font-size: 30px; }
}
