/* 对联频道 /duilian/：列表卡片与详情门联竖排（其余复用 page.css / common.css） */

.dl-section {
    padding-bottom: 8px;
}

.dl-card {
    text-align: left;
}

.dl-line {
    margin: 0;
    font-family: var(--font-kai);
    font-size: 1.05rem;
    line-height: 1.55;
}

.dl-line + .dl-line {
    margin-top: 8px;
    color: var(--ink-2);
}

.dl-tag {
    display: inline-block;
    min-width: 2.5em;
    margin-right: 6px;
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--muted);
}

/* 详情页：传统门联式左右竖排（右为上联，左为下联） */
.dl-detail {
    padding: 28px 0 0;
}

.dl-couplet-card {
    max-width: 720px;
    margin: 0 auto 36px;
    padding: 28px 16px 32px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    text-align: center;
}

.dl-couplet-card .eyebrow {
    margin-bottom: 8px;
}

/* DOM：左列下联、右列上联（面向门楣的传统贴法） */
.dl-couplet-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 4vw, 32px);
    margin: 20px auto 28px;
    max-width: min(640px, 92vw);
    min-height: 240px;
}

.dl-strip {
    min-width: 0;
    min-height: clamp(220px, 38vh, 320px);
    padding: 18px 14px 22px;
    border: 1px solid var(--line);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dl-strip-shang {
    border-color: var(--azurite);
    box-shadow: inset 0 0 0 1px rgb(47 93 98 / 8%);
}

.dl-strip-label {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--muted);
    flex: none;
}

/* 竖排正文字号：短联更大，长联自动缩小 */
.dl-strip-text {
    margin: 0;
    padding: 0;
    font-family: var(--font-kai);
    font-size: clamp(1.5rem, 4.2vw, 2rem);
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: 0.08em;
    writing-mode: vertical-rl;
    text-orientation: upright;
    max-height: min(480px, 62vh);
    overflow-x: auto;
    overflow-y: hidden;
}

.dl-len-s .dl-strip-text {
    font-size: clamp(1.85rem, 5.5vw, 2.45rem);
    line-height: 1.5;
    letter-spacing: 0.1em;
}

.dl-len-m .dl-strip-text {
    font-size: clamp(1.65rem, 4.8vw, 2.15rem);
    line-height: 1.52;
}

.dl-len-l .dl-strip-text {
    font-size: clamp(1.35rem, 3.8vw, 1.75rem);
    line-height: 1.55;
}

.dl-len-xl .dl-strip-text {
    font-size: clamp(1.1rem, 2.8vw, 1.4rem);
    line-height: 1.6;
    letter-spacing: 0.05em;
}

h1.dl-strip-text {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.dl-strip-xia .dl-strip-text {
    font-weight: 600;
    color: var(--ink-2);
}

.dl-couplet-card .entry-actions {
    justify-content: center;
}

.dl-back {
    margin: 20px 0 0;
    font-size: 14px;
}

.dl-back a {
    color: var(--azurite);
}

@media (max-width: 767px) {
    .dl-couplet-pair {
        gap: 12px;
        min-height: 200px;
    }

    .dl-strip {
        padding: 14px 8px 18px;
        min-height: clamp(200px, 42vh, 280px);
    }

    .dl-len-s .dl-strip-text {
        font-size: clamp(1.6rem, 6.5vw, 2rem);
    }

    .dl-len-m .dl-strip-text {
        font-size: clamp(1.45rem, 5.5vw, 1.85rem);
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .dl-couplet-card {
        max-width: 640px;
    }
}
