.model-page {
    min-height: 100vh;
    padding: 10px 0 22px;
    background: var(--home-bg);
    color: var(--home-text);
}

.model-container {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
}

.model-section {
    border-radius: 12px;
    background: var(--home-surface);
    box-shadow: var(--home-shadow);
}

.model-work-card:hover,
.model-detail-action:hover,
.model-side-card:hover {
    color: var(--home-primary-dark);
    text-decoration: none;
}

.model-section {
    margin-top: 18px;
    padding: 18px 20px 22px;
}

.model-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.model-section-head h2 {
    margin: 0;
    color: #17263a;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 600;
}

.model-section-head p {
    margin: 1px 0 0;
    color: var(--home-subtle);
    font-size: 12px;
    line-height: 1.4;
    text-transform: uppercase;
}

.model-section-actions {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.model-section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: var(--home-primary);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    text-decoration: none;
    box-shadow: none;
    appearance: none;
    cursor: pointer;
    transition: color .18s ease;
    touch-action: manipulation;
    white-space: nowrap;
}

.model-section-more::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 6px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
}

.model-section-more:hover,
.model-section-more:focus-visible {
    color: var(--home-primary-dark);
    text-decoration: none;
}

.model-mobile-switch {
    display: none;
}

.model-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.model-work-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: var(--home-surface);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.model-work-card:hover {
    border-color: #c7d7e8;
    box-shadow: 0 10px 22px rgba(31, 47, 69, .07);
    transform: translateY(-2px);
}

.model-work-cover {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--home-media-bg);
}

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

.model-work-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 116px;
    padding: 12px 14px;
}

.model-work-body strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--home-text);
    font-size: 17px;
    line-height: 1.45;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-work-meta,
.model-work-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    margin-top: 7px;
}

.model-work-meta em,
.model-work-stats em {
    max-width: 100%;
    overflow: hidden;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.4;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-work-stats {
    margin-top: 8px;
}

.model-work-stats em {
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--home-soft);
}

.model-work-stats b {
    color: var(--home-primary-dark);
    font-weight: 700;
}

.model-work-actions {
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    width: 100%;
    margin-top: auto;
}

.model-work-actions button,
.model-detail-action,
.model-detail-actions button,
.model-comment-form button {
    border: 0;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.model-work-actions button,
.model-detail-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 auto;
    min-width: 40px;
    min-height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--home-soft);
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.model-work-actions button i,
.model-detail-actions button i {
    color: var(--home-primary-dark);
    font-size: 14px;
    line-height: 1;
}

.model-work-actions button:hover,
.model-detail-actions button:hover {
    background: var(--home-media-bg);
    color: var(--home-primary-dark);
    transform: translateY(-1px);
}

.model-work-actions button:active,
.model-detail-actions button:active {
    transform: translateY(0);
}

.model-work-actions button.is-active,
.model-detail-actions button.is-active {
    background: var(--home-primary);
    color: #fff;
    box-shadow: 0 6px 14px rgba(22, 105, 186, .22);
    transform: translateY(-1px);
}

.model-work-actions button.is-active i,
.model-work-actions button.is-active b,
.model-detail-actions button.is-active i,
.model-detail-actions button.is-active b {
    color: #fff;
}

.model-work-actions button.is-active i,
.model-detail-actions button.is-active i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: -3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    color: var(--home-primary);
}

.model-work-actions .model-top-button {
    min-width: 42px;
    padding: 0 8px;
    background: #f3f8fc;
    color: #1d6fa8;
    box-shadow: inset 0 0 0 1px rgba(29, 111, 168, .12);
}

.model-work-actions .model-top-button b {
    color: #1d6fa8;
    display: inline;
    font-size: 12px;
    font-weight: 600;
}

.model-work-actions .model-top-button.is-active {
    background: #fff7ed;
    color: #c45a11;
    box-shadow: inset 0 0 0 1px rgba(196, 90, 17, .16);
}

.model-work-actions .model-top-button.is-active b {
    color: #c45a11;
}

.model-work-desc {
    display: block;
    min-width: 0;
    margin-top: 8px;
    padding-top: 8px;
}

.model-work-desc span {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-card-arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--home-soft);
}

