:root {
    --color-black: #111111;
    --color-dark: #1a1a1a;
    --color-red: #d62828;
    --color-red-dark: #b91c1c;
    --color-red-light: #ef4444;
    --color-gray-bg: #f0f0f0;
    --color-border: #ddd;
    --color-text: #222;
    --color-muted: #666;
}

body {
    padding-top: 0;
    padding-bottom: 0;
    background: var(--color-gray-bg);
    color: var(--color-text);
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 100;
}

.site-header-inner {
    display: flex;
    align-items: center;
    min-height: 64px;
    gap: 28px;
}

.site-logo {
    flex: 0 0 auto;
    display: block;
    line-height: 0;
}

.site-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.site-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.site-menu a {
    display: inline-block;
    padding: 8px 16px;
    color: var(--color-text);
    font-size: 15px;
    text-decoration: none;
    border-radius: 2px;
    white-space: nowrap;
}

.site-menu a:hover {
    color: var(--color-red);
    text-decoration: none;
}

.site-menu > a.active,
.site-menu-drop.active > a {
    color: #fff;
    background: var(--color-red);
}

.site-menu > a.active:hover,
.site-menu-drop.active > a:hover {
    color: #fff;
}

.site-menu-drop {
    position: relative;
}

.site-menu-drop > a::after {
    content: "";
    display: inline-block;
    margin-left: 6px;
    border: 4px solid transparent;
    border-top-color: currentColor;
    transform: translateY(2px);
}

.site-menu-drop-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 140px;
    padding: 6px 0;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    z-index: 30;
}

.site-menu-drop:hover .site-menu-drop-list,
.site-menu-drop:focus-within .site-menu-drop-list {
    display: block;
}

.site-menu-drop-list a {
    display: block;
    padding: 8px 16px;
    color: var(--color-text);
    background: none;
    border-radius: 0;
}

.site-menu-drop-list a:hover {
    color: var(--color-red);
    background: #fafafa;
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    margin-left: auto;
}

.site-header-tip {
    color: var(--color-muted);
    font-size: 13px;
    white-space: nowrap;
}

.site-header-link {
    color: var(--color-text);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.site-header-link:hover {
    color: var(--color-red);
    text-decoration: none;
}

.site-header-btn {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--color-red);
    border-radius: 2px;
    color: var(--color-red);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.site-header-btn:hover {
    background: var(--color-red);
    color: #fff;
    text-decoration: none;
}

.site-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
}

.site-menu-toggle span {
    display: block;
    height: 2px;
    background: #555;
    border-radius: 1px;
}

.site-menu-mobile {
    display: none;
    border-top: 1px solid var(--color-border);
    background: #fff;
}

.site-menu-mobile.open {
    display: block;
}

