* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: Roboto, Arial, Helvetica, sans-serif;
    color: #2b2b2b;
    background: #fff;
}
a { color: inherit; text-decoration: none; }
.cskh-wrap { max-width: 480px; margin: 0 auto; padding: 0 0 28px; }
.cskh-mobile { display: block; }

.cskh-m-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 2px;
}
.cskh-back {
    display: block;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.cskh-back img { width: 46px; height: 46px; display: block; }
.cskh-m-logo { display: flex; align-items: center; justify-content: center; }
.cskh-m-logo img { height: 36px; width: auto; display: block; }
.cskh-m-spacer { width: 48px; height: 48px; }

.cskh-title {
    margin: 4px 12px 8px;
    text-align: center;
    color: #3a3a3a;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: .2px;
}
.cskh-hotline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 12px 8px;
    color: #e10600;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .2px;
}
.cskh-hotline-icon {
    width: 22px;
    height: 22px;
    border: 1.5px solid #e10600;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.cskh-hotline-icon svg { width: 14px; height: 14px; display: block; }
.cskh-warn {
    margin: 6px 18px 12px;
    text-align: center;
    color: #e10600;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .3px;
}

.cskh-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 12px;
}
.cskh-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 124px;
    margin: 0;
    padding: 16px 4px 12px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(180, 40, 40, .08);
    color: #2a2a2a;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
}
.cskh-card img { width: 58px; height: 58px; object-fit: contain; display: block; }
.cskh-card span { display: block; }

.cskh-change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 24px);
    margin: 14px 12px 0;
    padding: 9px 12px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff7a72 0%, #ef1d16 100%);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .4px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(225, 6, 0, .22);
}
.cskh-change img { width: 22px; height: 22px; object-fit: contain; display: block; }

.cskh-more { margin: 22px 12px 0; }
.cskh-more h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    text-align: center;
    color: #505050;
    font-size: 18px;
    font-weight: 800;
}
.cskh-more-bar {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 112px;
    padding: 14px 22px 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, #6d6d6d 0%, #2c2c2c 46%, #141414 100%);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .16);
}
.cskh-more-row {
    display: flex;
    flex: 1;
    justify-content: space-between;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.cskh-more-row::-webkit-scrollbar { display: none; }
.cskh-more-item {
    flex: 1 0 22%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    cursor: pointer;
}
.cskh-more-item img { width: 52px; height: 52px; object-fit: contain; display: block; }
.cskh-chev {
    position: absolute;
    top: 46%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.cskh-chev:before {
    content: "";
    position: absolute;
    top: 7px;
    width: 6px;
    height: 6px;
    border-left: 2px solid #666;
    border-bottom: 2px solid #666;
}
.cskh-chev.prev { left: 2px; }
.cskh-chev.prev:before { left: 8px; transform: rotate(45deg); }
.cskh-chev.next { right: 2px; }
.cskh-chev.next:before { left: 6px; transform: rotate(-135deg); }

.cskh-speed-m { margin: 20px 12px 0; text-align: center; }
.cskh-speed-m h2 {
    margin: 0 0 12px;
    color: #3a3a3a;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .2px;
}
.cskh-link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 8px;
}
.cskh-link-grid a {
    display: block;
    padding: 8px 4px;
    border: 1px solid #f2f2f2;
    border-radius: 999px;
    background: #fff;
    color: #e10600;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 3px 8px rgba(0,0,0,.1);
}

[data-chat].is-active { filter: brightness(.92); }

body.cskh-lock { overflow: hidden; height: 100%; }
.cskh-chat {
    position: fixed;
    inset: 0;
    z-index: 80;
    width: 100%;
    height: 100%;
    height: 100dvh;
    display: none;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
}
.cskh-chat.is-open { display: flex; }
.cskh-chat header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 8px 8px 8px 12px;
    background: #1a9ae6;
    color: #fff;
    flex: none;
    overflow: visible;
}
.cskh-chat-mark {
    height: 36px;
    width: auto;
    max-width: 168px;
    flex: 0 0 auto;
    display: block;
    object-fit: contain;
    object-position: left center;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}
