anthology.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533
  1. /* resources/css/modules/anthology.css
  2. 文集栏目专属样式。
  3. 已提取到公共层:
  4. - components/card-book.css → .book-cover 封面组件
  5. - components/card.css → .author-avatar 头像组件
  6. */
  7. /* ══════════════════════════════════════════
  8. 一、文集卡片(.anthology-card)横向布局
  9. ══════════════════════════════════════════ */
  10. .anthology-card {
  11. background: var(--wp-card-bg);
  12. border: 1px solid var(--wp-border);
  13. border-radius: 10px;
  14. overflow: hidden;
  15. display: flex;
  16. transition:
  17. box-shadow 0.25s,
  18. transform 0.25s;
  19. margin-bottom: 1.1rem;
  20. text-decoration: none;
  21. color: inherit;
  22. }
  23. .anthology-card:hover {
  24. box-shadow:
  25. 0 8px 28px rgba(200, 134, 10, 0.12),
  26. 0 2px 8px rgba(0, 0, 0, 0.06);
  27. transform: translateY(-2px);
  28. color: inherit;
  29. text-decoration: none;
  30. }
  31. .anthology-card .book-cover {
  32. border-radius: 0;
  33. }
  34. .anthology-card__body {
  35. padding: 1.1rem 1.4rem;
  36. flex: 1;
  37. display: flex;
  38. flex-direction: column;
  39. min-width: 0;
  40. }
  41. .anthology-card__title {
  42. font-family: 'Noto Serif SC', 'Noto Serif', Georgia, serif;
  43. font-size: 1.1rem;
  44. font-weight: 600;
  45. color: var(--wp-ink);
  46. margin-bottom: 0.35rem;
  47. line-height: 1.4;
  48. }
  49. .anthology-card:hover .anthology-card__title {
  50. color: var(--wp-brand);
  51. }
  52. .anthology-card__desc {
  53. font-size: 0.8rem;
  54. color: var(--wp-ink-muted);
  55. margin-bottom: 0.65rem;
  56. line-height: 1.65;
  57. }
  58. .anthology-card__author {
  59. margin-bottom: 0.7rem;
  60. }
  61. .anthology-card__tags {
  62. display: flex;
  63. flex-wrap: wrap;
  64. gap: 0.3rem;
  65. margin-top: auto;
  66. }
  67. .anthology-tag {
  68. font-size: 0.7rem;
  69. color: var(--wp-ink-muted);
  70. background: var(--wp-brand-light);
  71. border: 1px solid var(--wp-border);
  72. padding: 1px 7px;
  73. border-radius: 4px;
  74. white-space: nowrap;
  75. }
  76. .anthology-tag--more {
  77. background: transparent;
  78. border-color: transparent;
  79. color: var(--wp-brand);
  80. }
  81. .anthology-card__meta {
  82. display: flex;
  83. align-items: center;
  84. gap: 0.85rem;
  85. margin-top: 0.65rem;
  86. padding-top: 0.65rem;
  87. border-top: 1px solid var(--wp-border);
  88. }
  89. .anthology-meta-item {
  90. font-size: 0.72rem;
  91. color: var(--wp-ink-muted);
  92. display: flex;
  93. align-items: center;
  94. gap: 0.25rem;
  95. }
  96. /* ══════════════════════════════════════════
  97. 二、页面头部(index 页)
  98. ══════════════════════════════════════════ */
  99. .anthology-page-header {
  100. background: linear-gradient(135deg, var(--wp-ink) 0%, #2d2010 100%);
  101. padding: 2.25rem 0 2rem;
  102. position: relative;
  103. overflow: hidden;
  104. }
  105. .anthology-page-header::before {
  106. content: '藏';
  107. font-family: 'Noto Serif SC', serif;
  108. font-size: 16rem;
  109. font-weight: 700;
  110. color: rgba(255, 255, 255, 0.03);
  111. position: absolute;
  112. right: -1rem;
  113. top: -2.5rem;
  114. line-height: 1;
  115. pointer-events: none;
  116. }
  117. .anthology-page-header h1 {
  118. font-family: 'Noto Serif SC', 'Noto Serif', Georgia, serif;
  119. font-size: 1.75rem;
  120. font-weight: 600;
  121. color: #fff;
  122. margin: 0 0 0.3rem;
  123. letter-spacing: 0.08em;
  124. }
  125. .anthology-page-header p {
  126. color: rgba(255, 255, 255, 0.45);
  127. font-size: 0.85rem;
  128. margin: 0;
  129. }
  130. .result-badge {
  131. background: var(--wp-brand);
  132. color: var(--wp-ink);
  133. font-size: 0.75rem;
  134. font-weight: 700;
  135. padding: 2px 9px;
  136. border-radius: 20px;
  137. margin-left: 0.6rem;
  138. vertical-align: middle;
  139. }
  140. /* ══════════════════════════════════════════
  141. 三、侧边栏卡片(index + show 共用)
  142. ══════════════════════════════════════════ */
  143. .sb-card {
  144. background: var(--wp-card-bg);
  145. border: 1px solid var(--wp-border);
  146. border-radius: 10px;
  147. overflow: hidden;
  148. margin-bottom: 1.15rem;
  149. }
  150. .sb-head {
  151. padding: 0.8rem 1.2rem;
  152. border-bottom: 1px solid var(--wp-border);
  153. font-family: 'Noto Serif SC', 'Noto Serif', Georgia, serif;
  154. font-size: 0.875rem;
  155. font-weight: 600;
  156. color: var(--wp-ink-soft);
  157. letter-spacing: 0.04em;
  158. display: flex;
  159. align-items: center;
  160. gap: 0.45rem;
  161. }
  162. .sb-head::before {
  163. content: '';
  164. display: block;
  165. width: 3px;
  166. height: 13px;
  167. background: var(--wp-brand);
  168. border-radius: 2px;
  169. }
  170. .smeta-row {
  171. display: flex;
  172. padding: 0.7rem 1.2rem;
  173. border-bottom: 1px solid var(--wp-border);
  174. font-size: 0.8rem;
  175. align-items: flex-start;
  176. gap: 0.45rem;
  177. }
  178. .smeta-row:last-child {
  179. border-bottom: none;
  180. }
  181. .smeta-label {
  182. color: var(--wp-ink-muted);
  183. min-width: 65px;
  184. flex-shrink: 0;
  185. }
  186. .smeta-value {
  187. color: var(--wp-ink-soft);
  188. font-weight: 500;
  189. }
  190. .smeta-value a {
  191. color: var(--wp-brand);
  192. text-decoration: none;
  193. }
  194. .smeta-value a:hover {
  195. text-decoration: underline;
  196. }
  197. .author-block {
  198. display: flex;
  199. align-items: center;
  200. gap: 0.8rem;
  201. padding: 1.1rem 1.2rem;
  202. }
  203. .author-block-name {
  204. font-weight: 600;
  205. font-size: 0.9rem;
  206. color: var(--wp-ink);
  207. margin-bottom: 0.18rem;
  208. }
  209. .author-block-stats {
  210. font-size: 0.75rem;
  211. color: var(--wp-ink-muted);
  212. }
  213. .author-bio {
  214. font-size: 0.78rem;
  215. color: var(--wp-ink-muted);
  216. line-height: 1.65;
  217. padding: 0.9rem 1.2rem 1.1rem;
  218. border-top: 1px solid var(--wp-border);
  219. }
  220. .related-ul {
  221. list-style: none;
  222. padding: 0;
  223. margin: 0;
  224. }
  225. .related-ul li a {
  226. display: flex;
  227. align-items: center;
  228. gap: 0.7rem;
  229. padding: 0.7rem 1.2rem;
  230. border-bottom: 1px solid var(--wp-border);
  231. text-decoration: none;
  232. transition: background 0.15s;
  233. }
  234. .related-ul li:last-child a {
  235. border-bottom: none;
  236. }
  237. .related-ul li a:hover {
  238. background: var(--wp-surface-alt);
  239. }
  240. .related-t {
  241. font-size: 0.8rem;
  242. color: var(--wp-ink-soft);
  243. font-weight: 500;
  244. margin-bottom: 0.18rem;
  245. line-height: 1.3;
  246. }
  247. .related-ul li a:hover .related-t {
  248. color: var(--wp-brand);
  249. }
  250. .related-a {
  251. font-size: 0.7rem;
  252. color: var(--wp-ink-muted);
  253. }
  254. .author-ul {
  255. list-style: none;
  256. padding: 0.35rem 0;
  257. margin: 0;
  258. }
  259. .author-ul li a {
  260. display: flex;
  261. align-items: center;
  262. gap: 0.6rem;
  263. padding: 0.45rem 1.15rem;
  264. text-decoration: none;
  265. transition: background 0.15s;
  266. }
  267. .author-ul li a:hover {
  268. background: var(--wp-surface-alt);
  269. }
  270. /* ══════════════════════════════════════════
  271. 四、文章目录(show 页)
  272. ══════════════════════════════════════════ */
  273. .sec-card {
  274. background: var(--wp-card-bg);
  275. border: 1px solid var(--wp-border);
  276. border-radius: 10px;
  277. overflow: hidden;
  278. margin-bottom: 1.3rem;
  279. }
  280. .sec-header {
  281. padding: 0.85rem 1.4rem;
  282. border-bottom: 1px solid var(--wp-border);
  283. display: flex;
  284. align-items: center;
  285. gap: 0.55rem;
  286. }
  287. .sec-bar {
  288. width: 3px;
  289. height: 15px;
  290. background: var(--wp-brand);
  291. border-radius: 2px;
  292. flex-shrink: 0;
  293. }
  294. .sec-title {
  295. font-family: 'Noto Serif SC', 'Noto Serif', Georgia, serif;
  296. font-size: 0.9rem;
  297. font-weight: 600;
  298. color: var(--wp-ink-soft);
  299. letter-spacing: 0.04em;
  300. }
  301. .sec-count {
  302. margin-left: auto;
  303. font-size: 0.75rem;
  304. color: var(--wp-ink-muted);
  305. background: var(--wp-brand-light);
  306. padding: 2px 8px;
  307. border-radius: 10px;
  308. }
  309. .sec-body {
  310. padding: 1.15rem 1.4rem;
  311. font-size: 0.855rem;
  312. color: var(--wp-ink-soft);
  313. line-height: 1.95;
  314. }
  315. .sec-body p {
  316. margin-bottom: 0.8rem;
  317. }
  318. .sec-body p:last-child {
  319. margin-bottom: 0;
  320. }
  321. .toc-ul {
  322. list-style: none;
  323. padding: 0.35rem 0;
  324. margin: 0;
  325. }
  326. .toc-ul li a {
  327. display: flex;
  328. align-items: center;
  329. padding: 0.65rem 1.4rem;
  330. text-decoration: none;
  331. border-bottom: 1px solid rgba(232, 221, 208, 0.5);
  332. transition: background 0.15s;
  333. }
  334. .toc-ul li:last-child a {
  335. border-bottom: none;
  336. }
  337. .toc-ul li a:hover {
  338. background: var(--wp-surface-alt);
  339. }
  340. .toc-num {
  341. font-size: 0.72rem;
  342. color: var(--wp-ink-muted);
  343. width: 26px;
  344. flex-shrink: 0;
  345. }
  346. .toc-name {
  347. font-size: 0.855rem;
  348. color: var(--wp-ink-soft);
  349. flex: 1;
  350. line-height: 1.4;
  351. }
  352. .toc-ul li a:hover .toc-name {
  353. color: var(--wp-brand);
  354. }
  355. .toc-arrow {
  356. color: var(--wp-border);
  357. font-size: 0.85rem;
  358. }
  359. .toc-ul li a:hover .toc-arrow {
  360. color: var(--wp-brand);
  361. }
  362. /* ══════════════════════════════════════════
  363. 五、Hero(show 页)
  364. ══════════════════════════════════════════ */
  365. .anthology-hero {
  366. background: linear-gradient(135deg, var(--wp-ink) 0%, #2d2010 100%);
  367. padding: 2.5rem 0;
  368. }
  369. .hero-inner {
  370. display: flex;
  371. gap: 2.25rem;
  372. align-items: flex-start;
  373. }
  374. .hero-content {
  375. flex: 1;
  376. min-width: 0;
  377. }
  378. .hero-title {
  379. font-family: 'Noto Serif SC', 'Noto Serif', Georgia, serif;
  380. font-size: 1.75rem;
  381. font-weight: 700;
  382. color: #fff;
  383. line-height: 1.3;
  384. margin-bottom: 0.4rem;
  385. }
  386. .hero-subtitle {
  387. font-size: 0.88rem;
  388. color: rgba(255, 255, 255, 0.45);
  389. font-style: italic;
  390. letter-spacing: 0.04em;
  391. margin-bottom: 1.1rem;
  392. }
  393. .hero-tags {
  394. display: flex;
  395. flex-wrap: wrap;
  396. gap: 0.35rem;
  397. margin-bottom: 1.3rem;
  398. }
  399. .hero-tag {
  400. font-size: 0.72rem;
  401. padding: 2px 9px;
  402. border-radius: 20px;
  403. background: rgba(200, 134, 10, 0.2);
  404. color: var(--wp-brand);
  405. border: 1px solid rgba(200, 134, 10, 0.3);
  406. }
  407. .hero-info-row {
  408. display: flex;
  409. flex-wrap: wrap;
  410. gap: 1.4rem;
  411. margin-bottom: 1.3rem;
  412. }
  413. .hi-item {
  414. display: flex;
  415. align-items: center;
  416. gap: 0.45rem;
  417. }
  418. .hi-label {
  419. font-size: 0.72rem;
  420. color: rgba(255, 255, 255, 0.4);
  421. letter-spacing: 0.04em;
  422. display: block;
  423. }
  424. .hi-value {
  425. font-size: 0.83rem;
  426. color: rgba(255, 255, 255, 0.82);
  427. display: block;
  428. }
  429. .hero-desc {
  430. font-size: 0.85rem;
  431. color: rgba(255, 255, 255, 0.6);
  432. line-height: 1.85;
  433. margin-bottom: 1.6rem;
  434. max-width: 600px;
  435. }
  436. .btn-read-primary {
  437. background: var(--wp-brand);
  438. color: var(--wp-ink);
  439. font-weight: 700;
  440. font-size: 0.88rem;
  441. padding: 0.55rem 1.6rem;
  442. border-radius: 6px;
  443. border: none;
  444. cursor: pointer;
  445. text-decoration: none;
  446. display: inline-flex;
  447. align-items: center;
  448. gap: 0.45rem;
  449. transition:
  450. background 0.2s,
  451. transform 0.15s;
  452. }
  453. .btn-read-primary:hover {
  454. background: #dea020;
  455. color: var(--wp-ink);
  456. transform: translateY(-1px);
  457. }
  458. .btn-outline-hero {
  459. background: transparent;
  460. color: rgba(255, 255, 255, 0.7);
  461. font-size: 0.85rem;
  462. padding: 0.5rem 1.3rem;
  463. border-radius: 6px;
  464. border: 1px solid rgba(255, 255, 255, 0.2);
  465. cursor: pointer;
  466. text-decoration: none;
  467. display: inline-flex;
  468. align-items: center;
  469. gap: 0.4rem;
  470. transition: all 0.2s;
  471. margin-left: 0.65rem;
  472. }
  473. .btn-outline-hero:hover {
  474. border-color: rgba(255, 255, 255, 0.5);
  475. color: #fff;
  476. }
  477. /* ══════════════════════════════════════════
  478. 六、响应式
  479. ══════════════════════════════════════════ */
  480. @media (max-width: 900px) {
  481. .hero-inner {
  482. flex-direction: column;
  483. align-items: center;
  484. }
  485. }
  486. @media (max-width: 768px) {
  487. .anthology-card {
  488. flex-direction: column;
  489. }
  490. .anthology-card .book-cover--md {
  491. width: 100%;
  492. min-width: unset;
  493. height: 90px;
  494. }
  495. }