/* 装饰常识列表卡片 + 文章详情页 */

/* ===== 常识列表（卡片） ===== */
.kn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 10px 0 40px;
}

.kn-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--rad);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .35s ease, box-shadow .35s ease;
    text-decoration: none;
    color: inherit;
}

.kn-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.kn-thumb {
    position: relative;
    height: 190px;
    background-size: cover;
    background-position: center;
    background-color: var(--light-gray);
}

.kn-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.45) 100%);
}

.kn-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    padding: 4px 12px;
    font-size: 12px;
    letter-spacing: 1px;
    color: #4a3a12;
    background: var(--primary-light);
    border-radius: 20px;
}

.kn-no {
    position: absolute;
    right: 14px;
    bottom: 10px;
    z-index: 2;
    font-size: 26px;
    font-weight: 800;
    color: rgba(255,255,255,.85);
    font-family: Georgia, serif;
    line-height: 1;
}

.kn-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.kn-body h3 {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: var(--dark);
    transition: color .3s;
}

.kn-card:hover .kn-body h3 {
    color: var(--primary-dark);
}

.kn-body p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kn-more {
    margin-top: auto;
    font-size: 13px;
    color: var(--primary-dark);
    letter-spacing: .5px;
}

.kn-more::after {
    content: ' →';
    transition: margin-left .3s;
}

.kn-card:hover .kn-more::after {
    margin-left: 6px;
}

/* ===== 文章详情 ===== */
.article-hero {
    position: relative;
    padding: 150px 0 60px;
    color: #fff;
    overflow: hidden;
}

.article-hero .pb-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.article-hero .pb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(20,20,24,.82) 0%, rgba(20,20,24,.58) 60%, rgba(20,20,24,.42) 100%);
}

.article-hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.crumbs {
    font-size: 13px;
    color: rgba(255,255,255,.7);
    margin-bottom: 18px;
    letter-spacing: .5px;
}

.crumbs a {
    color: rgba(255,255,255,.85);
}

.crumbs a:hover {
    color: var(--primary);
}

.article-hero h1 {
    font-size: 34px;
    line-height: 1.45;
    font-weight: 700;
    margin-bottom: 18px;
}

.art-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,.72);
}

.art-meta span {
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 20px;
}

.art-meta .tag {
    background: var(--primary);
    border-color: var(--primary);
    color: #2b2410;
    font-weight: 600;
}

.article-body {
    padding: 0 0 70px;
    background: var(--white);
}

.article-body .container {
    max-width: 860px;
}

.art-cover {
    margin: -44px 0 36px;
    border-radius: var(--rad);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 3;
    background: var(--light-gray);
}

.art-cover img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.art-lead {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text);
    padding: 20px 24px;
    background: linear-gradient(90deg, rgba(200,168,94,.13), rgba(200,168,94,.03));
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    margin-bottom: 32px;
}

.art-content {
    font-size: 16px;
    line-height: 2;
    color: var(--text-2);
}

.art-content p {
    margin-bottom: 18px;
}

.art-content strong {
    color: var(--dark);
}

.art-points {
    list-style: none;
    counter-reset: pt;
    margin: 8px 0 0;
}

.art-points li {
    counter-increment: pt;
    position: relative;
    padding: 16px 20px 16px 58px;
    margin-bottom: 14px;
    background: var(--light-gray);
    border-radius: 8px;
    line-height: 1.85;
    font-size: 15.5px;
}

.art-points li::before {
    content: counter(pt, decimal-leading-zero);
    position: absolute;
    left: 18px;
    top: 15px;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
}

.art-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 46px 0 0;
}

.art-nav a {
    display: block;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    transition: all .3s;
}

.art-nav a:hover {
    border-color: var(--primary);
    background: rgba(200,168,94,.06);
    color: var(--dark);
}

.art-nav .nav-label {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.art-nav .next {
    text-align: right;
}

.art-cta {
    margin-top: 44px;
    padding: 34px 30px;
    text-align: center;
    border-radius: var(--rad);
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    color: #fff;
}

.art-cta h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.art-cta p {
    color: rgba(255,255,255,.68);
    font-size: 14px;
    margin-bottom: 22px;
}

.art-cta .btn {
    margin: 0 6px 8px;
}

.art-loading,
.art-empty {
    padding: 90px 20px;
    text-align: center;
    color: var(--gray);
    font-size: 15px;
}

@media (max-width: 980px) {
    .kn-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .article-hero { padding: 120px 0 50px; }
    .article-hero h1 { font-size: 26px; }
}

@media (max-width: 640px) {
    .kn-grid { grid-template-columns: 1fr; }
    .kn-thumb { height: 170px; }
    .article-hero { padding: 100px 0 40px; }
    .article-hero h1 { font-size: 21px; }
    .art-cover { margin: -30px 0 26px; }
    .art-content { font-size: 15px; }
    .art-nav { grid-template-columns: 1fr; }
    .art-nav .next { text-align: left; }
    .art-cta { padding: 26px 20px; }
}

/* 相关阅读 */
.art-related {
    margin-top: 44px;
    padding: 26px 30px;
    background: #fff;
    border: 1px solid var(--border, #ececf2);
    border-radius: 12px;
}

.art-related h3 {
    font-size: 18px;
    color: #1c1c28;
    margin-bottom: 6px;
}

.art-related ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.art-related li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border, #ececf2);
    font-size: 15px;
    line-height: 1.7;
}

.art-related li:last-child { border-bottom: 0; }

.art-related li a { color: #1c1c28; }

.art-related li a:hover { color: #b08d57; }

.art-related-more {
    margin-top: 12px;
    font-size: 14px;
}

.art-related-more a { color: #b08d57; }