.model-card-arrow::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--home-primary-dark);
    border-right: 2px solid var(--home-primary-dark);
    transform: rotate(45deg);
}

.model-work-card:hover .model-card-arrow {
    background: var(--home-media-bg);
}

.model-filter-section {
    padding-top: 16px;
}

.model-filter-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.model-filter-tabs button,
.model-category-scroll button,
.model-sort-row button,
.model-search-row button {
    min-height: 32px;
    border: 0;
    border-radius: 999px;
    background: var(--home-soft);
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.model-filter-tabs button,
.model-category-scroll button,
.model-sort-row button {
    padding: 0 14px;
}

.model-filter-tabs button.is-active,
.model-category-scroll button.is-active,
.model-sort-row button.is-active,
.model-search-row button {
    background: var(--home-primary);
    color: #fff;
}

.model-filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    margin-bottom: 12px;
}

.model-category-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.model-search-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.model-search-row select,
.model-search-row input {
    min-height: 34px;
    box-sizing: border-box;
    border: 1px solid var(--home-border);
    border-radius: 7px;
    background: var(--home-surface);
    color: var(--home-text);
    font-size: 14px;
    outline: 0;
}

.model-search-row select {
    flex: 0 0 110px;
    width: 110px;
    padding: 0 10px;
}

.model-search-row input {
    flex: 0 1 220px;
    width: 220px;
    padding: 0 12px;
}

.model-search-row button {
    flex: 0 0 72px;
    min-width: 72px;
    padding: 0 14px;
    border-radius: 7px;
    white-space: nowrap;
}

.model-search-row button.is-plain {
    border: 1px solid var(--home-border);
    background: var(--home-surface);
    color: var(--home-muted);
}

.model-sort-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.model-main-grid {
    margin-top: 2px;
}

.model-empty {
    padding: 36px 16px;
    border-radius: 8px;
    background: var(--home-soft);
    color: var(--home-subtle);
    text-align: center;
}

.model-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.model-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    margin-top: 18px;
}

.model-t3d-detail-page .model-detail-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
}

.model-detail-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.model-preview-panel,
.model-info-panel,
.model-comment-panel,
.model-side-panel {
    overflow: hidden;
    border-radius: 12px;
    background: var(--home-surface);
    box-shadow: var(--home-shadow);
}

.model-preview-frame,
.model-preview-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border: 0;
    background: #fff;
}

.model-preview-frame.is-sb3-preview {
    aspect-ratio: 4 / 3;
    height: auto;
}

.model-sb3-detail-page .model-preview-frame.is-sb3-preview {
    aspect-ratio: auto;
    height: clamp(420px, 48vh, 560px);
    max-height: none;
}

body.model-preview-fullscreen-open {
    overflow: hidden;
}

.model-sb3-detail-page .model-preview-panel.is-sb3-stage-fullscreen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
    background: #fff;
    overflow: hidden;
}

.model-sb3-detail-page .model-preview-panel.is-sb3-stage-fullscreen .model-preview-frame {
    width: 100%;
    height: 100vh;
    max-height: none;
    min-height: 0;
}

.model-t3d-detail-page .model-preview-frame {
    aspect-ratio: auto;
    height: clamp(500px, 58vh, 620px);
    border: 1px solid #d8e5f2;
    border-radius: 8px;
}

.model-t3d-cover-preview {
    position: relative;
    height: clamp(500px, 58vh, 620px);
    overflow: hidden;
    border: 1px solid #d8e5f2;
    border-radius: 8px;
    background: #f1fff3;
}

.model-t3d-cover-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.model-t3d-preview-button {
    position: absolute;
    left: 50%;
    bottom: 30px;
    min-width: 90px;
    height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 7px;
    background: var(--home-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    transform: translateX(-50%);
    cursor: pointer;
}

.model-preview-frame.is-video-preview {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    background: #000;
}

.model-video-detail-page .model-preview-panel {
    background: #000;
}

.model-video-detail-page .model-preview-frame.is-video-preview {
    width: 100%;
    height: auto;
    /* 视频 iframe 内含底部弹幕控制条，比例控制在接近 16:10，避免播放器下方出现大黑块。 */
    aspect-ratio: 16 / 10;
    min-height: 0;
}

.model-preview-video {
    object-fit: contain;
}

.model-preview-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    color: var(--home-subtle);
    background: #fff;
}

