:root {
    --ytjq-primary: #3880ff;
    --ytjq-text: #202632;
    --ytjq-muted: #6f7b8c;
    --ytjq-border: #e8edf5;
    --ytjq-bg: #f5f8fc;
}

body {
    background: var(--ytjq-bg);
    color: var(--ytjq-text);
}

.ytjq-main {
    max-width: 1200px;
    min-height: calc(100vh - 260px);
    margin: 0 auto;
    padding: 34px 20px 56px;
}

.ytjq-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ytjq-page-head h1 {
    margin: 0 0 7px;
    font-size: 28px;
    line-height: 1.35;
    font-weight: 600;
}

.ytjq-page-head p {
    margin: 0;
    color: var(--ytjq-muted);
    font-size: 14px;
    line-height: 1.7;
}

.ytjq-search-form {
    display: flex;
    width: 360px;
    height: 42px;
    margin-left: 30px;
}

.ytjq-search-form input {
    min-width: 0;
    padding: 0 14px;
    flex: 1;
    color: #273141;
    font: inherit;
    background: #fff;
    border: 1px solid #dce4ef;
    border-right: 0;
    border-radius: 6px 0 0 6px;
    outline: none;
}

.ytjq-search-form input:focus {
    border-color: var(--ytjq-primary);
}

.ytjq-search-form button {
    width: 82px;
    padding: 0;
    color: #fff;
    font: inherit;
    cursor: pointer;
    background: var(--ytjq-primary);
    border: 0;
    border-radius: 0 6px 6px 0;
    outline: none;
}

.ytjq-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 24px;
}

.ytjq-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ytjq-border);
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(38, 54, 84, .035);
}

.ytjq-card__media {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #fff;
}

.ytjq-card__media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .2s ease;
}

.ytjq-card__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #9aa4b2;
    font-size: 14px;
}

.ytjq-card__body {
    display: block;
    padding: 12px;
}

.ytjq-card__title {
    display: -webkit-box;
    min-height: 45px;
    overflow: hidden;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ytjq-card__title:hover .ytjq-card__number,
.ytjq-card__title:hover .ytjq-card__name {
    color: var(--ytjq-primary);
}

.ytjq-card__meta {
    display: flex;
    margin-top: 10px;
    align-items: center;
    justify-content: space-between;
    color: var(--ytjq-muted);
    font-size: 13px;
}

.ytjq-card__title .ytjq-card__number {
    margin-right: 8px;
    color: #9e9e9e;
    font-size: 16px;
    font-weight: 600;
}

.ytjq-card__meta .ytjq-card__number {
    color: var(--ytjq-primary);
}

.ytjq-card__name {
    color: #000;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.ytjq-empty {
    grid-column: 1 / -1;
    padding: 90px 20px;
    color: #8994a4;
    text-align: center;
    background: #fff;
    border: 1px solid var(--ytjq-border);
    border-radius: 10px;
}

.ytjq-pagination {
    display: flex;
    margin-top: 34px;
    justify-content: center;
}

.ytjq-pagination a,
.ytjq-pagination span {
    display: inline-flex;
    min-width: 92px;
    height: 40px;
    margin: 0 5px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    color: var(--ytjq-primary);
    text-decoration: none;
    background: #fff;
    border: 1px solid #d8e3f5;
    border-radius: 6px;
}

.ytjq-pagination a:hover {
    color: #fff;
    background: var(--ytjq-primary);
    border-color: var(--ytjq-primary);
}

.ytjq-breadcrumb {
    margin-bottom: 20px;
    color: #8a95a5;
    font-size: 14px;
}

.ytjq-breadcrumb a {
    color: var(--ytjq-primary);
    text-decoration: none;
}

.ytjq-breadcrumb i {
    margin: 0 9px;
    color: #b2bbc7;
    font-style: normal;
}

.ytjq-ptype-summary-wrapper {
    width: 100%;
    margin-bottom: 30px;
    background: #f5f9ff;
}

.ytjq-ptype-page {
    min-height: calc(100vh - 260px);
    padding: 30px 0 56px;
}

.ytjq-ptype-container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
}

.ytjq-ptype-breadcrumb .ytjq-breadcrumb {
    margin-bottom: 20px;
}

.ytjq-ptype-summary {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    align-items: flex-start;
}

.ytjq-ptype-summary__media {
    position: relative;
    width: 500px;
    height: 360px;
    min-width: 280px;
    flex: 0 0 500px;
    overflow: hidden;
    background: #e6e7e8;
    border-radius: 15px;
}

.ytjq-ptype-summary__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ytjq-ptype-summary__content {
    min-width: 0;
    margin-left: 28px;
    flex: 1;
}

.ytjq-ptype-summary__content h1 {
    margin: 0 0 10px;
    color: #000;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
}

.ytjq-ptype-summary__count {
    margin: 0 0 10px;
    color: #777;
    font-size: 14px;
    line-height: 1.7;
}

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

.ytjq-ptype-info-table tr {
    border-bottom: 1px solid #e7ebf0;
}

.ytjq-ptype-info-table th {
    width: 82px;
    padding: 14px 0;
    color: #999;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    vertical-align: top;
}

.ytjq-ptype-info-table td {
    padding: 14px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word;
}

.ytjq-category-path {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

.ytjq-category-path__item {
    display: inline-block;
}

.ytjq-category-path__arrow {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 0 9px;
    flex: 0 0 14px;
    color: #a5adba;
    vertical-align: middle;
}

.ytjq-category-path__arrow path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ytjq-ptype-description {
    padding: 0 0 32px;
}

.ytjq-ptype-description h2 {
    margin: 0;
    padding-left: 16px;
    color: #222;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
    border-left: 4px solid var(--ytjq-primary);
}

.ytjq-ptype-description p {
    margin: 0;
    padding-top: 18px;
    color: #555;
    font-size: 15px;
    line-height: 1.9;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    word-break: break-word;
}

.ytjq-ptype-hero {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    background: #20242b;
    border-radius: 12px;
}

.ytjq-ptype-hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ytjq-ptype-hero__shade {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(7, 12, 20, .78), rgba(7, 12, 20, .23) 70%, rgba(7, 12, 20, .08));
}

