style.css 57 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769
  1. /* ============================================================
  2. 亿图腾 · 浠艾福 — 企业官网样式表
  3. 设计系统基于 DESIGN.md 设计 Token
  4. ============================================================ */
  5. /* ----------------------------------------------------------
  6. 0. CSS Custom Properties (Design Tokens)
  7. ---------------------------------------------------------- */
  8. :root {
  9. /* Brand Colors (from logo sky-blue palette) */
  10. --color-primary: #4A9BD7;
  11. --color-primary-hover: #3993CC;
  12. --color-primary-light: #E8F4FA;
  13. --color-secondary: #4ECDC4;
  14. --color-accent: #FFD93D;
  15. --color-accent-light: #FFFBEB;
  16. /* Text Colors */
  17. --color-text-primary: #2D3436;
  18. --color-text-secondary: #636E72;
  19. --color-text-muted: #B2BEC3;
  20. /* Surfaces */
  21. --bg-body: #F5FAFE;
  22. --bg-surface: #FFFFFF;
  23. --bg-section-alt: #EEF5FB;
  24. /* Other UI */
  25. --color-border: #D8E5F0;
  26. --color-border-light: #E5EEF5;
  27. --shadow-sm: 0 1px 3px rgba(45, 52, 54, .08);
  28. --shadow-md: 0 4px 12px rgba(45, 52, 54, .10);
  29. --shadow-lg: 0 12px 40px rgba(45, 52, 54, .12);
  30. --shadow-xl: 0 24px 60px rgba(45, 52, 54, .15);
  31. /* Typography */
  32. --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  33. --font-size-display: clamp(2.25rem, 5vw, 3.5rem);
  34. --font-size-h1: clamp(1.75rem, 4vw, 2.5rem);
  35. --font-size-h2: clamp(1.5rem, 3vw, 2.25rem);
  36. --font-size-h3: 1.25rem;
  37. --font-size-body: 1rem;
  38. --font-size-small: .875rem;
  39. --font-size-tiny: .75rem;
  40. /* Spacing */
  41. --space-xs: .5rem;
  42. --space-sm: .75rem;
  43. --space-md: 1rem;
  44. --space-lg: 1.5rem;
  45. --space-xl: 2rem;
  46. --space-2xl: 3rem;
  47. --space-3xl: 4rem;
  48. --space-section: 5rem;
  49. /* Border Radius */
  50. --radius-sm: 8px;
  51. --radius-md: 12px;
  52. --radius-lg: 16px;
  53. --radius-xl: 24px;
  54. --radius-full: 9999px;
  55. /* Transitions */
  56. --transition-fast: .2s ease;
  57. --transition-normal: .3s ease;
  58. --transition-slow: .5s cubic-bezier(.4, 0, .2, 1);
  59. /* Layout */
  60. --max-width: 1200px;
  61. --header-height: 64px;
  62. }
  63. /* ----------------------------------------------------------
  64. 1. Reset & Base
  65. ---------------------------------------------------------- */
  66. *, *::before, *::after {
  67. margin: 0;
  68. padding: 0;
  69. box-sizing: border-box;
  70. }
  71. html {
  72. scroll-behavior: smooth;
  73. -webkit-text-size-adjust: 100%;
  74. scroll-padding-top: var(--header-height);
  75. scroll-snap-type: y proximity;
  76. }
  77. /* Sections gently align when scrolling stops */
  78. section[id] {
  79. scroll-snap-align: start;
  80. }
  81. body {
  82. font-family: var(--font-family);
  83. font-size: var(--font-size-body);
  84. line-height: 1.6;
  85. color: var(--color-text-primary);
  86. background: var(--bg-body);
  87. -webkit-font-smoothing: antialiased;
  88. -moz-osx-font-smoothing: grayscale;
  89. overflow-x: hidden;
  90. }
  91. img { max-width: 100%; height: auto; display: block; }
  92. a { color: inherit; text-decoration: none; }
  93. ul { list-style: none; }
  94. /* ----------------------------------------------------------
  95. 2. Container
  96. ---------------------------------------------------------- */
  97. .container {
  98. width: 100%;
  99. max-width: var(--max-width);
  100. margin: 0 auto;
  101. padding: 0 var(--space-xl);
  102. }
  103. /* ----------------------------------------------------------
  104. 3. Header / Navigation
  105. ---------------------------------------------------------- */
  106. .site-header {
  107. position: fixed;
  108. top: 0;
  109. left: 0;
  110. right: 0;
  111. height: var(--header-height);
  112. background: rgba(245, 250, 254, .92);
  113. backdrop-filter: blur(16px) saturate(180%);
  114. -webkit-backdrop-filter: blur(16px) saturate(180%);
  115. border-bottom: 1px solid var(--color-border-light);
  116. z-index: 1000;
  117. transition: box-shadow var(--transition-normal);
  118. }
  119. .site-header.scrolled {
  120. box-shadow: var(--shadow-sm);
  121. }
  122. .header-inner {
  123. display: flex;
  124. align-items: center;
  125. justify-content: space-between;
  126. height: 100%;
  127. }
  128. /* Logo */
  129. .logo {
  130. display: flex;
  131. align-items: center;
  132. gap: var(--space-xs);
  133. font-weight: 700;
  134. font-size: 1.125rem;
  135. }
  136. .logo-icon { font-size: 1.5rem; }
  137. .logo-text {
  138. color: var(--color-text-primary);
  139. }
  140. .logo-tag {
  141. color: var(--color-primary);
  142. font-weight: 600;
  143. }
  144. /* Nav Toggle (Mobile) */
  145. .nav-toggle {
  146. display: none;
  147. flex-direction: column;
  148. gap: 5px;
  149. background: none;
  150. border: none;
  151. cursor: pointer;
  152. padding: 4px;
  153. z-index: 1001;
  154. }
  155. .nav-toggle span {
  156. display: block;
  157. width: 24px;
  158. height: 2px;
  159. background: var(--color-text-primary);
  160. border-radius: 2px;
  161. transition: var(--transition-fast);
  162. transform-origin: center;
  163. }
  164. .nav-toggle.active span:nth-child(1) {
  165. transform: translateY(7px) rotate(45deg);
  166. }
  167. .nav-toggle.active span:nth-child(2) {
  168. opacity: 0;
  169. }
  170. .nav-toggle.active span:nth-child(3) {
  171. transform: translateY(-7px) rotate(-45deg);
  172. }
  173. /* Nav List */
  174. .nav-list {
  175. display: flex;
  176. align-items: center;
  177. gap: var(--space-lg);
  178. }
  179. .nav-link {
  180. font-size: var(--font-size-small);
  181. font-weight: 500;
  182. color: var(--color-text-secondary);
  183. transition: color var(--transition-fast);
  184. position: relative;
  185. padding: var(--space-xs) 0;
  186. }
  187. .nav-link::after {
  188. content: '';
  189. position: absolute;
  190. bottom: 0;
  191. left: 0;
  192. width: 0;
  193. height: 2px;
  194. background: var(--color-primary);
  195. border-radius: 1px;
  196. transition: width var(--transition-normal);
  197. }
  198. .nav-link:hover,
  199. .nav-link.active {
  200. color: var(--color-primary);
  201. }
  202. .nav-link:hover::after,
  203. .nav-link.active::after {
  204. width: 100%;
  205. }
  206. /* Nav login button */
  207. .nav-login-btn {
  208. display: inline-flex;
  209. align-items: center;
  210. padding: .5rem 1.125rem;
  211. font-size: var(--font-size-tiny);
  212. font-weight: 600;
  213. color: #fff;
  214. background: var(--color-primary);
  215. border-radius: var(--radius-full);
  216. transition: all var(--transition-fast);
  217. margin-left: var(--space-md);
  218. white-space: nowrap;
  219. }
  220. .nav-login-btn:hover {
  221. background: var(--color-primary-hover);
  222. transform: translateY(-1px);
  223. box-shadow: 0 4px 12px rgba(74, 155, 215, .3);
  224. }
  225. /* ----------------------------------------------------------
  226. 4. Section Shell
  227. ---------------------------------------------------------- */
  228. .section {
  229. padding: var(--space-section) 0;
  230. }
  231. .section-header {
  232. text-align: center;
  233. max-width: 720px;
  234. margin: 0 auto var(--space-3xl);
  235. }
  236. .section-tag {
  237. display: inline-block;
  238. font-size: var(--font-size-tiny);
  239. font-weight: 600;
  240. letter-spacing: .08em;
  241. text-transform: uppercase;
  242. color: var(--color-primary);
  243. background: var(--color-primary-light);
  244. padding: .35em 1em;
  245. border-radius: var(--radius-full);
  246. margin-bottom: var(--space-md);
  247. }
  248. .section-title {
  249. font-size: var(--font-size-h1);
  250. font-weight: 700;
  251. line-height: 1.25;
  252. margin-bottom: var(--space-md);
  253. color: var(--color-text-primary);
  254. }
  255. .section-subtitle {
  256. font-size: 1.1rem;
  257. font-weight: 500;
  258. color: var(--color-primary);
  259. margin-bottom: var(--space-md);
  260. letter-spacing: .02em;
  261. }
  262. .section-desc {
  263. font-size: var(--font-size-body);
  264. color: var(--color-text-secondary);
  265. line-height: 1.7;
  266. max-width: 600px;
  267. margin: 0 auto;
  268. }
  269. /* ----------------------------------------------------------
  270. 5. Buttons
  271. ---------------------------------------------------------- */
  272. .btn {
  273. display: inline-flex;
  274. align-items: center;
  275. gap: var(--space-xs);
  276. padding: .75rem 1.75rem;
  277. font-family: var(--font-family);
  278. font-size: var(--font-size-small);
  279. font-weight: 600;
  280. border-radius: var(--radius-md);
  281. border: 2px solid transparent;
  282. cursor: pointer;
  283. transition: all var(--transition-fast);
  284. text-align: center;
  285. }
  286. .btn-primary {
  287. background: var(--color-primary);
  288. color: #fff;
  289. border-color: var(--color-primary);
  290. }
  291. .btn-primary:hover {
  292. background: var(--color-primary-hover);
  293. border-color: var(--color-primary-hover);
  294. transform: translateY(-2px);
  295. box-shadow: 0 8px 24px rgba(74, 155, 215, .35);
  296. }
  297. .btn-outline {
  298. background: var(--color-primary);
  299. color: #fff;
  300. border-color: var(--color-primary);
  301. }
  302. .btn-outline:hover {
  303. background: var(--color-primary-hover);
  304. border-color: var(--color-primary-hover);
  305. transform: translateY(-2px);
  306. }
  307. .btn-accent {
  308. background: linear-gradient(135deg, var(--color-primary) 0%, #6BB5E0 100%);
  309. color: #fff;
  310. border-color: var(--color-primary);
  311. box-shadow: 0 4px 16px rgba(74, 155, 215, .3);
  312. }
  313. .btn-accent:hover {
  314. transform: translateY(-2px);
  315. box-shadow: 0 8px 28px rgba(74, 155, 215, .45);
  316. background: linear-gradient(135deg, var(--color-primary-hover) 0%, #5DABD6 100%);
  317. }
  318. /* Hero service provider link */
  319. .hero-service-link {
  320. margin-top: var(--space-lg);
  321. font-size: var(--font-size-small);
  322. color: var(--color-text-muted);
  323. display: flex;
  324. align-items: center;
  325. gap: var(--space-xs);
  326. }
  327. .hero-service-link a {
  328. color: var(--color-primary);
  329. font-weight: 600;
  330. transition: color var(--transition-fast);
  331. }
  332. .hero-service-link a:hover {
  333. color: var(--color-primary-hover);
  334. text-decoration: underline;
  335. }
  336. /* Role card login button */
  337. .role-login-btn {
  338. display: inline-block;
  339. margin-top: var(--space-md);
  340. padding: .5rem 1.25rem;
  341. font-size: var(--font-size-tiny);
  342. font-weight: 600;
  343. color: #fff;
  344. background: var(--color-text-primary);
  345. border-radius: var(--radius-full);
  346. transition: all var(--transition-fast);
  347. }
  348. .role-login-btn:hover {
  349. background: var(--color-primary);
  350. transform: translateY(-1px);
  351. box-shadow: 0 4px 12px rgba(74, 155, 215, .25);
  352. }
  353. .role-teacher .role-login-btn:hover {
  354. background: #3B82F6;
  355. box-shadow: 0 4px 12px rgba(59, 130, 246, .3);
  356. }
  357. .role-admin .role-login-btn:hover {
  358. background: #6366F1;
  359. box-shadow: 0 4px 12px rgba(99, 102, 241, .3);
  360. }
  361. /* ----------------------------------------------------------
  362. 6. Hero Section
  363. ---------------------------------------------------------- */
  364. .hero {
  365. min-height: 100vh;
  366. display: flex;
  367. align-items: center;
  368. position: relative;
  369. padding-top: var(--header-height);
  370. overflow: hidden;
  371. }
  372. .hero-bg {
  373. position: absolute;
  374. inset: 0;
  375. background:
  376. url(../img/hero-family-bg.png) center/cover no-repeat,
  377. radial-gradient(ellipse 80% 50% at 50% -10%, rgba(74, 155, 215, .10), transparent),
  378. radial-gradient(ellipse 60% 40% at 80% 80%, rgba(78, 205, 196, .08), transparent),
  379. radial-gradient(ellipse 50% 50% at 20% 70%, rgba(255, 217, 61, .06), transparent);
  380. pointer-events: none;
  381. }
  382. .hero-bg::after {
  383. content: '';
  384. position: absolute;
  385. inset: 0;
  386. background: linear-gradient(
  387. to right,
  388. rgba(254, 249, 240, 0.82) 0%,
  389. rgba(254, 249, 240, 0.65) 45%,
  390. rgba(254, 249, 240, 0.10) 70%,
  391. transparent 100%
  392. );
  393. pointer-events: none;
  394. }
  395. .hero-inner {
  396. display: grid;
  397. grid-template-columns: 1fr 1fr;
  398. gap: var(--space-3xl);
  399. align-items: center;
  400. position: relative;
  401. z-index: 1;
  402. }
  403. .hero-badge {
  404. display: inline-block;
  405. font-size: var(--font-size-tiny);
  406. font-weight: 600;
  407. letter-spacing: .06em;
  408. color: var(--color-primary);
  409. background: var(--color-primary-light);
  410. padding: .4em 1.2em;
  411. border-radius: var(--radius-full);
  412. margin-bottom: var(--space-lg);
  413. }
  414. .hero-title {
  415. font-size: var(--font-size-display);
  416. font-weight: 800;
  417. line-height: 1.15;
  418. margin-bottom: var(--space-lg);
  419. }
  420. .highlight {
  421. color: var(--color-primary);
  422. }
  423. .hero-desc {
  424. font-size: 1.0625rem;
  425. color: var(--color-text-secondary);
  426. line-height: 1.8;
  427. margin-bottom: var(--space-xl);
  428. max-width: 540px;
  429. }
  430. .hero-desc strong {
  431. color: var(--color-text-primary);
  432. }
  433. .hero-actions {
  434. display: flex;
  435. gap: var(--space-md);
  436. flex-wrap: wrap;
  437. }
  438. /* Hero Visual - Orbit Animation */
  439. .hero-visual {
  440. display: flex;
  441. justify-content: center;
  442. align-items: center;
  443. }
  444. .dimension-orbit {
  445. position: relative;
  446. width: 320px;
  447. height: 320px;
  448. display: flex;
  449. align-items: center;
  450. justify-content: center;
  451. }
  452. .orbit-center {
  453. width: 80px;
  454. height: 80px;
  455. border-radius: 50%;
  456. background: var(--color-primary);
  457. color: #fff;
  458. font-size: 1.5rem;
  459. font-weight: 700;
  460. display: flex;
  461. align-items: center;
  462. justify-content: center;
  463. box-shadow: 0 0 40px rgba(74, 155, 215, .3);
  464. position: relative;
  465. z-index: 2;
  466. animation: pulseCenter 3s ease-in-out infinite;
  467. }
  468. @keyframes pulseCenter {
  469. 0%, 100% { box-shadow: 0 0 40px rgba(74, 155, 215, .3); transform: scale(1); }
  470. 50% { box-shadow: 0 0 60px rgba(74, 155, 215, .5); transform: scale(1.05); }
  471. }
  472. .orbit-item {
  473. position: absolute;
  474. width: 56px;
  475. height: 56px;
  476. border-radius: 50%;
  477. background: var(--bg-surface);
  478. border: 2px solid var(--color-border-light);
  479. display: flex;
  480. align-items: center;
  481. justify-content: center;
  482. font-size: 1.25rem;
  483. font-weight: 700;
  484. color: var(--color-text-secondary);
  485. box-shadow: var(--shadow-sm);
  486. animation: orbit 12s linear infinite;
  487. animation-delay: calc(var(--i) * -2.4s);
  488. z-index: 1;
  489. }
  490. @keyframes orbit {
  491. 0% {
  492. transform: rotate(0deg) translateX(130px) rotate(0deg);
  493. }
  494. 100% {
  495. transform: rotate(360deg) translateX(130px) rotate(-360deg);
  496. }
  497. }
  498. .orbit-item:nth-child(2) { --i: 1; }
  499. .orbit-item:nth-child(3) { --i: 2; }
  500. .orbit-item:nth-child(4) { --i: 3; }
  501. .orbit-item:nth-child(5) { --i: 4; }
  502. /* Scroll Indicator */
  503. .scroll-indicator {
  504. position: absolute;
  505. bottom: var(--space-xl);
  506. left: 50%;
  507. transform: translateX(-50%);
  508. display: flex;
  509. flex-direction: column;
  510. align-items: center;
  511. gap: var(--space-xs);
  512. color: var(--color-text-muted);
  513. font-size: var(--font-size-tiny);
  514. animation: fadeInUp 1s ease 1s both;
  515. }
  516. .scroll-arrow {
  517. width: 20px;
  518. height: 20px;
  519. border-right: 2px solid var(--color-text-muted);
  520. border-bottom: 2px solid var(--color-text-muted);
  521. transform: rotate(45deg);
  522. animation: scrollBounce 2s ease-in-out infinite;
  523. }
  524. @keyframes scrollBounce {
  525. 0%, 100% { transform: rotate(45deg) translateY(0); opacity: .5; }
  526. 50% { transform: rotate(45deg) translateY(6px); opacity: 1; }
  527. }
  528. @keyframes fadeInUp {
  529. from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  530. to { opacity: 1; transform: translateX(-50%) translateY(0); }
  531. }
  532. /* Stats Banner */
  533. .stats-banner {
  534. background: #EEF5FB;
  535. padding: var(--space-2xl) 0;
  536. border-bottom: 1px solid var(--color-border-light);
  537. }
  538. .stats-banner .container {
  539. display: flex;
  540. justify-content: center;
  541. align-items: center;
  542. gap: var(--space-3xl);
  543. }
  544. .stats-item {
  545. text-align: center;
  546. display: flex;
  547. flex-direction: column;
  548. align-items: center;
  549. gap: var(--space-xs);
  550. }
  551. .stat-number {
  552. font-size: 2.5rem;
  553. font-weight: 800;
  554. color: #1a4a6e;
  555. line-height: 1.2;
  556. }
  557. .stat-label {
  558. font-size: var(--font-size-small);
  559. color: var(--color-text-secondary);
  560. font-weight: 500;
  561. }
  562. @media (max-width: 768px) {
  563. .stats-banner .container {
  564. flex-direction: column;
  565. gap: var(--space-xl);
  566. }
  567. .stat-number {
  568. font-size: 2rem;
  569. }
  570. }
  571. /* ----------------------------------------------------------
  572. 7. About Section
  573. ---------------------------------------------------------- */
  574. .section-about {
  575. background: var(--bg-surface);
  576. }
  577. .about-grid {
  578. display: grid;
  579. grid-template-columns: repeat(3, 1fr);
  580. gap: var(--space-xl);
  581. }
  582. .about-card {
  583. background: var(--bg-surface);
  584. border: 1px solid var(--color-border-light);
  585. border-radius: var(--radius-lg);
  586. padding: var(--space-2xl);
  587. text-align: center;
  588. transition: all var(--transition-normal);
  589. }
  590. .about-card:hover {
  591. transform: translateY(-4px);
  592. box-shadow: var(--shadow-md);
  593. border-color: transparent;
  594. }
  595. .about-icon {
  596. width: 72px;
  597. height: 72px;
  598. margin: 0 auto var(--space-lg);
  599. display: flex;
  600. align-items: center;
  601. justify-content: center;
  602. }
  603. .about-card h3 {
  604. font-size: var(--font-size-h3);
  605. margin-bottom: var(--space-sm);
  606. font-weight: 700;
  607. }
  608. .about-card p {
  609. color: var(--color-text-secondary);
  610. line-height: 1.7;
  611. font-size: var(--font-size-small);
  612. }
  613. /* ----------------------------------------------------------
  614. 8. Product Section
  615. ---------------------------------------------------------- */
  616. .section-product {
  617. background: linear-gradient(180deg, var(--bg-body) 0%, var(--color-primary-light) 100%);
  618. }
  619. .product-showcase {
  620. max-width: 800px;
  621. margin: 0 auto;
  622. }
  623. .product-quote {
  624. background: var(--bg-surface);
  625. border-left: 4px solid var(--color-primary);
  626. padding: var(--space-xl) var(--space-2xl);
  627. border-radius: 0 var(--radius-md) var(--radius-md) 0;
  628. margin-bottom: var(--space-2xl);
  629. box-shadow: var(--shadow-sm);
  630. }
  631. .product-quote p {
  632. font-size: 1.0625rem;
  633. line-height: 1.9;
  634. color: var(--color-text-secondary);
  635. font-style: italic;
  636. }
  637. .product-stats {
  638. display: grid;
  639. grid-template-columns: repeat(4, 1fr);
  640. gap: var(--space-lg);
  641. margin-bottom: var(--space-2xl);
  642. }
  643. .stat {
  644. text-align: center;
  645. padding: var(--space-lg);
  646. background: var(--bg-surface);
  647. border-radius: var(--radius-md);
  648. border: 1px solid var(--color-border-light);
  649. }
  650. .stat-link {
  651. display: block;
  652. text-decoration: none;
  653. color: inherit;
  654. transition: transform var(--transition-normal);
  655. }
  656. .stat-link:hover {
  657. transform: translateY(-3px);
  658. }
  659. .stat-num {
  660. display: block;
  661. font-size: 2rem;
  662. font-weight: 800;
  663. color: var(--color-primary);
  664. line-height: 1.2;
  665. margin-bottom: var(--space-xs);
  666. }
  667. .stat-label {
  668. font-size: var(--font-size-tiny);
  669. color: var(--color-text-secondary);
  670. font-weight: 500;
  671. }
  672. /* 幸福三支柱 */
  673. .section-pillars {
  674. background: linear-gradient(180deg, var(--bg-body) 0%, var(--color-primary-light) 100%);
  675. }
  676. .pillars-grid {
  677. display: flex;
  678. flex-direction: column;
  679. gap: var(--space-xl);
  680. max-width: 960px;
  681. margin: 0 auto;
  682. }
  683. .pillar-card {
  684. background: var(--bg-surface);
  685. border: 1px solid var(--color-border-light);
  686. border-radius: var(--radius-lg);
  687. padding: var(--space-2xl);
  688. transition: all var(--transition-normal);
  689. position: relative;
  690. overflow: hidden;
  691. }
  692. .pillar-card::before {
  693. content: '';
  694. position: absolute;
  695. top: 0;
  696. left: 0;
  697. right: 0;
  698. height: 4px;
  699. background: var(--pillar-color, var(--color-primary));
  700. opacity: .6;
  701. transition: opacity var(--transition-normal);
  702. }
  703. .pillar-card:hover {
  704. transform: translateY(-4px);
  705. box-shadow: var(--shadow-md);
  706. border-color: transparent;
  707. }
  708. .pillar-card:hover::before {
  709. opacity: 1;
  710. }
  711. .pillar-main {
  712. display: flex;
  713. align-items: center;
  714. gap: var(--space-xl);
  715. margin-bottom: var(--space-lg);
  716. }
  717. .pillar-left {
  718. flex-shrink: 0;
  719. min-width: 160px;
  720. text-align: center;
  721. }
  722. .pillar-name {
  723. font-size: var(--font-size-h3);
  724. font-weight: 700;
  725. color: var(--pillar-color, var(--color-primary));
  726. margin-bottom: var(--space-xs);
  727. }
  728. .pillar-subtitle {
  729. font-size: var(--font-size-tiny);
  730. color: var(--color-text-muted);
  731. font-weight: 500;
  732. }
  733. .pillar-arrow {
  734. flex-shrink: 0;
  735. font-size: 1.5rem;
  736. color: var(--color-text-muted);
  737. }
  738. .pillar-dimensions {
  739. display: flex;
  740. gap: var(--space-md);
  741. flex-wrap: wrap;
  742. }
  743. .pillar-dim-badge {
  744. display: inline-flex;
  745. align-items: center;
  746. gap: var(--space-xs);
  747. padding: .5em 1.25em;
  748. border-radius: var(--radius-full);
  749. font-size: var(--font-size-small);
  750. font-weight: 600;
  751. color: #fff;
  752. background: var(--dim-color);
  753. white-space: nowrap;
  754. }
  755. .pillar-dim-badge .dim-sub {
  756. font-weight: 400;
  757. font-size: var(--font-size-tiny);
  758. opacity: .85;
  759. }
  760. .pillar-interpretation {
  761. font-size: var(--font-size-small);
  762. color: var(--color-text-secondary);
  763. line-height: 1.8;
  764. padding-top: var(--space-lg);
  765. border-top: 1px dashed var(--color-border-light);
  766. }
  767. .pillar-interpretation strong {
  768. color: var(--color-text-primary);
  769. }
  770. /* Pillar-specific colors */
  771. .pillar-card--material { --pillar-color: #FF8C42; }
  772. .pillar-card--respect { --pillar-color: #6366F1; }
  773. .pillar-card--legacy { --pillar-color: #FF6B9D; }
  774. /* Responsive */
  775. @media (max-width: 768px) {
  776. .pillar-main {
  777. flex-direction: column;
  778. text-align: center;
  779. gap: var(--space-md);
  780. }
  781. .pillar-arrow {
  782. transform: rotate(90deg);
  783. }
  784. .pillar-dimensions {
  785. justify-content: center;
  786. }
  787. .pillar-left {
  788. min-width: auto;
  789. }
  790. }
  791. @media (max-width: 480px) {
  792. .pillar-card {
  793. padding: var(--space-lg);
  794. }
  795. .pillar-dim-badge {
  796. padding: .4em 1em;
  797. font-size: var(--font-size-tiny);
  798. }
  799. .pillar-dimensions {
  800. flex-direction: column;
  801. align-items: center;
  802. }
  803. }
  804. /* ----------------------------------------------------------
  805. 9. Footer
  806. ---------------------------------------------------------- */
  807. .section-products {
  808. background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--bg-body) 100%);
  809. }
  810. .products-grid {
  811. display: grid;
  812. grid-template-columns: repeat(2, 1fr);
  813. gap: var(--space-xl);
  814. max-width: 920px;
  815. margin: 0 auto;
  816. }
  817. .product-card {
  818. background: var(--bg-surface);
  819. border-radius: var(--radius-lg);
  820. padding: var(--space-2xl);
  821. border: 1px solid var(--color-border-light);
  822. transition: all var(--transition-normal);
  823. position: relative;
  824. overflow: hidden;
  825. }
  826. .product-card::before {
  827. content: '';
  828. position: absolute;
  829. top: 0;
  830. left: 0;
  831. right: 0;
  832. height: 4px;
  833. background: var(--product-color, var(--color-primary));
  834. }
  835. .product-card:hover {
  836. transform: translateY(-4px);
  837. box-shadow: var(--shadow-md);
  838. border-color: transparent;
  839. }
  840. .product-card-icon {
  841. width: 56px;
  842. height: 56px;
  843. display: flex;
  844. align-items: center;
  845. justify-content: center;
  846. border-radius: var(--radius-md);
  847. background: var(--product-bg, var(--color-primary-light));
  848. margin-bottom: var(--space-md);
  849. }
  850. .product-card h3 {
  851. font-size: 1.1rem;
  852. font-weight: 700;
  853. color: var(--color-text-primary);
  854. margin-bottom: var(--space-xs);
  855. }
  856. .product-card .product-sub {
  857. font-size: var(--font-size-small);
  858. color: var(--product-color, var(--color-primary));
  859. font-weight: 600;
  860. margin-bottom: var(--space-sm);
  861. margin-top: -4px;
  862. }
  863. .product-card > p {
  864. font-size: var(--font-size-small);
  865. color: var(--color-text-secondary);
  866. line-height: 1.75;
  867. margin-bottom: var(--space-md);
  868. }
  869. .product-tags {
  870. display: flex;
  871. flex-wrap: wrap;
  872. gap: var(--space-xs);
  873. }
  874. .product-tags span {
  875. display: inline-block;
  876. padding: 2px 10px;
  877. font-size: var(--font-size-tiny);
  878. color: var(--product-color, var(--color-text-secondary));
  879. background: color-mix(in srgb, var(--product-color, var(--color-primary)) 10%, transparent);
  880. border-radius: 100px;
  881. font-weight: 500;
  882. }
  883. .product-plus {
  884. color: var(--product-color, var(--color-primary));
  885. font-weight: 700;
  886. }
  887. @media (max-width: 768px) {
  888. .products-grid {
  889. grid-template-columns: 1fr;
  890. gap: var(--space-lg);
  891. }
  892. }
  893. /* ----------------------------------------------------------
  894. 10. Dimensions Section
  895. ---------------------------------------------------------- */
  896. .section-dimensions {
  897. background: var(--bg-surface);
  898. }
  899. .dimension-grid {
  900. display: flex;
  901. flex-wrap: wrap;
  902. justify-content: center;
  903. gap: var(--space-xl);
  904. }
  905. .dimension-grid > .dimension-card {
  906. width: calc((100% - var(--space-xl) * 2) / 3);
  907. }
  908. .dimension-card {
  909. background: var(--bg-surface);
  910. border: 1px solid var(--color-border-light);
  911. border-radius: var(--radius-lg);
  912. padding: var(--space-2xl);
  913. position: relative;
  914. overflow: hidden;
  915. transition: all var(--transition-normal);
  916. }
  917. .dim-bg-illustration {
  918. position: absolute;
  919. bottom: 0;
  920. left: 0;
  921. width: 100%;
  922. height: 28%;
  923. pointer-events: none;
  924. opacity: 0.3;
  925. transition: opacity var(--transition-normal);
  926. mask-image: linear-gradient(to top, black 0%, black 50%, transparent 100%);
  927. -webkit-mask-image: linear-gradient(to top, black 0%, black 50%, transparent 100%);
  928. }
  929. .dim-bg-illustration svg {
  930. width: 100%;
  931. height: 100%;
  932. color: var(--dim-color);
  933. display: block;
  934. }
  935. .dimension-card:hover .dim-bg-illustration {
  936. opacity: 0.3;
  937. }
  938. .dimension-card::before {
  939. content: '';
  940. position: absolute;
  941. top: 0;
  942. left: 0;
  943. right: 0;
  944. height: 4px;
  945. background: var(--dim-color);
  946. opacity: .6;
  947. transition: opacity var(--transition-normal);
  948. }
  949. .dimension-card:hover {
  950. transform: translateY(-6px);
  951. box-shadow: var(--shadow-lg);
  952. border-color: transparent;
  953. }
  954. .dimension-card:hover::before {
  955. opacity: 1;
  956. }
  957. .dim-title {
  958. font-size: var(--font-size-h3);
  959. font-weight: 700;
  960. margin-bottom: var(--space-sm);
  961. display: flex;
  962. align-items: center;
  963. gap: var(--space-xs);
  964. }
  965. .dim-emoji {
  966. font-size: 1.5rem;
  967. }
  968. .dim-desc {
  969. font-size: var(--font-size-small);
  970. color: var(--color-text-secondary);
  971. line-height: 1.8;
  972. margin-bottom: var(--space-md);
  973. }
  974. .dim-points {
  975. display: flex;
  976. flex-wrap: wrap;
  977. gap: var(--space-xs);
  978. }
  979. .dim-points li {
  980. font-size: var(--font-size-tiny);
  981. font-weight: 500;
  982. color: var(--dim-color);
  983. background: var(--dim-bg);
  984. padding: .3em .9em;
  985. border-radius: var(--radius-full);
  986. }
  987. /* Make 2 items in last row centered */
  988. /* 5 items in 3-col grid: items 4 & 5 naturally wrap to row 2, cols 1 & 2 */
  989. /* ----------------------------------------------------------
  990. 11. Features Section
  991. ---------------------------------------------------------- */
  992. .section-features {
  993. background: var(--bg-section-alt);
  994. }
  995. .features-grid {
  996. display: grid;
  997. grid-template-columns: repeat(4, 1fr);
  998. gap: var(--space-lg);
  999. }
  1000. .feature-card {
  1001. background: var(--bg-surface);
  1002. border: 1px solid var(--color-border-light);
  1003. border-radius: var(--radius-lg);
  1004. padding: var(--space-xl);
  1005. transition: all var(--transition-normal);
  1006. text-align: center;
  1007. }
  1008. .feature-card:hover {
  1009. transform: translateY(-4px);
  1010. box-shadow: var(--shadow-md);
  1011. border-color: transparent;
  1012. }
  1013. .feature-icon {
  1014. width: 56px;
  1015. height: 56px;
  1016. margin: 0 auto var(--space-md);
  1017. display: flex;
  1018. align-items: center;
  1019. justify-content: center;
  1020. border-radius: var(--radius-md);
  1021. background: color-mix(in srgb, var(--fc) 10%, white);
  1022. color: var(--fc);
  1023. }
  1024. .feature-card h3 {
  1025. font-size: 1rem;
  1026. font-weight: 700;
  1027. margin-bottom: var(--space-sm);
  1028. }
  1029. .feature-card p {
  1030. font-size: var(--font-size-small);
  1031. color: var(--color-text-secondary);
  1032. line-height: 1.7;
  1033. }
  1034. /* Loop flow — 科学成长闭环 */
  1035. .loop-flow {
  1036. display: flex;
  1037. align-items: flex-start;
  1038. justify-content: center;
  1039. gap: var(--space-md);
  1040. flex-wrap: wrap;
  1041. }
  1042. .loop-step {
  1043. flex: 1;
  1044. min-width: 200px;
  1045. max-width: 260px;
  1046. background: var(--bg-surface);
  1047. border-radius: var(--radius-lg);
  1048. padding: var(--space-xl) var(--space-lg);
  1049. border: 1px solid var(--color-border-light);
  1050. text-align: left;
  1051. transition: transform .3s ease, box-shadow .3s ease;
  1052. }
  1053. .loop-step:hover {
  1054. transform: translateY(-4px);
  1055. box-shadow: var(--shadow-lg);
  1056. }
  1057. .loop-header {
  1058. display: flex;
  1059. align-items: center;
  1060. gap: var(--space-sm);
  1061. margin-bottom: var(--space-md);
  1062. }
  1063. .loop-icon {
  1064. color: var(--step-color);
  1065. flex-shrink: 0;
  1066. display: flex;
  1067. align-items: center;
  1068. justify-content: center;
  1069. width: 40px;
  1070. height: 40px;
  1071. border-radius: var(--radius-md);
  1072. background: var(--step-bg);
  1073. }
  1074. .loop-step h3 {
  1075. font-size: 1rem;
  1076. font-weight: 700;
  1077. color: var(--color-text-primary);
  1078. margin-bottom: 0;
  1079. }
  1080. .loop-step p {
  1081. font-size: var(--font-size-small);
  1082. color: var(--color-text-secondary);
  1083. line-height: 1.7;
  1084. margin-bottom: var(--space-md);
  1085. }
  1086. .loop-tags {
  1087. display: flex;
  1088. flex-wrap: wrap;
  1089. justify-content: flex-start;
  1090. gap: .3em;
  1091. }
  1092. .loop-tags span {
  1093. font-size: 11px;
  1094. padding: .2em .6em;
  1095. border-radius: var(--radius-full);
  1096. background: var(--step-bg);
  1097. color: var(--step-color);
  1098. font-weight: 500;
  1099. }
  1100. .loop-arrow {
  1101. font-size: 1.5rem;
  1102. color: var(--color-text-muted);
  1103. align-self: center;
  1104. flex-shrink: 0;
  1105. }
  1106. @media (max-width: 900px) {
  1107. .loop-flow {
  1108. flex-direction: column;
  1109. align-items: center;
  1110. }
  1111. .loop-arrow {
  1112. transform: rotate(90deg);
  1113. margin: 0;
  1114. }
  1115. }
  1116. /* ----------------------------------------------------------
  1117. 12. AI Technology Section
  1118. ---------------------------------------------------------- */
  1119. .section-ai-tech {
  1120. background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-section-alt) 100%);
  1121. }
  1122. .ai-grid {
  1123. display: grid;
  1124. grid-template-columns: repeat(3, 1fr);
  1125. gap: var(--space-xl);
  1126. max-width: 1000px;
  1127. margin: 0 auto;
  1128. }
  1129. .ai-card {
  1130. background: var(--bg-surface);
  1131. border-radius: var(--radius-lg);
  1132. padding: var(--space-2xl);
  1133. border: 1px solid var(--color-border-light);
  1134. transition: all var(--transition-normal);
  1135. position: relative;
  1136. overflow: hidden;
  1137. }
  1138. .ai-card::before {
  1139. content: '';
  1140. position: absolute;
  1141. top: 0;
  1142. left: 0;
  1143. right: 0;
  1144. height: 3px;
  1145. background: var(--ai-color, var(--color-primary));
  1146. opacity: .4;
  1147. transition: opacity var(--transition-normal);
  1148. }
  1149. .ai-card:hover {
  1150. transform: translateY(-4px);
  1151. box-shadow: var(--shadow-md);
  1152. border-color: transparent;
  1153. }
  1154. .ai-card:hover::before {
  1155. opacity: 1;
  1156. }
  1157. .ai-card-header {
  1158. display: flex;
  1159. align-items: center;
  1160. gap: var(--space-sm);
  1161. margin-bottom: var(--space-md);
  1162. }
  1163. .ai-card-icon {
  1164. width: 48px;
  1165. height: 48px;
  1166. display: flex;
  1167. align-items: center;
  1168. justify-content: center;
  1169. border-radius: var(--radius-md);
  1170. background: var(--ai-bg, var(--color-primary-light));
  1171. flex-shrink: 0;
  1172. }
  1173. .ai-card-badge {
  1174. display: inline-block;
  1175. padding: 2px 10px;
  1176. font-size: var(--font-size-tiny);
  1177. font-weight: 600;
  1178. color: var(--ai-color, var(--color-primary));
  1179. background: color-mix(in srgb, var(--ai-color, var(--color-primary)) 10%, white);
  1180. border-radius: 100px;
  1181. white-space: nowrap;
  1182. }
  1183. .ai-card h3 {
  1184. font-size: 1.05rem;
  1185. font-weight: 700;
  1186. color: var(--color-text-primary);
  1187. margin-bottom: var(--space-sm);
  1188. line-height: 1.4;
  1189. }
  1190. .ai-card p {
  1191. font-size: var(--font-size-small);
  1192. color: var(--color-text-secondary);
  1193. line-height: 1.8;
  1194. margin: 0;
  1195. }
  1196. @media (max-width: 900px) {
  1197. .ai-grid {
  1198. grid-template-columns: repeat(2, 1fr);
  1199. }
  1200. }
  1201. @media (max-width: 600px) {
  1202. .ai-grid {
  1203. grid-template-columns: 1fr;
  1204. }
  1205. }
  1206. /* ----------------------------------------------------------
  1207. 13. Roles Section
  1208. ---------------------------------------------------------- */
  1209. .section-roles {
  1210. background: var(--bg-surface);
  1211. }
  1212. .roles-flow {
  1213. display: flex;
  1214. align-items: stretch;
  1215. justify-content: center;
  1216. gap: var(--space-xl);
  1217. max-width: 960px;
  1218. margin: 0 auto;
  1219. }
  1220. .role-card {
  1221. flex: 1;
  1222. background: var(--bg-surface);
  1223. border: 1px solid var(--color-border-light);
  1224. border-radius: var(--radius-lg);
  1225. padding: var(--space-xl);
  1226. text-align: center;
  1227. position: relative;
  1228. transition: all var(--transition-normal);
  1229. }
  1230. .role-card:hover {
  1231. transform: translateY(-4px);
  1232. box-shadow: var(--shadow-md);
  1233. }
  1234. .role-badge {
  1235. display: inline-block;
  1236. font-size: var(--font-size-tiny);
  1237. font-weight: 600;
  1238. padding: .25em 1em;
  1239. border-radius: var(--radius-full);
  1240. margin-bottom: var(--space-md);
  1241. }
  1242. .role-parent .role-badge { background: var(--color-primary-light); color: var(--color-primary); }
  1243. .role-teacher .role-badge { background: #F0F7FF; color: #3B82F6; }
  1244. .role-admin .role-badge { background: #EEF0FF; color: #6366F1; }
  1245. .role-member-tag {
  1246. display: inline-block;
  1247. font-size: .7rem;
  1248. font-weight: 500;
  1249. color: var(--color-primary);
  1250. background: var(--color-primary-light);
  1251. padding: .15em .7em;
  1252. border-radius: var(--radius-full);
  1253. vertical-align: middle;
  1254. margin-left: .4em;
  1255. }
  1256. .role-icon {
  1257. margin-bottom: var(--space-md);
  1258. }
  1259. .role-card h3 {
  1260. font-size: var(--font-size-h3);
  1261. font-weight: 700;
  1262. margin-bottom: var(--space-sm);
  1263. }
  1264. .role-card > p {
  1265. font-size: var(--font-size-small);
  1266. color: var(--color-text-secondary);
  1267. line-height: 1.7;
  1268. margin-bottom: var(--space-md);
  1269. }
  1270. .role-perms {
  1271. text-align: left;
  1272. }
  1273. .role-perms li {
  1274. font-size: var(--font-size-tiny);
  1275. color: var(--color-text-secondary);
  1276. padding: .35em 0;
  1277. display: flex;
  1278. align-items: flex-start;
  1279. gap: var(--space-xs);
  1280. }
  1281. .role-perms li::before {
  1282. content: '';
  1283. width: 5px;
  1284. height: 5px;
  1285. border-radius: 50%;
  1286. background: var(--color-primary);
  1287. flex-shrink: 0;
  1288. margin-top: 7px;
  1289. }
  1290. .role-teacher .role-perms li::before { background: #3B82F6; }
  1291. .role-admin .role-perms li::before { background: #6366F1; }
  1292. /* 客户角色 — 小程序二维码 */
  1293. .role-qr {
  1294. margin-top: var(--space-lg);
  1295. padding-top: var(--space-md);
  1296. border-top: 1px solid var(--color-border-light);
  1297. display: flex;
  1298. flex-direction: column;
  1299. align-items: center;
  1300. gap: var(--space-xs);
  1301. }
  1302. .role-qr-code {
  1303. display: block;
  1304. width: 180px;
  1305. height: 180px;
  1306. border-radius: var(--radius-md);
  1307. box-shadow: 0 2px 8px rgba(0,0,0,.10);
  1308. transition: transform .3s ease, box-shadow .3s ease;
  1309. }
  1310. .role-qr-code:hover {
  1311. transform: scale(1.08);
  1312. box-shadow: 0 4px 16px rgba(0,0,0,.12);
  1313. }
  1314. .role-qr-label {
  1315. font-size: var(--font-size-tiny);
  1316. color: var(--color-text-secondary);
  1317. font-weight: 500;
  1318. letter-spacing: .05em;
  1319. }
  1320. .roles-connector {
  1321. display: flex;
  1322. flex-direction: column;
  1323. align-items: center;
  1324. gap: var(--space-xs);
  1325. color: var(--color-text-muted);
  1326. font-size: var(--font-size-tiny);
  1327. font-weight: 500;
  1328. flex-shrink: 0;
  1329. align-self: center;
  1330. }
  1331. .connector-arrow {
  1332. width: 2px;
  1333. height: 40px;
  1334. background: var(--color-border);
  1335. position: relative;
  1336. }
  1337. .connector-arrow::after {
  1338. content: '';
  1339. position: absolute;
  1340. bottom: -4px;
  1341. left: 50%;
  1342. transform: translateX(-50%);
  1343. border: 5px solid transparent;
  1344. border-top-color: var(--color-border);
  1345. }
  1346. /* ----------------------------------------------------------
  1347. 14. Contact Section
  1348. ---------------------------------------------------------- */
  1349. .section-contact {
  1350. background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-body) 100%);
  1351. }
  1352. .contact-grid {
  1353. display: grid;
  1354. grid-template-columns: 1fr 1fr;
  1355. gap: var(--space-3xl);
  1356. align-items: start;
  1357. max-width: 800px;
  1358. margin: 0 auto;
  1359. }
  1360. .contact-info {
  1361. display: flex;
  1362. flex-direction: column;
  1363. gap: var(--space-lg);
  1364. }
  1365. .contact-item {
  1366. display: flex;
  1367. align-items: flex-start;
  1368. gap: var(--space-md);
  1369. padding: var(--space-lg);
  1370. background: var(--bg-surface);
  1371. border-radius: var(--radius-md);
  1372. border: 1px solid var(--color-border-light);
  1373. }
  1374. .contact-item svg {
  1375. flex-shrink: 0;
  1376. margin-top: 2px;
  1377. }
  1378. .contact-item strong {
  1379. display: block;
  1380. font-size: var(--font-size-tiny);
  1381. color: var(--color-text-muted);
  1382. font-weight: 500;
  1383. text-transform: uppercase;
  1384. letter-spacing: .04em;
  1385. margin-bottom: 2px;
  1386. }
  1387. .contact-item span {
  1388. font-weight: 600;
  1389. color: var(--color-text-primary);
  1390. }
  1391. .contact-cta {
  1392. text-align: center;
  1393. padding: var(--space-2xl);
  1394. background: var(--bg-surface);
  1395. border-radius: var(--radius-lg);
  1396. border: 1px solid var(--color-border-light);
  1397. }
  1398. .contact-cta > p {
  1399. font-size: var(--font-size-h3);
  1400. font-weight: 700;
  1401. margin-bottom: var(--space-xs);
  1402. }
  1403. .cta-sub {
  1404. font-size: var(--font-size-small) !important;
  1405. font-weight: 400 !important;
  1406. color: var(--color-text-secondary);
  1407. margin-bottom: var(--space-xl) !important;
  1408. }
  1409. .cta-cards {
  1410. display: grid;
  1411. grid-template-columns: repeat(3, 1fr);
  1412. gap: var(--space-sm);
  1413. }
  1414. .cta-card {
  1415. display: flex;
  1416. flex-direction: column;
  1417. align-items: center;
  1418. gap: var(--space-xs);
  1419. padding: var(--space-md);
  1420. background: var(--bg-body);
  1421. border-radius: var(--radius-md);
  1422. font-size: var(--font-size-tiny);
  1423. font-weight: 600;
  1424. border: 1px solid var(--color-border-light);
  1425. transition: all var(--transition-fast);
  1426. }
  1427. .cta-card:hover {
  1428. border-color: var(--color-primary);
  1429. background: var(--color-primary-light);
  1430. }
  1431. .cta-card-icon {
  1432. font-size: 1.5rem;
  1433. }
  1434. .cta-card-desc {
  1435. font-weight: 400;
  1436. color: var(--color-text-muted);
  1437. font-size: var(--font-size-tiny);
  1438. }
  1439. .contact-qr img {
  1440. width: 200px;
  1441. height: auto;
  1442. border-radius: var(--radius-md);
  1443. display: block;
  1444. margin: 0 auto;
  1445. }
  1446. .contact-qr span {
  1447. display: block;
  1448. margin-top: var(--space-sm);
  1449. font-size: var(--font-size-tiny);
  1450. color: var(--color-text-muted);
  1451. }
  1452. @media (max-width: 768px) {
  1453. .contact-qr img {
  1454. width: 160px;
  1455. }
  1456. }
  1457. /* Testimonials Section */
  1458. .section-testimonials { background: var(--bg-section-alt); }
  1459. .testimonials-grid {
  1460. display: grid;
  1461. grid-template-columns: repeat(3, 1fr);
  1462. gap: var(--space-lg);
  1463. max-width: 960px;
  1464. margin: 0 auto;
  1465. }
  1466. .testimonial-card {
  1467. background: var(--bg-surface);
  1468. border: 1px solid var(--color-border-light);
  1469. border-radius: var(--radius-lg);
  1470. padding: var(--space-xl);
  1471. border-left: 4px solid var(--color-primary);
  1472. transition: all var(--transition-normal);
  1473. }
  1474. .testimonial-card:hover {
  1475. transform: translateY(-4px);
  1476. box-shadow: var(--shadow-md);
  1477. border-color: transparent;
  1478. border-left-color: var(--color-primary);
  1479. }
  1480. .testimonial-stars { display: flex; gap: 2px; margin-bottom: var(--space-md); }
  1481. .testimonial-text {
  1482. font-size: var(--font-size-small);
  1483. color: var(--color-text-secondary);
  1484. line-height: 1.8;
  1485. font-style: italic;
  1486. margin-bottom: var(--space-lg);
  1487. }
  1488. .testimonial-author {
  1489. border-top: 1px solid var(--color-border-light);
  1490. padding-top: var(--space-md);
  1491. }
  1492. .testimonial-name { font-size: var(--font-size-tiny); font-weight: 600; color: var(--color-text-primary); }
  1493. @media (max-width: 900px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
  1494. @media (max-width: 600px) { .testimonials-grid { grid-template-columns: 1fr; } }
  1495. /* ----------------------------------------------------------
  1496. 14.5. FAQ Section
  1497. ---------------------------------------------------------- */
  1498. .section-faq {
  1499. background: var(--bg-section-alt);
  1500. }
  1501. .faq-list {
  1502. max-width: 800px;
  1503. margin: 0 auto;
  1504. display: flex;
  1505. flex-direction: column;
  1506. gap: var(--space-md);
  1507. }
  1508. .faq-item {
  1509. background: var(--bg-surface);
  1510. border: 1px solid var(--color-border-light);
  1511. border-radius: var(--radius-md);
  1512. overflow: hidden;
  1513. transition: all var(--transition-normal);
  1514. }
  1515. .faq-item:hover {
  1516. border-color: var(--color-primary);
  1517. box-shadow: var(--shadow-sm);
  1518. }
  1519. .faq-item[open] {
  1520. border-color: var(--color-primary);
  1521. box-shadow: var(--shadow-md);
  1522. }
  1523. .faq-item > summary {
  1524. padding: var(--space-lg) var(--space-xl);
  1525. font-weight: 600;
  1526. font-size: var(--font-size-body);
  1527. color: var(--color-text-primary);
  1528. cursor: pointer;
  1529. list-style: none;
  1530. display: flex;
  1531. align-items: center;
  1532. justify-content: space-between;
  1533. gap: var(--space-md);
  1534. transition: color var(--transition-fast);
  1535. }
  1536. .faq-item > summary::-webkit-details-marker {
  1537. display: none;
  1538. }
  1539. .faq-item > summary::after {
  1540. content: '+';
  1541. font-size: 1.25rem;
  1542. font-weight: 700;
  1543. color: var(--color-primary);
  1544. flex-shrink: 0;
  1545. transition: transform var(--transition-fast);
  1546. }
  1547. .faq-item[open] > summary::after {
  1548. content: '−';
  1549. }
  1550. .faq-item > summary:hover {
  1551. color: var(--color-primary);
  1552. }
  1553. .faq-answer {
  1554. padding: 0 var(--space-xl) var(--space-lg);
  1555. font-size: var(--font-size-small);
  1556. color: var(--color-text-secondary);
  1557. line-height: 1.8;
  1558. border-top: 1px solid var(--color-border-light);
  1559. padding-top: var(--space-md);
  1560. }
  1561. @media (max-width: 768px) {
  1562. .faq-item > summary {
  1563. padding: var(--space-md) var(--space-lg);
  1564. font-size: var(--font-size-small);
  1565. }
  1566. .faq-answer {
  1567. padding: 0 var(--space-lg) var(--space-md);
  1568. font-size: var(--font-size-tiny);
  1569. }
  1570. }
  1571. /* ----------------------------------------------------------
  1572. 15. Footer
  1573. ---------------------------------------------------------- */
  1574. .site-footer {
  1575. background: var(--color-text-primary);
  1576. color: #fff;
  1577. padding: var(--space-3xl) 0 0;
  1578. }
  1579. .footer-inner {
  1580. display: flex;
  1581. justify-content: space-between;
  1582. gap: var(--space-3xl);
  1583. padding-bottom: var(--space-2xl);
  1584. border-bottom: 1px solid rgba(255, 255, 255, .1);
  1585. }
  1586. .footer-brand .logo-text {
  1587. color: #fff;
  1588. font-size: 1.25rem;
  1589. font-weight: 700;
  1590. }
  1591. .footer-brand .logo-tag {
  1592. color: var(--color-primary);
  1593. font-weight: 600;
  1594. font-size: 1.25rem;
  1595. }
  1596. .footer-brand p {
  1597. color: rgba(255, 255, 255, .6);
  1598. font-size: var(--font-size-small);
  1599. margin-top: var(--space-sm);
  1600. max-width: 300px;
  1601. line-height: 1.7;
  1602. }
  1603. .footer-links {
  1604. display: flex;
  1605. gap: var(--space-3xl);
  1606. }
  1607. .footer-col h4 {
  1608. font-size: var(--font-size-tiny);
  1609. font-weight: 600;
  1610. text-transform: uppercase;
  1611. letter-spacing: .06em;
  1612. color: rgba(255, 255, 255, .5);
  1613. margin-bottom: var(--space-md);
  1614. }
  1615. .footer-col ul li {
  1616. margin-bottom: var(--space-sm);
  1617. }
  1618. .footer-col ul li a {
  1619. font-size: var(--font-size-small);
  1620. color: rgba(255, 255, 255, .7);
  1621. transition: color var(--transition-fast);
  1622. }
  1623. .footer-col ul li a:hover {
  1624. color: var(--color-primary);
  1625. }
  1626. .footer-bottom {
  1627. text-align: center;
  1628. padding: var(--space-lg) 0;
  1629. }
  1630. .footer-bottom p {
  1631. font-size: var(--font-size-tiny);
  1632. color: rgba(255, 255, 255, .4);
  1633. }
  1634. /* ----------------------------------------------------------
  1635. 16. Scroll Animations (AOS-like)
  1636. ---------------------------------------------------------- */
  1637. .reveal {
  1638. opacity: 0;
  1639. transform: translateY(30px);
  1640. transition: opacity .6s ease, transform .6s cubic-bezier(.4, 0, .2, 1);
  1641. }
  1642. .reveal.visible {
  1643. opacity: 1;
  1644. transform: translateY(0);
  1645. }
  1646. /* ----------------------------------------------------------
  1647. 17. Responsive - Tablet
  1648. ---------------------------------------------------------- */
  1649. @media (max-width: 1024px) {
  1650. .hero-inner {
  1651. grid-template-columns: 1fr;
  1652. text-align: center;
  1653. }
  1654. .hero-desc {
  1655. margin-left: auto;
  1656. margin-right: auto;
  1657. }
  1658. .hero-actions {
  1659. justify-content: center;
  1660. }
  1661. .hero-visual {
  1662. display: none;
  1663. }
  1664. .dimension-grid > .dimension-card {
  1665. width: calc((100% - var(--space-xl)) / 2);
  1666. }
  1667. .features-grid {
  1668. grid-template-columns: repeat(2, 1fr);
  1669. }
  1670. .roles-flow {
  1671. gap: var(--space-md);
  1672. }
  1673. .role-card {
  1674. padding: var(--space-lg) var(--space-md);
  1675. }
  1676. .roles-connector {
  1677. flex-direction: row;
  1678. gap: 0;
  1679. }
  1680. .connector-arrow {
  1681. width: 40px;
  1682. height: 2px;
  1683. }
  1684. .connector-arrow::after {
  1685. top: 50%;
  1686. left: auto;
  1687. right: -4px;
  1688. bottom: auto;
  1689. transform: translateY(-50%);
  1690. border: 5px solid transparent;
  1691. border-left-color: var(--color-border);
  1692. border-top-color: transparent;
  1693. }
  1694. .contact-grid {
  1695. grid-template-columns: 1fr;
  1696. }
  1697. .product-stats {
  1698. grid-template-columns: repeat(2, 1fr);
  1699. }
  1700. }
  1701. /* ----------------------------------------------------------
  1702. 18. Responsive - Mobile
  1703. ---------------------------------------------------------- */
  1704. @media (max-width: 768px) {
  1705. :root {
  1706. --space-section: 3.5rem;
  1707. --header-height: 56px;
  1708. }
  1709. .container {
  1710. padding: 0 var(--space-md);
  1711. }
  1712. /* Mobile Nav */
  1713. .nav-toggle {
  1714. display: flex;
  1715. }
  1716. .nav {
  1717. position: fixed;
  1718. top: var(--header-height);
  1719. left: 0;
  1720. right: 0;
  1721. background: rgba(245, 250, 254, .97);
  1722. backdrop-filter: blur(16px);
  1723. -webkit-backdrop-filter: blur(16px);
  1724. border-bottom: 1px solid var(--color-border-light);
  1725. padding: var(--space-lg);
  1726. transform: translateY(-110%);
  1727. opacity: 0;
  1728. transition: all var(--transition-normal);
  1729. pointer-events: none;
  1730. }
  1731. .nav.open {
  1732. transform: translateY(0);
  1733. opacity: 1;
  1734. pointer-events: auto;
  1735. }
  1736. .nav-list {
  1737. flex-direction: column;
  1738. gap: 0;
  1739. }
  1740. .nav-link {
  1741. display: block;
  1742. padding: var(--space-md) 0;
  1743. border-bottom: 1px solid var(--color-border-light);
  1744. width: 100%;
  1745. }
  1746. .nav-link::after {
  1747. display: none;
  1748. }
  1749. /* Hero */
  1750. .hero-title {
  1751. font-size: clamp(1.75rem, 7vw, 2.5rem);
  1752. }
  1753. .hero-desc {
  1754. font-size: var(--font-size-small);
  1755. }
  1756. .hero-actions {
  1757. flex-direction: column;
  1758. align-items: stretch;
  1759. }
  1760. .btn {
  1761. justify-content: center;
  1762. }
  1763. /* Grids */
  1764. .about-grid {
  1765. grid-template-columns: 1fr;
  1766. }
  1767. .dimension-grid > .dimension-card {
  1768. width: 100%;
  1769. }
  1770. .features-grid {
  1771. grid-template-columns: 1fr;
  1772. }
  1773. .contact-grid {
  1774. grid-template-columns: 1fr;
  1775. }
  1776. .product-stats {
  1777. grid-template-columns: repeat(2, 1fr);
  1778. }
  1779. .cta-cards {
  1780. grid-template-columns: 1fr;
  1781. }
  1782. .footer-inner {
  1783. flex-direction: column;
  1784. gap: var(--space-xl);
  1785. }
  1786. .footer-links {
  1787. gap: var(--space-xl);
  1788. }
  1789. .product-quote {
  1790. padding: var(--space-md) var(--space-lg);
  1791. }
  1792. .product-quote p {
  1793. font-size: var(--font-size-small);
  1794. }
  1795. .stat-num {
  1796. font-size: 1.5rem;
  1797. }
  1798. /* Roles row — tighter spacing */
  1799. .roles-flow {
  1800. gap: var(--space-sm);
  1801. }
  1802. .role-card {
  1803. padding: var(--space-md);
  1804. }
  1805. .role-card h3 {
  1806. font-size: calc(var(--font-size-h3) * 0.85);
  1807. }
  1808. .role-perms li {
  1809. font-size: calc(var(--font-size-tiny) * 0.9);
  1810. }
  1811. .role-qr-code {
  1812. width: 150px;
  1813. height: 150px;
  1814. }
  1815. }
  1816. @media (max-width: 480px) {
  1817. .product-stats {
  1818. grid-template-columns: repeat(2, 1fr);
  1819. gap: var(--space-sm);
  1820. }
  1821. .stat {
  1822. padding: var(--space-md);
  1823. }
  1824. .roles-flow {
  1825. flex-direction: column;
  1826. gap: var(--space-md);
  1827. }
  1828. .roles-connector {
  1829. flex-direction: column;
  1830. gap: var(--space-xs);
  1831. }
  1832. .connector-arrow {
  1833. width: 2px;
  1834. height: 40px;
  1835. }
  1836. .connector-arrow::after {
  1837. top: auto;
  1838. left: 50%;
  1839. right: auto;
  1840. bottom: -4px;
  1841. transform: translateX(-50%);
  1842. border: 5px solid transparent;
  1843. border-top-color: var(--color-border);
  1844. border-left-color: transparent;
  1845. }
  1846. .footer-links {
  1847. flex-direction: column;
  1848. gap: var(--space-lg);
  1849. }
  1850. }
  1851. /* ----------------------------------------------------------
  1852. 19. Logo
  1853. ---------------------------------------------------------- */
  1854. .logo-img {
  1855. display: block;
  1856. flex-shrink: 0;
  1857. border-radius: 8px;
  1858. width: 36px;
  1859. height: 36px;
  1860. object-fit: contain;
  1861. }
  1862. .footer-logo-img {
  1863. display: block;
  1864. flex-shrink: 0;
  1865. border-radius: 10px;
  1866. margin-bottom: var(--space-xs);
  1867. object-fit: contain;
  1868. }
  1869. /* ----------------------------------------------------------
  1870. 20. Wuxing Philosophy Section
  1871. ---------------------------------------------------------- */
  1872. .section-wuxing {
  1873. background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-surface) 100%);
  1874. }
  1875. /* --- Diagram --- */
  1876. .wuxing-diagram {
  1877. position: relative;
  1878. width: 100%;
  1879. max-width: 480px;
  1880. aspect-ratio: 1;
  1881. margin: 0 auto var(--space-3xl);
  1882. }
  1883. .wuxing-diagram canvas {
  1884. display: block;
  1885. width: 100%;
  1886. height: 100%;
  1887. }
  1888. .wuxing-diagram .taiji-center {
  1889. position: absolute;
  1890. top: 50%;
  1891. left: 50%;
  1892. transform: translate(-50%, -50%);
  1893. pointer-events: none;
  1894. z-index: 1;
  1895. color: var(--color-text-secondary);
  1896. }
  1897. .wuxing-diagram .taiji-svg {
  1898. display: block;
  1899. animation: taiji-rotate 24s linear infinite;
  1900. }
  1901. @keyframes taiji-rotate {
  1902. to { transform: rotate(360deg); }
  1903. }
  1904. /* --- Explanation Cards --- */
  1905. .wuxing-explanations {
  1906. max-width: 960px;
  1907. margin: 0 auto;
  1908. }
  1909. .we-section {
  1910. margin-bottom: var(--space-2xl);
  1911. }
  1912. .we-section:last-child {
  1913. margin-bottom: 0;
  1914. }
  1915. .we-title {
  1916. font-size: var(--font-size-h3);
  1917. font-weight: 700;
  1918. margin-bottom: var(--space-xs);
  1919. }
  1920. .we-sheng {
  1921. color: var(--color-secondary);
  1922. }
  1923. .we-ke {
  1924. color: var(--color-primary);
  1925. }
  1926. .we-subtitle {
  1927. font-size: var(--font-size-small);
  1928. color: var(--color-text-secondary);
  1929. margin-bottom: var(--space-lg);
  1930. }
  1931. .we-grid {
  1932. display: grid;
  1933. grid-template-columns: repeat(5, 1fr);
  1934. gap: var(--space-md);
  1935. }
  1936. .wuxing-card {
  1937. background: var(--bg-surface);
  1938. border: 1px solid var(--color-border-light);
  1939. border-radius: var(--radius-md);
  1940. padding: var(--space-lg);
  1941. text-align: center;
  1942. transition: all var(--transition-normal);
  1943. position: relative;
  1944. overflow: hidden;
  1945. }
  1946. .wuxing-card::before {
  1947. content: '';
  1948. position: absolute;
  1949. top: 0;
  1950. left: 0;
  1951. right: 0;
  1952. height: 3px;
  1953. background: var(--wc-color);
  1954. opacity: .5;
  1955. transition: opacity var(--transition-normal);
  1956. }
  1957. .wuxing-card:hover {
  1958. transform: translateY(-4px);
  1959. box-shadow: var(--shadow-md);
  1960. border-color: transparent;
  1961. }
  1962. .wuxing-card:hover::before {
  1963. opacity: 1;
  1964. }
  1965. .wc-arrow {
  1966. display: inline-block;
  1967. font-size: var(--font-size-tiny);
  1968. font-weight: 700;
  1969. color: var(--wc-color);
  1970. padding: .15em .6em;
  1971. border-radius: var(--radius-full);
  1972. background: color-mix(in srgb, var(--wc-color) 10%, white);
  1973. margin-bottom: var(--space-sm);
  1974. }
  1975. .wuxing-card h4 {
  1976. font-size: 1rem;
  1977. font-weight: 700;
  1978. margin-bottom: var(--space-xs);
  1979. color: var(--color-text-primary);
  1980. }
  1981. .wuxing-card p {
  1982. font-size: var(--font-size-tiny);
  1983. color: var(--color-text-secondary);
  1984. line-height: 1.6;
  1985. }
  1986. @media (max-width: 1024px) {
  1987. .we-grid {
  1988. grid-template-columns: repeat(3, 1fr);
  1989. }
  1990. }
  1991. @media (max-width: 600px) {
  1992. .we-grid {
  1993. grid-template-columns: repeat(2, 1fr);
  1994. }
  1995. }
  1996. @media (max-width: 480px) {
  1997. .we-grid {
  1998. grid-template-columns: 1fr;
  1999. }
  2000. }
  2001. /* Mobile: prevent dimension title wrapping */
  2002. @media (max-width: 600px) {
  2003. .dim-title {
  2004. font-size: 1rem;
  2005. flex-wrap: wrap;
  2006. }
  2007. .dim-emoji {
  2008. font-size: 1.2rem;
  2009. }
  2010. .dim-element {
  2011. font-size: 9px;
  2012. }
  2013. }
  2014. /* ----------------------------------------------------------
  2015. 21. Dimension Energy Tips
  2016. ---------------------------------------------------------- */
  2017. .dim-energy {
  2018. margin-top: var(--space-md);
  2019. padding-top: var(--space-md);
  2020. border-top: 1px dashed var(--color-border-light);
  2021. }
  2022. .dim-energy h4 {
  2023. font-size: var(--font-size-small);
  2024. font-weight: 700;
  2025. color: var(--dim-color);
  2026. margin-bottom: var(--space-sm);
  2027. }
  2028. .dim-energy ul {
  2029. display: flex;
  2030. flex-direction: column;
  2031. gap: var(--space-xs);
  2032. }
  2033. .dim-energy ul li {
  2034. font-size: var(--font-size-tiny);
  2035. color: var(--color-text-secondary);
  2036. padding: .25em 0;
  2037. display: flex;
  2038. align-items: center;
  2039. gap: var(--space-xs);
  2040. }
  2041. .dim-energy ul li::before {
  2042. content: '✦';
  2043. color: var(--dim-color);
  2044. font-size: 10px;
  2045. flex-shrink: 0;
  2046. }
  2047. /* Dim element badge */
  2048. .dim-element {
  2049. display: inline-block;
  2050. font-size: 10px;
  2051. font-weight: 600;
  2052. color: #fff;
  2053. padding: .15em .6em;
  2054. border-radius: var(--radius-full);
  2055. margin-left: var(--space-xs);
  2056. vertical-align: middle;
  2057. letter-spacing: .04em;
  2058. white-space: nowrap;
  2059. }
  2060. /* Prevent role name (家长/孩子/成长规划师) from breaking across lines */
  2061. .role-perms li strong {
  2062. white-space: nowrap;
  2063. }
  2064. /* ----------------------------------------------------------
  2065. 22. Product Feature Bullet Lists
  2066. ---------------------------------------------------------- */
  2067. .product-summary {
  2068. font-size: var(--font-size-small);
  2069. color: var(--color-text-secondary);
  2070. line-height: 1.6;
  2071. margin-bottom: var(--space-sm);
  2072. }
  2073. .product-features {
  2074. list-style: none;
  2075. padding: 0;
  2076. margin: 0 0 var(--space-md);
  2077. }
  2078. .product-features li {
  2079. position: relative;
  2080. padding-left: 1.25em;
  2081. font-size: var(--font-size-small);
  2082. color: var(--color-text-secondary);
  2083. line-height: 1.8;
  2084. }
  2085. .product-features li::before {
  2086. content: '·';
  2087. position: absolute;
  2088. left: .35em;
  2089. color: var(--product-color, var(--color-primary));
  2090. font-weight: 700;
  2091. font-size: 1.1em;
  2092. }
  2093. /* ----------------------------------------------------------
  2094. 23. Floating CTA Button
  2095. ---------------------------------------------------------- */
  2096. .float-cta {
  2097. position: fixed;
  2098. bottom: 2rem;
  2099. right: 2rem;
  2100. z-index: 999;
  2101. display: flex;
  2102. flex-direction: column;
  2103. align-items: flex-end;
  2104. gap: var(--space-sm);
  2105. }
  2106. .float-cta-btn {
  2107. width: 52px;
  2108. height: 52px;
  2109. border-radius: 50%;
  2110. border: none;
  2111. background: var(--color-primary);
  2112. color: #fff;
  2113. cursor: pointer;
  2114. display: flex;
  2115. align-items: center;
  2116. justify-content: center;
  2117. box-shadow: 0 4px 16px rgba(74, 155, 215, .35);
  2118. transition: all var(--transition-fast);
  2119. position: relative;
  2120. }
  2121. .float-cta-btn:hover {
  2122. background: var(--color-primary-hover);
  2123. transform: scale(1.08);
  2124. box-shadow: 0 6px 24px rgba(74, 155, 215, .45);
  2125. }
  2126. .float-cta-btn:active {
  2127. transform: scale(.95);
  2128. }
  2129. .float-cta-popup {
  2130. position: absolute;
  2131. bottom: 64px;
  2132. right: 0;
  2133. opacity: 0;
  2134. visibility: hidden;
  2135. transform: translateY(8px) scale(.95);
  2136. transition: all var(--transition-normal);
  2137. transform-origin: bottom right;
  2138. }
  2139. .float-cta-popup.open {
  2140. opacity: 1;
  2141. visibility: visible;
  2142. transform: translateY(0) scale(1);
  2143. }
  2144. .float-cta-popup-inner {
  2145. background: var(--bg-surface);
  2146. border-radius: var(--radius-lg);
  2147. box-shadow: var(--shadow-xl);
  2148. padding: var(--space-lg);
  2149. text-align: center;
  2150. min-width: 200px;
  2151. position: relative;
  2152. }
  2153. .float-cta-close {
  2154. position: absolute;
  2155. top: 6px;
  2156. right: 10px;
  2157. border: none;
  2158. background: none;
  2159. font-size: 1.4rem;
  2160. color: var(--color-text-muted);
  2161. cursor: pointer;
  2162. line-height: 1;
  2163. padding: 4px;
  2164. }
  2165. .float-cta-close:hover {
  2166. color: var(--color-text-primary);
  2167. }
  2168. .float-cta-title {
  2169. font-size: var(--font-size-small);
  2170. font-weight: 600;
  2171. color: var(--color-text-primary);
  2172. margin-bottom: var(--space-sm);
  2173. }
  2174. .float-cta-qr {
  2175. margin: 0 auto var(--space-sm);
  2176. width: 72px;
  2177. height: 72px;
  2178. display: flex;
  2179. align-items: center;
  2180. justify-content: center;
  2181. background: var(--bg-body);
  2182. border-radius: var(--radius-sm);
  2183. }
  2184. .float-cta-tip {
  2185. font-size: var(--font-size-tiny);
  2186. color: var(--color-text-muted);
  2187. }
  2188. /* ----------------------------------------------------------
  2189. 24. Cookie Consent Banner
  2190. ---------------------------------------------------------- */
  2191. .cookie-consent {
  2192. position: fixed;
  2193. bottom: 0;
  2194. left: 0;
  2195. right: 0;
  2196. background: var(--color-text-primary);
  2197. color: #fff;
  2198. padding: var(--space-md) var(--space-xl);
  2199. display: flex;
  2200. align-items: center;
  2201. justify-content: center;
  2202. gap: var(--space-lg);
  2203. z-index: 1000;
  2204. transform: translateY(100%);
  2205. transition: transform var(--transition-normal);
  2206. flex-wrap: wrap;
  2207. }
  2208. .cookie-consent.visible {
  2209. transform: translateY(0);
  2210. }
  2211. .cookie-consent-text {
  2212. font-size: var(--font-size-small);
  2213. color: rgba(255, 255, 255, .85);
  2214. line-height: 1.5;
  2215. }
  2216. .cookie-consent-text a {
  2217. color: var(--color-accent);
  2218. text-decoration: underline;
  2219. }
  2220. .cookie-consent-btn {
  2221. background: var(--color-primary);
  2222. color: #fff;
  2223. border: none;
  2224. border-radius: var(--radius-full);
  2225. padding: .5em 1.5em;
  2226. font-size: var(--font-size-small);
  2227. cursor: pointer;
  2228. white-space: nowrap;
  2229. transition: background var(--transition-fast);
  2230. flex-shrink: 0;
  2231. }
  2232. .cookie-consent-btn:hover {
  2233. background: var(--color-primary-hover);
  2234. }
  2235. /* ----------------------------------------------------------
  2236. 25. Footer Enhancements
  2237. ---------------------------------------------------------- */
  2238. .footer-contact li {
  2239. font-size: var(--font-size-small);
  2240. color: var(--color-text-secondary);
  2241. line-height: 1.8;
  2242. }
  2243. .footer-legal {
  2244. margin-top: var(--space-xs);
  2245. font-size: var(--font-size-tiny);
  2246. color: var(--color-text-muted);
  2247. display: flex;
  2248. gap: var(--space-md);
  2249. justify-content: center;
  2250. flex-wrap: wrap;
  2251. }
  2252. .footer-legal a {
  2253. color: var(--color-text-muted);
  2254. text-decoration: underline;
  2255. }
  2256. .footer-legal a:hover {
  2257. color: var(--color-primary);
  2258. }
  2259. /* Responsive footer bottom on small screens */
  2260. @media (max-width: 480px) {
  2261. .footer-legal {
  2262. flex-direction: column;
  2263. gap: var(--space-xs);
  2264. align-items: center;
  2265. }
  2266. .float-cta {
  2267. bottom: 1rem;
  2268. right: 1rem;
  2269. }
  2270. .float-cta-btn {
  2271. width: 46px;
  2272. height: 46px;
  2273. }
  2274. .cookie-consent {
  2275. padding: var(--space-sm) var(--space-md);
  2276. flex-direction: column;
  2277. text-align: center;
  2278. }
  2279. }
  2280. /* ----------------------------------------------------------
  2281. 26. Knowledge Base Section
  2282. ---------------------------------------------------------- */
  2283. .section-knowledge {
  2284. background: var(--bg-section-alt);
  2285. }
  2286. .knowledge-grid {
  2287. display: grid;
  2288. grid-template-columns: repeat(2, 1fr);
  2289. gap: var(--space-xl);
  2290. margin-top: var(--space-xl);
  2291. }
  2292. .knowledge-card {
  2293. background: var(--bg-surface);
  2294. border-radius: var(--radius-lg);
  2295. overflow: hidden;
  2296. box-shadow: var(--shadow-sm);
  2297. transition: all var(--transition-normal);
  2298. display: flex;
  2299. flex-direction: column;
  2300. }
  2301. .knowledge-card:hover {
  2302. box-shadow: var(--shadow-md);
  2303. transform: translateY(-3px);
  2304. }
  2305. .knowledge-card-cover {
  2306. width: 100%;
  2307. height: 180px;
  2308. object-fit: cover;
  2309. background: var(--color-primary-light);
  2310. display: flex;
  2311. align-items: center;
  2312. justify-content: center;
  2313. color: var(--color-primary);
  2314. font-size: 2.5rem;
  2315. }
  2316. .knowledge-card-body {
  2317. padding: var(--space-lg);
  2318. flex: 1;
  2319. display: flex;
  2320. flex-direction: column;
  2321. }
  2322. .knowledge-card-category {
  2323. display: inline-block;
  2324. font-size: var(--font-size-tiny);
  2325. font-weight: 600;
  2326. color: var(--color-primary);
  2327. background: var(--color-primary-light);
  2328. padding: .2em .8em;
  2329. border-radius: var(--radius-full);
  2330. margin-bottom: var(--space-sm);
  2331. align-self: flex-start;
  2332. }
  2333. .knowledge-card-title {
  2334. font-size: 1.05rem;
  2335. font-weight: 700;
  2336. color: var(--color-text-primary);
  2337. line-height: 1.5;
  2338. margin-bottom: var(--space-sm);
  2339. display: -webkit-box;
  2340. -webkit-line-clamp: 2;
  2341. -webkit-box-orient: vertical;
  2342. overflow: hidden;
  2343. }
  2344. .knowledge-card-summary {
  2345. font-size: var(--font-size-small);
  2346. color: var(--color-text-secondary);
  2347. line-height: 1.7;
  2348. flex: 1;
  2349. display: -webkit-box;
  2350. -webkit-line-clamp: 3;
  2351. -webkit-box-orient: vertical;
  2352. overflow: hidden;
  2353. margin-bottom: var(--space-md);
  2354. }
  2355. .knowledge-card-meta {
  2356. font-size: var(--font-size-tiny);
  2357. color: var(--color-text-muted);
  2358. display: flex;
  2359. align-items: center;
  2360. gap: var(--space-md);
  2361. padding-top: var(--space-sm);
  2362. border-top: 1px solid var(--color-border-light);
  2363. }
  2364. .knowledge-card-meta .dimension-tag {
  2365. display: inline-block;
  2366. font-size: 10px;
  2367. font-weight: 600;
  2368. padding: .15em .5em;
  2369. border-radius: var(--radius-full);
  2370. color: #fff;
  2371. }
  2372. .knowledge-footer {
  2373. text-align: center;
  2374. margin-top: var(--space-2xl);
  2375. }
  2376. .knowledge-tip {
  2377. font-size: var(--font-size-small);
  2378. color: var(--color-text-muted);
  2379. }
  2380. .knowledge-tip strong {
  2381. color: var(--color-primary);
  2382. }
  2383. .knowledge-loading {
  2384. grid-column: 1 / -1;
  2385. text-align: center;
  2386. padding: var(--space-3xl) 0;
  2387. }
  2388. .knowledge-loading-text {
  2389. font-size: var(--font-size-small);
  2390. color: var(--color-text-muted);
  2391. }
  2392. .knowledge-error {
  2393. grid-column: 1 / -1;
  2394. text-align: center;
  2395. padding: var(--space-xl) 0;
  2396. color: var(--color-text-muted);
  2397. font-size: var(--font-size-small);
  2398. }
  2399. @media (max-width: 600px) {
  2400. .knowledge-grid {
  2401. grid-template-columns: 1fr;
  2402. }
  2403. .knowledge-card-cover {
  2404. height: 140px;
  2405. }
  2406. }
  2407. /* Responsive: Wuxing diagram — handled by aspect-ratio and Canvas redraw */
  2408. @media (max-width: 600px) {
  2409. .wuxing-diagram {
  2410. max-width: 360px;
  2411. }
  2412. }