/* 模板 10 主题变量(创芯存储科技蓝风格) 通过 :root 全局定义,确保组件内 var(--t10-*) 始终有值, 不依赖 data-template-id 作用域(兼容 SSR 布局注入时机) */ :root { --t10-primary: #0052D9; --t10-primary-dark: #003BB5; --t10-primary-light: #3370FF; --t10-primary-soft: #EAF2FF; --t10-primary-faint: #F5F9FF; --t10-bg: #ffffff; --t10-bg-soft: #F7F8FA; --t10-bg-gray: #F2F4F7; --t10-border: #E5E7EB; --t10-border-2: #D1D5DB; --t10-text: #1F2937; --t10-text-strong: #111827; --t10-text-secondary: #4B5563; --t10-muted: #9CA3AF; --t10-muted-light: #D1D5DB; --t10-muted-2: #6B7280; --t10-success: #10B981; --t10-danger: #EF4444; /* 页脚科技蓝背景 */ --t10-footer-bg: #0047BA; --t10-footer-text: rgba(255, 255, 255, 0.75); /* 固定内容区宽度 */ --t10-container: 1200px; } [data-template-id="template-10"] { --t10-primary: #0052D9; --t10-primary-dark: #003BB5; --t10-primary-light: #3370FF; --t10-primary-soft: #EAF2FF; --t10-primary-faint: #F5F9FF; --t10-bg: #ffffff; --t10-bg-soft: #F7F8FA; --t10-bg-gray: #F2F4F7; --t10-border: #E5E7EB; --t10-border-2: #D1D5DB; --t10-text: #1F2937; --t10-text-strong: #111827; --t10-text-secondary: #4B5563; --t10-muted: #9CA3AF; --t10-muted-light: #D1D5DB; --t10-muted-2: #6B7280; --t10-success: #10B981; --t10-danger: #EF4444; --t10-footer-bg: #0047BA; --t10-footer-text: rgba(255, 255, 255, 0.75); --t10-container: 1200px; } /* 模板 10 固定宽度容器 */ .t10-container { width: 100%; max-width: var(--t10-container); margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; } /* 栏目大标题:居左或居中 + 下方短横线 */ .t10-section-title { position: relative; font-size: 28px; line-height: 1.4; font-weight: 700; color: var(--t10-text-strong); padding-bottom: 16px; margin-bottom: 32px; } .t10-section-title::after { content: ''; display: block; width: 48px; height: 4px; margin-top: 14px; background-color: var(--t10-primary); border-radius: 2px; } .t10-section-title.t10-section-title-center { text-align: center; } .t10-section-title.t10-section-title-center::after { margin-left: auto; margin-right: auto; } .t10-section-subtitle { font-size: 14px; color: var(--t10-muted-2); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; } /* 单行/多行省略 */ .t10-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .t10-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .t10-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } /* 蓝色药丸按钮 */ .t10-btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 10px 28px; background-color: var(--t10-primary); color: #ffffff; font-size: 14px; font-weight: 500; border-radius: 9999px; transition: background-color 0.2s ease; } .t10-btn-primary:hover { background-color: var(--t10-primary-dark); } .t10-btn-outline { display: inline-flex; align-items: center; justify-content: center; padding: 9px 26px; border: 1px solid var(--t10-primary); color: var(--t10-primary); font-size: 14px; font-weight: 500; border-radius: 9999px; transition: all 0.2s ease; } .t10-btn-outline:hover { background-color: var(--t10-primary); color: #ffffff; } /* 通用页面顶部 Banner(非首页) */ .t10-page-banner { position: relative; overflow: hidden; min-height: 280px; display: flex; align-items: center; background-size: cover; background-position: center; } .t10-page-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 71, 186, 0.85) 0%, rgba(0, 71, 186, 0.55) 60%, rgba(0, 82, 217, 0.25) 100%); } .t10-page-banner .t10-banner-inner { position: relative; z-index: 10; } /* 标签页导航 */ .t10-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--t10-border); } .t10-tab { padding: 12px 20px; font-size: 15px; color: var(--t10-text-secondary); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.2s ease; white-space: nowrap; } .t10-tab:hover { color: var(--t10-primary); } .t10-tab.t10-tab-active { color: var(--t10-primary); border-bottom-color: var(--t10-primary); font-weight: 500; } /* 面包屑 */ .t10-breadcrumb { font-size: 13px; color: rgba(255, 255, 255, 0.75); } .t10-breadcrumb a:hover { color: #ffffff; } /* 滚动条 */ .t10-scroll-x { scrollbar-width: thin; scrollbar-color: var(--t10-primary-light) transparent; } .t10-scroll-x::-webkit-scrollbar { height: 6px; } .t10-scroll-x::-webkit-scrollbar-track { background: transparent; } .t10-scroll-x::-webkit-scrollbar-thumb { background-color: var(--t10-primary-light); border-radius: 3px; }