/* 新版首页 UI - 参考 LG-NewUi 风格 */
.home-newui {
    --accent: #ff6b81;
    --accent-soft: rgba(255, 107, 129, 0.12);
    --text-main: #2d3436;
    --text-sub: #636e72;
    --card-bg: rgba(255, 255, 255, 0.88);
    --shadow: 0 8px 32px rgba(255, 107, 129, 0.08);
    padding-bottom: 80px;
}

body.home-newui {
    background: linear-gradient(180deg, #fff5f7 0%, #ffffff 40%, #fafafa 100%) !important;
    background-image: none !important;
}

.home-newui .time { display: none; }

/* 浮动导航 */
.home-nav-float {
    display: flex;
    justify-content: center;
    margin: -28px auto 0;
    position: relative;
    z-index: 10;
    padding: 0 12px;
}
.home-nav-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 8px 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.8);
    flex-wrap: wrap;
    justify-content: center;
}
.home-nav-inner a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 14px;
    border-radius: 24px;
    color: #636e72;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.25s;
    min-width: 52px;
}
.home-nav-inner a:hover { color: var(--accent); background: var(--accent-soft); }
.home-nav-inner a.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255,107,129,0.35);
}
.home-nav-inner a i { font-size: 16px; font-style: normal; }

/* 主内容区 */
.home-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 0;
}

.home-hero-text {
    text-align: center;
    margin: 32px 0 28px;
}
.home-hero-text .sub-tag {
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-family: 'Noto Serif SC', serif;
}
.home-hero-text h2 {
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.5;
    font-family: 'Noto Serif SC', serif;
}
.home-hero-text .since {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-sub);
}

/* 倒计时方块 */
.home-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}
.home-countdown .cd-box {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 18px 8px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.6);
}
.home-countdown .cd-num {
    font-size: clamp(28px, 6vw, 40px);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.home-countdown .cd-label {
    font-size: 11px;
    color: var(--text-sub);
    margin-top: 6px;
    letter-spacing: 1px;
}

/* 统计卡片 */
.home-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}
.home-stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255,255,255,0.6);
}
.home-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255,107,129,0.15);
    color: inherit;
}
.home-stat-card .stat-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}
.home-stat-card .stat-label {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 4px;
}
.home-stat-card .stat-sub {
    font-size: 10px;
    color: #b2bec3;
    margin-top: 2px;
}

/* 内容区块 */
.home-section {
    margin-bottom: 36px;
}
.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.home-section-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    font-family: 'Noto Serif SC', serif;
}
.home-section-header h3 span {
    font-size: 10px;
    background: var(--accent);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}
.home-section-header a {
    font-size: 13px;
    color: var(--accent);
}

/* 清单预览 */
.home-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.home-list-item {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.6);
}
.home-list-item .check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dfe6e9;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    margin-top: 2px;
}
.home-list-item.done .check { background: #55efc4; }
.home-list-item .list-text {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 点滴预览 */
.home-article-list { display: flex; flex-direction: column; gap: 12px; }
.home-article-item {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
    border: 1px solid rgba(255,255,255,0.6);
    display: block;
}
.home-article-item:hover { transform: translateX(4px); color: inherit; }
.home-article-item .art-meta {
    font-size: 11px;
    color: var(--accent);
    margin-bottom: 6px;
}
.home-article-item .art-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}
.home-article-item .art-author {
    font-size: 12px;
    color: var(--text-sub);
}

/* 相册预览 */
.home-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.home-photo-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
    box-shadow: var(--shadow);
}
.home-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.home-photo-item:hover img { transform: scale(1.05); }
.home-photo-item .photo-cap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 8px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 预览提示条 */
.home-preview-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(45, 52, 54, 0.92);
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.home-preview-bar a {
    color: #ff6b81;
    text-decoration: underline;
}

/* 快捷入口 */
.home-quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 36px;
}
.home-quick-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.6);
}
.home-quick-card:hover { transform: translateY(-2px); color: inherit; box-shadow: 0 12px 28px rgba(255,107,129,0.12); }
.home-quick-card img { width: 48px; height: 48px; }
.home-quick-card .qk-title { font-size: 15px; font-weight: 600; color: var(--text-main); }
.home-quick-card .qk-desc { font-size: 12px; color: var(--text-sub); margin-top: 2px; }

@media (max-width: 768px) {
    .home-countdown { gap: 8px; }
    .home-countdown .cd-box { padding: 14px 4px; }
    .home-stats { grid-template-columns: repeat(2, 1fr); }
    .home-list-grid { grid-template-columns: 1fr; }
    .home-photo-grid { grid-template-columns: repeat(2, 1fr); }
    .home-nav-inner a { padding: 6px 10px; min-width: 44px; font-size: 10px; }
}
