/* 模板 9 主题变量(墨绿文化出版风,对齐漓江出版社官网) 通过 :root 全局定义,确保组件内 var(--t9-*) 始终有值, 不依赖 data-template-id 作用域(兼容 SSR 布局注入时机) */ :root { --t9-primary: #008960; --t9-primary-dark: #006c4b; --t9-primary-light: #00a878; --t9-primary-soft: #e6f4ef; --t9-primary-faint: #f4faf8; --t9-bg: #ffffff; --t9-bg-soft: #f9f9f9; --t9-bg-gray: #f6f6f6; --t9-border: #e5e5e5; --t9-border-2: #cbcbcb; --t9-text: #505050; --t9-text-strong: #333333; --t9-text-secondary: #6e6e6e; --t9-muted: #959595; --t9-muted-light: #cbcbcb; --t9-muted-2: #8d8d8d; --t9-secondary: #00a878; --t9-accent: #c8a86b; --t9-success: #008960; --t9-danger: #c0392b; /* 页脚深色背景 */ --t9-footer-bg: #3a3a3a; --t9-footer-text: #9b9b9b; /* 固定内容区宽度(原站 1200px 设计稿) */ --t9-container: 1200px; } [data-template-id="template-09"] { --t9-primary: #008960; --t9-primary-dark: #006c4b; --t9-primary-light: #00a878; --t9-primary-soft: #e6f4ef; --t9-primary-faint: #f4faf8; --t9-bg: #ffffff; --t9-bg-soft: #f9f9f9; --t9-bg-gray: #f6f6f6; --t9-border: #e5e5e5; --t9-border-2: #cbcbcb; --t9-text: #505050; --t9-text-strong: #333333; --t9-text-secondary: #6e6e6e; --t9-muted: #959595; --t9-muted-light: #cbcbcb; --t9-muted-2: #8d8d8d; --t9-secondary: #00a878; --t9-accent: #c8a86b; --t9-success: #008960; --t9-danger: #c0392b; --t9-footer-bg: #3a3a3a; --t9-footer-text: #9b9b9b; --t9-container: 1200px; } /* 模板 9 固定宽度容器:桌面端 1200px 居中,移动端自适应留白 */ .t9-container { width: 100%; max-width: var(--t9-container); margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; } /* 栏目大标题:居中 + 下方短横线(对齐原站 .Title / .title) */ .t9-section-title { position: relative; text-align: center; font-size: 26px; line-height: 1.4; letter-spacing: 2px; color: var(--t9-text); padding: 44px 0 22px; } .t9-section-title::after { content: ''; display: block; width: 46px; height: 3px; margin: 14px auto 0; background-color: var(--t9-primary); border-radius: 2px; } /* 图书速递横向滚动条外观 */ .t9-scroll-x { scrollbar-width: thin; scrollbar-color: var(--t9-primary-light) transparent; } .t9-scroll-x::-webkit-scrollbar { height: 6px; } .t9-scroll-x::-webkit-scrollbar-track { background: transparent; } .t9-scroll-x::-webkit-scrollbar-thumb { background-color: var(--t9-primary-light); border-radius: 3px; } /* 单行/多行省略 */ .t9-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .t9-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .t9-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }