* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: Roboto, Arial, Helvetica, sans-serif;
    color: #1b6eae;
    background: #e7f6ff url("/cskh/bg-cskh-k36.jpg") center top / cover no-repeat fixed;
}
body.cskh-lock { overflow: hidden; height: 100%; }
a { color: inherit; text-decoration: none; }
.cskh-wrap { max-width: 480px; margin: 0 auto; padding: 10px 12px 36px; }
.cskh-top { position: relative; margin: 2px 0 0; }
.cskh-back {
    position: absolute;
    left: 0;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}
.cskh-back i {
    display: block;
    width: 12px;
    height: 12px;
    margin-left: 12px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(45deg);
}
.cskh-banner {
    min-height: 74px;
    margin: 0 4px 0 18px;
    padding: 8px 12px 8px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("/cskh/bg-header.png") center / 100% 100% no-repeat;
}
.cskh-banner img { display: block; height: 42px; width: auto; max-width: 168px; object-fit: contain; }
.cskh-title {
    margin: 16px 8px 14px;
    text-align: center;
    color: #1aa4e8;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .2px;
}
.cskh-main { display: block; }
.cskh-tiles, .cskh-panel { width: 100%; }
.cskh-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cskh-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 118px;
    padding: 8px 4px 8px;
    border: 2px solid #3fd4f5;
    border-radius: 14px;
    background: rgba(255,255,255,.55);
    box-shadow: 0 4px 8px rgba(20, 90, 130, .12);
}
.cskh-tile span {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1aa0dc;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
}
.cskh-tile img { width: 74%; max-width: 76px; height: auto; }
.cskh-panel {
    margin-top: 14px;
    padding: 14px 8px 12px;
    border: 2px solid #7fe7fb;
    border-radius: 16px;
    background: rgba(255,255,255,.4);
}
.cskh-email { display: none !important; }
.cskh-social { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; }
.cskh-social a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.cskh-social img { width: 62px; height: 62px; object-fit: contain; }
.cskh-social span {
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #1aa0dc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2px;
}
.cskh-speed { margin-top: 22px; text-align: center; }
.cskh-speed h2 {
    margin: 0 0 12px;
    color: #19b4ea;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .3px;
}
.cskh-speed-row { display: flex; justify-content: center; gap: 8px; }
.cskh-speed-row a {
    flex: 1;
    min-width: 0;
    padding: 9px 4px;
    border-radius: 22px;
    background: linear-gradient(180deg, #4ecdf6, #1498da);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
    text-align: center;
    box-shadow: 0 3px 0 #0b6ea3;
}
.cskh-tile.is-active { border-color: #0b78c4; }
.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;
    }
}