.model-info-panel,
.model-comment-panel,
.model-side-panel {
    padding: 18px 20px;
}

.model-detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.model-detail-title-row h2 {
    margin: 2px 0 0;
    color: var(--home-text);
    font-size: 26px;
    line-height: 1.35;
    font-weight: 700;
}

.model-detail-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 7px;
    background: var(--home-primary);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.model-detail-action:hover {
    background: var(--home-primary-dark);
    color: #fff;
}

.model-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.model-detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    background: var(--home-soft);
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.4;
}

.model-detail-meta b {
    color: var(--home-text);
    font-weight: 600;
}

.model-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.model-report-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 13px;
    padding: 8px 0px;
    border-radius: 8px;
    /* background: #fffaf3; */
    color: #8a4b18;
    font-size: 14px;
    line-height: 1.35;
}

.model-report-card span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-weight: 700;
}

.model-report-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    color: #c56b25;
    font-size: 16px;
    box-shadow: inset 0 0 0 1px rgba(197, 107, 37, .18);
}

.model-report-card button {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #a54e12;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    white-space: nowrap;
}

.model-report-card button:hover {
    color: var(--home-primary);
}

.model-report-card em {
    color: #a54e12;
    font-style: normal;
    font-weight: 600;
    text-align: right;
}

.model-report-dialog {
    border-radius: 12px;
    box-shadow: 0 22px 56px rgba(15, 23, 42, .2);
    overflow: hidden;
}

.model-report-dialog .el-dialog__header {
    padding: 15px 18px;
    background: #f8fbff;
}

.model-report-dialog .el-dialog__title {
    color: var(--home-text);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.model-report-dialog .el-dialog__headerbtn {
    top: 15px;
    right: 16px;
}

.model-report-dialog .el-dialog__close {
    color: var(--home-muted);
    font-size: 20px;
}

.model-report-dialog .el-dialog__body {
    padding: 16px 18px 6px;
}

.model-report-dialog .el-dialog__footer {
    padding: 16px 18px 18px;
}

.model-report-name,
.model-report-reasons,
.model-report-url {
    margin-top: 15px;
}

.model-report-name:first-child {
    margin-top: 0;
}

.model-report-name {
    display: grid;
    gap: 6px;
}

.model-report-name span,
.model-report-url label {
    color: var(--home-subtle);
    font-size: 13px;
}

.model-report-name strong {
    color: var(--home-text);
    font-size: 16px;
    line-height: 1.45;
    word-break: break-word;
}

.model-report-reasons {
    margin-top: 16px;
}

.model-report-reasons .el-radio-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.model-report-reasons .el-radio-button__inner {
    width: 100%;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--home-soft);
    color: var(--home-muted);
    font-size: 14px;
    font-weight: 700;
    box-shadow: none !important;
}

.model-report-reasons .el-radio-button__orig-radio:checked+.el-radio-button__inner {
    background: #eaf4ff;
    color: var(--home-primary);
    box-shadow: inset 0 0 0 1px rgba(25, 118, 210, .18);
}

