.works-tabs { background: #fff; }
.works-tabs .tabs { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 0; }
.works-tabs .tab { font-size: 20px; padding: 17px 0; }
.works-tabs .tab.active:after { width: 30px; height: 4px; bottom: 6px; }
.works-section { padding-top: 18px; }
.works-section > .section-title { max-width: 820px; margin: 0 auto 16px; }
.works-section > .section-title h2 { font-size: 21px; }
.works-feed { display: grid; gap: 18px; max-width: 820px; margin: 0 auto; }
.work-card { position: relative; min-width: 0; padding: 20px; background: #fff; border-radius: 14px; box-shadow: 0 5px 20px rgba(105, 171, 211, .12); }
.work-author-header { position: relative; display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #edf0f2; }
.work-avatar { width: 48px; height: 48px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; border: 3px solid #fbd7d6; background: #dcf4e5; color: #2e7961; font-size: 21px; font-weight: 700; }
.work-author-info { min-width: 0; flex: 1; }
.work-author-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-right: 88px; }
.work-author-line strong { color: #354c43; font-size: 16px; }
.work-follow { padding: 2px 8px; border: 1px solid #ff8072; border-radius: 20px; background: #fff; color: #f36b5e; font-size: 14px; white-space: nowrap; line-height: 1.45; }
.work-follow.is-following { color: #84968d; border-color: #d4e1da; background: #f7fbf8; }
.work-author-info p { margin: 5px 0 0; color: #929b98; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.work-ribbon { position: absolute; right: -27px; top: 5px; padding: 7px 10px 7px 22px; min-width: 96px; text-align: center; background: #ffc12e; color: #fff; font-weight: 700; font-size: 14px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 13% 50%); }
.work-read { display: block; width: 100%; padding: 0; text-align: left; color: inherit; background: transparent; border-radius: 4px; }
.work-read h3 { margin: 19px 0 14px; color: #263f35; font-size: 21px; line-height: 1.6; }
.work-date { margin: 0 0 16px; color: #9a9e9c; font-size: 14px; line-height: 1.6; }
.work-excerpt { margin: 0; color: #747d78; font-size: 17px; line-height: 1.85; text-indent: 2em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work-read-more { display: block; margin: 11px 0 15px; text-align: right; color: #e77868; font-size: 13px; }
.work-read-more span { font-size: 19px; vertical-align: -1px; }
.work-teacher { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 13px 0 0; border-top: 1px solid #edf0f2; color: #646f69; font-size: 14px; line-height: 1.6; }
.work-teacher > span:first-child { color: #e58775; font-size: 20px; }
.work-teacher strong { font-weight: 500; }
.work-topic { color: #f17466; background: #fff0ed; border-radius: 4px; padding: 2px 7px; margin-left: auto; font-size: 13px; }
.work-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; color: #a0aaa4; font-size: 12px; }
.work-card-footer > span { min-width: 0; line-height: 1.6; }
.work-like { min-height: 32px; padding: 4px 8px; color: var(--coral); background: #fff5f2; border-radius: 16px; white-space: nowrap; font-size: 13px; }
.work-follow:focus-visible, .work-read:focus-visible, .work-like:focus-visible, .work-original:focus-visible { outline: 3px solid #1b73e8; outline-offset: 3px; }
.work-detail-section { max-width: 900px; margin: 0 auto; }
.work-detail h1 { font-size: 28px; line-height: 1.6; color: #263f35; margin: 24px 0 12px; }
.work-competition { margin: 10px 0 16px; padding: 10px 13px; background: #fff9e9; border-radius: 8px; color: #ab7a24; font-size: 14px; line-height: 1.7; }
.work-source-note { display: flex; flex-direction: column; gap: 5px; padding-bottom: 18px; border-bottom: 1px solid #edf0f2; font-size: 13px; line-height: 1.7; color: #8e9992; }
.work-reading-title { margin: 22px 0 6px; font-size: 18px; }
.work-reading-note { font-size: 13px; color: #8b9690; line-height: 1.7; margin: 0 0 20px; }
.work-article-body { color: #495a50; font-size: 18px; line-height: 2; overflow-wrap: anywhere; }
.work-article-body p { text-indent: 2em; margin: 0 0 20px; }
.work-detail-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #edf0f2; }
.work-original { display: inline-block; padding: 10px 18px; background: var(--coral); border-radius: 22px; color: #fff; text-decoration: none; font-size: 14px; }
.works-total { display: inline-block; margin-left: 6px; color: #f07564; background: #fff0eb; border-radius: 12px; padding: 3px 9px; font-size: 12px; font-weight: 400; vertical-align: middle; }
.works-pagination { max-width: 820px; margin: 22px auto 4px; padding: 10px 0 18px; text-align: center; color: #96a29a; font-size: 13px; }
.works-pagination p { margin: 0 0 12px; }
.works-load-more { border: 1px solid #f8c5ba; background: #fff3ee; color: #e97863; padding: 11px 28px; border-radius: 24px; min-height: 44px; }
.works-load-more:focus-visible { outline: 3px solid #1b73e8; outline-offset: 3px; }
.classmates-section { background: #f5fbff; min-height: calc(100vh - 240px); padding-top: 18px; }
.classmate-card { box-shadow: 0 5px 18px rgba(93,163,211,.13); }
.work-review-status { position: absolute; top: 10px; right: -20px; min-width: 96px; padding: 7px 16px; border-radius: 22px 0 0 22px; background: #35ca7b; color: #fff; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.5; }
.classmate-card .work-read h3 { margin-top: 18px; }
.classmate-card .work-excerpt { margin-bottom: 8px; }
.classmate-card .work-read-more, .classmate-card .work-card-footer { display: none; }
.painting-badge.classmate-media-status { background: #35ca7b; }
.video-open { position: relative; display: block; width: 100%; padding: 0; text-align: left; background: transparent; color: #263f35; }
.video-cover { position: relative; display: block; width: 100%; aspect-ratio: 3/2; overflow: hidden; background: #cbd7d2; }
.video-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-cover-shade { position: absolute; inset: 0; background: rgba(0,0,0,.1); }
.video-play-icon, .video-spinner { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; transform: translate(-50%,-50%); }
.video-play-icon { display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.25); color: white; }
.video-play-icon svg { display: block; width: 30px; height: 30px; margin-left: -4px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.video-spinner { display: none; border: 4px solid rgba(255,255,255,.32); border-top-color: #fff; border-radius: 50%; animation: video-loading-spin .85s linear infinite; }
.video-cover.is-loading .video-play-icon { display: none; }
.video-cover.is-loading .video-spinner { display: block; }
.video-open h3 { margin: 14px 12px 12px; font-size: 19px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-open:focus-visible { outline: 3px solid #1b73e8; outline-offset: -3px; }
.video-source { margin: 10px 12px 0; font-size: 10px; line-height: 1.5; color: #9ca69f; }
.video-source a { color: inherit; text-decoration: none; }
@keyframes video-loading-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .video-spinner { animation-duration: 2.4s; } }
.works-feed.art-grid { display: block; columns: 2; column-gap: 16px; max-width: 900px; }
.painting-card { position: relative; display: inline-block; width: 100%; margin: 0 0 16px; padding: 0 0 14px; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 5px 18px rgba(105,171,211,.12); break-inside: avoid; vertical-align: top; }
.painting-open { display: block; position: relative; width: 100%; padding: 0; background: transparent; text-align: left; color: #263f35; }
.painting-image-window { display: block; position: relative; overflow: hidden; width: 100%; background: #f1f5f8; }
.painting-image-window > img { position: absolute; display: block; max-width: none; width: var(--painting-width,100%); height: auto; left: var(--painting-left,0); top: var(--painting-top,0); }
.painting-badge { position: absolute; left: 0; top: 0; padding: 5px 12px; background: #ff795c; border-radius: 0 0 10px 0; font-size: 14px; color: #fff; font-weight: 700; }
.painting-open h3 { margin: 14px 12px 12px; font-size: 19px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.painting-author { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.painting-author .work-avatar { width: 40px; height: 40px; font-size: 17px; border-width: 2px; }
.painting-author > div { flex: 1; min-width: 0; }
.painting-author strong { color: #3b5045; font-size: 14px; }
.painting-author p { margin: 4px 0 0; color: #9a9f9c; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.painting-author .work-follow { flex-shrink: 0; font-size: 12px; padding: 2px 6px; }
.painting-date, .painting-creation { color: #969f99; font-size: 11px; line-height: 1.5; padding: 0 12px; margin: 10px 0 0; }
.painting-creation { margin-top: 2px; color: #a7ada9; }
.painting-open:focus-visible { outline: 3px solid #1b73e8; outline-offset: -3px; }
.painting-detail > .painting-image-window { border-radius: 8px; margin: 20px 0; }
.painting-description { color: #6c7d72; font-size: 16px; line-height: 1.9; }
.painting-facts { font-size: 14px; padding: 16px; background: #f6faf8; border-radius: 10px; }
.painting-facts > div { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 12px; margin: 10px 0; line-height: 1.7; }
.painting-facts dt { color: #98a19b; }
.painting-facts dd { margin: 0; color: #465d4f; overflow-wrap: anywhere; }
.painting-source-page { margin-top: 22px; font-size: 14px; color: #667c6e; }
.painting-source-page summary { cursor: pointer; padding: 8px 0; }
.painting-source-page img { display: block; width: 100%; height: auto; margin-top: 12px; }
.painting-error { display: none; padding: 20px; text-align: center; font-size: 13px; color: #8b9690; }
.painting-image-window.image-unavailable { display: grid; place-items: center; aspect-ratio: 4/3 !important; }
.image-unavailable .painting-error { display: block; }
@media (max-width: 700px) {
  .works-section { padding-left: 18px; padding-right: 18px; }
  .work-card { padding: 16px 14px; }
  .work-author-header { gap: 10px; padding-bottom: 14px; }
  .work-avatar { width: 44px; height: 44px; font-size: 19px; }
  .work-author-line { padding-right: 76px; gap: 6px; }
  .work-author-line strong { font-size: 15px; }
  .work-follow { padding: 1px 6px; font-size: 13px; }
  .work-author-info p { font-size: 12px; }
  .work-ribbon { right: -21px; min-width: 86px; padding: 6px 8px 6px 17px; font-size: 13px; }
  .work-read h3 { font-size: 19px; margin: 17px 0 12px; }
  .work-excerpt { font-size: 16px; }
  .work-detail h1 { font-size: 24px; }
  .work-article-body { font-size: 17px; }
  .work-teacher { font-size: 13px; }
  .work-review-status { right: -14px; top: 8px; min-width: 86px; padding: 6px 12px; font-size: 13px; }
  .works-feed.art-grid { column-gap: 12px; }
  .painting-card { margin-bottom: 12px; }
  .painting-open h3 { margin: 12px 10px 10px; font-size: 16px; }
  .video-open h3 { margin: 12px 10px 10px; font-size: 16px; }
  .video-play-icon, .video-spinner { width: 44px; height: 44px; }
  .painting-author { padding: 0 10px; flex-wrap: wrap; gap: 6px; }
  .painting-author .work-avatar { width: 32px; height: 32px; font-size: 14px; }
  .painting-author strong { font-size: 12px; }
  .painting-author .work-follow { font-size: 11px; padding: 1px 4px; }
  .painting-author p { font-size: 11px; }
  .painting-date, .painting-creation { padding: 0 10px; font-size: 10px; }
  .painting-facts { padding: 12px; font-size: 13px; }
  .painting-facts > div { grid-template-columns: 85px minmax(0,1fr); gap: 8px; }
}

.works-page-heading { background:#fff; padding:22px 30px 8px; }
.works-page-heading h1 { margin:0; color:#263f35; font-size:28px; font-weight:700; line-height:1.5; }
@media(max-width:700px) { .works-page-heading { padding:18px 18px 6px; } .works-page-heading h1 { font-size:25px; } }