.site-menu-mobile a {
    display: block;
    padding: 12px 15px;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

.site-menu-mobile a:hover {
    color: var(--color-red);
    background: #fafafa;
}

.site-menu-mobile-sub {
    padding-left: 28px !important;
    font-size: 14px !important;
    color: var(--color-muted) !important;
}

.body-content {
    padding-top: 0;
    padding-bottom: 0;
}

.hero-carousel {
    position: relative;
    margin-bottom: 0;
    overflow: hidden;
    background: #e8e8e8;
}

.hero-slides {
    position: relative;
    height: 420px;
}

.hero-slide {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #e8e8e8;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

a.hero-slide {
    text-decoration: none;
    cursor: pointer;
}

.hero-slide.active {
    display: block;
}

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    z-index: 4;
    text-align: center;
}

.hero-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.hero-dot.active {
    background: var(--color-red);
    border-color: var(--color-red);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    transform: translateY(-50%);
    width: 44px;
    height: 56px;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 32px;
    line-height: 56px;
    text-align: center;
    cursor: pointer;
    opacity: 0.8;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(214, 40, 40, 0.75);
    opacity: 1;
}

.hero-arrow-prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.hero-arrow-next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.main-container {
    padding-top: 24px;
    padding-bottom: 24px;
}

/* ===== Auth / Account ===== */
.auth-card {
    max-width: 420px;
    margin: 24px auto 40px;
    padding: 28px 28px 24px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.auth-card-wide {
    max-width: 520px;
}

.user-type-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.user-type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fafafa;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.user-type-option input {
    width: auto;
    height: auto;
    margin: 0;
}

.user-type-option.active,
.user-type-option:hover {
    border-color: var(--color-red);
    background: #fff5f5;
    color: var(--color-red);
}

.auth-card h1 {
    margin: 0 0 22px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: var(--color-black);
}

.auth-form .form-group,
.account-form .form-group {
    margin-bottom: 16px;
}

.auth-form label,
.account-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.auth-form input,
.account-form input,
.account-form select,
.account-form textarea {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 14px;
    color: var(--color-text);
    background: #fff;
}

.account-form textarea {
    height: auto;
    padding: 10px 12px;
    resize: vertical;
}

.auth-form input:focus,
.account-form input:focus,
.account-form select:focus,
.account-form textarea:focus {
    outline: none;
    border-color: var(--color-red);
}

.btn-auth {
    display: block;
    width: 100%;
    height: 42px;
    margin-top: 8px;
    border: none;
    border-radius: 2px;
    background: var(--color-red);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.btn-auth:hover,
.btn-auth:focus {
    background: var(--color-red-dark);
    color: #fff;
}

.btn-auth[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.auth-foot {
    margin: 18px 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--color-muted);
}

.auth-foot a {
    color: var(--color-red);
}

.form-message {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 2px;
    font-size: 13px;
}

.form-message.error {
    background: #fdecea;
    color: #b91c1c;
    border: 1px solid #f5c2c0;
}

.form-message.success {
    background: #edf7ed;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.account-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.account-sidebar {
    flex: 0 0 220px;
    padding: 20px 16px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.account-sidebar h2 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
}

.account-menu-title {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--color-muted);
}

.account-sidebar a {
    display: block;
    padding: 9px 12px;
    margin-bottom: 4px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 2px;
    font-size: 14px;
}

.account-sidebar a:hover {
    color: var(--color-red);
    background: #fafafa;
}

.account-sidebar a.active {
    color: #fff;
    background: var(--color-red);
}

.account-sidebar-foot {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--color-muted);
}

.account-sidebar-foot a {
    display: inline;
    padding: 0;
    color: var(--color-red);
    background: none;
}

.account-content {
    flex: 1;
    min-width: 0;
}

.account-panel {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.account-panel h1 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
}

.account-lead {
    margin: 0 0 20px;
    color: var(--color-muted);
    font-size: 14px;
}

.account-info-list {
    margin: 0 0 24px;
}

.account-info-list > div {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.account-info-list dt {
    flex: 0 0 88px;
    margin: 0;
    color: var(--color-muted);
    font-weight: 500;
}

.account-info-list dd {
    margin: 0;
    flex: 1;
    word-break: break-all;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-account {
    display: inline-block;
    padding: 9px 18px;
    border: none;
    border-radius: 2px;
    background: var(--color-red);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.4;
    cursor: pointer;
}

.btn-account:hover {
    background: var(--color-red-dark);
    color: #fff;
    text-decoration: none;
}

.btn-account-outline {
    background: #fff;
    border: 1px solid #ccc;
    color: var(--color-text);
}

.btn-account-outline:hover {
    border-color: var(--color-red);
    color: var(--color-red);
    background: #fff;
}

.form-section {
    margin-bottom: 24px;
}

.form-section h3 {
    margin: 0 0 14px;
    padding-bottom: 8px;
    font-size: 16px;
    border-bottom: 2px solid var(--color-red);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.required {
    color: var(--color-red);
}

.radio-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 6px;
}

.radio-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    cursor: pointer;
}

.radio-row input {
    width: auto;
    height: auto;
}

.dinggou-card {
    margin: 0 0 20px;
    padding: 18px 18px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    background: #fafafa;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.dinggou-card h3 {
    margin: 0 0 16px;
    padding: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-black);
    border-bottom: 2px solid var(--color-red);
}

.field-static {
    height: 40px;
    padding: 0 12px;
    line-height: 40px;
    border: 1px solid #eee;
    border-radius: 2px;
    background: #f3f3f3;
    color: var(--color-text);
    font-size: 14px;
}

.dinggou-section {
    margin: 22px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    font-weight: 700;
}

.dinggou-pic img {
    display: block;
    max-width: 160px;
    margin-top: 10px;
    border: 1px solid #eee;
}

.account-menu-group + .account-menu-group {
    margin-top: 18px;
}

.account-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.account-panel-head h1 {
    margin-bottom: 4px;
}

.upload-box {
    border: 1px dashed #ccc;
    border-radius: 2px;
    padding: 12px;
    background: #fafafa;
}

.upload-btn {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fff;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.upload-btn:hover {
    border-color: var(--color-red);
    color: var(--color-red);
}

.upload-btn input[type="file"] {
    display: none;
}

.upload-preview {
    margin-top: 12px;
}

.upload-preview img {
    max-width: 180px;
    max-height: 140px;
    border: 1px solid #eee;
    border-radius: 2px;
    background: #fff;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th,
.data-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: #f7f7f7;
    font-weight: 600;
    white-space: nowrap;
}

.data-table .empty-cell {
    text-align: center;
    color: var(--color-muted);
    padding: 28px 8px;
}

.data-table .thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #eee;
}

.data-table .ops {
    white-space: nowrap;
}

.inline-form {
    display: inline;
}

.link-btn {
    display: inline-block;
    margin-right: 8px;
    padding: 0;
    border: none;
    background: none;
    color: var(--color-red);
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}

.link-btn:hover {
    text-decoration: underline;
}

.link-btn.danger {
    color: #b91c1c;
}

.badge-on,
.badge-off {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
}

.badge-on {
    background: #edf7ed;
    color: #1b5e20;
}

.badge-off {
    background: #f5f5f5;
    color: #777;
}

.check-label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 500 !important;
}

