body {
    background-color: #FFF9F0;
}

/* Banner区域 */
.detail-banner-section {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.detail-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-banner-section .header-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.5);
}

/* 面包屑导航 */
.breadcrumb-wrapper {
    background-color: #7A2919;
    height: 40px;
    display: flex;
    align-items: center;
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    height: 100%;
    color: #fff;
    font-size: 0.9rem;
}

.breadcrumb-content a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb-content a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #fff;
}

.breadcrumb-current {
    color: #fff;
}

/* 详情页主容器 */
.detail-wrapper {
    padding: 3rem 0 4rem;
}

/* 内容详情页样式 */
.detail-article {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #7f1d1d;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.detail-meta {
    font-size: 0.95rem;
    color: #666;
}

.detail-date {
    color: #999;
}

.detail-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.detail-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.detail-content p:last-child {
    margin-bottom: 0;
}

/* 详情区块通用样式 */
.detail-section {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #7f1d1d;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.detail-rich-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.detail-rich-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.detail-rich-content p:last-child {
    margin-bottom: 0;
}

.detail-rich-content strong {
    color: #7f1d1d;
    font-weight: 600;
}

/* 基本信息表格样式 */
.info-table-wrapper {
    overflow-x: auto;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 1.25rem 1rem;
    vertical-align: top;
}

.info-label {
    width: 180px;
    font-weight: 600;
    color: #333;
    background-color: #f9f9f9;
}

.info-value {
    color: #666;
}

.info-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 0.25rem;
    object-fit: cover;
}

/* 品牌名称板块左右布局样式 */
.brand-name-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.brand-name-image {
    flex: 0 0 300px;
}

.brand-name-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 0.5rem;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand-name-params {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.param-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.param-row-last {
    grid-template-columns: 1fr;
}

.param-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.param-label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.param-value {
    color: #666;
    font-size: 0.95rem;
}

/* 传承人卡片网格（品牌详情页） */
.inheritor-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.inheritor-card-item {
    position: relative;
    background-color: #f9f9f9;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.inheritor-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.inheritor-card-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.inheritor-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.inheritor-card-item:hover .inheritor-card-image img {
    transform: scale(1.1);
}

.inheritor-card-info {
    padding: 1.5rem;
    text-align: center;
}

.inheritor-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #862E23;
    margin-bottom: 0.75rem;
}

.inheritor-card-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 0;
}

.inheritor-card-item:hover .inheritor-card-desc {
    opacity: 1;
    max-height: 200px;
    margin-top: 0.75rem;
}

.inheritor-card-desc p {
    margin: 0;
}

/* 新的传承人卡片样式（PC版一行5个，手机端一行1个） */
.inheritor-cards-grid-new {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.inheritor-card-item-new {
    background-color: #f9f9f9;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.inheritor-card-image-new {
    position: relative;
    width: 100%;
    padding-top: 125%; /* 1寸照比例约为 25mm x 35mm，即 5:7，约125% */
    overflow: hidden;
    background-color: #fff;
}

.inheritor-card-image-new img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inheritor-card-info-new {
    padding: 1rem;
    text-align: center;
}

.inheritor-card-name-new {
    font-size: 1rem;
    font-weight: 700;
    color: #862E23;
    margin-bottom: 0.75rem;
}

.inheritor-card-desc-new {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    height: 4.8em; /* 固定4行高度 (1.2em * 4) */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.inheritor-card-desc-new p {
    margin: 0;
}

/* 传承人详情页样式 */
.explore-header {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.explore-image-wrapper {
    flex: 0 0 300px;
}

.explore-main-image {
    width: 100%;
    border-radius: 0.5rem;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.explore-basic-info {
    flex: 1;
}

.explore-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #7f1d1d;
    margin-bottom: 1.5rem;
}

.explore-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.explore-intro p {
    margin: 0;
    text-align: justify;
}

.explore-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.explore-info-item {
    font-size: 1rem;
    color: #666;
}

.explore-info-label {
    font-weight: 600;
    color: #333;
}

.explore-info-value {
    color: #666;
}

/* 作品展示和荣誉证书网格 */
.works-gallery,
.certificates-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.works-item,
.certificate-item {
    text-align: center;
}

.works-image-wrapper,
.certificate-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.works-image-wrapper:hover,
.certificate-image-wrapper:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.works-image-wrapper img,
.certificate-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.works-title,
.certificate-title {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .inheritor-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .inheritor-cards-grid-new {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .brand-name-layout {
        gap: 2rem;
    }

    .brand-name-image {
        flex: 0 0 250px;
    }

    .param-row {
        gap: 1.5rem;
    }

    .works-gallery,
    .certificates-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .explore-header {
        gap: 2rem;
    }

    .explore-image-wrapper {
        flex: 0 0 250px;
    }
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
    .detail-banner-section {
        height: 320px;
    }

    .detail-wrapper {
        padding: 2rem 0;
    }

    .detail-article {
        padding: 2rem 1.5rem;
    }

    .detail-title {
        font-size: 1.75rem;
    }

    .detail-section {
        padding: 1.5rem;
    }

    .detail-section-title {
        font-size: 1.5rem;
    }

    .info-table {
        font-size: 0.9rem;
    }

    .info-label {
        width: 120px;
    }

    .info-table td {
        padding: 1rem 0.75rem;
    }

    .inheritor-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .inheritor-cards-grid-new {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .brand-name-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .brand-name-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .param-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .param-row-last {
        grid-template-columns: 1fr;
    }

    .explore-header {
        flex-direction: column;
        gap: 2rem;
    }

    .explore-image-wrapper {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .explore-name {
        font-size: 2rem;
        text-align: center;
    }

    .works-gallery,
    .certificates-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
    .detail-article {
        padding: 1.5rem 1rem;
    }

    .detail-title {
        font-size: 1.5rem;
    }

    .detail-section {
        padding: 1.25rem;
    }

    .detail-section-title {
        font-size: 1.25rem;
    }

    .info-table {
        font-size: 0.85rem;
    }

    .info-label {
        width: 100px;
    }

    .info-table td {
        padding: 0.75rem 0.5rem;
    }

    .inheritor-cards-grid {
        grid-template-columns: 1fr;
    }

    .inheritor-cards-grid-new {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .brand-name-image {
        max-width: 100%;
    }

    .param-row {
        gap: 0.75rem;
    }

    .works-gallery,
    .certificates-gallery {
        grid-template-columns: 1fr;
    }

    .explore-name {
        font-size: 1.75rem;
    }
}


/* 页面通用标题与内容样式（关于项目等单页） */
.page-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
}
.page-title {
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 600;
    color: #862E23;
    margin-bottom: 1.5rem;
}

.page-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444444;
    margin-top: 1.25rem;
}

.page-content p {
    margin: 0 0 1em;
    text-align: justify;
}

.page-content h2,
.page-content h3,
.page-content h4 {
    font-weight: 600;
    margin: 1.5em 0 0.6em;
    color: #222222;
}

.page-content ul,
.page-content ol {
    margin: 0 0 1em 1.5em;
    padding: 0;
}

.page-content li {
    margin-bottom: 0.4em;
}

.page-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.page-content table th,
.page-content table td {
    border: 1px solid #e5e5e5;
    padding: 0.5rem 0.75rem;
}

.page-content table th {
    background-color: #f8f8f8;
    font-weight: 500;
}
