﻿:root {
    --bg: #f6f3ed;
    --surface: #ffffff;
    --surface-alt: #f1ebe2;
    --text: #2b241d;
    --muted: #6f6256;
    --line: #ded2c4;
    --primary: #b45a2b;
    --primary-deep: #8d431d;
    --danger: #a23232;
    --shadow: 0 18px 40px rgba(66, 40, 16, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(180, 90, 43, 0.12), transparent 26%),
        linear-gradient(180deg, #fcfaf6 0%, var(--bg) 100%);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header,
.sub-header {
    padding: 56px 0 32px;
}

.site-header .container,
.sub-header .container {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    line-height: 1.15;
}

h1 {
    font-size: clamp(28px, 3.4vw, 46px);
}

h2 {
    font-size: clamp(22px, 2vw, 30px);
}

.lead {
    margin: 16px 0 0;
    max-width: 640px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.lead-with-action {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    max-width: 900px;
}

.lead-with-action span {
    flex: 1 1 560px;
}

.mini-program-button {
    flex: 0 0 auto;
}

.header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.page-content {
    padding-bottom: 48px;
}

.hidden {
    display: none !important;
}

.brand-section,
.panel,
.detail-card,
.empty-state,
.error-page {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(222, 210, 196, 0.7);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.brand-section {
    padding: 28px;
    margin-bottom: 20px;
}

.section-title {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
}

.brand-browser {
    display: grid;
    gap: 18px;
}

.filter-panel {
    display: grid;
    gap: 14px;
}

.filter-group {
    display: grid;
    gap: 10px;
}

.filter-label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.brand-strip,
.browser-panel,
.brand-manage-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(222, 210, 196, 0.7);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.brand-strip {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 18px;
}

.tonnage-strip {
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand-chip {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    transition: all 0.2s ease;
}

.brand-chip:hover,
.brand-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.browser-panel {
    padding: 24px;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 20px;
}

.panel-tip,
.admin-subtitle,
.brand-manage-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.section-head h2 {
    font-size: 22px;
    margin-bottom: 4px;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.model-card {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-width: 0;
    width: 100%;
    min-height: 152px;
    padding: 16px 18px;
    gap: 14px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f7f1e8 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.model-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 24px rgba(66, 40, 16, 0.08);
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(180, 90, 43, 0.12);
    color: var(--primary-deep);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.tonnage-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(43, 36, 29, 0.08);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}

.model-cover-wrap {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    min-width: 96px;
    min-height: 96px;
    max-width: 96px;
    max-height: 96px;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid #2b241d;
    background:
        linear-gradient(135deg, rgba(180, 90, 43, 0.08), transparent 45%),
        #fffaf3;
}

.model-cover {
    display: block !important;
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    min-height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
    object-fit: cover !important;
    object-position: center !important;
    background: #fff;
    overflow: hidden !important;
}

.model-cover.placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.model-card-body {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    align-content: center;
    gap: 6px;
    padding: 0;
}

.model-tags,
.model-card-top {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.model-card-top {
    margin-bottom: 2px;
}

.model-card h3 {
    margin: 0;
    font-size: clamp(17px, 2vw, 23px);
    letter-spacing: 0.02em;
    line-height: 1.18;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.model-card p {
    margin: 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}

.model-info-list {
    display: grid;
    gap: 1px;
}

.model-info-list span {
    color: var(--muted);
}

.model-info-list strong {
    color: var(--text);
    font-weight: 600;
}

.empty-mini {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface-alt);
    color: var(--muted);
    font-size: 14px;
}

.article-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.article-list a {
    display: block;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface-alt);
    transition: transform 0.2s ease, background 0.2s ease;
}

.article-list a:hover {
    transform: translateY(-2px);
    background: #efe3d4;
}

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.button:hover,
button.button:hover {
    background: var(--primary-deep);
}

.button.ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.button.ghost:hover {
    background: rgba(255, 255, 255, 0.85);
}

.button.small,
button.button.small {
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
}

.button.danger,
button.button.danger {
    background: var(--danger);
}

.button.danger:hover,
button.button.danger:hover {
    background: #842525;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--primary);
}

.detail-brand {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.1;
}

.detail-card {
    padding: 28px;
    min-width: 0;
    overflow: hidden;
}

.meta-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--muted);
    margin-bottom: 20px;
}

.article-content {
    line-height: 1.9;
    font-size: 16px;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-content p {
    margin: 0 0 14px;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-content strong {
    color: var(--primary-deep);
}

.article-content * {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-content ul,
.article-content ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

.article-content li,
.article-content span,
.article-content div,
.article-content td,
.article-content th,
.article-content blockquote {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 680px;
    margin: 18px 0;
    border-radius: 16px;
    box-shadow: var(--shadow);
    object-fit: contain;
    background: #fff;
}

.article-image-link {
    display: inline-block;
    max-width: 100%;
}

.article-image-link img {
    cursor: zoom-in;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-word;
}

.article-content a:hover {
    color: var(--primary-deep);
}

.image-accordion {
    margin: 18px 0 22px;
    border: 1px solid rgba(180, 90, 43, 0.18);
    border-radius: 18px;
    background: linear-gradient(180deg, #fffdf9 0%, #f8f1e7 100%);
    overflow: hidden;
}

.image-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border: none;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.image-accordion-toggle:hover {
    background: rgba(180, 90, 43, 0.06);
}

.image-accordion-title {
    flex: 1 1 auto;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-deep);
}

.image-accordion-hint {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 13px;
}

.image-accordion-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(180, 90, 43, 0.12);
    color: var(--primary-deep);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.image-accordion-body {
    padding: 0 18px 18px;
    border-top: 1px solid rgba(180, 90, 43, 0.12);
}

.image-accordion-body > :first-child {
    margin-top: 16px;
}

.image-accordion-body > :last-child {
    margin-bottom: 0;
}

.article-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.article-content pre {
    white-space: pre-wrap;
    word-break: break-word;
}

.article-content iframe,
.article-content video {
    display: block;
    width: 100%;
    max-width: 100%;
}

.article-params {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.article-param-item {
    display: grid;
    grid-template-columns: minmax(120px, 220px) 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(180, 90, 43, 0.18);
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdf9 0%, #f8f1e7 100%);
}

.article-param-name {
    color: var(--primary-deep);
    font-weight: 700;
}

.article-param-value {
    color: var(--text);
}

.article-rich-text {
    display: block;
}

.admin-shell {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    padding: 28px 20px;
    background: #211a15;
    color: #f8f1e8;
}

.brand-link {
    display: inline-block;
    margin-bottom: 28px;
    font-size: 20px;
    font-weight: 700;
}

.sidebar nav {
    display: grid;
    gap: 10px;
}

.sidebar nav a {
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(248, 241, 232, 0.85);
}

.sidebar nav a.active,
.sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.admin-main {
    padding: 32px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.admin-brand-groups {
    display: grid;
    gap: 18px;
}

.brand-manage-card {
    padding: 22px;
}

.brand-manage-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.article-admin-list {
    display: grid;
    gap: 12px;
}

.article-admin-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px auto;
    gap: 16px;
    align-items: start;
    min-height: 144px;
    max-height: 144px;
    padding: 16px 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #faf6ef 100%);
}

.article-admin-thumb-wrap {
    justify-self: end;
    align-self: start;
    width: 104px;
    height: 104px;
    flex: 0 0 104px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(222, 210, 196, 0.9);
    background: var(--surface-alt);
}

.article-admin-thumb {
    display: block !important;
    width: 104px !important;
    height: 104px !important;
    min-width: 104px !important;
    min-height: 104px !important;
    max-width: 104px !important;
    max-height: 104px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 14px;
    background: #fff;
    overflow: hidden !important;
}

.article-admin-thumb.placeholder {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 13px;
}

.article-admin-main {
    min-width: 0;
    flex: 1 1 auto;
    padding-top: 2px;
}

.article-admin-title {
    display: inline-block;
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-admin-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

.article-admin-actions {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-self: end;
    flex-wrap: wrap;
}

.article-admin-actions form {
    margin: 0;
}

.admin-filter-panel {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(222, 210, 196, 0.7);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(66, 40, 16, 0.05);
}

.admin-filter-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
}

.admin-filter-form input,
.admin-filter-form select {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 12px;
    margin-bottom: 0;
    border-radius: 999px;
    font-size: 14px;
}

.admin-filter-form select {
    width: 128px;
}

.admin-filter-form input {
    width: 220px;
}

.admin-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 0 0 auto;
    padding-bottom: 0;
}

.panel {
    padding: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.actions form {
    margin: 0;
}

.text-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary);
    cursor: pointer;
    font-size: 14px;
}

.text-link.danger {
    color: var(--danger);
}

.form-panel {
    max-width: 760px;
}

.wide-panel {
    max-width: 980px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    color: inherit;
}

textarea {
    resize: vertical;
    min-height: 180px;
}

.helper-text {
    margin: 10px 0 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.quill-editor-shell {
    border: 1px solid #cfd7e3;
    border-radius: 8px;
    overflow: visible;
    background: #fff;
    box-shadow: none;
}

.classic-editor-shell {
    border-color: #cdd6e1;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 8px 10px;
    border-bottom: 1px solid #dbe3ec;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f7fb 100%);
    position: sticky;
    top: 12px;
    z-index: 25;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.editor-toolbar .ql-formats {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    padding-right: 8px;
    border-right: 1px solid #dde5ee;
}

.editor-toolbar .ql-formats:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.quill-editor-shell .ql-toolbar.ql-snow {
    border: none;
    padding: 0;
    background: transparent;
}

.quill-editor-shell .ql-toolbar.ql-snow button,
.quill-editor-shell .ql-toolbar.ql-snow .ql-picker-label {
    width: 30px;
    height: 30px;
    margin: 0 2px;
    border-radius: 4px;
}

.quill-editor-shell .ql-toolbar.ql-snow button:hover,
.quill-editor-shell .ql-toolbar.ql-snow button.ql-active,
.quill-editor-shell .ql-toolbar.ql-snow .ql-picker-label:hover,
.quill-editor-shell .ql-toolbar.ql-snow .ql-picker-label.ql-active {
    background: #e8f0fb;
}

.quill-editor-shell .ql-container.ql-snow {
    border: none;
    min-height: 360px;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    border-radius: 0 0 8px 8px;
}

.quill-editor-shell .ql-editor {
    min-height: 320px;
    padding: 18px 20px 20px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text);
}

.quill-editor-shell .ql-editor.ql-blank::before {
    left: 20px;
    right: 20px;
    color: #97a4b5;
    font-style: normal;
}

.quill-editor-shell .ql-editor img {
    max-width: 100%;
    height: auto;
}

.quill-editor-shell .ql-snow .ql-tooltip {
    z-index: 30;
}

.form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.article-basic-grid {
    grid-template-columns: 1.6fr 1fr 0.8fr;
}

.form-block {
    margin-bottom: 24px;
}

.auto-title-preview {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8f2e9;
    color: var(--muted);
}

.auto-title-preview strong {
    color: var(--primary-deep);
    font-size: 18px;
}

.cover-upload-panel {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    background: #fcfaf6;
}

.cover-preview-frame {
    position: relative;
    width: 220px;
    height: 150px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(222, 210, 196, 0.95);
    background:
        linear-gradient(135deg, rgba(180, 90, 43, 0.08), transparent 45%),
        #fff;
}

.cover-preview-image {
    display: block;
    width: 220px;
    height: 150px;
    object-fit: cover;
    object-position: center;
}

.cover-preview-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--muted);
    font-size: 14px;
}

.cover-upload-side input[type="file"] {
    margin-bottom: 12px;
}

.cover-upload-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.param-rows {
    display: grid;
    gap: 12px;
}

.param-row {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr auto;
    gap: 12px;
    align-items: center;
    padding: 0;
}

.upload-box {
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    background: #fcfaf6;
}

.upload-box-info {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.upload-box-info span {
    color: var(--muted);
    font-size: 14px;
}

.upload-box-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.upload-box-actions input[type="file"] {
    margin-bottom: 0;
    flex: 1;
    min-width: 220px;
}

.upload-status {
    margin-top: 12px;
}

.hidden-textarea {
    display: none;
}

.image-list {
    display: grid;
    gap: 14px;
}

.image-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.image-item img {
    width: 120px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--surface-alt);
}

.image-item-actions {
    display: grid;
    gap: 10px;
}

.image-path {
    color: var(--muted);
    font-size: 13px;
    word-break: break-all;
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
}

.alert.success {
    background: #eef8f0;
    color: #27663a;
    border: 1px solid #cfe8d4;
}

.alert.error {
    background: #fdf0f0;
    color: #8b2d2d;
    border: 1px solid #f1cccc;
}

.empty-state,
.error-page {
    padding: 48px 28px;
    text-align: center;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(460px, 100%);
    padding: 32px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(222, 210, 196, 0.7);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.lead.compact {
    margin-bottom: 24px;
    font-size: 15px;
}

.full-width {
    width: 100%;
}

@media (max-width: 900px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding: 18px 14px;
    }

    .brand-link {
        margin-bottom: 16px;
    }

    .sidebar nav {
        grid-auto-flow: column;
        grid-auto-columns: minmax(140px, 1fr);
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .sidebar nav a {
        text-align: center;
    }
}

@media (max-width: 720px) {
    .site-header .container,
    .sub-header .container,
    .admin-header,
    .panel-heading,
    .brand-manage-head,
    .article-admin-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-main {
        padding: 20px 14px 32px;
    }

    .container {
        width: min(100% - 20px, 1080px);
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }

    .brand-section,
    .panel,
    .detail-card,
    .browser-panel,
    .brand-manage-card {
        padding: 20px;
    }

    .article-content {
        font-size: 15px;
    }

    .article-content img {
        margin: 14px 0;
        border-radius: 12px;
    }

    .image-accordion-toggle {
        padding: 14px 14px;
        gap: 10px;
    }

    .image-accordion-title {
        font-size: 18px;
    }

    .image-accordion-hint {
        font-size: 12px;
    }

    .image-accordion-body {
        padding: 0 14px 14px;
    }

    .article-param-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .admin-filter-form,
    .cover-upload-panel {
        grid-template-columns: 1fr;
    }

    .admin-filter-actions {
        align-items: stretch;
    }

    .admin-filter-form {
        display: grid;
        flex-wrap: wrap;
    }

    .admin-filter-form select,
    .admin-filter-form input {
        width: 100%;
    }

    .cover-preview-frame,
    .cover-preview-image {
        width: 100%;
        max-width: 260px;
        height: 170px;
    }

    .param-row,
    .image-item {
        grid-template-columns: 1fr;
    }

    .brand-strip {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 12px;
    }

    .brand-chip {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .model-grid {
        grid-template-columns: 1fr;
    }

    .model-card {
        gap: 10px;
        min-height: 124px;
        padding: 12px;
    }

    .model-cover-wrap {
        flex-basis: 78px;
        width: 78px;
        height: 78px;
        min-width: 78px;
        min-height: 78px;
        max-width: 78px;
        max-height: 78px;
    }

    .model-cover {
        width: 78px !important;
        height: 78px !important;
        min-width: 78px !important;
        min-height: 78px !important;
        max-width: 78px !important;
        max-height: 78px !important;
    }

    .model-card h3 {
        font-size: 17px;
        letter-spacing: 0.01em;
    }

    .model-card p {
        font-size: 13px;
        line-height: 1.45;
    }

    .tonnage-badge {
        min-height: 24px;
        padding: 0 8px;
        font-size: 12px;
    }

    .article-admin-thumb-wrap {
        width: 88px;
        height: 88px;
        flex-basis: auto;
    }

    .article-admin-item {
        grid-template-columns: minmax(0, 1fr) 88px auto;
        min-height: 128px;
        max-height: 128px;
    }

    .article-admin-thumb {
        width: 88px !important;
        height: 88px !important;
        min-width: 88px !important;
        min-height: 88px !important;
        max-width: 88px !important;
        max-height: 88px !important;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions .button,
    .header-actions button.button {
        flex: 1 1 auto;
    }

    .upload-box-actions {
        align-items: stretch;
    }

    .upload-box-actions input[type="file"] {
        min-width: 100%;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-group .brand-strip {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    #editor-container {
        min-height: 300px;
    }
}






