/*
 * 全局公共样式(reset): 所有装修页面共用一份, 编辑态与发布态都加载。
 *
 * 由 templates/sitebuilder/page.html 在 <head> 最前面引入 —— 必须排在 editor.css
 * 与各模块 css(模块 fragment 内部自带 <link>)之前, 否则会把模块样式重置掉。
 * 发布态靠 SiteStaticPublishServiceImpl 的 CSS_FILES 硬编码清单复制, 新增文件必须同步登记。
 *
 * 与参考站(MY SHOP.html 一类的成品站)同一份 reset: 模块 css 都是照那些站还原的,
 * 字号/字重/项目符号一律显式声明, 不依赖浏览器默认值。
 */
html,body,h1,h2,h3,h4,h5,h6,div,dl,dt,dd,ul,ol,li,p,blockquote,pre,hr,figure,table,caption,th,td,form,fieldset,legend,input,button,textarea,menu{margin:0; padding:0;}
body,textarea,input,button,select,keygen,legend{font-size:14px; color:#333; font-family:Arial; -webkit-text-size-adjust:none; outline:0;}
header,footer,section,article,aside,nav,hgroup,address,figure,figcaption,menu,details{display:block;}
table{border-collapse:collapse; border-spacing:0;}
caption,th{text-align:left; font-weight:normal;}
html,body,fieldset,img,iframe,abbr{border:none;}
i,cite,em,var,address,dfn{font-style:normal;}
li{list-style:none;}
h1,h2,h3,h4,h5,h6,small{font-size:100%;}
h1,h2,h3,h4,h5,h6,em,strong,b{font-weight:normal;}
sup,sub{font-size:80%;}
pre,code,kbd,samp{font-family:inherit;}
q:before,q:after{content:none;}
textarea{overflow:auto; resize:none;}
label,summary{cursor:default;}
a,button{cursor:pointer;}
ins,u,s,a{text-decoration:none;}

/*
 * ---- 富文本区的排版恢复 ----
 *
 * 上面这份 reset 是给结构性 HTML 用的: 导航/卡片列表不要项目符号, 标题字号一律由模块 css 定。
 * 但后台富文本编辑器产出的 HTML 不受模块 css 管 —— 用户在里面敲的 <ul>/<h2> 一旦被 reset
 * 抹平, 列表会变成没有符号的缩进文本、小标题会塌成正文大小。这里把这两样还回去。
 *
 * 覆盖的容器: .editor_txt(产品描述) / .sp-article-content、.sp-rich-section(新闻、案例正文、
 * 内容自定义页) / .custom_content(页尾自定义内容) / .deco-content(各模块的 content 字段)。
 * 模块 css 对同一容器另有声明时以模块为准(模块 css 在模块 fragment 内部引入, 加载更晚)。
 */
:is(.editor_txt, .sp-article-content, .sp-rich-section, .custom_content, .deco-content) ul { list-style: disc; padding-left: 24px; }
:is(.editor_txt, .sp-article-content, .sp-rich-section, .custom_content, .deco-content) ol { list-style: decimal; padding-left: 24px; }
:is(.editor_txt, .sp-article-content, .sp-rich-section, .custom_content, .deco-content) li { list-style: inherit; }
:is(.editor_txt, .sp-article-content, .sp-rich-section, .custom_content, .deco-content) :is(h1, h2, h3, h4, h5, h6) { font-weight: 600; }
/* 字号用 em: 富文本容器自身字号各模块不同(14~16px), 跟着容器缩放才协调 */
:is(.editor_txt, .sp-article-content, .sp-rich-section, .custom_content, .deco-content) h1 { font-size: 1.7em; }
:is(.editor_txt, .sp-article-content, .sp-rich-section, .custom_content, .deco-content) h2 { font-size: 1.4em; }
:is(.editor_txt, .sp-article-content, .sp-rich-section, .custom_content, .deco-content) h3 { font-size: 1.2em; }
:is(.editor_txt, .sp-article-content, .sp-rich-section, .custom_content, .deco-content) h4 { font-size: 1.05em; }