.check-label input {
    width: auto !important;
    height: auto !important;
}

.modal-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.45);
    padding: 16px;
    box-sizing: border-box;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-mask.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-card {
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    margin: auto;
    flex: 0 0 auto;
    padding: 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-card-wide,
.modal-card-product {
    max-width: 920px;
}

.modal-header {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3,
.modal-header .modal-title {
    display: block;
    order: 1;
    margin: 0 !important;
    margin-right: auto !important;
    padding: 0;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left !important;
    float: none !important;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-black);
}

.modal-close {
    display: inline-flex !important;
    order: 2;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 auto !important;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 2px;
    background: transparent;
    color: #888;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    float: none !important;
}

.modal-close:hover {
    color: var(--color-red);
    background: #f5f5f5;
}

.field-hint {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #888;
}

.field-hint strong {
    color: var(--color-text);
    font-weight: 600;
}

.modal-card > .form-group,
.modal-card > form > .form-group {
    padding: 18px 20px 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px 18px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.product-edit-form {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 32px);
}

.product-edit-body {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    padding: 18px 20px;
    overflow: auto;
    flex: 1 1 auto;
}

.product-edit-cover {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-cover-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.product-cover-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 12px;
    border: 1px dashed #d0d0d0;
    border-radius: 4px;
    background: #f8f8f8;
    overflow: hidden;
}

.product-cover-img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 2px;
    background: #fff;
}

.product-cover-empty {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 10px;
}

.product-cover-action {
    margin-top: 8px;
}

.product-open-check {
    margin-top: 4px;
}

.product-edit-main {
    min-width: 0;
}

.product-edit-section {
    margin-bottom: 18px;
}

.product-edit-section:last-child {
    margin-bottom: 0;
}

.product-edit-section h4 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-black);
    border-bottom: 2px solid var(--color-red);
}

.product-edit-hint {
    margin: -4px 0 10px;
    font-size: 12px;
    color: #999;
}

.product-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

.product-field-full {
    margin-bottom: 12px;
}

.product-field-full input {
    height: 38px;
}

.product-edit-grid .form-group {
    margin-bottom: 0;
}

.product-edit-grid input,
.product-edit-grid select {
    height: 38px;
}

@media (max-width: 767px) {
    .product-edit-body {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .product-edit-grid {
        grid-template-columns: 1fr;
    }

    .product-cover-box {
        min-height: 180px;
    }
}

.modal-card > .modal-header > h3,
.modal-card > .modal-header > .modal-title {
    margin: 0;
    font-size: 18px;
    text-align: left;
}

.rt-editor {
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fff;
    overflow: hidden;
}

.rt-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid #eee;
    background: #f7f7f7;
}

.rt-toolbar button {
    height: 30px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
}

.rt-toolbar button:hover {
    border-color: var(--color-red);
    color: var(--color-red);
}

.rt-tip {
    margin-left: auto;
    font-size: 12px;
    color: #999;
}

.rt-body {
    min-height: 160px;
    max-height: 280px;
    overflow: auto;
    padding: 12px;
    outline: none;
    font-size: 14px;
    line-height: 1.6;
}

.rt-body:empty:before {
    content: attr(data-placeholder);
    color: #aaa;
}

.rt-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 8px 0;
}

.page-intro {
    margin-bottom: 24px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-red);
    border-radius: 4px;
}

.page-intro h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-black);
}

.page-intro .lead {
    margin-bottom: 6px;
    color: var(--color-muted);
}

.page-intro-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.qiugou-list {
    margin-bottom: 24px;
    padding: 8px 24px 16px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.qiugou-item {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.catalog-main .qiugou-item:last-child {
    border-bottom: none;
}

.page-intro-row .btn-account {
    flex: 0 0 auto;
    white-space: nowrap;
}

.qiugou-body {
    flex: 1;
    min-width: 0;
}

.qiugou-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
}

.qiugou-tel {
    color: var(--color-red);
    font-weight: 600;
}

.qiugou-car {
    color: var(--color-muted);
}

.qiugou-intro a {
    color: var(--color-text);
    text-decoration: none;
}

.qiugou-intro a:hover {
    color: var(--color-red);
}

.qiugou-crumb {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--color-muted);
}

.qiugou-crumb a {
    color: var(--color-muted);
}

.qiugou-crumb a:hover {
    color: var(--color-red);
}

.qiugou-crumb span {
    margin: 0 6px;
}

