@charset "UTF-8";

/* ============================================================
 * common.css — 全站公共样式
 * 规则来源：阶段五工程规范增强 C-04, D-02
 * 在 </body> 之后引入
 * ============================================================ */

/* 浏览器升级弹窗样式 */
.browser-upgrade-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.browser-upgrade-inner {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    max-width: 480px;
    width: 90%;
}

.browser-upgrade-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
}

.browser-upgrade-title {
    font-size: 20px;
    color: #1e293b;
    margin-bottom: 12px;
}

.browser-upgrade-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

.browser-upgrade-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.browser-upgrade-links a {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.browser-upgrade-links a:hover {
    background: #1e40af;
}

/* ============================================================
 * 文本截断工具类（D-03）
 * ============================================================ */

.g-text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.g-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 3.2em;
}

.g-line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 4.8em;
}
