/* =========================================================
   DuckWow Quotes
   随便一句
   ========================================================= */

#duckwow-quotes {
    --dwq-primary: #00aa90;

    width: 100%;
    min-height: 70vh;
    box-sizing: border-box;
    padding: 60px 20px 80px;
}

#duckwow-quotes * {
    box-sizing: border-box;
}

.dwq-container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

/* 品牌 */

.dwq-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 4px;

    color: var(--dwq-primary);
    margin-bottom: 18px;
}

.dwq-title {
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
}

.dwq-subtitle {
    margin-top: 12px;
    font-size: 15px;
}

/* 主卡片 */

.dwq-card {
    position: relative;

    width: 100%;
    margin: 42px auto 28px;
    padding: 60px 50px 34px;

    border: 1px solid rgba(128, 128, 128, .15);
    border-radius: 24px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, .055);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.dwq-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 20px 55px rgba(0, 0, 0, .075);
}

/* 分类 */

.dwq-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 12px;

    border-radius: 999px;

    background: rgba(0, 170, 144, .09);
    color: var(--dwq-primary);

    font-size: 12px;
    font-weight: 600;

    margin-bottom: 28px;
}

/* 语录 */

.dwq-quote {
    max-width: 760px;
    margin: 0 auto;

    font-size: clamp(22px, 4vw, 32px);
    line-height: 1.75;
    font-weight: 650;
    letter-spacing: .2px;

    transition:
        opacity .18s ease,
        transform .18s ease;
}

.dwq-quote.dwq-changing {
    opacity: 0;
    transform: translateY(8px);
}

.dwq-author {
    margin-top: 25px;
    font-size: 14px;
}

/* 换一句 */

.dwq-actions {
    margin-top: 38px;
}

.dwq-actions button {
    appearance: none;
    border: 0;

    min-width: 145px;
    height: 48px;

    padding: 0 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    border-radius: 999px;

    background: var(--dwq-primary);
    color: #fff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.dwq-actions button:hover {
    background: #008f79;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0, 170, 144, .22);
}

.dwq-actions button:active {
    transform: translateY(0);
}

.dwq-actions button b {
    font-size: 20px;
    font-weight: 400;
}

/* 工具按钮 */

.dwq-tools {
    display: flex;

    justify-content: center;
    gap: 10px;

    margin-top: 28px;
    padding-top: 24px;

    border-top: 1px solid rgba(128, 128, 128, .15);
}

.dwq-tools button {
    appearance: none;
    border: 0;
    background: transparent;

    min-width: 76px;
    height: 34px;

    padding: 0 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border-radius: 999px;

    color: inherit;

    font-family: inherit;
    font-size: 13px;
    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.dwq-tools button:hover {
    background: rgba(0, 170, 144, .07);
    color: var(--dwq-primary);
}

.dwq-tools button.active {
    color: var(--dwq-primary);
}

/* 分类 */

.dwq-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;

    gap: 9px;

    margin-top: 25px;
}

.dwq-categories button {
    appearance: none;

    border: 1px solid rgba(128, 128, 128, .15);

    background: transparent;

    color: inherit;

    padding: 8px 15px;

    border-radius: 999px;

    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.dwq-categories button:hover {
    color: var(--dwq-primary);
    border-color: rgba(0, 170, 144, .3);
}

.dwq-categories button.active {
    background: var(--dwq-primary);
    color: #fff;
    border-color: var(--dwq-primary);
}

/* 底部 */

.dwq-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 38px;

    font-size: 12px;
}

.dwq-footer strong {
    color: var(--dwq-primary);
    font-weight: 600;
}

/* 手机 */

@media (max-width: 768px) {

    #duckwow-quotes {
        padding: 42px 15px 60px;
    }

    .dwq-title {
        font-size: 32px;
    }

    .dwq-subtitle {
        font-size: 14px;
    }

    .dwq-card {
        margin-top: 32px;
        padding: 45px 22px 25px;
        border-radius: 20px;
    }

    .dwq-category {
        margin-bottom: 22px;
    }

    .dwq-quote {
        font-size: 22px;
        line-height: 1.7;
    }

    .dwq-author {
        margin-top: 20px;
    }

    .dwq-actions {
        margin-top: 30px;
    }

    .dwq-actions button {
        width: 100%;
    }

    .dwq-tools {
        gap: 2px;
    }

    .dwq-tools button {
        min-width: 0;
        flex: 1;
    }

    .dwq-categories {
        gap: 7px;
    }

    .dwq-categories button {
        padding: 7px 12px;
    }

}