/* ============ 下班计算器 v3 ============ */
.ot-hero {
    margin-top: 28px;
    padding: 26px 28px 34px;
    border-radius: 18px;
    background: linear-gradient(160deg, #2a1f3d 0%, #1f1b3d 50%, #161a38 100%);
    border: 1px solid #3b3a6b;
    box-shadow: 0 12px 34px rgba(60, 50, 140, 0.25);
    position: relative;
    overflow: hidden;
}
.ot-hero::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(124, 90, 255, 0.22), transparent 65%);
    pointer-events: none;
}
.ot-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -8%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(90, 180, 255, 0.16), transparent 65%);
    pointer-events: none;
}

/* 时钟 */
.ot-clock { text-align: center; margin-bottom: 26px; position: relative; z-index: 1; }
.ot-time {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 30px rgba(140, 120, 255, 0.5);
    line-height: 1.15;
}
.ot-date { font-size: 14px; color: #a99fd4; margin-top: 4px; letter-spacing: 1px; }

/* 主体 */
.ot-main {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 28px;
    align-items: center;
    position: relative;
    z-index: 1;
}
@media (max-width: 760px) {
    .ot-main { grid-template-columns: 1fr; justify-items: center; }
}

/* 进度环 */
.ot-ring-wrap { position: relative; width: 280px; max-width: 100%; margin: 0 auto; }
.ot-ring { width: 100%; height: auto; transform: rotate(-90deg); }
.ot-ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 14; }
.ot-ring-fg {
    fill: none;
    stroke: url(#otGrad);
    stroke-width: 14;
    stroke-linecap: round;
    stroke-dasharray: 603.19;
    stroke-dashoffset: 603.19;
    transition: stroke-dashoffset 0.9s ease;
}
.ot-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}
.ot-ring-label { font-size: 13px; color: #a99fd4; letter-spacing: 1px; }
.ot-count {
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 24px rgba(140, 120, 255, 0.6);
    line-height: 1.1;
}
.ot-count.done { color: #7ef0b0; text-shadow: 0 0 24px rgba(126, 240, 176, 0.6); }
.ot-count.rest { color: #8ec9ff; text-shadow: 0 0 24px rgba(142, 201, 255, 0.5); }
.ot-sub { font-size: 13px; color: #8f85c2; }

/* 右侧面板 */
.ot-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ot-msg {
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    color: #d8ccff;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    transition: all .3s ease;
    cursor: pointer;
}
.ot-msg:hover { background: rgba(255, 255, 255, 0.1); }
.ot-msg.done { color: #7ef0b0; border-color: rgba(126, 240, 176, 0.35); background: rgba(126, 240, 176, 0.08); }
.ot-msg.rest { color: #8ec9ff; border-color: rgba(142, 201, 255, 0.3); background: rgba(142, 201, 255, 0.08); }

.ot-settings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) {
    .ot-settings { grid-template-columns: 1fr 1fr; }
}
.ot-field { display: flex; flex-direction: column; gap: 6px; }
.ot-field label { font-size: 12px; color: #9d93cf; font-weight: 600; }
.ot-field input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 15px;
    font-weight: 700;
    outline: none;
    transition: all .2s ease;
    width: 100%;
    box-sizing: border-box;
}
.ot-field input:focus { border-color: #8f7bff; box-shadow: 0 0 0 3px rgba(143, 123, 255, 0.2); }
.ot-field input::placeholder { color: #6f669e; font-weight: 400; }
.ot-field input[type="number"]::-webkit-inner-spin-button { opacity: .5; }

/* 上班日 */
.ot-weekdays {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.ot-week-label { font-size: 12px; color: #9d93cf; font-weight: 600; margin-right: 4px; }
.ot-weekdays button {
    width: 38px; height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #b9aee6;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}
.ot-weekdays button:hover { border-color: #8f7bff; }
.ot-weekdays button.active {
    background: linear-gradient(135deg, #8f7bff, #5f6bff);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(143, 123, 255, 0.4);
}

/* 统计 */
.ot-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 640px) {
    .ot-stats { grid-template-columns: repeat(2, 1fr); }
}
.ot-stat {
    text-align: center;
    padding: 10px 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.ot-stat b {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ot-stat span { font-size: 11px; color: #9d93cf; }

.ot-actions { display: flex; justify-content: center; }
.ot-btn {
    border: 1px solid rgba(143, 123, 255, 0.5);
    background: rgba(143, 123, 255, 0.15);
    color: #d8ccff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 11px;
    cursor: pointer;
    transition: all .2s ease;
}
.ot-btn:hover { background: rgba(143, 123, 255, 0.28); transform: translateY(-1px); }
.ot-btn:active { transform: translateY(0); }

/* ---- 信息区 ---- */
.ot-info { margin-top: 30px; }
