* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background: #f0f4f8; display: flex; justify-content: center; align-items: flex-start; min-height: 100vh; padding: 20px; }
.lang-switch { position: absolute; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 10; }
.lang-switch button { background: #fff; border: 1px solid #cbd5e0; color: #4a5568; padding: 6px 16px; border-radius: 20px; cursor: pointer; transition: 0.3s; font-weight: bold; }
.lang-switch button:hover, .lang-switch button.active-lang { background: #3182ce; color: white; border-color: #3182ce; }

.container { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); max-width: 800px; width: 100%; text-align: center; margin-top: 40px; }
.title { color: #1a202c; font-size: 2.2rem; margin-bottom: 10px; }
.subtitle { color: #718096; margin-bottom: 40px; }
.options { display: flex; gap: 20px; margin-bottom: 20px; }
.card { flex: 1; padding: 30px; border: 2px solid #e2e8f0; border-radius: 12px; cursor: pointer; transition: all 0.3s ease; }
.card h2 { margin-bottom: 10px; color: #2b6cb0; }
.card p { color: #4a5568; font-size: 0.95rem; }
.card:hover { border-color: #3182ce; background: #ebf8ff; transform: translateY(-3px); box-shadow: 0 4px 15px rgba(49, 130, 206, 0.2); }
.engineer-card h2 { color: #c53030; }
.engineer-card:hover { border-color: #e53e3e; background: #fff5f5; box-shadow: 0 4px 15px rgba(229, 62, 62, 0.2); }

.hidden { display: none; }
.form-section { background: #f8fafc; padding: 30px; border-radius: 12px; margin-top: 10px; animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.form-section h3 { margin-bottom: 20px; color: #2d3748; }
form { display: flex; flex-direction: column; gap: 15px; }
input, select, textarea { padding: 14px; border: 1px solid #cbd5e0; border-radius: 8px; font-size: 1rem; color: #1a202c; width: 100%; box-sizing: border-box; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #3182ce; box-shadow: 0 0 0 3px rgba(49,130,206,0.2); }
button[type="submit"], .btn-primary { background: #3182ce; color: white; padding: 14px; border: none; border-radius: 8px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: 0.3s; text-align: center; }
button[type="submit"]:hover, .btn-primary:hover { background: #2b6cb0; }
.btn-danger { background: #e53e3e !important; }
.btn-danger:hover { background: #c53030 !important; }

.input-group { display: flex; gap: 10px; }
.input-group input { flex: 1; }
.btn-otp { background: #e2e8f0; color: #4a5568; border: 1px solid #cbd5e0; padding: 0 15px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s; white-space: nowrap; }
.btn-otp:hover { background: #cbd5e0; color: #2d3748; }

.tab-buttons { display: flex; margin-bottom: 20px; border-bottom: 2px solid #e2e8f0; flex-wrap: wrap; }
.tab-buttons button { flex: 1; background: transparent; border: none; padding: 10px; font-size: 1.1rem; font-weight: bold; color: #a0aec0; cursor: pointer; min-width: 120px;}
.tab-buttons button.active { color: #3182ce; border-bottom: 3px solid #3182ce; }

.checkbox-container { background: #f8fafc; border: 1px solid #cbd5e0; border-radius: 8px; padding: 15px; margin-bottom: 15px; text-align: left; }
.state-group { margin-bottom: 15px; }
.state-label { font-weight: bold; color: #2c5282; border-bottom: 2px solid #ebf8ff; display: block; margin-bottom: 10px; padding-bottom: 5px; font-size: 1.05rem;}
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-height: 250px; overflow-y: auto; padding-right: 5px; }
.city-grid label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #4a5568; cursor: pointer; background: white; padding: 6px 10px; border-radius: 6px; border: 1px solid #e2e8f0; transition: 0.2s; word-wrap: break-word; white-space: normal;}
.city-grid label:hover { background: #ebf8ff; border-color: #3182ce; }

@media (max-width: 768px) {
    body { padding: 10px; }
    .container { padding: 20px; margin-top: 60px; }
    .title { font-size: 1.8rem; }
    .options { flex-direction: column; }
    .card { padding: 20px; }
    .form-section { padding: 15px; }
    .input-group { flex-direction: column; }
    .btn-otp { width: 100%; padding: 14px; }
    
    .client-header { flex-direction: column; align-items: flex-start !important; }
    .search-bar form { flex-direction: column !important; }
    .search-bar select, .search-bar button, .search-bar a { width: 100% !important; margin-top: 5px; }
    .item-main { flex-direction: column !important; align-items: center; text-align: center; }
    .action-box { text-align: center !important; width: 100% !important; margin-top: 15px; }
    .profile-card { flex-direction: column !important; align-items: center; text-align: center; padding: 20px !important; }
    .info-section { width: 100%; min-width: 100% !important; }
    .modal-content { width: 95%; padding: 20px; }
}

/* =========================================================
   CKY 左侧联系我们侧栏
   ========================================================= */

.cky-contact-widget {
    position: fixed;
    left: 0;
    top: 50%;
    z-index: 9998;
    transform: translateY(-50%);
    font-family: inherit;
}

.cky-contact-tab {
    position: relative;
    z-index: 2;
    width: 48px;
    min-height: 148px;
    padding: 12px 8px;
    border: 0;
    border-radius: 0 12px 12px 0;
    background: #1f2937;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.cky-contact-tab:hover {
    background: #111827;
}

.cky-contact-tab:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

.cky-contact-tab span:last-child {
    writing-mode: vertical-rl;
    letter-spacing: 3px;
    font-size: 14px;
    font-weight: 700;
}

.cky-contact-icon {
    font-size: 20px;
}

.cky-contact-panel {
    position: fixed;
    left: 0;
    top: 50%;
    width: min(340px, calc(100vw - 24px));
    padding: 26px 22px 22px;
    border-radius: 0 18px 18px 0;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.28);
    transform: translate(-110%, -50%);
    opacity: 0;
    visibility: hidden;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease,
        visibility 0.3s ease;
    z-index: 3;
}

.cky-contact-widget.is-open .cky-contact-panel {
    transform: translate(0, -50%);
    opacity: 1;
    visibility: visible;
}

.cky-contact-widget.is-open .cky-contact-tab {
    transform: translateX(340px);
}

.cky-contact-panel h3 {
    margin: 0 35px 8px 0;
    font-size: 21px;
    color: #111827;
}

.cky-contact-intro {
    margin: 0 0 18px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.cky-contact-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.cky-contact-close:hover {
    background: #e5e7eb;
}

.cky-contact-item {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 11px;
    padding: 13px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #1f2937;
    text-decoration: none;
    background: #ffffff;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.cky-contact-item:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateX(3px);
}

.cky-contact-item-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1f2937;
    color: #ffffff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 17px;
}

.cky-contact-item small,
.cky-contact-item strong {
    display: block;
}

.cky-contact-item small {
    margin-bottom: 3px;
    color: #6b7280;
    font-size: 12px;
}

.cky-contact-item strong {
    color: #111827;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.cky-contact-hours {
    margin: 15px 0 0;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.cky-contact-overlay {
    display: none;
}

@media (max-width: 600px) {
    .cky-contact-widget {
        top: auto;
        bottom: 110px;
        transform: none;
    }

    .cky-contact-tab {
        width: 44px;
        min-height: 125px;
    }

    .cky-contact-panel {
        top: auto;
        bottom: 16px;
        width: calc(100vw - 20px);
        max-height: calc(100vh - 32px);
        overflow-y: auto;
        border-radius: 0 16px 16px 0;
        transform: translateX(-110%);
    }

    .cky-contact-widget.is-open .cky-contact-panel {
        transform: translateX(0);
    }

    .cky-contact-widget.is-open .cky-contact-tab {
        transform: none;
        visibility: hidden;
    }

    .cky-contact-overlay {
        position: fixed;
        inset: 0;
        z-index: 1;
        background: rgba(0, 0, 0, 0.38);
    }

    .cky-contact-widget.is-open .cky-contact-overlay {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cky-contact-panel,
    .cky-contact-tab,
    .cky-contact-item {
        transition: none;
    }
}