.cskh-chat header strong { display: block; font-size: 17px; font-weight: 700; line-height: 1.2; }
.cskh-chat header p { margin: 2px 0 0; font-size: 12px; font-weight: 400; opacity: .95; }
.cskh-chat header button {
    margin-left: auto;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
.cskh-gate { flex: 1; overflow: auto; padding: 18px 16px 12px; background: #fff; }
.cskh-gate[hidden], .cskh-chat .log[hidden], #cskh-form[hidden] { display: none !important; }
.cskh-gate label { display: block; margin-bottom: 8px; color: #24364a; font-size: 15px; font-weight: 700; }
.cskh-gate label span { color: #e23b3b; margin-right: 4px; }
.cskh-gate input { width: 100%; border: 1px solid #f0b4b4; border-radius: 8px; padding: 12px; font-size: 16px; }
.cskh-name-error { display: none; margin: 8px 0 0; color: #e23b3b; font-size: 14px; }
.cskh-name-error.is-show { display: block; }
.cskh-remember { margin: 16px 0; color: #e23b4a; font-size: 15px; font-weight: 700; text-align: center; }
.cskh-gate button { display: block; width: 100%; border: 0; border-radius: 8px; padding: 12px; background: #1a73e8; color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.cskh-chat .log { flex: 1; overflow: auto; padding: 12px 12px 8px; background: #f4f7fb; }
.cskh-stamp {
    width: fit-content;
    margin: 2px auto 12px;
    padding: 4px 12px;
    border-radius: 12px;
    background: #e7edf3;
    color: #8b97a3;
    font-size: 12px;
}
.cskh-row { margin: 0 0 12px; }
.cskh-row.mine { display: flex; flex-direction: column; align-items: flex-end; }
.cskh-who { margin: 0 0 4px 2px; color: #607084; font-size: 12px; font-weight: 700; }
.cskh-line { display: flex; align-items: flex-end; gap: 6px; max-width: 92%; }
.cskh-row.mine .cskh-line { flex-direction: row-reverse; }
.cskh-line time { color: #9aa6b2; font-size: 11px; flex: none; }
.cskh-chat .bubble {
    max-width: 100%;
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: #1e9de8;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}
.cskh-chat .bubble.mine { background: #e6e9ee; color: #24364a; }
.cskh-chat .bubble img { display: block; max-width: 180px; border-radius: 8px; }
.cskh-chat .bubble a { color: inherit; font-weight: 700; text-decoration: underline; }
#cskh-form {
    display: flex;
    flex-direction: column;
    flex: none;
    border-top: 1px solid #e5eef5;
    background: #fff;
    padding-bottom: env(safe-area-inset-bottom);
}
.cskh-chat .official { padding: 8px 14px 0; color: #8b97a3; font-size: 13px; }
.cskh-compose { display: flex; align-items: center; gap: 2px; padding: 4px 6px 8px; }
#cskh-text {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    padding: 10px 8px;
    font-size: 15px;
}
.cskh-tools { position: relative; display: flex; align-items: center; gap: 0; }
.cskh-tools > button, #cskh-form button[type="submit"] {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #7b8794;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
#cskh-form button[type="submit"] { color: #1a9ae6; }
.cskh-emoji-box {
    position: absolute;
    right: 0;
    bottom: 42px;
    width: 220px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.16);
}
.cskh-emoji-box[hidden] { display: none !important; }
.cskh-emoji-box button { width: 32px; height: 32px; border: 0; background: transparent; font-size: 18px; cursor: pointer; }
@media (max-width: 768px) {
    .cskh-chat {
        position: fixed;
        inset: 0;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        height: 100dvh;
        max-width: none;
        box-shadow: none;
    }
}