.model-report-url {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.model-report-url .el-input__inner {
    height: 40px;
    border-radius: 8px;
    background: #fff;
    color: var(--home-text);
    font-size: 14px;
}

.model-report-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.model-report-footer .el-button {
    min-width: 88px;
    border-radius: 8px;
    font-weight: 700;
}

.model-detail-desc {
    margin-top: 18px;
}

.model-detail-desc h3,
.model-sub-head h3 {
    margin: 0;
    color: var(--home-text);
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

.model-detail-desc p {
    margin: 8px 0 0;
    color: var(--home-muted);
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.model-sub-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.model-sub-head span {
    color: var(--home-subtle);
    font-size: 13px;
}

.model-comment-list {
    display: grid;
    gap: 10px;
}

.model-comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 14px;
}

.model-comment-input {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.model-comment-form textarea {
    min-height: 74px;
    resize: vertical;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: var(--home-surface);
    color: var(--home-text);
    font-size: 14px;
    line-height: 1.6;
    outline: 0;
}

.model-comment-limit {
    display: flex;
    justify-content: flex-end;
    color: var(--home-subtle);
    font-size: 12px;
    line-height: 1.2;
}

.model-comment-limit.is-warning {
    color: #d97706;
}

.model-comment-form button {
    /* align-self: end; */
    min-width: 65px;
    min-height: 36px;
    border-radius: 7px;
    background: var(--home-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.model-comment-form button:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.model-comment-form button:hover:not(:disabled) {
    background: var(--home-primary-dark);
}

.model-comment-replying {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: -4px 0 12px;
    padding: 8px 10px;
    border-radius: 7px;
    background: #eef6ff;
    color: var(--home-muted);
    font-size: 13px;
}

.model-comment-replying button {
    border: 0;
    background: transparent;
    color: var(--home-primary-dark);
    font-weight: 700;
    cursor: pointer;
}

.model-comment-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--home-soft);
}

.model-comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.model-comment-content {
    min-width: 0;
}

.model-comment-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.model-comment-item strong {
    color: var(--home-text);
    font-size: 15px;
}

.model-comment-item em {
    display: block;
    margin-top: 2px;
    color: var(--home-subtle);
    font-size: 12px;
    font-style: normal;
    line-height: 1.4;
}

.model-comment-item time {
    flex: 0 0 auto;
    color: var(--home-subtle);
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
}

.model-comment-item p {
    margin: 7px 0 0;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.model-comment-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 9px;
}

.model-comment-children {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding-left: 12px;
    border-left: 2px solid #d8e7f7;
}

.model-comment-child {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
}

.model-comment-child .model-comment-avatar {
    width: 36px;
    height: 36px;
}

.model-comment-zan,
.model-comment-reply {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.model-comment-zan i {
    color: var(--home-primary-dark);
    font-size: 15px;
}

.model-comment-zan b {
    font-weight: 700;
}

.model-comment-zan:hover,
.model-comment-zan.is-active,
.model-comment-reply:hover {
    color: var(--home-primary-dark);
}

.model-detail-side {
    min-width: 0;
}

.model-side-panel {
    position: sticky;
    top: 16px;
}

.model-side-work {
    padding-bottom: 10px;
    margin-bottom: 0;
}

.model-side-work h2 {
    margin: 0;
    color: var(--home-text);
    font-size: 24px;
    line-height: 1.42;
    font-weight: 700;
    word-break: break-word;
}

.model-side-work .model-detail-action {
    width: 100%;
    margin-top: 14px;
}

.model-side-download {
    padding-top: 12px;
}

.model-side-download .model-detail-action {
    width: 100%;
}

.model-side-panel>.model-detail-actions {
    flex-wrap: nowrap;
    gap: 7px;
    padding-bottom: 14px;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    justify-content: flex-start;
}

.model-side-info {
    display: grid;
    gap: 10px;
    padding: 12px 0 0;
    margin-bottom: 0;
    border-top: 1px solid var(--home-border);
}

.model-side-info span {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.6;
}

.model-side-info em {
    flex: 0 0 auto;
    color: var(--home-subtle);
    font-style: normal;
}

.model-side-info b {
    min-width: 0;
    overflow: hidden;
    color: var(--home-text);
    font-weight: 700;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-author-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: #f8fbff;
}

.model-author-card img {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--home-media-bg);
}

.model-author-card div {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 2px;
}

.model-author-card span,
.model-author-card em {
    display: block;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.5;
    font-style: normal;
}

.model-author-card strong {
    display: block;
    overflow: hidden;
    color: var(--home-text);
    font-size: 18px;
    line-height: 1.45;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-side-info-card {
    padding: 14px;
    border-radius: 10px;
    background: #f8fbff;
}

.model-side-desc {
    padding-top: 0;
}

.model-side-desc p {
    margin: 8px 0 0;
    color: var(--home-muted);
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.model-side-qrcode {
    padding-top: 14px;
}

.model-qrcode-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 10px;
    border-radius: 8px;
    background: #f7fbff;
}

.model-qrcode-canvas {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    padding: 6px;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--home-border);
}

.model-qrcode-canvas canvas,
.model-qrcode-canvas img,
.model-qrcode-canvas svg {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.model-qrcode-box p {
    margin: 0;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.7;
}

.model-side-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    color: inherit;
    text-decoration: none;
}

.model-side-card+.model-side-card {
    border-top: 1px solid var(--home-border);
}

.model-side-card img {
    width: 92px;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    object-fit: cover;
    background: var(--home-media-bg);
}

.model-side-card strong,
.model-side-card em {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-side-card strong {
    color: var(--home-text);
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
}

.model-side-card em {
    margin-top: 4px;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.4;
    font-style: normal;
}

.model-detail-empty {
    margin-top: 18px;
}

.model-section-more:focus-visible,
.model-work-card:focus-visible,
.model-filter-tabs button:focus-visible,
.model-category-scroll button:focus-visible,
.model-sort-row button:focus-visible,
.model-work-actions button:focus-visible,
.model-detail-actions button:focus-visible,
.model-report-card button:focus-visible,
.model-report-dialog button:focus-visible,
.model-report-url .el-input__inner:focus,
.model-comment-form button:focus-visible,
.model-comment-form textarea:focus,
.model-search-row button:focus-visible,
.model-search-row input:focus,
.model-search-row select:focus {
    outline: 2px solid var(--home-primary);
    outline-offset: 2px;
}

@media (max-width: 1080px) {
    .model-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .model-detail-layout {
        grid-template-columns: 1fr;
    }

    .model-t3d-detail-page .model-detail-layout {
        grid-template-columns: 1fr;
    }

    .model-side-panel {
        position: static;
    }

    .model-filter-bar {
        grid-template-columns: 1fr;
    }

    .model-search-row {
        justify-content: flex-start;
    }

    .model-search-row input {
        flex-basis: min(260px, 100%);
    }
}

@media (max-width: 760px) {
    .model-list-page .model-container {
        width: min(100% - 24px, 1180px);
    }

    .model-list-page .model-page-head {
        min-height: 38px;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .model-mobile-switch {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin: 10px 0 12px;
    }

    .model-mobile-tabs {
        display: grid;
        flex: 1 1 auto;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        min-width: 0;
        padding: 3px;
        border-radius: 9px;
        background: #edf4fb;
    }

    .model-mobile-tabs button {
        min-width: 0;
        min-height: 34px;
        padding: 0 6px;
        border: 0;
        border-radius: 7px;
        background: transparent;
        color: #5d7189;
        font-size: 14px;
        line-height: 1.2;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
        transition: color .18s ease, background .18s ease, box-shadow .18s ease;
    }

    .model-mobile-tabs button.is-active {
        background: #fff;
        color: var(--home-primary-dark);
        box-shadow: 0 4px 12px rgba(31, 47, 69, .08);
    }

    .model-mobile-more {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        min-height: 34px;
        color: var(--home-primary);
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
    }

    .model-mobile-more::after {
        content: "";
        width: 7px;
        height: 7px;
        margin-left: 5px;
        border-top: 1px solid currentColor;
        border-right: 1px solid currentColor;
        transform: rotate(45deg);
    }

    .model-section {
        margin-top: 12px;
        padding: 12px;
    }

    .model-list-page .model-home-section {
        display: none;
        margin-top: 0;
    }

    .model-list-page .model-home-section.is-active {
        display: block;
    }

    .model-list-page .model-home-section .model-section-head {
        display: none;
    }

    .model-section-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .model-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .model-list-page .model-work-cover {
        aspect-ratio: 16 / 10;
    }

    .model-list-page .model-work-body {
        min-height: 132px;
        padding: 9px 10px;
    }

    .model-list-page .model-work-body strong {
        display: -webkit-box;
        min-height: 40px;
        font-size: 15px;
        line-height: 1.35;
        white-space: normal;
        text-overflow: clip;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .model-list-page .model-work-meta,
    .model-list-page .model-work-stats {
        margin-top: 6px;
    }

    .model-list-page .model-work-meta {
        gap: 4px;
        min-height: 36px;
        align-content: flex-start;
    }

    .model-list-page .model-work-meta em {
        display: block;
        flex: 0 0 100%;
        font-size: 12px;
    }

    .model-list-page .model-work-actions {
        min-height: 24px;
        gap: 4px;
    }

    .model-list-page .model-work-actions button {
        min-width: 32px;
        min-height: 22px;
        padding: 0 5px;
        font-size: 12px;
    }

    .model-list-page .model-work-actions button i {
        font-size: 13px;
    }

    .model-list-page .model-card-arrow {
        width: 24px;
        height: 24px;
    }

    .model-list-page .model-card-arrow::before {
        left: 8px;
        top: 8px;
        width: 7px;
        height: 7px;
    }

    .model-search-row {
        flex-wrap: wrap;
        width: 100%;
    }

    .model-search-row select {
        flex: 1 1 120px;
        width: auto;
    }

    .model-search-row input {
        flex: 1 1 calc(100% - 128px);
        width: auto;
    }

    .model-search-row button {
        flex: 1 1 calc(50% - 4px);
    }

    .model-type-page .model-pagination {
        justify-content: center;
        width: 100%;
        margin-top: 14px;
        overflow: hidden;
    }

    .model-type-page .model-pagination .el-pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px 4px;
        max-width: 100%;
        padding: 0;
        white-space: normal;
    }

    .model-type-page .model-pagination .el-pager {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 4px;
        max-width: calc(100vw - 96px);
        margin: 0;
        padding: 0;
    }

    .model-type-page .model-pagination .btn-prev,
    .model-type-page .model-pagination .btn-next,
    .model-type-page .model-pagination .el-pager li {
        flex: 0 0 auto;
        min-width: 30px;
        margin: 0;
    }

    .model-type-page .model-pagination .el-pagination__total,
    .model-type-page .model-pagination .el-pagination__sizes {
        display: none;
    }

    .model-preview-frame,
    .model-preview-video {
        aspect-ratio: 16 / 11;
    }

    .model-sb3-detail-page .model-preview-frame.is-sb3-preview {
        aspect-ratio: auto;
        height: clamp(280px, 68vw, 420px);
        min-height: 0;
        max-height: none;
    }

    .model-sb3-detail-page .model-preview-panel.is-sb3-stage-fullscreen .model-preview-frame {
        height: 100vh;
        min-height: 0;
    }

    .model-video-detail-page .model-preview-frame.is-video-preview {
        aspect-ratio: 16 / 10;
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .model-t3d-detail-page .model-preview-frame {
        width: 100%;
        height: clamp(360px, 72vw, 480px);
        min-height: 360px;
        max-height: none;
    }

    .model-t3d-cover-preview {
        height: clamp(360px, 72vw, 480px);
        min-height: 360px;
    }

    .model-t3d-preview-button {
        bottom: 18px;
        height: 36px;
        font-size: 14px;
    }

    .model-t3d-detail-page .model-detail-main,
    .model-t3d-detail-page .model-detail-side {
        min-width: 0;
        width: 100%;
    }

    .model-info-panel,
    .model-comment-panel,
    .model-side-panel {
        padding: 16px 14px;
    }

    .model-detail-title-row {
        flex-direction: column;
        gap: 12px;
    }

    .model-detail-title-row h2 {
        font-size: 22px;
    }

    .model-detail-action {
        width: 100%;
    }

    .model-report-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .model-report-card em {
        text-align: left;
    }

    .model-report-dialog {
        max-width: calc(100vw - 28px);
    }

    .model-report-dialog .el-dialog__header,
    .model-report-dialog .el-dialog__footer {
        padding: 14px;
    }

    .model-report-dialog .el-dialog__body {
        padding: 14px;
    }

    .model-report-name,
    .model-report-reasons,
    .model-report-url {
        margin-top: 14px;
    }

    .model-report-name:first-child {
        margin-top: 0;
    }

    .model-report-reasons .el-radio-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .model-report-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .model-report-footer .el-button {
        width: 100%;
        margin-left: 0 !important;
    }

    .model-comment-form {
        grid-template-columns: 1fr;
    }

    .model-comment-form button {
        width: 100%;
    }

    .model-category-scroll {
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
        overflow-x: visible;
    }

    .model-category-scroll button {
        flex: 0 1 auto;
    }
}
