/* 日期显示模块 */
.date-clock {
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.clock {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.clock-face {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.clock-number {
    position: absolute;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.clock-12 {
    top: 10px;
}

.clock-3 {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.clock-6 {
    bottom: 10px;
}

.clock-9 {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.clock-center {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff6b6b;
    z-index: 10;
}

.clock-hand {
    position: absolute;
    background: #333;
    transform-origin: bottom center;
    border-radius: 2px;
}

.hour-hand {
    width: 3px;
    height: 26px;
    top: 29px;
    background: #333;
    z-index: 5;
}

.minute-hand {
    width: 2px;
    height: 40px;
    top: 15px;
    background: #666;
    z-index: 6;
}

.second-hand {
    width: 1px;
    height: 44px;
    top: 11px;
    background: #ff6b6b;
    z-index: 7;
}

.clock-day {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    font-family: '微软雅黑', 'Microsoft YaHei', sans-serif;
}

/* 快捷功能（垂直下移由 .home-top-row margin-top 承担） */
.quick-functions {
    display: grid;
    grid-template-columns: repeat(2, var(--home-quick-btn-size, 70px));
    grid-template-rows: repeat(2, var(--home-quick-btn-size, 70px));
    gap: var(--home-quick-btn-gap, 12px);
    width: calc(var(--home-quick-btn-size, 70px) * 2 + var(--home-quick-btn-gap, 12px));
    max-width: 100%;
    flex-shrink: 1;
    min-width: 0;
    margin-top: 0;
    justify-content: center;
}

/* 锁屏（今日一句弹窗等）：已迁至 lock-screen.css */
.function-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: var(--home-quick-btn-size, 70px);
    height: var(--home-quick-btn-size, 70px);
    max-width: var(--home-quick-btn-size, 70px);
    min-width: var(--home-quick-btn-size, 70px);
    padding: 6px 5px 5px;
    background: linear-gradient(135deg, rgba(188, 198, 223, 0.88) 0%, rgba(233, 231, 245, 0.88) 50%, rgba(208, 221, 227, 0.88) 100%);
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, opacity 0.25s ease;
    box-shadow: 0 12px 28px rgba(112, 128, 165, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0.88;
    border: 1px solid rgba(255, 255, 255, 0.44);
    box-sizing: border-box;
}

.function-item:hover {
    background: linear-gradient(135deg, rgba(194, 203, 228, 0.88) 0%, rgba(237, 235, 247, 0.88) 50%, rgba(214, 227, 233, 0.88) 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(112, 128, 165, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.function-icon {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    max-height: calc(var(--home-quick-btn-size, 70px) - 24px);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.function-icon img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.function-icon.theme-icon-wrap--custom,
.nav-icon.theme-icon-wrap--custom,
.sub-screen-action-icon.theme-icon-wrap--custom {
    overflow: hidden;
    align-items: stretch;
    justify-content: stretch;
}

.function-icon img.theme-icon-img--custom,
.nav-icon img.theme-icon-img--custom,
.sub-screen-action-icon-img.theme-icon-img--custom {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    transform: none;
}

.function-name {
    flex: 0 0 auto;
    font-size: 10px;
    line-height: 1.15;
    font-weight: 600;
    color: #46556f;
    margin-top: 0;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 底部导航 */
.bottom-nav {
    position: absolute;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    width: min(360px, calc(100% - 28px));
    max-width: calc(100% - 28px);
    margin-inline: auto;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 3vw, 16px);
    padding: 8px 10px;
    background: linear-gradient(135deg, rgba(188, 198, 223, 0.88) 0%, rgba(233, 231, 245, 0.88) 48%, rgba(208, 221, 227, 0.88) 100%);
    border-radius: 26px;
    box-shadow: 0 12px 28px rgba(112, 128, 165, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0.88;
    border: 1px solid rgba(255, 255, 255, 0.44);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    padding: 6px 5px 5px;
    border-radius: 16px;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    position: relative;
    flex: 0 0 auto;
    width: var(--home-quick-btn-size, 70px);
    height: var(--home-quick-btn-size, 70px);
    max-width: var(--home-quick-btn-size, 70px);
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.nav-item:active {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(0.97);
    opacity: 0.95;
}

@media (hover: hover) and (pointer: fine) {
    .nav-item:hover {
        background: rgba(255, 255, 255, 0.22);
        transform: translateY(-2px);
    }
}

.nav-icon {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    max-height: calc(var(--home-quick-btn-size, 70px) - 24px);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    transition: all 0.3s ease;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.nav-icon img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.sub-screen-action-icon-img.theme-icon-img--custom {
    border-radius: inherit;
}

.nav-name {
    font-size: 10px;
    font-weight: 500;
    color: #666;
    transition: color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .nav-item:hover .nav-name {
        color: #555;
    }
}
