/*
Theme Name: Weichi Elementor
Theme URI: https://weichi.nopay123.com
Author: Weichi
Description: 仿 capella.edu 测试站主题 —— 快照式仿站方法，配合 weichi-core 插件使用。
Version: 0.1.0
Requires PHP: 8.2
Text Domain: weichi
*/

/*
	本文件只放两样东西，别的一律不许进来：
	1. 设计令牌（CSS 自定义属性）—— 抠自 www.capella.edu 全局样式表
	   etc.clientlibs/visitorcenter/clientlibs/visitorcenter-themes/vcrefresh.min.css
	   （2026-08-20 归档实测：品牌红 #C10016 出现 86 次，字体 Inter-Bold/Regular/Italic）
	2. 基础重置/排版

	模块自己的视觉样式一律放 snapshots/<模块名>.css，不要往这里加选择器。
*/

:root {
	--brand: #C10016;
	--brand-hover: #98010f;
	--surface: #ffffff;
	--surface-alt: #f5f5f5;
	--text: #212322;           /* 参考站 body color，原 #000000 */
	--text-secondary: #5c5c63;
	--text-inverse: #f5f5f5;
	--border: #e4e4e7;
	--font-sans: "Inter-Regular", Arial, Verdana, sans-serif;
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-8: 64px;
	--max-width: 1400px;
	--header-h: 88px;
	--radius: 5px;
	--shadow: 0 5px 5px 0 #d9d9d9;
}

/* === 字体：Inter-* / lato-* ===
   参考站每一页的类名/CSS 里到处直接写 font-family:Inter-Bold / Inter-Regular / lato-bold 等
   （见 vcrefresh.min.css @font-face 声明——这些是各自独立的 family 名，不是一个字体家族的
   不同 weight）。抠 CSS 时把这些 font-family 值原样保留了，但一直没补上对应的 @font-face，
   浏览器找不到叫这个名字的字体，又因为很多规则是单值没写兜底字体（如 .brand-btn{font-family:
   Inter-Bold}），直接掉到浏览器默认衬线字体——2026-08-22 实测首页 hero 标题/正文/按钮
   全部显示成默认衬线字体，就是这个原因。字体文件本身归档里有（.woff2，Inter/Lato 都是开源字体，
   OFL 协议，可以直接用），补 @font-face 就行，不用像 icon 字体那样找替代方案。
   Inter-Black、lato-light 归档里没有对应的 .woff2（mirror-site.py 没抓到，同类缺口），
   当前没有页面在关键位置用到，先不处理。 */
@font-face {
	font-family: "Inter-Regular";
	src: url("assets/fonts/Inter-Regular.woff2") format("woff2");
	font-display: swap;
}
@font-face {
	font-family: "Inter-Bold";
	src: url("assets/fonts/Inter-Bold.woff2") format("woff2");
	font-display: swap;
}
@font-face {
	font-family: "Inter-Light";
	src: url("assets/fonts/Inter-Light.woff2") format("woff2");
	font-display: swap;
}
@font-face {
	font-family: "Inter-Italic";
	src: url("assets/fonts/Inter-Italic.woff2") format("woff2");
	font-display: swap;
}
@font-face {
	font-family: "lato-regular";
	src: url("assets/fonts/lato-regular.woff2") format("woff2");
	font-display: swap;
}
@font-face {
	font-family: "lato-bold";
	src: url("assets/fonts/lato-bold.woff2") format("woff2");
	font-display: swap;
}
@font-face {
	font-family: "lato-italic";
	src: url("assets/fonts/lato-italic.woff2") format("woff2");
	font-display: swap;
}
@font-face {
	font-family: "lato-black";
	src: url("assets/fonts/lato-black.woff2") format("woff2");
	font-display: swap;
}

*,
*:before,
*:after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html {
	font-size: 15px;           /* 参考站 root font-size，让 rem 单位以 15px 为基准 */
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
body {
	font-family: var(--font-sans);
	font-size: 15px;   /* 参考站 capella.edu body base = 15px，原 16px 偏大 */
	line-height: 1.5;
	color: var(--text);
	background: var(--surface);
	padding-top: var(--header-h);
	overflow-x: hidden;
}
img {
	max-width: 100%;
	height: auto;
	display: block;
}
a {
	color: var(--brand);
	text-decoration: none;
}
h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.2;
}
.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 var(--space-5);
}

/* 对应参考站 .cu-wrapper，超宽屏内容居中 */
.cu-wrapper {
	max-width: 1440px;
	margin: 0 auto;
	overflow: hidden;
}