.qiugou-detail {
    margin-bottom: 24px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.qiugou-full {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.7;
}

.qiugou-reply {
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.qiugou-reply h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.qiugou-reply p {
    margin: 0;
    color: var(--color-muted);
}

.qiugou-time {
    font-size: 12px;
    color: #999;
}

.area-filter,
.merchant-list,
.merchant-search-wrap,
.goods-panel,
.goods-home {
    margin-bottom: 24px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.merchant-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.merchant-search input[type="search"] {
    flex: 1 1 240px;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 14px;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s ease;
}

.merchant-search input[type="search"]:focus {
    border-color: var(--color-red);
}

.merchant-search .btn-search {
    height: 40px;
    padding: 0 22px;
    border: none;
    border-radius: 2px;
    background: var(--color-red);
    color: #fff;
    font-size: 14px;
    line-height: 40px;
}

.merchant-search .btn-search:hover,
.merchant-search .btn-search:focus {
    background: var(--color-red-dark);
    color: #fff;
}

.merchant-search .btn-clear-search {
    height: 40px;
    padding: 0 14px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fafafa;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 38px;
    text-decoration: none;
}

.merchant-search .btn-clear-search:hover {
    border-color: var(--color-red);
    color: var(--color-red);
    text-decoration: none;
}

.filter-title,
.section-title {
    margin: 0 0 16px;
    padding-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-black);
    border-bottom: 2px solid var(--color-red);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-red);
}

.section-header .section-title {
    margin: 0;
    padding: 0;
    border: none;
}

.section-more {
    font-size: 14px;
    color: var(--color-red);
    text-decoration: none;
}

.section-more:hover {
    color: var(--color-red-dark);
    text-decoration: underline;
}

.area-tags,
.city-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.city-tags {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--color-border);
}

.area-tag,
.city-tag {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fafafa;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.area-tag:hover,
.city-tag:hover {
    border-color: var(--color-red);
    color: var(--color-red);
    text-decoration: none;
}

.area-tag.active,
.city-tag.active {
    border-color: var(--color-red);
    background: var(--color-red);
    color: #fff;
}

.merchant-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
}

.merchant-grid:before,
.merchant-grid:after {
    display: none;
    content: none;
}

.merchant-grid > .merchant-col {
    display: flex;
    min-width: 0;
    padding: 0;
    margin: 0;
}

.merchant-card {
    display: flex;
    gap: 14px;
    width: 100%;
    min-height: 228px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.merchant-card:hover {
    border-color: var(--color-red);
    box-shadow: 0 6px 18px rgba(214, 40, 40, 0.12);
}

.merchant-avatar {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-black), var(--color-red));
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 52px;
    text-align: center;
    overflow: hidden;
    position: relative;
    display: block;
    text-decoration: none;
}

.merchant-avatar .merchant-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #fff;
}