.ytjq-ptype-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 340px;
    width: 55%;
    padding: 48px;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.ytjq-ptype-hero h1 {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1.35;
}

.ytjq-ptype-hero__count {
    color: rgba(255, 255, 255, .84);
    font-size: 15px;
}

.ytjq-ptype-info {
    margin: 20px 0 30px;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid var(--ytjq-border);
    border-radius: 10px;
}

.ytjq-ptype-info__row {
    display: flex;
    margin-bottom: 13px;
    color: #4f5a69;
    font-size: 15px;
    line-height: 1.8;
}

.ytjq-ptype-info__row:last-child {
    margin-bottom: 0;
}

.ytjq-ptype-info__label {
    width: 74px;
    flex: 0 0 74px;
    color: #8b95a3;
}

.ytjq-section-title {
    position: relative;
    margin: 0 0 20px;
    padding-left: 13px;
    font-size: 22px;
    font-weight: 600;
    line-height: 30px;
}

.ytjq-section-title:before {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: 4px;
    content: '';
    background: var(--ytjq-primary);
    border-radius: 2px;
}

.ytjq-card__beian {
    display: -webkit-box;
    min-height: 19px;
    margin-top: 7px;
    overflow: hidden;
    font-size: 13px;
    line-height: 19px;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ytjq-card__beian-label {
    margin-right: 5px;
    color: #9a9da4;
}

.ytjq-card__beian-value {
    color: #2d2e32;
}

.ytjq-ptype-page .ytjq-card__body {
    height: 98px;
}

.ytjq-ptype-page .ytjq-card__title {
    min-height: 0;
}

.ytjq-ptype-page .ytjq-card__beian {
    min-height: 22px;
    margin-top: 6px;
    font-size: 15px;
    line-height: 22px;
}

.ytjq-detail-layout {
    display: flex;
    align-items: flex-start;
}

.ytjq-gallery {
    width: 560px;
    flex: 0 0 560px;
}

.ytjq-gallery__main {
    position: relative;
    display: flex;
    width: 100%;
    height: 560px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--ytjq-border);
}

.ytjq-gallery__main img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ytjq-gallery__empty {
    color: #9aa4b2;
}

.ytjq-gallery__thumbs {
    display: flex;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.ytjq-gallery__thumb {
    display: block;
    width: 68px;
    height: 68px;
    margin-right: 10px;
    padding: 0;
    flex: 0 0 68px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 5px;
    outline: none;
}

.ytjq-gallery__thumb:last-child {
    margin-right: 0;
}

.ytjq-gallery__thumb.is-active {
    border-color: var(--ytjq-primary);
}

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

.ytjq-detail-info {
    min-width: 0;
    margin-left: 38px;
    flex: 1;
}

.ytjq-detail-info h1 {
    margin: 2px 0 24px;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.45;
}

.ytjq-detail-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.ytjq-detail-table th,
.ytjq-detail-table td {
    padding: 13px 0;
    vertical-align: top;
    border-bottom: 1px solid #edf0f4;
    font-size: 15px;
    line-height: 1.7;
    word-break: break-word;
}

.ytjq-detail-table th {
    width: 82px;
    color: #8993a1;
    font-weight: 400;
    text-align: left;
}

.ytjq-detail-table td {
    color: #343d4b;
}

.ytjq-detail-table a {
    color: var(--ytjq-primary);
    text-decoration: none;
}

.ytjq-description {
    margin-top: 28px;
    padding: 25px 28px 28px;
    color: #414b59;
    font-size: 15px;
    line-height: 2;
    white-space: pre-line;
    background: #fff;
    border: 1px solid var(--ytjq-border);
    border-radius: 10px;
}

.ytjq-description .ytjq-section-title {
    margin-bottom: 12px;
}

@media (max-width: 980px) {
    .ytjq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ytjq-ptype-summary__media { width: 42%; flex-basis: 42%; }
    .ytjq-ptype-summary__content { margin-left: 24px; }
    .ytjq-gallery { width: 48%; flex-basis: 48%; }
    .ytjq-gallery__main { height: 48vw; max-height: 520px; }
}

@media (max-width: 720px) {
    .ytjq-main { padding: 22px 14px 40px; }
    .ytjq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 16px; }
    .ytjq-page-head h1 { font-size: 23px; }
    .ytjq-page-head { display: block; }
    .ytjq-search-form { width: 100%; margin: 18px 0 0; }
    .ytjq-card__body { padding: 12px; }
    .ytjq-card__title { min-height: 44px; font-size: 15px; line-height: 22px; }
    .ytjq-ptype-summary { display: block; }
    .ytjq-ptype-summary__media { width: 100%; height: 52vw; max-height: 350px; margin: 0; }
    .ytjq-ptype-summary__content { margin-left: 0; padding: 20px 0 0; }
    .ytjq-ptype-hero,
    .ytjq-ptype-hero__content { min-height: 270px; }
    .ytjq-ptype-hero__content { width: 85%; padding: 28px; }
    .ytjq-ptype-hero h1 { font-size: 27px; }
    .ytjq-detail-layout { display: block; }
    .ytjq-gallery { width: 100%; }
    .ytjq-gallery__main { height: calc(100vw - 28px); }
    .ytjq-detail-info { margin: 28px 0 0; }
    .ytjq-detail-info h1 { font-size: 24px; }
}
