/* ==================== 每日一成语 daily.css v1.0.0 ==================== */

/* ---------- 今日成语大卡 ---------- */
.daily-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow .25s var(--ease);
}
.daily-card:hover { box-shadow: var(--shadow-hover); }

.dc-head {
    padding: 26px 28px 22px;
    background: linear-gradient(135deg, var(--blue) 0%, #3b82f6 55%, #60a5fa 100%);
    color: var(--on-accent);
    text-align: center;
}
.dc-word {
    font-size: 40px; font-weight: 700; line-height: 1.25;
    letter-spacing: 6px; text-indent: 6px;
    text-shadow: 0 2px 10px rgba(30, 64, 175, .28);
}
.dc-pinyin {
    margin-top: 10px; font-size: 15px;
    color: rgba(255, 255, 255, .9); letter-spacing: 1px;
}

.dc-body { padding: 22px 28px 4px; }
.dc-cn { font-size: 16px; line-height: 1.85; color: var(--text); }
.dc-en { margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--text-2); }
.dc-line { margin-top: 12px; font-size: 14.5px; line-height: 1.8; color: var(--text-2); }
.dc-example { color: var(--text); }
.dc-label {
    display: inline-block; margin-right: 8px; padding: 1px 8px;
    border-radius: 5px; background: var(--blue-bg); color: var(--blue);
    font-size: 12px; font-weight: 600;
}

.dc-foot {
    display: flex; flex-wrap: wrap; gap: 10px;
    padding: 18px 28px 24px;
}
.dc-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-2); font-size: 14px; line-height: 1.4;
    font-family: inherit; cursor: pointer; text-decoration: none;
    transition: all .18s var(--ease);
}
.dc-btn:hover {
    border-color: var(--blue); color: var(--blue);
    transform: translateY(-1px);
}
.dc-primary {
    background: var(--blue); border-color: var(--blue); color: var(--on-accent);
}
.dc-primary:hover {
    background: var(--blue-mid); border-color: var(--blue-mid); color: var(--on-accent);
}
.dc-ghost { background: var(--blue-bg); border-color: transparent; color: var(--blue); }
.dc-ghost:hover { background: var(--blue-light); }

/* ---------- 往期回顾 ---------- */
.daily-archive { display: grid; gap: 8px; }
.da-item {
    display: grid; grid-template-columns: 62px 104px minmax(0, 1fr) minmax(0, 1.7fr);
    align-items: center; gap: 12px;
    padding: 13px 16px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); text-decoration: none;
    transition: all .18s var(--ease);
}
.da-item:hover {
    border-color: var(--blue-light); background: var(--blue-bg);
    transform: translateX(3px);
}
.da-date { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.da-word { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: 1px; }
.da-py, .da-mean {
    font-size: 13px; color: var(--text-2);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.da-py { font-size: 12.5px; color: var(--text-3); }

.daily-empty {
    padding: 30px; text-align: center; font-size: 14px;
    color: var(--text-3); background: var(--surface);
    border: 1px dashed var(--border); border-radius: var(--radius);
}

/* ---------- 首页模块 ---------- */
.home-daily {
    display: grid; grid-template-columns: 176px minmax(0, 1fr);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    overflow: hidden;
}
.hd-left {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 6px; padding: 22px 14px; text-align: center;
    background: linear-gradient(160deg, var(--blue) 0%, #3b82f6 60%, #60a5fa 100%);
    color: var(--on-accent);
}
.hd-tag {
    padding: 2px 9px; border-radius: 20px;
    background: rgba(255, 255, 255, .22); font-size: 11.5px;
}
.hd-word {
    font-size: 25px; font-weight: 700; line-height: 1.3;
    letter-spacing: 3px; text-indent: 3px;
}
.hd-date { font-size: 12px; color: rgba(255, 255, 255, .85); }

.hd-right { display: flex; flex-direction: column; padding: 20px 24px; }
.hd-py { font-size: 13px; color: var(--text-3); }
.hd-cn { margin-top: 9px; font-size: 15px; line-height: 1.8; color: var(--text); }
.hd-en { margin-top: 6px; font-size: 13px; line-height: 1.65; color: var(--text-2); }
.hd-foot {
    margin-top: auto; padding-top: 15px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.hd-btn {
    display: inline-flex; align-items: center;
    padding: 8px 16px; border-radius: var(--radius-sm);
    background: var(--blue); color: var(--on-accent);
    font-size: 13.5px; text-decoration: none;
    transition: all .18s var(--ease);
}
.hd-btn:hover { background: var(--blue-mid); transform: translateY(-1px); }
.hd-more {
    margin-left: auto; font-size: 13px;
    color: var(--text-3); text-decoration: none;
    transition: color .18s;
}
.hd-more:hover { color: var(--blue); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .da-item { grid-template-columns: 58px 96px minmax(0, 1fr); }
    .da-mean { display: none; }
}
@media (max-width: 600px) {
    .dc-head { padding: 20px 18px 18px; }
    .dc-word { font-size: 32px; letter-spacing: 4px; text-indent: 4px; }
    .dc-body { padding: 18px 18px 2px; }
    .dc-foot { padding: 14px 18px 20px; }
    .dc-btn { flex: 1 1 auto; justify-content: center; }
    .da-item { grid-template-columns: 50px minmax(0, 1fr); gap: 10px; }
    .da-py { display: none; }
    .home-daily { grid-template-columns: 1fr; }
    .hd-left {
        flex-direction: row; justify-content: flex-start; gap: 10px;
        padding: 14px 18px; text-align: left;
    }
    .hd-word { font-size: 20px; }
    .hd-date { margin-left: auto; }
}