.merchant-avatar .merchant-avatar-fallback {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.merchant-body {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.merchant-name a {
    color: inherit;
    text-decoration: none;
}

.merchant-name a:hover {
    color: var(--color-red);
}

.merchant-region {
    margin: 0 0 8px;
    height: 20px;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.merchant-meta {
    margin: 0 0 6px;
    height: 21px;
    font-size: 14px;
    line-height: 21px;
    color: #444;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.merchant-meta span {
    display: inline-block;
    min-width: 52px;
    margin-right: 6px;
    color: #999;
}

.merchant-meta a {
    color: var(--color-red);
    text-decoration: none;
}

.merchant-meta-zhuying {
    height: 42px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
    line-height: 21px;
}

.merchant-meta-address {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.merchant-count {
    margin: auto 0 0;
    min-height: 18px;
    font-size: 12px;
    line-height: 18px;
    color: var(--color-muted);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.merchant-shop-link {
    color: var(--color-red);
    text-decoration: none;
    font-weight: 600;
}

.merchant-shop-link:hover {
    text-decoration: underline;
}

.empty-state {
    padding: 40px 0;
    text-align: center;
    color: var(--color-muted);
}

.pagination-wrap {
    text-align: center;
    margin-bottom: 24px;
}

.pagination > li > a,
.pagination > li > span {
    color: var(--color-red);
}

.pagination > li > a:hover {
    color: var(--color-red-dark);
}

.pagination > .active > span,
.pagination > .active > span:hover {
    background: var(--color-red);
    border-color: var(--color-red);
}

.site-footer-wrap {
    background: var(--color-black);
    color: #bbb;
    padding: 28px 0 20px;
    margin-top: 0;
}

.site-footer-wrap hr {
    display: none;
}

.site-footer a {
    color: #ccc;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--color-red-light);
    text-decoration: underline;
}

.geo-cite {
    background: #fff;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.6;
}

.geo-cite .container {
    padding-top: 14px;
    padding-bottom: 16px;
}

.geo-cite-source,
.geo-cite-summary,
.geo-cite-note {
    margin: 0 0 6px;
}

.geo-cite-summary {
    color: var(--color-text);
}

.geo-cite-note {
    margin-bottom: 0;
    font-size: 12px;
    color: #999;
}

.geo-cite a {
    color: var(--color-red);
}

.geo-faq {
    margin-top: 8px;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.geo-faq-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.geo-faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.geo-faq-item h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.geo-faq-item p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.site-footer p {
    margin-bottom: 8px;
}

.site-footer-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.site-footer-info {
    min-width: 0;
    flex: 1 1 auto;
}

.site-footer-qr {
    flex: 0 0 auto;
    text-align: center;
    color: #ccc;
}

.site-footer-qr img {
    display: block;
    width: 108px;
    height: 108px;
    background: #fff;
    padding: 4px;
    box-sizing: border-box;
}

.site-footer-qr span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

.query-qr-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.query-qr-page img {
    display: block;
    max-width: 360px;
    width: 100%;
    height: auto;
}

.home-miniprogram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.home-miniprogram img {
    width: 120px;
    height: 120px;
    flex: 0 0 auto;
}

.home-miniprogram p {
    margin: 0;
    font-size: 16px;
    color: var(--color-text);
}

.friend-links {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #333;
    text-align: center;
}

.friend-links-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.friend-links-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.friend-links-list li {
    display: inline-block;
    margin: 4px 10px;
}

.friend-links-list a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
}

.friend-links-list a:hover {
    color: var(--color-red-light);
    text-decoration: underline;
}

@media (max-width: 767px) {
    .site-header-inner {
        min-height: 56px;
        gap: 12px;
    }

    .site-logo img {
        height: 32px;
    }

    .site-menu,
    .site-header-actions {
        display: none;
    }

    .site-menu-toggle {
        display: flex;
    }

    .account-layout {
        flex-direction: column;
    }

    .account-sidebar {
        flex: none;
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        margin: 8px 0 24px;
        padding: 20px 16px;
    }

    .main-container {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .page-intro-row {
        flex-wrap: wrap;
    }

    .page-intro,
    .area-filter,
    .merchant-list,
    .merchant-search-wrap,
    .qiugou-list,
    .geo-faq,
    .home-miniprogram,
    .goods-panel,
    .goods-home {
        padding: 16px;
        margin-bottom: 16px;
    }

    .merchant-search .btn-search,
    .merchant-search .btn-clear-search {
        flex: 1 1 auto;
        text-align: center;
    }

    .page-intro h1 {
        font-size: 20px;
    }

    .page-intro .lead {
        font-size: 14px;
    }

    .qiugou-item {
        padding: 14px 0;
    }

    .filter-title,
    .section-title {
        font-size: 16px;
    }

    .area-tag,
    .city-tag {
        padding: 5px 10px;
        font-size: 13px;
    }

    .hero-slides,
    .hero-slide {
        height: 200px;
    }

    .hero-arrow {
        width: 36px;
        height: 48px;
        font-size: 28px;
        line-height: 48px;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
    }

    .merchant-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 0;
    }

    .goods-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .goods-hero .container {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .goods-hero h1 {
        font-size: 20px;
    }

    .goods-hero-search button,
    .goods-hero-clear {
        flex: 1 1 auto;
        text-align: center;
    }

    .goods-card-mask {
        display: none;
    }

    .goods-panel .pagination-wrap {
        margin-top: 16px;
        margin-bottom: 0;
    }

    .merchant-grid > .merchant-col {
        padding: 0;
        margin: 0;
    }

    .merchant-card {
        min-height: 210px;
        padding: 14px;
    }

    .merchant-name {
        font-size: 16px;
    }

    .merchant-meta span {
        min-width: 48px;
    }

    .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 0;
    }

    .pagination > li > a,
    .pagination > li > span {
        float: none;
        display: block;
        padding: 6px 10px;
        font-size: 13px;
    }

    .site-footer-wrap {
        padding: 20px 0 16px;
    }

    .site-footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .home-miniprogram {
        flex-direction: column;
        text-align: center;
    }

    .friend-links-list li {
        display: inline-block;
        margin: 4px 8px;
    }

    .friend-links-list a {
        font-size: 12px;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .site-header-tip {
        display: none;
    }

    .site-header-inner {
        gap: 16px;
    }

    .hero-slides,
    .hero-slide {
        height: 320px;
    }

    .merchant-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

.site-breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}

.site-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    font-size: 13px;
    color: var(--color-muted);
}

.site-breadcrumb li + li::before {
    content: "/";
    margin: 0 8px;
    color: #ccc;
}

.site-breadcrumb a {
    color: var(--color-muted);
    text-decoration: none;
}

.site-breadcrumb a:hover {
    color: var(--color-red);
}

.site-breadcrumb .active {
    color: var(--color-text);
}

.shop-hero {
    background: #1a1a1a;
    color: #fff;
}

.shop-hero-title {
    margin: 0;
    padding: 28px 0;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
}

.shop-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 88px;
    margin: 0 0 12px;
    overflow: hidden;
    background: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 4px;
}

.shop-logo {
    display: block;
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.shop-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #d62828);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.shop-box {
    margin-bottom: 16px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.shop-box h2 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    font-size: 16px;
    border-bottom: 2px solid var(--color-red);
}

.shop-box h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.shop-box p {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text);
}

.shop-box p span {
    display: block;
    color: var(--color-muted);
    margin-bottom: 2px;
}

.shop-cat {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-cat li a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f3f3f3;
    color: var(--color-text);
    text-decoration: none;
}

.shop-cat li a:hover,
.shop-cat li.active a {
    color: var(--color-red);
}

.shop-main {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 18px 20px 24px;
}

.shop-main h1 {
    margin: 0 0 16px;
    font-size: 20px;
}

.shop-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.shop-product {
    display: block;
    text-decoration: none;
    color: var(--color-text);
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.shop-product:hover {
    border-color: var(--color-red);
}

.shop-product-img {
    position: relative;
    display: block;
    height: 160px;
    background: #f5f5f5;
    overflow: hidden;
}

.shop-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.shop-product-name {
    display: block;
    padding: 10px 8px;
    font-size: 14px;
    line-height: 1.4;
    min-height: 48px;
}

.goods-hero {
    background: #1a1a1a;
    color: #fff;
}

.goods-hero .container {
    padding-top: 28px;
    padding-bottom: 32px;
}

.goods-hero h1 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
}

.goods-hero p {
    margin: 0 0 18px;
    color: #ccc;
    font-size: 14px;
}

.goods-hero-search {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 640px;
}

.goods-hero-search input[type="search"] {
    flex: 1 1 280px;
    min-width: 0;
    height: 44px;
    padding: 0 16px;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    color: var(--color-text);
    outline: none;
}

.goods-hero-search button {
    height: 44px;
    padding: 0 24px;
    border: none;
    border-radius: 2px;
    background: var(--color-red);
    color: #fff;
    font-size: 15px;
    line-height: 44px;
}

.goods-hero-search button:hover,
.goods-hero-search button:focus {
    background: var(--color-red-dark);
}

.goods-hero-clear {
    height: 44px;
    padding: 0 16px;
    border: 1px solid #666;
    border-radius: 2px;
    color: #ddd;
    font-size: 14px;
    line-height: 42px;
    text-decoration: none;
}

.goods-hero-clear:hover {
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

.goods-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-red);
}

.goods-panel-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-black);
}

