/* 姓氏家园 */

.xs-main {
    flex: 1 1 auto;
    width: 100%;
    background: linear-gradient(180deg, #FBF6EA 0%, #F7F4EE 100%);
}

.xs-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 5% 72px;
    box-sizing: border-box;
}

.xs-head {
    text-align: center;
    margin-bottom: 32px;
}

.xs-head h1 {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #8B0000;
}

.xs-head p {
    margin: 0;
    font-size: 15px;
    color: #8A8073;
    line-height: 1.8;
}

.xs-anchors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(90, 54, 20, 0.06);
}

.xs-anchors a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 6px;
    color: #8B0000;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: #FBF6EA;
}

.xs-anchors a:hover {
    background: #8B0000;
    color: #FFF6E0;
    text-decoration: none;
}

.xs-anchors a.is-muted {
    color: #C8BFB2;
    background: #F5F0E6;
    pointer-events: none;
}

.xs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.xs-letter-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px 16px;
    box-shadow: 0 4px 16px rgba(90, 54, 20, 0.06);
}

.xs-letter-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    color: #8B0000;
    border-bottom: 2px solid #E8DCC8;
    padding-bottom: 8px;
}

.xs-names {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.xs-names a {
    color: #3F3A33;
    font-size: 16px;
    text-decoration: none;
}

.xs-names a:hover {
    color: #8B0000;
    text-decoration: underline;
}

.xs-compound {
    margin-top: 28px;
    background: #fff;
    border-radius: 10px;
    padding: 22px 24px;
    box-shadow: 0 4px 16px rgba(90, 54, 20, 0.06);
}

.xs-compound h2 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 800;
    color: #8B0000;
    border-bottom: 2px solid #E8DCC8;
    padding-bottom: 8px;
}

.xs-compound-note {
    margin: 0 0 14px;
    font-size: 13px;
    color: #8A8073;
}

/* 详情页 */
.xs-detail-back {
    display: inline-block;
    margin-bottom: 22px;
    color: #8B0000;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.xs-detail-back:hover {
    text-decoration: underline;
}

.xs-detail-hero {
    text-align: center;
    margin-bottom: 36px;
}

.xs-detail-hero h1 {
    margin: 0 0 8px;
    font-size: 42px;
    font-weight: 900;
    color: #8B0000;
    letter-spacing: 0.12em;
}

.xs-detail-hero .meta {
    font-size: 14px;
    color: #8A8073;
}

.xs-section {
    background: #fff;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(90, 54, 20, 0.06);
}

.xs-section h2 {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 800;
    color: #8B0000;
    padding-left: 12px;
    border-left: 4px solid #C49A3A;
}

.xs-section p {
    margin: 0;
    font-size: 15px;
    line-height: 2;
    color: #3F3A33;
}

.xs-figure {
    padding: 14px 0;
    border-bottom: 1px dashed #E8DCC8;
}

.xs-figure:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.xs-figure strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    color: #3F3A33;
}

.xs-figure p {
    font-size: 14px;
    line-height: 1.9;
    color: #6B6055;
}

.xs-disclaimer {
    margin-top: 28px;
    padding: 18px 22px;
    background: #FFF9EE;
    border: 1px solid #E8DCC8;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.9;
    color: #8A8073;
}

.xs-sources {
    margin-top: 12px;
}

.xs-sources a {
    display: inline-block;
    margin-right: 16px;
    margin-bottom: 6px;
    color: #8B0000;
    font-size: 13px;
}

.xs-loading,
.xs-error {
    text-align: center;
    padding: 80px 20px;
    color: #8A8073;
    font-size: 15px;
}

.xs-error a {
    color: #8B0000;
}

@media (max-width: 900px) {
    .xs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .xs-grid { grid-template-columns: 1fr; }
    .xs-detail-hero h1 { font-size: 32px; }
}
