/* Material You · 蓝色浅色方案（seed #415F91）

   primary #415F91 · on-primary #FFFFFF · primary-container #D6E3FF · on-primary-container #001B3E
   secondary #565F71 · surface #F9F9FF · on-surface #191C20 · surface-container #EDEDF4
   on-surface-variant #44474F · outline #74777F · outline-variant #C4C6D0 */

:root {
    --font-body: "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", Roboto, system-ui, sans-serif;
    --font-head: var(--font-body);

    --bg: #eceef5;
    --bg-image: none;
    --surface: #f9f9ff;
    --surface-image: none;
    --overlay: rgba(25, 28, 32, 0.32);

    --ink: #191c20;
    --ink-soft: #44474f;
    --ink-dim: #74777f;
    --ink-faint: #c4c6d0;

    --line: #c4c6d0;
    --line-soft: rgba(116, 119, 127, 0.16);

    --accent: #415f91;
    --accent-strong: #2f4a78;
    --accent-gradient: #415f91;
    --accent-tint: #d6e3ff;
    --on-accent: #ffffff;

    --danger-bg: #ba1a1a;
    --danger-tint: rgba(186, 26, 26, 0.14);
    --success-bg: #3f6653;
    --success-tint: rgba(63, 102, 83, 0.14);

    --radius-xs: 4px;
    --radius-s: 8px;
    --radius-m: 12px;
    --radius-l: 28px;
    --radius-days: 999px;
    --radius-pill: 999px;

    --shadow-1: none;
    --shadow-2: none;
    --shadow-3: none;
    --shadow-btn: none;
    --shadow-btn-hover: none;
    --shadow-input: none;

    --cal-binding-h: 4px;
    --cal-binding-bg: #415f91;

    --tip-bg: #1b1b21;
    --tip-ink: #e4e1e9;
    --tip-accent: #adc6ff;
    --tip-line: rgba(228, 225, 233, 0.16);
    --tip-shadow: none;

    --focus-ring: 0 0 0 3px rgba(65, 95, 145, 0.2);
    --focus-outline: 3px solid #415f91;
}

/* 卡片：比页面底色更亮的 surface，无边框无投影，只靠底色区隔 */
.calendar-skeuo,
.image-card,
.countdown-card {
    background: #f9f9ff;
    border: none;
    border-radius: 12px;
    box-shadow: none;
}

.countdown-card:hover {
    background: #f9f9ff;
    box-shadow: none;
}

.modal-box {
    background: #f9f9ff;
    border-radius: 28px;
    box-shadow: none;
}

/* 按钮：filled / text，胶囊形，状态层代替阴影 */
.btn {
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: #d6e3ff;
    color: #001b3e;
}

.btn-primary:hover {
    background: #c3d6f7;
    box-shadow: none;
    transform: none;
}

.btn-ghost {
    background: transparent;
    color: #415f91;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 500;
}

.btn-ghost:hover {
    background: rgba(65, 95, 145, 0.08);
    color: #2f4a78;
}

.btn-danger {
    background: #ffdad6;
    color: #410002;
}

.btn-danger:hover {
    background: #ffc7c0;
}

.login-btn {
    border-radius: 999px;
    background: #d6e3ff;
    color: #001b3e;
    font-weight: 500;
}

.login-btn:hover {
    background: #c3d6f7;
}

/* 日历 */
/* 日历顶上那条挂线只属于和風，这两套去掉 */
.cal-binding {
    display: none;
}

.cal-month-header button:hover {
    background: rgba(65, 95, 145, 0.08);
    color: #2f4a78;
}

.cal-days div.today {
    background: #415f91;
    border-radius: 999px;
    box-shadow: none;
}

.cal-days div.has-item::after {
    background: #565f71;
}

/* 天数胶囊：primary-container 上的 on-primary-container，吃掉 JS 的随机色 */
.days-block {
    background: #d6e3ff;
    color: #001b3e;
    border-radius: 999px;
    box-shadow: none;
    text-shadow: none;
    font-weight: 500;
}

/* 勾选框按 M3 checkbox 做方角，描边样式 */
.checkmark {
    border-radius: 2px;
    width: 18px;
    height: 18px;
    border-color: #74777f;
}

.checkbox-row input:checked + .checkmark {
    background: #415f91;
}

.done-btn {
    border-radius: 2px;
    width: 24px;
    height: 24px;
    font-size: 17px;
    border-color: #74777f;
    color: #74777f;
    background: none;
    box-shadow: none;
}

.done-btn:hover {
    border-color: #415f91;
    color: #415f91;
}

.done-btn.checked {
    background: #415f91;
    border-color: #415f91;
}

.done-btn.checked:hover {
    background: #2f4a78;
    border-color: #2f4a78;
}

.remove-btn,
.edit-btn {
    border-radius: 999px;
    box-shadow: none;
}

.remove-btn {
    background: #ffdad6;
    color: #410002;
}

.remove-btn:hover,
.edit-btn:hover {
    box-shadow: none;
}

.edit-btn {
    background: #d3e8dd;
    color: #0d2f21;
}

.edit-btn:hover {
    background: #c0ddcf;
}

/* 表单：outlined 输入框 */
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group select,
.form-group textarea,
.login-form .form-group input {
    border: none;
    border-bottom: 2px solid #c9ccd8;
    border-radius: 4px 4px 0 0;
    background-color: transparent;
    padding: 10px 4px;
}

.form-group select {
    padding-right: 36px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.login-form .form-group input:focus {
    outline: none;
    border-bottom-color: #415f91;
    box-shadow: none;
}

/* 这套也不加光环 */
.form-group .icon-name-row:focus-within {
    box-shadow: none;
}

.category-title {
    color: #565f71;
    font-weight: 500;
}

.category-title::after {
    background: #c4c6d0;
}

.card-divider {
    background: #e1e2ec;
}

.card-name {
    font-weight: 500;
    letter-spacing: 0;
}

/* 登录页侧带：M3 上就是 surface-container 色块 */
.shoji-left,
.shoji-right {
    background: #f2f4fb;
    border: none;
    box-shadow: none;
}