.goods-panel-head p {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
}

.goods-empty {
    padding: 56px 16px;
    text-align: center;
    color: var(--color-muted);
    font-size: 15px;
    background: #fafafa;
    border: 1px dashed var(--color-border);
    border-radius: 4px;
}

.goods-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.goods-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.goods-card:hover {
    border-color: var(--color-red);
    box-shadow: 0 10px 24px rgba(214, 40, 40, 0.12);
    transform: translateY(-3px);
}

.goods-card-media {
    position: relative;
    display: block;
    height: 220px;
    aspect-ratio: 1 / 1;
    background: #fafafa;
    overflow: hidden;
}

.goods-card-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
    background: #fff;
    transition: transform 0.3s ease;
}

.goods-card:hover .goods-card-media img {
    transform: scale(1.06);
}

.goods-card-placeholder {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 13px;
    background: #f4f4f4;
}

.goods-card-brand {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    max-width: calc(100% - 20px);
    padding: 2px 8px;
    background: rgba(26, 26, 26, 0.78);
    color: #fff;
    font-size: 12px;
    line-height: 1.6;
    border-radius: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goods-card-mask {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 8px 0;
    background: rgba(214, 40, 40, 0.92);
    color: #fff;
    font-size: 13px;
    text-align: center;
    letter-spacing: 0.04em;
    transform: translateY(100%);
    transition: transform 0.2s ease;
}

.goods-card:hover .goods-card-mask {
    transform: translateY(0);
}

.goods-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 12px 14px;
    border-top: 1px solid #f2f2f2;
}

.goods-card-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    text-decoration: none;
}

.goods-card-name:hover {
    color: var(--color-red);
    text-decoration: none;
}

