/* 容器：网格系统 */
.today-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.today-section-header {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 20px;
    color: #1d1d1f; /* Apple Dark Grey */
    margin-top: 40px;
}

/* 卡片本体：物理容器 */
.today-card {
    position: relative;
    width: 100%;
    height: 420px; /* 黄金比例的纵向延伸 */
    border-radius: 18px; /* 模拟 Apple 的连续曲率 */
    overflow: hidden;
    cursor: pointer;
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
    background-color: #fff;
    /* 初始状态的阴影：柔和、弥散 */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

/* 交互态：按下时的微妙形变 */
.today-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.today-card:active {
    transform: scale(0.96); /* 触控反馈 */
    transition: transform 0.1s ease;
}

/* 背景层：图像 */
.today-card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.today-card:hover .today-card-background {
    transform: scale(1.05); /* 背景轻微放大，视差感 */
}

/* 遮罩层：确保文字可读性的渐变 */
.today-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 经典的 Apple 黑色渐变，底部加深 */
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 40%,
        rgba(0,0,0,0.3) 70%,
        rgba(0,0,0,0.75) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    box-sizing: border-box;
}

/* 文字容器 */
.today-card-text-container {
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    pointer-events: none; /* 让点击穿透到卡片 */
}

/* 小标题：大写、半透明、字间距 */
.today-card-subhead {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
}

/* 主标题：视觉重心 */
.today-card-headline {
    font-family: "SF Pro Display", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 8px 0;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制行数 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 描述：辅助信息 */
.today-card-description {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
}

/* 暗色模式适配 (如果你的主题支持) */
@media (prefers-color-scheme: dark) {
    .today-section-header {
        color: #f5f5f7;
    }
}

/* 移动端适配：断点 */
@media (max-width: 768px) {
    .today-card {
        height: 380px;
        border-radius: 14px;
    }
    .today-card-headline {
        font-size: 24px;
    }
}
