/* AI 时间感知独立界面 */
.ai-time-panel-content {
    overflow: hidden;
}

.ai-time-panel-body {
    padding: 14px 12px calc(18px + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
}

.ai-time-weather-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.ai-time-weather-card {
    display: flex;
    align-items: center;
    min-height: 118px;
    padding: 18px 16px;
    border-radius: 28px;
    box-sizing: border-box;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(30, 42, 60, 0.16);
    transform: translateZ(0);
}

.ai-time-weather-card--char {
    background: linear-gradient(135deg, #1f2b3a 0%, #354a61 52%, #a9bdd0 100%);
}

.ai-time-weather-card--user {
    background: linear-gradient(135deg, #95c8f0 0%, #f2b8d6 55%, #fff0f8 100%);
    color: #334052;
}

.ai-time-weather-visual {
    flex: 0 0 118px;
    width: 118px;
    height: 96px;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-time-weather-icon {
    display: block;
    width: auto;
    height: auto;
    max-width: 118px;
    max-height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.16));
    transform: translateZ(0);
}

/* mk681 线稿在深色 Char 卡片上：用 screen 去除白底感并提亮线稿，避免图标“消失” */
.ai-time-weather-card--char .ai-time-weather-visual {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.ai-time-weather-card--char .ai-time-weather-icon {
    mix-blend-mode: screen;
    opacity: 0.96;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.28));
}

.ai-time-weather-card--user .ai-time-weather-icon {
    mix-blend-mode: multiply;
    opacity: 0.94;
}

.ai-time-weather-main {
    flex: 0 0 88px;
    min-width: 0;
}

.ai-time-weather-temp {
    font-size: 44px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1px;
}

.ai-time-weather-desc {
    margin-top: 8px;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 700;
    color: rgba(255, 224, 239, 0.96);
}

.ai-time-weather-card--user .ai-time-weather-desc {
    color: rgba(84, 80, 108, 0.9);
}

.ai-time-weather-divider {
    width: 1px;
    height: 76px;
    margin: 0 16px;
    background: rgba(255, 255, 255, 0.34);
}

.ai-time-weather-card--user .ai-time-weather-divider {
    background: rgba(255, 255, 255, 0.52);
}

.ai-time-weather-place {
    flex: 1 1 auto;
    min-width: 0;
}

.ai-time-weather-owner {
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
}

.ai-time-weather-address {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 650;
    word-break: break-word;
}

.ai-time-weather-card--switchable {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.18);
}

.ai-time-weather-card--switchable .ai-time-weather-visual {
    position: relative;
}

.ai-time-weather-card--switchable .ai-time-weather-visual::after {
    content: "切换";
    position: absolute;
    right: 4px;
    bottom: 2px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.94);
    font-size: 10px;
    line-height: 1.2;
    font-weight: 750;
}

.ai-time-weather-address--group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 76px;
    overflow-y: auto;
    padding-right: 2px;
    -webkit-overflow-scrolling: touch;
}

.ai-time-group-weather-line {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    opacity: 0.86;
}

.ai-time-group-weather-line.active {
    opacity: 1;
    color: #fff;
}

.ai-time-weather-extra {
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.35;
    opacity: 0.78;
}

.ai-time-config-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.ai-time-section-title,
.ai-time-zone-title {
    font-size: 15px;
    font-weight: 750;
    color: #263142;
}

.ai-time-radio-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.ai-time-user-only-location,
.ai-time-both-sheet {
    margin-top: 8px;
}

.ai-time-field-group {
    margin-top: 12px;
}

.ai-time-field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #344054;
}

.ai-time-field-hint,
.ai-time-status,
.ai-time-zone-desc,
.ai-time-selected,
.ai-time-profile-caption {
    font-size: 12px;
    line-height: 1.45;
    color: #738195;
}

.ai-time-profile-caption {
    display: none;
    padding: 8px 10px;
    border: 1px dashed #b8cad8;
    border-radius: 10px;
    background: #f3f8fb;
}

.ai-time-group-members-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.ai-time-group-member-card {
    padding: 10px;
    border: 1px solid #e3e9ef;
    border-radius: 14px;
    background: rgba(248, 251, 255, 0.88);
}

.ai-time-group-member-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.ai-time-group-member-name {
    min-width: 0;
    font-size: 14px;
    font-weight: 750;
    color: #263142;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-time-group-member-source {
    flex: 0 0 148px;
    max-width: 48%;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #d8e0e8;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    font-size: 12px;
}

.ai-time-group-member-virtual {
    min-height: 52px;
}

.ai-time-group-member-caption {
    margin-top: 7px;
}

.ai-time-panel-body textarea,
.ai-time-panel-body select,
.ai-time-search-row input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d8e0e8;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: #1f2937;
    font-size: 14px;
    line-height: 1.4;
}

.ai-time-panel-body textarea {
    min-height: 62px;
    padding: 10px 11px;
    resize: vertical;
}

.ai-time-panel-body select,
.ai-time-search-row input {
    height: 40px;
    padding: 0 10px;
}

.ai-time-search-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ai-time-search-row input {
    flex: 1 1 auto;
    min-width: 0;
}

.ai-time-search-row button,
.ai-time-primary-btn,
.ai-time-secondary-btn {
    border: 0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ai-time-search-row button {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 12px;
    background: #4b7fa3;
    color: #fff;
}

.ai-time-suggestions {
    display: none;
    max-height: 150px;
    overflow-y: auto;
    margin-top: 8px;
    border: 1px solid #e3e9ef;
    border-radius: 12px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.ai-time-zone-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf1f5;
}

.ai-time-mini-toggle {
    flex: 0 0 auto;
}

.ai-time-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.ai-time-primary-btn,
.ai-time-secondary-btn {
    min-height: 42px;
    padding: 10px 12px;
}

.ai-time-primary-btn {
    flex: 1 1 auto;
    background: linear-gradient(135deg, #516f8a, #7ea7c8);
    color: #fff;
}

.ai-time-secondary-btn {
    flex: 0 0 auto;
    background: #eef5fb;
    color: #4b6a86;
}

@media (max-width: 420px) {
    .ai-time-weather-card {
        min-height: 104px;
        padding: 14px 12px;
        border-radius: 24px;
    }

    .ai-time-weather-visual {
        flex-basis: 82px;
        width: 82px;
        height: 70px;
        margin-right: 10px;
    }

    .ai-time-weather-icon {
        max-width: 82px;
        max-height: 70px;
    }

    .ai-time-weather-main {
        flex-basis: 70px;
    }

    .ai-time-weather-temp {
        font-size: 36px;
    }

    .ai-time-weather-desc {
        font-size: 15px;
    }

    .ai-time-weather-divider {
        height: 62px;
        margin: 0 10px;
    }

    .ai-time-weather-owner {
        font-size: 20px;
    }

    .ai-time-weather-address {
        font-size: 12px;
    }

    .ai-time-weather-address--group {
        max-height: 58px;
    }

    .ai-time-group-weather-line {
        font-size: 11px;
    }

    .ai-time-actions {
        flex-direction: column;
    }

    .ai-time-group-member-head {
        align-items: stretch;
        flex-direction: column;
    }

    .ai-time-group-member-source {
        max-width: none;
        width: 100%;
        flex-basis: auto;
    }
}