.goods-card-price {
    display: block;
    color: var(--color-red);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.goods-card-price.is-ask {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 600;
}

.goods-card-shop {
    display: block;
    color: var(--color-muted);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}

a.goods-card-shop:hover {
    color: var(--color-red);
    text-decoration: none;
}

.goods-panel .pagination-wrap {
    margin: 22px 0 0;
}

.shop-product-detail {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.shop-product-cover {
    position: relative;
    min-height: 280px;
    border: 1px solid #eee;
    background: #f5f5f5;
    overflow: hidden;
}

.shop-product-cover img {
    width: 100%;
    display: block;
}

.pic-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 160px;
    color: #d0d0d0;
    background: #f5f5f5;
}

.pic-empty svg {
    display: block;
    width: 52px;
    height: 52px;
}

.shop-product-cover .pic-empty {
    min-height: 280px;
}

.shop-product-img .pic-empty {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 0;
}

.shop-product-info h1 {
    margin-bottom: 8px;
}

.shop-product-sub {
    color: var(--color-muted);
}

.shop-product-price {
    font-size: 22px;
    color: var(--color-red);
    margin: 12px 0;
}

.shop-product-intro h2 {
    margin: 0 0 10px;
    font-size: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.article-hero {
    background: #1a1a1a;
    color: #fff;
}

.article-hero-title {
    margin: 0;
    padding: 28px 0;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
}

.article-main {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 18px 20px 24px;
}

.article-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.article-cover {
    flex: 0 0 160px;
    width: 160px;
    height: 100px;
    overflow: hidden;
    background: #fafafa;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-item-body h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.4;
}

.article-item-body h2 a {
    color: var(--color-text);
    text-decoration: none;
}

.article-item-body h2 a:hover {
    color: var(--color-red);
}

.article-date {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
}

.article-search {
    display: flex;
    gap: 8px;
}

.article-search input {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--color-border);
    border-radius: 2px;
}

.article-search button {
    height: 34px;
    padding: 0 12px;
    border: 0;
    background: var(--color-red);
    color: #fff;
    border-radius: 2px;
}

.article-latest {
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-latest li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f3f3;
}

.article-latest a {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    line-height: 1.4;
}

.article-latest a:hover {
    color: var(--color-red);
}

.article-latest span {
    display: block;
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 12px;
}

.article-detail h1 {
    margin: 8px 0 16px;
    font-size: 24px;
    line-height: 1.4;
}

.article-content {
    line-height: 1.7;
    font-size: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-content img {
    max-width: 100%;
    height: auto;
}

.article-content .auto-parts-content {
    font-family: inherit;
    line-height: 1.7;
    font-size: 14px;
    color: var(--color-text);
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
}

.article-content .ap-heading,
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: var(--color-red) !important;
    margin: 14px 0 8px !important;
    padding: 8px 10px !important;
    background: #fafafa !important;
    border-bottom: 1px solid #ddd !important;
    border-left: 4px solid var(--color-red) !important;
    border-radius: 4px;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.article-content h1,
.article-content .ap-h1 { font-size: 16px !important; }

.article-content h2,
.article-content .ap-h2 { font-size: 15px !important; }

.article-content h3,
.article-content .ap-h3 { font-size: 14px !important; }

.article-content h4,
.article-content .ap-h4,
.article-content h5,
.article-content .ap-h5,
.article-content h6,
.article-content .ap-h6 { font-size: 13px !important; color: var(--color-text) !important; }

.article-content .ap-paragraph,
.article-content p {
    margin: 8px 0;
    padding: 8px 10px;
    font-size: 14px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}

.article-content .ap-paragraph strong,
.article-content .ap-li strong {
    color: var(--color-red);
}

.article-content .ap-ul {
    margin: 12px 0;
    padding-left: 22px;
}

.article-content .ap-li {
    margin: 8px 0;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #eee;
    border-left: 3px solid var(--color-red);
    border-radius: 4px;
    list-style: disc;
}

.article-content table,
.article-content .ap-table,
.article-content .table {
    width: 100%;
    min-width: 520px;
    margin: 16px 0;
    border-collapse: collapse;
    background: #fff;
    font-size: 13px;
}

.article-content th,
.article-content td,
.article-content .ap-table th,
.article-content .ap-table td {
    border: 1px solid #e6e6e6;
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
}

.article-content th,
.article-content .ap-table th {
    background: #f5f5f5;
    font-weight: 600;
    border-bottom: 2px solid var(--color-red);
}

.article-content tbody tr:nth-child(even),
.article-content .ap-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.article-content .ap-table td:first-child {
    font-weight: 600;
}

.article-content .price-disclaimer-section {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    color: var(--color-muted);
    font-size: 13px;
}

.article-content .disclaimer-content {
    font-style: italic;
}

@media (max-width: 991px) {
    .shop-layout,
    .shop-product-detail,
    .shop-products,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .shop-layout .shop-main {
        order: 1;
    }

    .shop-layout .shop-side {
        order: 2;
    }

    .shop-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .goods-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .goods-hero h1 {
        font-size: 20px;
    }

    .shop-hero-title,
    .article-hero-title {
        padding: 18px 0;
        font-size: 20px;
    }

    .article-cover {
        flex: 0 0 120px;
        width: 120px;
        height: 80px;
    }
}

.catalog-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.catalog-side {
    min-width: 0;
}

.catalog-brand-list {
    max-height: 640px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.catalog-main {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 18px 20px 24px;
}

.catalog-intro {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #fafafa;
    border: 1px solid #eee;
    color: var(--color-muted);
    line-height: 1.7;
    font-size: 13px;
}

.catalog-intro a {
    color: var(--color-red);
}

.catalog-series {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.catalog-series-item {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--color-text);
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.catalog-series-item:hover {
    border-color: var(--color-red);
    color: var(--color-red);
}

.part-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.part-catalog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-decoration: none;
    color: var(--color-text);
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.part-catalog-card:hover {
    border-color: var(--color-red);
    box-shadow: 0 6px 16px rgba(214, 40, 40, 0.08);
    color: var(--color-red);
}

.part-catalog-pic {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 148px;
    background: #fafafa;
    overflow: hidden;
}

.part-catalog-pic img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.part-catalog-name {
    display: block;
    padding: 10px 12px 12px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    word-break: break-word;
}

.part-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 20px;
}

.part-detail-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: 16px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
}

.part-detail-media img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.part-detail-info h1 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.35;
}

.part-detail-intro {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.part-detail-intro h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.catalog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.catalog-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    grid-template-areas: "body act";
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.catalog-product-body {
    grid-area: body;
    min-width: 0;
}

.catalog-product-body h2 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.4;
}

.catalog-product-body h2 a {
    color: var(--color-text);
    text-decoration: none;
}

.catalog-product-body h2 a:hover {
    color: var(--color-red);
}

.catalog-product-body p {
    margin: 0 0 4px;
    color: var(--color-muted);
    font-size: 13px;
}

.catalog-price span {
    display: inline-block;
    margin-right: 12px;
    color: var(--color-red);
    font-weight: 600;
}

.catalog-product-act {
    grid-area: act;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    min-width: 0;
}

.catalog-product-act .btn-account,
.catalog-product-act .catalog-inquiry {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

.catalog-inquiry,
.catalog-tel {
    display: block;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    padding: 8px 12px;
    color: var(--color-red);
    border: 1px solid var(--color-red);
    border-radius: 2px;
}

.catalog-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 28px;
    margin-bottom: 24px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.catalog-gallery,
.catalog-info {
    min-width: 0;
}

.catalog-gallery-main {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    background: #fafafa;
    aspect-ratio: 4 / 3;
    max-height: 420px;
    overflow: hidden;
}

.catalog-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.catalog-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.catalog-thumbs button {
    flex: 0 0 auto;
    width: 72px;
    height: 56px;
    padding: 0;
    border: 1px solid #eee;
    background: #fff;
    cursor: pointer;
}

.catalog-thumbs button.active {
    border-color: var(--color-red);
}

.catalog-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-info h1 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.4;
    word-break: break-word;
}

.catalog-spec {
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.catalog-spec li {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f3f3;
    font-size: 14px;
    min-width: 0;
}

.catalog-spec span {
    width: 80px;
    color: var(--color-muted);
    flex: 0 0 80px;
}

.catalog-buy {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    margin-top: 16px;
}

.catalog-buy .btn-account,
.catalog-buy .catalog-tel {
    flex: 1 1 140px;
}

.catalog-intro-box {
    margin-bottom: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.catalog-intro-box > h2 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    font-size: 16px;
    border-bottom: 2px solid var(--color-red);
}

.catalog-page .pagination-wrap {
    margin: 20px 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.catalog-page .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}

.catalog-page .pagination > li > a,
.catalog-page .pagination > li > span {
    float: none;
}

@media (max-width: 1199px) {
    .catalog-series {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-main {
        order: 1;
        padding: 14px 14px 20px;
    }

    .catalog-side {
        order: 2;
    }

    .catalog-brand-list {
        max-height: 220px;
    }

    .catalog-series {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .part-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .part-detail {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .catalog-series-item {
        min-height: 40px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .catalog-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        margin: 0 -14px 14px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .catalog-tags .area-tag {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .catalog-product {
        grid-template-columns: 1fr;
        grid-template-areas:
            "body"
            "act";
        gap: 10px;
        align-items: start;
        padding: 14px 0;
    }

    .catalog-product-body h2 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .catalog-product-act {
        flex-direction: row;
    }

    .catalog-product-act .btn-account,
    .catalog-product-act .catalog-inquiry {
        flex: 1 1 0;
        min-width: 0;
        padding: 8px 6px;
        font-size: 13px;
    }

    .catalog-detail {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
        padding: 14px;
    }

    .catalog-gallery-main {
        max-height: 260px;
        aspect-ratio: 1 / 1;
    }

    .catalog-info h1 {
        font-size: 20px;
    }

    .catalog-spec li {
        font-size: 13px;
    }

    .catalog-spec span {
        width: 72px;
        flex-basis: 72px;
    }

    .catalog-product-page {
        padding-bottom: 88px;
    }

    .catalog-buy {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 20;
        margin: 0;
        padding: 10px 15px calc(10px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
        flex-wrap: nowrap;
    }

    .catalog-buy .btn-account,
    .catalog-buy .catalog-tel {
        flex: 1 1 0;
        min-width: 0;
        padding: 10px 8px;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .catalog-intro-box {
        padding: 14px;
        margin-bottom: 12px;
    }
}

@media (max-width: 767px) {
    .part-catalog-grid {
        grid-template-columns: 1fr;
    }

    .part-catalog-pic {
        height: 180px;
    }
}
