/* 日历页布局与面板样式 */

* {
    box-sizing: border-box;
}

body {
    background: #f6f7f9;
    color: #24292f;
    margin: 0;
    padding: 0;
}

.yyt-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

/* ---------- 顶部栏 ---------- */

.yyt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.yyt-head-left {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.yyt-back {
    font-size: 13px;
    color: #7c3aed;
    text-decoration: none;
    white-space: nowrap;
}

.yyt-back:hover {
    text-decoration: underline;
}

.yyt-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #24292f;
    white-space: nowrap;
}

.yyt-head-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* 天气：仅顶部角落一行小字 */
.yyt-weather {
    font-size: 13px;
    color: #57606a;
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 999px;
    padding: 5px 12px;
    white-space: nowrap;
}

.yyt-weather:empty {
    display: none;
}

.yyt-btn {
    display: inline-block;
    background: #7c3aed;
    color: #fff !important;
    text-decoration: none;
    border-radius: 7px;
    padding: 7px 16px;
    font-size: 13px;
    white-space: nowrap;
}

.yyt-btn:hover {
    background: #6d28d9;
}

.yyt-auth {
    font-size: 13px;
    white-space: nowrap;
}

.yyt-auth a {
    color: #7c3aed;
    text-decoration: none;
}

.yyt-auth a:hover {
    text-decoration: underline;
}

.yyt-auth .yyt-user {
    color: #57606a;
}

/* ---------- 每日一句卡片 ---------- */

.yyt-quote-card {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(27, 31, 35, 0.04);
    overflow: hidden;
    margin-bottom: 16px;
}

/* 桌面端 2:1 横幅（居中裁切，保留照片主体） */
.yyt-quote-banner {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #f2f4f7;
}

.yyt-quote-banner img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yyt-quote-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
}

/* 移动端方图缩略图 */
.yyt-quote-thumb {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    border-radius: 10px;
    overflow: hidden;
    background: #f2f4f7;
}

.yyt-quote-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yyt-quote-text {
    flex: 1 1 auto;
    min-width: 0;
}

.yyt-quote-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #8b949e;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.yyt-quote {
    font-size: 15px;
    line-height: 1.6;
    color: #24292f;
    font-style: italic;
    overflow-wrap: break-word;
}

.yyt-quote-cn {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.6;
    color: #6e7781;
}

.yyt-quote-sub {
    margin-top: 6px;
    font-size: 12px;
    color: #b1b8bf;
}

/* ---------- 倒计时条（仅登录） ---------- */

.yyt-countdown-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(27, 31, 35, 0.04);
    padding: 13px 18px;
    margin-bottom: 16px;
}

.yyt-countdown-label {
    font-size: 12px;
    color: #8b949e;
    flex: 0 0 auto;
}

.yyt-countdown-title {
    font-size: 14px;
    font-weight: 600;
    color: #24292f;
    flex: 1 1 180px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yyt-countdown {
    font-size: 20px;
    font-weight: 700;
    color: #7c3aed;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    flex: 0 0 auto;
}

.yyt-countdown span {
    font-size: 11px;
    font-weight: 500;
    color: #8b949e;
    margin-left: 2px;
    margin-right: 4px;
}

.yyt-countdown-date {
    font-size: 12px;
    color: #8b949e;
    flex: 0 0 auto;
}

/* ---------- 日历主体 ---------- */

.yyt-calendar {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 12px;
    padding: 16px 18px 20px;
    box-shadow: 0 1px 3px rgba(27, 31, 35, 0.04);
}

.yyt-calendar-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.yyt-today-btn {
    background: #7c3aed;
    border: 1px solid #7c3aed;
    color: #fff;
    border-radius: 6px;
    padding: 6px 15px;
    font-size: 13px;
    cursor: pointer;
}

.yyt-today-btn:hover {
    background: #6d28d9;
    border-color: #6d28d9;
}

.yyt-calendar-tip {
    font-size: 12px;
    color: #8b949e;
}

/* ---------- 日历内部修复 ---------- */

/* 周几：居中、不换行、自适应高度（原样式左对齐+15px缩进，窄屏会被裁切） */
.note-week-list {
    height: auto;
    min-height: 38px;
    line-height: 38px;
}

.note-week-list > li > p {
    text-align: center;
    padding-left: 0;
    white-space: nowrap;
}

/* 日期数字居中 */
.note-day-list > li > p:nth-child(1) {
    text-align: center;
    padding-left: 0;
}

/* 有提醒的日期：日期数字后面的行内圆点 */
.note-day-day.has-notice > p:nth-child(1)::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 4px;
    border-radius: 50%;
    background: #fa594c;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* 行高自适应，最多展示 3 条提醒 */
.note-day-list {
    height: auto;
    min-height: 62px;
}

.note-day-list > li {
    vertical-align: top;
    overflow: hidden;
}

/* 提醒条 */
.note-tips-full,
.note-tips-yet {
    font-size: 11px;
    line-height: 16px;
    text-align: left;
    background: #f7f8fc;
    padding: 1px 5px;
    margin: 1px 3px 0 0;
    border-radius: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.note-tips-full {
    border-left: 3px solid #5bd45b;
    color: #2f7d32;
}

.note-tips-yet {
    border-left: 3px solid #ff1313;
    color: #c62828;
}

.note-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #fbfbfc;
    box-shadow: none;
    border: 1px solid #e6e8eb;
}

/* ---------- 响应式 ---------- */

@media (max-width: 860px) {
    .yyt-wrap {
        padding: 18px 12px 36px;
    }

    .yyt-title {
        font-size: 20px;
    }

    .yyt-countdown-bar {
        gap: 8px;
    }

    .yyt-countdown-title {
        flex: 1 1 100%;
        order: 3;
    }
}

@media (max-width: 560px) {
    .yyt-wrap {
        padding: 14px 10px 32px;
    }

    .yyt-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .yyt-head-right {
        width: 100%;
        gap: 8px;
    }

    .note-week-list {
        font-size: 12px;
        line-height: 34px;
        min-height: 34px;
    }

    .note-day-list {
        min-height: 54px;
    }

    .yyt-quote-body {
        padding: 14px 16px;
        gap: 12px;
    }

    .yyt-quote-thumb {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
    }

    .yyt-quote {
        font-size: 14px;
    }

    .yyt-countdown {
        font-size: 18px;
    }
}
