.home-page .cooperation-section { background: var(--bg); }
.cooperation-carousel { min-width: 0; padding: 4px 1px 12px; }
.cooperation-carousel .swiper-wrapper { align-items: stretch; }
.cooperation-carousel .swiper-slide { height: auto; box-sizing: border-box; }
.cooperation-single { margin-inline: 0; max-width: 152px; }
.cooperation-card { min-width: 0; min-height: 174px; overflow: hidden; padding: 16px 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised, var(--panel)); box-shadow: 0 4px 10px rgba(35, 67, 106, .05), inset 0 1px 0 var(--surface-edge, transparent); text-align: center; }
.cooperation-carousel-tools { display: flex; align-items: center; gap: 8px; }
.cooperation-carousel-tools > span { margin-right: 12px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.cooperation-carousel-tools button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-raised, var(--panel)); color: var(--ink); box-shadow: 0 3px 8px rgba(35, 67, 106, .05); cursor: pointer; }
.cooperation-carousel-tools button:is(:hover, :focus-visible) { color: var(--blue); border-color: var(--blue); }
.cooperation-carousel-tools button svg { width: 16px; height: 16px; }
.cooperation-image { display: block; width: 64px; height: 64px; overflow: hidden; margin: 0 auto; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: zoom-in; }
.cooperation-image img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.cooperation-image:is(:hover, :focus-visible) img { transform: scale(1.04); }
.cooperation-image:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.cooperation-image-empty { display: grid; place-items: center; height: 100%; color: var(--muted); background: var(--panel-2); font-size: 11px; line-height: 1.5; }
.cooperation-copy { min-width: 0; margin-top: 12px; }
.home-page .cooperation-copy h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 38px; margin: 0; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 19px; overflow-wrap: anywhere; }
.cooperation-copy h3 a { color: inherit; }
.cooperation-copy h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cooperation-copy .cooperation-type { margin: 7px 0 0; overflow: hidden; color: #a56a09; font-size: 13px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
html[data-theme="dark"] .cooperation-type { color: #e5b557; }
.cooperation-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 180px; border-block: 1px solid var(--line); color: var(--muted); }
.cooperation-empty svg { width: 30px; height: 30px; margin-bottom: 12px; }
.cooperation-empty p { margin: 0; font-size: 14px; }
.cooperation-dialog { width: min(1040px, calc(100% - 40px)); max-height: calc(100svh - 48px); margin: auto; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); box-shadow: var(--shadow-panel); }
.cooperation-dialog::backdrop { background: rgba(0, 0, 0, .75); }
.cooperation-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.home-page .cooperation-preview-head h3 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.cooperation-preview-head button { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--panel-2); cursor: pointer; }
.cooperation-preview-head button svg { width: 20px; height: 20px; }
.cooperation-preview > img { display: block; width: 100%; max-height: calc(100svh - 180px); object-fit: contain; }
.cooperation-preview > p { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.cooperation-preview > .cooperation-type { color: #a56a09; }
.cooperation-preview-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--blue); font-size: 14px; }
.cooperation-preview-link svg { width: 16px; height: 16px; }
.cooperation-editor-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.cooperation-batch-upload { flex-direction: row; }
.cooperation-batch-upload.is-disabled { opacity: .55; cursor: not-allowed; }
.cooperation-admin-list { display: grid; gap: 12px; }
.cooperation-admin-card { padding: 18px; }
.cooperation-admin-card .record-head { gap: 16px; flex-wrap: wrap; }
.cooperation-admin-card .record-head strong { max-width: 100%; overflow-wrap: anywhere; }
.cooperation-admin-card .record-head .cooperation-row-actions { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.cooperation-admin-fields { display: grid; grid-template-columns: 114px minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, 1.4fr) 64px; align-items: end; gap: 16px; }
.cooperation-admin-fields > label { min-width: 0; }
.cooperation-admin-media { display: flex; align-items: center; gap: 10px; }
.cooperation-admin-media .icon-btn { cursor: pointer; }
.cooperation-admin-preview { display: grid; place-items: center; flex: 0 0 64px; width: 64px; height: 64px; overflow: hidden; border: 1px solid var(--border, #d7e2ef); border-radius: 6px; background: var(--surface, #f4f7fb); color: var(--muted); font-size: 11px; }
.cooperation-admin-preview img { width: 100%; height: 100%; object-fit: contain; }
.cooperation-admin-card .cooperation-enabled { display: flex; flex-direction: row; align-items: center; gap: 8px; min-height: 42px; cursor: pointer; }
.cooperation-admin-card .cooperation-enabled input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue, #2178ba); }
.cooperation-admin-details { margin-top: 12px; }
.cooperation-admin-details summary { width: fit-content; color: var(--muted); font-size: 12px; cursor: pointer; }
.cooperation-admin-details > label { margin-top: 12px; }
@media (max-width: 1100px) { .cooperation-admin-fields { grid-template-columns: 114px minmax(0, 1fr) minmax(0, 1fr); } .cooperation-admin-fields > label:nth-of-type(3) { grid-column: 2 / 4; } }
@media (max-width: 600px) { .cooperation-admin-fields { grid-template-columns: minmax(0, 1fr); } .cooperation-admin-fields > label:nth-of-type(3) { grid-column: auto; } }
@media (max-width: 600px) { .cooperation-section .section-head { align-items: flex-start; flex-direction: column; gap: 20px; } .cooperation-dialog { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .cooperation-image img { transition: none; } .cooperation-image:is(:hover, :focus-visible) img { transform: none; } }
