:root { color-scheme: light; font-family: "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif; color: #202124; background: #fff; font-synthesis: none; line-height: 1.6; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #52565b; outline-offset: 3px; }
[hidden] { display: none !important; }
svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.7; }
.site-header, main, .site-footer { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.site-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #eceef0; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 650; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: #252627; border-radius: 7px; }
.brand-mark svg { width: 20px; height: 20px; }
.site-header nav { display: flex; gap: 28px; font-size: 13px; color: #73777d; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: #202124; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 0 24px; }
.eyebrow { font-size: 12px; color: #85898e; margin: 0 0 6px; }
h1 { font-size: 28px; line-height: 1.35; margin: 0; font-weight: 650; }
h2, h3, p { overflow-wrap: anywhere; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 13px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; white-space: nowrap; line-height: 1.4; }
.primary { background: #252627; color: #fff; }
.primary:hover { background: #424446; }
.secondary { background: #fff; border-color: #dedfe2; }
.secondary:hover:not(:disabled) { background: #f5f6f7; }
.subtle { background: #f2f3f4; }
.subtle:hover:not(:disabled) { background: #e9ebed; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; background: transparent; border: 1px solid transparent; border-radius: 5px; }
.icon-button:hover:not(:disabled) { background: #f0f1f3; }
.workspace { position: relative; display: grid; grid-template-columns: 178px minmax(0, 1fr); min-height: 450px; border: 1px solid #e6e7ea; border-radius: 8px; overflow: hidden; }
.library-nav { padding: 22px 12px; background: #f8f9fa; border-right: 1px solid #e6e7ea; display: flex; flex-direction: column; gap: 6px; }
.nav-label { font-size: 11px; color: #8c9096; margin: 0 10px 10px; }
.filter-button { min-height: 38px; display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; padding: 9px 10px; text-align: left; border-radius: 5px; font-size: 13px; }
.filter-button .count { margin-left: auto; color: #82868b; font-size: 11px; font-variant-numeric: tabular-nums; }
.filter-button.active { background: #e9ebee; font-weight: 600; }
.filter-button:hover { background: #eceef0; }
.local-note { margin-top: auto; padding: 24px 9px 0; display: flex; align-items: flex-start; gap: 8px; color: #6c7374; font-size: 11px; }
.local-note svg { color: #397b60; width: 16px; margin-top: 2px; }
.local-note small { font-size: 10px; color: #91969a; }
.library-content { padding: 22px 24px 16px; min-width: 0; position: relative; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.search-field { display: flex; align-items: center; gap: 9px; border: 1px solid #e2e4e7; border-radius: 6px; width: min(320px, 100%); min-width: 0; height: 36px; padding: 0 10px; color: #8b9095; }
.search-field input { width: 100%; min-width: 0; border: 0; background: transparent; color: #292c2f; outline: 0; font-size: 12px; }
.search-field:focus-within { border-color: #81868c; }
.search-field input::placeholder { color: #91959a; }
.sort-field { display: flex; align-items: center; gap: 6px; color: #73787e; }
select { max-width: 100%; border: 1px solid #e2e4e7; border-radius: 5px; background: #fff; padding: 6px 8px; color: #62676d; font-size: 12px; height: 34px; }
.sort-field select { border: 0; padding-left: 0; }
.collection-heading { display: flex; align-items: baseline; gap: 10px; margin: 23px 0 12px; }
.collection-heading h2 { font-size: 15px; margin: 0; font-weight: 600; }
.collection-heading span { color: #989ca1; font-size: 11px; }
.selection-toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 0; margin-bottom: 12px; border-top: 1px solid #eceef0; border-bottom: 1px solid #eceef0; }
.select-all { display: flex; align-items: center; gap: 7px; color: #757a80; font-size: 12px; white-space: nowrap; }
input[type="checkbox"] { accent-color: #303235; width: 14px; height: 14px; margin: 0; cursor: pointer; }
.selection-count { color: #9a9ea3; font-size: 11px; margin-left: 7px; margin-right: auto; white-space: nowrap; }
.category-field { max-width: 132px; }
.image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.image-card { position: relative; border: 1px solid #e6e8eb; border-radius: 7px; overflow: hidden; min-width: 0; background: #fff; }
.image-card.selected { border-color: #767c83; box-shadow: 0 0 0 1px #767c83; }
.image-open { display: block; border: 0; background: #f4f5f6; width: 100%; aspect-ratio: 4 / 3; padding: 0; }
.image-open img { display: block; width: 100%; height: 100%; object-fit: contain; }
.image-open:hover img { opacity: .9; }
.image-check { position: absolute; top: 10px; left: 10px; display: grid; place-items: center; width: 25px; height: 25px; background: #fffffff0; border: 1px solid #e6e8eb; border-radius: 5px; }
.image-info { padding: 11px 12px 10px; }
.image-info h3 { font-size: 12px; margin: 0 0 5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-details { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: #93989e; }
.image-category { color: #717980; }
.image-badge { position: absolute; top: 10px; right: 10px; font-size: 10px; color: #59636b; background: #fffffff0; border-radius: 4px; padding: 1px 6px; pointer-events: none; }
.library-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 19px; color: #999ea3; font-size: 11px; }
.text-button { border: 0; background: transparent; color: #6e747b; padding: 3px 0; font-size: 11px; }
.text-button:hover { text-decoration: underline; }
.empty-state { min-height: 240px; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; color: #858b92; }
.empty-state svg { width: 28px; height: 28px; }
.empty-state h3 { margin: 0; font-size: 14px; font-weight: 500; }
.drop-overlay { position: absolute; inset: 8px; background: #f8f9fbf0; border: 2px dashed #778087; border-radius: 6px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; pointer-events: none; z-index: 3; }
.drop-overlay svg { width: 36px; height: 36px; }
.status-message { min-height: 30px; padding: 6px 0; color: #68746c; font-size: 12px; }
.status-message.error { color: #a54242; }
.information-section { padding: 30px 0 38px; border-bottom: 1px solid #eceef0; }
.information-heading { max-width: 650px; }
.information-heading h2, .privacy-section h2 { font-size: 19px; margin: 4px 0 10px; font-weight: 600; }
.information-heading p:not(.eyebrow), .guide-grid p, .privacy-section p { font-size: 13px; line-height: 1.9; color: #7a8087; margin: 0; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 26px; }
.step-number { color: #a6acb2; font-size: 11px; font-variant-numeric: tabular-nums; }
.guide-grid h3 { font-size: 14px; font-weight: 600; margin: 7px 0; }
.privacy-section { padding: 30px 0 40px; display: flex; align-items: flex-start; gap: 14px; }
.privacy-section > svg { color: #397b60; width: 23px; height: 23px; margin-top: 6px; }
.privacy-section p { max-width: 900px; }
.privacy-section p + p { margin-top: 7px; }
.site-footer { border-top: 1px solid #eceef0; padding: 22px 0; display: flex; align-items: center; gap: 24px; font-size: 11px; color: #8c9198; flex-wrap: wrap; }
.site-footer a:hover { color: #40474e; text-decoration: underline; }
.site-footer span { margin-right: auto; }
.preview-dialog { width: min(900px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #e1e4e8; border-radius: 8px; color: #25282b; }
.preview-dialog::backdrop { background: #161c2280; }
.preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
.preview-heading h2 { font-size: 14px; margin: 0; max-width: calc(100% - 46px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-content { background: #f4f5f6; height: min(65dvh, 580px); display: grid; place-items: center; }
.preview-content img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 12px; color: #92979d; }
.notice { font-size: 13px; color: #8d6842; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 960px) {
  .site-header, main, .site-footer { width: calc(100% - 40px); }
  .workspace { grid-template-columns: 150px minmax(0, 1fr); }
  .library-content { padding: 18px 16px 14px; }
  .image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .selection-toolbar { flex-wrap: wrap; }
  .selection-count { margin-right: 0; }
  .category-field { margin-left: auto; }
  .guide-grid { gap: 22px; }
}
@media (max-width: 600px) {
  .site-header, main, .site-footer { width: calc(100% - 28px); }
  .site-header { min-height: 95px; flex-wrap: wrap; gap: 10px; padding: 16px 0 14px; }
  .brand { font-size: 17px; }
  .site-header nav { gap: 20px; width: 100%; padding-left: 46px; font-size: 12px; }
  .section-heading { padding: 24px 0 18px; gap: 12px; }
  h1 { font-size: 23px; }
  .eyebrow { font-size: 11px; }
  .section-heading .button { padding: 9px 10px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .library-nav { flex-direction: row; border-right: 0; border-bottom: 1px solid #e6e7ea; padding: 9px; gap: 3px; }
  .nav-label, .local-note { display: none; }
  .filter-button { gap: 6px; padding: 8px; font-size: 12px; min-width: 0; justify-content: center; }
  .filter-button svg { width: 15px; }
  .filter-button .count { margin-left: 0; }
  .library-content { padding: 15px 12px; }
  .library-toolbar { gap: 5px; }
  .search-field { max-width: calc(100% - 104px); }
  .sort-field { gap: 2px; }
  .sort-field svg { width: 15px; }
  .sort-field select { font-size: 11px; padding-right: 0; }
  .collection-heading { margin-top: 18px; }
  .selection-toolbar { gap: 6px; }
  .selection-count { flex: 1; }
  .category-field { margin-left: 0; max-width: 124px; }
  .selection-toolbar .button { font-size: 11px; padding: 6px 8px; }
  .selection-toolbar .button svg { width: 15px; }
  .image-grid { gap: 10px; }
  .image-info { padding: 9px; }
  .image-info h3 { font-size: 11px; }
  .image-details { font-size: 9px; flex-wrap: wrap; gap: 3px; }
  .image-check { top: 7px; left: 7px; width: 23px; height: 23px; }
  .image-badge { top: 7px; right: 7px; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .information-section { padding-top: 22px; }
  .privacy-section { padding-top: 24px; }
  .site-footer { gap: 10px 18px; }
  .site-footer span { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
